/* ==========================================================================
   CYVEXIS SECURITY TRAINING: MODULE 03
   Executive Impersonation & BEC Defense
   Design System: Deep Dark Cyber Palette, Desktop Mail Simulator, Tactical HUD
   ========================================================================== */

:root {
  --bg-void: #FAF8F5;
  --bg-deep: #FAF8F5;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F5;
  --bg-mail-header: #F5F2EB;
  --bg-mail-row: #FFFFFF;
  --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.1);

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

  --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 */
/* 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, [class*="email"] {
  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(16, 185, 129, 0.06) 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: 960px;
  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: 960px;
  margin: 0 auto;
  padding: 44px 20px 80px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   TRUST ACKNOWLEDGMENT & AUDIT TEASER BANNERS
   ========================================================================== */
.trust-banner {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44, 38, 30, 0.05);
}

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

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EDF5F0;
  color: #2E6F40;
  border: 1px solid rgba(46, 111, 64, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.trust-star {
  color: #957D58;
}

.trust-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1C1917;
  margin-bottom: 8px;
  line-height: 1.35;
}

.trust-desc {
  color: #57534E;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 800px;
}

.trust-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badge {
  background: #F5F2EB;
  border: 1px solid #E8E3DC;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #57534E;
}

.audit-teaser-bar {
  background: #FFFFFF;
  border: 1px solid #DCD6CB;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  box-shadow: 0 1px 4px rgba(44, 38, 30, 0.04);
}

.audit-teaser-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #1C1917;
}

.radar-ping {
  width: 9px;
  height: 9px;
  background: var(--cyan-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-neon);
  animation: pulseGlow 1.8s infinite;
  flex-shrink: 0;
}

.audit-teaser-tag {
  background: var(--cyan-dim);
  color: var(--cyan-neon);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.audit-teaser-link {
  color: var(--cyan-neon);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.audit-teaser-link:hover {
  text-decoration: underline;
  color: #685233;
}

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

.tag-pill {
  display: inline-block;
  background: #F5F2EB;
  color: #957D58;
  border: 1px solid #E8E3DC;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.drill-header h1 {
  font-size: clamp(1.4rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  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 {
  color: var(--text-body);
  font-size: 1.02rem;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==========================================================================
   ENTERPRISE MAIL CLIENT SIMULATOR
   ========================================================================== */
.simulation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 50px;
  transition: border-color 0.3s ease;
}

.simulation-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

.sim-header {
  background: var(--bg-mail-header);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.sim-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sim-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber-warn);
  background: var(--amber-dim);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.email-viewer {
  padding: 0;
}

.email-meta-table {
  background: var(--bg-mail-row);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  font-size: 0.92rem;
  gap: 14px;
}

.meta-label {
  width: 70px;
  color: var(--text-dim);
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.8rem;
  padding-top: 2px;
}

.meta-value {
  color: var(--text-main);
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-value code {
  font-family: var(--font-mono);
  background: #F5F2EB;
  color: #1C1917;
  border: 1px solid #E8E3DC;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.suspicious-domain-highlight {
  background: #FDF2F2 !important;
  color: #A8282B !important;
  border: 1px solid #FCA5A5 !important;
  font-weight: 700;
}

.spoof-flag-tag {
  background: #FDF2F2;
  color: #A8282B;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #FCA5A5;
  letter-spacing: 0.05em;
}

.subject-urgency {
  color: #A8282B;
  font-weight: 700;
}

.security-banner-row {
  margin-top: 6px;
}

.mail-warning-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #92400E;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
}

.email-body {
  padding: 28px 24px;
  font-size: 1rem;
  line-height: 1.75;
  color: #3E3A36;
}

.email-body p {
  margin-bottom: 16px;
}

.highlight-figure {
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--cyan-dim);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.email-signoff {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
}

.signoff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan-neon);
}

.signoff-details strong {
  color: var(--text-main);
  font-size: 1rem;
}

.signoff-details span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.confidentiality-notice {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   INTERACTIVE QUIZ SCENARIOS
   ========================================================================= */
.quiz-section {
  margin-bottom: 50px;
}

.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

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

.section-subtext {
  color: var(--text-body);
  font-size: 0.9rem;
  margin-top: 2px;
}

.score-pill {
  background: #FFFFFF;
  color: #1C1917;
  border: 1px solid #DCD6CB;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(44, 38, 30, 0.04);
}

.score-pill.complete {
  background: #EDF5F0;
  color: #2E6F40;
  border-color: #2E6F40;
  box-shadow: 0 0 16px var(--emerald-glow);
}

.quiz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  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-size: 0.84rem !important;
  font-family: var(--font-mono) !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;
  font-weight: 800 !important;
  box-shadow: 0 1px 3px rgba(44, 38, 30, 0.04) !important;
}

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

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

.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;
  margin-bottom: 18px !important;
  line-height: 1.55 !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-sm);
  padding: 14px 18px;
  color: #1C1917;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
  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(4px);
  box-shadow: 0 3px 8px rgba(149, 125, 88, 0.12);
}

