/* ═══════════════════════════════════════════════════════════════
   PJPK KP2027 — Zero-Scroll, Auto-Fit Layout
   Everything lives inside 100dvh. No overflow. No scroll.
   All sizes are fluid via clamp() and vh units.
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── Variables ─── */
:root {
  --blue:        #2563EA;
  --blue-dark:   #1d4ed8;
  --blue-deeper: #1e3a8a;
  --blue-light:  #EFF6FF;
  --blue-mid:    #DBEAFE;
  --gold:        #F59E0B;
  --gold-light:  #FEF3C7;
  --green:       #10B981;
  --green-light: #D1FAE5;
  --red:         #EF4444;
  --red-light:   #FEE2E2;
  --purple:      #7C3AED;
  --purple-light:#F5F3FF;
  --slate-900:   #0f172a;
  --slate-800:   #1e293b;
  --slate-700:   #334155;
  --slate-600:   #475569;
  --slate-400:   #94a3b8;
  --slate-200:   #e2e8f0;
  --slate-100:   #f1f5f9;
  --slate-50:    #f8fafc;
  --white:       #ffffff;
  --r-sm:        6px;
  --r-md:        10px;
  --r-lg:        14px;
  --r-xl:        20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow-md:   0 3px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.10);
  --shadow-blue: 0 4px 16px rgba(37,99,234,.22);
  --font:        'Plus Jakarta Sans', Arial, sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout heights — computed so stage fills the rest */
  --header-h:  clamp(62px, 9vh, 82px);
  --footer-h:  clamp(54px, 8vh, 68px);
  --stage-h:   calc(100dvh - var(--header-h) - var(--footer-h));
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: #0a0f1e;
  color: var(--slate-800);
  height: 100dvh;
  overflow: hidden; /* ← NO BODY SCROLL EVER */
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(37,99,234,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(124,58,237,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0a0f1e 0%, #0d1b3e 50%, #0a0f1e 100%);
  z-index: -1;
}

/* ═══════════════════════════════════════════════
   APP WRAPPER — fills 100dvh exactly
   ═══════════════════════════════════════════════ */
.app-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  height: 100dvh;        /* ← EXACT viewport height */
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 0 60px rgba(37,99,234,0.15), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;      /* ← NO WRAPPER SCROLL */
}

/* ═══════════════════════════════════════════════
   HEADER — fixed height
   ═══════════════════════════════════════════════ */
.app-header {
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563EA 55%, #3b82f6 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.app-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.app-header::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px,1.2vh,12px) clamp(12px,2vw,20px) 0;
  flex: 1;
  position: relative;
  z-index: 1;
}
.header-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.header-right { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }

/* Jata Negara in header */
.header-jata {
  height: clamp(34px, 5.5vh, 52px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
}
/* Keep kpm-badge rule for backward compat (hidden now) */
.kpm-badge { display: none; }

.header-title { display: flex; flex-direction: column; min-width: 0; }
.header-title__main {
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-title__sub {
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  opacity: 0.72;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header action buttons — SVG icon style */
.hdr-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-sm);
  width: clamp(28px, 3.8vh, 36px);
  height: clamp(28px, 3.8vh, 36px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .15s, box-shadow .18s;
  color: rgba(255,255,255,0.88);
  flex-shrink: 0;
}
.hdr-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hdr-btn:active { transform: scale(0.93); }
.hdr-btn--active {
  background: rgba(255,255,255,0.22);
  color: #FCD34D;
  border-color: rgba(252,211,77,0.35);
}
.hdr-btn--danger:hover {
  background: rgba(239,68,68,0.35);
  border-color: rgba(239,68,68,0.5);
  color: #fca5a5;
}
/* Progress badge */
.hdr-progress-badge {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: clamp(0.58rem, 1.2vh, 0.7rem);
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
  min-width: 34px;
  text-align: center;
  flex-shrink: 0;
}
/* Legacy icon-btn kept for any old references */
.icon-btn { display: none; }

.progress-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
  width: 0%;
  transition: width .55s var(--ease);
  position: relative;
  box-shadow: 0 0 6px rgba(59,130,246,.5);
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93c5fd;
  box-shadow: 0 0 5px rgba(147,197,253,.8);
}
.progress-label {
  position: absolute;
  right: 8px;
  top: -15px;
  font-size: 0.58rem;
  color: rgba(255,255,255,.7);
  font-weight: 700;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════
   SLIDE STAGE — fills remaining height exactly
   ═══════════════════════════════════════════════ */
.slide-stage {
  flex: 1;
  height: var(--stage-h);
  min-height: 0;
  position: relative;
  overflow: hidden;       /* ← STAGE NEVER SCROLLS */
  background: #f0f4ff;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(37,99,234,.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(124,58,237,.03) 0%, transparent 40%);
}

/* ─── Slide ─── */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  /* padding scales with viewport height */
  padding: clamp(10px,1.8vh,18px) clamp(12px,2.2vw,24px) clamp(8px,1.4vh,14px);
  overflow: hidden;      /* ← NO SCROLL IN SLIDES */
  opacity: 0;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  /* Must fill the stage when active */
  height: var(--stage-h);
  min-height: 0;
  max-height: var(--stage-h);
}

/* Slide title */
.slide-title {
  font-size: clamp(0.92rem, 2.2vh, 1.45rem);
  font-weight: 800;
  color: var(--blue-deeper);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: clamp(2px,0.4vh,5px);
  flex-shrink: 0;
  animation: slideInDown .45s var(--ease) both;
}
.slide-subtitle {
  font-size: clamp(0.68rem,1.4vh,0.82rem);
  color: var(--slate-600);
  margin-bottom: clamp(4px,0.7vh,10px);
  font-weight: 500;
  flex-shrink: 0;
  animation: fadeIn .5s .1s both;
}

/* Body fills remaining slide height */
.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.1vh, 12px);
  overflow: hidden;      /* ← NO SCROLL */
  animation: slideInUp .45s .07s var(--ease) both;
  min-height: 0;
}

