/* Theme: light (default) — values from mockup/index-light.html */
:root,
:root[data-theme="light"]{
  --bg:#f0f4fa;
  --surface:#ffffff;
  --card:#ffffff;
  --line:rgba(0,0,0,.08);
  --text:#1a2332;
  --muted:rgba(26,35,50,.65);
  --brand:#1c4fd7;
  --brand2:#18a97a;
  --accent:#0d9488;
  --danger:#dc2626;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --radius:16px;
  --radius-sm:12px;
  --max:1680px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --topbar-bg: rgba(255,255,255,.85);
  --fill-subtle: rgba(0,0,0,.02);
  --fill-mid: rgba(0,0,0,.03);
  --fill-hover: rgba(0,0,0,.04);
  --fill-nav: rgba(0,0,0,.05);
  --footer-bg: rgba(255,255,255,.9);
}
/* Theme: dark — values from mockup/index.html */
:root[data-theme="dark"]{
  --bg:#0b1220;
  --surface:#0f1b33;
  --card:#0f2247;
  --line:rgba(255,255,255,.10);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --brand:#1c4fd7;
  --brand2:#18a97a;
  --accent:#6ee7ff;
  --danger:#ff4d6d;
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --radius:16px;
  --radius-sm:12px;
  --max:1680px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --topbar-bg: rgba(5,10,20,.62);
  --fill-subtle: rgba(255,255,255,.02);
  --fill-mid: rgba(255,255,255,.03);
  --fill-hover: rgba(255,255,255,.04);
  --fill-nav: rgba(255,255,255,.06);
  --footer-bg: rgba(11,18,32,.95);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(28,79,215,.12), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(24,169,122,.1), transparent 55%),
    linear-gradient(180deg, #e8eef6, var(--bg) 55%, #e2e8f2);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color:var(--text);
}
:root[data-theme="dark"] body{
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(28,79,215,.35), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(24,169,122,.28), transparent 55%),
    linear-gradient(180deg, #050a14, var(--bg) 55%, #050a14);
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

/* Header */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
  gap:20px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width:200px; flex-shrink:0;
}
.logo{
  width:40px; height:40px; flex-shrink:0;
  border-radius:12px;
  background:
    radial-gradient(10px 10px at 30% 30%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 4px 16px rgba(28,79,215,.25);
}
.logo-list{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.logo-list .logo-img{ max-height:40px; max-width:72px; object-fit:contain; display:block; }
.brand b{display:block; font-size:14px; letter-spacing:.02em; color:var(--text); font-weight:600}
.brand span{display:block; font-size:12px; color:var(--muted); margin-top:1px}
.brand-text-full .brand span{line-height:1.3}
.brand-text-mobile{display:none}

.topbar-actions{
  display:flex; align-items:center; gap:24px;
  flex:1; min-width:0; justify-content:flex-end;
}
.topbar-actions nav{
  display:flex; gap:4px; align-items:center;
}
.topbar-actions nav a{
  font-size:13px; color:var(--muted);
  padding:8px 12px; border-radius:10px;
  white-space:nowrap;
  transition: color .15s ease, background .15s ease;
}
.topbar-actions nav a:hover{background:var(--fill-nav); color:var(--text)}

.header-cta{
  display:flex; align-items:center; gap:8px;
  padding-left:20px; border-left:1px solid var(--line);
  flex-shrink:0;
}
.header-cta .btn{ height:36px; padding:0 12px; font-size:12px }
.header-cta .btn-primary{ padding:0 14px }
.header-cta .btn-ghost:not(.menu-btn){ min-width:36px; padding:0 }
.header-cta .header-cta-main:first-of-type{ margin-left:4px }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:40px; padding:0 14px; border-radius:12px;
  border:1px solid var(--line); background:var(--surface);
  color:var(--text); font-size:13px; cursor:pointer;
  transition: .18s ease;
  white-space:nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
:root[data-theme="dark"] .btn{ background:rgba(255,255,255,.04); box-shadow:none; }
:root[data-theme="dark"] .btn:hover{ background:rgba(255,255,255,.07); }
.btn:hover{transform: translateY(-1px); background:var(--fill-hover)}
.btn-primary{
  border-color: rgba(28,79,215,.4);
  background: linear-gradient(135deg, #2563eb, #0d9488);
  color:#fff;
  box-shadow: 0 4px 14px rgba(28,79,215,.3);
}
.btn-primary:hover{filter:brightness(1.06)}
.btn-ghost{background:transparent; box-shadow:none}
.btn-danger{border-color: rgba(220,38,38,.4); background: rgba(220,38,38,.1); color:var(--danger)}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--line);
  border-radius:999px; padding:6px 10px;
  color:var(--muted); font-size:12px;
  background: var(--fill-mid);
}
.pill strong{color:var(--text); font-weight:600}

/* Hero */
.hero{padding:36px 0 18px}
.hero-grid{
  display:grid; grid-template-columns: 1.15fr .85fr; gap:18px;
  align-items:stretch;
}
.hero-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.9));
  box-shadow: var(--shadow);
  padding:22px;
  overflow:hidden;
  position:relative;
}
:root[data-theme="dark"] .hero-card{
  background:
    radial-gradient(900px 350px at 20% 0%, rgba(110,231,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
}
.hero-card:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(500px 250px at 20% 20%, rgba(28,79,215,.08), transparent 60%);
  pointer-events:none;
}
:root[data-theme="dark"] .hero-card:before{
  background: radial-gradient(500px 250px at 20% 20%, rgba(28,79,215,.18), transparent 60%);
}
.hero-card-overlay{
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.94));
}
:root[data-theme="dark"] .hero-card-overlay{ background: transparent; }

