/* PYO Website v4.3 — Expert Color Redesign */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Almarai:wght@300;400;700;800&display=swap');

/* Prevent Chrome's automatic dark-mode color inversion — site manages its own theming */
html{color-scheme:dark light;forced-color-adjust:none}
#admin-panel{color-scheme:dark light;forced-color-adjust:none}
#admin-panel.admin-light{color-scheme:light}
body:not(.light){color-scheme:dark}
body.light{color-scheme:light}

/* ══════════════════════════════════════════
   EXPERT COLOR SYSTEM
   Light: warm parchment — كرافتسمانشيب فلسطيني
   Dark:  deep navy/obsidian — professional dark
══════════════════════════════════════════ */
:root {
  /* ── DARK PALETTE — deep navy, refined ── */
  --bg:         #0b1118;
  --bg2:        #0e1620;
  --bg3:        #121d2a;
  --card:       #0f1924;
  --card2:      #131e2c;
  --border:     rgba(255,255,255,.07);
  --border2:    rgba(255,255,255,.14);
  --text:       #e6ecf4;
  --text-soft:  rgba(210,222,238,.64);
  --text-mute:  rgba(210,222,238,.38);
  --glass:      rgba(255,255,255,.04);
  --glass2:     rgba(255,255,255,.08);
  --header-bg:  rgba(11,17,24,.95);
  --shadow:     0 4px 24px rgba(0,0,0,.40);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.52);

  /* ── ACCENT — same both modes ── */
  --gold:        #c8922a;
  --gold2:       #dea93c;
  --gold-light:  #f0c96a;
  --emerald:     #16a34a;
  --crimson:     #b91c1c;
  --crimson2:    #ef4444;
  --shadow-gold: 0 0 28px rgba(200,146,42,.22);

  /* ── MISC ── */
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font:       'Cairo', sans-serif;
  --font-d:     'Almarai', sans-serif;
  --sb:         238px;
}

/* ══ LIGHT MODE — warm parchment (matches reference image exactly) ══ */
body.light {
  --bg:         #F7F7F0;   /* warm parchment base */
  --bg2:        #e6dece;   /* slightly darker for sections */
  --bg3:        #dbd3c2;   /* borders/dividers area */
  --card:       #faf5ec;   /* card background — cream white */
  --card2:      #f4eed9;   /* secondary card */
  --border:     rgba(140,100,40,.13);
  --border2:    rgba(140,100,40,.24);
  --text:       #1e1408;   /* deep warm brown for readability */
  --text-soft:  rgba(30,20,8,.66);
  --text-mute:  rgba(30,20,8,.40);
  --glass:      rgba(140,100,40,.05);
  --glass2:     rgba(140,100,40,.09);
  --header-bg:  rgba(240,233,218,.97);
  --shadow:     0 4px 20px rgba(80,50,10,.11);
  --shadow-lg:  0 12px 40px rgba(80,50,10,.17);
}

/* ══ RESET ══ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:hidden}
body{
  font-family:var(--font);background:var(--bg);color:var(--text);
  direction:rtl;overflow-x:hidden;-webkit-font-smoothing:antialiased;
  line-height:1.7;transition:background .35s,color .35s;
  display:flex;flex-direction:column;min-height:100vh;
}
#public-site{display:flex;flex-direction:column;flex:1}
.site-main{flex:1}
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:var(--bg2)}
::-webkit-scrollbar-thumb{background:var(--gold);border-radius:4px}
img{max-width:100%;display:block}
button{font-family:var(--font);cursor:pointer}
input,textarea,select{font-family:var(--font)}
a{color:var(--gold2);text-decoration:none}
body>.skiptranslate{display:none!important}
.goog-te-banner-frame{display:none!important}
body{top:0!important}
#google_translate_element{display:none}

/* ══ LOADING — instant, zero delay ══ */
#app-loading{display:none!important}

/* ══ THEME TOGGLE ══ */
.theme-btn{

/* ══ LIGHT MODE — Old site colors exactly ══ */
body.light {
  --bg:         #f7f5f0;
  --bg2:        #ede8de;
  --bg3:        #e0d9cc;
  --card:       #ffffff;
  --card2:      #f7f5f0;
  --border:     rgba(15,25,35,.12);
  --border2:    rgba(15,25,35,.20);
  --text:       #1a1a1a;
  --text-soft:  rgba(26,26,26,.58);
  --text-mute:  rgba(26,26,26,.38);
  --glass:      rgba(15,25,35,.04);
  --glass2:     rgba(15,25,35,.07);
  --header-bg:  rgba(247,245,240,.97);
  --shadow:     0 1px 4px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.12);
}

  width:34px;height:34px;border-radius:8px;
  border:1px solid var(--border2);background:var(--glass);
  color:var(--text);font-size:16px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all var(--transition);flex-shrink:0;
}
.theme-btn:hover{border-color:var(--gold);color:var(--gold)}

/* ══ ADMIN TOP BAR ══ */
#admin-top-bar{
  display:none;position:fixed;top:0;left:0;right:0;z-index:600;
  background:#0a0f18;backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(200,146,42,.35);
  padding:0 16px;height:36px;
  align-items:center;gap:10px;font-size:12px;color:rgba(220,228,240,.55);
}
#admin-top-bar.visible{display:flex}
#admin-top-bar button,#admin-top-bar a{
  color:rgba(220,228,240,.55);text-decoration:none;border:none;
  background:none;font-family:var(--font);font-size:12px;
  cursor:pointer;padding:0 8px;transition:color var(--transition);
}
#admin-top-bar button:hover,#admin-top-bar a:hover{color:var(--gold)}
#wab-post-count{margin-right:auto}
#wab-user-label{font-size:11px;color:rgba(220,228,240,.38);cursor:pointer}
#wab-user-label:hover{color:var(--gold)}
#admin-login-btn{
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#000;padding:2px 12px;border-radius:4px;font-weight:800;font-size:11px;
}

/* ══ HEADER ══ */
#site-header{
  position:fixed;top:0;left:0;right:0;z-index:500;
  background:var(--header-bg);backdrop-filter:blur(18px) saturate(180%);
  border-bottom:1px solid var(--border);
  transition:top .3s ease,background .35s;
}
#admin-top-bar.visible ~ #public-site #site-header{top:36px}

.header-inner{
  max-width:1320px;margin:0 auto;padding:0 18px;
  display:flex;align-items:center;gap:10px;height:58px;
}
.header-logo{display:flex;align-items:center;gap:10px;flex-shrink:0;cursor:pointer}
.header-logo-img{
  width:38px;height:38px;border-radius:50%;
  border:2px solid var(--gold);overflow:hidden;
  box-shadow:0 0 12px rgba(200,146,42,.22);flex-shrink:0;
}
.header-logo-img img{width:100%;height:100%;object-fit:cover}
.site-name-main{font-size:14px;font-weight:900;color:var(--text);line-height:1.2;white-space:nowrap}
.site-name-sub{font-size:9px;color:var(--gold);font-weight:600;white-space:nowrap}

nav#site-nav{
  display:flex;align-items:center;gap:2px;flex:1;
  overflow-x:auto;scrollbar-width:none;
}
nav#site-nav::-webkit-scrollbar{display:none}
.nav-link{
  padding:5px 11px;border-radius:6px;border:none;
  background:none;color:var(--text-soft);
  font-family:var(--font);font-size:13px;font-weight:600;
  cursor:pointer;transition:all var(--transition);white-space:nowrap;
}
.nav-link:hover{color:var(--text);background:var(--glass2)}
.nav-link.active{color:var(--gold);background:rgba(200,146,42,.1)}

.header-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.translate-btn{
  display:flex;align-items:center;gap:5px;
  padding:5px 9px;border-radius:6px;border:1px solid var(--border2);
  background:var(--glass);color:var(--text-soft);
  font-size:12px;font-weight:700;cursor:pointer;transition:all var(--transition);
}
.translate-btn:hover{border-color:var(--gold);color:var(--gold)}
.about-nav-btn{
  padding:5px 13px;border-radius:6px;
  border:1px solid var(--border2);background:var(--glass);
  color:var(--text-soft);font-family:var(--font);
  font-size:13px;font-weight:600;cursor:pointer;transition:all var(--transition);
}
.about-nav-btn:hover{border-color:var(--gold);color:var(--gold)}
.admin-panel-btn{
  padding:5px 13px;border-radius:6px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#000;font-family:var(--font);font-size:12px;font-weight:900;
  border:none;cursor:pointer;transition:all var(--transition);
}
.admin-panel-btn:hover{opacity:.88;transform:translateY(-1px)}

/* Mobile hamburger = admin button */
.hamburger-btn{
  display:none;align-items:center;justify-content:center;
  padding:6px 11px;border-radius:7px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#000;border:none;cursor:pointer;
  font-family:var(--font);font-size:11px;font-weight:900;
  white-space:nowrap;gap:4px;transition:all var(--transition);flex-shrink:0;
}
.hamburger-btn:hover{opacity:.88}
.hbg-icon{font-size:13px}
.hbg-label{font-size:11px;font-weight:900}

/* Mobile Nav Drawer */
.mobile-nav{
  display:none;position:fixed;top:58px;left:0;right:0;
  background:var(--header-bg);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  padding:8px 12px;z-index:499;
  flex-direction:column;gap:2px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.mobile-nav.open{display:flex}
.mobile-nav .nav-link{text-align:right;padding:10px 14px;font-size:14px;border-radius:8px}
.mobile-nav .nav-admin-link{
  text-align:right;padding:10px 14px;font-size:13px;font-weight:900;
  color:var(--gold);border:none;background:rgba(200,146,42,.08);
  border-radius:8px;cursor:pointer;font-family:var(--font);
  transition:all var(--transition);width:100%;margin-top:4px;
}
.mobile-nav .nav-admin-link:hover{background:rgba(200,146,42,.15)}

/* ══ TICKER — matches reference ══ */
#ticker-bar{
  background:#1a2232;
  display:flex;align-items:center;
  overflow:hidden;height:34px;position:relative;z-index:1;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.ticker-label{
  background:#7a1818;color:#fff;
  padding:0 16px;font-size:10px;font-weight:900;
  letter-spacing:2px;white-space:nowrap;height:100%;
  display:flex;align-items:center;gap:7px;flex-shrink:0;
  text-transform:uppercase;
}
.ticker-dot{
  width:7px;height:7px;border-radius:50%;
  background:#ff6b6b;animation:blink 1.4s infinite;flex-shrink:0;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}
.ticker-track{flex:1;overflow:hidden}
#ticker-text{
  display:inline-block;white-space:nowrap;
  color:rgba(205,215,230,.85);font-size:13px;font-weight:500;
  animation:tickScroll 38s linear infinite;padding-right:100%;
}
@keyframes tickScroll{from{transform:translateX(-100%)}to{transform:translateX(100%)}}

/* Light mode ticker adjustment */
body.light #ticker-bar{background:#1a2232}
body.light #ticker-text{color:rgba(205,215,230,.85)}

/* ══ CAT BAR ══ */
#cat-bar{
  background:var(--bg2);
  border-bottom:1px solid var(--border);
  padding:0 16px;display:flex;align-items:center;gap:2px;
  overflow-x:auto;scrollbar-width:none;height:40px;
  position:sticky;top:92px;z-index:300;
}
#admin-top-bar.visible ~ #public-site #cat-bar{top:128px}
body.admin-bar-visible #cat-bar{top:128px}
#cat-bar::-webkit-scrollbar{display:none}
.cat-pill{
  padding:4px 14px;border-radius:0;border:none;
  background:none;color:var(--text-soft);
  font-family:var(--font);font-size:13px;font-weight:600;
  cursor:pointer;transition:all var(--transition);white-space:nowrap;
  flex-shrink:0;position:relative;height:40px;display:flex;align-items:center;
}
.cat-pill::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
  background:var(--gold);transform:scaleX(0);transition:transform var(--transition);
}
.cat-pill:hover{color:var(--text)}.cat-pill:hover::after{transform:scaleX(1)}
.cat-pill.active{color:var(--text);font-weight:800}.cat-pill.active::after{transform:scaleX(1)}

/* ══ HERO — Kufiya canvas background ══ */
.hero-section{
  position:relative;overflow:hidden;
  min-height:82vh;display:flex;align-items:center;
  background:var(--bg);
  transition:min-height .4s ease,padding .4s ease;
  padding-top:170px;
}
.hero-section.compact{min-height:0;padding:60px 0 0!important;height:auto}
.hero-section.compact .hero-content{padding:28px 20px 20px}
.hero-section.compact .hero-logo-wrap{width:60px;height:60px;margin-bottom:10px}
.hero-section.compact #hero-title{font-size:20px}
.hero-section.compact #hero-desc,.hero-section.compact .hero-cta{display:none}

#hero-canvas{display:none}
body.light #hero-canvas{display:none}

/* ══ KUFIYA PATTERN — CSS animation (olive branches, original style) ══ */
.hero-kufiya{
  position:absolute;inset:0;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg opacity='0.9'%3E%3Cellipse cx='30' cy='60' rx='12' ry='22' fill='%233d5a36' transform='rotate(-30 30 60)'/%3E%3Cellipse cx='60' cy='25' rx='10' ry='20' fill='%233d5a36' transform='rotate(15 60 25)'/%3E%3Cellipse cx='90' cy='70' rx='11' ry='21' fill='%233d5a36' transform='rotate(-45 90 70)'/%3E%3Cellipse cx='20' cy='95' rx='9' ry='18' fill='%234a7040' transform='rotate(20 20 95)'/%3E%3Cellipse cx='75' cy='100' rx='10' ry='19' fill='%233d5a36' transform='rotate(-20 75 100)'/%3E%3Ccircle cx='28' cy='52' r='3' fill='%23b8860b'/%3E%3Ccircle cx='58' cy='18' r='2.5' fill='%23b8860b'/%3E%3Ccircle cx='88' cy='62' r='2.5' fill='%23b8860b'/%3E%3Cline x1='30' y1='60' x2='55' y2='35' stroke='%235a7a52' stroke-width='1.2' opacity='0.6'/%3E%3Cline x1='60' y1='25' x2='85' y2='55' stroke='%235a7a52' stroke-width='1.2' opacity='0.6'/%3E%3Cline x1='20' y1='95' x2='75' y2='100' stroke='%235a7a52' stroke-width='1' opacity='0.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size:120px 120px;
  animation:oliveFloat 20s linear infinite;
  opacity:.22;
  z-index:0;
}
body.light .hero-kufiya{opacity:.28}
@keyframes oliveFloat{
  from{background-position:0 0}
  to{background-position:120px 120px}
}

