:root {
  --navy: #080e1c;
  --navy2: #23133a;
  --navy3: #1f1232;
  --slate: #291a3e;
  --border: #3a1c63;
  --border2: #5e309d;
  --cyan: #883CF0;
  --cyan2: #883CF0;
  --cyan-dim: #2a1647;
  --cyan-glow: #3a1c63;
  --indigo: #b84cd9;
  --indigo-dim: #2a1647;
  --green: #10d98e;
  --green-dim: rgba(16,217,142,0.1);
  --red: #f43f5e;
  --red-dim: rgba(244,63,94,0.1);
  --amber: #a78bfa;
  --amber-dim: #2a1647;
  --text: #e8fbfd;
  --text2: #d3dadb;
  --bright: #e2e8f0;
  --white: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

.pra-training-guide {
  background: #191127;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
  position: relative;
  height: 100vh;
}

/* ── SCANLINE TEXTURE ── */
.pra-training-guide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.05) 2px,
    rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* ── RADIAL GLOW ── */
.pra-training-guide::after {
  content: '';
  position: absolute;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, #a78bfa24 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ══════════════════════════════
   HERO HEADER
══════════════════════════════ */
.hero {
  padding: 40px 0 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Diagonal stripe decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -40px;
  width: 320px;
  height: 320px;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    #a78bfa0d 8px,
    #a78bfa0d 16px
  );
  pointer-events: none;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border2);
  background: var(--navy2);
  padding: 6px 14px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: spin 3s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--indigo);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--indigo);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--indigo);
  animation: livepulse 2s ease-in-out infinite;
}

@keyframes livepulse {
  0%,100% { opacity:1; box-shadow: 0 0 8px var(--amber); }
  50% { opacity: 0.5; box-shadow: 0 0 3px var(--amber); }
}

.hero-kicker {
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-kicker::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h1.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 18px;
}

h1.hero-title .hl {
  color: var(--cyan);
  text-shadow: 0 0 40px #be52e50f;
}

h1.hero-title .dim { color: var(--text2); }

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text2);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

/* Module progress as a hex-node chain */
.progress-chain {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  padding: 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.progress-chain::-webkit-scrollbar { display: none; }

.prog-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.prog-hex {
  width: 36px;
  height: 36px;
  background: #291a3e;
  border: 2px solid var(--border2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  transition: all 0.3s;
  cursor: pointer;
}

.prog-node.active .prog-hex,
.prog-node.done .prog-hex {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 16px #be52e50f;
}

.prog-node.done .prog-hex { background: var(--indigo); border-color: var(--indigo); box-shadow: 0 0 12px #be52e50f; color: #fff; }

.prog-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text2);
  text-align: center;
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prog-line {
  width: 32px;
  height: 2px;
  background: var(--border2);
  flex-shrink: 0;
  margin-bottom: 22px;
  transition: background 0.3s;
  position: relative;
}

.prog-line.done { background: var(--indigo); }
.prog-line.active { background: linear-gradient(90deg, var(--indigo), var(--cyan)); }

/* ══════════════════════════════
   TAB NAVIGATION
══════════════════════════════ */
.tab-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 20px;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  text-transform: uppercase;
}

.tnav:hover { color: var(--bright); }
.tnav.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.tnav .tn {
  font-size: 10px;
  opacity: 0.5;
  font-weight: 400;
}

/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */
.section { display: none; }
.section.active { display: block; animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section header */
.sh {
  margin-bottom: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.sh-num {
  font-size: 72px;
  line-height: 0.85;
  color: var(--border2);
  flex-shrink: 0;
}

.sh-tag {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.sh h2 {
  font-size: 40px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 10px;
}

.sh p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.65;
  max-width: 540px;
}

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  border-radius: 4px 0 0 4px;
  transition: background 0.2s;
}

.card:hover { border-color: var(--border2); box-shadow: 0 4px 24px #be52e50f; }
.card:hover::before { background: var(--cyan); }

.card-cyan::before { background: var(--cyan) !important; }
.card-indigo::before { background: var(--indigo) !important; }
.card-green::before { background: var(--green) !important; }
.card-red::before { background: var(--red) !important; }
.card-amber::before { background: var(--amber) !important; }

.clabel {
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clabel-cyan { color: var(--cyan); }
.clabel-green { color: var(--green); }
.clabel-red { color: var(--red); }
.clabel-amber { color: var(--amber); }
.clabel-indigo { color: var(--indigo); }

.card h3 {
  font-size: 24px;
  color: var(--bright);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text2);
}

/* ══════════════════════════════
   GRID
══════════════════════════════ */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 18px; }

@media(max-width: 720px) { .g2,.g3 { grid-template-columns: 1fr; } }

/* ══════════════════════════════
   STAT BLOCKS
══════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

@media(max-width: 700px) { .stats-row { grid-template-columns: 1fr 1fr; } }

.stat-cell {
  background: var(--navy2);
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--navy3); }

.stat-num {
  font-size: 40px;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 20px #be52e50f;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text2);
  line-height: 1.4;
}

/* ══════════════════════════════
   THREAT TABLE
══════════════════════════════ */
.threat-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.threat-row:last-child { border-bottom: none; }

.sev {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  white-space: nowrap;
}

.sev-crit { background: rgba(244,63,94,0.15); color: var(--red); border: 1px solid rgba(244,63,94,0.3); }
.sev-high { background: rgba(245,158,11,0.15); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.sev-med { background: rgba(99,102,241,0.15); color: var(--indigo); border: 1px solid rgba(99,102,241,0.3); }

.threat-txt h4 { font-size: 14px; font-weight: 700; color: var(--bright); margin-bottom: 4px; }
.threat-txt p { font-size: 13px; font-weight: 300; color: var(--text2); line-height: 1.6; }

/* ══════════════════════════════
   FEATURE TILES — Delinea PRA
══════════════════════════════ */
.feature-tile {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
  transition: all 0.25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-tile::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cyan-dim);
  transition: all 0.3s;
}

.feature-tile:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px #be52e50f;
}

.feature-tile:hover::after {
  width: 120px;
  height: 120px;
  background: #2a164777;
}

.ft-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.ft-title {
  font-size: 18px;
  color: var(--bright);
  margin-bottom: 8px;
}

.ft-body {
  font-size: 13px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.65;
}

/* ══════════════════════════════
   ARCHITECTURE DIAGRAM
══════════════════════════════ */
.arch {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.arch-bar {
  background: var(--slate);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.arch-bar-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--cyan);
}

.arch-inner { padding: 28px; }

.arch-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto repeat(2, 1fr);
  align-items: center;
  gap: 0;
}

