/* ==========================================================================
   CYVEXIS SECURITY TRAINING: MODULE 06
   Cloud Security, Data Privacy & API Protection
   Design System: Deep Dark Cyber Palette, Cloud Infrastructure HUD, Privacy Matrix
   ========================================================================== */

:root {
  --bg-void: #FAF8F5;
  --bg-deep: #FAF8F5;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F5;
  --bg-input: #FFFFFF;
  --bg-pill: #F5F2EB;

  --border-subtle: #E8E3DC;
  --border-medium: #DCD6CB;
  --border-glow: rgba(149, 125, 88, 0.35);
  --border-danger: rgba(168, 40, 43, 0.4);
  --border-emerald: rgba(46, 111, 64, 0.35);
  --border-purple: rgba(107, 91, 77, 0.35);

  --brand-blue: #957D58;
  --cyan-neon: #957D58;
  --cyan-glow: rgba(149, 125, 88, 0.25);
  --cyan-dim: rgba(149, 125, 88, 0.12);

  --emerald-safe: #2E6F40;
  --emerald-glow: rgba(46, 111, 64, 0.2);
  --emerald-dim: #EDF5F0;

  --danger-rose: #A8282B;
  --danger-glow: rgba(168, 40, 43, 0.2);
  --danger-dim: #FDF2F2;

  --amber-warn: #B45309;
  --amber-dim: rgba(180, 83, 9, 0.1);

  --purple-accent: #6B5B4D;
  --purple-glow: rgba(107, 91, 77, 0.2);
  --purple-dim: rgba(107, 91, 77, 0.1);

  --text-main: #1C1917;
  --text-body: #3E3A36;
  --text-muted: #78716C;
  --text-dim: #9C958D;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px rgba(44, 38, 30, 0.05), 0 1px 3px rgba(44, 38, 30, 0.03);
  --shadow-glow: 0 8px 30px rgba(149, 125, 88, 0.12);
}

/* Base Reset */
html {
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

h1, h2, h3, h4, h5, h6, p, li, span, a, button, input, label {
  overflow-wrap: break-word;
}

pre, code, .mono {
  overflow-wrap: anywhere;
  word-break: break-all;
}

body {
  background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #FAF8F5 55%, #F4EFE6 100%) fixed;
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* Cyber Background Elements */
.cyber-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-plane {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(149, 125, 88, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 125, 88, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, transparent 80%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
}

.orb-2 {
  width: 600px;
  height: 600px;
  bottom: 10%;
  left: -200px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-3d {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 9px;
  border: 1.5px solid var(--border-medium);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #FFFFFF;
}

.brand-logo-3d:hover {
  transform: scale(1.05);
  border-color: var(--cyan-neon);
}

.back-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: #F5F2EB;
  border: 1px solid #DCD6CB;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: #E8E3DC;
  border-color: #957D58;
  color: #1C1917;
  transform: translateX(-2px);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan-neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-neon);
  animation: pulseGlow 2s infinite ease-in-out;
}

.pulse-dot.purple {
  background: var(--purple-accent);
  box-shadow: 0 0 8px var(--purple-accent);
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.nav-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Layout Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 20px 80px;
  position: relative;
  z-index: 10;
}

/* Header Section */
.drill-header {
  text-align: center;
  margin-bottom: 40px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-neon);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.time-badge {
  color: var(--amber-warn);
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--amber-dim);
}

.purple-tag {
  color: var(--purple-accent);
  border-color: rgba(168, 85, 247, 0.4);
  background: var(--purple-dim);
}

.danger-tag {
  color: var(--danger-rose);
  border-color: rgba(239, 68, 68, 0.4);
  background: var(--danger-dim);
}

.drill-header h1 {
  font-size: clamp(1.4rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #1C1917 !important;
  color: #1C1917 !important;
  overflow-wrap: break-word;
}

.drill-desc {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Stepper Indicator */
.training-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.format-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #57534E;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(44, 38, 30, 0.04);
}

.format-step-pill.active {
  background: #FFFFFF;
  border-color: #A8282B;
  color: #1C1917;
  box-shadow: 0 2px 8px rgba(168, 40, 43, 0.15);
}

.format-step-num {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F5F2EB;
  font-size: 0.72rem;
  font-weight: 700;
  color: #57534E;
}

.format-step-pill.active .format-step-num {
  background: #A8282B;
  color: #FFFFFF;
}

.format-step-arrow {
  color: #A8A29E;
  font-size: 0.85rem;
}

/* ==========================================================================
   CURRICULUM GRID & LESSON CARDS
   ========================================================================== */
.curriculum-section {
  margin-bottom: 50px;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lesson-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 0 20px rgba(0, 242, 254, 0.08);
}

.lesson-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan-neon), var(--purple-accent));
  opacity: 0.6;
}

.lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.lesson-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-neon);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.lesson-icon {
  font-size: 1.4rem;
}

.lesson-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1C1917;
  margin-bottom: 14px;
  line-height: 1.3;
}

.lesson-content p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.lesson-content strong {
  color: #1C1917;
}

.lesson-bullet-list {
  list-style: none;
  margin: 14px 0 18px;
  padding-left: 0;
}

.lesson-bullet-list li {
  position: relative;
  padding-left: 24px;
  color: #3E3A36;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.lesson-bullet-list li::before {
  content: "▹";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--cyan-neon);
  font-size: 1.1rem;
}

.key-defense-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
}

.key-defense-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-safe);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.key-defense-desc {
  font-size: 0.88rem;
  color: #a7f3d0;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   INTERACTIVE CLOUD & API DEFENSE SIMULATOR
   ========================================================================== */
.simulator-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 55px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.sim-header {
  text-align: center;
  margin-bottom: 28px;
}

.sim-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1C1917 !important;
  margin: 10px 0 6px;
}

.sim-header p {
  color: #57534E;
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto;
}

.sim-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sim-tab-btn {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  color: #57534E;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(44, 38, 30, 0.04);
}

.sim-tab-btn:hover {
  color: #1C1917;
  border-color: #957D58;
  background: #FAF8F5;
}

.sim-tab-btn.active {
  background: #FFFFFF;
  border-color: #A8282B;
  color: #1C1917;
  box-shadow: 0 2px 8px rgba(168, 40, 43, 0.15);
}

.sim-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.sim-tab-panel.active {
  display: block;
}

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

/* Simulator Terminal / Inspector Windows */
.cloud-terminal-box {
  background: #FAF8F5;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--font-mono);
}

.terminal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #DCD6CB;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-title {
  color: #1C1917;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-status-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #FDF2F2;
  color: #A8282B;
  border: 1px solid rgba(168, 40, 43, 0.3);
  font-weight: 700;
}

.terminal-status-badge.safe {
  background: #EDF5F0;
  color: #2E6F40;
  border-color: rgba(46, 111, 64, 0.3);
  font-weight: 700;
}

.code-editor-pre {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #1C1917;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 14px;
  overflow-x: auto;
  box-shadow: 0 1px 4px rgba(44, 38, 30, 0.04);
}

.code-editor-pre .highlight-leak {
  color: #A8282B;
  background: #FDF2F2;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px dashed rgba(168, 40, 43, 0.5);
  font-weight: 700;
}

.code-editor-pre .highlight-vault {
  color: #2E6F40;
  background: #EDF5F0;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(46, 111, 64, 0.5);
  font-weight: 700;
}

.btn-terminal-action {
  display: block;
  width: 100%;
  background: #1C1917;
  color: #ffffff;
  border: 1px solid #1C1917;
  padding: 13px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.15);
  text-align: center;
  margin-top: 14px;
}

.btn-terminal-action:hover {
  background: #A8282B;
  border-color: #A8282B;
}

.btn-terminal-action.danger-btn {
  background: #A8282B;
  border-color: #A8282B;
  color: #ffffff;
}

.btn-terminal-action.danger-btn:hover {
  background: #871F22;
  border-color: #871F22;
}

/* Storage Bucket Matrix */
.bucket-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .bucket-card-grid {
    grid-template-columns: 1fr;
  }
}

.bucket-item-card {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(44, 38, 30, 0.04);
}

.bucket-item-card.exposed {
  border-color: #A8282B;
  border-left: 4px solid #A8282B;
  background: #FFFFFF;
}

.bucket-item-card h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #2E6F40;
  margin-bottom: 8px;
  font-weight: 700;
  word-break: break-all;
}

.bucket-item-card.exposed h4 {
  color: #A8282B;
  font-weight: 700;
}

.bucket-meta-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #57534E;
  margin-bottom: 4px;
}

.bucket-meta-line span {
  color: #1C1917;
  font-weight: 600;
}

/* Privacy Tier Matrix */
.privacy-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.privacy-tier-card {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(44, 38, 30, 0.04);
}

.privacy-tier-card:hover {
  border-color: #957D58;
  transform: translateY(-2px);
}

.privacy-tier-card.selected {
  border-color: #957D58;
  background: #FDFCFB;
  box-shadow: 0 4px 16px rgba(149, 125, 88, 0.15);
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #1C1917;
  margin-bottom: 4px;
}

.tier-examples {
  font-size: 0.78rem;
  color: #57534E;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: #F5F2EB;
  color: #57534E;
  border: 1px solid #E8E3DC;
}

/* OAuth Auditor Card */
.oauth-scope-item {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(44, 38, 30, 0.04);
}

.oauth-scope-item.danger-scope {
  border-color: #A8282B;
  border-left: 4px solid #A8282B;
  background: #FFFFFF;
}

/* ==========================================================================
   QUIZ SECTION & CARDS
   ========================================================================== */
.quiz-section {
  margin-bottom: 50px;
}

.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.quiz-header-bar h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1C1917 !important;
}

.score-hud {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  color: #1C1917;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(44, 38, 30, 0.05);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.score-hud.complete {
  background: #EDF5F0;
  border-color: #2E6F40;
  color: #2E6F40;
  box-shadow: 0 0 20px rgba(46, 111, 64, 0.2);
}

.quiz-notice-banner {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: #92400E;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quiz-card {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(44, 38, 30, 0.04);
  transition: all 0.25s ease;
}

.quiz-card:hover {
  border-color: #957D58;
}

.quiz-card.answered-correct {
  border-color: #2E6F40;
  box-shadow: 0 4px 20px rgba(46, 111, 64, 0.1);
}

