@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=Cormorant+Garamond:wght@500;600&display=swap');

/* ---------- АДМИНКА: ШАПКА ---------- */
.punbb-admin #pun-navlinks h2,.punbb-admin #pun-ulinks h2,.punbb-admin #pun-status h2{display:none!important}
.punbb-admin #pun-navlinks,.punbb-admin #pun-ulinks,.punbb-admin #pun-status{
  margin:0!important;padding:0!important;border:0!important;background:none!important}
.punbb-admin #pun-navlinks .container,.punbb-admin #pun-ulinks .container,.punbb-admin #pun-status .container{
  background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
.punbb-admin #pun-navlinks ul,.punbb-admin #pun-ulinks ul{display:flex!important;flex-wrap:wrap;gap:4px 18px;
  list-style:none!important;margin:0!important;padding:8px 14px!important}
.punbb-admin #pun-navlinks ul{background:linear-gradient(#24211c,#1a1814)!important;
  border-bottom:1px solid rgba(179,155,108,.35)!important;box-shadow:0 3px 8px rgba(0,0,0,.5)}
.punbb-admin #pun-ulinks ul{padding:6px 14px!important;font-size:13px}
.punbb-admin #pun-navlinks li,.punbb-admin #pun-ulinks li{list-style:none!important;margin:0!important;padding:0!important}
.punbb-admin #pun-navlinks a,.punbb-admin #pun-ulinks a{color:#ecd9ac!important;text-decoration:none!important;
  font:14px/1.3 'PT Serif',serif!important;text-shadow:0 1px 0 #000}
.punbb-admin #pun-navlinks a:hover,.punbb-admin #pun-ulinks a:hover{color:#fff3d6!important}
.punbb-admin #pun-navlinks .isactive a{color:#d6c093!important;border-bottom:1px solid #b39b6c}
.punbb-admin #pun-status{padding:6px 14px!important;font-size:13px;color:#8c8474}

/* ---------- АДМИНКА: МЕНЮ ---------- */
#pun-adnav#pun-adnav{background:linear-gradient(#24211c,#1a1814)!important;
  border:1px solid rgba(179,155,108,.35)!important;border-radius:3px;
  box-shadow:inset 0 1px 0 rgba(255,235,190,.06),0 3px 8px rgba(0,0,0,.5)!important}
#pun-adnav#pun-adnav *{background-color:transparent!important;background-image:none!important;border-color:transparent}
#pun-adnav#pun-adnav h2{border-bottom:1px solid rgba(179,155,108,.3)!important;margin:0!important;padding:9px 12px 7px!important}
#pun-adnav#pun-adnav h2,#pun-adnav#pun-adnav h2 *{font:600 12px/1.2 'Playfair Display',serif!important;
  letter-spacing:.12em;text-transform:uppercase;color:#b39b6c!important;text-shadow:0 1px 0 #000}
#pun-adnav#pun-adnav ul{list-style:none!important;margin:0!important;padding:4px 0!important}
#pun-adnav#pun-adnav li{margin:0!important;padding:0!important}
#pun-adnav#pun-adnav li a{display:flex!important;align-items:center;gap:9px;padding:6px 12px!important;
  font:14px/1.3 'PT Serif',serif!important;font-weight:400!important;color:#ecd9ac!important;
  text-decoration:none!important;text-shadow:0 1px 0 #000;border-left:2px solid transparent;transition:all .15s}
#pun-adnav#pun-adnav li a::before{content:"\2022";width:16px;flex:none;text-align:center;color:#b39b6c}
#pun-adnav#pun-adnav li a:hover{color:#fff3d6!important;border-left-color:#b39b6c;padding-left:16px!important;
  background-image:linear-gradient(90deg,rgba(179,155,108,.28),transparent)!important}
#pun-adnav#pun-adnav li.isactive a{color:#1c1a17!important;text-shadow:none;border-left-color:#e6d3a8;
  background-image:linear-gradient(90deg,#b39b6c,#8c7650)!important}
#pun-adnav#pun-adnav li.isactive a::before{color:#1c1a17}
#pun-adnav#pun-adnav sup{color:#ff8a6a!important}
#pun-adnav a[href*="admin_index"]::before{content:"\2302"!important}
#pun-adnav a[href*="admin_categories"]::before{content:"\2630"!important}
#pun-adnav a[href*="admin_forums"]::before{content:"\25A4"!important}
#pun-adnav a[href*="admin_users"]::before{content:"\265F"!important}
#pun-adnav a[href*="admin_fields"]::before,#pun-adnav a[href*="profile"]::before{content:"\270D"!important}
#pun-adnav a[href*="admin_options"]::before{content:"\2699"!important}
#pun-adnav a[href*="admin_permissions"]::before{content:"\2696"!important}
#pun-adnav a[href*="admin_groups"]::before{content:"\2756"!important}
#pun-adnav a[href*="admin_forms"]::before{content:"\270E"!important}
#pun-adnav a[href*="admin_censoring"]::before{content:"\2717"!important}
#pun-adnav a[href*="admin_ranks"]::before{content:"\2605"!important}
#pun-adnav a[href*="admin_bans"]::before{content:"\2620"!important}
#pun-adnav a[href*="admin_prune"]::before{content:"\2702"!important}
#pun-adnav a[href*="admin_style"]::before{content:"\2740"!important}
#pun-adnav a[href*="admin_maintenance"]::before{content:"\2692"!important}
#pun-adnav a[href*="admin_reports"]::before{content:"\2691"!important}

/* ---------- АДМИНКА: РАБОЧАЯ ЧАСТЬ ---------- */
#pun-admain#pun-admain .container,#pun-admain#pun-admain fieldset{background:linear-gradient(#24211c,#1a1814)!important;
  border:1px solid rgba(179,155,108,.3)!important}