.arch-node {
  background: var(--navy3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 16px 8px;
  text-align: center;
  transition: all 0.2s;
  cursor: default;
}

.arch-node:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px #be52e50f;
}

.arch-node.core {
  border-color: var(--cyan);
  background: rgba(0,200,224,0.05);
  box-shadow: 0 0 30px #be52e50f;
}

.an-icon { font-size: 24px; margin-bottom: 8px; }
.an-name { font-size: 11px; font-weight: 700; color: var(--bright); margin-bottom: 2px; }
.an-sub { font-size: 9px; color: var(--text2); text-transform: uppercase; }

.arch-arr {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 16px;
  opacity: 0.6;
  padding: 0 4px;
}

.arch-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border2), transparent);
  margin: 0 12px;
}

/* ══════════════════════════════
   COMPARISON TABLE
══════════════════════════════ */
.ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.ctable th {
  padding: 12px 16px;
  background: #883cf050;
  border: 1px solid var(--border);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text2);
  text-align: left;
}

.ctable td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  color: var(--text2);
  font-weight: 300;
  line-height: 1.5;
  vertical-align: top;
}

.ctable tr:hover td { background: #1f1232; }

.ctable td strong { color: var(--bright); font-weight: 600; }

.ctable td.bad { color: var(--red); }
.ctable td.good { color: var(--green); }

/* ══════════════════════════════
   BADGE
══════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 10px;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  margin: 2px;
}

.bc { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,200,224,0.25); }
.bg { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,217,142,0.25); }
.br { background: var(--red-dim); color: var(--red); border: 1px solid rgba(244,63,94,0.25); }
.ba { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,0.25); }
.bi { background: var(--indigo-dim); color: var(--indigo); border: 1px solid rgba(99,102,241,0.25); }

/* ══════════════════════════════
   CALLOUT
══════════════════════════════ */
.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 20px;
  border-left: 3px solid;
}

.callout-icon { font-size: 20px; flex-shrink: 0; }
.callout-body { color: var(--text); }
.callout-body strong { color: var(--bright); font-weight: 600; }

.co-cyan { background: var(--cyan-dim); border-color: var(--cyan); }
.co-red { background: var(--red-dim); border-color: var(--red); }
.co-green { background: var(--green-dim); border-color: var(--green); }
.co-amber { background: var(--amber-dim); border-color: var(--amber); }