/* ─── VO Box — compact ─── */
.vo-box {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: clamp(6px,1vh,10px) clamp(10px,1.5vw,14px);
  font-size: clamp(0.66rem,1.3vh,0.78rem);
  color: #1e40af;
  line-height: 1.5;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  flex-shrink: 0;
}
.vo-box__icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }

/* ─── Objective strip ─── */
.objective-strip {
  background: linear-gradient(135deg, #fffbeb, #fef9c3);
  border: 1.5px solid #fde68a;
  border-radius: var(--r-md);
  padding: clamp(5px,.9vh,9px) clamp(8px,1.2vw,12px);
  font-size: clamp(0.64rem,1.3vh,0.76rem);
  color: #78350f;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-weight: 500;
  flex-shrink: 0;
}
.objective-strip__icon { font-size: 0.8rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   INTRO SLIDE
   ═══════════════════════════════════════════════ */
.slide--intro {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 40%, #2563EA 80%, #3b82f6 100%);
  color: var(--white);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px,3vh,32px) clamp(16px,3vw,32px);
  overflow: hidden;
  position: relative;
}
.slide--intro::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: -120px; right: -80px;
  pointer-events: none;
}
.slide--intro::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.035);
  bottom: -100px; left: -60px;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  pointer-events: none;
}
@keyframes floatParticle {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-90px) rotate(360deg); opacity: 0; }
}

.intro-logo-ring {
  width: clamp(64px,9vh,84px);
  height: clamp(64px,9vh,84px);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(10px,2vh,18px);
  position: relative;
  animation: zoomIn .7s var(--ease) both;
  box-shadow: 0 0 0 7px rgba(255,255,255,0.05), 0 0 0 14px rgba(255,255,255,0.02);
}
.intro-logo-ring::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.2);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.intro-title {
  font-size: clamp(1.15rem, 3.5vh, 2.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: slideInDown .6s .1s both;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  margin-bottom: clamp(6px,1.2vh,12px);
}
.intro-sub {
  font-size: clamp(0.72rem, 1.8vh, 0.95rem);
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  line-height: 1.5;
  animation: fadeIn .6s .25s both;
  margin-bottom: clamp(10px,2vh,20px);
}
.intro-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: clamp(14px,2.5vh,24px);
  animation: fadeIn .6s .35s both;
}
.intro-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: clamp(0.62rem,1.3vh,0.74rem);
  font-weight: 600;
}
.btn-mula {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  color: #78350F;
  border: none;
  border-radius: var(--r-lg);
  padding: clamp(10px,1.8vh,14px) clamp(28px,5vw,48px);
  font-size: clamp(0.88rem,2vh,1.05rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245,158,11,.5);
  transition: transform .2s var(--ease), box-shadow .2s;
  letter-spacing: .04em;
  animation: zoomIn .6s .45s both;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}
.btn-mula::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.btn-mula:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 26px rgba(245,158,11,.55); }
.btn-mula:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════════
   CLOSING SLIDE
   ═══════════════════════════════════════════════ */
.slide--closing {
  background: linear-gradient(160deg, #064e3b 0%, #065f46 45%, #047857 100%);
  color: var(--white);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px,3vh,28px) clamp(16px,3vw,28px);
  overflow: hidden;
  position: relative;
}
.closing-title {
  font-size: clamp(1.8rem, 5.5vh, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  animation: zoomIn .7s both;
  text-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.closing-sub {
  font-size: clamp(0.76rem,1.8vh,0.98rem);
  color: rgba(255,255,255,.82);
  margin: clamp(6px,1.2vh,10px) 0 clamp(10px,2vh,18px);
  font-weight: 500;
  animation: fadeIn .6s .2s both;
  line-height: 1.55;
}
.closing-score-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-xl);
  padding: clamp(12px,2.2vh,20px) clamp(24px,4vw,36px);
  margin: 0 auto clamp(12px,2vh,18px);
  display: inline-block;
  animation: slideInUp .6s .3s both;
}
.closing-score-num {
  font-size: clamp(2.2rem,5vh,3rem);
  font-weight: 800;
  color: #FCD34D;
  line-height: 1;
  letter-spacing: -0.03em;
}
.closing-score-label {
  font-size: clamp(0.7rem,1.4vh,0.82rem);
  color: rgba(255,255,255,.7);
  margin-top: 3px;
  font-weight: 500;
}
.btn-mula-semula {
  background: var(--white);
  color: #065f46;
  border: none;
  border-radius: var(--r-lg);
  padding: clamp(10px,1.8vh,13px) clamp(24px,4vw,38px);
  font-size: clamp(0.82rem,1.8vh,0.98rem);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: zoomIn .6s .55s both;
  font-family: var(--font);
}
.btn-mula-semula:hover { transform: translateY(-2px) scale(1.03); }
.btn-mula-semula:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════════
   CARD GRIDS — auto-fit, compact heights
   ═══════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: clamp(6px,1vh,10px);
  flex-shrink: 0;
}
.card-grid--2 { grid-template-columns: repeat(2,1fr); }
.card-grid--3 { grid-template-columns: repeat(3,1fr); }
.card-grid--6 { grid-template-columns: repeat(3,1fr); }
.card-grid--7 { grid-template-columns: repeat(4,1fr); }

