/* ============ Acronix — global theme ============ */
:root {
  --bg:        #08080b;
  --bg-app:    #0a0a0e;
  --bg-side:   #0c0c11;
  --panel:     #121217;
  --panel-2:   #16161d;
  --panel-3:   #1c1c24;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #f5f5f7;
  --text-2:    #9a9aa6;
  --text-3:    #62626d;
  --accent:    #8b5cf6;
  --accent-2:  #a78bfa;
  --accent-3:  #7c3aed;
  --accent-soft: rgba(139,92,246,0.14);
  --accent-glow: rgba(139,92,246,0.40);
  --green:     #34d399;
  --green-soft:rgba(52,211,153,0.13);
  --amber:     #fbbf24;
  --amber-soft:rgba(251,191,36,0.13);
  --red:       #f87171;
  --red-soft:  rgba(248,113,113,0.13);
  --blue:      #60a5fa;
  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.4,.5,1);
  --shadow:    0 1px 2px rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.6);
  --shadow-lg: 0 24px 64px -16px rgba(0,0,0,0.7);
  --font:  'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
  --team-civ:    #8b8b97;
  --team-police: #5b9dff;
  --team-sheriff:#d9a455;
  --team-fire:   #ff7a59;
  --team-dot:    #ffd24a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
#root { min-height: 100vh; }
::selection { background: var(--accent-glow); color: #fff; }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); background-clip: padding-box; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; height: 40px; border-radius: var(--radius-xs);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .2s var(--ease-spring), background .22s var(--ease), box-shadow .25s var(--ease), border-color .22s var(--ease), color .2s var(--ease), filter .22s var(--ease);
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 22px -8px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 12px 30px -8px var(--accent-glow); filter: brightness(1.06); }
.btn-ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--panel-3); border-color: rgba(255,255,255,0.2); }
.btn-subtle { background: transparent; color: var(--text-2); }
.btn-subtle:hover { background: var(--panel-2); color: var(--text); }
.btn-discord { background: #5865F2; color: #fff; box-shadow: 0 8px 22px -8px rgba(88,101,242,0.6); }
.btn-discord:hover { background: #4752e0; filter: brightness(1.04); }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid rgba(248,113,113,0.25); }
.btn-danger:hover { background: rgba(248,113,113,0.2); }

/* ============ cards ============ */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-hover { transition: transform .35s var(--ease-out), border-color .3s var(--ease), box-shadow .35s var(--ease-out); }
.card-hover:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-lg); }

/* ============ badges / pills ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid var(--border-2);
}
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.badge-green { background: var(--green-soft); color: var(--green); border-color: rgba(52,211,153,0.25); }
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(251,191,36,0.25); }
.badge-red   { background: var(--red-soft);   color: var(--red);   border-color: rgba(248,113,113,0.25); }
.badge-violet{ background: var(--accent-soft); color: var(--accent-2); border-color: rgba(139,92,246,0.3); }
.badge-gray  { background: var(--panel-3); color: var(--text-2); }

/* ============ inputs ============ */
.input {
  display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 12px; border-radius: var(--radius-xs);
  background: var(--panel-2); border: 1px solid var(--border-2); color: var(--text);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--panel); }
.input input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; }
.input input::placeholder { color: var(--text-3); }
.kbd {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  border: 1px solid var(--border-2); border-radius: 5px; padding: 2px 5px; line-height: 1;
  background: var(--panel-3);
}

/* ============ animations ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pingRing { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes shimmer { 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes gridmove { to { background-position: 40px 40px; } }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dashflow { to { stroke-dashoffset: -1000; } }
@keyframes viewEnter { from { opacity: 0; transform: translateY(12px) scale(.992); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes progressBar { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(1); } }

.anim-fadeup { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
.anim-fadein { animation: fadeIn .5s ease both; }
.anim-scalein { animation: scaleIn .4s cubic-bezier(.2,.7,.2,1) both; }
.live-dot { position: relative; }
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: pingRing 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============ route transition wrapper ============ */
.route { animation: viewEnter .55s var(--ease-out) both; }
.page-enter { animation: pageEnter .5s var(--ease-out) both; }

/* scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* route progress bar */
.route-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2.5px; z-index: 300; pointer-events: none;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
  animation: progressBar .55s var(--ease-out) forwards, fadeIn .15s ease;
}
.route-progress.done { animation: fadeOut .35s ease .1s forwards; }
@keyframes fadeOut { to { opacity: 0; } }

/* ============ utility ============ */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.spread { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-2); }
.muted-3 { color: var(--text-3); }
.grow { flex: 1; }
.txt-green { color: var(--green); } .txt-amber { color: var(--amber); } .txt-red { color: var(--red); }
.txt-accent { color: var(--accent-2); }
.hide-scroll::-webkit-scrollbar { display: none; }

