/* ============================================================
   KPK TRAINING JAKARTA — design system
   Own-theme dark surface, Indonesian red + white accent.
   ============================================================ */

:root {
  --bg: #070c18;
  --bg-2: #090f1d;
  --surface: #0d1526;
  --surface-2: #111b2f;
  --surface-3: #16233b;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #edf1f8;
  --muted: #98a5ba;
  --muted-2: #6d7b92;
  --red: #e01e35;
  --red-2: #ff4055;
  --red-soft: rgba(224, 30, 53, 0.12);
  --red-line: rgba(224, 30, 53, 0.35);
  --green: #37c395;
  --green-soft: rgba(55, 195, 149, 0.12);
  --amber: #e6b45a;
  --amber-soft: rgba(230, 180, 90, 0.12);
  --blue: #6aa4ff;
  --blue-soft: rgba(106, 164, 255, 0.12);
  --white: #ffffff;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SFMono-Regular', ui-monospace, 'Cascadia Mono', Menlo, monospace;

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --container: 1180px;
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 12px 32px -24px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.no-smooth, html.no-smooth * { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  color: #0a0f1e;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

main { min-height: 60vh; }

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section--tight { padding: 60px 0; }
.section--flush { border-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.section-head > div { max-width: 660px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}

.h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.35rem);
  margin-bottom: 14px;
}
.h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.lead {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 64ch;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 12, 24, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 1fr;
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px -10px rgba(224, 30, 53, 0.9);
}
.brand-mark span:first-child { background: var(--red); }
.brand-mark span:last-child { background: #f4f6fb; }
.brand-mark--sm { width: 26px; height: 26px; border-radius: 7px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
}
.brand-text em {
  font-style: normal;
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: var(--r-sm);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav-links a.is-active { color: var(--text); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-user {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user:hover { border-color: var(--red-line); color: var(--red-2); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle i { width: 18px; height: 18px; }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.14s var(--ease), background 0.14s var(--ease), border-color 0.14s var(--ease), color 0.14s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn i { width: 16px; height: 16px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: var(--red);
  box-shadow: 0 14px 30px -18px rgba(224, 30, 53, 0.95);
}
.btn-primary:hover { --btn-bg: var(--red-2); --btn-bd: var(--red-2); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-bd: var(--line-strong); }
.btn-white { --btn-bg: #fff; --btn-fg: #0a0f1e; --btn-bd: #fff; }
.btn-white:hover { --btn-bg: #e9edf6; }
.btn-danger { --btn-fg: var(--red-2); --btn-bd: var(--red-line); --btn-bg: var(--red-soft); }
.btn-danger:hover { --btn-bg: rgba(224, 30, 53, 0.2); }
.btn-green { --btn-fg: #062018; --btn-bg: var(--green); --btn-bd: var(--green); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-sm i { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn-link {
  border: 0;
  background: none;
  color: var(--red-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link:hover { color: #ff6b7c; }

/* ---------- pills / chips / badges ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.chip--red { border-color: var(--red-line); background: var(--red-soft); color: #ff8896; }
.chip--green { border-color: rgba(55, 195, 149, 0.3); background: var(--green-soft); color: var(--green); }
.chip--amber { border-color: rgba(230, 180, 90, 0.3); background: var(--amber-soft); color: var(--amber); }
.chip--blue { border-color: rgba(106, 164, 255, 0.3); background: var(--blue-soft); color: var(--blue); }
.chip--muted { color: var(--muted-2); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tbd {
  border: 1px dashed rgba(230, 180, 90, 0.6);
  border-radius: 5px;
  padding: 0 5px;
  color: var(--amber);
  background: var(--amber-soft);
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-sample {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(230, 180, 90, 0.35);
  background: var(--amber-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: 30px; }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.card-sub { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }

.icon-tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  color: var(--red-2);
  flex-shrink: 0;
}
.icon-tile i { width: 18px; height: 18px; }
.icon-tile--neutral { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--muted); }
.icon-tile--green { background: var(--green-soft); border-color: rgba(55, 195, 149, 0.3); color: var(--green); }
.icon-tile--blue { background: var(--blue-soft); border-color: rgba(106, 164, 255, 0.3); color: var(--blue); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 82% 6%, rgba(224, 30, 53, 0.16), transparent 70%),
    radial-gradient(600px 420px at 12% 100%, rgba(50, 92, 170, 0.12), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-badge .pip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  display: grid;
  place-items: center;
}
.hero-badge .pip::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red-2); }
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--red-2); }
.hero-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 30px;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta-item i { width: 15px; height: 15px; color: var(--muted-2); }
.hero-meta-item b { color: var(--text); font-weight: 500; }
.hero-batches {
  margin: -14px 0 28px; font-size: 13px; line-height: 1.6; color: var(--muted-2);
}
.hero-batches b { color: var(--muted); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 12px; color: var(--muted-2); }
.hero-note a { color: var(--red-2); text-decoration: none; border-bottom: 1px solid rgba(224, 30, 53, 0.4); }
.hero-note a:hover { color: var(--text); border-bottom-color: var(--text); }

/* hero side panel */
.brief {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 35, 59, 0.85), rgba(13, 21, 38, 0.95));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.brief::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 50%, #f4f6fb 50% 100%);
}
.brief-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.brief-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.brief-title {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 6px 0 4px;
}
.brief-rows { display: grid; gap: 0; margin: 18px 0 20px; }
.brief-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.brief-row:last-child { border-bottom: 0; }
.brief-row span:first-child { color: var(--muted-2); }
.brief-row span:last-child { text-align: right; color: var(--text); font-weight: 500; }
.brief-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted-2);
}
.brief-foot .dot { color: var(--green); }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.stat {
  padding: 24px 26px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-value small { font-size: 12px; font-weight: 500; color: var(--muted-2); font-family: var(--font-body); letter-spacing: 0; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); background: var(--surface-2); }
.feature .icon-tile { margin-bottom: 18px; }
.feature h3 { font-size: 15px; margin-bottom: 9px; }
.feature p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- curriculum ---------- */

.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.day-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.day-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line-strong);
}
.day-card:first-child::before { background: var(--red); }
.day-top { display: flex; align-items: center; justify-content: space-between; }
.day-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--red-2);
  text-transform: uppercase;
}
.day-card h3 { font-size: 18px; line-height: 1.25; }
.day-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.day-sessions li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.day-sessions li:first-child { border-top: 0; padding-top: 0; }
.day-sessions time { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); padding-top: 1px; }
.day-outcome {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.day-outcome b { color: var(--text); font-weight: 500; }

/* ---------- tools ---------- */

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tool {
  background: var(--surface);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: background 0.16s var(--ease);
}
.tool:hover { background: var(--surface-2); }
.tool-icon {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  display: grid; place-items: center; color: var(--muted); flex-shrink: 0;
}
.tool-icon i { width: 16px; height: 16px; }
.tool h4 { font-size: 13.5px; font-family: var(--font-display); margin-bottom: 3px; }
.tool p { font-size: 12px; color: var(--muted-2); line-height: 1.5; }
.tool-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--red-2); text-transform: uppercase; }

/* ---------- ethics ---------- */

.ethics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ethics-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.ethics-card--do { border-top: 2px solid var(--green); }
.ethics-card--dont { border-top: 2px solid var(--red); }
.ethics-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ethics-head h3 { font-size: 17px; }
.ethics-head .icon-tile { width: 34px; height: 34px; }
.ethics-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ethics-list li { display: flex; gap: 11px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.ethics-list i { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.ethics-card--do i { color: var(--green); }
.ethics-card--dont i { color: var(--red-2); }

/* ---------- schedule table ---------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: auto;
  background: var(--surface);
}
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}
.table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.018); }
.table td strong, .table td b { color: var(--text); font-weight: 500; }
.table .day-cell { color: var(--red-2); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.table .time-cell { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- resources ---------- */

.resource-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.resource-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.resource-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.resource-group-head h3 { font-size: 14px; }
.resource-list { display: grid; gap: 2px; }
.resource {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.resource:first-child { border-top: 0; }
.resource-title { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.4; }
.resource-desc { font-size: 12px; color: var(--muted-2); margin-top: 4px; line-height: 1.5; }
.resource-meta {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--muted-2); margin-top: 8px;
}
.resource-meta i { width: 12px; height: 12px; }
.resource--pending { cursor: default; }
.resource--pending .resource-title { color: var(--muted); }

/* ---------- CTA ---------- */

.cta {
  border: 1px solid var(--red-line);
  background:
    radial-gradient(600px 300px at 88% 10%, rgba(224, 30, 53, 0.22), transparent 70%),
    linear-gradient(180deg, #141b2c, #0e1524);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), #fff);
}
.cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cta p { color: var(--muted); font-size: 14px; max-width: 52ch; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 54px 0 24px; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 50px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.footer-copy { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; max-width: 36ch; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.footer-cols a, .footer-tbd { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.footer-cols a:hover { color: var(--text); }
.footer-contact a { display: inline; color: var(--text); border-bottom: 1px solid rgba(224, 30, 53, 0.45); margin-bottom: 0; }
.footer-contact a:hover { color: var(--red-2); border-bottom-color: var(--red-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap;
}

/* ---------- page hero (inner pages) ---------- */

.page-head {
  padding: 54px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(620px 320px at 80% 0%, rgba(224, 30, 53, 0.12), transparent 70%),
    var(--bg-2);
}
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 12px; }
.page-head p { color: var(--muted); max-width: 62ch; font-size: 14.5px; }
.page-head .crumbs { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.page-head .crumbs b { color: var(--red-2); font-weight: 500; }

/* ---------- forms ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .span-2 { grid-column: span 2; }
.field { display: grid; gap: 7px; }
.field > label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}
.field > label .req { color: var(--red-2); }
.field > label.check { display: flex; align-items: flex-start; font-weight: 400; gap: 11px; }
.field .hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  background: #0a1222;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 9px;
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  appearance: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #56647b; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 30, 53, 0.14);
  background: #0b1425;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a5ba' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); }
.field-error { font-size: 11.5px; color: var(--red-2); }

.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-card {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #0a1222;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.radio-card:hover { border-color: rgba(255, 255, 255, 0.22); }
.radio-card input { accent-color: var(--red); margin: 2px 0 0; }
.radio-card b { display: block; font-size: 12.5px; font-weight: 500; color: var(--text); }
.radio-card span { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; line-height: 1.4; }
.radio-card:has(input:checked) { border-color: var(--red-line); background: var(--red-soft); }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #0a1222;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.check input { accent-color: var(--red); margin: 2px 0 0; width: 15px; height: 15px; flex-shrink: 0; }
.check b { color: var(--text); font-weight: 500; }

.form-grid #f-batch { margin-top: 10px; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 16px;
}
.form-section-title:first-child { margin-top: 0; }
.form-section-title .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red-2);
  letter-spacing: 0.1em;
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  border-radius: 4px;
  padding: 2px 6px;
}
.form-section-title h3 { font-size: 13.5px; letter-spacing: 0; }
.form-section-title .rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- register / login layout ---------- */

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
  padding: 40px 0 80px;
}
.auth-aside { display: grid; gap: 14px; position: sticky; top: 92px; }
.aside-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px;
}
.aside-card h3 { font-size: 13px; margin-bottom: 12px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-list li { display: flex; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.aside-list i { width: 14px; height: 14px; color: var(--red-2); flex-shrink: 0; margin-top: 3px; }

.login-wrap { max-width: 460px; margin: 0 auto; padding: 60px 0 90px; }
.login-card { padding: 32px; }
.login-card h1 { font-size: 24px; margin-bottom: 8px; }
.login-card .lead { font-size: 13.5px; margin-bottom: 24px; }
.demo-box {
  margin-top: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.demo-box .k { font-family: var(--font-mono); color: var(--text); font-size: 11.5px; }

/* ---------- success ---------- */

.success-card { max-width: 640px; margin: 0 auto; padding: 34px; text-align: center; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-soft); border: 1px solid rgba(55, 195, 149, 0.35);
  color: var(--green); display: grid; place-items: center; margin: 0 auto 20px;
}
.success-icon i { width: 24px; height: 24px; }
.success-card h1 { font-size: 26px; margin-bottom: 10px; }
.success-card p { color: var(--muted); font-size: 13.5px; }
.access-code {
  margin: 22px 0 8px;
  padding: 18px;
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: 0.28em;
  color: #fff;
  text-indent: 0.28em;
}
.success-meta { display: grid; gap: 8px; margin: 18px 0 24px; font-size: 12.5px; color: var(--muted); }
.success-meta b { color: var(--text); font-weight: 500; }

/* ---------- dashboard ---------- */

.dash-head {
  padding: 38px 0 26px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 300px at 78% 0%, rgba(224, 30, 53, 0.1), transparent 70%), var(--bg-2);
}
.dash-head-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 8px 0 6px; }
.dash-head .sub { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash-head .sub .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab i { width: 15px; height: 15px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--red); }
.tab .count {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.dash-body { padding: 30px 0 80px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.kpi-label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.kpi-label i { width: 14px; height: 14px; color: var(--muted-2); }
.kpi-value { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.kpi-value small { font-size: 13px; color: var(--muted-2); font-weight: 400; letter-spacing: 0; }
.kpi-foot { margin-top: 12px; font-size: 11px; color: var(--muted-2); }
.kpi-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); margin-top: 12px; overflow: hidden; }
.kpi-bar span { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.kpi:nth-child(2) .kpi-bar span { background: var(--blue); }
.kpi:nth-child(3) .kpi-bar span { background: var(--green); }
.kpi:nth-child(4) .kpi-bar span { background: var(--amber); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.two-col > * { min-width: 0; }
.two-col--even { grid-template-columns: 1fr 1fr; }

.chart-box { position: relative; height: 230px; }
.chart-box--sm { height: 200px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; }

.progress-row { display: grid; gap: 6px; margin-bottom: 16px; }
.progress-row:last-child { margin-bottom: 0; }
.progress-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 12px; }
.progress-top b { color: var(--text); font-weight: 500; font-family: var(--font-mono); font-size: 11px; }
.progress-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--red); border-radius: 999px; transition: width 0.5s var(--ease); }

.empty-state {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12.5px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.empty-state i { width: 20px; height: 20px; display: block; margin: 0 auto 10px; opacity: 0.6; }

/* leaderboard */

.lb { display: grid; gap: 2px; }
.lb-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 62px 62px;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 12.5px;
}
.lb-row:hover { background: rgba(255, 255, 255, 0.025); }
.lb-row.is-me { background: var(--red-soft); }
.lb-rank { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.lb-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name small { display: block; color: var(--muted-2); font-size: 10.5px; }
.lb-num { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.lb-score { font-family: var(--font-display); font-size: 13px; color: var(--text); font-weight: 600; text-align: right; }

/* curriculum checklist */

.day-block { margin-bottom: 14px; }
.day-block:last-child { margin-bottom: 0; }
.day-block-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0; background: var(--surface-2);
  font-size: 12.5px;
}
.day-block-head b { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.check-list { border: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; background: var(--surface); }
.check-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background 0.15s var(--ease);
}
.check-item:last-child { border-bottom: 0; }
.check-item:hover { background: rgba(255, 255, 255, 0.02); }
.check-item input { accent-color: var(--red); width: 15px; height: 15px; margin: 3px 0 0; flex-shrink: 0; cursor: pointer; }
.check-item .ci-title { display: block; font-size: 13px; color: var(--text); line-height: 1.45; }
.check-item .ci-detail { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.5; }
.check-item .ci-dur { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; padding-top: 2px; }
.check-item.is-done .ci-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-2); }

/* CTF */

.tab-back { display: flex; margin-bottom: 14px; }
.tab-back .btn { gap: 7px; }
.ctf-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr); gap: 16px; align-items: start; }
.ctf-layout .ctf-main { order: 1; min-width: 0; }
.ctf-layout .ctf-side { order: 2; min-width: 0; }
.challenge { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.challenge:last-child { border-bottom: 0; }
.challenge-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.challenge-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.challenge h3 { font-size: 14.5px; }
.challenge-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 6px 0 14px; max-width: 70ch; }
.challenge-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.challenge-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flag-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.flag-form .input { min-height: 36px; font-family: var(--font-mono); font-size: 12px; padding: 6px 11px; }
.challenge-solved {
  border: 1px solid rgba(55, 195, 149, 0.3);
  background: var(--green-soft);
  color: var(--green);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.challenge-solved i { width: 15px; height: 15px; }

/* CTF — mission, evidence, hint, explanation */
.ch-label { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.ch-mission { border-left: 2px solid var(--red); background: rgba(224, 30, 53, 0.06); border-radius: 0 8px 8px 0; padding: 10px 13px; margin: 0 0 14px; }
.ch-mission p { font-size: 12.5px; color: var(--text); line-height: 1.55; }
.ch-evidence { margin: 0 0 14px; }
.ch-files { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 11.5px; color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ch-file:hover { border-color: var(--red); transform: translateY(-1px); }
.ch-file--img { flex-direction: column; align-items: stretch; padding: 6px; gap: 6px; }
.ch-file--img img { width: 148px; height: 96px; object-fit: cover; border-radius: 5px; display: block; }
.ch-file--img .ch-file-meta { padding: 0 2px; }
.ch-file-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--surface-3, rgba(255,255,255,0.05)); display: inline-flex; align-items: center; justify-content: center; }
.ch-file-icon i { width: 15px; height: 15px; }
.ch-file-meta { display: inline-flex; align-items: center; gap: 6px; }
.ch-file-meta i { width: 13px; height: 13px; opacity: .75; }
.ch-size { color: var(--muted); font-size: 10px; }
.ch-hint { margin: 0 0 14px; border: 1px dashed var(--line); border-radius: 8px; padding: 9px 13px; font-size: 12px; }
.ch-hint summary { cursor: pointer; color: var(--amber); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.ch-hint p { margin-top: 8px; color: var(--muted); line-height: 1.6; }
.ch-explain { border: 1px solid rgba(55, 195, 149, 0.25); background: var(--green-soft); border-radius: 8px; padding: 10px 13px; margin: 0 0 14px; font-size: 12px; color: var(--text); line-height: 1.6; }

.difficulty { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.difficulty--easy { color: var(--green); }
.difficulty--medium { color: var(--amber); }
.difficulty--hard { color: var(--red-2); }

/* quiz */

.quiz-q { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.quiz-q:last-child { border-bottom: 0; }
.quiz-q-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.quiz-num {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  flex-shrink: 0;
}
.quiz-q h3 { font-size: 14px; line-height: 1.5; font-weight: 500; letter-spacing: 0; font-family: var(--font-body); }
.quiz-options { display: grid; gap: 8px; margin-left: 36px; }
.quiz-option {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 8px; background: rgba(255, 255, 255, 0.015);
  font-size: 12.5px; color: var(--muted); cursor: pointer; line-height: 1.45;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease), color 0.14s var(--ease);
}
.quiz-option:hover { border-color: var(--line-strong); color: var(--text); }
.quiz-option input { accent-color: var(--red); margin: 2px 0 0; flex-shrink: 0; }
.quiz-option.is-correct { border-color: rgba(55, 195, 149, 0.4); background: var(--green-soft); color: var(--text); }
.quiz-option.is-wrong { border-color: var(--red-line); background: var(--red-soft); color: var(--text); }
.quiz-option.is-correct input { accent-color: var(--green); }
.quiz-option.is-wrong input { accent-color: var(--red); }
.quiz-feedback {
  margin: 14px 0 0 36px;
  border-left: 2px solid var(--line-strong);
  padding: 8px 0 8px 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.quiz-feedback.is-correct { border-left-color: var(--green); }
.quiz-feedback.is-wrong { border-left-color: var(--red); }
.quiz-feedback b { color: var(--text); font-weight: 500; }
.quiz-actions { margin: 14px 0 0 36px; display: flex; gap: 10px; align-items: center; }
.quiz-score {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.quiz-score .big { font-family: var(--font-display); font-size: 26px; font-weight: 600; }

/* assignments */

.assignment {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.assignment:first-child { border-top: 0; }
.assignment-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.assignment h4 { font-size: 13.5px; font-family: var(--font-display); }
.assignment p { font-size: 12px; color: var(--muted-2); line-height: 1.55; }
.assignment .submitted { font-size: 11.5px; color: var(--green); display: flex; align-items: center; gap: 6px; }
.assignment .submitted i { width: 13px; height: 13px; }

/* resources tab */

.res-tab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* ---------- admin ---------- */

.admin-login { max-width: 430px; margin: 0 auto; padding: 70px 0 100px; }
.admin-badge {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--red-soft); border: 1px solid var(--red-line);
  color: var(--red-2); display: grid; place-items: center; margin-bottom: 20px;
}
.admin-badge i { width: 20px; height: 20px; }

.admin-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 28px 0 22px; flex-wrap: wrap;
}
.admin-bar h1 { font-size: 24px; }
.admin-bar .sub { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.admin-stat {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-md); padding: 16px 18px;
}
.admin-stat .v { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.admin-stat .l { font-size: 11px; color: var(--muted-2); margin-top: 6px; }

.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 16px; border-bottom: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.toolbar .input, .toolbar .select { min-height: 38px; font-size: 12.5px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; }
.toolbar .search i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--muted-2); pointer-events: none;
}
.toolbar .search .input { padding-left: 34px; }
.toolbar .select { width: auto; min-width: 150px; padding-right: 32px; }

.bulkbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: var(--red-soft); font-size: 12px; color: #ff9aa5;
}
.bulkbar b { color: #fff; }

.admin-table { min-width: 980px; }
.admin-table th:first-child, .admin-table td:first-child { width: 36px; padding-right: 4px; }
.admin-table .cb { accent-color: var(--red); width: 14px; height: 14px; }
.admin-table td { font-size: 12.5px; }
.admin-table .cell-name { color: var(--text); font-weight: 500; }
.admin-table .cell-sub { color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; }
.status-pending { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(230, 180, 90, 0.3); }
.status-approved { background: var(--green-soft); color: var(--green); border: 1px solid rgba(55, 195, 149, 0.3); }
.status-declined { background: var(--red-soft); color: #ff8896; border: 1px solid var(--red-line); }
.batch-pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: rgba(224, 30, 53, 0.12); color: #ff8896; border: 1px solid var(--red-line); white-space: nowrap; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; gap: 10px;
}
.pager .row { gap: 6px; }

.challenge-vis {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 11px; color: var(--muted);
}
.challenge-vis input { accent-color: var(--red); }

/* ---------- modal / toast ---------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 7, 16, 0.72);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 24px;
  animation: fadeIn 0.14s var(--ease);
}
.modal {
  width: 100%; max-width: 560px;
  max-height: 88vh; overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 1);
}
.modal--wide { max-width: 680px; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-head h3 { font-size: 16px; }
.modal-head p { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.modal-close {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--muted); width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.modal-close i { width: 15px; height: 15px; }
.modal-body { padding: 24px; }
.modal-foot {
  padding: 16px 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
  position: sticky; bottom: 0; background: var(--surface);
}

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail { display: grid; gap: 3px; }
.detail .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.detail .v { font-size: 12.5px; color: var(--text); line-height: 1.5; word-break: break-word; }
.detail--full { grid-column: span 2; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  gap: 8px;
  max-width: 340px;
}
.toast {
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--red);
  border-radius: 9px;
  padding: 12px 15px;
  font-size: 12.5px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: slideUp 0.18s var(--ease);
}
.toast--ok { border-left-color: var(--green); }
.toast--warn { border-left-color: var(--amber); }

/* ---------- misc ---------- */

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-block {
  display: flex; align-items: center; gap: 10px;
  padding: 26px; color: var(--muted-2); font-size: 12.5px;
}
.loading-block .spinner { border-color: rgba(255, 255, 255, 0.15); border-top-color: var(--red-2); }

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
  font-size: 12px; color: var(--muted); line-height: 1.55;
}
.notice i { width: 15px; height: 15px; color: var(--muted-2); flex-shrink: 0; margin-top: 1px; }
.notice--amber { border-color: rgba(230, 180, 90, 0.25); background: var(--amber-soft); color: #d7b989; }
.notice--amber i { color: var(--amber); }
.notice--red { border-color: var(--red-line); background: var(--red-soft); color: #f0a6ae; }
.notice--red i { color: var(--red-2); }

.reveal { animation: slideUp 0.4s var(--ease) both; }
.reveal-2 { animation-delay: 0.05s; }
.reveal-3 { animation-delay: 0.1s; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .brief { max-width: 520px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .day-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .resource-groups { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { position: static; grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .two-col, .two-col--even { grid-template-columns: minmax(0, 1fr); }
  .ctf-layout { grid-template-columns: 1fr; }
  .ctf-layout .ctf-main, .ctf-layout .ctf-side { order: 0; }
  .res-tab-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 10px; font-size: 14px; }
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
  .nav-user { padding: 6px 11px; font-size: 12px; max-width: 30vw; }
}

@media (max-width: 720px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .section { padding: 58px 0; }
  .hero { padding: 56px 0 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .radio-grid { grid-template-columns: 1fr; }
  .ethics-grid { grid-template-columns: 1fr; }
  .resource-groups { grid-template-columns: 1fr; }
  .cta { padding: 30px; flex-direction: column; align-items: flex-start; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 25px; }
  .auth-aside { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .challenge-foot { flex-direction: column; align-items: stretch; }
  .flag-form { min-width: 0; }
  .quiz-options, .quiz-feedback, .quiz-actions { margin-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail--full { grid-column: span 1; }
  .success-card { padding: 26px 20px; }
  .access-code { font-size: 21px; letter-spacing: 0.2em; text-indent: 0.2em; }
  .toolbar .select { flex: 1; min-width: 130px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .nav-inner { gap: 8px; }
  .brand { gap: 9px; }
  .brand-text { font-size: 12px; letter-spacing: 0.09em; }
  .brand-text em { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 8px 10px; font-size: 12px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px; }
  .stat-value { font-size: 24px; }
  .access-code { font-size: 18px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-contact a { word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .nav, .footer, .toasts, .tabs { display: none !important; }
  body { background: #fff; color: #111; }
}

.batch-inline { display: none; }

/* ---------- schedule on narrow screens ---------- */
@media (max-width: 700px) {
  table.schedule-table { min-width: 0; }
  .schedule-table th, .schedule-table td { padding: 11px 10px; }
  .schedule-table .col-format { display: none; }
  .schedule-table thead th { font-size: 9px; letter-spacing: 0.1em; }
  .schedule-table tbody td { font-size: 12px; }
  .schedule-table td .chip { font-size: 9.5px !important; padding: 2px 6px; }
  .schedule-table .time-cell { font-size: 10.5px; }
}

@media (max-width: 560px) {
  .schedule-table .col-batch { display: none; }
  .schedule-table .batch-inline { display: block; margin-top: 5px; font-family: var(--font-sans); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
  .schedule-table td:nth-child(3) { padding-left: 6px; padding-right: 6px; }
}

/* ---------- agenda (curriculum + schedule) ---------- */

.agenda-day { margin-top: 28px; }
.agenda-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.agenda-kicker {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red-2);
}
.agenda-title { font-size: 19px; margin-top: 6px; }
.agenda-table tbody td { vertical-align: top; }
.agenda-table .day-cell { vertical-align: top; padding-top: 14px; font-weight: 600; }
.agenda-session { white-space: nowrap; }
.agenda-no {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; color: var(--red-2); border: 1px solid rgba(224, 30, 53, 0.35);
  border-radius: 5px; padding: 2px 5px;
}
.agenda-dur { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.agenda-topics { font-size: 12.5px; color: var(--muted-2); line-height: 1.6; margin-top: 6px; }
.agenda-aside td { background: rgba(255, 255, 255, 0.014); }
.agenda-aside strong { color: var(--muted) !important; font-weight: 500; }
.agenda-kind {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
}
.agenda-note { color: var(--muted-2); font-size: 12px; }

@media (max-width: 700px) {
  table.agenda-table { min-width: 0; }
  .agenda-table th, .agenda-table td { padding: 12px 9px; }
  #curriculum .agenda-table th { font-size: 9px; letter-spacing: 0.08em; padding: 10px 7px; }
  #curriculum .agenda-table td { padding: 10px 7px; }
  #curriculum .agenda-table th:nth-child(1) { width: 42px !important; }
  #curriculum .agenda-table th:nth-child(2) { width: 68px !important; }
  #curriculum .agenda-table .time-cell { font-size: 9.5px; }
  #curriculum .agenda-table th:nth-child(3),
  #curriculum .agenda-table td:nth-child(3) { display: none; }
  #schedule .agenda-table th:nth-child(1) { width: 54px !important; }
  #schedule .agenda-table th:nth-child(2) { width: 84px !important; }
  #schedule .agenda-table .day-cell { width: 54px; padding-left: 9px; }
  #schedule .agenda-table .time-cell { font-size: 10.5px; }
  .agenda-topics { font-size: 11.5px; }
  .agenda-title { font-size: 17px; }
}

/* ---------- schedule: batch panels ---------- */
.batch-sched-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-top: 8px; align-items: start;
}
.batch-panel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
}
.batch-panel-head {
  display: grid; gap: 5px; padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(224, 30, 53, 0.07), transparent);
}
.batch-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red-2);
}
.batch-panel-title { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; }
.batch-panel-sub { font-size: 11.5px; color: var(--muted-2); }
.batch-day { padding: 15px 20px 8px; border-top: 1px solid var(--line); }
.batch-day:first-of-type { border-top: 0; }
.batch-day-head {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline;
  gap: 2px 10px; padding-bottom: 9px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.batch-day-no {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red-2);
}
.batch-day-date { font-size: 11.5px; color: var(--muted); }
.batch-day-title { grid-column: 1 / -1; font-size: 13px; color: var(--text); font-weight: 500; }
.batch-rows { display: grid; }
.batch-row {
  display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.055);
}
.batch-row:last-child { border-bottom: 0; }
.br-time { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.6; color: var(--muted-2); white-space: nowrap; }
.br-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.br-body b { font-weight: 500; }
.batch-row.is-session .br-body b { font-weight: 600; }
.br-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--red);
  display: inline-block; flex-shrink: 0; transform: translateY(-2px);
}
.br-note { font-size: 10.5px; color: var(--muted-2); }
.batch-row.is-aside .br-body b { color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .batch-sched-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .batch-panel-head { padding: 15px 15px 13px; }
  .batch-day { padding: 13px 15px 6px; }
  .batch-row { grid-template-columns: 70px minmax(0, 1fr); gap: 9px; }
  .batch-panel-title { font-size: 17px; }
}
/* ============================================================
   ADMIN CONSOLE — dedicated shell
   ============================================================ */
body.admin-mode .nav,
body.admin-mode .footer,
body.admin-mode .skip-link { display: none; }
body.admin-mode { background: #060a13; }

/* ---- sign in ---- */
.admin-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.admin-auth-brand {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  background:
    radial-gradient(600px 420px at 85% 0%, rgba(224, 30, 53, 0.28), transparent 65%),
    radial-gradient(500px 400px at 0% 100%, rgba(224, 30, 53, 0.14), transparent 60%),
    linear-gradient(160deg, #0b1324 0%, #080d18 100%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.admin-auth-brand::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(500px 380px at 70% 30%, #000, transparent 80%);
  pointer-events: none;
}
.admin-auth-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.admin-auth-word {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--text); line-height: 1.2;
  display: flex; flex-direction: column;
}
.admin-auth-word em { font-style: normal; color: var(--red-2); letter-spacing: 0.24em; font-size: 9.5px; margin-top: 2px; }
.admin-auth-copy { position: relative; z-index: 1; max-width: 480px; }
.admin-auth-copy .eyebrow { color: var(--red-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; }
.admin-auth-copy h1 { font-family: var(--font-display); font-size: 44px; letter-spacing: -0.035em; margin: 12px 0 14px; }
.admin-auth-copy > p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.admin-auth-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.admin-auth-list li { display: flex; gap: 11px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.admin-auth-list i { width: 15px; height: 15px; color: var(--red-2); flex-shrink: 0; margin-top: 2px; }
.admin-auth-note { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.admin-auth-form { display: grid; place-items: center; padding: 48px 32px; background: #070c18; }
.admin-auth-card { width: 100%; max-width: 400px; }
.admin-auth-card h2 { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.03em; margin-bottom: 8px; }
.admin-auth-card .lead { font-size: 13px; color: var(--muted-2); line-height: 1.6; margin-bottom: 22px; }

/* ---- shell ---- */
.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}
.admin-side {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 16px 18px;
  background: #080e1a;
  border-right: 1px solid var(--line);
}
.admin-side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.admin-side-word {
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; line-height: 1.2; display: flex; flex-direction: column; color: var(--text);
}
.admin-side-word em { font-style: normal; color: var(--red-2); font-size: 8.5px; letter-spacing: 0.22em; margin-top: 2px; }
.admin-side-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-2); padding: 0 10px; margin-bottom: 10px;
}
.admin-nav { display: grid; gap: 3px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  border: 1px solid transparent; background: none;
  color: var(--muted); font-size: 12.5px; font-family: var(--font-sans);
  cursor: pointer; text-align: left; width: 100%;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-nav-item i { width: 15px; height: 15px; color: var(--muted-2); flex-shrink: 0; }
.admin-nav-item:hover { background: rgba(255,255,255,.035); color: var(--text); }
.admin-nav-item.is-active { background: var(--red-soft); border-color: var(--red-line); color: var(--text); }
.admin-nav-item.is-active i { color: var(--red-2); }
.admin-nav-count {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(230,180,90,.3);
  border-radius: 999px; padding: 1px 6px;
}
.admin-side-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-side-link {
  display: flex; align-items: center; gap: 9px;
  background: none; border: 0; cursor: pointer;
  color: var(--muted-2); font-size: 12px; font-family: var(--font-sans);
  padding: 8px 10px; border-radius: 7px; text-align: left;
}
.admin-side-link i { width: 14px; height: 14px; }
.admin-side-link:hover { color: var(--text); background: rgba(255,255,255,.035); }
.admin-identity { display: flex; align-items: center; gap: 10px; padding: 14px 8px 10px; margin-top: 4px; }
.admin-identity > div { min-width: 0; display: grid; }
.admin-identity b { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-identity span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }

.admin-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.admin-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px 36px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(224,30,53,.06), transparent 85%);
}
.admin-crumb { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.admin-top h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.035em; line-height: 1.05; }
.admin-top-sub { font-size: 12.5px; color: var(--muted-2); margin-top: 7px; }
.admin-top-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-rolechip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); border: 1px solid rgba(55,195,149,.28);
  border-radius: 999px; padding: 4px 10px;
}
.admin-rolechip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.admin-body { padding: 24px 36px 56px; flex: 1; }
.admin-body > .panel { margin-bottom: 0; }

.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.admin-card { padding: 20px 22px; }
.admin-card .card-head { margin-bottom: 16px; }

.admin-batch-list { display: grid; gap: 16px; }
.admin-batch { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: rgba(255,255,255,.014); }
.admin-batch-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-batch-top b { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.admin-batch-top span { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: .04em; }
.admin-batch-n { text-align: right; display: grid; }
.admin-batch-n b { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.admin-batch-n span { font-size: 9.5px; color: var(--muted-2); margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.admin-stack { display: flex; height: 7px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); gap: 2px; }
.admin-stack span { display: block; height: 100%; }
.admin-stack .s-approved { background: var(--green); }
.admin-stack .s-pending { background: var(--amber); }
.admin-stack .s-declined { background: var(--red-2); }
.admin-batch-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.admin-batch-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted-2); }
.dot--green { background: var(--green); } .dot--amber { background: var(--amber); } .dot--red { background: var(--red-2); }

.admin-track-list { display: grid; gap: 13px; }
.admin-track-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.admin-track-top b { font-family: var(--font-mono); font-size: 11px; color: var(--text); }
.admin-track-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.admin-track-bar span { display: block; height: 100%; background: linear-gradient(90deg, #e01e35, #ff4055); border-radius: 999px; }

.admin-callout {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  margin-top: 18px; padding: 12px 14px;
  border: 1px solid rgba(230,180,90,.28); border-radius: 9px;
  background: var(--amber-soft); color: var(--amber);
  font-family: var(--font-sans); font-size: 12px; cursor: pointer;
}
.admin-callout i { width: 15px; height: 15px; flex-shrink: 0; }
.admin-callout i:last-child { margin-left: auto; }
.admin-callout span { display: grid; gap: 2px; color: var(--muted); }
.admin-callout span b { color: var(--amber); font-weight: 500; }

/* admin panels inside the shell */
.admin-body .toolbar { border-radius: 0; }
.admin-body .panel { padding: 0; overflow: hidden; }

@media (max-width: 1080px) {
  .admin-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .admin-top { padding: 24px 24px 18px; }
  .admin-body { padding: 20px 24px 48px; }
  .admin-grid2 { grid-template-columns: 1fr; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .admin-auth { grid-template-columns: 1fr; }
  .admin-auth-brand { display: none; }
  .admin-auth-form { min-height: 100vh; }
}
@media (min-width: 761px) {
  .admin-shell { background: linear-gradient(90deg, #080e1a 0, #080e1a 248px, #060a13 248px); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .admin-shell { background: linear-gradient(90deg, #080e1a 0, #080e1a 212px, #060a13 212px); }
}
@media (max-width: 760px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-side {
    position: static; height: auto; min-width: 0; width: 100%;
    position: static;
    padding: 14px 14px 8px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .admin-side-brand { padding-bottom: 12px; }
  .admin-side-label { display: none; }
  .admin-nav { display: flex; gap: 6px; overflow-x: auto; min-width: 0; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .admin-nav-item { width: auto; white-space: nowrap; padding: 8px 12px; }
  .admin-nav-count { margin-left: 4px; }
  .admin-side-foot {
    margin-top: 6px; padding-top: 10px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  }
  .admin-identity { display: none; }
  .admin-side-link { padding: 6px 8px; font-size: 11.5px; }
  .admin-side-foot .btn { width: auto !important; margin-left: auto; }
  .admin-top { padding: 18px 16px 14px; }
  .admin-top h1 { font-size: 24px; }
  .admin-top-side .chip { display: none; }
  .admin-body { padding: 16px 16px 40px; }
  .admin-kpis { gap: 8px; }
  .admin-stat { padding: 13px 14px; }
  .admin-card { padding: 16px; }
}

@media (max-width: 700px) {
  table.admin-table--recent { min-width: 0; }
  .admin-table--recent th:nth-child(2), .admin-table--recent td:nth-child(2),
  .admin-table--recent th:nth-child(5), .admin-table--recent td:nth-child(5),
  .admin-table--recent th:nth-child(6), .admin-table--recent td:nth-child(6) { display: none; }
  .admin-table--recent th, .admin-table--recent td { padding: 11px 6px; }
  .admin-table--recent td:first-child { padding-left: 14px; }
  .admin-table--recent .cell-sub { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
  .admin-table--recent .batch-pill { font-size: 9.5px; padding: 1px 6px; }
  .admin-table--recent .status-pill { font-size: 9.5px; padding: 1px 6px; }
}
.row-clickable { cursor: pointer; }

/* ---------- my details ---------- */
.acct-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px; flex-wrap:wrap; }
.acct-head h2 { font-family:var(--font-display); font-size:26px; letter-spacing:-.02em; margin:0 0 6px; }
.acct-head p { margin:0; max-width:70ch; }
.acct-grid { display:grid; grid-template-columns:1.4fr .9fr; gap:18px; align-items:start; }
.acct-side { display:grid; gap:18px; }
.acct-title { display:flex; align-items:center; gap:9px; font-family:var(--font-display); font-size:15px; letter-spacing:.01em; margin:0 0 16px; }
.acct-title svg { width:17px; height:17px; color:var(--red-2); }
.acct-two { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.acct-actions { display:flex; align-items:center; gap:12px; margin-top:6px; flex-wrap:wrap; }
.acct-err { color:var(--red-2); }
.acct-meta { margin:0; display:grid; gap:11px; }
.acct-meta > div { display:grid; grid-template-columns:82px 1fr; gap:10px; align-items:baseline; }
.acct-meta dt { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.acct-meta dd { margin:0; font-size:13.5px; color:var(--text); word-break:break-word; }
.acct-meta dd.mono { font-size:12.5px; color:var(--muted); }
@media (max-width: 900px) {
  .acct-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .acct-two { grid-template-columns:1fr; }
  .acct-head h2 { font-size:22px; }
}

/* ---------- video resources ---------- */
.res-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.res-head h2 { font-family:var(--font-display); font-size:24px; letter-spacing:-.02em; margin:0 0 4px; }
.res-head p { margin:0; max-width:72ch; }
.res-video-grid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:12px; }
.vid-card { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; text-decoration:none; transition:border-color .15s var(--ease), transform .15s var(--ease); }
.vid-card:hover { border-color:var(--red-line); transform:translateY(-2px); }
.vid-thumb { position:relative; display:block; aspect-ratio:16/9; background:#050a14; }
.vid-thumb img { width:100%; height:100%; object-fit:cover; display:block; opacity:.92; }
.vid-card:hover .vid-thumb img { opacity:1; }
.vid-play { position:absolute; inset:0; display:grid; place-items:center; }
.vid-play i { width:34px; height:34px; padding:9px; border-radius:50%; background:rgba(7,12,24,.72); border:1px solid rgba(255,255,255,.28); color:#fff; backdrop-filter:blur(2px); }
.vid-play svg { fill:#fff; }
.vid-body { flex:1; display:flex; flex-direction:column; gap:5px; padding:11px 12px 13px; }
.vid-meta { font-family:var(--font-mono); font-size:9px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vid-title { font-family:var(--font-display); font-size:13px; line-height:1.34; color:var(--text); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.vid-desc { font-size:11px; line-height:1.5; color:var(--muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.vid-open { margin-top:auto; padding-top:4px; display:inline-flex; align-items:center; gap:4px; font-size:10px; color:var(--red-2); }
.vid-open svg { width:13px; height:13px; }
@media (max-width: 1180px) { .res-video-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media (max-width: 940px) { .res-video-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .res-video-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; } }
@media (max-width: 430px) { .res-video-grid { grid-template-columns:1fr; } }
@media (max-width: 700px) { .vid-title { font-size:12.5px; -webkit-line-clamp:3; } .vid-desc { -webkit-line-clamp:2; } }

/* StealthMole video library — group filters */
.res-filter { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 22px; }
.res-chip { display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--muted); font-family:var(--font-mono); font-size:11px; letter-spacing:.04em; cursor:pointer; transition:color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease); }
.res-chip span { font-size:10.5px; opacity:.7; }
.res-chip:hover { color:var(--text); border-color:var(--red-line); }
.res-chip.is-active { color:#fff; background:rgba(224,30,53,.16); border-color:rgba(224,30,53,.55); }
.res-group { margin-bottom:26px; }
.res-group-head { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.res-group-head h3 { font-family:var(--font-display); font-size:15px; letter-spacing:.01em; color:var(--text); margin:0; }
.res-group-head .chip { font-size:10px; }
@media (max-width: 560px) { .res-filter { gap:6px; } .res-chip { padding:6px 10px; font-size:10.5px; } }