/* Hero selalu tampil terang (tidak pakai dark mode) */
:root[data-theme="dark"] .hero{
  --surface:#ffffff;
  --text:#1a2332;
  --muted:rgba(26,35,50,.65);
  --line:rgba(0,0,0,.08);
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --fill-hover:rgba(0,0,0,.04);
}
:root[data-theme="dark"] .hero .hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.9));
}
:root[data-theme="dark"] .hero .hero-card:before{
  background: radial-gradient(500px 250px at 20% 20%, rgba(28,79,215,.08), transparent 60%);
}
:root[data-theme="dark"] .hero .hero-card-overlay{
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.94));
}
:root[data-theme="dark"] .hero .stat{
  background: rgba(255,255,255,.7);
}
:root[data-theme="dark"] .hero .btn{
  background:var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
:root[data-theme="dark"] .hero .btn:hover{
  background:var(--fill-hover);
}

.hero h1{
  margin:10px 0 8px;
  font-size: 34px;
  line-height:1.12;
  letter-spacing:-.3px;
  color:var(--text);
}
.lead{margin:0; color:var(--muted); font-size:14px; line-height:1.6; max-width:58ch}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.stats{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:10px; margin-top:18px;
}
.stat{
  border:1px solid var(--line);
  background: rgba(255,255,255,.7);
  border-radius: 14px;
  padding:12px;
}
:root[data-theme="dark"] .stat{ background: rgba(255,255,255,.03); }
.stat b{display:block; font-size:15px; color:var(--text)}
.stat span{display:block; color:var(--muted); font-size:12px; margin-top:2px}

/* Right rail card */
.rail{display:grid; gap:12px}
.mini{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding:16px;
  box-shadow: var(--shadow);
}
.mini h3{margin:0 0 10px; font-size:14px; color:var(--text)}
.mini p{margin:0; color:var(--muted); font-size:13px; line-height:1.6}
.list{margin:10px 0 0; padding:0; list-style:none; display:grid; gap:10px}
.list li{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: var(--fill-subtle);
}
.badge{
  font-size:11px; padding:5px 8px; border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background: var(--fill-hover);
  white-space:nowrap;
}
.badge.ok{border-color: rgba(24,169,122,.5); background: rgba(24,169,122,.12); color: #0f766e}
.badge.info{border-color: rgba(13,148,136,.5); background: rgba(13,148,136,.12); color: #0f766e}
.badge.warn{border-color: rgba(202,138,4,.5); background: rgba(202,138,4,.12); color: #854d0e}

/* Sections */
section{padding:22px 0}
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
  margin-bottom:12px;
}
.section-title h2{margin:0; font-size:18px; letter-spacing:-.2px; color:var(--text)}
.section-title p{margin:0; color:var(--muted); font-size:13px}
.grid-2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding:16px;
  box-shadow: var(--shadow);
}

/* Program Catalog */
.filters{
  display:flex; flex-wrap:wrap; gap:10px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding:12px;
  align-items:flex-end;
  box-shadow: var(--shadow);
}
label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
.field{
  display:flex; flex-direction:column; gap:6px;
  min-width: 190px;
  flex: 1 1 190px;
}
select,input[type="search"],input[type="text"],input[type="email"],input[type="password"],input[type="file"],textarea{
  width:100%;
  height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--surface);
  color:var(--text);
  padding:0 12px;
  outline:none;
}
textarea{height:120px; padding:10px 12px; resize:vertical}
select:focus, input:focus, textarea:focus{border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,148,136,.15)}
.table-wrap{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
table{width:100%; border-collapse:collapse}
th,td{padding:12px 12px; border-bottom:1px solid var(--line); text-align:left; font-size:13px; color:var(--text)}
th{font-size:12px; color:var(--muted); background: var(--fill-mid); position:sticky; top:0}
tr:hover td{background: var(--fill-subtle)}
.td-actions{display:flex; gap:8px; flex-wrap:wrap}

/* Procedure */
.steps{display:grid; gap:10px}
.step{
  display:flex; gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius: 16px;
  background: var(--fill-subtle);
}
.step .num{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(28,79,215,.12);
  border:1px solid rgba(28,79,215,.3);
  color:var(--brand);
  font-weight:700;
  flex:0 0 34px;
}
.step b{display:block; margin-top:1px; font-size:13px; color:var(--text)}
.step span{display:block; color:var(--muted); font-size:12px; margin-top:4px; line-height:1.5}

/* Dashboard */
.dash-grid{
  display:grid; grid-template-columns: 1.05fr .95fr; gap:12px;
}
.kpis{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:10px}
.kpi{
  border:1px solid var(--line);
  border-radius: 14px;
  padding:12px;
  background: var(--fill-subtle);
}
.kpi b{display:block; font-size:14px; color:var(--text)}
.kpi span{display:block; font-size:12px; color:var(--muted); margin-top:2px}
.tracker{
  display:grid; gap:10px; margin-top:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--fill-subtle);
}
.track-row{display:flex; align-items:center; justify-content:space-between; gap:10px}
.progress{
  height:10px; border-radius:999px;
  background: var(--fill-mid);
  border:1px solid var(--line);
  overflow:hidden;
}
:root[data-theme="dark"] .progress{ background: rgba(255,255,255,.08); }
.bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--brand), var(--brand2), var(--accent));
  border-radius:999px;
  transition: width .25s ease;
}
.track-steps{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--fill-mid);
  color:var(--muted);
}
.chip.active{
  color: var(--text);
  border-color: var(--accent);
  background: rgba(13,148,136,.12);
}
:root[data-theme="dark"] .chip.active{ background: rgba(110,231,255,.12); }
.form-grid{display:grid; grid-template-columns: 1fr; gap:10px}
.form-grid .span-2{grid-column:1 / -1}