.quiz-card.answered-wrong {
  border-color: #A8282B;
  box-shadow: 0 4px 20px rgba(168, 40, 43, 0.1);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.q-num {
  display: inline-flex !important;
  align-items: center !important;
  font-family: var(--font-mono) !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  color: #1C1917 !important;
  background: #F5F2EB !important;
  border: 1.5px solid #DCD6CB !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 1px 3px rgba(44, 38, 30, 0.04) !important;
}

.status-indicator {
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: #F5F2EB;
  color: #1C1917;
  border: 1.5px solid #DCD6CB;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.status-indicator.correct,
.status-indicator.resolved {
  background: #E8F5E9 !important;
  color: #1B5E20 !important;
  border: 2px solid #2E7D32 !important;
  font-weight: 800 !important;
}

.status-indicator.wrong,
.status-indicator.triaged-wrong {
  background: #FFEBEE !important;
  color: #B91C1C !important;
  border: 2px solid #DC2626 !important;
  font-weight: 800 !important;
}

.q-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #1C1917 !important;
  line-height: 1.55 !important;
  margin-bottom: 18px !important;
}

.q-title code {
  font-family: var(--font-mono) !important;
  color: #FFFFFF !important;
  background: #1C1917 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 0.95em !important;
  font-weight: 800 !important;
  border: 1.5px solid #44403C !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
  display: inline-block !important;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-btn {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #1C1917;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 1px 3px rgba(44, 38, 30, 0.04);
}

.opt-btn:hover:not(:disabled) {
  background: #FDFCFB;
  border-color: #957D58;
  color: #1C1917;
  transform: translateX(3px);
  box-shadow: 0 3px 8px rgba(149, 125, 88, 0.12);
}

.opt-key {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #F5F2EB;
  color: #957D58;
  flex-shrink: 0;
  margin-top: 1px;
}

.opt-label {
  flex: 1;
  line-height: 1.45;
}

.opt-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.opt-btn.correct {
  background: #EDF5F0 !important;
  border-color: #2E6F40 !important;
  color: #1C1917 !important;
}

.opt-btn.correct .opt-key {
  background: #2E6F40 !important;
  color: #FFFFFF !important;
}

.opt-btn.wrong {
  background: #FDF2F2 !important;
  border-color: #A8282B !important;
  color: #1C1917 !important;
}

.opt-btn.wrong .opt-key {
  background: #A8282B !important;
  color: #FFFFFF !important;
}

.feedback-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeIn 0.25s ease;
}

.feedback-msg.correct {
  background: #EDF7ED !important;
  border: 1.5px solid #16A34A !important;
  color: #065F46 !important;
  font-weight: 600;
}

.feedback-msg.correct strong {
  color: #043C22 !important;
  font-weight: 800;
}

.feedback-msg.wrong {
  background: #FEF2F2 !important;
  border: 1.5px solid #DC2626 !important;
  color: #991B1B !important;
  font-weight: 600;
}

.feedback-msg.wrong strong {
  color: #58151C !important;
  font-weight: 800;
}

/* Assessment Results Card */
.triage-result-card {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(44, 38, 30, 0.05);
}

.result-trophy {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: inline-block;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1C1917;
  margin-bottom: 8px;
}

.result-desc {
  font-size: 0.95rem;
  color: #57534E;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.btn-retake {
  background: #1C1917;
  border: 1px solid #1C1917;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retake:hover {
  background: #957D58;
  border-color: #957D58;
}

/* ==========================================================================
   CERTIFICATE GENERATOR SECTION
   ========================================================================== */
.cert-container {
  margin-bottom: 60px;
}

.cert-card {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44, 38, 30, 0.05);
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #A8282B, #957D58);
}

.cert-badge {
  display: inline-block;
  background: var(--amber-dim);
  color: var(--amber-warn);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.cert-badge.unlocked {
  background: var(--emerald-dim);
  color: var(--emerald-safe);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.cert-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1C1917 !important;
  margin-bottom: 12px;
}

.cert-card p {
  color: #57534E;
  font-size: 0.96rem;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cert-input-group {
  display: flex;
  max-width: 540px;
  margin: 0 auto 16px;
  gap: 10px;
}

.cert-input-group input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #1C1917;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.cert-input-group input:focus:not(:disabled) {
  border-color: #957D58;
  box-shadow: 0 0 0 3px rgba(149, 125, 88, 0.15);
}

.cert-input-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #F5F2EB;
}

.cert-input-group button {
  background: #1C1917;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.15);
}

.cert-input-group button:hover:not(:disabled) {
  background: #957D58;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(149, 125, 88, 0.25);
}

.cert-privacy-note {
  display: block;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   OFFICIAL CYVEXIS SECURITY ADVISORY & CONTACTS
   ========================================================================== */
.cyvexis-safety-notice {
  margin-bottom: 60px;
}

.cyvexis-safety-card {
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cyvexis-safety-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--cyan-neon);
  box-shadow: 0 0 12px var(--cyan-neon);
}

.cyvexis-safety-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cyvexis-safety-icon {
  font-size: 2rem;
}

.cyvexis-safety-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1C1917;
  letter-spacing: 0.04em;
}

.cyvexis-safety-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #A8282B;
  letter-spacing: 0.08em;
}