/* ══════════════════════════════
   SESSION SIMULATOR
══════════════════════════════ */
.sim {
  background: #040a14;
  border: 1px solid var(--border2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.sim-header {
  background: var(--slate);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.sim-header-left { display: flex; align-items: center; gap: 12px; }

.sim-dots { display: flex; gap: 6px; }
.sdot { width: 10px; height: 10px; border-radius: 50%; }
.sdot:nth-child(1) { background: #ef4444; }
.sdot:nth-child(2) { background: #f59e0b; }
.sdot:nth-child(3) { background: #22c55e; }

.sim-header-title {
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
}

.sim-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--green);
}

.sim-body { padding: 24px; }

/* Sim states */
.ss { display: none; }
.ss.on { display: block; animation: fadeUp 0.25s ease; }

/* Sim form fields */
.sfield {
  margin-bottom: 16px;
}

.sfield label {
  display: block;
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sfield select,
.sfield input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--bright);
  outline: none;
  transition: border-color 0.2s;
}

.sfield select:focus, .sfield input:focus { border-color: var(--cyan); }
.sfield select option { background: #0d1628; }

.sgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sgrid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.sim-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--navy);
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.sim-btn:hover { background: var(--cyan2); transform: translateY(-1px); box-shadow: 0 4px 20px #be52e50f; }
.sim-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.sim-btn-sm {
  flex: 1;
  padding: 9px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: 3px;
  font-size: 11px;
  color: var(--bright);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.sim-btn-sm:hover { background: rgba(255,255,255,0.09); border-color: var(--cyan); }
.sim-btn-sm.danger { color: var(--red); border-color: rgba(244,63,94,0.3); }
.sim-btn-sm.danger:hover { background: var(--red-dim); }
.sim-btn-sm.success { color: var(--green); border-color: rgba(16,217,142,0.3); }
.sim-btn-sm.success:hover { background: var(--green-dim); }

/* Workflow approval steps */
.wf-step {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 12px;
  transition: all 0.3s;
  background: rgba(255,255,255,0.02);
}

.wf-step.wf-pend { opacity: 0.4; }
.wf-step.wf-run { border-color: var(--cyan); background: var(--cyan-dim); animation: wfpulse 1.5s ease infinite alternate; }
.wf-step.wf-ok { border-color: var(--green); background: var(--green-dim); opacity: 1; }
.wf-step.wf-fail { border-color: var(--red); background: var(--red-dim); opacity: 1; }

@keyframes wfpulse {
  from { box-shadow: 0 0 0 rgba(0,200,224,0); }
  to { box-shadow: 0 0 14px #be52e50f; }
}

.wf-ico { font-size: 16px; flex-shrink: 0; }
.wf-lbl { flex: 1; color: var(--text); }
.wf-status {
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.wf-pend .wf-status { color: var(--border2); }
.wf-run .wf-status { color: var(--cyan); }
.wf-ok .wf-status { color: var(--green); }
.wf-fail .wf-status { color: var(--red); }

/* Session monitor */
.session-monitor {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin-top: 14px;
}

.sm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
}

.session-clock {
  font-size: 48px;
  color: var(--cyan);
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 30px #be52e50f;
  margin-bottom: 4px;
}

.session-clock.warn { color: var(--amber); text-shadow: 0 0 30px #be52e50f; }
.session-clock.expired { color: var(--red); text-shadow: 0 0 30px #be52e50f; }

.session-label {
  text-align: center;
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.session-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}

.session-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  border-radius: 2px;
  transition: width 1s linear;
}

.session-bar-fill.warn { background: linear-gradient(90deg, #92400e, var(--amber)); }
.session-bar-fill.expired { background: var(--red); }

/* Action buttons row */
.btn-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Session log */
.slog {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.9;
  max-height: 150px;
  overflow-y: auto;
  margin-top: 12px;
}

.slog::-webkit-scrollbar { width: 3px; }
.slog::-webkit-scrollbar-thumb { background: var(--border2); }

.slog-row { display: flex; gap: 10px; }
.slog-t { color: var(--border2); flex-shrink: 0; }
.slog-m { color: var(--text2); }
.slog-m.ok { color: var(--green); }
.slog-m.warn { color: var(--amber); }
.slog-m.bad { color: var(--red); }
.slog-m.info { color: var(--cyan); }

/* Policy Violation state */
.violation-box {
  background: var(--red-dim);
  border: 1px solid rgba(244,63,94,0.35);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--red);
  margin-bottom: 16px;
}

.violation-box .vb-title {
  font-size: 28px;
  margin-bottom: 8px;
}

/* Session expired banner */
.expired-box {
  background: rgba(244,63,94,0.07);
  border: 1px solid rgba(244,63,94,0.25);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 14px;
}

/* ══════════════════════════════
   CHECKLIST
══════════════════════════════ */
.ci {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.2s;
}

.ci:hover { padding-left: 4px; }
.ci:last-child { border-bottom: none; }

.ci-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border2);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.2s;
}

.ci.ck .ci-box {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
}

.ci .ci-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bright);
  margin-bottom: 3px;
  transition: color 0.2s;
}

.ci.ck .ci-title { color: var(--text2); text-decoration: line-through; }
.ci .ci-sub { font-size: 12px; font-weight: 300; color: var(--text2); line-height: 1.55; }

/* ══════════════════════════════
   TIMELINE
══════════════════════════════ */
.tl { position: relative; padding-left: 36px; }

.tl::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--border));
}

.tl-item {
  position: relative;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s ease;
}

.tl-item.vis { opacity: 1; transform: none; }

.tl-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: var(--cyan);
  box-shadow: 0 0 10px #be52e50f;
}