/* News */
.news{display:grid; gap:12px}
.news-item{
  display:flex; justify-content:space-between; gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  align-items:flex-start;
}
.news-item-link{
  color:inherit; text-decoration:none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.news-item-link:hover{
  background: var(--fill-subtle);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
:root[data-theme="dark"] .news-item-link:hover{
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.news-item-body{ flex:1; min-width:0; }
.news-item-img{
  object-fit:cover; border-radius:var(--radius-sm); margin-bottom:8px; display:block;
}
.news-item-title{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  font-size:14px; font-weight:600; color:var(--text);
  margin:0 0 4px; line-height:1.35;
}
.news-item-excerpt{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  color:var(--muted); font-size:12px; line-height:1.5;
}
.news-item-meta{
  display:grid; gap:6px; text-align:right; min-width:120px; flex-shrink:0;
}
.news-item-meta .date{font-size:12px; color:var(--muted)}
.news-item .meta{display:grid; gap:6px; text-align:right; min-width:140px}
.meta .date{font-size:12px; color:var(--muted)}

/* News list page + pagination */
.news-section .section-title h1{ font-size:22px; }
.news-pagination{ margin-top:24px; }
.news-pagination .pagination-inner{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
.pagination-info{ font-size:13px; color:var(--muted); }

/* News detail */
.news-detail{ padding:22px 0 32px; }
.news-detail-header{ margin-bottom:16px; }
.news-detail-header h1{ margin:0 0 8px; font-size:26px; line-height:1.3; color:var(--text); }
.news-detail-meta{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:13px; color:var(--muted); }
.news-detail-meta .badge{ margin:0; }
.news-detail-figure{ margin:0 0 20px; border-radius:var(--radius); overflow:hidden; }
.news-detail-body{ font-size:15px; line-height:1.7; color:var(--text); }
.news-detail-body p{ margin:0 0 12px; }
.news-detail-body h2,.news-detail-body h3,.news-detail-body h4{ margin:18px 0 8px; font-size:18px; }
.news-detail-body ul,.news-detail-body ol{ margin:0 0 12px; padding-left:1.5em; }
.news-detail-body a{ color:var(--accent); text-decoration:underline; }
.news-detail-footer{ margin-top:28px; padding-top:20px; border-top:1px solid var(--line); display:flex; gap:10px; flex-wrap:wrap; }

@media (max-width: 640px){
  .news-item{ flex-wrap:wrap; }
  .news-item-meta{ width:100%; min-width:0; text-align:left; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); display:flex; flex-direction:row; flex-wrap:wrap; gap:8px; align-items:center; }
  .news-item .meta{ width:100%; min-width:0; text-align:left; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); display:flex; flex-direction:row; flex-wrap:wrap; gap:8px; align-items:center; }
}

/* Footer */
footer{
  border-top:1px solid var(--line);
  background: var(--footer-bg);
  padding:22px 0;
  margin-top:20px;
}
.foot{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  color:var(--muted); font-size:12px;
}

/* Admin layout: container aligns with header (green lines); sidebar width per blue line */
.admin-container{
  min-height:calc(100vh - 72px);
}
.admin-wrap{
  display:flex;
  min-height:inherit;
}
.admin-sidebar{
  width:200px;
  flex-shrink:0;
  background: var(--surface);
  border-right:1px solid var(--line);
  padding:16px 0;
  text-align:left;
}
.admin-sidebar-nav{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:2px;
  text-align:left;
}
.admin-sidebar-link{
  display:block;
  padding:10px 16px;
  font-size:13px;
  color:var(--muted);
  border-radius:0 12px 12px 0;
  margin:0 8px 0 0;
  transition: background .15s ease, color .15s ease;
  text-align:left;
  width:100%;
  box-sizing:border-box;
}
.admin-sidebar-link:hover{
  background: var(--fill-hover);
  color:var(--text);
}
.admin-sidebar-link.active{
  background: rgba(13,148,136,.18);
  color: var(--accent);
  font-weight: 600;
  border-left: 4px solid var(--accent);
  margin-left: 0;
  padding-left: 12px;
  box-shadow: 0 1px 3px rgba(13,148,136,.15);
}
.admin-sidebar-link.active:hover{
  background: rgba(13,148,136,.22);
  color: var(--accent);
}
:root[data-theme="dark"] .admin-sidebar-link.active{
  background: rgba(110,231,255,.18);
  box-shadow: 0 1px 3px rgba(110,231,255,.15);
}
:root[data-theme="dark"] .admin-sidebar-link.active:hover{
  background: rgba(110,231,255,.22);
}
.admin-main{
  flex:1;
  min-width:0;
  padding:0;
}
.admin-main .container{
  padding-top:24px;
  padding-bottom:24px;
}
.admin-sidebar-toggle{
  display:none;
  position:fixed;
  bottom:20px;
  left:20px;
  z-index:60;
  box-shadow: var(--shadow);
}

/* Responsive */
.menu-btn{display:none}
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr}
  .dash-grid{grid-template-columns: 1fr}
  nav{display:none}
  .menu-btn{display:inline-flex}
  .header-cta{min-width:auto; padding-left:0; border-left:none}
  .brand{min-width:auto}
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .kpis{grid-template-columns: 1fr}
  .stats{grid-template-columns: 1fr}
  th{position:static}
  .form-grid{grid-template-columns: 1fr}
  /* Admin sidebar: overlay on small screens */
  .admin-wrap{position:relative}
  .admin-sidebar{
    position:fixed;
    top:72px;
    left:0;
    bottom:0;
    z-index:45;
    transform:translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,.2);
  }
  :root[data-theme="dark"] .admin-sidebar{
    box-shadow: 0 0 0 100vmax rgba(0,0,0,.5);
  }
  .admin-sidebar.open{
    transform:translateX(0);
  }
  .admin-sidebar-toggle{display:inline-flex}
}

