/* ==========================================================================
   AI FOR PARENTS - Style System
   Warm, Friendly, Modern, Human-Centered Presentation Deck
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Warm Color Palette */
  --bg-main: #FAF7F2;
  --bg-gradient: radial-gradient(circle at 10% 10%, #FFFDF9 0%, #F6EFE5 100%);
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #FFFFFF;
  --bg-card-subtle: #F5EFE6;
  --bg-drawer: #FFFFFF;

  /* Accents */
  --primary: #F05A28;
  --primary-light: #FFECE5;
  --primary-dark: #D44214;
  --primary-gradient: linear-gradient(135deg, #F05A28 0%, #FB923C 100%);
  
  --secondary: #0D9488;
  --secondary-light: #E6F7F5;
  --secondary-gradient: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);

  --amber: #D97706;
  --amber-light: #FEF3C7;
  
  --indigo: #4F46E5;
  --indigo-light: #EEF2FF;
  
  --rose: #E11D48;
  --rose-light: #FFE4E6;

  --emerald: #10B981;
  --emerald-light: #D1FAE5;

  /* Typography */
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-light: rgba(226, 214, 197, 0.8);
  --border-focus: #F05A28;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 20, 10, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(45, 25, 10, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(45, 25, 10, 0.12);
  --shadow-warm: 0 12px 32px rgba(240, 90, 40, 0.12);

  /* Geometry */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Dimensions */
  --slide-width: 1400px;
  --slide-height: 787.5px; /* 16:9 ratio */
  --hud-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #12151B;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Presentation Viewport Container */
.presentation-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111418;
  overflow: hidden;
}

/* Top Global Progress Bar */
.top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.top-progress-fill {
  height: 100%;
  width: 4.54%;
  background: var(--primary-gradient);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main 16:9 Slide Stage */
.slide-stage {
  position: relative;
  width: var(--slide-width);
  height: var(--slide-height);
  background: var(--bg-gradient);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

/* Slide Element Container */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 48px 64px 80px 64px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  transform: translateY(12px) scale(0.99);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 10;
}

/* Slide Header & Metadata */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.05);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.slide-title-wrap {
  margin-bottom: 24px;
}

.slide-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.slide-title span.highlight {
  color: var(--primary);
  background: linear-gradient(120deg, rgba(240, 90, 40, 0.12) 0%, rgba(240, 90, 40, 0.02) 100%);
  padding: 0 6px;
  border-radius: 6px;
}

.slide-subtitle {
  margin-top: 8px;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

/* Slide Content Area */
.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   UI Components & Cards
   ========================================================================== */

/* Grid Cards */
.cards-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(240, 90, 40, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: var(--primary-light);
  color: var(--primary);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}
.pill-primary { background: var(--primary-light); color: var(--primary-dark); }
.pill-teal { background: var(--secondary-light); color: var(--secondary); }
.pill-amber { background: var(--amber-light); color: var(--amber); }
.pill-rose { background: var(--rose-light); color: var(--rose); }
.pill-indigo { background: var(--indigo-light); color: var(--indigo); }

/* Highlight Box / Banner */
.highlight-box {
  background: #FFF9F5;
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.highlight-box-quote {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

/* Interactive Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(240, 90, 40, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 90, 40, 0.45);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   Interactive Slide Special Widgets
   ========================================================================== */

/* Slide 1 Cover Design */
.cover-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  height: 100%;
}

.cover-badge-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.cover-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.cover-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-subtitle {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

.cover-goals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.cover-goal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.cover-goal-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.cover-visual-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.cover-family-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-bottom: 20px;
}

/* Slide 2 Polling Component */
.poll-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.poll-option {
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poll-option:hover {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: var(--shadow-warm);
}

.poll-option.selected {
  border-color: var(--primary);
  background: #FFF8F5;
}

.poll-option-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  z-index: 2;
}

.poll-emoji {
  font-size: 2.2rem;
}

.poll-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.poll-bar-container {
  width: 100%;
  height: 12px;
  background: #EDE4D8;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 12px;
  z-index: 2;
}

.poll-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
}

/* Slide 3 Timeline */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 20px;
}

.timeline-step {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.timeline-step.active-step {
  border: 2px solid var(--primary);
  background: #FFFBF8;
  box-shadow: var(--shadow-warm);
}

.timeline-era {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-action {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Slide 4 Diagram (Input -> AI -> Output) */
.flow-diagram {
  display: grid;
  grid-template-columns: 1fr 60px 1.2fr 60px 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.flow-node {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.flow-node.center-node {
  background: linear-gradient(135deg, #FFF6F0 0%, #FFF 100%);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-warm);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: bold;
}

/* Slide 5 Comparison Side by Side */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 16px 0;
}

.comp-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.comp-box.ai-highlight {
  border-color: var(--primary);
  background: #FFFDFB;
  box-shadow: var(--shadow-warm);
}

.comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
}

.comp-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.05rem;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
}

/* Slide 8 Step Diagram */
.learning-loop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  position: relative;
}

.loop-step {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.loop-step.highlight-step {
  border-color: var(--secondary);
  background: var(--secondary-light);
  transform: translateY(-4px);
}

.loop-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 auto 12px auto;
}

.loop-step-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Slide 9 & 10 Prompt Builder & Comparison */
.prompt-diff-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  margin: 16px 0;
}

.prompt-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1.5px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: relative;
}