@media (max-width: 640px) {
  .card-grid--3, .card-grid--6 { grid-template-columns: repeat(2,1fr); }
  .card-grid--7 { grid-template-columns: repeat(2,1fr); }
  .card-grid--2 { grid-template-columns: repeat(2,1fr); }
}

.content-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: clamp(8px,1.3vh,14px) clamp(10px,1.5vw,16px);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.content-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #93c5fd; }

.content-card--clickable { cursor: pointer; }
.content-card--clickable:hover { border-color: var(--blue); box-shadow: var(--shadow-blue); }
.content-card--clickable:active { transform: scale(0.97); }
.content-card--highlighted { background: var(--blue-light); border-color: var(--blue); box-shadow: var(--shadow-blue); }

.card-num  { font-size: clamp(1.1rem,2.5vh,1.5rem); font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 2px; letter-spacing: -0.03em; }
.card-label { font-size: clamp(0.68rem,1.3vh,0.8rem); font-weight: 700; color: var(--blue-deeper); line-height: 1.3; margin-bottom: 2px; }
.card-desc  { font-size: clamp(0.62rem,1.2vh,0.73rem); color: var(--slate-600); line-height: 1.4; }
.card-icon  { font-size: clamp(1.3rem,2.6vh,1.8rem); margin-bottom: 4px; display: block; }

/* ═══════════════════════════════════════════════
   MODULE NAV CARDS (Slide 4)
   ═══════════════════════════════════════════════ */
.module-nav-card {
  border-radius: var(--r-lg);
  padding: clamp(10px,1.6vh,14px) clamp(10px,1.5vw,14px);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.module-nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.5) 0%, transparent 60%);
  pointer-events: none;
}
.module-nav-card:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }
.module-nav-card:active { transform: scale(0.97); }
.module-nav-card__icon  { font-size: clamp(1.4rem,2.8vh,1.9rem); margin-bottom: 4px; }
.module-nav-card__num   { font-size: 0.6rem; font-weight: 800; opacity: 0.55; text-transform: uppercase; letter-spacing: 0.08em; }
.module-nav-card__label { font-size: clamp(0.65rem,1.3vh,0.76rem); font-weight: 700; margin-top: 2px; line-height: 1.3; }
.module-nav-card__arrow { font-size: 0.65rem; opacity: 0.45; margin-top: 4px; }

/* ═══════════════════════════════════════════════
   DOMAIN CARDS (hover expand)
   ═══════════════════════════════════════════════ */
.domain-card {
  border-radius: var(--r-lg);
  padding: clamp(10px,1.7vh,16px) clamp(10px,1.5vw,14px);
  transition: transform .28s var(--ease), box-shadow .28s;
  border: 2px solid transparent;
  overflow: hidden;
}
.domain-card:hover { transform: translateY(-4px) scale(1.02); }
.domain-card--psikomor { background: linear-gradient(135deg,#fffbeb,#fef3c7); border-color: #fcd34d; box-shadow: 0 3px 12px rgba(245,158,11,.1); }
.domain-card--psikomor:hover { box-shadow: 0 8px 24px rgba(245,158,11,.2); }
.domain-card--kognitif  { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-color: #93c5fd; box-shadow: 0 3px 12px rgba(37,99,234,.08); }
.domain-card--kognitif:hover  { box-shadow: 0 8px 24px rgba(37,99,234,.18); }
.domain-card--afektif   { background: linear-gradient(135deg,#f0fdf4,#d1fae5); border-color: #6ee7b7; box-shadow: 0 3px 12px rgba(16,185,129,.08); }
.domain-card--afektif:hover   { box-shadow: 0 8px 24px rgba(16,185,129,.18); }
.domain-card__icon  { font-size: clamp(1.5rem,2.8vh,2rem); margin-bottom: 5px; }
.domain-card__title { font-size: clamp(0.72rem,1.5vh,0.88rem); font-weight: 800; margin-bottom: 4px; }
.domain-card__desc  { font-size: clamp(0.62rem,1.2vh,0.74rem); line-height: 1.45; color: var(--slate-700); }
.domain-card__extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, margin-top .3s;
  font-size: clamp(0.6rem,1.1vh,0.7rem);
  color: var(--slate-600);
  line-height: 1.45;
}
.domain-card:hover .domain-card__extra { max-height: 180px; margin-top: 8px; }

/* ═══════════════════════════════════════════════
   FLIP CARDS
   ═══════════════════════════════════════════════ */
.flip-card-wrap {
  perspective: 1000px;
  cursor: pointer;
  min-height: clamp(120px,18vh,160px);
}
.flip-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,.2,.2,1);
  border-radius: var(--r-lg);
  height: 100%;
}
.flip-card-wrap.flipped .flip-card { transform: rotateY(180deg); }
.flip-card__front, .flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px,2vh,20px) clamp(10px,2vw,16px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.flip-card__front {
  background: linear-gradient(135deg,var(--blue-light),var(--blue-mid));
  border: 2px solid #93c5fd;
}
.flip-card__back {
  background: linear-gradient(135deg,var(--blue-deeper),var(--blue));
  color: var(--white);
  transform: rotateY(180deg);
  border: 2px solid var(--blue);
}
.flip-hint { font-size: clamp(0.6rem,1.1vh,0.68rem); color: var(--slate-400); margin-top: 6px; letter-spacing: .04em; }

/* ═══════════════════════════════════════════════
   FITT CARDS
   ═══════════════════════════════════════════════ */
.fitt-row { display: flex; gap: clamp(6px,1vw,10px); flex-wrap: nowrap; }
.fitt-card {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(12px,2.2vh,18px) clamp(8px,1.2vw,12px);
  text-align: center;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s;
  overflow: visible;
}
.fitt-card:hover { transform: translateY(-4px); }
.fitt-card__letter { font-size: clamp(1.8rem,4vh,2.6rem); font-weight: 800; color: var(--white); line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.fitt-card__word   { font-size: clamp(0.56rem,1vh,0.65rem); font-weight: 700; color: rgba(255,255,255,.85); margin-top: 3px; letter-spacing: .06em; text-transform: uppercase; }
.fitt-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--slate-900);
  color: var(--white);
  font-size: clamp(0.62rem,1.1vh,0.72rem);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  width: clamp(130px,18vw,165px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 20;
  box-shadow: var(--shadow-lg);
  line-height: 1.45;
  font-family: var(--font);
}
.fitt-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--slate-900);
}
.fitt-card:hover .fitt-tooltip,
.fitt-card.active .fitt-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════
   ACCORDION
   ═══════════════════════════════════════════════ */
.accordion-item {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-md);
  margin-bottom: 4px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.accordion-item:hover { border-color: #93c5fd; }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(7px,1.2vh,11px) clamp(10px,1.5vw,14px);
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: clamp(0.68rem,1.3vh,0.8rem);
  font-weight: 600;
  color: var(--blue-deeper);
  text-align: left;
  transition: background .18s;
  gap: 8px;
  font-family: var(--font);
}
.accordion-btn:hover { background: var(--blue-light); }
.accordion-btn.open  { background: var(--blue-light); color: var(--blue); }
.accordion-icon { transition: transform .3s var(--ease); flex-shrink: 0; font-size: 0.7rem; color: var(--slate-400); }
.accordion-btn.open .accordion-icon { transform: rotate(180deg); color: var(--blue); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); background: var(--slate-50); }
.accordion-body.open { max-height: 160px; }
.accordion-content { padding: clamp(7px,1.2vh,11px) clamp(10px,1.5vw,14px); font-size: clamp(0.64rem,1.2vh,0.76rem); color: var(--slate-600); line-height: 1.6; font-family: var(--font); }

/* ═══════════════════════════════════════════════
   QUIZ
   ═══════════════════════════════════════════════ */
.quiz-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 2px solid var(--slate-200);
  padding: clamp(10px,1.8vh,16px) clamp(12px,2vw,18px);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.quiz-question {
  font-size: clamp(0.76rem,1.6vh,0.92rem);
  font-weight: 700;
  color: var(--blue-deeper);
  margin-bottom: clamp(8px,1.4vh,12px);
  line-height: 1.4;
}
.quiz-options { display: flex; flex-direction: column; gap: clamp(5px,.9vh,8px); }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(8px,1.3vh,11px) clamp(10px,1.5vw,13px);
  border: 2px solid var(--slate-200);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  transition: all .2s var(--ease);
  font-size: clamp(0.68rem,1.3vh,0.8rem);
  color: var(--slate-700);
  font-family: var(--font);
  text-align: left;
  width: 100%;
  font-weight: 500;
}
.quiz-option:hover:not(:disabled) { border-color: #93c5fd; background: var(--blue-light); transform: translateX(3px); }
.quiz-option.correct  { border-color: var(--green); background: var(--green-light); color: #065f46; font-weight: 600; }
.quiz-option.wrong    { border-color: var(--red);   background: var(--red-light);   color: #991b1b; }
.quiz-option:disabled { cursor: default; transform: none; }
.quiz-option-key {
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 5px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(0.62rem,1.1vh,0.72rem);
  flex-shrink: 0;
  border: 1.5px solid #bfdbfe;
}
.quiz-option.correct .quiz-option-key { background: var(--green); color: var(--white); border-color: var(--green); }
.quiz-option.wrong   .quiz-option-key { background: var(--red);   color: var(--white); border-color: var(--red); }
.quiz-result {
  margin-top: clamp(7px,1.2vh,11px);
  padding: clamp(7px,1.2vh,10px) clamp(10px,1.5vw,13px);
  border-radius: var(--r-md);
  font-size: clamp(0.68rem,1.3vh,0.8rem);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 7px;
}
.quiz-result.show    { display: flex; }
.quiz-result.correct { background: var(--green-light); color: #065f46; border: 1.5px solid #6ee7b7; }
.quiz-result.wrong   { background: var(--red-light);   color: #991b1b; border: 1.5px solid #fca5a5; }

/* ═══════════════════════════════════════════════
   REFLECTION
   ═══════════════════════════════════════════════ */
.reflection-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 2px solid var(--slate-200);
  padding: clamp(10px,1.7vh,14px) clamp(12px,2vw,16px);
  box-shadow: var(--shadow-sm);
}
.reflection-prompt {
  font-size: clamp(0.72rem,1.4vh,0.84rem);
  font-weight: 700;
  color: var(--blue-deeper);
  margin-bottom: 8px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  line-height: 1.4;
}
.reflection-textarea {
  width: 100%;
  min-height: clamp(70px,12vh,110px);
  max-height: clamp(80px,14vh,120px);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: clamp(7px,1.2vh,10px) clamp(10px,1.5vw,13px);
  font-size: clamp(0.68rem,1.3vh,0.8rem);
  font-family: var(--font);
  color: var(--slate-700);
  resize: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--slate-50);
  line-height: 1.6;
}
.reflection-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,234,.1); background: var(--white); }
.reflection-textarea::placeholder { color: var(--slate-400); }
.btn-save-reflection {
  margin-top: 7px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  padding: clamp(7px,1.2vh,10px) clamp(16px,2.5vw,22px);
  font-size: clamp(0.68rem,1.3vh,0.8rem);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  font-family: var(--font);
  box-shadow: 0 2px 8px rgba(37,99,234,.28);
}
.btn-save-reflection:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,234,.38); }
.reflection-saved-msg { display: none; margin-top: 6px; font-size: 0.72rem; color: var(--green); font-weight: 700; align-items: center; gap: 4px; }
.reflection-saved-msg.show { display: flex; }

/* ═══════════════════════════════════════════════
   BIDANG GRID
   ═══════════════════════════════════════════════ */
