/* ==========================================================================
   CYVEXIS SECURITY TRAINING: MODULE 04
   Social Engineering Beyond Email (Smishing, Quishing & Deepfakes)
   Design System: Deep Dark Cyber Palette, Tactical Threat Simulators, HUD
   ========================================================================== */

: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);

  --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);

  --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;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  top: -150px;
  left: -100px;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  bottom: 100px;
  right: -100px;
}

/* Navigation Bar */
.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;
  justify-content: space-between;
  align-items: center;
}

.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;
}

@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);
}

.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: 780px;
  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: #957D58;
  color: #1C1917;
  box-shadow: 0 2px 8px rgba(149, 125, 88, 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: #957D58;
  color: #FFFFFF;
}

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

/* ==========================================================================
   CURRICULUM LESSON SECTIONS (SECTIONS 1 TO 4)
   ========================================================================== */
.curriculum-section {
  margin-bottom: 50px;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

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

.lesson-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

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

.lesson-card.purple-accent::before {
  background: linear-gradient(180deg, var(--purple-accent), transparent);
}

.lesson-card.amber-accent::before {
  background: linear-gradient(180deg, var(--amber-warn), transparent);
}

.lesson-card.emerald-accent::before {
  background: linear-gradient(180deg, var(--emerald-safe), transparent);
}

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

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

.lesson-card.purple-accent .lesson-badge {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-accent);
  border-color: rgba(168, 85, 247, 0.3);
}

.lesson-card.amber-accent .lesson-badge {
  background: var(--amber-dim);
  color: var(--amber-warn);
  border-color: rgba(245, 158, 11, 0.3);
}

.lesson-card.emerald-accent .lesson-badge {
  background: var(--emerald-dim);
  color: var(--emerald-safe);
  border-color: rgba(16, 185, 129, 0.3);
}

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

.lesson-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1C1917;
  margin-bottom: 12px;
}

.lesson-content p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.lesson-content p strong {
  color: var(--text-main);
}

.lesson-bullet-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.lesson-bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lesson-bullet-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--cyan-neon);
  font-family: var(--font-mono);
}

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

.key-defense-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-safe);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.key-defense-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 !important;
}

/* ==========================================================================
   INTERACTIVE TACTICAL THREAT SIMULATOR
   ========================================================================== */
.simulator-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-card);
}

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

.sim-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1C1917 !important;
  margin-bottom: 8px;
}

.sim-header p {
  color: var(--text-body);
  font-size: 0.95rem;
}

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

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

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

.sim-tab-btn.active {
  background: #1C1917;
  border-color: #1C1917;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 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); }
}

/* Smishing Mockup */
.phone-mockup {
  max-width: 440px;
  margin: 0 auto;
  background: #FAF8F5;
  border: 2px solid #DCD6CB;
  border-radius: 36px;
  padding: 20px 16px 28px;
  box-shadow: 0 10px 30px rgba(44, 38, 30, 0.08);
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #78716C;
  padding: 0 8px 14px;
  border-bottom: 1px solid #E8E3DC;
  margin-bottom: 16px;
}

.phone-speaker {
  width: 60px;
  height: 4px;
  background: #DCD6CB;
  border-radius: 2px;
}

.sms-contact {
  text-align: center;
  margin-bottom: 20px;
}

.sms-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F5F2EB;
  border: 1px solid #DCD6CB;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #1C1917;
}

.sms-sender-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #1C1917;
  font-weight: 700;
}

.sms-sender-sub {
  font-size: 0.72rem;
  color: #A8282B;
  font-weight: 600;
}

.sms-bubble {
  background: #FFFFFF;
  border: 1px solid #E8E3DC;
  border-left: 3px solid #A8282B;
  border-radius: 18px 18px 18px 4px;
  padding: 14px 16px;
  margin-bottom: 14px;
  position: relative;
}

.sms-bubble p {
  font-size: 0.88rem;
  color: #1C1917;
  line-height: 1.45;
  margin-bottom: 8px;
}