.opt-key {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #957D58;
  background: #F5F2EB;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

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

.opt-label code {
  font-family: var(--font-mono);
  background: #F5F2EB;
  border: 1px solid #DCD6CB;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1C1917;
  font-weight: 700;
}

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

.opt-btn.correct {
  background: #EDF5F0 !important;
  border-color: #2E6F40 !important;
  color: #1C1917 !important;
  opacity: 1 !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;
  opacity: 1 !important;
}

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

.feedback-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

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

.feedback-msg.correct-fb {
  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;
}

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

.feedback-msg.wrong-fb {
  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;
}

.feedback-msg.wrong-fb strong {
  color: #450A0A !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   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;
  box-shadow: 0 4px 20px rgba(44, 38, 30, 0.05);
  overflow: hidden;
}

.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(--emerald-dim);
  color: var(--emerald-safe);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.cert-card p {
  color: #57534E;
  font-size: 0.96rem;
  max-width: 600px;
  margin: 0 auto 24px;
}

.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 {
  border-color: #957D58;
  box-shadow: 0 0 0 3px rgba(149, 125, 88, 0.15);
}

.cert-input-group input::placeholder {
  color: var(--text-dim);
}

.cert-input-group button {
  background: #1C1917;
  color: #ffffff;
  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 4px 14px rgba(28, 25, 23, 0.15);
}

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

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .meta-row {
    flex-direction: column;
    gap: 4px;
  }
  .meta-label {
    width: 100%;
  }
  .cert-input-group {
    flex-direction: column;
  }
  .cert-input-group button {
    width: 100%;
  }
}


/* Cyvexis Official Safety Notice */
.cyvexis-safety-notice {
  margin: 3.5rem 0 2rem;
  padding: 0;
}

.cyvexis-safety-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(13, 20, 36, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(239, 68, 68, 0.05);
  position: relative;
  overflow: hidden;
}

.cyvexis-safety-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-danger, #ef4444);
  box-shadow: 0 0 15px var(--color-danger, #ef4444);
}

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

.cyvexis-safety-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

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

.cyvexis-safety-tagline {
  font-size: 0.75rem;
  color: #f87171;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.1em;
  margin: 0.2rem 0 0;
}

.cyvexis-safety-statement {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.cyvexis-safety-statement strong {
  color: #fca5a5;
  display: block;
  margin-bottom: 0.35rem;
}

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

.cyvexis-contact-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  transition: all 0.2s ease;
}

.cyvexis-contact-badge:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-2px);
}

.cyvexis-contact-badge .contact-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.cyvexis-contact-badge .contact-email {
  color: var(--color-cyan, #06b6d4);
  text-decoration: none;
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-all;
}

.cyvexis-contact-badge .contact-email:hover {
  text-decoration: underline;
  color: #38bdf8;
}


@media (max-width: 640px) {
  .cyvexis-contacts-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .cyvexis-contact-badge {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .cyvexis-contact-badge .contact-email {
    font-size: 0.82rem;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   CYVEXIS ADAPTIVE LEARNING FORMAT SWITCHER & VIDEO PLAYER (MODULE 03)
   ========================================================================== */
.learning-format-section {
  margin: 2.5rem 0 3.5rem;
}

.format-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.format-kicker {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: var(--cyan-neon, #00f2fe);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.format-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #1C1917;
  margin-bottom: 0.75rem;
}

.format-desc {
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.format-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E8E3DC;
  border-radius: 9999px;
  padding: 8px 18px;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #57534E;
  width: auto;
  height: auto;
  white-space: nowrap;
  box-sizing: border-box;
}

.format-step-pill.active {
  border-color: #957D58;
  background: #FDFCFB;
  color: #1C1917;
  box-shadow: 0 2px 10px rgba(149, 125, 88, 0.15);
}

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

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

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

/* Choice Cards (3 Min Video vs 2 Min Article) */
.format-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.choice-card {
  background: #FFFFFF;
  border: 1.5px solid #E8E3DC;
  border-radius: var(--radius-lg, 18px);
  padding: 1.75rem 1.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(44, 38, 30, 0.05);
}

.choice-card:hover {
  transform: translateY(-4px);
  border-color: #957D58;
  box-shadow: 0 12px 30px rgba(44, 38, 30, 0.1);
}

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

.choice-badge-time {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.choice-badge-time.cyan {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-neon, #00f2fe);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.choice-badge-time.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-safe, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.choice-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
}

.choice-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1C1917;
  margin-bottom: 0.5rem;
}

.choice-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.choice-action {
  margin-top: auto;
}

.btn-choice-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
  transition: all 0.2s ease;
}

.btn-choice-select.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  color: #fff;
  box-shadow: none;
}

.choice-card.active .btn-choice-select {
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  color: #000;
}

/* Video Player Card */
.video-briefing-card {
  background: #070c1a;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 242, 254, 0.12);
  transition: all 0.3s ease;
}

.video-card-top {
  background: #03060f;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-card-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex: 1;
}

.video-quality-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-safe, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
}

.video-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  background: #000;
}

.video-card-bottom {
  padding: 16px 22px;
  background: rgba(10, 16, 33, 0.9);
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.video-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.btn-direct-quiz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #000 !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-direct-quiz:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #000 !important;
}

/* Video Completion Banner */
.video-completion-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid var(--emerald-safe, #10b981);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 18px;
  margin: 14px 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  animation: fadeIn 0.4s ease;
}

.comp-icon {
  font-size: 1.5rem;
}

.comp-text strong {
  display: block;
  color: var(--emerald-safe, #10b981);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.comp-text span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.highlight-pulse {
  animation: pulseGlowBtn 1.5s infinite;
}

@keyframes pulseGlowBtn {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 680px) {
  .format-choice-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .training-stepper {
    gap: 6px;
    margin-bottom: 24px;
  }
  .format-step-arrow {
    display: none;
  }
  .format-step-pill {
    padding: 6px 12px;
    font-size: 0.74rem;
  }
  .email-meta-table {
    padding: 16px 14px;
  }
  .meta-row {
    flex-direction: column;
    gap: 4px;
  }
  .meta-label {
    width: auto;
    font-size: 0.75rem;
  }
  .meta-value {
    word-break: break-all;
  }
  .email-body {
    padding: 18px 14px;
  }
  .video-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .btn-direct-quiz {
    width: 100%;
    justify-content: center;
  }
}

/* Quiz Passing Requirement Notice & Result Card */
.quiz-passing-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-left: 4px solid #D97706;
  border-radius: 12px;
  padding: 14px 20px;
  margin: 0 auto 28px;
  max-width: 850px;
  color: #78350F;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.quiz-passing-notice .passing-notice-badge,
.passing-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.quiz-passing-notice .passing-notice-text {
  flex: 1;
  color: #78350F;
}

.quiz-passing-notice .passing-notice-text strong {
  color: #78350F;
  font-weight: 800;
}

.triage-result-card {
  max-width: 850px;
  margin: 30px auto;
  border-radius: 14px;
  padding: 24px;
  background: var(--bg-card, rgba(13, 20, 38, 0.9));
  border: 1px solid var(--border-subtle, #1e293b);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.triage-result-card.passed {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.triage-result-card.failed {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(13, 20, 38, 0.9) 100%);
}

@media (max-width: 600px) {
  .quiz-passing-notice {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   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, .mail-subject,
.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, .mail-body,
.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, .mail-container, .triage-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-fb {
  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-fb strong {
  color: #022C1A !important;
  font-weight: 800 !important;
}

.quiz-feedback-box.incorrect,
.feedback-msg.wrong-fb {
  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-fb strong {
  color: #450A0A !important;
  font-weight: 800 !important;
}

.desktop-mail-simulator, .mail-viewer-window, .mail-header-info {
  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;
}