.prompt-card.bad {
  border-left: 6px solid #EF4444;
}

.prompt-card.good {
  border-left: 6px solid #10B981;
  background: #F8FDF9;
}

.prompt-badge {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prompt-badge.bad-text { color: #DC2626; }
.prompt-badge.good-text { color: #059669; }

.prompt-code-area {
  background: #2A303C;
  color: #F8FAFC;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 12px 0;
  position: relative;
  white-space: pre-wrap;
}

.prompt-card.good .prompt-code-area {
  background: #1A2E26;
  border: 1px solid #34D399;
}

/* Master Prompt & Live Practice Component */
.master-prompt-container {
  background: #FFFFFF;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: var(--shadow-warm);
  position: relative;
  margin: 10px 0;
}

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

.master-prompt-body {
  background: #FFFDF9;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  font-family: inherit;
}

.prompt-fillable {
  background: #FFE8DF;
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}

/* Countdown Timer Widget */
.timer-widget {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
}

.timer-display-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.timer-digits {
  font-family: 'Outfit', monospace;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FF7A45;
  text-shadow: 0 0 16px rgba(255, 122, 69, 0.4);
}

.timer-status-text {
  font-size: 0.95rem;
  color: #94A3B8;
  font-weight: 600;
}

.timer-controls {
  display: flex;
  gap: 12px;
}

.btn-timer {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-timer:hover {
  background: #F05A28;
  border-color: #F05A28;
}

/* Slide 17 Shields */
.shield-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.shield-card {
  background: #FFFFFF;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.shield-card:hover {
  transform: translateY(-4px);
  border-color: #EF4444;
}

.shield-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #FEE2E2;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.shield-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #991B1B;
  margin-bottom: 6px;
}

.shield-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Slide 20 Family AI Rules Poster */
.rules-poster-card {
  background: #FFFFFF;
  border: 3px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.poster-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #E2E8F0;
}

.poster-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.poster-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.poster-item {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.poster-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Slide 21 7-Day Challenge Checklist */
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.challenge-item {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.challenge-item:hover {
  border-color: var(--primary);
  background: #FFFDFB;
}

.challenge-item.completed {
  border-color: var(--emerald);
  background: #F0FDF4;
}

.challenge-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.challenge-item.completed .challenge-checkbox {
  background: var(--emerald);
  border-color: var(--emerald);
}

.challenge-day {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}

.challenge-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Slide 22 Closing CTA */
.closing-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  height: 100%;
}

.closing-quote-box {
  background: #FFFFFF;
  border-left: 6px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 28px 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.closing-quote-text {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 12px;
}

.qr-card-container {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-placeholder-box {
  width: 180px;
  height: 180px;
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  padding: 12px;
}

/* ==========================================================================
   Presentation Bottom HUD Navigation Bar
   ========================================================================== */
.presentation-hud {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  height: var(--hud-height);
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hud-btn {
  background: transparent;
  color: #E2E8F0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transform: scale(1.08);
}

.hud-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

.hud-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.hud-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  padding: 0 8px;
  white-space: nowrap;
}

.hud-section-title {
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Speaker Notes Side Drawer
   ========================================================================== */
.speaker-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  height: 100vh;
  background: var(--bg-drawer);
  border-left: 1px solid var(--border-light);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.speaker-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF7F2;
}

.drawer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.note-card {
  background: #FAF7F2;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
}

.note-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

.note-list {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* ==========================================================================
   Slide Overview Grid Modal
   ========================================================================== */
.grid-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.grid-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.grid-modal-container {
  width: 90%;
  max-width: 1300px;
  height: 85vh;
  background: #1E293B;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.grid-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.grid-thumbnails-wrap {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-right: 8px;
}

.thumbnail-card {
  background: #334155;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  color: #FFFFFF;
}

.thumbnail-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  background: #475569;
}

.thumbnail-card.active {
  border-color: var(--primary);
  background: rgba(240, 90, 40, 0.2);
}

.thumb-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
}

.thumb-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 6px 0;
  line-height: 1.3;
}

.thumb-section {
  font-size: 0.75rem;
  color: #94A3B8;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1E293B;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Keyboard Help Modal */
.help-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  z-index: 3500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.help-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.help-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.key-badge {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   Mobile & Responsive Adjustments
   ========================================================================== */
@media (max-width: 900px) {
  .speaker-drawer {
    width: 100vw;
  }
  .grid-thumbnails-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .presentation-hud {
    padding: 0 12px;
    gap: 8px;
    height: 52px;
  }
  .hud-section-title {
    display: none;
  }
}