/* Glow overlays */
.hero-glow{
  position:absolute;width:500px;height:500px;border-radius:50%;
  background:radial-gradient(circle,rgba(184,134,11,.09) 0%,transparent 70%);
  top:-150px;left:-100px;pointer-events:none;z-index:0;
}
.hero-glow-2{
  position:absolute;width:300px;height:300px;border-radius:50%;
  background:radial-gradient(circle,rgba(61,90,54,.2) 0%,transparent 70%);
  bottom:-80px;right:10%;pointer-events:none;z-index:0;
}

.hero-pal-overlay{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse 80% 60% at 50% 0%,rgba(200,146,42,.07) 0%,transparent 60%);
}
body.light .hero-pal-overlay{
  background:radial-gradient(ellipse 70% 60% at 50% 50%,rgba(200,146,42,.04) 0%,transparent 70%);
}

.hero-content{
  position:relative;z-index:2;
  max-width:820px;margin:0 auto;
  padding:48px 20px 44px;text-align:center;width:100%;
}
.hero-logo-wrap{
  margin:0 auto 22px;width:100px;height:100px;
  border-radius:50%;border:3px solid var(--gold);overflow:hidden;
  box-shadow:0 0 32px rgba(200,146,42,.25),0 0 64px rgba(200,146,42,.08);
  animation:logoPulse 3.5s ease-in-out infinite;transition:all .4s ease;
}
@keyframes logoPulse{
  0%,100%{box-shadow:0 0 32px rgba(200,146,42,.25),0 0 64px rgba(200,146,42,.08)}
  50%{box-shadow:0 0 52px rgba(200,146,42,.42),0 0 96px rgba(200,146,42,.16)}
}
.hero-logo-wrap img{width:100%;height:100%;object-fit:cover}

.hero-eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  background:rgba(200,146,42,.12);border:1px solid rgba(200,146,42,.32);
  color:var(--gold);padding:4px 13px;border-radius:20px;
  font-size:11px;font-weight:700;letter-spacing:1.5px;
  margin-bottom:14px;text-transform:uppercase;
}
.eyebrow-dot{width:6px;height:6px;background:var(--gold);border-radius:50%;animation:blink 1.5s infinite}

#hero-title{
  font-family:var(--font-d);font-size:clamp(26px,4.5vw,50px);
  font-weight:800;line-height:1.3;color:var(--text);margin-bottom:14px;
}
#hero-title em{font-style:normal;color:var(--gold)}
body.light #hero-title em{text-shadow:0 1px 12px rgba(200,146,42,.2)}

#hero-desc{
  font-size:15px;color:var(--text-soft);line-height:1.8;
  margin-bottom:26px;max-width:580px;margin-left:auto;margin-right:auto;
}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.btn-primary{
  padding:11px 26px;border-radius:8px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#000;font-size:14px;font-weight:900;
  border:none;cursor:pointer;transition:all var(--transition);
  box-shadow:0 4px 18px rgba(200,146,42,.32);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(200,146,42,.44)}
.btn-secondary{
  padding:11px 22px;border-radius:8px;
  border:1px solid var(--border2);background:var(--glass);
  color:var(--text);font-size:14px;font-weight:700;
  cursor:pointer;transition:all var(--transition);
}
.btn-secondary:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px)}
body.light .btn-secondary{background:rgba(255,255,255,.55);backdrop-filter:blur(8px)}

/* Palestinian flag strip */
.hero-flag{position:absolute;bottom:0;left:0;right:0;height:4px;display:flex;z-index:3}
.hero-flag span{flex:1}
.fs-r{background:#CE1126;flex:.6!important}
.fs-b{background:#000}
.fs-w{background:#fff}
.fs-g{background:#007A3D}

/* ══ MAIN ══ */
.site-main{max-width:1320px;margin:0 auto;padding:36px 16px;width:100%}

/* Section Header */
.sec-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.sec-title{font-family:var(--font-d);font-size:18px;font-weight:800;color:var(--text);position:relative}
.sec-title::before{content:'';position:absolute;right:-11px;top:50%;transform:translateY(-50%);width:3px;height:18px;background:var(--gold);border-radius:2px}
.sec-count{background:rgba(200,146,42,.14);border:1px solid rgba(200,146,42,.28);color:var(--gold);padding:2px 9px;border-radius:12px;font-size:11px;font-weight:700}
.sec-line{flex:1;height:1px;background:linear-gradient(90deg,rgba(200,146,42,.28),transparent)}

/* Featured */
.featured-article{
  display:grid;grid-template-columns:1.15fr 1fr;
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius-xl);overflow:hidden;
  cursor:pointer;transition:all var(--transition);
  margin-bottom:12px;box-shadow:var(--shadow);
}
.featured-article:hover{border-color:rgba(200,146,42,.3);box-shadow:var(--shadow-gold),var(--shadow-lg);transform:translateY(-2px)}
.fa-visual{position:relative;min-height:280px;overflow:hidden}
.fa-img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.featured-article:hover .fa-img{transform:scale(1.04)}
.fa-placeholder{width:100%;height:100%;min-height:280px;display:flex;align-items:center;justify-content:center;font-size:56px;background:linear-gradient(135deg,var(--bg2),var(--bg3))}
.fa-overlay{position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(0,0,0,.32))}
body.light .fa-overlay{background:linear-gradient(90deg,transparent,rgba(50,30,10,.15))}
.fa-body{padding:26px 22px;display:flex;flex-direction:column;justify-content:center;gap:10px}
.fa-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.fa-source{font-size:12px;color:var(--text-soft);font-weight:600}
.fa-sep{width:3px;height:3px;background:var(--text-mute);border-radius:50%}
.fa-date{font-size:12px;color:var(--text-mute)}
.fa-title{font-family:var(--font-d);font-size:clamp(15px,2.2vw,20px);font-weight:800;color:var(--text);line-height:1.4}
.fa-excerpt{font-size:13px;color:var(--text-soft);line-height:1.7}
.fa-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px}
.fa-author{font-size:11px;color:var(--text-mute)}
.read-more{
  padding:6px 14px;border-radius:6px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#000;font-size:12px;font-weight:900;
  border:none;cursor:pointer;transition:all var(--transition);
}
.read-more:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(200,146,42,.3)}

.cat-badge{position:absolute;top:10px;right:10px;padding:3px 9px;border-radius:5px;color:#fff;font-size:10px;font-weight:800}

/* Cards */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:15px}
.news-card{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius-lg);overflow:hidden;
  cursor:pointer;transition:all var(--transition);box-shadow:var(--shadow);
}
.news-card:hover{border-color:rgba(200,146,42,.3);transform:translateY(-3px);box-shadow:var(--shadow-gold),var(--shadow-lg)}
.nc-visual{position:relative;height:180px;overflow:hidden}
.nc-visual img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.news-card:hover .nc-visual img{transform:scale(1.05)}
.nc-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:34px;background:linear-gradient(135deg,var(--bg2),var(--bg3))}
.nc-body{padding:15px}
.nc-source{font-size:11px;color:var(--text-mute);font-weight:600;margin-bottom:5px}
.nc-title{font-size:14px;font-weight:800;color:var(--text);line-height:1.42;margin-bottom:7px}
.nc-excerpt{font-size:12px;color:var(--text-soft);line-height:1.6;margin-bottom:9px}
.nc-footer{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--text-mute)}

/* Share Buttons */
.share-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}
.share-btn{
  width:32px;height:32px;border-radius:7px;
  border:1px solid var(--border);background:var(--glass);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all var(--transition);overflow:hidden;padding:0;
}
.share-btn:hover{transform:translateY(-2px);border-color:transparent;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.share-btn.wa:hover{background:#25D366}.share-btn.fb:hover{background:#1877F2}
.share-btn.tw:hover{background:#000}.share-btn.tg:hover{background:#2CA5E0}
.share-btn.cp:hover{background:var(--gold)}

.share-large-row{display:flex;gap:8px;flex-wrap:wrap}
.slb{
  display:flex;align-items:center;gap:7px;padding:8px 14px;border-radius:7px;
  border:1px solid var(--border);background:var(--glass);
  color:var(--text);font-size:13px;font-weight:700;
  cursor:pointer;transition:all var(--transition);
}
.slb:hover{transform:translateY(-2px)}
.slb.wa:hover{background:#25D366;border-color:#25D366;color:#fff}
.slb.fb:hover{background:#1877F2;border-color:#1877F2;color:#fff}
.slb.tw:hover{background:#000;border-color:#000;color:#fff}
.slb.tg:hover{background:#2CA5E0;border-color:#2CA5E0;color:#fff}
.slb.cp:hover{background:var(--gold);border-color:var(--gold);color:#000}

.load-more-wrap{text-align:center;margin-top:32px}
.load-more-btn{
  padding:10px 30px;border-radius:8px;
  border:1px solid var(--border2);background:var(--glass);
  color:var(--text);font-size:14px;font-weight:700;
  cursor:pointer;transition:all var(--transition);
}
.load-more-btn:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px)}

.empty-state{text-align:center;padding:60px 24px;color:var(--text-soft)}

.admin-card-bar{display:none;gap:5px;margin-top:9px;padding-top:9px;border-top:1px solid var(--border)}
body.is-admin .admin-card-bar{display:flex}
.acb-edit{padding:3px 9px;border-radius:4px;border:none;background:rgba(34,113,177,.15);color:#5a9fd4;font-size:11px;font-weight:700;font-family:var(--font);cursor:pointer}
.acb-del{padding:3px 9px;border-radius:4px;border:none;background:rgba(185,28,28,.15);color:#e07070;font-size:11px;font-weight:700;font-family:var(--font);cursor:pointer}

/* ══ ARTICLE PAGE ══ */
#page-article{display:none}
.art-back{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 15px;border-radius:7px;
  border:1px solid var(--border2);background:var(--glass);
  color:var(--text-soft);font-size:13px;font-weight:600;
  cursor:pointer;transition:all var(--transition);margin-bottom:18px;
}
.art-back:hover{color:var(--gold);border-color:var(--gold)}
.art-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow)}
.art-cover{position:relative;height:360px;overflow:hidden}
.art-cover img{width:100%;height:100%;object-fit:cover}
.ac-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:66px;background:linear-gradient(135deg,var(--bg2),var(--bg3))}
.art-body{padding:28px 24px}
.art-meta-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap;gap:8px}
.art-cats{display:flex;gap:7px;flex-wrap:wrap}
.art-cat-tag{padding:3px 11px;border-radius:5px;color:#fff;font-size:10px;font-weight:800}
.art-views{display:flex;align-items:center;gap:4px;background:var(--glass2);padding:3px 11px;border-radius:11px;font-size:12px;color:var(--text-mute)}
.art-title{font-family:var(--font-d);font-size:clamp(20px,3vw,28px);font-weight:800;color:var(--text);line-height:1.35;margin-bottom:11px}
.art-byline{display:flex;gap:14px;font-size:13px;color:var(--text-mute);margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.art-content{font-size:15px;line-height:1.9;color:var(--text-soft)}
.art-content p{margin-bottom:13px}
.art-content h1,.art-content h2,.art-content h3{color:var(--text);margin:18px 0 9px}
.art-content img{border-radius:8px;margin:13px 0}
.art-content blockquote{border-right:3px solid var(--gold);padding:10px 13px;background:rgba(200,146,42,.06);border-radius:0 7px 7px 0;margin:15px 0}
.art-images-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:9px;margin:18px 0}
.art-images-gallery img{border-radius:7px;cursor:pointer;transition:transform var(--transition);aspect-ratio:16/10;object-fit:cover}
.art-images-gallery img:hover{transform:scale(1.03)}
.art-video-wrap{position:relative;padding-bottom:56.25%;margin:18px 0;border-radius:8px;overflow:hidden}
.art-video-wrap iframe{position:absolute;inset:0;width:100%;height:100%}
.art-share-section{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.art-share-section h4{font-size:13px;color:var(--text-mute);margin-bottom:11px}

.related-section{margin-top:36px}
.related-title{font-family:var(--font-d);font-size:17px;font-weight:800;color:var(--text);margin-bottom:14px}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.related-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;cursor:pointer;transition:all var(--transition)}
.related-card:hover{border-color:rgba(200,146,42,.3);transform:translateY(-3px)}
.related-card-img{width:100%;height:125px;object-fit:cover}
.related-card-ph{width:100%;height:125px;display:flex;align-items:center;justify-content:center;font-size:30px;background:var(--bg2)}
.related-card-body{padding:11px}
.related-card-cat{font-size:10px;font-weight:800;margin-bottom:4px}
.related-card-title{font-size:13px;font-weight:700;color:var(--text);line-height:1.4;margin-bottom:4px}
.related-card-date{font-size:11px;color:var(--text-mute)}

/* ══ ABOUT PAGE ══ */
#page-about{display:none}
.about-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-xl);padding:26px;margin-bottom:14px;box-shadow:var(--shadow)}
.about-card h3{font-family:var(--font-d);font-size:17px;font-weight:800;color:var(--gold);margin-bottom:13px}
.about-card p{font-size:14px;color:var(--text-soft);line-height:1.85;margin-bottom:11px}
.about-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.about-list{list-style:none;display:flex;flex-direction:column;gap:7px}
.about-list li{padding:8px 12px;border-radius:7px;background:var(--glass);border:1px solid var(--border);font-size:13px;color:var(--text-soft);display:flex;align-items:center;gap:9px}
.about-list li::before{content:'◆';color:var(--gold);font-size:8px;flex-shrink:0}
.timeline{display:flex;flex-direction:column;gap:0;position:relative}
.timeline::before{content:'';position:absolute;right:32px;top:0;bottom:0;width:2px;background:linear-gradient(180deg,var(--gold),rgba(200,146,42,.15))}
.tl-item{display:flex;gap:14px;align-items:flex-start;padding-bottom:18px;position:relative}
.tl-year{min-width:64px;padding:4px 8px;border-radius:18px;background:var(--gold);color:#000;font-size:11px;font-weight:900;text-align:center;position:relative;z-index:1;flex-shrink:0;box-shadow:0 0 0 3px var(--card),0 0 0 5px rgba(200,146,42,.25)}
.tl-text{font-size:13px;color:var(--text-soft);line-height:1.7;padding-top:5px}

/* ══ FOOTER — always visible at bottom ══ */
#site-footer{
  background:var(--bg2);border-top:1px solid var(--border);
  padding:44px 16px 0;
  width:100%;flex-shrink:0;
  margin-top:auto;
}
body.light #site-footer{
  background:#ddd5c4;border-top-color:rgba(120,90,40,.18);
}
.footer-inner{max-width:1320px;margin:0 auto}
.footer-top{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;
  padding-bottom:30px;border-bottom:1px solid var(--border);
}
.footer-brand{display:flex;flex-direction:column;gap:12px}
.footer-logo{display:flex;align-items:center;gap:10px}
.footer-logo img{width:44px;height:44px;border-radius:50%;border:2px solid var(--gold);object-fit:cover;object-position:center;flex-shrink:0}
.fl-name{font-size:14px;font-weight:900;color:var(--text)}
.fl-url{font-size:10px;color:var(--text-mute)}
.footer-desc{font-size:12px;color:var(--text-mute);line-height:1.8}
.footer-col-title{font-size:12px;font-weight:900;color:var(--text);margin-bottom:13px;letter-spacing:.5px;text-transform:uppercase}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.footer-col ul li{font-size:12px;color:var(--text-soft);cursor:pointer;transition:color var(--transition)}
.footer-col ul li:hover{color:var(--gold)}
#footer-social-row{display:flex;flex-direction:column;gap:7px}
.fg-btn{
  display:flex;align-items:center;gap:7px;padding:7px 11px;border-radius:6px;
  border:1px solid var(--border);background:var(--glass);
  color:var(--text-soft);font-size:12px;font-weight:600;
  cursor:pointer;transition:all var(--transition);text-decoration:none;
}
.fg-btn:hover{border-color:var(--gold);color:var(--gold)}
.footer-bottom{
  padding:24px 0 28px;display:flex;flex-direction:column;align-items:center;gap:12px;
  border-top:1px solid var(--border);
}
.footer-slogan-center{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:800;color:var(--gold)}
.footer-slogan-logo{width:38px;height:38px;border-radius:50%;border:2px solid var(--gold);overflow:hidden;flex-shrink:0}
.footer-slogan-logo img{width:100%;height:100%;object-fit:cover}
.footer-copy{font-size:11px;color:var(--text-mute);text-align:center}

/* ══ LIGHTBOX ══ */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.95);z-index:9000;align-items:center;justify-content:center}
#lightbox.open{display:flex}
#lightbox img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:8px}
.lb-close{position:absolute;top:18px;left:18px;background:rgba(255,255,255,.1);border:none;color:#fff;width:38px;height:38px;border-radius:50%;font-size:19px;cursor:pointer;display:flex;align-items:center;justify-content:center}

/* ══ TOAST ══ */
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--card);border:1px solid var(--border);color:var(--text);padding:10px 20px;border-radius:8px;font-size:13px;font-weight:600;z-index:9999;opacity:0;transition:all .3s;pointer-events:none;box-shadow:var(--shadow-lg);white-space:nowrap}
.toast.show{opacity:1}
.toast.success{border-color:var(--emerald);color:#22c55e}
.toast.error{border-color:var(--crimson);color:var(--crimson2)}
.toast.info{border-color:rgba(59,130,246,.5);color:#93c5fd}

/* ══ LOGIN ══ */
#login-modal{display:none;position:fixed;inset:0;background:rgba(8,13,18,.97);backdrop-filter:blur(12px);z-index:8000;align-items:center;justify-content:center}
#login-modal.open{display:flex}
.login-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-xl);padding:38px 30px;width:350px;text-align:center;box-shadow:var(--shadow-lg);animation:slideUp .3s ease;position:relative}
@keyframes slideUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
.lc-logo{width:65px;height:65px;border-radius:50%;margin:0 auto 13px;border:2px solid var(--gold);overflow:hidden;box-shadow:var(--shadow-gold)}
.lc-logo img{width:100%;height:100%;object-fit:cover}
.login-card h2{color:var(--text);font-size:17px;font-weight:900;margin-bottom:3px}
.login-card p{color:var(--text-mute);font-size:12px;margin-bottom:22px}
.lc-field{width:100%;padding:11px 13px;margin-bottom:10px;background:var(--glass);border:1px solid var(--border2);border-radius:var(--radius);color:var(--text);font-size:14px;outline:none;transition:border-color var(--transition);direction:ltr;text-align:right}
.lc-field:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,146,42,.1)}
.lc-btn{width:100%;padding:12px;border-radius:var(--radius);background:linear-gradient(135deg,var(--gold),var(--gold2));color:#000;font-size:15px;font-weight:900;border:none;cursor:pointer;transition:all var(--transition);margin-top:3px}
.lc-btn:hover{box-shadow:var(--shadow-gold)}
.lc-err{background:rgba(185,28,28,.1);border:1px solid rgba(185,28,28,.3);color:var(--crimson2);padding:7px 11px;border-radius:var(--radius);font-size:12px;margin-top:9px;display:none}
.lc-close{position:absolute;top:13px;left:13px;background:none;border:none;color:var(--text-mute);font-size:19px;cursor:pointer}

/* ══════════════════════════════════════════
   ADMIN PANEL — Full light/dark support
══════════════════════════════════════════ */
/* Decouple admin panel's variables from the public site's body.light theme */
#admin-panel{
  --bg:#0b1118; --bg2:#0e1620; --bg3:#121d2a;
  --card:#0f1924; --card2:#131e2c;
  --border:rgba(255,255,255,.07); --border2:rgba(255,255,255,.14);
  --text:#e6ecf4; --text-soft:rgba(210,222,238,.64); --text-mute:rgba(210,222,238,.38);
  --glass:rgba(255,255,255,.04); --glass2:rgba(255,255,255,.08);
}
#admin-panel.admin-light{
  --bg:#f0f0f1; --bg2:#e3dac8; --bg3:#ddd4c0;
  --card:#ffffff; --card2:#f7f5f0;
  --border:#c3c4c7; --border2:rgba(140,100,40,.24);
  --text:#1d2327; --text-soft:#646970; --text-mute:rgba(29,35,39,.5);
  --glass:rgba(0,0,0,.03); --glass2:rgba(0,0,0,.06);
}
#admin-panel{
  display:none;position:fixed;inset:0;
  background:#090e18;z-index:1000;
  flex-direction:row;direction:rtl;
}
#admin-panel.open{display:flex}

