:root{
  --red:#c1121f;
  --black:#0b0b0b;
  --gold:#d4af37;
  --gold2:#a8831e;
  --off:#f7f3e9;
  --muted:rgba(247,243,233,.78);
  --card:rgba(11,11,11,.78);
  --card2:rgba(11,11,11,.92);
  --stroke:rgba(212,175,55,.28);
  --stroke2:rgba(212,175,55,.42);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--off);
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(193,18,31,.35), transparent 60%),
    radial-gradient(1000px 700px at 120% 10%, rgba(212,175,55,.22), transparent 55%),
    linear-gradient(180deg, #070707 0%, #0b0b0b 55%, #060606 100%);
  overflow-x:hidden;
}
/* subtle plaid overlay */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(45deg, rgba(193,18,31,.05) 0 2px, transparent 2px 22px);
  mix-blend-mode: overlay;
  opacity:.55;
}
a{color:var(--off); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1200px; margin:0 auto; padding:22px 18px 64px}
.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(18px);
  background: rgba(11,11,11,.7);
  border-bottom: 1px solid rgba(212,175,55,.2);
}
.topbarInner{max-width:1200px; margin:0 auto; padding:14px 18px; display:flex; align-items:center; gap:14px}
.brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.5px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(212,175,55,.35);
  background: rgba(212,175,55,.08);
  color: rgba(247,243,233,.9);
  font-size:12px;
}
.logoDot{width:12px; height:12px; border-radius:3px; background:linear-gradient(180deg, var(--gold), var(--red)); box-shadow:0 0 0 2px rgba(212,175,55,.18)}
.search{flex:1; display:flex; gap:10px; align-items:center}
.search input{
  width:100%; padding:10px 12px; border-radius:12px;
  background: rgba(247,243,233,.06);
  border:1px solid rgba(212,175,55,.22);
  color:var(--off);
  outline:none;
}
.search input:focus{border-color: rgba(212,175,55,.5); box-shadow:0 0 0 4px rgba(212,175,55,.12)}
.btn{
  border:1px solid rgba(212,175,55,.42);
  background: linear-gradient(180deg, rgba(212,175,55,.18), rgba(193,18,31,.12));
  color: var(--off);
  padding:10px 12px; border-radius:12px;
  cursor:pointer; font-weight:700;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.btn:hover{filter:brightness(1.05)}
.btn.secondary{background: rgba(247,243,233,.06); border-color: rgba(212,175,55,.22)}
.grid{display:grid; gap:14px}
.grid.cols3{grid-template-columns: repeat(3, minmax(0,1fr))}
.grid.cols2{grid-template-columns: repeat(2, minmax(0,1fr))}
@media (max-width: 980px){ .grid.cols3{grid-template-columns:1fr} .grid.cols2{grid-template-columns:1fr} }
.card{
  background: rgba(11,11,11,.76);
  border:1px solid rgba(212,175,55,.22);
  border-radius:16px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardHeader{padding:14px 14px 0}
.cardBody{padding:12px 14px 14px}
.h1{font-size:34px; line-height:1.1; margin:0}
.h2{font-size:18px; margin:0 0 6px}
.small{color:var(--muted); font-size:13px; line-height:1.5}
.kpiRow{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.pill{
  display:inline-flex; align-items:center;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(212,175,55,.26);
  background: rgba(247,243,233,.05);
  color: rgba(247,243,233,.92);
  font-size:12px;
}
.layout{display:grid; grid-template-columns: 290px 1fr; gap:16px; align-items:start}
@media (max-width: 980px){ .layout{grid-template-columns:1fr} }
.sidebar{
  position: sticky; top:74px;
  padding:14px;
  background: rgba(11,11,11,.72);
  border:1px solid rgba(212,175,55,.22);
  border-radius:16px;
  box-shadow: var(--shadow);
}
.navTitle{font-weight:900; margin:0 0 10px; letter-spacing:.4px}
.nav a{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 10px; border-radius:12px; border:1px solid transparent}
.nav a:hover{background: rgba(247,243,233,.05); text-decoration:none; border-color: rgba(212,175,55,.16)}
.nav .active{background: rgba(212,175,55,.10); border-color: rgba(212,175,55,.30)}
.progressWrap{margin-top:12px; padding:10px; border-radius:12px; border:1px solid rgba(212,175,55,.18); background: rgba(247,243,233,.04)}
.bar{height:10px; border-radius:999px; background: rgba(247,243,233,.08); border:1px solid rgba(212,175,55,.18); overflow:hidden}
.bar > div{height:100%; width:0%; background: linear-gradient(90deg, var(--red), var(--gold));}
.twoCol{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
@media (max-width: 980px){ .twoCol{grid-template-columns: 1fr} }
.section{padding:18px 18px 0}
.section h2{margin:0 0 6px}
hr.sep{border:none; border-top:1px solid rgba(212,175,55,.18); margin:14px 0}
.content{
  background: rgba(11,11,11,.78);
  border:1px solid rgba(212,175,55,.22);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:16px;
}
.content h1{margin:0 0 8px}
.content h2{margin:18px 0 8px}
.content h3{margin:14px 0 6px}
.content p, .content li{color: rgba(247,243,233,.92); line-height:1.7}
.content ul{margin:8px 0 0 18px}
.callout{
  border-left: 4px solid var(--gold);
  background: rgba(212,175,55,.08);
  padding:12px 12px; border-radius:12px;
}
.table{
  width:100%;
  border-collapse: collapse;
  margin-top:10px;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(212,175,55,.18);
}
.table th, .table td{
  padding:10px 10px;
  border-bottom: 1px solid rgba(212,175,55,.12);
  vertical-align: top;
}
.table th{text-align:left; color: rgba(247,243,233,.95); background: rgba(247,243,233,.04)}
.footer{margin-top:26px; color: rgba(247,243,233,.7); font-size:12px}
.quiz{
  margin-top:14px;
  border:1px solid rgba(212,175,55,.18);
  border-radius:14px;
  padding:12px;
  background: rgba(247,243,233,.03);
}
.qitem{padding:10px; border-radius:12px; border:1px solid rgba(212,175,55,.14); background: rgba(11,11,11,.55); margin-top:10px}
.qitem label{display:block; margin:6px 0; cursor:pointer}
.result{
  margin-top:12px;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(212,175,55,.28);
  background: rgba(212,175,55,.08);
}
.toast{
  position:fixed; right:16px; bottom:16px; z-index:50;
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(212,175,55,.35);
  background: rgba(11,11,11,.92);
  box-shadow: var(--shadow);
  color: rgba(247,243,233,.92);
  display:none;
}