/* Mobile narrow (≤520px): cleaner topbar, compact hero, full-width CTAs in drawer */
@media (max-width: 520px){
  .topbar-inner{gap:10px}
  .brand{min-width:0}
  .brand-text-full{display:none}
  .brand-text-mobile{display:block}
  .header-cta{min-width:auto}
  .header-cta .header-cta-main{display:none}
  #mobileNav .card.mobile-nav-card{
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  #mobileNav .btn{width:100%; justify-content:center}
  #mobileNav .mobile-nav-utils{display:flex; gap:8px; margin-top:4px}
  #mobileNav .mobile-nav-utils .btn{width:auto; flex:1}
  .hero-card{padding:16px}
  .hero h1{font-size:clamp(24px, 7vw, 32px); line-height:1.1}
  .hero-actions{flex-direction:column; gap:8px}
  .hero-actions .btn{width:100%}
  .stats{grid-template-columns:1fr}
  .hero .lead-wrap .lead:not(.lead--expanded){
    display:-webkit-box;
    -webkit-line-clamp:5;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .hero .lead-wrap .lead.lead--expanded{
    -webkit-line-clamp:unset;
    display:block;
  }
  .hero .toggle-lead-btn{display:inline-flex; margin-top:4px}
}
.hero .toggle-lead-btn{display:none}

/* Dark mode: ensure hero cards/tiles don't stay light */
:root[data-theme="dark"] .hero-card{
  background:
    radial-gradient(900px 350px at 20% 0%, rgba(110,231,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)) !important;
}
:root[data-theme="dark"] .hero-card:before{
  background: radial-gradient(500px 250px at 20% 20%, rgba(28,79,215,.18), transparent 60%) !important;
}
:root[data-theme="dark"] .hero-card-overlay{
  background: transparent !important;
}
:root[data-theme="dark"] .hero .stat{
  background: rgba(255,255,255,.03) !important;
}
:root[data-theme="dark"] .hero .card{
  background: var(--surface) !important;
  color: var(--text) !important;
}

/* Force hero variables (override any accidental light-mode tweaks) */
:root[data-theme="dark"] .hero{
  --surface:#0f1b33 !important;
  --card:#0f2247 !important;
  --line:rgba(255,255,255,.10) !important;
  --text:#eaf0ff !important;
  --muted:rgba(234,240,255,.72) !important;
  --shadow: 0 18px 45px rgba(0,0,0,.35) !important;
  --fill-hover:rgba(255,255,255,.04) !important;
}