#pun-admain#pun-admain h2,#pun-admain#pun-admain h2 *{background:none!important;color:#d6c093!important;
  font-family:'Playfair Display',serif!important}
#pun-admain#pun-admain legend,#pun-admain#pun-admain legend *{color:#b39b6c!important;background:none!important}
#pun-admain#pun-admain th{background:#2a2620!important;color:#d6c093!important;
  border-color:rgba(179,155,108,.25)!important;text-shadow:0 1px 0 #000}
#pun-admain#pun-admain td{background:#1e1c18!important;color:#d9d1c1!important;border-color:rgba(179,155,108,.15)!important}
#pun-admain#pun-admain tr:hover td{background:#25221c!important}
#pun-admain#pun-admain :is(input[type=text],input[type=password],input:not([type]),select,textarea){
  background:#14120f!important;color:#ecd9ac!important;border:1px solid #6e5e3e!important}
#pun-admain#pun-admain :is(input[type=submit],input[type=button],button){
  background:linear-gradient(#3a342a,#26221c)!important;color:#ecd9ac!important;
  border:1px solid #6e5e3e!important;border-radius:3px;padding:5px 14px;cursor:pointer}
#pun-admain#pun-admain :is(input[type=submit],input[type=button],button):hover{border-color:#b39b6c!important;color:#fff3d6!important}

/* ---------- АДМИНКА: ДОРАБОТКИ ---------- */
.punbb-admin,.punbb-admin #pun{font-family:'PT Serif',serif!important;color:#d9d1c1}

/* заголовок форума */
.punbb-admin #pun-title,.punbb-admin #pun-title *{background:none!important}
.punbb-admin #pun-title h1,.punbb-admin #pun-title h1 *{font:700 30px/1.2 'Playfair Display',serif!important;
  color:#d6c093!important;letter-spacing:.04em;text-shadow:0 2px 0 #000,0 0 14px rgba(179,155,108,.25)}
.punbb-admin #pun-title{padding:12px 14px!important;border-bottom:1px solid rgba(179,155,108,.35)!important}

/* все ссылки админки — без фиолетового */
.punbb-admin a,.punbb-admin a:visited{color:#d6c093!important}
.punbb-admin a:hover{color:#fff3d6!important}

/* строка «Вы здесь» и статус */
.punbb-admin #pun-crumbs1,.punbb-admin #pun-crumbs2,.punbb-admin .crumbs{
  background:none!important;border:0!important;border-bottom:1px solid rgba(179,155,108,.2)!important;
  padding:8px 14px!important;font:italic 14px 'PT Serif',serif!important;color:#8c8474!important}
.punbb-admin .crumbs strong{color:#b39b6c!important;font-style:normal}
.punbb-admin #pun-status,.punbb-admin #pun-status *{color:#8c8474!important}
.punbb-admin #pun-status strong{color:#d6c093!important}

/* метка «новое» у пункта меню */
#pun-adnav#pun-adnav li{position:relative!important}
#pun-adnav#pun-adnav li sup{position:absolute!important;right:10px;top:50%;transform:translateY(-50%);
  font:italic 11px 'PT Serif',serif!important;color:#ff8a6a!important;text-transform:lowercase}

/* ---------- АДМИНКА: ЗНАЧКИ ПО АДРЕСАМ ---------- */
#pun-adnav a[href*="admin_files"]::before{content:"\2750"!important}
#pun-adnav a[href*="admin_pages"]::before{content:"\2759"!important}
#pun-adnav a[href*="admin_promotion"]::before{content:"\2691"!important}
#pun-adnav a[href*="admin_mail"]::before{content:"\2709"!important}
#pun-adnav a[href*="admin_paid"]::before{content:"\2726"!important}
#pun-adnav a[href*="admin_domain"]::before{content:"\2318"!important}
#pun-adnav a[href*="backup"]::before{content:"\2601"!important}
#pun-adnav a[href*="log"]::before{content:"\2710"!important}
#pun-adnav a[href*="script"]::before{content:"\2328"!important}
/* подменю: без значков-двойников, с отступом */
#pun-adnav#pun-adnav .adsubnav a{padding-left:34px!important;font-size:13px!important;color:#b8a88a!important}
#pun-adnav#pun-adnav .adsubnav a::before{content:"\203A"!important}

/* ---------- АДМИНКА: СЕРЫЕ ЯЧЕЙКИ ---------- */
#pun#pun :is(th,td) ,
#pun#pun :is(table,tr,tbody,.formal,.inform,.infldset){
  background-color:transparent!important;background-image:none!important;box-shadow:none!important}
#pun#pun th,#pun#pun tr > :first-child:not(:only-child){
  background:linear-gradient(#2e2a23,#24211c)!important;color:#d6c093!important;
  border-right:1px solid rgba(179,155,108,.25)!important;
  box-shadow:inset 0 1px 0 rgba(255,235,190,.06)!important}
#pun#pun th *,#pun#pun th label{color:#d6c093!important;background:none!important}

/* ---------- АДМИНКА: ПОЛЯ ВВОДА С ГЛУБИНОЙ ---------- */
#pun#pun :is(textarea,input[type=text],input:not([type]),select){
  background:#100e0b!important;color:#ecd9ac!important;
  border:1px solid #6e5e3e!important;border-radius:3px;outline:0!important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.85),inset 0 0 0 1px rgba(0,0,0,.6),
             0 1px 0 rgba(255,235,190,.07),0 0 0 3px rgba(20,18,15,.9),
             0 0 0 4px rgba(179,155,108,.25)!important;
  transition:box-shadow .2s,border-color .2s}
#pun#pun textarea{padding:10px 12px!important;font:13px/1.5 Consolas,'Courier New',monospace!important}
#pun#pun :is(textarea,input,select):focus{border-color:#b39b6c!important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.85),0 0 0 3px rgba(20,18,15,.9),
             0 0 0 4px rgba(179,155,108,.55),0 0 14px rgba(179,155,108,.35)!important}

/* ---------- АДМИНКА: ПОДПИСИ ПОЛЕЙ ---------- */
html body .adformal.adformal .adfs-box p,
html body .adformal.adformal .adfs-box .adinput{
  background:none!important;background-image:none!important;border-color:rgba(179,155,108,.15)!important}
html body .adformal.adformal .adfs-box .adlabel{
  background:linear-gradient(#2e2a23,#211e19)!important;background-color:#24211c!important;
  color:#d6c093!important;text-shadow:0 1px 0 #000;
  border:0!important;border-right:1px solid rgba(179,155,108,.3)!important;
  box-shadow:inset 0 1px 0 rgba(255,235,190,.07),inset -6px 0 10px rgba(0,0,0,.35)!important}
html body .adformal.adformal .adfs-box .adlabel *{background:none!important;color:inherit!important}
/* подпись над полем кода: без плашки */
html body .adformal.adformal .contains-textarea .adlabel{
  background:none!important;box-shadow:none!important;border:0!important}

/* ---------- АДМИНКА: ПОЛЕ КОДА С ГЛУБИНОЙ ---------- */
html body .adformal.adformal textarea{
  background:radial-gradient(ellipse at 50% 0,#17140f,#0b0a08 70%)!important;
  color:#ecd9ac!important;border:1px solid #8c7650!important;border-radius:4px!important;
  padding:12px 14px!important;outline:0!important;
  font:13px/1.5 Consolas,'Courier New',monospace!important;
  box-shadow:inset 0 3px 10px rgba(0,0,0,.95),inset 0 0 25px rgba(0,0,0,.6),
    0 0 0 4px #15130f,0 0 0 5px rgba(179,155,108,.4),
    0 6px 16px rgba(0,0,0,.7),0 0 18px rgba(179,155,108,.12)!important;
  transition:box-shadow .25s,border-color .25s}
html body .adformal.adformal textarea:focus{border-color:#d6c093!important;
  box-shadow:inset 0 3px 10px rgba(0,0,0,.95),inset 0 0 25px rgba(0,0,0,.6),
    0 0 0 4px #15130f,0 0 0 5px rgba(214,192,147,.75),
    0 6px 16px rgba(0,0,0,.7),0 0 24px rgba(214,192,147,.35)!important}

/* ---------- АДМИНКА: НАДПИСЬ «ХАРИМИЯ» ---------- */
html body #pun-title#pun-title :is(#title-logo-table,#title-logo-table tbody,#title-logo-tr,#title-logo-tdl,#title-logo-tdr),
html body #pun-title#pun-title h1.title-logo.title-logo{
  background:none!important;background-color:transparent!important;background-image:none!important;
  border:0!important;box-shadow:none!important}
html body #pun-title#pun-title h1.title-logo.title-logo{margin:0!important;padding:6px 4px!important}
html body #pun-title#pun-title h1.title-logo.title-logo span{
  display:inline-block;background:none!important;
  font:700 34px/1.1 'Playfair Display',serif!important;letter-spacing:.06em;
  background-image:linear-gradient(180deg,#f3e2b5 0%,#d6c093 40%,#9c8253 62%,#d9c28f 100%)!important;
  -webkit-background-clip:text!important;background-clip:text!important;
  -webkit-text-fill-color:transparent;color:transparent!important;
  filter:drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(179,155,108,.3))}
/* тонкая латунная черта под надписью */
html body #pun-title#pun-title h1.title-logo.title-logo::after{content:"";display:block;width:100%;height:1px;
  margin-top:6px;background:linear-gradient(90deg,transparent,#b39b6c,transparent)!important}

/* ---------- АДМИНКА: ПОДМЕНЮ ---------- */
/* сбрасываем золотую заливку со всех ссылок подменю */
#pun-adnav#pun-adnav li.isactive .adsubnav a{
  background-image:none!important;color:#b8a88a!important;
  text-shadow:0 1px 0 #000!important;border-left-color:transparent!important}
#pun-adnav#pun-adnav li.isactive .adsubnav a::before{color:#b39b6c!important}

/* золото только у самого пункта */
#pun-adnav#pun-adnav li.isactive > a{color:#1c1a17!important;text-shadow:none!important;
  border-left-color:#e6d3a8!important;background-image:linear-gradient(90deg,#b39b6c,#8c7650)!important}

/* подменю: тонкая латунная линия слева вместо плашек */
#pun-adnav#pun-adnav .adsubnav{margin:2px 0 6px 22px!important;padding:2px 0!important;
  border-left:1px solid rgba(179,155,108,.25)!important}
#pun-adnav#pun-adnav .adsubnav a{padding:4px 12px!important;font-size:13px!important}
#pun-adnav#pun-adnav .adsubnav a:hover{color:#fff3d6!important;padding-left:16px!important;
  background-image:linear-gradient(90deg,rgba(179,155,108,.2),transparent)!important}
/* открытый подпункт, если система его помечает */
#pun-adnav#pun-adnav .adsubnav li.isactive > a{color:#f3e2b5!important;
  border-left-color:#b39b6c!important;
  background-image:linear-gradient(90deg,rgba(179,155,108,.18),transparent)!important}

/* убираем серые квадратики */
#pun-adnav#pun-adnav li,#pun-adnav#pun-adnav .adsubnav li{list-style:none!important}
#pun-adnav#pun-adnav li::marker{content:""!important}
#pun-adnav#pun-adnav li::before,#pun-adnav#pun-adnav .adsubnav li::before{content:none!important;display:none!important}

/* ---------- АДМИНКА: ЗАГОЛОВКИ ОКОН ---------- */
html body .adformal.adformal fieldset{
  position:relative!important;padding:0 0 12px!important;margin:0 0 18px!important;
  border:1px solid rgba(179,155,108,.3)!important;border-radius:3px!important;
  box-shadow:inset 0 1px 0 rgba(255,235,190,.06),0 3px 10px rgba(0,0,0,.5)!important;
  overflow:hidden}
html body .adformal.adformal fieldset > legend{
  float:left!important;width:100%!important;box-sizing:border-box;
  margin:0 0 10px!important;padding:9px 16px 8px!important;
  background:linear-gradient(#2e2a23,#211e19)!important;
  border:0!important;border-bottom:1px solid rgba(179,155,108,.35)!important;
  box-shadow:inset 0 1px 0 rgba(255,235,190,.08),0 2px 6px rgba(0,0,0,.4)!important}
html body .adformal.adformal fieldset > legend,
html body .adformal.adformal fieldset > legend *{
  font:600 15px/1.2 'Playfair Display',serif!important;letter-spacing:.06em;
  color:#d6c093!important;text-shadow:0 1px 0 #000;background:none!important}
html body .adformal.adformal fieldset > legend span::before{
  content:"\2756";margin-right:9px;color:#b39b6c;font-size:12px}
/* содержимое — ниже шапки */
html body .adformal.adformal fieldset > legend + *{clear:both!important}
html body .adformal.adformal fieldset .adfs-box{padding:0 16px!important}

.hxpw-up{margin-left:18px}
/* окно загрузки по центру экрана, пока панель скрыта формой */
body.hxpw-upl .hx-imgpop,body.hxpw-upl .hx-pop{position:fixed!important;left:50%!important;top:50%!important;
  transform:translate(-50%,-50%)!important;right:auto!important;bottom:auto!important}