:root {
  /* Royal Blue, Emerald Green & Gold Palette */
  --bg-deep: #050c1d;
  --bg-royal: #0d1f47;
  --bg-card: rgba(16, 37, 84, 0.72);
  --bg-card-hover: rgba(23, 50, 110, 0.9);

  --royal-blue: #1e40af;
  --royal-bright: #3b82f6;
  --royal-light: #93c5fd;

  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-dark: #065f46;

  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-soft: rgba(245, 158, 11, 0.16);

  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --border-subtle: rgba(147, 197, 253, 0.18);
  --border-gold: rgba(251, 191, 36, 0.48);
  --border-emerald: rgba(52, 211, 153, 0.42);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-royal: 0 20px 55px rgba(2, 6, 20, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-deep);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 15% 15%, #122b61 0%, #07122c 55%, #040917 100%);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Ambient Background Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}
.glow-blue {
  width: 500px;
  height: 500px;
  background: #1d4ed8;
  top: -120px;
  left: -120px;
}
.glow-emerald {
  width: 440px;
  height: 440px;
  background: #059669;
  bottom: -120px;
  right: -80px;
}
.glow-gold {
  width: 340px;
  height: 340px;
  background: #d97706;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
}

/* Utility Text Colors */
.text-gold { color: var(--gold-bright); }
.text-emerald { color: var(--emerald-bright); }
.text-blue-light { color: var(--royal-light); }

.gradient-text {
  background: linear-gradient(90deg, var(--gold-bright) 0%, var(--emerald-bright) 55%, var(--royal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================
   TOP NAVIGATION BAR
   ========================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(5, 12, 29, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

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

.brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--royal-blue), var(--emerald));
  border: 1.5px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-bright);
}

/* Slide Number Dots */
.slide-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dot:hover {
  border-color: var(--gold-bright);
  color: #fff;
  transform: translateY(-1px);
}
.dot.active {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #071128;
  border-color: var(--gold-bright);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

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

.mode-toggle {
  display: flex;
  background: rgba(15, 32, 72, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 3px;
}
.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-btn.active {
  background: linear-gradient(135deg, var(--royal-bright), var(--emerald));
  color: #fff;
}

.btn-fullscreen {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-fullscreen:hover {
  border-color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.15);
}

/* Floating Bottom-Right Slide Controls */
.deck-controls {
  position: fixed;
  bottom: 16px;
  right: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 20, 48, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.ctrl-btn.ctrl-primary {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #071128;
  border-color: var(--gold-bright);
  font-weight: 700;
}
.slide-counter {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-bright);
  padding: 0 6px;
}

/* ==========================================
   16:9 WIDESCREEN PRESENTATION STAGE
   ========================================== */
.presentation-container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
}

body.mode-deck {
  overflow: hidden;
  height: 100vh;
}

body.mode-deck .presentation-container {
  height: 100vh;
  padding: 68px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.mode-deck .stage-16x9 {
  width: min(100%, calc((100vh - 88px) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 88px);
  background: radial-gradient(circle at 20% 20%, rgba(26, 58, 128, 0.75) 0%, rgba(10, 23, 56, 0.92) 60%, rgba(6, 14, 36, 0.98) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75), inset 0 0 40px rgba(59, 130, 246, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
}

body.mode-deck .slide {
  display: none;
  width: 100%;
  height: 100%;
  padding: 24px 36px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  animation: slideFadeIn 0.3s ease;
}

body.mode-deck .slide.active {
  display: flex;
}

/* In Scroll View Mode, stack 16:9 slides vertically */
body.mode-scroll .stage-16x9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px 20px 80px;
}

body.mode-scroll .slide {
  width: min(100%, 1280px);
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 20% 20%, rgba(26, 58, 128, 0.75) 0%, rgba(10, 23, 56, 0.92) 60%, rgba(6, 14, 36, 0.98) 100%);
  border: 1.5px solid var(--border-subtle);
  border-radius: 22px;
  box-shadow: var(--shadow-royal);
  padding: 28px 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.mode-scroll .slide.active {
  border-color: var(--border-gold);
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.slide-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 16px;
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-bright);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.section-header h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  margin-bottom: 5px;
  color: #fff;
}
.section-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.42;
}

/* ==========================================
   SLIDE 1: HERO SECTION
   ========================================== */
.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald-bright);
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.12;
  margin-bottom: 14px;
  font-weight: 800;
}

.hero-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, #d97706 100%);
  color: #071128;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.5);
}