.cyvexis-safety-statement {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cyvexis-safety-statement strong {
  color: #1C1917;
}

.cyvexis-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.cyvexis-contact-badge {
  background: rgba(6, 9, 19, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-email {
  color: var(--cyan-neon);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.contact-email:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px;
  text-align: center;
  position: relative;
  z-index: 10;
  background: rgba(6, 9, 19, 0.9);
}

.footer-container p {
  color: var(--text-dim);
  font-size: 0.84rem;
  font-family: var(--font-mono);
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .training-stepper {
    gap: 6px;
    margin-bottom: 24px;
  }
  .format-step-arrow {
    display: none;
  }
  .format-step-pill {
    padding: 6px 12px;
    font-size: 0.74rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 28px 16px 60px;
  }

  .privacy-tiers-grid {
    grid-template-columns: 1fr;
  }

  .lesson-card {
    padding: 20px;
  }

  .quiz-card {
    padding: 20px 16px;
  }

  .cert-input-group {
    flex-direction: column;
  }

  .cert-input-group button {
    width: 100%;
  }

  .simulator-container {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   WARM ATELIER MINIMALIST OVERRIDES (LA PETITE ALICE EDITORIAL THEME)
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.hud-title, .modal-header h3, .cert-card h2, .cert-card h3,
.learning-choice-title, .video-briefing-title, .article-title,
.quiz-title, .summary-title, .score-big, .scenario-title, .panel-title, .drill-title {
  color: #1C1917 !important;
}

p, li, .briefing-desc, .article-section p, .learning-choice-desc, .desc-text {
  color: #3E3A36 !important;
}

h1, h2, h3, h4, h5, h6,
.hud-title, .modal-header h3, .cert-card h2, .cert-card h3,
.learning-choice-title, .video-briefing-title, .article-title,
.quiz-title, .summary-title, .score-big, .scenario-title, .lesson-card h3,
.choice-title, .section-title, .quiz-question-title, .cyvexis-safety-header h3 {
  color: #1C1917 !important;
}

p, li, .briefing-desc, .article-section p, .learning-choice-desc, .desc-text,
.hero-subtitle, .section-desc, .choice-desc, .cyvexis-safety-statement {
  color: #3E3A36 !important;
}

.gradient-text {
  background: linear-gradient(135deg, #957D58 0%, #685233 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #957D58 !important;
}

.threat-badge {
  background: #FDF2F2 !important;
  border: 1px solid #FECACA !important;
  color: #991B1B !important;
}

.section-tag, .quiz-context-tag {
  color: #957D58 !important;
  font-weight: 700 !important;
}

.stat-label {
  color: #57534E !important;
  font-weight: 700 !important;
}

.hud-pill, .tag-pill, .badge-pill, .step-badge, .article-meta-badge {
  background: #F5F2EB !important;
  color: #957D58 !important;
  border-color: #D8CFBF !important;
}

.choice-card, .learning-choice-card, .video-briefing-container, .article-reading-container, 
.quiz-card, .cert-card, .lesson-card, .simulator-container, .cyvexis-safety-card, .cyvexis-safety-box {
  background: #FFFFFF !important;
  border: 1px solid #E8E3DC !important;
  box-shadow: 0 4px 24px rgba(44, 38, 30, 0.05) !important;
}

.choice-card.active {
  border-color: #957D58 !important;
  background: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(149, 125, 88, 0.15), 0 0 0 2px #957D58 !important;
}

.quiz-highlight-box {
  background: #F5F2EB !important;
  border: 1px solid #DCD6CB !important;
  color: #1C1917 !important;
}

.quiz-passing-notice {
  background: #FFFBEB !important;
  border: 1px solid #FCD34D !important;
  border-left: 4px solid #D97706 !important;
  color: #78350F !important;
}

.quiz-passing-notice .passing-notice-badge, .passing-notice-badge {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #F59E0B !important;
  font-weight: 800 !important;
}

.quiz-passing-notice .passing-notice-text,
.quiz-passing-notice .passing-notice-text strong {
  color: #78350F !important;
}

.quiz-feedback-box.correct,
.feedback-msg.correct {
  display: block !important;
  background: #EDF7ED !important;
  border: 2px solid #16A34A !important;
  border-left: 6px solid #16A34A !important;
  color: #043C22 !important;
  font-weight: 600 !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
  border-radius: 8px !important;
}

.quiz-feedback-box.correct strong,
.feedback-msg.correct strong {
  color: #022C1A !important;
  font-weight: 800 !important;
}

.quiz-feedback-box.incorrect,
.feedback-msg.wrong {
  display: block !important;
  background: #FEF2F2 !important;
  border: 2px solid #DC2626 !important;
  border-left: 6px solid #DC2626 !important;
  color: #58151C !important;
  font-weight: 600 !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
  border-radius: 8px !important;
}

.quiz-feedback-box.incorrect strong,
.feedback-msg.wrong strong {
  color: #450A0A !important;
  font-weight: 800 !important;
}

.terminal-window, .sim-display, .bucket-console, .vault-box {
  background: #FAF8F5 !important;
  border: 1px solid #E8E3DC !important;
  color: #1C1917 !important;
}

.quiz-option-btn, .opt-btn {
  background: #FFFFFF !important;
  border: 1px solid #DCD6CB !important;
  color: #3E3A36 !important;
}

.quiz-option-btn:hover:not(:disabled), .opt-btn:hover {
  background: #FAF8F5 !important;
  border-color: #957D58 !important;
  color: #1C1917 !important;
}

.option-prefix {
  background: #F5F2EB !important;
  border: 1px solid #DCD6CB !important;
  color: #1C1917 !important;
}

.quiz-option-btn.selected-correct {
  background: #EDF5F0 !important;
  border-color: #2E6F40 !important;
  color: #1C1917 !important;
}

.quiz-option-btn.selected-correct .option-prefix {
  background: #2E6F40 !important;
  color: #FFFFFF !important;
}

.quiz-option-btn.selected-wrong {
  background: #FDF2F2 !important;
  border-color: #A8282B !important;
  color: #1C1917 !important;
}

.quiz-option-btn.selected-wrong .option-prefix {
  background: #A8282B !important;
  color: #FFFFFF !important;
}

.btn-choice-select, .btn-action-primary, .btn-next-question, .btn-restart-quiz, .btn-direct-quiz, .btn-analyze, .btn-primary {
  background: #1C1917 !important;
  border-color: #1C1917 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.15) !important;
}

.btn-choice-select:hover, .btn-action-primary:hover, .btn-next-question:hover, .btn-restart-quiz:hover, .btn-direct-quiz:hover, .btn-analyze:hover, .btn-primary:hover {
  background: #957D58 !important;
  border-color: #957D58 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(149, 125, 88, 0.25) !important;
}

.btn-choice-select.secondary, .btn-secondary {
  background: #F5F2EB !important;
  border-color: #DCD6CB !important;
  color: #1C1917 !important;
}

.btn-choice-select.secondary:hover, .btn-secondary:hover {
  background: #E8E3DC !important;
  border-color: #957D58 !important;
  color: #1C1917 !important;
}

.cyvexis-contact-badge {
  background: #F5F2EB !important;
  border: 1px solid #E8E3DC !important;
  color: #1C1917 !important;
}
.cyvexis-contact-badge strong, .cyvexis-contact-badge span {
  color: #1C1917 !important;
}
.cyvexis-contact-badge code {
  color: #957D58 !important;
  background: rgba(149, 125, 88, 0.12) !important;
}
.cyvexis-primary-warning {
  color: #A8282B !important;
}

.cert-input-group input {
  background: #FFFFFF !important;
  border: 1px solid #DCD6CB !important;
  color: #1C1917 !important;
}

.cert-input-group input:focus {
  border-color: #957D58 !important;
  box-shadow: 0 0 0 3px rgba(149, 125, 88, 0.15) !important;
}

.cert-input-group button, #btnGenerateCert {
  background: #1C1917 !important;
  color: #FFFFFF !important;
}

.cert-input-group button:hover, #btnGenerateCert:hover {
  background: #957D58 !important;
  color: #FFFFFF !important;
}

.site-footer, .footer {
  background: #FAF8F5 !important;
  border-top: 1px solid #E8E3DC !important;
  color: #78716C !important;
}