/* gradient text */
.grad-text {
  background: linear-gradient(120deg, #fff 18%, var(--accent-2) 42%, #fff 64%, var(--accent-2) 86%, #fff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 7s ease-in-out infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* icon button */
.iconbtn {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  color: var(--text-3); transition: background .15s var(--ease), color .15s var(--ease), transform .2s var(--ease-spring);
}
.iconbtn:hover { background: var(--panel-3); color: var(--text); transform: translateY(-1px) scale(1.08); }
.iconbtn:active { transform: scale(.92); }

/* nav item */
.navitem {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--text-2); transition: all .16s; position: relative;
}
.navitem:hover { background: var(--panel-2); color: var(--text); }
.navitem:hover { transform: translateX(2px); }
.navitem:active { transform: translateX(2px) scale(.985); }
.navitem.active { background: var(--panel-2); color: var(--text); transform: none; }
.navitem { transition: background .22s var(--ease), color .2s var(--ease), transform .22s var(--ease-spring); }
.navitem.active::before {
  content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 2px; background: var(--accent);
  animation: navbar .4s var(--ease-spring) both;
}
@keyframes navbar { from { transform: translateY(-50%) scaleY(0); } to { transform: translateY(-50%) scaleY(1); } }

/* ===== collapsible nav group + tree connectors ===== */
.nav-group-head {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--text-2); transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-group-head:hover { background: var(--panel-2); color: var(--text); }
.nav-group-chev { transition: transform .35s var(--ease-out); color: var(--text-3); }
.nav-group.open .nav-group-chev { transform: rotate(180deg); }
.nav-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease-out); }
.nav-group.open .nav-collapse { grid-template-rows: 1fr; }
.nav-collapse > div { overflow: hidden; }

.nav-tree { position: relative; margin: 4px 0 2px 21px; padding-left: 14px; display: flex; flex-direction: column; gap: 2px; }
.nav-tree::before { content: ''; position: absolute; left: 0; top: 0; bottom: 16px; width: 1.5px; background: var(--border-2); border-radius: 2px; }
.nav-sub {
  position: relative; display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 8px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: background .18s var(--ease), color .18s var(--ease), transform .2s var(--ease-spring);
}
.nav-sub::before {
  content: ''; position: absolute; left: -14px; top: 50%; width: 12px; height: 12px;
  border-left: 1.5px solid var(--border-2); border-bottom: 1.5px solid var(--border-2);
  border-bottom-left-radius: 8px; transform: translateY(-100%);
  transition: border-color .2s var(--ease);
}
.nav-sub:hover { background: var(--panel-2); color: var(--text); transform: translateX(2px); }
.nav-sub.active { background: var(--panel-2); color: var(--text); }
.nav-sub.active::before { border-color: var(--accent); }

/* ===== immersive ER:LC live widget ===== */
.erlc-widget {
  flex: none;
  border-radius: 14px; border: 1px solid var(--border);
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(139,92,246,0.10), transparent 58%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  overflow: hidden; transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.erlc-widget.open { border-color: rgba(139,92,246,0.28); box-shadow: 0 0 0 1px rgba(139,92,246,0.10), 0 18px 44px -24px rgba(139,92,246,0.55); }
.erlc-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 13px; text-align: left; }
.erlc-emblem {
  width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--accent-2), var(--accent-3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 6px 16px -6px var(--accent-glow); position: relative;
}
.erlc-emblem::after {
  content: ''; position: absolute; inset: 0; border-radius: 11px;
  background: linear-gradient(155deg, rgba(255,255,255,0.28), transparent 52%); pointer-events: none;
}
.erlc-emblem-dot {
  position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--green); border: 2.5px solid var(--bg-side); box-shadow: 0 0 8px var(--green);
}
.erlc-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 17px; padding: 0 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--green);
  background: var(--green-soft); border: 1px solid rgba(52,211,153,0.28);
}
.erlc-livedot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.erlc-livedot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: pingRing 1.8s ease-out infinite; }
.erlc-chev { transition: transform .4s var(--ease-out); color: var(--text-3); flex: none; }
.erlc-widget.open .erlc-chev { transform: rotate(180deg); }