.bidang-card {
  cursor: pointer;
  border-radius: var(--r-md);
  padding: clamp(8px,1.4vh,12px) 8px;
  background: var(--white);
  border: 2px solid var(--slate-200);
  transition: all .22s var(--ease);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.bidang-card:hover { border-color: var(--blue); background: var(--blue-light); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.bidang-card.active { border-color: var(--blue); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: var(--white); transform: scale(1.02); }
.bidang-num   { font-size: clamp(1rem,2vh,1.3rem); font-weight: 800; color: var(--blue); line-height: 1; }
.bidang-label { font-size: clamp(0.58rem,1.1vh,0.66rem); font-weight: 600; color: var(--blue-deeper); margin-top: 2px; line-height: 1.3; }
.bidang-card.active .bidang-num   { color: #fcd34d; }
.bidang-card.active .bidang-label { color: rgba(255,255,255,.9); }

/* ═══════════════════════════════════════════════
   FOOTER — fixed height
   ═══════════════════════════════════════════════ */
.app-footer {
  height: var(--footer-h);
  min-height: var(--footer-h);
  max-height: var(--footer-h);
  flex-shrink: 0;
  background: var(--white);
  border-top: 1.5px solid var(--slate-200);
  padding: 0 clamp(12px,2vw,20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -3px 12px rgba(0,0,0,.04);
  position: relative;
  z-index: 2;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: clamp(7px,1.2vh,10px) clamp(12px,2vw,20px);
  border-radius: var(--r-md);
  border: none;
  font-size: clamp(0.74rem,1.4vh,0.86rem);
  font-weight: 700;
  cursor: pointer;
  transition: all .18s var(--ease);
  font-family: var(--font);
  min-width: clamp(80px,12vw,108px);
  justify-content: center;
}
.nav-btn--back { background: var(--slate-100); color: var(--slate-600); border: 1.5px solid var(--slate-200); }
.nav-btn--back:hover:not(:disabled) { background: var(--slate-200); color: var(--slate-800); transform: translateX(-2px); }
.nav-btn--back:disabled { opacity: .35; cursor: default; }
.nav-btn--next { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: var(--white); box-shadow: 0 2px 8px rgba(37,99,234,.28); }
.nav-btn--next:hover:not(:disabled) { background: linear-gradient(135deg, var(--blue-dark), var(--blue-deeper)); transform: translateX(2px); }
.nav-btn--next:disabled { opacity: .35; cursor: default; }
.nav-btn:active:not(:disabled) { transform: scale(0.96) !important; }

/* Footer center — dots + counter stacked */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.slide-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(0.68rem, 1.3vh, 0.78rem);
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.01em;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 2px 10px;
}
.slide-counter__num {
  font-weight: 900;
  color: var(--blue);
  font-size: clamp(0.75rem, 1.5vh, 0.88rem);
}
.slide-counter__sep { color: var(--slate-300); }
.slide-counter__total { color: var(--slate-400); font-weight: 500; }

/* Dots */
.slide-dots { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; max-width: 160px; justify-content: center; }
.slide-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--slate-200); transition: all .3s var(--ease); flex-shrink: 0; }
.slide-dot.visited { background: #bfdbfe; }
.slide-dot.current { background: var(--blue); width: 13px; border-radius: 3px; box-shadow: 0 0 5px rgba(37,99,234,.4); }

/* ═══════════════════════════════════════════════
   POPUP
   ═══════════════════════════════════════════════ */
.popup-overlay { position: fixed; inset: 0; background: rgba(10,15,30,.65); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); animation: fadeIn .2s both; }
.popup-overlay.hidden { display: none; }
.popup-box { background: var(--white); border-radius: var(--r-xl); max-width: 500px; width: 100%; box-shadow: var(--shadow-xl); animation: zoomIn .25s both; overflow: hidden; }
.popup-box--sm { max-width: 350px; }
.popup-header { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: var(--white); padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; }
.popup-header--warn { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.popup-header h2 { font-size: 0.9rem; font-weight: 700; }
.popup-close { background: rgba(255,255,255,.18); border: none; color: var(--white); width: 25px; height: 25px; border-radius: 5px; cursor: pointer; font-size: 0.78rem; display: flex; align-items: center; justify-content: center; transition: background .18s; }
.popup-close:hover { background: rgba(255,255,255,.32); }
.popup-body { padding: 16px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width:480px) { .help-grid { grid-template-columns: 1fr; } }
.help-item { display: flex; gap: 8px; align-items: flex-start; }
.help-icon { font-size: 1.2rem; flex-shrink: 0; }
.help-item strong { font-size: 0.78rem; color: var(--blue-deeper); display: block; margin-bottom: 1px; }
.help-item p { font-size: 0.7rem; color: var(--slate-600); line-height: 1.4; }

/* ═══════════════════════════════════════════════
   BUTTONS, TAGS, MISC
   ═══════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: var(--r-md); border: none; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all .18s var(--ease); font-family: var(--font); }
.btn--danger { background: var(--red); color: var(--white); }
.btn--danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn--ghost { background: var(--slate-100); color: var(--slate-600); border: 1.5px solid var(--slate-200); }
.btn--ghost:hover { background: var(--slate-200); }

.tag { display: inline-flex; align-items: center; gap: 2px; background: var(--blue-light); color: var(--blue); border-radius: 999px; padding: 2px 8px; font-size: clamp(0.58rem,1vh,0.66rem); font-weight: 700; letter-spacing: .02em; border: 1px solid #bfdbfe; }
.tag--green  { background: var(--green-light); color: #065f46; border-color: #6ee7b7; }
.tag--yellow { background: var(--gold-light);  color: #78350f; border-color: #fcd34d; }
.tag--red    { background: var(--red-light);   color: #991b1b; border-color: #fca5a5; }
.tag--purple { background: var(--purple-light); color: var(--purple); border-color: #c4b5fd; }

.section-label { font-size: clamp(0.58rem,.9vh,.65rem); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 4px; flex-shrink: 0; }

/* Toast */
.toast { position: fixed; bottom: 74px; left: 50%; transform: translateX(-50%) translateY(0); background: var(--slate-900); color: var(--white); padding: 8px 18px; border-radius: var(--r-md); font-size: 0.78rem; font-weight: 600; z-index: 9999; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; pointer-events: none; font-family: var(--font); border: 1px solid rgba(255,255,255,.06); }
.toast.hidden { opacity: 0; transform: translateX(-50%) translateY(10px); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeIn       { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInDown  { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes slideInUp    { from { opacity: 0; transform: translateY(14px); }  to { opacity: 1; transform: none; } }
@keyframes zoomIn       { from { opacity: 0; transform: scale(0.88); }        to { opacity: 1; transform: scale(1); } }

/* ═══════════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --header-h: clamp(56px, 10vh, 70px);
    --footer-h: clamp(50px, 9vh, 62px);
  }
  .slide { padding: 10px 11px 8px; }
}
@media (max-width: 380px) {
  .nav-btn { min-width: 72px; padding: 7px 8px; }
  .slide-dots { display: none; }
}
/* Very short screens (landscape phone) */
@media (max-height: 500px) {
  :root {
    --header-h: 52px;
    --footer-h: 46px;
  }
  .objective-strip { display: none; }
  .vo-box          { display: none; }
  .slide-body      { gap: 5px; }
}

/* ═══════════════════════════════════════════════
   SLIDE 1 — OFFICIAL BPK/KPM INTRO LAYOUT
   ═══════════════════════════════════════════════ */

/* Override intro for slide 1 official */
.slide--intro-official {
  background: #ffffff;
  color: #111;
  align-items: stretch;
  justify-content: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
  position: relative;
  /* CRITICAL: fill the full stage */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Geometric right panel — blue/yellow chevron shapes */
.s1-geo {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: clamp(140px, 38%, 420px);
  pointer-events: none;
  z-index: 0;
}
.s1-geo__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Blue chevron shape */
.s1-chevron-blue {
  position: absolute;
  right: clamp(100px, 22%, 260px);
  top: 0; bottom: 0;
  width: clamp(70px, 18%, 200px);
  background: #2563EA;
  clip-path: polygon(25% 0%, 100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%);
  z-index: 1;
}
/* Yellow chevron shape */
.s1-chevron-yellow {
  position: absolute;
  right: clamp(50px, 10%, 130px);
  top: 0; bottom: 0;
  width: clamp(60px, 15%, 170px);
  background: #F59E0B;
  clip-path: polygon(25% 0%, 100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%);
  z-index: 2;
}
/* Building photo in right panel */
.s1-building {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: clamp(100px, 28%, 300px);
  z-index: 3;
  overflow: hidden;
}
.s1-building svg {
  width: 100%; height: 100%;
}

/* Dot grid top-left decoration */
.s1-dots {
  position: absolute;
  top: clamp(10px, 2vh, 20px);
  left: clamp(10px, 2vw, 22px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(3px, 0.6vw, 7px);
  z-index: 5;
  animation: fadeIn .5s .1s both;
}
.s1-dot {
  width: clamp(4px, 0.7vw, 8px);
  height: clamp(4px, 0.7vw, 8px);
  border-radius: 50%;
  background: #EF4444;
  opacity: 0.85;
}

/* Content area — left side */
.s1-content {
  position: relative;
  z-index: 10;
  padding: clamp(10px, 2.5vh, 28px) clamp(12px, 3vw, 32px) clamp(10px, 2vh, 22px) clamp(12px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  flex: 1;          /* fill remaining height */
  min-height: 0;
  width: clamp(200px, 62%, 660px);
}

/* Logo row */
.s1-logo-row {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.5vw, 14px);
  margin-top: clamp(16px, 3.5vh, 36px);
  animation: fadeIn .5s .05s both;
}
/* Jata Negara image — show full KPM logo with harimau */
.s1-jata {
  width: clamp(100px, 22vw, 240px);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.s1-logo-text {
  font-size: clamp(0.52rem, 1.1vh, 0.7rem);
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* Divider */
.s1-divider {
  width: clamp(32px, 6vw, 56px);
  height: 2px;
  background: linear-gradient(90deg, #2563EA, #F59E0B);
  margin: clamp(6px, 1.2vh, 14px) 0;
  border-radius: 2px;
  animation: slideInDown .5s .15s both;
}

/* Title block */
.s1-title-main {
  font-size: clamp(1.05rem, 3.2vh, 2rem);
  font-weight: 900;
  color: #2563EA;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  animation: slideInDown .5s .2s both;
  margin-bottom: clamp(2px, 0.4vh, 6px);
}
.s1-title-kp {
  font-size: clamp(0.85rem, 2.5vh, 1.55rem);
  font-weight: 900;
  color: #EF4444;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  animation: slideInDown .5s .25s both;
  margin-bottom: clamp(6px, 1.2vh, 14px);
}
.s1-title-mp {
  font-size: clamp(0.72rem, 1.9vh, 1.1rem);
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  line-height: 1.35;
  animation: slideInDown .5s .3s both;
  margin-bottom: clamp(8px, 1.5vh, 18px);
}
.s1-modul-label {
  font-size: clamp(0.72rem, 1.9vh, 1.05rem);
  font-weight: 900;
  color: #7C3AED;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  animation: slideInDown .5s .35s both;
  margin-bottom: clamp(10px, 2vh, 22px);
}

/* Start button */
.s1-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563EA 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  padding: clamp(8px, 1.5vh, 13px) clamp(20px, 4vw, 36px);
  font-size: clamp(0.78rem, 1.8vh, 0.96rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37,99,234,.45);
  transition: transform .2s var(--ease), box-shadow .2s;
  font-family: var(--font);
  letter-spacing: .03em;
  animation: zoomIn .5s .45s both;
  align-self: flex-start;
}
.s1-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 26px rgba(37,99,234,.55); }
.s1-btn:active { transform: scale(0.97); }
.s1-btn-icon {
  width: clamp(16px, 2.5vh, 22px);
  height: clamp(16px, 2.5vh, 22px);
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(0.6rem, 1.2vh, 0.78rem);
}

/* Spacer */
.s1-spacer { flex: 1; }

/* Branding footer — image strip */
.s1-footer-brands {
  padding-top: clamp(6px, 1.2vh, 12px);
  border-top: 1px solid rgba(0,0,0,0.07);
  animation: fadeIn .5s .55s both;
}
.s1-footer-img {
  width: 100%;
  max-width: clamp(260px, 55vw, 520px);
  height: auto;
  object-fit: contain;
  display: block;
}
/* Legacy text brand items (kept for fallback) */
.s1-brand-item {
  font-size: clamp(0.5rem, 1vh, 0.65rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.s1-brand-item--hash { color: #2563EA; }
.s1-brand-item--red  { color: #EF4444; }
.s1-brand-item--green { color: #10B981; }
.s1-brand-item--gold { color: #B45309; }
.s1-brand-item--purple { color: #7C3AED; }

/* Navigation hint */
.s1-nav-hint {
  font-size: clamp(0.52rem, 1vh, 0.63rem);
  color: rgba(0,0,0,0.32);
  letter-spacing: 0.04em;
  margin-top: clamp(4px, 0.8vh, 8px);
  animation: fadeIn .5s .65s both;
}

/* Building illustration (SVG placeholder) */
.s1-bldg-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: clamp(130px, 32%, 340px);
  z-index: 4;
  overflow: hidden;
}
.s1-bldg-inner {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #dbeafe 0%, #bfdbfe 60%, #93c5fd 100%);
  overflow: hidden;
}

/* Responsive tweaks */
@media (max-width: 520px) {
  .s1-chevron-blue  { right: clamp(80px,22%,180px); }
  .s1-chevron-yellow{ right: clamp(38px,10%,90px); }
  .s1-bldg-wrap     { width: clamp(80px, 25%, 180px); }
  .s1-title-main    { font-size: clamp(0.95rem, 3vh, 1.5rem); }
  .s1-dots          { display: none; }
}
@media (max-height: 500px) {
  .s1-logo-row   { margin-top: 8px; }
  .s1-divider    { display: none; }
  .s1-modul-label{ display: none; }
  .s1-footer-brands { display: none; }
}

/* ═══════════════════════════════════════════════
   SLIDE VIDEO — full-stage video player
   ═══════════════════════════════════════════════ */
.slide--video-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
}
.slide--video-player {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  background: #000;
  /* Custom controls colour via accent-color */
  accent-color: #3b82f6;
}
.slide--video-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: clamp(5px, 0.9vh, 9px) clamp(10px, 1.8vw, 16px);
  background: #0f172a;
  color: rgba(255,255,255,0.6);
  font-size: clamp(0.58rem, 1.1vh, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
/* Override slide padding for video slide so video fills edge-to-edge */
.slide:has(.slide--video-wrap) {
  padding: 0 !important;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   SLIDE 3 — Reflection (PPTX faithful)
   White bg, big blue question, character right
   ═══════════════════════════════════════════════ */
.slide--s3 {
  background: #ffffff;
  padding: 0 !important;
  overflow: hidden;
}
.s3-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ── Left panel ── */
.s3-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 3vh, 32px) clamp(16px, 4vw, 48px) clamp(10px, 2vh, 20px) clamp(16px, 4vw, 48px);
  min-width: 0;
  position: relative;
  z-index: 2;
}

/* Big question */
.s3-question {
  flex: 0 0 auto;
  margin-bottom: clamp(10px, 2vh, 20px);
  margin-top: clamp(6px, 1.5vh, 16px);
}
.s3-q-text {
  font-size: clamp(1.3rem, 4.5vh, 3rem);
  font-weight: 900;
  color: #2563EA;
  line-height: 1.25;
  letter-spacing: -0.02em;
  /* Red underline like PPTX */
  text-decoration: underline;
  text-decoration-color: #EF4444;
  text-decoration-thickness: clamp(2px, 0.4vh, 4px);
  text-underline-offset: clamp(3px, 0.6vh, 7px);
  animation: slideInDown .5s var(--ease) both;
}

/* Reflection textarea area */
.s3-reflect-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 12px);
  min-height: 0;
  animation: slideInUp .5s .15s var(--ease) both;
}
.s3-textarea {
  flex: 1;
  min-height: clamp(60px, 12vh, 140px);
  max-height: clamp(80px, 18vh, 200px);
  resize: none;
  border: 2px solid #dbeafe;
  border-radius: var(--r-lg);
  padding: clamp(8px, 1.4vh, 14px) clamp(10px, 1.8vw, 16px);
  font-family: var(--font);
  font-size: clamp(0.75rem, 1.6vh, 0.92rem);
  color: #1e293b;
  line-height: 1.6;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #f8fafc;
}
.s3-textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147,197,253,0.25);
  background: #fff;
}
.s3-textarea::placeholder { color: #94a3b8; }

.s3-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.s3-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #2563EA, #1d4ed8);
  color: white;
  border: none;
  border-radius: var(--r-md);
  padding: clamp(7px, 1.3vh, 11px) clamp(14px, 2.5vw, 22px);
  font-family: var(--font);
  font-size: clamp(0.72rem, 1.4vh, 0.84rem);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 3px 10px rgba(37,99,234,.3);
}
.s3-save-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(37,99,234,.4); }
.s3-save-btn:active { transform: scale(0.96); }

.s3-saved-msg {
  font-size: clamp(0.68rem, 1.3vh, 0.78rem);
  font-weight: 700;
  color: #10B981;
  opacity: 0;
  transition: opacity .3s;
}
.s3-saved-msg.show { opacity: 1; }

/* Brand hashtag */
.s3-brand {
  font-size: clamp(0.58rem, 1.1vh, 0.7rem);
  font-weight: 800;
  color: #2563EA;
  letter-spacing: 0.04em;
  margin-top: clamp(6px, 1.2vh, 12px);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Right panel — character ── */
.s3-right {
  position: relative;
  width: clamp(140px, 32%, 320px);
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.s3-character {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: zoomIn .6s .1s var(--ease) both;
}
.s3-thought {
  position: absolute;
  top: clamp(10px, 3vh, 28px);
  left: clamp(-10px, -2vw, -20px);
  width: clamp(80px, 15vw, 140px);
  animation: fadeIn .6s .4s both;
  pointer-events: none;
}
.s3-cloud { width: 100%; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.08)); }

/* Responsive */
@media (max-width: 520px) {
  .s3-right { width: clamp(100px, 28%, 160px); }
  .s3-q-text { font-size: clamp(1rem, 4vh, 1.8rem); }
}
@media (max-height: 500px) {
  .s3-thought { display: none; }
  .s3-textarea { max-height: 60px; }
}