.btn-outline {
  background: rgba(30, 64, 175, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--royal-light);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: rgba(59, 130, 246, 0.35);
  border-color: var(--gold-bright);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-num {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Orbit Visual */
.ecosystem-orbit {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--emerald-dark));
  border: 3px solid var(--gold-bright);
  box-shadow: 0 0 42px rgba(16, 185, 129, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.center-shield { font-size: 2rem; margin-bottom: 3px; }
.orbit-center strong { font-size: 1rem; color: var(--gold-bright); }
.orbit-center span { font-size: 0.72rem; color: #e2e8f0; }

.orbit-card {
  position: absolute;
  background: rgba(13, 31, 71, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-royal);
  width: 180px;
}
.oc-icon { font-size: 1.4rem; }
.orbit-card strong { display: block; font-size: 0.82rem; color: #fff; }
.orbit-card small { font-size: 0.68rem; color: var(--emerald-bright); }

.oc-1 { top: 14px; left: 4px; }
.oc-2 { top: 14px; right: 4px; }
.oc-3 { bottom: 14px; left: 4px; }
.oc-4 { bottom: 14px; right: 4px; }

/* ==========================================
   SLIDE 2: BEFORE VS AFTER
   ========================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.comp-column {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.comp-before {
  border-top: 4px solid #ef4444;
}
.comp-after {
  border-top: 4px solid var(--emerald-bright);
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.32) 0%, rgba(16, 37, 84, 0.75) 100%);
  border-color: var(--border-emerald);
}
.comp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.comp-icon { font-size: 1.5rem; }
.comp-header h3 { font-size: 1.08rem; }
.comp-header p { font-size: 0.76rem; color: var(--text-muted); }

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comp-list li {
  background: rgba(7, 17, 40, 0.55);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255,255,255,0.2);
}
.comp-after .comp-list li {
  border-left-color: var(--gold-bright);
}
.comp-list strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
  color: #fff;
}
.comp-list span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================
   SLIDE 3: 5 ROLES EXPLORER
   ========================================== */
.role-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.role-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  transition: all 0.22s ease;
}
.role-tab:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}
.role-tab.active {
  background: linear-gradient(135deg, var(--royal-blue), var(--emerald-dark));
  border: 2px solid var(--gold-bright);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
.rt-icon { font-size: 1.5rem; }
.rt-title { font-weight: 700; font-size: 0.84rem; }
.rt-sub { font-size: 0.68rem; color: var(--gold-bright); }

.role-display-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-royal);
}
.role-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
  align-items: center;
}
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.role-info h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.role-info p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 12px;
}
.role-perks {
  list-style: none;
  display: grid;
  gap: 7px;
}
.role-perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  background: rgba(7, 17, 40, 0.5);
  padding: 7px 11px;
  border-radius: 8px;
  border-left: 3px solid var(--emerald-bright);
}
.role-highlight-box {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.45), rgba(6, 95, 70, 0.45));
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.rh-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.role-highlight-box h4 { color: var(--gold-bright); font-size: 1.05rem; margin-bottom: 6px; }
.role-highlight-box p { font-size: 0.82rem; color: #e2e8f0; line-height: 1.5; }

/* ==========================================
   SLIDE 4: GATE SCANNER INTERACTIVE DEMO
   ========================================== */
.gate-demo-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: stretch;
}
.gate-controls-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.gate-controls-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.panel-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sim-buttons {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.sim-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(7, 17, 40, 0.65);
  border: 1px solid var(--border-subtle);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.sim-btn:hover, .sim-btn.active {
  background: rgba(30, 64, 175, 0.45);
  border-color: var(--gold-bright);
}
.sim-icon { font-size: 1.2rem; }
.sim-btn strong { display: block; font-size: 0.82rem; }
.sim-btn small { font-size: 0.7rem; color: var(--text-muted); }

.offline-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.offline-toggle-box strong { display: block; font-size: 0.8rem; color: var(--gold-bright); }
.offline-toggle-box small { font-size: 0.68rem; color: var(--text-muted); }

.voice-toggle-box {
  font-size: 0.78rem;
  color: var(--emerald-bright);
}
.voice-toggle-box input { margin-right: 6px; accent-color: var(--emerald); }

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255,255,255,0.2);
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--gold); }
input:checked + .slider:before { transform: translateX(20px); }

/* Gate Monitor Screen */
.gate-monitor {
  background: #060f24;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-royal);
  display: flex;
  flex-direction: column;
}
.monitor-topbar {
  background: rgba(16, 37, 84, 0.9);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
.monitor-dots { display: flex; gap: 5px; }
.monitor-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-bright);
}
.monitor-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--royal-light); }
.monitor-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.monitor-status.online {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
}
.monitor-status.offline {
  background: rgba(245, 158, 11, 0.25);
  color: var(--gold-bright);
}