.erlc-cap { padding: 0 13px 12px; }
.erlc-cap-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.erlc-cap-label { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.erlc-cap-num { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.erlc-cap-num b { color: var(--text); font-weight: 700; }
.erlc-cap-bar { height: 5px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.erlc-cap-fill {
  height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 0 10px var(--accent-glow); transform-origin: left; animation: barGrow 1s var(--ease-out) both;
}

.erlc-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease-out); }
.erlc-widget.open .erlc-collapse { grid-template-rows: 1fr; }
.erlc-collapse > div { overflow: hidden; }

.erlc-tree { position: relative; margin: 2px 8px 10px 16px; padding-left: 8px; display: flex; flex-direction: column; gap: 2px; }
.erlc-tree::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 8px; width: 1.5px; background: var(--border); border-radius: 2px; }
.erlc-tree-fill { display: none; }
.erlc-ind {
  position: absolute; left: 4px; right: 0; border-radius: 9px;
  background: var(--panel-2);
  transition: top .4s var(--ease-out), height .4s var(--ease-out), opacity .25s var(--ease); pointer-events: none; z-index: 0;
}
.erlc-ind::before {
  content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 2.5px; height: 60%; border-radius: 2px; background: var(--accent);
}
.erlc-sub {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 9px; color: var(--text-2);
  transition: color .2s var(--ease);
}
.erlc-sub:hover { color: var(--text); }
.erlc-sub:hover .erlc-chip { color: var(--text-2); }
.erlc-sub.active { color: var(--text); }
.erlc-chip {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--text-3);
  transition: color .22s var(--ease), transform .35s var(--ease-spring);
}
.erlc-sub.active .erlc-chip {
  color: var(--accent-2);
  filter: drop-shadow(0 2px 6px var(--accent-glow));
  animation: erlcChipPop .45s var(--ease-spring) both;
}
@keyframes erlcChipPop {
  0% { transform: scale(0.85); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
.erlc-count {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: var(--panel-3); color: var(--text-3); border: 1px solid var(--border); flex: none;
  transition: all .25s var(--ease);
}
.erlc-sub.active .erlc-count { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(139,92,246,0.3); }

/* ===== Auto roles — advanced controls ===== */
.ar-select {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--border-2); transition: border-color .18s var(--ease), background .18s var(--ease);
  cursor: pointer; width: 100%; text-align: left;
}
.ar-select:hover { border-color: rgba(255,255,255,0.2); background: var(--panel-3); }
.ar-pop {
  position: absolute; z-index: 40; margin-top: 6px; min-width: 240px;
  background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; animation: scaleIn .18s var(--ease-out) both; transform-origin: top left;
  max-height: 320px; overflow-y: auto;
}
.ar-pop-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 8px; transition: background .14s var(--ease); cursor: pointer;
}
.ar-pop-item:hover { background: var(--panel-3); }
.role-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 11px 0 currentColor, 0 0 2px 0 currentColor; }
.role-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 8px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--border-2); background: var(--panel-2);
  transition: border-color .16s var(--ease), background .16s var(--ease); cursor: pointer; max-width: 100%;
}
.role-pill:hover { border-color: rgba(255,255,255,0.22); background: var(--panel-3); }
.ar-rule { position: relative; transition: background .16s var(--ease); }
.ar-rule:focus-within { z-index: 30; }
.ar-rule:hover { background: var(--panel-2); }
.ar-rolerow { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; transition: background .14s var(--ease); }
.ar-rolerow:hover { background: var(--panel-2); }
@keyframes shimmerbar { 100% { background-position: 200% 0; } }
.ar-skeleton {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--panel-3) 25%, var(--panel-2) 37%, var(--panel-3) 63%);
  background-size: 200% 100%; animation: shimmerbar 1.3s ease infinite;
}

/* glow blob */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; }

/* ============ marquee ============ */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-rev .marquee-track { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============ FAQ accordion ============ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; transition: border-color .2s var(--ease), background .2s var(--ease); }
.faq-item:hover { border-color: var(--border-2); }
.faq-item.open { border-color: var(--border-2); background: var(--panel-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.faq-chevron { transition: transform .35s var(--ease-out); color: var(--text-3); flex: none; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent-2); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-answer { padding: 0 20px 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

/* ============ comparison table ============ */
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp .hl { position: relative; background: linear-gradient(180deg, rgba(139,92,246,0.10), rgba(139,92,246,0.04)); }
.cmp thead .hl { border-radius: 12px 12px 0 0; }
.cmp tbody tr:last-child .hl { border-radius: 0 0 12px 12px; }
.cmp-tick { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.cmp-dash { color: var(--text-3); }

/* ============ drawer / modal ============ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  z-index: 80; animation: fadeIn .25s ease both;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 96vw);
  background: var(--panel); border-left: 1px solid var(--border-2);
  z-index: 90; box-shadow: -24px 0 70px -24px rgba(0,0,0,0.75);
  display: flex; flex-direction: column; animation: drawerIn .42s var(--ease-out) both;
}
@keyframes drawerIn { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer { animation: drawerIn .5s var(--ease-spring) both; }
.drawer-overlay { animation: fadeIn .35s ease both; }
/* cascading fields */
.stagger > * { animation: fadeUp .5s var(--ease-out) both; }
.stagger > *:nth-child(1){animation-delay:.06s}
.stagger > *:nth-child(2){animation-delay:.10s}
.stagger > *:nth-child(3){animation-delay:.14s}
.stagger > *:nth-child(4){animation-delay:.18s}
.stagger > *:nth-child(5){animation-delay:.21s}
.stagger > *:nth-child(6){animation-delay:.24s}
.stagger > *:nth-child(7){animation-delay:.27s}
.stagger > *:nth-child(8){animation-delay:.30s}
.stagger > *:nth-child(9){animation-delay:.32s}
.stagger > *:nth-child(n+10){animation-delay:.34s}

/* checkbox */
.cbx {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-2);
  display: grid; place-items: center; transition: all .15s var(--ease); flex: none; cursor: pointer; color: transparent;
}
.cbx.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cbx:hover { border-color: var(--accent); }

/* admin badge */
.admin-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3)); color: #fff;
  box-shadow: 0 2px 8px -2px var(--accent-glow);
}