/* Light mode admin */
#admin-panel.admin-light{background:#ede5d8}

/* Sidebar */
.adm-sb{
  width:var(--sb);background:#060b12;
  border-left:1px solid rgba(255,255,255,.05);
  display:flex;flex-direction:column;flex-shrink:0;
  overflow-y:auto;scrollbar-width:thin;
  scrollbar-color:rgba(200,146,42,.3) transparent;
}
#admin-panel.admin-light .adm-sb{background:#d5c9b8;border-left-color:rgba(0,0,0,.1)}

.sb-hd{padding:16px 14px;border-bottom:1px solid rgba(255,255,255,.05);display:flex;align-items:center;gap:10px}
#admin-panel.admin-light .sb-hd{border-bottom-color:rgba(0,0,0,.08)}
.sb-logo-img{width:32px;height:32px;border-radius:50%;border:1.5px solid var(--gold);overflow:hidden;flex-shrink:0}
.sb-logo-img img{width:100%;height:100%;object-fit:cover}
.sb-brand-n{font-size:12px;font-weight:900;color:#fff;line-height:1.2}
#admin-panel.admin-light .sb-brand-n {color:#1e1208}
.sb-brand-s{font-size:9px;color:rgba(200,146,42,.75);letter-spacing:1px}

.sb-user{padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.05);display:flex;align-items:center;gap:9px}
#admin-panel.admin-light .sb-user {border-bottom-color:rgba(0,0,0,.08)}
.sb-av{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold2));display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;color:#000;flex-shrink:0}
#sb-user-email{font-size:11px;color:rgba(220,228,240,.42);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#admin-panel.admin-light #sb-user-email {color:rgba(44,31,14,.5)}

.sb-nav{flex:1;padding:8px 7px;display:flex;flex-direction:column;gap:1px}
.sb-label{font-size:9px;font-weight:800;color:rgba(220,228,240,.2);letter-spacing:1.5px;text-transform:uppercase;padding:8px 8px 3px}
#admin-panel.admin-light .sb-label {color:rgba(44,31,14,.3)}
.sb-item{display:flex;align-items:center;gap:9px;padding:8px 11px;border-radius:7px;color:rgba(220,228,240,.44);font-size:12px;font-weight:600;cursor:pointer;transition:all var(--transition);border:none;background:none;font-family:var(--font);text-align:right;width:100%}
.sb-item:hover{background:rgba(255,255,255,.06);color:rgba(220,228,240,.8)}
.sb-item.active{background:rgba(200,146,42,.12);color:var(--gold)}
#admin-panel.admin-light .sb-item {color:rgba(44,31,14,.5)}
#admin-panel.admin-light .sb-item:hover {background:rgba(0,0,0,.06);color:rgba(44,31,14,.85)}
#admin-panel.admin-light .sb-item.active {background:rgba(200,146,42,.18);color:#9a6b12}
.sb-icon{font-size:14px;flex-shrink:0;opacity:.75}
.sb-item.active .sb-icon{opacity:1}

.sb-foot{padding:11px 7px;border-top:1px solid rgba(255,255,255,.05)}
#admin-panel.admin-light .sb-foot {border-top-color:rgba(0,0,0,.08)}
.sb-logout{width:100%;padding:8px 11px;border-radius:7px;background:rgba(185,28,28,.1);border:1px solid rgba(185,28,28,.14);color:rgba(239,68,68,.75);font-family:var(--font);font-size:12px;font-weight:700;cursor:pointer;transition:all var(--transition);text-align:right}
.sb-logout:hover{background:rgba(185,28,28,.22);color:var(--crimson2)}

#sb-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:999;backdrop-filter:blur(4px)}
#sb-overlay.visible{display:block}

/* Admin Main */
.adm-main{flex:1;display:flex;flex-direction:column;overflow:hidden}
.adm-topbar{
  background:#060b12;border-bottom:1px solid rgba(255,255,255,.05);
  padding:0 18px;height:56px;display:flex;align-items:center;
  justify-content:space-between;flex-shrink:0;gap:14px;
}
#admin-panel.admin-light .adm-topbar{background:#cec0aa;border-bottom-color:rgba(0,0,0,.1)}
#adm-page-title{font-size:15px;font-weight:900;color:#fff;display:flex;align-items:center;gap:11px}
#admin-panel.admin-light #adm-page-title{color:#1e1208}
#adm-tb-actions{display:flex;gap:9px;align-items:center}
.adm-hbg{display:none;background:none;border:none;color:rgba(220,228,240,.5);font-size:19px;cursor:pointer;padding:5px;border-radius:6px}
.adm-hbg:hover{color:#fff;background:rgba(255,255,255,.06)}
.adm-translate-btn{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#dce4f0;font-size:13px;padding:6px 12px;border-radius:8px;cursor:pointer;margin-inline-end:8px}
.adm-translate-btn:hover{background:rgba(255,255,255,.12)}
#admin-panel.admin-light .adm-translate-btn{background:rgba(0,0,0,.05);border-color:rgba(0,0,0,.1);color:#2c1f0e}
#admin-panel.admin-light .adm-translate-btn:hover{background:rgba(0,0,0,.1)}
#admin-panel.admin-light .adm-hbg{color:rgba(44,31,14,.5)}#admin-panel.admin-light .adm-hbg:hover{color:#1e1208;background:rgba(0,0,0,.06)}

.adm-content{
  flex:1;overflow-y:auto;padding:18px;
  background:#0d1421;
  scrollbar-width:thin;scrollbar-color:rgba(200,146,42,.3) transparent;
}
#admin-panel.admin-light .adm-content{background:#e8dfd0}

/* Admin boxes */
.adm-box{background:#111e30;border:1px solid rgba(255,255,255,.06);border-radius:11px;overflow:hidden;margin-bottom:13px}
.adm-box:last-child{margin-bottom:0}
#admin-panel.admin-light .adm-box{background:#f0e8d8;border-color:rgba(0,0,0,.09)}
.adm-box-hd{background:#0d1927;padding:10px 15px;border-bottom:1px solid rgba(255,255,255,.05);display:flex;align-items:center;justify-content:space-between}
#admin-panel.admin-light .adm-box-hd{background:#e4d8c4;border-bottom-color:rgba(0,0,0,.08)}
.adm-box-hd h3{font-size:12.5px;font-weight:800;color:rgba(220,228,240,.82);display:flex;align-items:center;gap:7px}
#admin-panel.admin-light .adm-box-hd h3{color:rgba(44,31,14,.78)}
.adm-box-bd{padding:13px 15px}

/* Dashboard widgets */
.dash-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:16px}
.dw{background:#111e30;border:1px solid rgba(255,255,255,.06);border-radius:11px;padding:17px;position:relative;overflow:hidden;cursor:pointer;transition:all var(--transition);border-right:3px solid var(--dw-c,var(--gold))}
#admin-panel.admin-light .dw{background:#f0e8d8;border-color:rgba(0,0,0,.09)}
.dw:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.28)}
.dw-n{font-size:30px;font-weight:900;color:#fff;display:block;line-height:1;margin-bottom:4px}
#admin-panel.admin-light .dw-n {color:#1e1208}
.dw-l{font-size:11px;color:rgba(220,228,240,.4);font-weight:600;margin-bottom:9px}
#admin-panel.admin-light .dw-l {color:rgba(44,31,14,.48)}
.dw-icon{font-size:30px;position:absolute;left:13px;top:50%;transform:translateY(-50%);opacity:.07}
.dw-link{font-size:11px;color:var(--dw-c,var(--gold));font-weight:700}
.dw-trend{font-size:10px;font-weight:700;margin-top:5px}
.dw-trend.up{color:#22c55e}.dw-trend.neu{color:rgba(220,228,240,.28)}
#admin-panel.admin-light .dw-trend.neu {color:rgba(44,31,14,.3)}

.d2col{display:grid;grid-template-columns:1.6fr 1fr;gap:13px;margin-bottom:14px}

.notice{padding:9px 13px;border-radius:7px;font-size:12px;margin:7px 0}
.notice-ok{background:rgba(22,163,74,.1);border:1px solid rgba(22,163,74,.3);color:#22c55e}
.notice-info{background:rgba(59,130,246,.1);border:1px solid rgba(59,130,246,.3);color:#93c5fd}
#admin-panel.admin-light .notice-ok {background:rgba(22,163,74,.1);border-color:rgba(22,163,74,.25);color:#166534}
#admin-panel.admin-light .notice-info {background:rgba(59,130,246,.08);border-color:rgba(59,130,246,.22);color:#1e40af}

.adm-chart{display:flex;align-items:flex-end;gap:7px;height:85px}
.ac-bw{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;height:100%;justify-content:flex-end}
.ac-bar{width:100%;border-radius:4px 4px 0 0;min-height:3px;transition:height .5s;opacity:.85}
.ac-bar:hover{opacity:1}
.ac-lbl{font-size:9px;color:rgba(220,228,240,.28);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:36px;text-align:center}
#admin-panel.admin-light .ac-lbl {color:rgba(44,31,14,.38)}
.ac-val{font-size:9px;font-weight:800;color:rgba(220,228,240,.58)}
#admin-panel.admin-light .ac-val {color:rgba(44,31,14,.68)}

/* Posts Table */
.pt-toolbar{padding:9px 15px;border-bottom:1px solid rgba(255,255,255,.05);display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#0d1927}
#admin-panel.admin-light .pt-toolbar {background:#e4d8c4;border-bottom-color:rgba(0,0,0,.08)}
.pt-filter{padding:4px 10px;border-radius:5px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);font-family:var(--font);font-size:11px;color:rgba(220,228,240,.4);cursor:pointer;transition:all var(--transition)}
#admin-panel.admin-light .pt-filter {border-color:rgba(0,0,0,.12);background:rgba(0,0,0,.04);color:rgba(44,31,14,.5)}
.pt-filter.active,.pt-filter:hover{background:rgba(200,146,42,.14);border-color:rgba(200,146,42,.38);color:var(--gold)}
#admin-panel.admin-light .pt-filter.active, #admin-panel.admin-light .pt-filter:hover {background:rgba(200,146,42,.18);border-color:rgba(200,146,42,.4);color:#9a6b12}
.pt-search{padding:5px 10px;border:1px solid rgba(255,255,255,.08);border-radius:5px;font-family:var(--font);font-size:13px;background:rgba(255,255,255,.04);color:var(--text);outline:none;flex:1;max-width:220px}
#admin-panel.admin-light .pt-search {border-color:rgba(0,0,0,.12);background:rgba(255,255,255,.4);color:#1e1208}
.pt-search:focus{border-color:var(--gold)}
.pt-add{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#000;border:none;padding:6px 13px;border-radius:6px;font-family:var(--font);font-size:12px;font-weight:800;display:flex;align-items:center;gap:4px;margin-right:auto;cursor:pointer}
table.posts-table{width:100%;border-collapse:collapse}
.posts-table th{padding:9px 11px;text-align:right;font-size:9.5px;font-weight:800;color:rgba(220,228,240,.3);background:#0d1927;border-bottom:1px solid rgba(255,255,255,.05);text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}
#admin-panel.admin-light .posts-table th {background:#e4d8c4;color:rgba(44,31,14,.45);border-bottom-color:rgba(0,0,0,.08)}
.posts-table td{padding:10px 11px;font-size:12px;color:rgba(220,228,240,.68);border-bottom:1px solid rgba(255,255,255,.04);vertical-align:middle}
#admin-panel.admin-light .posts-table td {color:rgba(44,31,14,.72);border-bottom-color:rgba(0,0,0,.06)}
.posts-table tr:hover td{background:rgba(255,255,255,.02)}
#admin-panel.admin-light .posts-table tr:hover td {background:rgba(0,0,0,.025)}
.post-thumb{width:44px;height:30px;border-radius:4px;overflow:hidden;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;font-size:16px}
#admin-panel.admin-light .post-thumb {background:rgba(0,0,0,.07)}
.ptc-title{font-weight:700;color:rgba(220,228,240,.85);cursor:pointer}
#admin-panel.admin-light .ptc-title {color:rgba(44,31,14,.85)}
.ptc-title:hover{color:var(--gold)}
.row-actions{display:none;gap:4px;margin-top:3px}
.posts-table tr:hover .row-actions{display:flex}
.ra{padding:2px 8px;border-radius:4px;font-size:10px;font-weight:700;border:none;font-family:var(--font);cursor:pointer}
.ra-edit{background:rgba(255,255,255,.06);color:rgba(220,228,240,.55)}.ra-edit:hover{background:rgba(200,146,42,.18);color:var(--gold)}
#admin-panel.admin-light .ra-edit {background:rgba(0,0,0,.06);color:rgba(44,31,14,.55)}
.ra-view{background:rgba(59,130,246,.09);color:#93c5fd}.ra-view:hover{background:rgba(59,130,246,.28)}
.ra-trash{background:rgba(185,28,28,.09);color:rgba(239,68,68,.65)}.ra-trash:hover{background:rgba(185,28,28,.28);color:var(--crimson2)}
.pill{padding:2px 7px;border-radius:5px;font-size:9px;font-weight:800;color:#fff;margin:1px;display:inline-block}
.feat-star{color:var(--gold);font-size:14px}
.s-pill{padding:2px 9px;border-radius:5px;font-size:10px;font-weight:800}
.s-pub{background:rgba(22,163,74,.14);color:#22c55e}
.s-draft{background:rgba(234,179,8,.14);color:#d97706}
body.light .s-pub{background:rgba(22,163,74,.12);color:#166534}
body.light .s-draft{background:rgba(180,120,0,.12);color:#92400e}

/* Post Form */
.pf-layout{display:grid;grid-template-columns:1fr 260px;gap:13px;align-items:start}
.pf-main,.pf-side{display:flex;flex-direction:column;gap:11px}
.f-box{background:#111e30;border-radius:9px;border:1px solid rgba(255,255,255,.06);overflow:hidden}
#admin-panel.admin-light .f-box{background:#f0e8d8;border-color:rgba(0,0,0,.09)}
.f-hd{background:#0d1927;padding:9px 13px;border-bottom:1px solid rgba(255,255,255,.05);font-size:12px;font-weight:800;color:rgba(220,228,240,.58);display:flex;align-items:center;justify-content:space-between;cursor:pointer}
#admin-panel.admin-light .f-hd {background:#e4d8c4;border-bottom-color:rgba(0,0,0,.08);color:rgba(44,31,14,.62)}
.f-bd{padding:11px 13px}
.title-input{width:100%;padding:10px 11px;border:1px solid rgba(255,255,255,.08);border-radius:7px;font-family:var(--font);font-size:16px;font-weight:800;color:#fff;outline:none;background:rgba(255,255,255,.04)}
#admin-panel.admin-light .title-input {border-color:rgba(0,0,0,.12);background:rgba(255,255,255,.5);color:#1e1208}
.title-input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,146,42,.1)}
.fld{display:flex;flex-direction:column;gap:4px;margin-bottom:9px}
.fld:last-child{margin-bottom:0}
.fld label{font-size:10px;font-weight:800;color:rgba(220,228,240,.38);text-transform:uppercase;letter-spacing:.5px}
#admin-panel.admin-light .fld label {color:rgba(44,31,14,.45)}
.fld input,.fld select,.fld textarea{padding:7px 10px;border:1px solid rgba(255,255,255,.08);border-radius:5px;font-family:var(--font);font-size:13px;color:var(--text);background:rgba(255,255,255,.04);outline:none;width:100%;transition:border-color var(--transition)}
#admin-panel.admin-light .fld input, #admin-panel.admin-light .fld select, #admin-panel.admin-light .fld textarea {border-color:rgba(0,0,0,.12);background:rgba(255,255,255,.45);color:#1e1208}
.fld input:focus,.fld select:focus,.fld textarea:focus{border-color:var(--gold)}
.fld textarea{min-height:75px;resize:vertical}
.fld select option{background:#1e2a3a}
#admin-panel.admin-light .fld select option {background:#f0e8d8;color:#1e1208}
#quill-editor{border:1px solid rgba(255,255,255,.07);border-radius:0 0 5px 5px;min-height:250px;background:rgba(255,255,255,.02);font-family:var(--font)}
#admin-panel.admin-light #quill-editor {border-color:rgba(0,0,0,.1);background:rgba(255,255,255,.4)}
#quill-editor .ql-editor{min-height:230px;line-height:1.85;direction:rtl;text-align:right;color:var(--text)}
#admin-panel.admin-light #quill-editor .ql-editor {color:#1e1208}
.ql-toolbar{border:1px solid rgba(255,255,255,.07)!important;border-radius:5px 5px 0 0!important;border-bottom:none!important;background:#0d1927}
#admin-panel.admin-light .ql-toolbar {background:#e4d8c4;border-color:rgba(0,0,0,.1)!important}
.ql-toolbar .ql-stroke{stroke:rgba(220,228,240,.48)!important}
#admin-panel.admin-light .ql-toolbar .ql-stroke {stroke:rgba(44,31,14,.5)!important}
.ql-toolbar .ql-fill{fill:rgba(220,228,240,.48)!important}
#admin-panel.admin-light .ql-toolbar .ql-fill {fill:rgba(44,31,14,.5)!important}
.ql-toolbar button:hover .ql-stroke{stroke:var(--gold)!important}
.ql-container{border:none!important}
.img-drop{border:2px dashed rgba(255,255,255,.1);border-radius:7px;padding:18px;text-align:center;cursor:pointer;position:relative;background:rgba(255,255,255,.02);transition:all var(--transition)}
#admin-panel.admin-light .img-drop {border-color:rgba(0,0,0,.14);background:rgba(0,0,0,.03)}
.img-drop:hover{border-color:var(--gold);background:rgba(200,146,42,.04)}
.img-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.idz-icon{font-size:22px;margin-bottom:5px;opacity:.38}
.idz-text{font-size:12px;color:rgba(220,228,240,.28)}
#admin-panel.admin-light .idz-text {color:rgba(44,31,14,.38)}
.thumbs-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.img-thumb{position:relative;width:65px;height:50px;border-radius:5px;overflow:hidden;border:1px solid rgba(255,255,255,.07)}
#admin-panel.admin-light .img-thumb {border-color:rgba(0,0,0,.12)}
.img-thumb img{width:100%;height:100%;object-fit:cover}
.thumb-del{position:absolute;top:2px;left:2px;background:rgba(185,28,28,.9);color:#fff;border:none;width:16px;height:16px;border-radius:50%;font-size:10px;cursor:pointer}
.upload-spin{position:absolute;inset:0;background:rgba(8,13,18,.85);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border-radius:7px;z-index:10}
.upload-spin span{font-size:12px;color:rgba(220,228,240,.45)}

.pub-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.05);font-size:13px}
#admin-panel.admin-light .pub-row {border-bottom-color:rgba(0,0,0,.07)}
.pub-row:last-child{border-bottom:none}
.pub-row label{color:rgba(220,228,240,.38);font-size:11px}
#admin-panel.admin-light .pub-row label {color:rgba(44,31,14,.48)}
.tog{width:31px;height:17px;background:rgba(255,255,255,.1);border-radius:9px;position:relative;border:none;transition:background var(--transition);flex-shrink:0;cursor:pointer}
#admin-panel.admin-light .tog {background:rgba(0,0,0,.15)}
.tog.on{background:var(--gold)}
.tog::after{content:'';position:absolute;top:2px;right:2px;width:13px;height:13px;background:#fff;border-radius:50%;transition:transform var(--transition)}
.tog.on::after{transform:translateX(-14px)}
.pub-actions{display:flex;gap:7px;margin-top:9px}
.pub-save{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#000;border:none;padding:8px 16px;border-radius:6px;font-family:var(--font);font-size:13px;font-weight:900;flex:1;cursor:pointer}
.pub-save:hover{opacity:.9}
.pub-cancel{background:rgba(255,255,255,.06);color:rgba(220,228,240,.4);border:1px solid rgba(255,255,255,.08);padding:8px 11px;border-radius:6px;font-family:var(--font);font-size:13px;cursor:pointer}
#admin-panel.admin-light .pub-cancel {background:rgba(0,0,0,.06);color:rgba(44,31,14,.45);border-color:rgba(0,0,0,.1)}
.pub-delete{background:transparent;color:rgba(239,68,68,.65);border:1px solid rgba(185,28,28,.2);padding:6px;border-radius:5px;font-family:var(--font);font-size:12px;font-weight:700;width:100%;margin-top:7px;display:none;cursor:pointer}
.pub-delete.show{display:block}
.pub-delete:hover{background:rgba(185,28,28,.2);color:var(--crimson2)}
.cat-cl{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow-y:auto}
.cat-ci{display:flex;align-items:center;gap:7px;font-size:12px;color:rgba(220,228,240,.55);cursor:pointer}
#admin-panel.admin-light .cat-ci {color:rgba(44,31,14,.62)}
.cat-ci input{accent-color:var(--gold);width:13px;height:13px}
.add-cat-row{display:flex;gap:5px;margin-top:9px;border-top:1px solid rgba(255,255,255,.05);padding-top:9px}
#admin-panel.admin-light .add-cat-row {border-top-color:rgba(0,0,0,.07)}
.add-cat-inp{flex:1;padding:6px 9px;border:1px solid rgba(255,255,255,.08);border-radius:5px;font-family:var(--font);font-size:12px;background:rgba(255,255,255,.04);color:var(--text);outline:none}
#admin-panel.admin-light .add-cat-inp {border-color:rgba(0,0,0,.12);background:rgba(255,255,255,.45);color:#1e1208}
.add-cat-btn{background:rgba(200,146,42,.14);color:var(--gold);border:1px solid rgba(200,146,42,.28);padding:6px 11px;border-radius:5px;font-family:var(--font);font-size:12px;font-weight:800;cursor:pointer}

/* Settings / Appearance */
.sg{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}
.sg-card{background:#111e30;border:1px solid rgba(255,255,255,.06);border-radius:9px;overflow:hidden}
#admin-panel.admin-light .sg-card{background:#f0e8d8;border-color:rgba(0,0,0,.09)}
.sg-hd{background:#0d1927;padding:10px 13px;border-bottom:1px solid rgba(255,255,255,.05);font-size:12.5px;font-weight:800;color:rgba(220,228,240,.72)}
#admin-panel.admin-light .sg-hd {background:#e4d8c4;border-bottom-color:rgba(0,0,0,.08);color:rgba(44,31,14,.72)}
.sg-bd{padding:13px}
.sg-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.04);font-size:13px}
#admin-panel.admin-light .sg-row {border-bottom-color:rgba(0,0,0,.06)}

/* ══ LIGHT MODE — hero & general text fixes ══ */
body.light #hero-title{color:#1e1408}
body.light #hero-title em{color:var(--gold);text-shadow:0 0 20px rgba(200,146,42,.25)}
body.light #hero-desc{color:rgba(30,20,8,.62)}
body.light .hero-eyebrow{background:rgba(200,146,42,.12);border-color:rgba(200,146,42,.32);color:var(--gold)}
body.light .hero-section{background:var(--bg)}
body.light .hero-logo-wrap{box-shadow:0 0 32px rgba(200,146,42,.22),0 0 64px rgba(200,146,42,.08)}
body.light .btn-primary{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#fff;box-shadow:0 4px 16px rgba(200,146,42,.3)}
body.light .btn-secondary{border-color:rgba(140,100,40,.28);color:rgba(30,20,8,.75);background:rgba(255,255,255,.6)}
body.light .btn-secondary:hover{border-color:var(--gold);color:var(--gold)}
body.light .nav-link{color:rgba(30,20,8,.58)}
body.light .nav-link:hover{color:var(--text);background:rgba(140,100,40,.07)}
body.light .nav-link.active{color:var(--gold);background:rgba(200,146,42,.1)}
body.light .site-name-main{color:#1e1408}
body.light .site-name-sub{color:var(--gold)}
body.light .header-logo-img{box-shadow:0 0 12px rgba(200,146,42,.2)}
body.light .translate-btn{border-color:rgba(140,100,40,.22);color:rgba(30,20,8,.6);background:rgba(255,255,255,.5)}
body.light .translate-btn:hover{border-color:var(--gold);color:var(--gold)}
body.light .about-nav-btn{border-color:rgba(140,100,40,.22);color:rgba(30,20,8,.6);background:rgba(255,255,255,.5)}
body.light .about-nav-btn:hover{border-color:var(--gold);color:var(--gold)}
body.light .theme-btn{border-color:rgba(140,100,40,.22);background:rgba(255,255,255,.5);color:rgba(30,20,8,.65)}
body.light .theme-btn:hover{border-color:var(--gold);color:var(--gold)}
body.light #cat-bar{background:var(--bg2);border-bottom-color:rgba(140,100,40,.18)}
body.light .cat-pill{color:rgba(30,20,8,.55)}
body.light .cat-pill:hover{color:rgba(30,20,8,.85)}
body.light .cat-pill.active{color:#1e1408;font-weight:800}
body.light .cat-pill::after{background:var(--gold)}
body.light .featured-article{background:var(--card);border-color:rgba(140,100,40,.16)}
body.light .featured-article:hover{border-color:rgba(200,146,42,.35);box-shadow:0 0 24px rgba(200,146,42,.12),var(--shadow-lg)}
body.light .fa-title{color:#1e1408}
body.light .fa-excerpt{color:rgba(30,20,8,.62)}
body.light .fa-source,.body.light .fa-author{color:rgba(30,20,8,.5)}
body.light .fa-date{color:rgba(30,20,8,.4)}
body.light .fa-overlay{background:linear-gradient(90deg,transparent,rgba(250,245,236,.4))}
body.light .news-card{background:var(--card);border-color:rgba(140,100,40,.14)}
body.light .news-card:hover{border-color:rgba(200,146,42,.3);box-shadow:0 0 20px rgba(200,146,42,.1),var(--shadow-lg)}
body.light .nc-title{color:#1e1408}
body.light .nc-excerpt{color:rgba(30,20,8,.6)}
body.light .nc-source,.body.light .nc-footer{color:rgba(30,20,8,.42)}
body.light .nc-placeholder,.body.light .fa-placeholder,.body.light .ac-ph{background:linear-gradient(135deg,var(--bg2),var(--bg3))}
body.light .sec-title{color:#1e1408}
body.light .art-card{background:var(--card);border-color:rgba(140,100,40,.16)}
body.light .art-title{color:#1e1408}
body.light .art-byline{color:rgba(30,20,8,.45);border-color:rgba(140,100,40,.14)}
body.light .art-content{color:rgba(30,20,8,.68)}
body.light .art-content h1,.body.light .art-content h2,.body.light .art-content h3{color:#1e1408}
body.light .art-content blockquote{border-color:var(--gold);background:rgba(200,146,42,.06)}
body.light .art-back{border-color:rgba(140,100,40,.22);color:rgba(30,20,8,.58)}
body.light .art-back:hover{color:var(--gold);border-color:var(--gold)}
body.light .art-views{background:rgba(140,100,40,.08);color:rgba(30,20,8,.5)}
body.light .related-card{background:var(--card);border-color:rgba(140,100,40,.14)}
body.light .related-card-title{color:#1e1408}
body.light .related-card-date{color:rgba(30,20,8,.42)}
body.light .about-card{background:var(--card);border-color:rgba(140,100,40,.15)}
body.light .about-card p{color:rgba(30,20,8,.66)}
body.light .about-list li{background:rgba(140,100,40,.05);border-color:rgba(140,100,40,.12);color:rgba(30,20,8,.65)}
body.light .tl-year{background:var(--gold);color:#fff;box-shadow:0 0 0 3px var(--card),0 0 0 5px rgba(200,146,42,.25)}
body.light .tl-text{color:rgba(30,20,8,.64)}
body.light .timeline::before{background:linear-gradient(180deg,var(--gold),rgba(200,146,42,.15))}
body.light .sec-line{background:linear-gradient(90deg,rgba(200,146,42,.28),transparent)}
body.light .sec-count{background:rgba(200,146,42,.12);border-color:rgba(200,146,42,.28);color:var(--gold)}
body.light .load-more-btn{border-color:rgba(140,100,40,.22);color:rgba(30,20,8,.6)}
body.light .load-more-btn:hover{border-color:var(--gold);color:var(--gold)}
body.light .share-btn{border-color:rgba(140,100,40,.18);background:rgba(255,255,255,.5)}
body.light .slb{border-color:rgba(140,100,40,.18);color:rgba(30,20,8,.65);background:rgba(255,255,255,.5)}
body.light #site-footer{background:var(--bg2);border-top-color:rgba(140,100,40,.18)}
body.light .footer-col ul li{color:rgba(30,20,8,.6)}
body.light .footer-col ul li:hover{color:var(--gold)}
body.light .footer-col-title{color:#1e1408}
body.light .fl-name{color:#1e1408}
body.light .fl-url{color:rgba(30,20,8,.42)}
body.light .footer-desc{color:rgba(30,20,8,.5)}
body.light .footer-slogan-center{color:var(--gold)}
body.light .footer-copy{color:rgba(30,20,8,.4)}
body.light .fg-btn{border-color:rgba(140,100,40,.18);color:rgba(30,20,8,.55);background:rgba(255,255,255,.4)}
body.light .fg-btn:hover{border-color:var(--gold);color:var(--gold)}
body.light .footer-bottom{border-top-color:rgba(140,100,40,.16)}
body.light .login-card{background:var(--card);border-color:rgba(140,100,40,.2)}
body.light .login-card h2{color:#1e1408}
body.light .lc-field{background:rgba(255,255,255,.7);border-color:rgba(140,100,40,.2);color:#1e1408}
body.light .lc-close{color:rgba(30,20,8,.4)}
body.light .toast{background:var(--card);border-color:rgba(140,100,40,.2);color:#1e1408}
body.light .acb-edit{background:rgba(34,113,177,.1);color:#1a6aaf}
body.light .acb-del{background:rgba(185,28,28,.1);color:#9b1c1c}

/* ══ ADMIN PANEL LIGHT MODE — full warm-parchment treatment ══ */
#admin-panel.admin-light{background:#ede5d5}
#admin-panel.admin-light .adm-sb{background:#e3dac8;border-left-color:rgba(140,100,40,.14)}
#admin-panel.admin-light .sb-hd{border-bottom-color:rgba(140,100,40,.12);background:#ddd4c0}
#admin-panel.admin-light .sb-brand-n {color:#1e1408;font-weight:900}
#admin-panel.admin-light .sb-brand-s {color:rgba(200,146,42,.85);font-weight:700}
#admin-panel.admin-light .sb-user {border-bottom-color:rgba(140,100,40,.12);background:#ddd4c0}
#admin-panel.admin-light #sb-user-email {color:rgba(30,20,8,.52)}
#admin-panel.admin-light .sb-av {background:linear-gradient(135deg,var(--gold),var(--gold2));color:#fff}
#admin-panel.admin-light .sb-label {color:rgba(30,20,8,.28);font-weight:800}
#admin-panel.admin-light .sb-item {color:rgba(30,20,8,.52);font-weight:600}
#admin-panel.admin-light .sb-item:hover {background:rgba(140,100,40,.08);color:rgba(30,20,8,.85)}
#admin-panel.admin-light .sb-item.active {background:rgba(200,146,42,.14);color:var(--gold)}
#admin-panel.admin-light .sb-item.active .sb-icon {opacity:1}
#admin-panel.admin-light .sb-foot {border-top-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .sb-logout {background:rgba(185,28,28,.08);border-color:rgba(185,28,28,.18);color:#9b1c1c;font-weight:700}
#admin-panel.admin-light .sb-logout:hover {background:rgba(185,28,28,.16);color:#b91c1c}
#admin-panel.admin-light .adm-topbar{background:#ddd4c0;border-bottom-color:rgba(140,100,40,.14)}
#admin-panel.admin-light #adm-page-title{color:#1e1408;font-weight:900}
#admin-panel.admin-light .adm-hbg{color:rgba(30,20,8,.5)}
#admin-panel.admin-light .adm-hbg:hover{color:#1e1408;background:rgba(140,100,40,.08)}
#admin-panel.admin-light .adm-content{background:#ede5d5}
#admin-panel.admin-light .adm-box,#admin-panel.admin-light .dw,#admin-panel.admin-light .kpi,#admin-panel.admin-light .sbox,#admin-panel.admin-light .sg-card,#admin-panel.admin-light .f-box{background:#f4eed9;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .adm-box{background:#f4eed9;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .dw{background:#f4eed9;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .kpi{background:#f4eed9;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .sbox{background:#f4eed9;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .sg-card{background:#f4eed9;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .f-box{background:#f4eed9;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .adm-box-hd{background:#e3dac8;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .f-hd {background:#e3dac8;border-color:rgba(140,100,40,.12);color:rgba(30,20,8,.65)}
#admin-panel.admin-light .sg-hd {background:#e3dac8;color:rgba(30,20,8,.72);font-weight:800}
#admin-panel.admin-light .sbox-hd{background:#e3dac8;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .pt-toolbar {background:#e3dac8;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .about-tabs-adm{background:#e3dac8;border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .adm-box-hd h3{color:rgba(30,20,8,.78);font-weight:800}
#admin-panel.admin-light .sbox-hd h3{color:rgba(30,20,8,.72);font-weight:800}
#admin-panel.admin-light .dw-n {color:#1e1408;font-weight:900}
#admin-panel.admin-light .dw-l {color:rgba(30,20,8,.48);font-weight:600}
#admin-panel.admin-light .kpi-val{color:#1e1408;font-weight:900}
#admin-panel.admin-light .kpi-lbl{color:rgba(30,20,8,.45);font-weight:600}
#admin-panel.admin-light .kpi-badge.up{background:rgba(22,163,74,.1);color:#15803d}
#admin-panel.admin-light .kpi-badge.neu{background:rgba(140,100,40,.08);color:rgba(30,20,8,.4)}
#admin-panel.admin-light .kpi-badge.warn{background:rgba(217,119,6,.1);color:#b45309}
#admin-panel.admin-light .stat-band {background:linear-gradient(135deg,#ddd4c0,#ede5d5);border-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .sb-cell {border-left-color:rgba(140,100,40,.12)}
#admin-panel.admin-light .sb-cell-val {color:var(--gold);font-weight:900}
#admin-panel.admin-light .sb-cell-lbl {color:rgba(30,20,8,.42);font-weight:600}
#admin-panel.admin-light .posts-table th {background:#e3dac8;color:rgba(30,20,8,.42);border-color:rgba(140,100,40,.1);font-weight:800}
#admin-panel.admin-light .posts-table td {color:rgba(30,20,8,.72);border-color:rgba(140,100,40,.08);font-weight:500}
#admin-panel.admin-light .posts-table tr:hover td {background:rgba(140,100,40,.04)}
#admin-panel.admin-light .ptc-title {color:rgba(30,20,8,.82);font-weight:700}
#admin-panel.admin-light .ptc-title:hover {color:var(--gold)}
#admin-panel.admin-light .title-input {background:rgba(255,255,255,.75);border-color:rgba(140,100,40,.2);color:#1e1408}
#admin-panel.admin-light .title-input:focus {border-color:var(--gold);box-shadow:0 0 0 3px rgba(200,146,42,.1)}
#admin-panel.admin-light .fld input, #admin-panel.admin-light .fld select, #admin-panel.admin-light .fld textarea {background:rgba(255,255,255,.65);border-color:rgba(140,100,40,.18);color:#1e1408}
#admin-panel.admin-light .fld input:focus, #admin-panel.admin-light .fld select:focus, #admin-panel.admin-light .fld textarea:focus {border-color:var(--gold)}
#admin-panel.admin-light .fld label {color:rgba(30,20,8,.45);font-weight:800}
#admin-panel.admin-light .add-cat-inp, #admin-panel.admin-light .pt-search {background:rgba(255,255,255,.65);border-color:rgba(140,100,40,.18);color:#1e1408}
#admin-panel.admin-light .pt-filter {border-color:rgba(140,100,40,.16);color:rgba(30,20,8,.45)}
#admin-panel.admin-light .pt-filter:hover, #admin-panel.admin-light .pt-filter.active {background:rgba(200,146,42,.12);border-color:rgba(200,146,42,.3);color:var(--gold)}
#admin-panel.admin-light .pub-row label {color:rgba(30,20,8,.48);font-weight:600}
#admin-panel.admin-light .pub-row {border-bottom-color:rgba(140,100,40,.1)}
#admin-panel.admin-light .pub-cancel {background:rgba(140,100,40,.07);color:rgba(30,20,8,.5);border-color:rgba(140,100,40,.15)}
#admin-panel.admin-light .pub-delete {border-color:rgba(185,28,28,.2);color:#9b1c1c}
#admin-panel.admin-light .pub-delete:hover {background:rgba(185,28,28,.1);color:#b91c1c}
#admin-panel.admin-light .sg-row {border-bottom-color:rgba(140,100,40,.08)}
#admin-panel.admin-light .sg-row label {color:rgba(30,20,8,.45);font-weight:600}
#admin-panel.admin-light .sg-row strong {color:#1e1408;font-weight:700}
#admin-panel.admin-light .ac-val {color:rgba(30,20,8,.68);font-weight:800}
#admin-panel.admin-light .ac-lbl {color:rgba(30,20,8,.38)}
#admin-panel.admin-light .notice-ok {background:rgba(22,163,74,.08);border-color:rgba(22,163,74,.22);color:#15803d;font-weight:600}
#admin-panel.admin-light .notice-info {background:rgba(37,99,235,.07);border-color:rgba(37,99,235,.2);color:#1d4ed8;font-weight:600}
#admin-panel.admin-light .adm-theme-btn{border-color:rgba(140,100,40,.22);background:rgba(255,255,255,.5);color:rgba(30,20,8,.7);font-weight:700}
#admin-panel.admin-light .adm-theme-btn:hover{border-color:var(--gold);color:var(--gold)}
#admin-panel.admin-light .media-item {border-color:rgba(140,100,40,.14)}
#admin-panel.admin-light .cat-ci {color:rgba(30,20,8,.68);font-weight:600}
#admin-panel.admin-light .cdi-dot {filter:none}
#admin-panel.admin-light .cdi-name {color:rgba(30,20,8,.62);font-weight:600}
#admin-panel.admin-light .cdi-bw {background:rgba(140,100,40,.1)}
#admin-panel.admin-light .cdi-n {color:rgba(30,20,8,.38);font-weight:700}
#admin-panel.admin-light .tpi-t {color:rgba(30,20,8,.68);font-weight:600}
#admin-panel.admin-light .tpi-v {color:rgba(30,20,8,.38)}
#admin-panel.admin-light .s-bar-lbl {color:rgba(30,20,8,.36)}
#admin-panel.admin-light #sb-overlay {background:rgba(0,0,0,.32)}
#admin-panel.admin-light .ra-edit {background:rgba(37,99,235,.08);color:#1d4ed8}
#admin-panel.admin-light .ra-edit:hover {background:rgba(200,146,42,.12);color:var(--gold)}
#admin-panel.admin-light .ra-view {background:rgba(37,99,235,.08);color:#1d4ed8}
#admin-panel.admin-light .ra-view:hover {background:rgba(37,99,235,.18)}
#admin-panel.admin-light .ra-trash {background:rgba(185,28,28,.08);color:#9b1c1c}
#admin-panel.admin-light .ra-trash:hover {background:rgba(185,28,28,.18);color:#b91c1c}
body.light .s-pub{background:rgba(22,163,74,.1);color:#15803d}
body.light .s-draft{background:rgba(217,119,6,.1);color:#b45309}
#admin-panel.admin-light .img-drop {border-color:rgba(140,100,40,.22);background:rgba(255,255,255,.4)}
#admin-panel.admin-light .img-drop:hover {border-color:var(--gold);background:rgba(200,146,42,.05)}
#admin-panel.admin-light .idz-text {color:rgba(30,20,8,.38)}
#admin-panel.admin-light .cml-color {border-color:rgba(140,100,40,.2)}
#admin-panel.admin-light .cml-del {background:rgba(185,28,28,.08);color:#9b1c1c}
#admin-panel.admin-light .abt-tab {color:rgba(30,20,8,.42)}
#admin-panel.admin-light .abt-tab.active {background:rgba(200,146,42,.12);color:var(--gold)}
#admin-panel.admin-light .add-row-btn {background:rgba(200,146,42,.08);color:var(--gold);border-color:rgba(200,146,40,.25)}
#admin-panel.admin-light .add-cat-btn {background:rgba(200,146,42,.12);color:var(--gold);border-color:rgba(200,146,42,.28)}
#admin-panel.admin-light .tog {background:rgba(140,100,40,.15)}
#admin-panel.admin-light .tog.on {background:var(--gold)}
#admin-panel.admin-light .feat-star {color:var(--gold)}
#admin-panel.admin-light .dw-link {font-weight:700}
#admin-panel.admin-light .dw-trend.up {color:#15803d}
#admin-panel.admin-light .dw-trend.neu {color:rgba(30,20,8,.35)}

/* ══ ADMIN PANEL LIGHT MODE — full warm-parchment treatment ══ */
#admin-panel.admin-light .adm-sb{background:#e3dac8;border-left-color:rgba(140,100,40,.14)}
#admin-panel.admin-light{background:#ede5d5}

/* ══ ADMIN TOPBAR THEME TOGGLE ══ */
.adm-theme-btn{
  margin-inline-start:auto;
  display:flex;align-items:center;gap:7px;
  padding:6px 13px;border-radius:7px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.7);font-family:var(--font);
  font-size:12px;font-weight:700;cursor:pointer;
  transition:all var(--transition);
}
.adm-theme-btn:hover{border-color:var(--gold);color:var(--gold)}

/* Mobile nav menu (≡) */
.nav-hamburger-btn{
  display:none;flex-direction:column;gap:4px;
  background:none;border:none;padding:7px 5px;
  cursor:pointer;flex-shrink:0;
}
.nav-hamburger-btn span{
  display:block;width:20px;height:2px;
  background:var(--text-soft);border-radius:2px;
  transition:all var(--transition);
}
.nav-hamburger-btn:hover span{background:var(--gold)}

/* ══ RESPONSIVE ══ */
@media(max-width:900px){
  .featured-article{grid-template-columns:1fr}
  .fa-visual{min-height:210px}
  .about-grid-2{grid-template-columns:1fr}
  .dash-grid{grid-template-columns:repeat(2,1fr)}
  .d2col{grid-template-columns:1fr}
  .pf-layout{grid-template-columns:1fr}
  .sg{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .stat-row{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr 1fr;gap:22px}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  #cat-bar{top:96px}
  body.admin-bar-visible #cat-bar{top:132px}
}
@media(max-width:768px){
  .header-inner{height:54px;gap:5px;padding:0 10px}
  nav#site-nav{display:none}
  .hamburger-btn{display:flex}
  .nav-hamburger-btn{display:flex}
  .about-nav-btn{display:none}
  .site-name-sub{display:none}
  #admin-top-btn{display:none}
  .header-actions{gap:4px}
  .translate-btn .lang-label{display:none}
  .translate-btn{padding:5px 7px}

  /* Cat bar fixed below header+ticker */
  #cat-bar{
    position:fixed;top:88px;
    left:0;right:0;z-index:380;
    background:var(--bg2);
    border-bottom:2px solid rgba(200,146,42,.3);
    height:38px;padding:0 8px;
    box-shadow:0 2px 8px rgba(0,0,0,.12);
  }
  #admin-top-bar.visible ~ #public-site #cat-bar{top:124px}
  body.admin-bar-visible #cat-bar{top:124px}
  .mobile-nav{top:54px}
  #admin-top-bar.visible ~ #public-site .mobile-nav{top:90px}
  .hero-section{min-height:68vh;padding-top:162px}
  .hero-logo-wrap{width:80px;height:80px}
  #hero-title{font-size:clamp(21px,5.5vw,30px)}
  .site-main{padding:22px 12px}
  .cards-grid{grid-template-columns:1fr}
  .art-body{padding:16px 13px}
  .art-cover{height:210px}
  .art-title{font-size:19px}
  .related-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .adm-sb{position:fixed;right:-250px;top:0;bottom:0;z-index:1001;transition:right .3s ease}
  .adm-sb.open{right:0}
  .adm-hbg{display:flex}
  .adm-topbar{padding:0 13px}
  .adm-content{padding:13px}
  .dash-grid{grid-template-columns:1fr 1fr}
  .kpi-grid{grid-template-columns:1fr 1fr}
  .stat-band{grid-template-columns:1fr}

  /* ── MOBILE LIGHT MODE color fixes ── */
  body.light .news-card,body.light .featured-article,body.light .art-card,body.light .about-card,body.light .related-card{
    background:var(--card);border-color:rgba(140,100,40,.16);
  }
  body.light .nc-title,body.light .fa-title,body.light .art-title,body.light .related-card-title{color:#1e1408}
  body.light .nc-excerpt,body.light .fa-excerpt,body.light .art-content{color:rgba(30,20,8,.65)}
  body.light .nc-footer,body.light .nc-source,body.light .fa-date,body.light .fa-author,body.light .fa-source{color:rgba(30,20,8,.42)}
  body.light #cat-bar{background:var(--bg2);border-bottom-color:rgba(140,100,40,.25)}
  body.light .cat-pill{color:rgba(30,20,8,.55)}
  body.light .cat-pill.active{color:#1e1408;font-weight:800}
  body.light .mobile-nav{background:rgba(240,233,218,.97)}
  body.light .mobile-nav .nav-link{color:rgba(30,20,8,.65)}
  body.light .mobile-nav .nav-link:hover,body.light .mobile-nav .nav-link.active{color:var(--gold)}
  body.light #site-footer{background:var(--bg2)}
  body.light .footer-col ul li{color:rgba(30,20,8,.62)}
  body.light .footer-col-title{color:#1e1408}
  body.light .fl-name{color:#1e1408}
  body.light .load-more-btn{border-color:rgba(140,100,40,.22);color:rgba(30,20,8,.6);background:rgba(255,255,255,.5)}
  body.light .share-btn{border-color:rgba(140,100,40,.18);background:rgba(255,255,255,.55)}
  body.light .art-back{border-color:rgba(140,100,40,.22);color:rgba(30,20,8,.6);background:rgba(255,255,255,.5)}
  body.light .sec-title{color:#1e1408}
  body.light .about-list li{background:rgba(255,255,255,.4);border-color:rgba(140,100,40,.14)}
  body.light .tl-text{color:rgba(30,20,8,.64)}
}
@media(max-width:480px){
  .header-inner{height:50px;padding:0 8px;gap:4px}
  #cat-bar{top:84px;height:36px}
  #admin-top-bar.visible ~ #public-site #cat-bar{top:120px}
  .hero-section{padding-top:154px;min-height:65vh}
  .hero-logo-wrap{width:62px;height:62px}
  #hero-title{font-size:19px}
  .btn-primary,.btn-secondary{padding:9px 14px;font-size:13px}
  .hero-cta{gap:6px}
  .dash-grid{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns:1fr}
  .login-card{width:calc(100vw - 20px);padding:22px 14px}
  .cat-pill{font-size:11.5px;padding:3px 9px}
  .site-name-main{font-size:12px}
  .hamburger-btn .hbg-label{display:none}
  .hamburger-btn{padding:5px 8px}
  .hero-eyebrow{font-size:10px;padding:3px 10px}
  .footer-slogan-center{font-size:13px}
  .fa-title{font-size:15px}
}


/* ══════════════════════════════════════════════════
   ADMIN PANEL — WordPress-style (old site exactly)
   Colors: #1d2327 sidebar, #f0f0f1 bg, #fff cards
══════════════════════════════════════════════════ */

/* Override admin panel completely */
#admin-panel.admin-light { background: #f0f0f1 !important; }
#admin-panel.admin-light .adm-sb { background: #1d2327 !important; border: none !important; }
#admin-panel.admin-light .adm-sb::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1) !important; }

/* Sidebar header */
#admin-panel.admin-light .sb-hd { background: #1d2327 !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
#admin-panel.admin-light .sb-brand-n { color: #fff !important; font-size: 12px; font-weight: 800; }
#admin-panel.admin-light .sb-brand-s { color: #c8922a !important; font-size: 9.5px; }
#admin-panel.admin-light .sb-logo-img { border-color: #c8922a !important; }

/* Sidebar user */
#admin-panel.admin-light .sb-user { background: #1d2327 !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
#admin-panel.admin-light #sb-user-email { color: rgba(255,255,255,.45) !important; font-size: 11px; }
#admin-panel.admin-light .sb-av { background: #c8922a !important; color: #1d2327 !important; }

/* Sidebar nav */
#admin-panel.admin-light .sb-nav { padding: 8px 0; }
#admin-panel.admin-light .sb-label { color: rgba(255,255,255,.2) !important; font-size: 9.5px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; padding: 10px 16px 4px; }
#admin-panel.admin-light .sb-item { color: rgba(255,255,255,.55) !important; font-size: 13px; padding: 9px 16px; border-right: 3px solid transparent; border-radius: 0 !important; }
#admin-panel.admin-light .sb-item:hover { color: #fff !important; background: rgba(255,255,255,.04) !important; }
#admin-panel.admin-light .sb-item.active { color: #fff !important; background: rgba(200,146,42,.12) !important; border-right-color: #c8922a !important; }
#admin-panel.admin-light .sb-icon { font-size: 16px; width: 20px; text-align: center; }

/* Sidebar footer */
#admin-panel.admin-light .sb-foot { border-top: 1px solid rgba(255,255,255,.06) !important; padding: 14px; }
#admin-panel.admin-light .sb-logout { background: rgba(125,31,26,.2) !important; color: #f87171 !important; border: 1px solid rgba(125,31,26,.3) !important; border-radius: 4px; font-size: 12px; font-weight: 700; }
#admin-panel.admin-light .sb-logout:hover { background: #7d1f1a !important; color: #fff !important; }
#admin-panel.admin-light #sb-overlay { background: rgba(0,0,0,.5); }

/* Admin topbar */
#admin-panel.admin-light .adm-main { background: #f0f0f1 !important; }
#admin-panel.admin-light .adm-topbar { background: #fff !important; border-bottom: 1px solid #c3c4c7 !important; padding: 14px 22px; }
#admin-panel.admin-light #adm-page-title { font-size: 20px !important; font-weight: 700 !important; color: #1d2327 !important; }
#admin-panel.admin-light .adm-hbg { color: #1d2327 !important; }
#admin-panel.admin-light .adm-hbg:hover { background: #f0f0f1 !important; color: #1d2327 !important; }

/* Theme btn inside admin */
#admin-panel.admin-light .adm-theme-btn { background: #f0f0f1 !important; border-color: #c3c4c7 !important; color: #1d2327 !important; font-weight: 600; }
#admin-panel.admin-light .adm-theme-btn:hover { border-color: #c8922a !important; color: #c8922a !important; }

/* Admin content area */
#admin-panel.admin-light .adm-content { background: #f0f0f1 !important; padding: 20px; }

/* Dashboard widgets */
#admin-panel.admin-light .dw { background: #fff !important; border: 1px solid #c3c4c7 !important; border-radius: 6px !important; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
#admin-panel.admin-light .dw::before, #admin-panel.admin-light .dw { border-right: none !important; }
#admin-panel.admin-light .dw { border-right: 4px solid var(--dw-c, #c8922a) !important; }
#admin-panel.admin-light .dw:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1) !important; transform: translateY(-2px); }
#admin-panel.admin-light .dw-n { color: #1d2327 !important; font-size: 34px !important; font-weight: 900 !important; }
#admin-panel.admin-light .dw-l { color: #646970 !important; font-size: 12.5px !important; }
#admin-panel.admin-light .dw-icon { opacity: .08 !important; }
#admin-panel.admin-light .dw-link { color: #2271b1 !important; font-size: 11.5px; font-weight: 600; }
#admin-panel.admin-light .dw-trend.up { color: #00a32a !important; }
#admin-panel.admin-light .dw-trend.neu { color: #646970 !important; }
#admin-panel.admin-light .dash-grid { gap: 14px; }
#admin-panel.admin-light .d2col { gap: 14px; }

/* Admin boxes */
#admin-panel.admin-light .adm-box { background: #fff !important; border: 1px solid #c3c4c7 !important; border-radius: 6px !important; box-shadow: none !important; }
#admin-panel.admin-light .adm-box-hd { background: #f6f7f7 !important; border-bottom: 1px solid #c3c4c7 !important; padding: 10px 18px; }
#admin-panel.admin-light .adm-box-hd h3 { color: #1d2327 !important; font-size: 13.5px !important; font-weight: 700 !important; }
#admin-panel.admin-light .adm-box-bd { padding: 14px 18px; color: #1d2327 !important; }
#admin-panel.admin-light .adm-box-bd * { color: inherit; }

/* Dashboard post list */
#admin-panel.admin-light .dash-posts-list { gap: 0 !important; }
#admin-panel.admin-light .dash-post-row { border-bottom: 1px solid #f0f0f1 !important; padding: 8px 0 !important; }
#admin-panel.admin-light .dash-post-row:last-child { border-bottom: none !important; }
#admin-panel.admin-light .dash-post-title { color: #1d2327 !important; font-size: 13px !important; font-weight: 600 !important; }
#admin-panel.admin-light .dash-post-title:hover { color: #2271b1 !important; }
#admin-panel.admin-light .dash-post-meta { color: #646970 !important; font-size: 11px !important; }
#admin-panel.admin-light .dash-post-actions .ra-edit { background: #f0f0f1 !important; color: #1d2327 !important; border: none; }
#admin-panel.admin-light .dash-post-actions .ra-edit:hover { background: #1d2327 !important; color: #fff !important; }
#admin-panel.admin-light .dash-post-actions .ra-trash { background: #fde8e8 !important; color: #c0392b !important; border: none; }
#admin-panel.admin-light .dash-post-actions .ra-trash:hover { background: #c0392b !important; color: #fff !important; }

/* Dashboard summary */
#admin-panel.admin-light .dash-sum-row { border-bottom: 1px solid #f0f0f1 !important; }
#admin-panel.admin-light .dash-sum-label { color: #646970 !important; font-size: 12px !important; }
#admin-panel.admin-light .dash-sum-val { color: #1d2327 !important; font-weight: 700 !important; }
#admin-panel.admin-light .dash-empty { color: #646970 !important; }

/* Stat band */
#admin-panel.admin-light .stat-band { background: #fff !important; border: 1px solid #c3c4c7 !important; border-radius: 6px !important; }
#admin-panel.admin-light .sb-cell { border-left: 1px solid #f0f0f1 !important; }
#admin-panel.admin-light .sb-cell-val { color: #c8922a !important; font-size: 28px !important; font-weight: 900 !important; }
#admin-panel.admin-light .sb-cell-lbl { color: #646970 !important; font-size: 11px !important; }

/* Chart */
#admin-panel.admin-light .ac-val { color: #1d2327 !important; font-size: 10.5px !important; font-weight: 700 !important; }
#admin-panel.admin-light .ac-lbl { color: #646970 !important; font-size: 9.5px !important; }

/* KPI cards */
#admin-panel.admin-light .kpi { background: #fff !important; border: 1px solid #c3c4c7 !important; border-radius: 6px !important; }
#admin-panel.admin-light .kpi-val { color: #1d2327 !important; font-weight: 900 !important; }
#admin-panel.admin-light .kpi-lbl { color: #646970 !important; }
#admin-panel.admin-light .kpi-badge.up { background: #edfaef !important; color: #1d7a2f !important; }
#admin-panel.admin-light .kpi-badge.neu { background: #f0f0f1 !important; color: #646970 !important; }
#admin-panel.admin-light .kpi-badge.warn { background: #fff3cd !important; color: #856404 !important; }

/* Stat boxes */
#admin-panel.admin-light .sbox { background: #fff !important; border: 1px solid #c3c4c7 !important; border-radius: 6px !important; }
#admin-panel.admin-light .sbox-hd { background: #f6f7f7 !important; border-bottom: 1px solid #c3c4c7 !important; }
#admin-panel.admin-light .sbox-hd h3 { color: #1d2327 !important; font-size: 13px !important; font-weight: 700 !important; }
#admin-panel.admin-light .cdi-name { color: #1d2327 !important; font-size: 12px; }
#admin-panel.admin-light .cdi-bw { background: #f0f0f1 !important; }
#admin-panel.admin-light .cdi-n { color: #646970 !important; font-weight: 700; }
#admin-panel.admin-light .tpi-t { color: #1d2327 !important; font-size: 12px; font-weight: 600; }
#admin-panel.admin-light .tpi-v { color: #646970 !important; }
#admin-panel.admin-light .tpi-rank { background: #f0f0f1 !important; color: #646970 !important; }
#admin-panel.admin-light .tpi-rank.gold { background: rgba(200,146,42,.15) !important; color: #c8922a !important; }
#admin-panel.admin-light .s-bar-lbl { color: #646970 !important; }

/* Posts table */
#admin-panel.admin-light .posts-table th { background: #f6f7f7 !important; color: #646970 !important; border-bottom: 1px solid #c3c4c7 !important; font-size: 11.5px; font-weight: 700; }
#admin-panel.admin-light .posts-table td { color: #1d2327 !important; border-bottom: 1px solid #f0f0f1 !important; font-size: 13px; }
#admin-panel.admin-light .posts-table tr:hover td { background: #f9f9f9 !important; }
#admin-panel.admin-light .ptc-title { color: #1d2327 !important; font-weight: 700; }
#admin-panel.admin-light .ptc-title:hover { color: #2271b1 !important; }
#admin-panel.admin-light .ra-edit { background: #f0f0f1 !important; color: #1d2327 !important; }
#admin-panel.admin-light .ra-edit:hover { background: #1d2327 !important; color: #fff !important; }
#admin-panel.admin-light .ra-view { background: #e8f0fe !important; color: #1967d2 !important; }
#admin-panel.admin-light .ra-view:hover { background: #1967d2 !important; color: #fff !important; }
#admin-panel.admin-light .ra-trash { background: #fde8e8 !important; color: #c0392b !important; }
#admin-panel.admin-light .ra-trash:hover { background: #c0392b !important; color: #fff !important; }
#admin-panel.admin-light .s-pub { background: #edfaef !important; color: #1d7a2f !important; }
#admin-panel.admin-light .s-draft { background: #fff3cd !important; color: #856404 !important; }
#admin-panel.admin-light .feat-star { color: #c8922a !important; }

/* Filter toolbar */
#admin-panel.admin-light .pt-toolbar { background: #fff !important; border-bottom: 1px solid #f0f0f1 !important; padding: 10px 18px; }
#admin-panel.admin-light .pt-filter { border: 1px solid #c3c4c7 !important; background: #fff !important; color: #646970 !important; border-radius: 3px; }
#admin-panel.admin-light .pt-filter:hover, #admin-panel.admin-light .pt-filter.active { background: #1d2327 !important; color: #fff !important; border-color: #1d2327 !important; }
#admin-panel.admin-light .pt-search { border: 1px solid #c3c4c7 !important; color: #1d2327 !important; background: #fff !important; border-radius: 3px; }
#admin-panel.admin-light .pt-search:focus { border-color: #2271b1 !important; }
#admin-panel.admin-light .pt-add { background: #c8922a !important; color: #fff !important; border-radius: 4px; font-weight: 700; }
#admin-panel.admin-light .pt-add:hover { background: #d4a017 !important; }

/* Settings / form boxes */
#admin-panel.admin-light .sg-card { background: #fff !important; border: 1px solid #c3c4c7 !important; border-radius: 6px !important; }
#admin-panel.admin-light .sg-hd { background: #f6f7f7 !important; color: #1d2327 !important; font-weight: 700; border-bottom: 1px solid #c3c4c7 !important; }
#admin-panel.admin-light .sg-row { border-bottom: 1px solid #f0f0f1 !important; }
#admin-panel.admin-light .sg-row label { color: #646970 !important; font-size: 12px; }
#admin-panel.admin-light .sg-row strong { color: #1d2327 !important; font-weight: 700; }
#admin-panel.admin-light .f-box { background: #fff !important; border: 1px solid #c3c4c7 !important; border-radius: 6px !important; }
#admin-panel.admin-light .f-hd { background: #f6f7f7 !important; color: #1d2327 !important; font-weight: 700; border-bottom: 1px solid #c3c4c7 !important; font-size: 13px; }
#admin-panel.admin-light .title-input { border: 1px solid #c3c4c7 !important; color: #1d2327 !important; background: #fff !important; font-size: 17px; font-weight: 700; border-radius: 4px; }
#admin-panel.admin-light .title-input:focus { border-color: #2271b1 !important; box-shadow: 0 0 0 2px rgba(34,113,177,.1) !important; }
#admin-panel.admin-light .fld label { color: #1d2327 !important; font-size: 11.5px; font-weight: 700; }
#admin-panel.admin-light .fld input, #admin-panel.admin-light .fld select, #admin-panel.admin-light .fld textarea { border: 1px solid #c3c4c7 !important; color: #1d2327 !important; background: #fff !important; border-radius: 4px; }
#admin-panel.admin-light .fld input:focus, #admin-panel.admin-light .fld select:focus, #admin-panel.admin-light .fld textarea:focus { border-color: #2271b1 !important; }
#admin-panel.admin-light .add-cat-inp { border: 1px solid #c3c4c7 !important; color: #1d2327 !important; background: #fff !important; border-radius: 4px; }
#admin-panel.admin-light .img-drop { border: 2px dashed #c3c4c7 !important; background: #fafafa !important; border-radius: 5px; }
#admin-panel.admin-light .img-drop:hover { border-color: #c8922a !important; background: #fffbf5 !important; }
#admin-panel.admin-light .idz-text { color: #646970 !important; }
#admin-panel.admin-light .pub-row { border-bottom: 1px solid #f0f0f1 !important; }
#admin-panel.admin-light .pub-row label { color: #646970 !important; }
#admin-panel.admin-light .pub-cancel { background: #f0f0f1 !important; color: #1d2327 !important; border: 1px solid #c3c4c7 !important; }
#admin-panel.admin-light .pub-delete { border-color: rgba(192,57,43,.3) !important; color: #c0392b !important; }
#admin-panel.admin-light .pub-delete:hover { background: #fde8e8 !important; color: #c0392b !important; }
#admin-panel.admin-light .pub-save { background: #c8922a !important; color: #fff !important; border-radius: 4px; }
#admin-panel.admin-light .pub-save:hover { background: #d4a017 !important; }
#admin-panel.admin-light .save-btn { background: #c8922a !important; color: #fff !important; border-radius: 4px; }
#admin-panel.admin-light .save-btn:hover { background: #d4a017 !important; }
#admin-panel.admin-light .tog { background: #c3c4c7 !important; }
#admin-panel.admin-light .tog.on { background: #c8922a !important; }
#admin-panel.admin-light .cat-ci { color: #1d2327 !important; }
#admin-panel.admin-light .cml-del { background: #fde8e8 !important; color: #c0392b !important; }
#admin-panel.admin-light .add-row-btn { color: #c8922a !important; border-color: rgba(200,146,42,.4) !important; background: rgba(200,146,42,.05) !important; }
#admin-panel.admin-light .add-cat-btn { background: rgba(200,146,42,.1) !important; color: #c8922a !important; border-color: rgba(200,146,42,.3) !important; }
#admin-panel.admin-light .about-tabs-adm { background: #f6f7f7 !important; border-bottom: 1px solid #c3c4c7 !important; }
#admin-panel.admin-light .abt-tab { color: #646970 !important; }
#admin-panel.admin-light .abt-tab.active { background: rgba(200,146,42,.12) !important; color: #c8922a !important; }
#admin-panel.admin-light .notice-ok { background: #edfaef !important; border-color: rgba(0,163,42,.3) !important; color: #1d7a2f !important; }
#admin-panel.admin-light .notice-info { background: #e8f0fe !important; border-color: rgba(34,113,177,.3) !important; color: #1967d2 !important; }
#admin-panel.admin-light .ql-toolbar { background: #f6f7f7 !important; border: 1px solid #c3c4c7 !important; }
#admin-panel.admin-light .ql-toolbar .ql-stroke { stroke: #1d2327 !important; }
#admin-panel.admin-light .ql-toolbar .ql-fill { fill: #1d2327 !important; }
#admin-panel.admin-light #quill-editor { background: #fff !important; border: 1px solid #c3c4c7 !important; }
#admin-panel.admin-light #quill-editor .ql-editor { color: #1d2327 !important; }

/* Media library */
#admin-panel.admin-light .media-item { border: 1px solid #c3c4c7 !important; }

/* ══ LIGHT MODE PUBLIC SITE — old site colors ══ */
body.light { --gold: #b8860b; --gold2: #d4a017; }
body.light #site-header     { background: rgba(247,245,240,.97) !important; border-bottom-color: rgba(15,25,35,.12) !important; }
body.light .site-name-main  { color: #0f1923 !important; }
body.light .site-name-sub   { color: #b8860b !important; }
body.light .nav-link        { color: rgba(26,26,26,.6) !important; }
body.light .nav-link:hover  { color: #0f1923 !important; background: rgba(15,25,35,.04) !important; }
body.light .nav-link.active { color: #1a1a1a !important; border-bottom-color: #b8860b; }
body.light .theme-btn       { border-color: rgba(15,25,35,.2) !important; background: #fff !important; color: #0f1923 !important; }
body.light .translate-btn   { background: #3d5a36 !important; color: #fff !important; border: none !important; }
body.light .translate-btn:hover { background: #b8860b !important; }
body.light .about-nav-btn   { background: #0f1923 !important; color: #b8860b !important; border: none !important; }
body.light .about-nav-btn:hover { background: #1e2d3d !important; }
body.light .admin-panel-btn { background: #0f1923 !important; color: #b8860b !important; }
body.light #ticker-bar      { background: #1e2d3d !important; }
body.light .ticker-label    { background: #7d1f1a !important; }
body.light #cat-bar         { background: #fff !important; border-bottom-color: rgba(15,25,35,.12) !important; }
body.light .cat-pill        { color: rgba(26,26,26,.6) !important; }
body.light .cat-pill.active { color: #1a1a1a !important; font-weight: 800; }
body.light .cat-pill::after { background: #b8860b !important; }
body.light .hero-section    { background: #0b1118 !important; }
body.light .hero-kufiya      { opacity: .22 !important; filter: none !important; }
body.light #hero-title      { color: #e6ecf4 !important; }
body.light #hero-title em   { color: #c8922a !important; }
body.light #hero-desc       { color: rgba(210,222,238,.64) !important; }
body.light .hero-eyebrow    { background: rgba(200,146,42,.12) !important; border-color: rgba(200,146,42,.32) !important; color: #c8922a !important; }
body.light .btn-primary     { background: #b8860b !important; color: #0f1923 !important; }
body.light .btn-primary:hover { background: #d4a017 !important; }
body.light .btn-secondary   { background: transparent !important; border-color: rgba(255,255,255,.3) !important; color: #fff !important; }
body.light .btn-secondary:hover { border-color: #b8860b !important; color: #b8860b !important; }
body.light .featured-article { background: #fff !important; border-color: rgba(15,25,35,.12) !important; }
body.light .fa-title        { color: #0f1923 !important; }
body.light .fa-excerpt      { color: rgba(26,26,26,.58) !important; }
body.light .fa-source       { color: #b8860b !important; }
body.light .fa-date,.body.light .fa-author { color: rgba(26,26,26,.4) !important; }
body.light .read-more       { background: #b8860b !important; color: #0f1923 !important; border: 1px solid #b8860b !important; }
body.light .read-more:hover { background: #0f1923 !important; color: #fff !important; }
body.light .news-card       { background: #fff !important; border-color: rgba(15,25,35,.1) !important; }
body.light .nc-title        { color: #0f1923 !important; }
body.light .nc-excerpt      { color: rgba(26,26,26,.58) !important; }
body.light .nc-source       { color: #b8860b !important; font-weight: 700; }
body.light .nc-footer       { color: rgba(26,26,26,.4) !important; }
body.light .sec-title       { color: #0f1923 !important; }
body.light .sec-count       { background: #b8860b !important; color: #0f1923 !important; }
body.light .sec-line        { background: linear-gradient(90deg,rgba(184,134,11,.4),transparent) !important; }
body.light .art-card        { background: #fff !important; border-color: rgba(15,25,35,.12) !important; }
body.light .art-title       { color: #0f1923 !important; }
body.light .art-content     { color: rgba(26,26,26,.68) !important; }
body.light .art-content h1,.art-content h2,.art-content h3 { color: #0f1923; }
body.light .art-byline      { color: rgba(26,26,26,.45) !important; border-color: rgba(15,25,35,.1) !important; }
body.light .art-back        { background: #fff !important; border-color: rgba(15,25,35,.2) !important; color: #0f1923 !important; }
body.light .art-back:hover  { background: #0f1923 !important; color: #fff !important; }
body.light .related-card    { background: #fff !important; border-color: rgba(15,25,35,.1) !important; }
body.light .related-card-title { color: #0f1923 !important; }
body.light .about-card      { background: #fff !important; border-color: rgba(15,25,35,.12) !important; }
body.light .about-card h3   { color: #b8860b !important; }
body.light .about-card p    { color: rgba(26,26,26,.65) !important; }
body.light .about-list li   { background: #f7f5f0 !important; border-color: rgba(15,25,35,.1) !important; color: rgba(26,26,26,.7) !important; }
body.light .tl-year         { background: #b8860b !important; color: #0f1923 !important; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(184,134,11,.3) !important; }
body.light .tl-text         { color: rgba(26,26,26,.65) !important; }
body.light .timeline::before { background: linear-gradient(180deg,#b8860b,rgba(184,134,11,.15)) !important; }
body.light .load-more-btn   { background: #fff !important; border-color: rgba(15,25,35,.2) !important; color: #0f1923 !important; }
body.light .load-more-btn:hover { background: #0f1923 !important; color: #fff !important; }
body.light .share-btn       { background: #fff !important; border-color: rgba(15,25,35,.12) !important; }
body.light .slb             { background: #fff !important; border-color: rgba(15,25,35,.12) !important; color: #0f1923 !important; }
body.light .acb-edit        { background: #b8860b !important; color: #0f1923 !important; }
body.light .acb-del         { background: #fde8e8 !important; color: #c0392b !important; }
body.light #site-footer     { background: #0f1923 !important; border-top: none !important; }
body.light .footer-col-title { color: rgba(255,255,255,.9) !important; font-weight: 700; }
body.light .footer-col ul li { color: rgba(255,255,255,.45) !important; }
body.light .footer-col ul li:hover { color: #b8860b !important; }
body.light .fl-name         { color: #fff !important; }
body.light .fl-url          { color: rgba(255,255,255,.4) !important; }
body.light .footer-desc     { color: rgba(255,255,255,.4) !important; }
body.light .footer-slogan-center { color: #b8860b !important; }
body.light .footer-copy     { color: rgba(255,255,255,.3) !important; }
body.light .footer-bottom   { border-top-color: rgba(255,255,255,.08) !important; }
body.light .fg-btn          { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) !important; color: rgba(255,255,255,.5) !important; }
body.light .fg-btn:hover    { background: #b8860b !important; color: #0f1923 !important; }
body.light .mobile-nav      { background: rgba(247,245,240,.98) !important; }
body.light .mobile-nav .nav-link { color: rgba(26,26,26,.65) !important; }
body.light .mobile-nav .nav-link:hover,
body.light .mobile-nav .nav-link.active { color: #b8860b !important; }
body.light .login-card      { background: #fff !important; border-color: rgba(15,25,35,.12) !important; }
body.light .login-card h2   { color: #0f1923 !important; }
body.light .lc-field        { background: #fff !important; border-color: rgba(15,25,35,.2) !important; color: #1a1a1a !important; }
body.light .lc-btn          { background: #b8860b !important; color: #0f1923 !important; }
body.light .lc-btn:hover    { background: #d4a017 !important; }
body.light .toast           { background: #fff !important; border-color: rgba(15,25,35,.15) !important; color: #1a1a1a !important; }

/* ══ RESPONSIVE ══ */
@media(max-width:900px){
  .featured-article{grid-template-columns:1fr}
  .fa-visual{min-height:210px}
  .about-grid-2{grid-template-columns:1fr}
  .dash-grid{grid-template-columns:repeat(2,1fr)}
  .d2col{grid-template-columns:1fr}
  .pf-layout{grid-template-columns:1fr}
  .sg{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .stat-row{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr 1fr;gap:22px}
  .related-grid{grid-template-columns:repeat(2,1fr)}
  #cat-bar{top:96px}
  body.admin-bar-visible #cat-bar{top:132px}
}
@media(max-width:768px){
  .header-inner{height:54px;gap:5px;padding:0 10px}
  nav#site-nav{display:none}
  .about-nav-btn{display:none}
  .site-name-sub{display:none}
  #admin-top-btn{display:flex;padding:5px 9px;font-size:11px}
  .hamburger-btn{display:none!important}
  .nav-hamburger-btn{display:none!important}
  .header-actions{gap:4px}
  .translate-btn .lang-label{display:none}
  .translate-btn{padding:5px 7px}
  #cat-bar{
    position:fixed;top:88px;left:0;right:0;z-index:380;
    background:var(--bg2);border-bottom:2px solid rgba(184,134,11,.3);
    height:38px;padding:0 8px;box-shadow:0 2px 8px rgba(0,0,0,.1);
  }
  #admin-top-bar.visible ~ #public-site #cat-bar{top:124px}
  body.admin-bar-visible #cat-bar{top:124px}
  .mobile-nav{top:54px}
  #admin-top-bar.visible ~ #public-site .mobile-nav{top:90px}
  .hero-section{min-height:68vh;padding-top:162px}
  .hero-logo-wrap{width:80px;height:80px}
  #hero-title{font-size:clamp(21px,5.5vw,30px)}
  .site-main{padding:22px 12px}
  .cards-grid{grid-template-columns:1fr}
  .art-body{padding:16px 13px}
  .art-cover{height:210px}
  .art-title{font-size:19px}
  .related-grid{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .adm-sb{position:fixed;right:-250px;top:0;bottom:0;z-index:1001;transition:right .3s ease}
  .adm-sb.open{right:0}
  .adm-hbg{display:flex}
  .adm-topbar{padding:0 13px}
  .adm-content{padding:13px}
  .dash-grid{grid-template-columns:1fr 1fr}
  .kpi-grid{grid-template-columns:1fr 1fr}
  .stat-band{grid-template-columns:1fr}
  .stat-row{grid-template-columns:1fr}
  .d2col{grid-template-columns:1fr}
}
@media(max-width:480px){
  .header-inner{height:50px;padding:0 8px}
  #admin-top-btn{font-size:10px;padding:4px 7px}
  #cat-bar{top:84px;height:36px}
  #admin-top-bar.visible ~ #public-site #cat-bar{top:120px}
  .hero-section{padding-top:154px;min-height:65vh}
  .hero-logo-wrap{width:62px;height:62px}
  #hero-title{font-size:19px}
  .btn-primary,.btn-secondary{padding:9px 14px;font-size:13px}
  .hero-cta{gap:6px}
  .dash-grid{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns:1fr}
  .login-card{width:calc(100vw - 20px);padding:22px 14px}
  .cat-pill{font-size:11.5px;padding:3px 9px}
  .site-name-main{font-size:12px}
}

/* Dashboard semantic classes — DARK MODE defaults (admin-light overrides exist separately) */
.dash-posts-list{display:flex;flex-direction:column;gap:0}
.dash-post-row{display:flex;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.dash-post-row:last-child{border-bottom:none}
.dash-post-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.dash-post-info{flex:1;overflow:hidden}
.dash-post-title{font-size:12.5px;font-weight:600;color:rgba(220,228,240,.85);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s}
.dash-post-title:hover{color:var(--gold)}
.dash-post-meta{font-size:10px;color:rgba(220,228,240,.35);margin-top:2px}
.dash-post-actions{display:flex;gap:4px;flex-shrink:0}
.dash-empty{color:rgba(220,228,240,.35);font-size:13px;padding:8px 0}
.dash-summary{font-size:13px}
.dash-sum-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.dash-sum-row:last-child{border-bottom:none}
.dash-sum-label{color:rgba(220,228,240,.5);font-weight:600;font-size:12px}
.dash-sum-val{color:rgba(220,228,240,.92);font-weight:800;font-size:13px}

/* ══ ADMIN DARK MODE — explicit text colors for all widget elements ══ */
/* These elements get color from CSS inheritance but need explicit override
   since body.light sets --text to dark brown which bleeds into admin */
#admin-panel .kpi-val,
#admin-panel .kpi-lbl,
#admin-panel .kpi-badge,
#admin-panel .kpi-ico,
#admin-panel .sb-cell-val,
#admin-panel .sb-cell-lbl,
#admin-panel .s-bar-lbl,
#admin-panel .cdi-name,
#admin-panel .cdi-n,
#admin-panel .cdi-b,
#admin-panel .tpi-t,
#admin-panel .tpi-v,
#admin-panel .tpi-rank,
#admin-panel .sbox-hd h3,
#admin-panel .sbox-hd,
#admin-panel .adm-box-hd h3,
#admin-panel .sg-hd,
#admin-panel .sg-row,
#admin-panel .sg-row label,
#admin-panel .sg-row strong,
#admin-panel .fld label,
#admin-panel .fld input,
#admin-panel .fld textarea,
#admin-panel .fld select,
#admin-panel .abt-tab,
#admin-panel .pt-search,
#admin-panel .ptc-title,
#admin-panel .stat-band,
#admin-panel .add-cat-inp,
#admin-panel .title-input,
#admin-panel #adm-page-title,
#admin-panel .adm-topbar,
#admin-panel .about-tabs-adm,
#admin-panel .notice { color: var(--text) !important; }

#admin-panel .sbox,
#admin-panel .sbox-bd,
#admin-panel .sg-card,
#admin-panel .kpi,
#admin-panel .stat-band,
#admin-panel .dw,
#admin-panel .adm-box { background: var(--card) !important; border-color: var(--border) !important; }

#admin-panel .sbox-hd,
#admin-panel .sg-hd,
#admin-panel .adm-box-hd { background: var(--card2) !important; border-color: var(--border) !important; }

#admin-panel .fld input,
#admin-panel .fld textarea,
#admin-panel .fld select,
#admin-panel .add-cat-inp,
#admin-panel .title-input { background: var(--glass2) !important; border-color: var(--border) !important; color: var(--text) !important; }

/* Keep gold colors for values/stats */
#admin-panel .sb-cell-val { color: var(--gold) !important; font-weight: 900; }
#admin-panel .kpi-val { color: var(--text) !important; }
#admin-panel .tpi-rank { background: var(--glass2) !important; color: var(--text-soft) !important; }
#admin-panel .tpi-rank.gold { background: rgba(200,146,42,.15) !important; color: var(--gold) !important; }