.monitor-body {
  padding: 18px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: center;
  flex: 1;
}
.scan-camera-box {
  background: rgba(15, 32, 72, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.cam-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.student-avatar-frame {
  height: 130px;
  border-radius: 9px;
  background: radial-gradient(circle, #1e3a8a 0%, #091534 100%);
  border: 2px dashed var(--emerald-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 8px;
}
.avatar-illustration { font-size: 3.4rem; }
.cam-timestamp {
  position: absolute;
  bottom: 5px;
  right: 7px;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-family: monospace;
  color: var(--emerald-bright);
}
.voice-wave-bar {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-emerald);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 0.72rem;
  color: #e2e8f0;
}

.scan-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.status-ontime {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald);
}
.status-warn {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid #ef4444;
}
.scan-details-box h4 { font-size: 1.2rem; margin-bottom: 3px; }
.scan-meta { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 12px; }

.instant-dispatch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dispatch-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  background: rgba(7, 17, 40, 0.7);
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================
   SLIDE 5: AI MESSENGER & TEACHER DESK
   ========================================== */
.ai-demo-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}
.phone-mockup {
  background: #081533;
  border: 2px solid var(--royal-bright);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-royal);
}
.phone-header {
  background: linear-gradient(90deg, var(--royal-blue), #1d4ed8);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.phone-header strong { display: block; font-size: 0.86rem; }
.phone-header span { font-size: 0.7rem; color: var(--emerald-bright); }

.chat-window {
  padding: 12px 14px;
  height: 205px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(5, 12, 31, 0.7);
}
.chat-bubble {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.chat-bubble.bot {
  background: rgba(30, 64, 175, 0.55);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-prompts {
  padding: 11px 14px;
  background: rgba(13, 31, 71, 0.9);
  border-top: 1px solid var(--border-subtle);
}
.prompt-label {
  display: block;
  font-size: 0.7rem;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 6px;
}
.prompt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prompt-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}
.prompt-chip:hover {
  background: var(--gold);
  color: #071128;
  border-color: var(--gold-bright);
  font-weight: 600;
}

.teacher-desk-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.desk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.desk-badge {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--emerald-bright);
  letter-spacing: 0.08em;
}
.chime-indicator {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.desk-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.df-card {
  display: flex;
  gap: 12px;
  background: rgba(7, 17, 40, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 11px 13px;
  border-radius: 10px;
}
.df-icon { font-size: 1.4rem; }
.df-card h4 { font-size: 0.88rem; color: var(--gold-bright); margin-bottom: 3px; }
.df-card p { font-size: 0.77rem; color: var(--text-muted); line-height: 1.4; }

/* ==========================================
   SLIDE 6: 1-CLICK DEPED FORMS
   ========================================== */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}
.form-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
}
.form-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.form-code {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--gold-bright);
}
.form-pill {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.pill-emerald { background: rgba(16, 185, 129, 0.2); color: var(--emerald-bright); }
.pill-gold { background: rgba(245, 158, 11, 0.2); color: var(--gold-bright); }
.pill-blue { background: rgba(59, 130, 246, 0.25); color: var(--royal-light); }

.form-card h3 { font-size: 0.96rem; margin-bottom: 6px; }
.form-card p { font-size: 0.77rem; color: var(--text-muted); line-height: 1.42; margin-bottom: 10px; }
.form-benefit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald-bright);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ==========================================
   SLIDE 7: CANTEEN & BMI CALCULATORS
   ========================================== */
.calculators-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.calc-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: var(--gold-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.calc-header h3 { font-size: 1.08rem; margin-bottom: 4px; }
.calc-header p { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 12px; }

.canteen-input-group {
  background: rgba(7, 17, 40, 0.65);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.canteen-input-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 6px;
}
.canteen-input-group input[type="range"] {
  width: 100%;
  accent-color: var(--gold-bright);
  cursor: pointer;
}
.canteen-funds-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fund-box {
  background: rgba(7, 17, 40, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
}
.fund-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.fund-amount {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--emerald-bright);
}
.fund-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.bmi-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.bmi-field label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.bmi-field input {
  width: 100%;
  background: rgba(7, 17, 40, 0.8);
  border: 1px solid var(--royal-light);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}
.bmi-result-box {
  background: rgba(7, 17, 40, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.bmi-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.preset-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  cursor: pointer;
}
.preset-btn:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ==========================================
   SLIDE 8: 14 INTEGRATED MODULES
   ========================================== */
.module-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.mod-filter {
  background: rgba(16, 37, 84, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.mod-filter.active, .mod-filter:hover {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #071128;
  border-color: var(--gold-bright);
  font-weight: 700;
}

.modules-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mod-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  transition: all 0.2s;
}
.mod-item:hover {
  border-color: var(--emerald-bright);
  transform: translateY(-2px);
}
.mod-icon { font-size: 1.25rem; }
.mod-item h4 { font-size: 0.8rem; color: #fff; margin-bottom: 2px; }
.mod-item p { font-size: 0.69rem; color: var(--text-muted); line-height: 1.32; }

/* ==========================================
   SLIDE 9: NOTIFICATION MATRIX TABLE
   ========================================== */
.matrix-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-royal);
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.matrix-table th {
  background: rgba(13, 31, 71, 0.95);
  color: var(--gold-bright);
  font-size: 0.8rem;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.matrix-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}
.m-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.mb-emerald { background: rgba(16, 185, 129, 0.2); color: var(--emerald-bright); }
.mb-gold { background: rgba(245, 158, 11, 0.2); color: var(--gold-bright); }
.mb-blue { background: rgba(59, 130, 246, 0.22); color: var(--royal-light); }
.mb-red { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }

/* ==========================================
   SLIDE 10: TRUST PILLARS & CLOSING
   ========================================== */
.trust-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold-bright);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.pillar-icon { font-size: 1.8rem; margin-bottom: 8px; }
.pillar-card h3 { font-size: 1rem; margin-bottom: 6px; color: #fff; }
.pillar-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.48; }

.closing-banner {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.65), rgba(6, 95, 70, 0.65));
  border: 1.5px solid var(--gold-bright);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.closing-tagline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
  margin-bottom: 3px;
}
.closing-text h3 { font-size: 1.15rem; margin-bottom: 3px; }
.closing-text p { font-size: 0.8rem; color: var(--gold-bright); }
.closing-actions { display: flex; gap: 10px; }

/* ==========================================
   SLIDES 11 & 12: COMPLETE FEATURE DIRECTORY
   ========================================== */
.feature-hero-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.6) 0%, rgba(6, 95, 70, 0.6) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.fhs-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
}
.fhs-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}
.fhs-title-row h3 {
  font-size: 1.05rem;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
}
.fhs-badge {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-bright);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.fhs-content p {
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.38;
}

