/* ===================================================================
   ULTRA-PREMIUM DESIGN SYSTEM: VỘI VÀNG & TỪ ẤY (CANVA / PPTX ELITE)
   =================================================================== */

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

:root {
  /* Rich Deep Cinema Palette */
  --bg-dark: #0f1c21;
  --bg-dark-surface: #15272e;
  --bg-dark-card: #1c323b;
  --bg-light: #f7f4ed;
  --bg-light-cream: #faf7f2;
  --card-light: #ffffff;
  --card-light-alt: #f3efe6;

  --accent-terra: #c25227;
  --accent-orange: #ea580c;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --accent-teal: #0f766e;
  --accent-teal-dark: #0d3b45;
  --accent-blue: #0284c7;
  --accent-blue-light: #e0f2fe;

  --text-dark-primary: #182422;
  --text-dark-secondary: #435250;
  --text-dark-muted: #6e7e7b;

  --text-light-primary: #fcfbfa;
  --text-light-secondary: #cbd5e1;
  --text-light-muted: #94a3b8;

  --border-light: #e4dccf;
  --border-subtle: rgba(0, 0, 0, 0.08);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-quote: 'Lora', Georgia, serif;
  --font-display: 'Cinzel', serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.14);
  --shadow-glow-gold: 0 0 24px rgba(245, 158, 11, 0.35);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b1518;
  color: var(--text-dark-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================= APP CONTAINER ================= */
.app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ================= TOP HEADER BAR ================= */
.top-bar {
  height: 52px;
  background: rgba(15, 28, 33, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  user-select: none;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.badge-tag {
  background: linear-gradient(135deg, var(--accent-orange), #f97316);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
  flex-shrink: 0;
}

.presentation-title {
  color: var(--text-light-primary);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presentation-subtitle {
  color: #94a3b8;
  font-size: 12.5px;
  margin-left: 2px;
  white-space: nowrap;
}

@media (max-width: 1300px) {
  .presentation-subtitle {
    display: none;
  }
}

.top-bar-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 20px;
  color: var(--text-light-primary);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-counter .current-page {
  color: #fb923c;
  font-weight: 800;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light-primary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-icon.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

.btn-pill {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-pill:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.5);
  transform: translateY(-1px);
}

.btn-pill-orange {
  background: linear-gradient(135deg, var(--accent-orange), #d97706);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
}

.btn-pill-orange:hover {
  background: linear-gradient(135deg, #f97316, var(--accent-orange));
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.55);
}

/* ================= SLIDE STAGE / VIEWPORT ================= */
.slide-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, #172a31 0%, #0a1317 100%);
  width: 100%;
  height: 100%;
}

.presentation-viewport {
  width: 1280px;
  height: 720px;
  min-width: 1280px;
  min-height: 720px;
  max-width: 1280px;
  max-height: 720px;
  position: relative;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.12s ease-out;
}

.slides-deck {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1600px;
  perspective-origin: center center;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(85px, 0, -60px) rotateY(-4.5deg) scale(0.965);
  filter: blur(4px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.55s;
  display: flex;
  flex-direction: column;
  padding: 34px 44px 26px 44px;
  background-color: var(--bg-light);
  overflow: hidden;
  user-select: text;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
  filter: blur(0px);
  z-index: 2;
}

.slide.prev {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-85px, 0, -60px) rotateY(4.5deg) scale(0.965);
  filter: blur(4px);
}

/* Cinema Staggered Element Entrance on Active Slide */
.slide.active .slide-meta-tag {
  animation: slideFadeDown 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide.active .slide-title-primary {
  animation: slideFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both;
}

.slide.active .title-underline {
  animation: expandUnderline 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.slide.active .cover-left,
.slide.active .agenda-pill-card,
.slide.active .poem-card,
.slide.active .matrix-card,
.slide.active .critic-card,
.slide.active .qa-card,
.slide.active .deep-dive-card,
.slide.active .comparison-card,
.slide.active .quiz-container,
.slide.active .cover-right {
  animation: slideCardEntrance 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

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

@keyframes slideFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandUnderline {
  from { opacity: 0; width: 0; }
  to { opacity: 1; width: 68px; }
}

@keyframes slideCardEntrance {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= SLIDE HEADER & METADATA ================= */
.slide-meta-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-terra);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-title-primary {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.18;
  color: var(--accent-teal-dark);
  text-transform: uppercase;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.title-underline {
  width: 65px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-terra), var(--accent-orange));
  border-radius: 2px;
  margin-bottom: 14px;
}

.slide-footer-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.slide-footer-meta .page-indicator {
  color: var(--accent-teal-dark);
  font-weight: 800;
}

/* ================= SLIDE 1: COVER (CINEMATIC DUAL ART) ================= */
.slide.slide-cover {
  background: linear-gradient(135deg, #0e1a1e 0%, #152930 100%);
  color: var(--text-light-primary);
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 32px;
  padding: 42px 48px;
  align-items: center;
}

.cover-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(234, 88, 12, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.45);
  color: #ff9d76;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  width: fit-content;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.cover-subtitle-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent-orange);
  padding: 12px 18px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 18px;
}

.cover-subtitle {
  font-size: 18px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.cover-tagline {
  font-size: 13.5px;
  font-family: var(--font-quote);
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.5;
}

.cover-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

.cover-meta strong {
  color: #f8fafc;
}

.cover-right {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.cover-showcase-frame {
  width: 100%;
  height: 410px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 32px rgba(234, 88, 12, 0.35);
  border: 2px solid rgba(234, 88, 12, 0.55);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cover-showcase-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.75), 0 0 40px rgba(234, 88, 12, 0.48);
}

.cover-showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-showcase-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(8, 17, 20, 0.95) 0%, rgba(8, 17, 20, 0.72) 70%, transparent 100%);
  padding: 14px 18px 10px 18px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.cover-showcase-badge span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: #fdba74;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.dual-portrait-frame {
  height: 380px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dual-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dual-portrait-badge {
  position: absolute;
  bottom: 10px;
  left: 8px;
  right: 8px;
  background: rgba(15, 28, 33, 0.88);
  backdrop-filter: blur(8px);
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-name {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 800;
  color: #fdba74;
}

.badge-poem {
  font-size: 10px;
  color: #e2e8f0;
  margin-top: 2px;
}

/* ================= SLIDE 2: AGENDA (LỘ TRÌNH 5 PHẦN) ================= */
.agenda-5-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.agenda-pill-card {
  background: var(--card-light);
  border-radius: 12px;
  padding: 12px 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
}

.agenda-pill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-orange);
}

.agenda-pill-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.agenda-pill-card:nth-child(1) .agenda-pill-num {
  background: var(--accent-teal-dark);
}

.agenda-pill-card:nth-child(2) .agenda-pill-num {
  background: var(--accent-orange);
}

.agenda-pill-card:nth-child(3) .agenda-pill-num {
  background: var(--accent-blue);
}

.agenda-pill-card:nth-child(4) .agenda-pill-num {
  background: var(--accent-gold);
}

.agenda-pill-card:nth-child(5) .agenda-pill-num {
  background: #8b5cf6;
}

.agenda-pill-card h3 {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent-teal-dark);
  margin-bottom: 5px;
}

.agenda-pill-card p {
  font-size: 11.5px;
  color: var(--text-dark-secondary);
  line-height: 1.45;
}

/* ================= SLIDE 2 ARTWORK SHOWCASE ================= */
.slide-art-showcase-box {
  position: relative;
  width: 100%;
  height: 195px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  border: 1.5px solid var(--border-light);
  margin-top: 12px;
  margin-bottom: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-art-showcase-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.slide-art-showcase-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

.slide-art-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(13, 24, 29, 0.94) 0%, rgba(13, 24, 29, 0.65) 75%, transparent 100%);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.slide-art-overlay strong {
  color: #fdba74;
}

.art-sep {
  color: rgba(255, 255, 255, 0.4);
}

/* ================= SLIDE 3 & 4: DEDICATED AUTHOR PROFILES ================= */
.author-profile-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.author-big-portrait {
  height: 410px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.author-big-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.author-quote-banner {
  background: var(--card-light);
  border-left: 4px solid var(--accent-orange);
  padding: 13px 18px;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-quote);
  font-size: 14.5px;
  font-style: italic;
  color: #1e293b;
  box-shadow: var(--shadow-sm);
  line-height: 1.6;
}

.author-trait-box {
  background: var(--card-light);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.author-trait-box h4 {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--accent-teal-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-trait-box ul {
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-dark-secondary);
  line-height: 1.65;
}

/* ================= SLIDE 5: POEM EXCERPTS ================= */
.poem-dual-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  flex: 1;
  margin-bottom: 10px;
}

.poem-glass-card {
  background: var(--card-light);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.poem-glass-card.card-xd {
  border-color: #ea580c;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.poem-glass-card.card-th {
  border-color: #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.poem-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.poem-card-title {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-xd .poem-card-title {
  color: #c2410c;
}

.card-th .poem-card-title {
  color: #0369a1;
}

.poem-verse-body {
  font-family: var(--font-quote);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #1e293b;
  white-space: pre-line;
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.poem-verse-body::-webkit-scrollbar {
  width: 5px;
}

.poem-verse-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
}

/* ================= SLIDE 6: CONTEXT ================= */
.historical-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}

.matrix-card {
  background: var(--card-light);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matrix-card.card-crisis {
  border-top: 5px solid #dc2626;
}

.matrix-card.card-solutions {
  border-top: 5px solid var(--accent-teal);
}

.matrix-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-teal-dark);
}

.matrix-card p,
.matrix-card ul {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.65;
}

.matrix-card ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ================= DEEP ANALYSIS SLIDES (7 to 12) ================= */
.stanza-analysis-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.stanza-quote-box {
  background: var(--card-light);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 2px solid #ea580c;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stanza-quote-box.box-th {
  border-color: #0284c7;
}

.stanza-quote-text {
  font-family: var(--font-quote);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: #1e293b;
  white-space: pre-line;
}

.stanza-quote-badge {
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
  text-transform: uppercase;
}

.box-th .stanza-quote-badge {
  color: #0284c7;
}

.stanza-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-card {
  background: var(--card-light);
  border-radius: 12px;
  padding: 13px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-orange);
}

.breakdown-card.card-blue {
  border-left-color: #0284c7;
}

.breakdown-card h4 {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--accent-teal-dark);
  margin-bottom: 4px;
}

.breakdown-card p {
  font-size: 13.8px;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

/* ================= COMPARISON SLIDES (13 to 16) ================= */
.comp-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 12px;
}

.comp-column-card {
  background: var(--card-light);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid #ea580c;
  display: flex;
  flex-direction: column;
}

.comp-column-card.card-th {
  border-left-color: #0284c7;
}

.comp-column-card h3 {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--accent-teal-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.comp-column-card ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.8px;
  color: var(--text-dark-secondary);
  line-height: 1.65;
}

.comp-callout {
  background: var(--card-light-alt);
  border-radius: 10px;
  padding: 11px 18px;
  text-align: center;
  font-size: 13.8px;
  font-weight: 600;
  color: var(--accent-teal-dark);
  border: 1px solid var(--border-light);
}

.comp-callout strong {
  color: var(--accent-orange);
}

/* ================= SLIDE 17: EVIDENCE TABLE ================= */
.evidence-table-frame {
  background: var(--card-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-top: 4px;
}

.evidence-table-deluxe {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.evidence-table-deluxe th {
  background: var(--accent-teal-dark);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: left;
  font-size: 13.5px;
}

.evidence-table-deluxe td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  color: var(--text-dark-secondary);
}

.evidence-table-deluxe tr:nth-child(even) td {
  background: var(--bg-light-cream);
}

/* ================= SLIDE 19: CRITIC QUOTES ================= */
.critics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.critic-card {
  background: var(--card-light);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.critic-quote {
  font-family: var(--font-quote);
  font-size: 14.8px;
  font-style: italic;
  line-height: 1.65;
  color: #1e293b;
  margin-bottom: 12px;
}

.critic-author {
  font-size: 12.8px;
  font-weight: 800;
  color: var(--accent-terra);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 8px;
}

/* ================= SLIDE 21: MINIGAME INTERACTIVE QUIZ ================= */
/* ================= SLIDE 21: MINIGAME INTERACTIVE QUIZ (6 CÂU HỎI CHUYÊN SÂU) ================= */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  flex: 1;
}

/* Quiz Top Control Bar */
.quiz-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}

.quiz-step-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-step-btn {
  background: var(--bg-light-cream);
  border: 1.5px solid var(--border-light);
  color: var(--text-dark-secondary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}

.quiz-step-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.quiz-step-btn.active {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.quiz-step-btn.answered-correct {
  border-color: #16a34a;
  background: #dcfce7;
  color: #15803d;
}

.quiz-step-btn.answered-wrong {
  border-color: #dc2626;
  background: #fee2e2;
  color: #b91c1c;
}

.quiz-score-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-counter {
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #99f6e4;
}

.btn-quiz-reset {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-quiz-reset:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Quiz Question Card */
.quiz-question-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
  border-left: 6px solid #ea580c;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: quizCardFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quiz-question-card.active {
  display: flex;
}

@keyframes quizCardFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-q-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ea580c;
  letter-spacing: 1px;
}

.quiz-q-title {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 800;
  color: #0d3b45;
  line-height: 1.45;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.quiz-btn {
  background: #faf7f2;
  border: 1.5px solid #e4dccf;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-dark-primary);
  font-family: var(--font-sans);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.quiz-btn .opt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 800;
  font-size: 11.5px;
  flex-shrink: 0;
  color: #475569;
}

.quiz-btn:hover:not(:disabled) {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

.quiz-btn.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.quiz-btn.correct .opt-badge {
  background: #10b981;
  color: #ffffff;
}

.quiz-btn.wrong {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.quiz-btn.wrong .opt-badge {
  background: #ef4444;
  color: #ffffff;
}

.quiz-feedback-box {
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-feedback-box.correct {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.quiz-feedback-box.wrong {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.quiz-feedback-box strong {
  font-size: 13px;
}

.quiz-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.quiz-hint-text {
  font-size: 11.5px;
  color: #64748b;
  font-style: italic;
}

.btn-quiz-next {
  background: #0f766e;
  color: #ffffff;
  border: none;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-quiz-next:hover {
  background: #115e59;
  transform: translateX(2px);
}

/* Victory Banner when all 6 completed */
.quiz-victory-banner {
  background: linear-gradient(135deg, #134e4a 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(13, 78, 74, 0.35);
  display: none;
  animation: quizCardFade 0.4s ease;
}

.quiz-victory-banner h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: #fde047;
  margin-bottom: 4px;
}

.quiz-victory-banner p {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.45;
}

/* ================= SLIDE 22: CONCLUSION & VIDEO PLAYER ================= */
.slide.slide-conclusion {
  background: linear-gradient(135deg, #0e1a1e 0%, #152930 100%);
  color: #fff;
  position: relative;
}

.conclusion-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slide-conclusion .slide-meta-tag {
  color: #fb923c;
}

.slide-conclusion .slide-title-primary {
  color: #ffffff;
}

.slide-conclusion .title-underline {
  background: #ea580c;
}

.btn-launch-video {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.45);
  transition: all var(--transition-fast);
}

.btn-launch-video:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6);
}

.btn-launch-video.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45);
}

.slide-22-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.qa-discuss-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
  height: 100%;
}

.discuss-questions-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.discuss-q-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid #ea580c;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.discuss-q-item h4 {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: #fdba74;
  margin-bottom: 6px;
}

.discuss-q-item p {
  font-size: 14.5px;
  color: #e2e8f0;
  line-height: 1.65;
}

/* Right Column: Thanks Card on Top + Video Preview Directly Below */
.discuss-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  height: 100%;
}

.discuss-thanks-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  flex-shrink: 0;
}

.thanks-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.thanks-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.thanks-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
}

/* Inline Video Preview Card Directly Below Thanks Card */
.slide-video-card {
  background: #081114;
  border: 1.5px solid rgba(234, 88, 12, 0.45);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(234, 88, 12, 0.2);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  flex: 1;
  min-height: 200px;
}

.slide-video-card:hover {
  border-color: #ea580c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 25px rgba(234, 88, 12, 0.35);
}

.video-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(15, 28, 33, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fdba74;
}

.video-title-wrap svg {
  color: #ea580c;
  flex-shrink: 0;
}

.video-card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-vid-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-vid-control:hover {
  background: rgba(234, 88, 12, 0.3);
  border-color: #ea580c;
  color: #fdba74;
}

.btn-vid-control.active {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.video-media-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.video-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  outline: none;
}

/* Expanded Cinema Mode for Slide Video */
.slide-video-card.expanded {
  position: fixed;
  inset: 30px;
  max-width: 1100px;
  max-height: 86vh;
  margin: auto;
  z-index: 999;
  border: 2px solid #ea580c;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.9), 0 25px 60px rgba(0, 0, 0, 0.95);
  animation: popVideo 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes popVideo {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.slide-video-card.expanded .video-media-wrap {
  flex: 1;
  height: calc(100% - 42px);
}

.slide-conclusion .slide-footer-meta {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.slide-conclusion .slide-footer-meta .page-indicator {
  color: #fdba74;
}

/* ================= LASER POINTER & PRESENTATION TIMER ================= */
.laser-pointer-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff0044;
  box-shadow: 0 0 16px 6px rgba(255, 0, 68, 0.8), 0 0 30px 10px rgba(255, 100, 100, 0.4);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
  transition: width 0.1s ease, height 0.1s ease;
}

body.laser-active .laser-pointer-dot {
  display: block;
}

body.laser-active,
body.laser-active * {
  cursor: none !important;
}

.presentation-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  color: #f8fafc;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.timer-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ================= BOTTOM CONTROL DOCK ================= */
.bottom-dock {
  height: 56px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 28, 33, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 90;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dock-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.dock-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dock-center {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, #ea580c, #f59e0b);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================= SPEAKER NOTES & THUMBNAILS ================= */
.notes-drawer {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  height: 240px;
  background: rgba(13, 24, 29, 0.98);
  backdrop-filter: blur(16px);
  border-top: 2px solid var(--accent-orange);
  z-index: 95;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.6);
}

.notes-drawer.open {
  transform: translateY(0);
}

.notes-header {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notes-title {
  color: #fdba74;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notes-body {
  flex: 1;
  padding: 16px 24px;
  overflow-y: auto;
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.7;
}

.notes-body strong {
  color: #ffedd5;
}

.notes-body em {
  color: #fde047;
}



/* ================= MODAL OVERVIEWS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

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

.modal-content {
  background: #112228;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 92vw;
  max-width: 1150px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.modal-header {
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
}

.modal-grid-view {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.modal-slide-card {
  aspect-ratio: 16 / 9;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.modal-slide-card:hover {
  transform: scale(1.03);
  border-color: #38bdf8;
}

.modal-slide-card.active {
  border-color: #ea580c;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.5);
}

.modal-slide-card .m-num {
  font-size: 10px;
  font-weight: 800;
  color: #ea580c;
  margin-bottom: 4px;
}

.modal-slide-card .m-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

/* Shortcuts */
.shortcut-modal-content {
  max-width: 600px;
  background: #162a32;
  color: #fff;
}

.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 26px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  font-size: 13.5px;
}

.key-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  color: #fdba74;
}

/* Fullscreen - PURE CINEMA SLIDE ONLY (ẨN HOÀN TOÀN THANH CÔNG CỤ & TRƯỚC/SAU) */
body.is-fullscreen .top-bar,
body.is-fullscreen .bottom-dock,
:fullscreen .top-bar,
:fullscreen .bottom-dock,
:-webkit-full-screen .top-bar,
:-webkit-full-screen .bottom-dock {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.is-fullscreen .slide-stage,
:fullscreen .slide-stage,
:-webkit-full-screen .slide-stage {
  padding: 0 !important;
  background: #000000 !important;
  width: 100vw !important;
  height: 100vh !important;
}

body.is-fullscreen .presentation-viewport,
:fullscreen .presentation-viewport,
:-webkit-full-screen .presentation-viewport {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

body.is-fullscreen .slide,
:fullscreen .slide,
:-webkit-full-screen .slide {
  border-radius: 0 !important;
  padding: 40px 60px 30px 60px !important;
}

/* Print */
@media print {

  html,
  body {
    width: 100%;
    height: auto;
    overflow: visible;
    background: #ffffff !important;
  }

  .top-bar,
  .bottom-dock,
  .notes-drawer,
  .thumbnails-drawer,
  .modal-overlay {
    display: none !important;
  }

  .slide-stage {
    padding: 0 !important;
    background: none !important;
    overflow: visible !important;
    display: block !important;
  }

  .presentation-viewport {
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .slides-deck {
    height: auto !important;
  }

  .slide {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100vh !important;
    page-break-after: always !important;
    break-after: page !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ================= COOL PRESENTATION UPGRADES ================= */
.btn-pill-word {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35) !important;
  font-weight: 700 !important;
}

.btn-pill-word:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5) !important;
}

.presentation-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  color: #38bdf8;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.presentation-timer-badge:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.presentation-timer-badge.warning {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.15);
}

.laser-pointer-dot {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff0044;
  box-shadow: 0 0 14px 4px rgba(255, 0, 68, 0.95), 0 0 28px 8px rgba(255, 0, 68, 0.6);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  display: none;
  transition: opacity 0.05s ease;
}

.laser-pointer-dot.active {
  display: block;
}

.laser-pointer-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px #ffffff;
}

body.laser-active,
body.laser-active * {
  cursor: none !important;
}

#btnLaser.active {
  background: rgba(255, 0, 68, 0.25);
  border-color: #ff0044;
  color: #ff4d6d;
  box-shadow: 0 0 10px rgba(255, 0, 68, 0.4);
}

/* ================= PRESENTATION FULLSCREEN MODE ================= */
/* Completely hides top-bar ("Chuyên đề ngữ văn 11/12...") and bottom-dock ("Trước / Sau...")
   so only the clean presentation slide is displayed */

body.is-fullscreen #topBar,
body.is-fullscreen .top-bar,
:fullscreen #topBar,
:fullscreen .top-bar,
:-webkit-full-screen #topBar,
:-webkit-full-screen .top-bar,
body.is-fullscreen #bottomDock,
body.is-fullscreen .bottom-dock,
:fullscreen #bottomDock,
:fullscreen .bottom-dock,
:-webkit-full-screen #bottomDock,
:-webkit-full-screen .bottom-dock,
body.is-fullscreen .notes-drawer,
:fullscreen .notes-drawer {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

body.is-fullscreen .slide-stage,
:fullscreen .slide-stage,
:-webkit-full-screen .slide-stage {
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: #000000 !important;
}

body.is-fullscreen .presentation-viewport,
:fullscreen .presentation-viewport,
:-webkit-full-screen .presentation-viewport {
  width: 1280px !important;
  height: 720px !important;
  min-width: 1280px !important;
  min-height: 720px !important;
  max-width: 1280px !important;
  max-height: 720px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Browser F11 Native Display-Mode Fullscreen */
@media (display-mode: fullscreen) {
  #topBar,
  .top-bar,
  #bottomDock,
  .bottom-dock,
  .notes-drawer {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
  }

  .slide-stage {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
  }

  .presentation-viewport {
    width: 1280px !important;
    height: 720px !important;
    min-width: 1280px !important;
    min-height: 720px !important;
    max-width: 1280px !important;
    max-height: 720px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .fs-floating-overlay {
    display: block !important;
  }
}

/* Fullscreen Floating Navigation Controls */
.fs-floating-overlay {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

body.is-fullscreen .fs-floating-overlay,
:fullscreen .fs-floating-overlay,
:-webkit-full-screen .fs-floating-overlay {
  display: block;
}

.fs-btn-exit {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(15, 28, 33, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.2;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.fs-btn-exit:hover {
  opacity: 1;
  background: rgba(220, 38, 38, 0.9);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(1px);
}

.fs-key-hint {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-family: monospace;
}

.fs-btn-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 80px;
  background: rgba(15, 28, 33, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.15;
  transition: all 0.25s ease;
  z-index: 9999;
}

.fs-btn-prev {
  left: 10px;
  border-radius: 12px;
}

.fs-btn-next {
  right: 10px;
  border-radius: 12px;
}

.fs-btn-arrow:hover {
  opacity: 0.95;
  background: rgba(234, 88, 12, 0.88);
  border-color: #ea580c;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.5);
}