.sms-fake-link {
  display: inline-block;
  color: #A8282B;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  word-break: break-all;
  text-decoration: underline;
  background: #FDF2F2;
  border: 1px solid rgba(168, 40, 43, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

.sms-annotations {
  margin-top: 18px;
  background: #FDF2F2;
  border: 1px solid rgba(168, 40, 43, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
}

.sms-annotations h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #A8282B;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 700;
}

.sms-annotations ul {
  list-style: none;
  padding: 0;
  font-size: 0.82rem;
  color: #3E3A36;
}

.sms-annotations ul li {
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}

.sms-annotations ul li strong {
  color: #1C1917;
}

.sms-annotations ul li::before {
  content: "⚠️";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

/* Quishing Mockup */
.quishing-demo-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .quishing-demo-box {
    grid-template-columns: 1fr;
  }
}

.qr-scanner-viewfinder {
  background: #FAF8F5;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  text-align: center;
}

.viewfinder-frame {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-mock-img {
  width: 170px;
  height: 170px;
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #E8E3DC;
  box-shadow: 0 4px 14px rgba(44, 38, 30, 0.08);
}

.scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #A8282B;
  box-shadow: 0 0 10px #A8282B;
  animation: laserScan 2.5s infinite ease-in-out;
}

@keyframes laserScan {
  0%, 100% { top: 15%; opacity: 0.3; }
  50% { top: 85%; opacity: 1; }
}

.qr-preview-card {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(44, 38, 30, 0.04);
}

.qr-preview-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #A8282B;
  font-weight: 700;
  margin-bottom: 4px;
}

.qr-preview-url {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #1C1917;
  background: #F5F2EB;
  padding: 3px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.qr-explainer-content h3 {
  font-size: 1.25rem;
  color: #1C1917;
  font-weight: 800;
  margin-bottom: 12px;
}

.qr-explainer-content p {
  color: #57534E;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.qr-explainer-content ul {
  color: #3E3A36;
}

.qr-explainer-content ul li strong {
  color: #1C1917;
}

/* Deepfake / Vishing Demo */
.vishing-call-box {
  background: #FAF8F5;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(44, 38, 30, 0.06);
}

.call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E8E3DC;
  flex-wrap: wrap;
  gap: 10px;
}

.call-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #A8282B;
  font-weight: 700;
}

.caller-card {
  text-align: center;
  margin-bottom: 24px;
}

.caller-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FDF2F2;
  border: 2px solid rgba(168, 40, 43, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
}

.caller-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1C1917;
}

.caller-spoofed-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #B45309;
  margin-top: 4px;
  font-weight: 600;
}

.voice-waveform-container {
  background: #FFFFFF;
  border: 1px solid #E8E3DC;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 48px;
  margin-bottom: 10px;
}

.wave-bar {
  width: 5px;
  background: #957D58;
  border-radius: 3px;
  animation: waveAnim 1.2s infinite ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 35px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 45px; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 20px; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 40px; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 28px; }
.wave-bar:nth-child(7) { animation-delay: 0.2s; height: 42px; }
.wave-bar:nth-child(8) { animation-delay: 0.4s; height: 18px; }

@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.anomaly-alert {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #A8282B;
  font-weight: 600;
  background: #FDF2F2;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(168, 40, 43, 0.2);
}

.call-action-btns {
  display: flex;
  gap: 12px;
}

.btn-hangup {
  flex: 1;
  background: #A8282B;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-hangup:hover {
  background: #871F22;
  transform: translateY(-1px);
}

.btn-oob-verify:hover {
  background: #957D58;
  border-color: #957D58;
  transform: translateY(-1px);
}

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

.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  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);
}

/* Passing Gate Notice Banner */
.quiz-passing-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(6, 9, 19, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.passing-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.passing-notice-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.passing-notice-text strong {
  color: #fbbf24;
}

/* Quiz Card Component */
.quiz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.quiz-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.quiz-card.answered-correct {
  border-color: var(--border-emerald);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.quiz-card.answered-wrong {
  border-color: var(--border-danger);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 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;
}

/* Triage Results Card */
.triage-result-card {
  background: linear-gradient(135deg, rgba(10, 15, 29, 0.95), rgba(6, 9, 19, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.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: var(--text-body);
  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, #957D58, #2E6F40);
}

.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;
  margin-bottom: 12px;
}

.cert-card p {
  color: var(--text-muted);
  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: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}

.cert-input-group input:focus:not(:disabled) {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 14px var(--cyan-glow);
}

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

.cert-input-group button {
  background: linear-gradient(135deg, var(--cyan-neon), #00b4d8);
  color: #050811;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.3);
}

.cert-input-group button:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
  transform: translateY(-1px);
}

.cert-input-group button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

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

/* ==========================================================================
   OFFICIAL CYVEXIS SAFETY NOTICE
   ========================================================================== */
.cyvexis-safety-notice {
  margin-bottom: 50px;
}

.cyvexis-safety-card {
  background: linear-gradient(135deg, rgba(6, 9, 19, 0.95) 0%, rgba(10, 15, 29, 0.9) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.cyvexis-safety-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--danger-rose);
}

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

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

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

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

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

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

.cyvexis-contacts-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cyvexis-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.contact-label {
  color: var(--text-muted);
}

.contact-email {
  color: var(--cyan-neon);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 7, 15, 0.95);
  padding: 24px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

@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-left: 16px;
    padding-right: 16px;
  }
  .call-action-btns {
    flex-direction: column;
    width: 100%;
  }
  .btn-hangup,
  .btn-oob-verify {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .sop-steps-grid {
    grid-template-columns: 1fr !important;
  }
  .cert-input-group {
    flex-direction: column;
  }
  .cert-input-group button {
    width: 100%;
  }
  .quiz-passing-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   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, .phone-sender,
.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, .sms-bubble-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, .simulator-card, .quishing-card, .vishing-card, .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;
}

.phone-mockup, .qr-frame-box, .audio-waveform-container {
  background: #FAF8F5 !important;
  border: 1px solid #E8E3DC !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;
}

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