.tl-step {
  font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tl-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 4px;
}

.tl-body {
  font-size: 13px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.65;
}

/* ══════════════════════════════
   QUIZ
══════════════════════════════ */
.qnum-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
}

.qnum-bar::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.qtxt {
  font-size: 24px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.qopts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.qo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  transition: all 0.2s;
  background: var(--navy2);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.qo:hover:not(.nd) { border-color: var(--cyan); background: var(--cyan-dim); color: var(--bright); }

.qo .ql {
  width: 24px;
  height: 24px;
  background: var(--slate);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.2s;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.qo.correct { border-color: var(--green); background: var(--green-dim); color: var(--bright); }
.qo.correct .ql { background: var(--green); border-color: var(--green); color: var(--navy); }

.qo.wrong { border-color: var(--red); background: var(--red-dim); }
.qo.wrong .ql { background: var(--red); border-color: var(--red); color: #fff; }
.qo.nd { cursor: default; }

.qfb {
  display: none;
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 14px;
  border-left: 3px solid;
}

.qfb.correct { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.qfb.wrong { background: var(--red-dim); border-color: var(--red); color: var(--red); }
.qfb strong { font-weight: 600; color: var(--bright); }

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.qscore {
  font-size: 12px;
  color: var(--text2);
}

/* Quiz result */
.result-screen {
  text-align: center;
  padding: 48px 20px;
}

.result-pct {
  font-size: 96px;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 40px #be52e50f;
  margin-bottom: 4px;
}

.result-grade {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 16px;
}

.result-msg {
  font-size: 15px;
  font-weight: 300;
  color: var(--text2);
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: var(--cyan2); transform: translateY(-1px); box-shadow: 0 4px 20px #be52e50f; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  clip-path: none;
  border-radius: 3px;
}

.btn-ghost:hover { border-color: var(--text); color: var(--bright); }

.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════
   BOTTOM NAV
══════════════════════════════ */
.bot-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════
   STAGGER REVEAL
══════════════════════════════ */
.rv {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rv.v { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: 0.07s; }
.rv:nth-child(3) { transition-delay: 0.14s; }
.rv:nth-child(4) { transition-delay: 0.21s; }
.rv:nth-child(5) { transition-delay: 0.28s; }
.rv:nth-child(6) { transition-delay: 0.35s; }

/* accordion */
.acc-item {
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.acc-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  cursor: pointer;
  background: var(--navy2);
  font-size: 14px;
  font-weight: 600;
  color: var(--bright);
  transition: background 0.2s;
  user-select: none;
}

.acc-hd:hover { background: var(--navy3); }

.acc-arr {
  font-size: 10px;
  color: var(--text2);
  transition: transform 0.2s;
}

.acc-item.open .acc-arr { transform: rotate(180deg); }

.acc-body {
  display: none;
  padding: 18px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.75;
}

.acc-item.open .acc-body { display: block; }

/* vendor connector visual */
.vendor-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--navy3);
  border-radius: 4px;
  margin-bottom: 16px;
}

.vf-box {
  background: var(--navy2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 14px 16px;
  text-align: center;
  min-width: 90px;
  transition: all 0.2s;
}

.vf-box:hover { border-color: var(--cyan); box-shadow: 0 0 16px #be52e50f; }
.vf-box.core-box { border-color: var(--cyan); background: #1f172f; }

.vf-icon { font-size: 26px; margin-bottom: 6px; }
.vf-name { font-size: 11px; font-weight: 700; color: var(--bright); margin-bottom: 2px; }
.vf-sub { font-size: 9px; color: var(--text2); text-transform: uppercase; }

.vf-arr {
  color: var(--cyan);
  font-size: 20px;
  opacity: 0.5;
  flex-shrink: 0;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }