
/* ==========================================================================
   CYVEXIS SECURITY TRAINING: MODULE 02
   Password Hygiene & MFA Fatigue: Defending Against Credential Attacks
   Design System: Modern Dark Mode, Cyber HUD, Zero-Shaming Philosophy
   ========================================================================== */

:root {
  --bg-void: #FAF8F5;
  --bg-deep: #FAF8F5;
  --bg-surface: rgba(255, 255, 255, 0.96);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F5;
  --bg-card-highlight: #F5F2EB;
  --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.35);
  --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;
  
  --rose-danger: #A8282B;
  --rose-glow: rgba(168, 40, 43, 0.2);
  --rose-dim: #FDF2F2;
  
  --amber-warn: #B45309;
  --amber-glow: rgba(180, 83, 9, 0.2);
  --amber-dim: #FEF3C7;
  
  --purple-tech: #6B5B4D;
  --purple-glow: rgba(107, 91, 77, 0.2);

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

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --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);
  --shadow-danger: 0 8px 30px rgba(168, 40, 43, 0.12);
}

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

.back-link:hover {
  background: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.15);
  transform: translateX(-2px);
}

/* 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);
  opacity: 0.15;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cyan-neon), transparent);
  top: -80px;
  right: -60px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--purple-tech), transparent);
  bottom: 25%;
  left: -100px;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--rose-danger), transparent);
  bottom: -60px;
  right: 15%;
  opacity: 0.12;
}

/* Layout Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.shield-icon {
  font-size: 1.7rem;
  background: rgba(0, 242, 254, 0.12);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.highlight-cyan {
  color: var(--cyan-neon);
}

.logo-module-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan-neon);
}

.btn-nav-action {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.btn-nav-action:hover {
  background: var(--cyan-neon);
  color: #030712;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

/* Hero Section */
.hero-section {
  padding: 68px 0 54px 0;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.module-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-neon);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-number.danger { color: var(--rose-danger); text-shadow: 0 0 15px var(--rose-glow); }
.stat-number.cyan { color: var(--cyan-neon); text-shadow: 0 0 15px var(--cyan-glow); }
.stat-number.emerald { color: var(--emerald-safe); text-shadow: 0 0 15px var(--emerald-glow); }

.stat-label {
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Common Section Styles */
.training-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 40px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-neon);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
}

/* SECTION 1: UNDERSTAND (Threat Trinity Grid) */
.threat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.threat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.threat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.threat-card.highlight-card {
  border-color: var(--border-glow);
  background: linear-gradient(180deg, rgba(14, 26, 52, 0.85) 0%, rgba(10, 16, 32, 0.9) 100%);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.12);
}

.threat-card-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.threat-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.threat-type-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.pill-danger { background: var(--rose-dim); color: var(--rose-danger); border: 1px solid var(--border-danger); }
.pill-amber { background: var(--amber-dim); color: var(--amber-warn); border: 1px solid var(--amber-warn); }
.pill-cyan { background: var(--cyan-dim); color: var(--cyan-neon); border: 1px solid var(--cyan-neon); }

.threat-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.threat-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.threat-card-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.threat-card-desc code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan-neon);
}

.threat-card-insight {
  font-size: 0.86rem;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--text-dim);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.insight-accent {
  border-left-color: var(--cyan-neon);
  background: rgba(0, 242, 254, 0.06);
}

/* Empathy Banner */
.empathy-callout-banner {
  display: flex;
  gap: 20px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(10, 15, 29, 0.7) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  align-items: flex-start;
}

.empathy-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  background: var(--emerald-dim);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--emerald-safe);
}

.empathy-content h4 {
  font-size: 1.15rem;
  color: var(--emerald-safe);
  margin-bottom: 8px;
  font-weight: 700;
}

.empathy-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SECTION 2: RECOGNIZE (Simulation) */
.sim-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.sim-layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: start;
}

/* Simulated Mobile Screen */
.sim-device-container {
  display: flex;
  justify-content: center;
}

.sim-phone-frame {
  width: 100%;
  max-width: 340px;
  background: #02040a;
  border: 4px solid #1e293b;
  border-radius: 40px;
  padding: 16px 14px 20px 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.1);
  position: relative;
  transition: transform 0.1s ease;
}

.sim-phone-frame.vibrating {
  animation: phone-vibrate 0.3s infinite ease-in-out;
}

@keyframes phone-vibrate {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-3px, 2px) rotate(-1deg); }
  40% { transform: translate(3px, -2px) rotate(1deg); }
  60% { transform: translate(-2px, -2px) rotate(-0.5deg); }
  80% { transform: translate(2px, 2px) rotate(0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.sim-phone-speaker {
  width: 60px;
  height: 5px;
  background: #334155;
  border-radius: var(--radius-full);
  margin: 4px auto 14px auto;
}

.sim-phone-statusbar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 0 10px 14px 10px;
}

.sim-screen-body {
  min-height: 480px;
  background: radial-gradient(circle at top, #090e1f 0%, #030611 100%);
  border-radius: 26px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.sim-night-lock-info {
  text-align: center;
  margin-bottom: 16px;
}

.lock-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.lock-date {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.lock-sub {
  font-size: 0.68rem;
  color: var(--rose-danger);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Notification barrage stack */
.sim-notification-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.sim-push-mini-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slide-in-down 0.25s ease forwards;
}

@keyframes slide-in-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mini-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Foreground active challenge */
.sim-active-prompt {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid var(--rose-danger);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  box-shadow: var(--shadow-danger);
  margin-top: auto;
  backdrop-filter: blur(8px);
}

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

.auth-app-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-neon);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.prompt-counter {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--rose-danger);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.prompt-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.prompt-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.unrecognized-pill {
  font-family: var(--font-mono);
  background: var(--rose-dim);
  color: var(--rose-danger);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.prompt-question {
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 12px;
}

.prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-sim-action {
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid transparent;
}

.btn-deny {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-safe);
  color: var(--emerald-safe);
}

.btn-deny:hover {
  background: var(--emerald-safe);
  color: #030712;
}

.btn-approve {
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--rose-danger);
  color: var(--rose-danger);
}

.btn-approve:hover {
  background: var(--rose-danger);
  color: white;
}

.sim-phone-home {
  width: 100px;
  height: 4px;
  background: #334155;
  border-radius: var(--radius-full);
  margin: 14px auto 0 auto;
}

/* Simulation Controls Panel */
.sim-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 4px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-neon);
  letter-spacing: 0.08em;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.telemetry-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.telem-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.telem-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.danger-glow {
  color: var(--rose-danger);
  text-shadow: 0 0 10px var(--rose-glow);
}

.text-amber { color: var(--amber-warn); }
.text-cyan { color: var(--cyan-neon); }

.sim-button-toolbar {
  display: flex;
  gap: 12px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Feedback Drawer Box */
.sim-feedback-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pulse-amber {
  background-color: var(--amber-warn);
  box-shadow: 0 0 8px var(--amber-warn);
}

.pulse-emerald {
  background-color: var(--emerald-safe);
  box-shadow: 0 0 12px var(--emerald-safe);
}

.pulse-rose {
  background-color: var(--rose-danger);
  box-shadow: 0 0 12px var(--rose-danger);
}

.feedback-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.sim-feedback-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.feedback-pro-tip {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  border-left: 3px solid var(--cyan-neon);
}

/* Psychology breakdown */
.psychology-breakdown {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.psychology-breakdown h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--cyan-neon);
  font-weight: 600;
}

.psych-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.psych-list li {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.psych-list li::before {
  content: "•";
  color: var(--cyan-neon);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.psych-list strong {
  color: var(--text-main);
}

/* SECTION 3: DECIDE (Decision Framework) */
.decide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.decide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.decide-icon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.decide-icon {
  font-size: 2rem;
}

.decide-tier {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tier-essential { background: var(--cyan-dim); color: var(--cyan-neon); border: 1px solid var(--border-glow); }
.tier-high { background: var(--purple-glow); color: #c084fc; border: 1px solid var(--purple-tech); }
.tier-gold { background: var(--amber-dim); color: var(--amber-warn); border: 1px solid var(--amber-warn); }

.decide-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.decide-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.decide-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.decide-bullets li {
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.decide-bullets li::before {
  content: "✔";
  color: var(--cyan-neon);
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.decide-bullets strong {
  color: var(--text-main);
}

/* MFA Rankings inside Card 3 */
.mfa-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.mfa-rank-row {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid transparent;
}

.mfa-rank-row.rank-best { border-left-color: var(--emerald-safe); }
.mfa-rank-row.rank-good { border-left-color: var(--cyan-neon); }
.mfa-rank-row.rank-poor { border-left-color: var(--rose-danger); }

.mfa-badge-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.rank-best .mfa-badge-level { color: var(--emerald-safe); }
.rank-good .mfa-badge-level { color: var(--cyan-neon); }
.rank-poor .mfa-badge-level { color: var(--rose-danger); }

.mfa-rank-row p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Interactive Entropy Demonstrator */
.interactive-tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.08);
}

.tool-header {
  margin-bottom: 20px;
}

.tool-header h4 {
  font-size: 1.2rem;
  margin-top: 4px;
}

.entropy-demo-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.entropy-preset-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-preset {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.btn-preset:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.btn-preset.active {
  border-color: var(--cyan-neon);
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan-neon);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.entropy-results-display {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-password-visual {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  word-break: break-all;
}

.demo-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.demo-metric-item {
  display: flex;
  flex-direction: column;
}

.demo-metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.demo-metric-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}

.demo-explanation {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* SECTION 4: RESPOND (Containment Protocol) */
.containment-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
}

.containment-steps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.containment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s ease;
}

.containment-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cyan-neon);
  background: rgba(0, 242, 254, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
  flex-shrink: 0;
}

.step-card-content {
  flex-grow: 1;
}

.step-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.step-headline h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.priority-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.priority-pill.high {
  background: var(--rose-dim);
  color: var(--rose-danger);
  border: 1px solid var(--border-danger);
}

.priority-pill.medium {
  background: var(--amber-dim);
  color: var(--amber-warn);
  border: 1px solid var(--amber-warn);
}

.step-card-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.session-kill-pill {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid var(--border-danger);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #ff99b3;
}

.step-action-note {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--cyan-neon);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.step-action-note strong {
  color: var(--text-main);
}

/* Containment Companion Box */
.containment-companion {
  display: flex;
  flex-direction: column;
}

.panic-free-box {
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.85) 0%, rgba(10, 16, 32, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.1);
}

.panic-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.panic-free-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald-safe);
  margin-bottom: 12px;
}

.panic-quote {
  font-style: italic;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--emerald-safe);
  margin-bottom: 24px;
}

.panic-checklist h5 {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.check-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.check-container input[type="checkbox"] {
  accent-color: var(--emerald-safe);
  width: 16px;
  height: 16px;
  cursor: default;
}

/* SECTION 5: PRACTICE (Interactive Scenario Challenge) */
.quiz-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.quiz-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quiz-step-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-neon);
  font-weight: 600;
}

.quiz-score-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: var(--text-main);
}

.quiz-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 30px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-neon), var(--purple-tech));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.quiz-card {
  display: flex;
  flex-direction: column;
}

.quiz-scenario-badge {
  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;
  margin-bottom: 12px !important;
  box-shadow: 0 1px 3px rgba(44, 38, 30, 0.04) !important;
}

.quiz-question-text {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: #1C1917 !important;
  margin-bottom: 16px !important;
  line-height: 1.45 !important;
}

.quiz-scenario-context {
  background: #FAF8F5;
  border: 1px solid #E8E3DC;
  border-left: 3px solid #957D58;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.94rem;
  color: #3E3A36;
  line-height: 1.6;
  margin-bottom: 24px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-option-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  color: var(--text-main);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}

.quiz-option-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.opt-prefix {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.quiz-option-btn.selected-correct {
  border-color: var(--emerald-safe);
  background: rgba(16, 185, 129, 0.15);
}

.quiz-option-btn.selected-correct .opt-prefix {
  background: var(--emerald-safe);
  color: #030712;
}

.quiz-option-btn.selected-incorrect {
  border-color: var(--rose-danger);
  background: rgba(255, 51, 102, 0.15);
}

.quiz-option-btn.selected-incorrect .opt-prefix {
  background: var(--rose-danger);
  color: white;
}

/* Feedback Drawer */
.quiz-feedback-drawer {
  background: rgba(10, 16, 32, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  animation: fade-in-up 0.3s ease;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-drawer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

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

.result-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.feedback-drawer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--cyan-neon);
  border: none;
  color: #030712;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #38f9d7;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
}

/* Quiz Complete Card */
.quiz-complete-card {
  text-align: center;
  padding: 30px 10px;
}

.completion-trophy {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.quiz-complete-card h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.quiz-complete-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.completion-badges-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* SECTION 6: REMEMBER (Takeaway checklist) */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.takeaway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
}

.takeaway-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.takeaway-card.checked {
  border-color: var(--border-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.takeaway-checkbox input {
  accent-color: var(--emerald-safe);
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 4px;
}

.takeaway-info h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.takeaway-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* MANDATORY SAFETY BANNER SECTION */
.safety-banner-section {
  padding: 60px 0 80px 0;
}

.cyvexis-safety-card {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.12) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(0, 242, 254, 0.08) 100%);
  border: 2px solid var(--rose-danger);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 0 35px rgba(255, 51, 102, 0.2);
  position: relative;
  overflow: hidden;
}

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

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

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

.cyvexis-notice-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.cyvexis-primary-warning {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ff99b3;
  line-height: 1.6;
  margin-bottom: 12px;
}

.cyvexis-body-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

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

.cyvexis-contact-badge {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

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

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

.cyvexis-contact-badge code {
  font-family: var(--font-mono);
  color: #957D58;
  background: rgba(149, 125, 88, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  background: #FAF8F5;
  color: #78716C;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-neon);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.footer-left p, .footer-right p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Embed Modal */
.embed-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 20px;
  max-width: 680px;
  width: 92%;
}

.embed-modal::backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

.embed-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
}

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shield-badge {
  font-size: 1.3rem;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.embed-tabs-header {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.embed-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.embed-tab-btn:hover {
  color: var(--text-main);
}

.embed-tab-btn.active {
  color: var(--cyan-neon);
  border-bottom-color: var(--cyan-neon);
}

.embed-tab-body {
  display: none;
}

.embed-tab-body.active {
  display: block;
}

.tab-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tab-desc code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan-neon);
}

.code-snippet-box {
  background: #02040a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-embed-copy {
  width: 100%;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--cyan-neon);
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-embed-copy:hover {
  background: var(--cyan-neon);
  color: #030712;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .threat-cards-grid,
  .decide-grid {
    grid-template-columns: 1fr;
  }

  .sim-layout-grid {
    grid-template-columns: 1fr;
  }

  .sim-device-container {
    margin-bottom: 20px;
  }

  .containment-layout {
    grid-template-columns: 1fr;
  }

  .entropy-demo-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none; /* Mobile navigation simplified */
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .takeaways-grid {
    grid-template-columns: 1fr !important;
  }

  .demo-metrics-row {
    grid-template-columns: 1fr !important;
  }

  .preset-buttons-row {
    flex-wrap: wrap;
  }

  .preset-btn {
    flex: 1 1 calc(50% - 8px);
  }

  .cyvexis-safety-card {
    padding: 24px;
  }

  .cyvexis-contacts-grid {
    flex-direction: column;
  }

  .prompt-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .preset-btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   CYVEXIS CERTIFICATE GENERATOR COMPONENT
   ========================================================================== */
.cert-container {
  margin: 50px auto 30px;
  width: 100%;
  max-width: 900px;
  padding: 0 16px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  border-color: var(--cyan-glow);
  box-shadow: var(--shadow-glow);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--emerald-dim);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-safe);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cert-card h2 {
  font-family: var(--font-sans);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 28px;
}

.cert-input-group {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin-bottom: 18px;
}

.cert-input-group input#studentName {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.cert-input-group input#studentName:focus {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.cert-input-group button#generateBtn {
  background: linear-gradient(135deg, var(--cyan-neon) 0%, #00a8ff 100%);
  color: #040915;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--cyan-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cert-input-group button#generateBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--cyan-glow);
  filter: brightness(1.08);
}

.cert-input-group button#generateBtn:active {
  transform: translateY(0);
}

.cert-input-group button#generateBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.cert-privacy-note {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  line-height: 1.5;
  max-width: 580px;
}

@media (max-width: 640px) {
  .cert-card {
    padding: 30px 18px;
  }

  .cert-card h2 {
    font-size: 1.55rem;
  }

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

  .cert-input-group button#generateBtn {
    width: 100%;
    padding: 14px 20px;
  }
}




/* Scroll Down to Claim Certificate Banner */
html {
  scroll-behavior: smooth;
}

.claim-cert-scroll-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(6, 182, 212, 0.1);
  text-align: left;
}

.cert-scroll-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.cert-scroll-info {
  flex: 1;
}

.cert-scroll-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.cert-scroll-sub {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.btn-go-down-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #000 !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.btn-go-down-cert:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
  transform: translateY(-2px);
  color: #000 !important;
}

@media (max-width: 640px) {
  .claim-cert-scroll-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cert-scroll-info {
    text-align: center;
  }
  .btn-go-down-cert {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   CYVEXIS ADAPTIVE LEARNING FORMAT SWITCHER & VIDEO PLAYER (MODULE 02)
   ========================================================================== */
.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);
  font-size: 0.78rem;
  color: var(--cyan-neon, #00f2fe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.format-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.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);
  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 (5 Min Video vs 5 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);
  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: #fff;
  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 Briefing 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);
  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);
  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,
.video-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  background: #000;
  display: block;
}

.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: 9px 18px;
  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;
}

@media (max-width: 680px) {
  .format-choice-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .training-stepper {
    display: none;
  }
  .video-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .btn-direct-quiz {
    width: 100%;
    justify-content: center;
  }
}

/* Quiz Passing Requirement Notice */
.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: 780px;
  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;
}

.quiz-passing-notice .passing-notice-text {
  flex: 1;
}

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

@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, .entropy-score-title,
.choice-title, .section-title, .quiz-question-title, .fatigue-card h3,
.calc-card h3, .cyvexis-notice-header h3 {
  color: #1C1917 !important;
}

p, li, .briefing-desc, .article-section p, .learning-choice-desc, .desc-text,
.hero-subtitle, .section-desc, .choice-desc, .cyvexis-body-text, .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, .fatigue-card, .calc-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 {
  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 {
  color: #022C1A !important;
  font-weight: 800 !important;
}

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

.quiz-feedback-drawer {
  background: #FFFFFF !important;
  border: 1.5px solid #DCD6CB !important;
  box-shadow: 0 4px 20px rgba(44, 38, 30, 0.08) !important;
}

.feedback-drawer-text {
  color: #3E3A36 !important;
  font-size: 0.96rem !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

.phone-screen, .prompt-screen, .calc-screen, .code-snippet, .sim-display {
  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, #passphraseInput {
  background: #FFFFFF !important;
  border: 1px solid #DCD6CB !important;
  color: #1C1917 !important;
}

.cert-input-group input:focus, #passphraseInput: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;
}