.directory-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dir-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
}
.dir-gold { border-top: 3.5px solid var(--gold-bright); }
.dir-emerald { border-top: 3.5px solid var(--emerald-bright); }
.dir-blue { border-top: 3.5px solid var(--royal-bright); }

.dir-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.dir-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.dir-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
}
.dir-card-header h3 {
  font-size: 0.92rem;
  color: #fff;
}

.dir-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dir-list > li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(7, 17, 40, 0.55);
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.dir-bullet {
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.8rem;
  margin-top: 1px;
}
.dir-list strong {
  display: block;
  font-size: 0.78rem;
  color: #fff;
}
.dir-list small {
  display: block;
  font-size: 0.69rem;
  color: var(--text-muted);
  line-height: 1.32;
}

.dir-sublist {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 6px;
  border-left: 2px solid var(--gold-bright);
}
.dir-sublist li {
  font-size: 0.71rem;
  color: #e2e8f0;
  background: rgba(245, 158, 11, 0.1);
  padding: 5px 8px;
  border-radius: 6px;
}
.dir-sublist strong {
  display: inline;
  color: var(--gold-bright);
  font-size: 0.72rem;
}

.compact-dir-list > li {
  padding: 5px 9px;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.compact-dir-list strong {
  display: inline;
  font-size: 0.75rem;
  color: #fff;
}

.dir-subpill {
  margin-top: 4px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-emerald);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.68rem;
  color: #e2e8f0;
}
.dir-subpill strong {
  display: inline;
  color: var(--emerald-bright);
  font-size: 0.69rem;
}

.compact-closing {
  margin-top: 12px;
  padding: 11px 18px;
}
.compact-closing h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Responsive Fallback for smaller tablets/phones */
@media (max-width: 1024px) {
  body.mode-deck {
    overflow: auto;
    height: auto;
  }
  body.mode-deck .presentation-container {
    height: auto;
    padding: 72px 14px 80px;
  }
  body.mode-deck .stage-16x9,
  body.mode-scroll .slide {
    width: 100%;
    aspect-ratio: auto;
    max-height: none;
  }
  .hero-layout,
  .comparison-grid,
  .role-content-grid,
  .gate-demo-grid,
  .ai-demo-layout,
  .calculators-grid,
  .trust-pillars-grid,
  .directory-grid-3 {
    grid-template-columns: 1fr;
  }
  .forms-grid,
  .modules-showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
  .role-selector {
    grid-template-columns: repeat(3, 1fr);
  }
  .slide-dots {
    display: none;
  }
}
