/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --navy-950: #071224;
  --navy-900: #0b1f3a;
  --navy-850: #0d2544;
  --navy-800: #123253;
  --navy-700: #1a3f66;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --cyan-400: #22d3ee;
  --purple-500: #6c5ce7;
  --purple-600: #5b4bd6;
  --orange-500: #f5a623;
  --orange-600: #ea8b0c;
  --green-500: #10b981;
  --green-600: #059669;
  --blue-500: #3b82f6;
  --bg-light: #f2f5fa;
  --bg-light-2: #eef2f8;
  --card-border: #e3e8f0;
  --text-navy: #10243f;
  --text-muted: #64748b;
  --text-muted-2: #8592a8;
  --white: #ffffff;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: #05070d;
  color: var(--text-navy);
  font-family: var(--font);
  overflow: hidden;
}

img, svg { display: block; }

/* =========================================================
   Viewer chrome
   ========================================================= */
.viewer { display: flex; flex-direction: column; height: 100vh; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #12141c;
  border-bottom: 1px solid #262a36;
  flex-shrink: 0;
  color: #e8eaf0;
}
.topbar .title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .counter { font-size: 13px; color: #8a90a2; font-variant-numeric: tabular-nums; }
.topbar-actions { display: flex; gap: 8px; }

.icon-btn {
  background: transparent;
  border: 1px solid #2a2e38;
  color: #e8eaf0;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: #232733; border-color: var(--teal-500); }

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  min-height: 0;
  background: #05070d;
}

.slide-frame {
  /* Width/height are set inline by fitFrame() in script.js so the slide can
     grow past 1280px (e.g. fullscreen on a large display); this rule is
     just the pre-JS fallback. */
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0,0,0,.6);
}

.slide-inner {
  position: absolute;
  top: 0; left: 0;
  width: 1280px;
  height: 720px;
  transform-origin: top left;
}

.slide-inner > .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
  z-index: 1;
  transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .4s ease;
}
.slide-inner > .slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 3;
}
.slide-inner > .slide.enter-right { opacity: 0; transform: translateX(90px); }
.slide-inner > .slide.enter-left { opacity: 0; transform: translateX(-90px); }
.slide-inner > .slide.exit-left { opacity: 0; transform: translateX(-90px); z-index: 2; }
.slide-inner > .slide.exit-right { opacity: 0; transform: translateX(90px); z-index: 2; }
.slide-inner > .slide.no-anim { transition: none !important; }

/* =========================================================
   Staggered element reveals (play whenever a slide is .active)
   ========================================================= */
.agenda-item, .reward-card, .info-card, .feature-row, .step, .phone-col,
.chip, .row-item.wbox, .hdr-full, .hdr-pill, .hdr-simple, .pill-strip,
.reveal-parent > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
}
.slide.active .agenda-item, .slide.active .reward-card, .slide.active .info-card,
.slide.active .feature-row, .slide.active .step, .slide.active .phone-col,
.slide.active .chip, .slide.active .row-item.wbox, .slide.active .hdr-full,
.slide.active .hdr-pill, .slide.active .hdr-simple, .slide.active .pill-strip,
.slide.active .reveal-parent > * {
  opacity: 1;
  transform: translateY(0);
}

.agenda-item:nth-child(1), .reward-card:nth-child(1), .info-card:nth-child(1), .feature-row:nth-child(1), .step:nth-child(1), .phone-col:nth-child(1), .chip:nth-child(1), .row-item.wbox:nth-child(1), .reveal-parent > *:nth-child(1) { transition-delay: .05s; }
.agenda-item:nth-child(2), .reward-card:nth-child(2), .info-card:nth-child(2), .feature-row:nth-child(2), .step:nth-child(2), .phone-col:nth-child(2), .chip:nth-child(2), .row-item.wbox:nth-child(2), .reveal-parent > *:nth-child(2) { transition-delay: .12s; }
.agenda-item:nth-child(3), .reward-card:nth-child(3), .info-card:nth-child(3), .feature-row:nth-child(3), .step:nth-child(3), .phone-col:nth-child(3), .chip:nth-child(3), .row-item.wbox:nth-child(3), .reveal-parent > *:nth-child(3) { transition-delay: .19s; }
.agenda-item:nth-child(4), .reward-card:nth-child(4), .info-card:nth-child(4), .feature-row:nth-child(4), .step:nth-child(4), .phone-col:nth-child(4), .chip:nth-child(4), .row-item.wbox:nth-child(4), .reveal-parent > *:nth-child(4) { transition-delay: .26s; }
.agenda-item:nth-child(5), .chip:nth-child(5), .reveal-parent > *:nth-child(5) { transition-delay: .33s; }
.agenda-item:nth-child(6), .chip:nth-child(6), .reveal-parent > *:nth-child(6) { transition-delay: .40s; }
.agenda-item:nth-child(7), .reveal-parent > *:nth-child(7) { transition-delay: .47s; }
.agenda-item:nth-child(8), .reveal-parent > *:nth-child(8) { transition-delay: .54s; }

.hdr-full, .hdr-pill, .hdr-simple { transition-delay: 0s; }

.nav-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #262a36;
  background: #12141c;
  color: #e8eaf0;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.nav-btn:hover { background: #232733; border-color: var(--teal-500); }
.nav-btn:active { transform: scale(0.93); }
.nav-btn:disabled { opacity: .25; cursor: default; }

.progress-track { height: 3px; background: #1c1f28; flex-shrink: 0; }
.progress-fill { height: 100%; background: var(--teal-500); width: 0%; transition: width .3s ease; }

.dots-nav {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  background: #12141c;
  border-top: 1px solid #262a36;
  flex-shrink: 0;
  justify-content: center;
}
.dot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #262a36;
  background: transparent;
  color: #8a90a2;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.dot .n {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #262a36;
  color: #cfd3dd;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dot:hover { border-color: var(--teal-500); color: #e8eaf0; }
.dot.active { border-color: var(--teal-500); background: rgba(20,184,166,.12); color: #e8eaf0; }
.dot.active .n { background: var(--teal-500); color: #06231f; }

.viewer:fullscreen .stage { padding: 30px; background:#000; }
.viewer:fullscreen .dots-nav { display: none; }
.viewer:fullscreen .slide-frame { box-shadow: none; }

.dots-nav::-webkit-scrollbar { height: 5px; }
.dots-nav::-webkit-scrollbar-thumb { background: #262a36; border-radius: 3px; }

/* =========================================================
   Slide base
   ========================================================= */
.slide {
  width: 1280px;
  height: 720px;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}
.slide-dark {
  background: radial-gradient(120% 140% at 85% 10%, #123253 0%, #0b1f3a 45%, #071224 100%);
  color: #fff;
}
.slide-light { background: var(--bg-light); color: var(--text-navy); }

/* eyebrow / labels */
.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--teal-400);
  text-transform: uppercase;
}
.bar-teal { height: 4px; width: 90px; border-radius: 2px; background: linear-gradient(90deg, var(--teal-400), transparent); }

/* =========================================================
   Decorative elements
   ========================================================= */
.corner-wedge {
  position: absolute; top: 0; left: 0; width: 130px; height: 260px;
  background: linear-gradient(160deg, var(--teal-400) 0%, var(--teal-700) 35%, transparent 75%);
  clip-path: polygon(0 0, 100% 0, 38% 100%, 0 100%);
  opacity: .9;
}

.rings-decor { position: absolute; right: -180px; top: 50%; transform: translateY(-50%); width: 620px; height: 620px; pointer-events: none; }
.rings-decor .ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(45,212,191,.3); transform: translate(-50%, -50%); }
.rings-decor .ring.r1 { width: 620px; height: 620px; }
.rings-decor .ring.r2 { width: 460px; height: 460px; border-color: rgba(45,212,191,.22); }
.rings-decor .ring.r3 { width: 300px; height: 300px; border-color: rgba(45,212,191,.4); }
.rings-decor .dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 12px 3px rgba(45,212,191,.7); }
.rings-decor .dot.d1 { top: 14%; left: 72%; }
.rings-decor .dot.d2 { top: 82%; left: 30%; }

.dotgrid {
  position: absolute; width: 170px; height: 170px;
  background-image: radial-gradient(rgba(148,163,184,.35) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: .6;
  pointer-events: none;
}

.blob-teal {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--teal-400), var(--teal-700));
  opacity: .18;
}

/* circuit svg wrapper */
.circuit { position: absolute; top: 0; right: 0; opacity: .55; pointer-events: none; }

/* =========================================================
   Section headers
   ========================================================= */
.hdr-full {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 44px;
  background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy-800) 70%, var(--teal-700) 140%);
  position: relative; overflow: hidden;
}
.hdr-full .icon-badge {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--white); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.hdr-full.outline .icon-badge { background: transparent; border: 2px solid var(--teal-400); color: var(--teal-300); }
.hdr-full h2 { font-size: 34px; font-weight: 800; letter-spacing: .5px; margin: 0; color: #fff; }

.hdr-pill {
  position: absolute; top: 30px; left: 0;
  display: flex; align-items: center; gap: 20px;
  padding: 18px 46px 18px 26px;
  background: var(--navy-900);
  border-radius: 0 999px 999px 0;
  z-index: 3;
}
.hdr-pill .icon-badge {
  width: 56px; height: 56px; border-radius: 50%; background: var(--white);
  color: var(--navy-900); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.hdr-pill h2 { font-size: 28px; font-weight: 800; color: #fff; margin: 0; letter-spacing: .3px; white-space: nowrap; }

.hdr-simple { display: flex; align-items: center; gap: 18px; padding: 34px 0 0 44px; }
.hdr-simple .icon-badge {
  width: 58px; height: 58px; border-radius: 50%; background: var(--navy-900);
  color: var(--teal-400); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink:0;
}
.hdr-simple h2 { font-size: 32px; font-weight: 800; color: var(--text-navy); margin: 0; }
.hdr-simple.bar-only .icon-badge { display:none; }
.hdr-simple .bar-side { width:6px; height:44px; background:var(--teal-500); border-radius:3px; flex-shrink:0; }

/* =========================================================
   Cards / lists (agenda, admin, rewards)
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 40, 70, .05);
}

.agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px 44px; }
.agenda-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}
.agenda-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-700);
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.agenda-divider { width: 1px; align-self: stretch; background: var(--card-border); }
.agenda-icon { font-size: 22px; color: var(--navy-800); width: 34px; text-align: center; flex-shrink: 0; }
.agenda-text .t { font-weight: 800; font-size: 16px; color: var(--text-navy); }
.agenda-text .s { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* generic icon circle */
.icon-circle {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.icon-circle.teal { background: var(--teal-700); }
.icon-circle.navy { background: var(--navy-800); }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f6;
  font-size: 15px;
  color: #1e2b3d;
}
.checklist li:last-child { border-bottom: none; }
.checklist i { color: var(--teal-600); font-size: 15px; flex-shrink: 0; }

/* feature row (dashboard slide) */
.feature-row { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid #e7ebf2; }
.feature-row:last-child { border-bottom: none; }
.feature-row .sq {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
}
.feature-row h3 { margin: 0 0 6px; font-size: 20px; color: var(--text-navy); font-weight: 800; }
.feature-row p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.4; }

/* stepper (QR slide) */
.stepper { display: flex; flex-direction: column; }
.step { display: flex; gap: 20px; position: relative; padding-bottom: 26px; }
.step:last-child { padding-bottom: 0; }
.step .knot-wrap { display: flex; flex-direction: column; align-items: center; }
.step .knot { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 2; }
.step .line { width: 2px; flex: 1; background: var(--teal-200, #99e6dc); margin-top: 2px; }
.step .icon-c { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--teal-600); color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.step h4 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--text-navy); }
.step p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }

/* badges/pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.pill.on-light { background: var(--white); border: 1px solid var(--card-border); color: var(--text-navy); }
.pill i { color: var(--teal-600); }
.pill-strip { display: flex; gap: 14px; }

/* =========================================================
   Phone mockup
   ========================================================= */
.phone {
  width: 224px; height: 456px;
  background: #14161c;
  border-radius: 34px;
  padding: 9px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 0 2px #2a2d36;
  flex-shrink: 0;
}
.phone.sm { width: 190px; height: 388px; border-radius: 30px; }
.phone .notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 16px; background: #14161c; border-radius: 0 0 12px 12px; z-index: 6;
}
.phone-screen {
  width: 100%; height: 100%; background: #fff; border-radius: 26px;
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  font-size: 11px; color: #1e2b3d;
}
.phone.sm .phone-screen { border-radius: 22px; }
.phone-home-indicator { height: 4px; width: 90px; background: #d7dbe3; border-radius: 3px; margin: 6px auto 4px; }

.phone-topgrad {
  background: linear-gradient(160deg, #7d6de0, #6c5ce7 60%, #5b4bd6);
  color: #fff; padding: 34px 16px 20px; text-align: center; position: relative;
}
.phone-status { position:absolute; top:6px; left:14px; right:14px; display:flex; justify-content:space-between; font-size:9px; color:rgba(255,255,255,.85); }

.phone-body { padding: 12px 14px; flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.phone-panel { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(20,30,60,.08); border: 1px solid #eef1f6; padding: 12px; }
.phone-dots { display: flex; gap: 3px; margin-bottom: 6px; }
.phone-dots span { width: 6px; height: 6px; border-radius: 50%; }
.phone-dots span:nth-child(1){background:#6c5ce7;} .phone-dots span:nth-child(2){background:#00b894;} .phone-dots span:nth-child(3){background:#fdcb6e;}

.phone-field label { display: block; font-size: 9.5px; font-weight: 700; color: #334155; margin-bottom: 3px; }
.phone-field .box { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px; padding: 7px 9px; font-size: 9.5px; color: #94a3b8; display:flex; align-items:center; justify-content:space-between; }
.phone-btn { border: none; border-radius: 9px; padding: 9px; text-align: center; font-size: 10.5px; font-weight: 700; cursor: default; }
.phone-btn.purple { background: var(--purple-500); color: #fff; }
.phone-btn.light { background: #eef0fb; color: #4b3fb0; }
.phone-btn.green { background: var(--green-500); color: #fff; }
.phone-btn.ghost { background: #f1f4f9; color: #64748b; }
.phone-btn.disabled { background: #e7ebf1; color: #a7b0bd; }

.phone-nav { display: flex; justify-content: space-around; padding: 7px 0 5px; border-top: 1px solid #eef1f6; background: #fff; margin-top: auto; }
.phone-nav .item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; color: #a0aab8; }
.phone-nav .item i { font-size: 13px; }
.phone-nav .item.active { color: var(--purple-600); }

.phone-caption { text-align: center; font-size: 12.5px; color: var(--text-muted); line-height: 1.35; max-width: 210px; margin-top: 10px; }
.phone-tag {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; color: #fff; font-size: 15px; margin-top: 14px;
}
.phone-tag.navy { background: var(--navy-900); }
.phone-tag.teal { background: var(--teal-700); }

.phone-col { display: flex; flex-direction: column; align-items: center; }

/* stat tiles */
.stat-tiles { display: flex; gap: 6px; }
.stat-tile { flex: 1; border-radius: 10px; padding: 8px 4px; text-align: center; color: #fff; }
.stat-tile .num { font-size: 14px; font-weight: 800; }
.stat-tile .lbl { font-size: 8px; opacity: .9; }
.stat-tile.orange { background: var(--orange-500); }
.stat-tile.green { background: var(--green-500); }
.stat-tile.cyan { background: #17c3d6; }
.stat-tile.purple { background: var(--purple-500); }

.progress-mini { background:#e7ebf1; border-radius:6px; height:6px; overflow:hidden; margin-top:6px;}
.progress-mini > div { height:100%; background:var(--navy-800); width:2%; }

/* rewards cards */
.reward-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 44px; }
.reward-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--card-border); }
.reward-card .top { background: var(--navy-900); height: 34px; position: relative; }
.reward-card .badge-num {
  position: absolute; left: 50%; top: 26px; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--teal-400);
  color: var(--navy-900); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
}
.reward-card .body { padding: 40px 20px 22px; text-align: center; }
.reward-card .ico {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  border: 2px solid var(--navy-800); background: #f4f7fb;
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--navy-800);
}
.reward-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--text-navy); font-weight: 800; }
.reward-card p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* admin slide two-col cards */
.two-col { display: flex; gap: 24px; padding: 0 44px; }
.info-card { flex: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--card-border); background: #fff; }
.info-card .head { display: flex; align-items: center; gap: 14px; padding: 16px 22px; color: #fff; }
.info-card .head.navy { background: var(--navy-900); }
.info-card .head.teal { background: linear-gradient(90deg, var(--teal-700), var(--teal-500)); }
.info-card .head i { font-size: 18px; }
.info-card .head h3 { margin: 0; font-size: 17px; letter-spacing: .5px; font-weight: 800; }
.info-card .body { padding: 18px 22px; }

.row-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.row-item .ic { width: 40px; height: 40px; border-radius: 50%; background: #eef4f4; color: var(--teal-700); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0;}
.row-item.wbox { background: #f7f9fc; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.row-item .txt strong { display:block; font-size:15px; color:var(--text-navy); }
.row-item .txt span { font-size: 12.5px; color: var(--text-muted); }

/* org chip grid (approvals) */
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { display: flex; align-items: center; gap: 10px; background: #f4f8f8; border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--text-navy); }
.chip i { color: var(--teal-700); font-size: 15px; }

.flow { display: flex; align-items: center; justify-content: space-between; }
.flow .fnode { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-navy); font-weight: 600; }
.flow .fnode .circ { width: 46px; height: 46px; border-radius: 50%; background: #eef4f4; color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.flow i.arrow { color: #c3ccd8; font-size: 14px; }

/* QR pattern */
.qr {
  display: grid; grid-template-columns: repeat(14, 1fr); grid-template-rows: repeat(14, 1fr);
  gap: 1.5px; margin: 0 auto;
}
.qr div { background: transparent; }
.qr div.on { background: #111; }

.qr-wrap { position: relative; display: inline-block; }
.scan-line {
  position: absolute; left: 2px; right: 2px; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
  box-shadow: 0 0 8px 2px rgba(45,212,191,.7);
  opacity: 0;
}

/* utility */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.grow { flex: 1; }
.mt-auto { margin-top: auto; }
.text-right { text-align: right; }

/* =========================================================
   In-presentation animations (play while a slide is .active)
   ========================================================= */

/* --- A. Global motif ------------------------------------- */

/* Radar ping behind header icon badges */
.hdr-full .icon-badge, .hdr-pill .icon-badge, .hdr-simple .icon-badge { position: relative; }
.hdr-full .icon-badge::after, .hdr-pill .icon-badge::after, .hdr-simple .icon-badge::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--teal-400); opacity: 0;
}
.slide.active .hdr-full .icon-badge::after,
.slide.active .hdr-pill .icon-badge::after,
.slide.active .hdr-simple .icon-badge::after {
  animation: pingRing 2.4s ease-out infinite;
}
@keyframes pingRing {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Slow orbit for the hero-slide decorative rings */
.slide.active .rings-decor { animation: ringSpin 100s linear infinite; }
@keyframes ringSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* --- B. Per-slide signature animations -------------------- */

/* Slide 3 — app icon breathing glow + check badge pop */
.slide.active .icon-breathe { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1);     box-shadow: 0 25px 60px rgba(0,0,0,.5); }
  50%      { transform: scale(1.035); box-shadow: 0 30px 75px rgba(20,184,166,.4); }
}
.badge-pop { transform: scale(0); opacity: 0; }
.slide.active .badge-pop { animation: badgePop .6s cubic-bezier(.34,1.56,.64,1) .55s both; }
@keyframes badgePop {
  0%   { transform: scale(0);    opacity: 0; }
  60%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Slide 5 — progress bar fill + bell wiggle */
.fill-2pct { width: 0; }
.slide.active .fill-2pct { animation: fillBar 1.1s ease-out .5s forwards; }
@keyframes fillBar { from { width: 0; } to { width: 2%; } }

.bell-wiggle { display: inline-block; transform-origin: top center; }
.slide.active .bell-wiggle { animation: bellRing .8s ease-in-out .9s 2; }
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  20%      { transform: rotate(14deg); }
  40%      { transform: rotate(-12deg); }
  60%      { transform: rotate(8deg); }
  80%      { transform: rotate(-6deg); }
}

/* Slide 6 — QR scan line + countdown ring */
.slide.active .scan-line { animation: scanSweep 2.2s ease-in-out infinite; }
@keyframes scanSweep {
  0%   { top: 0;    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.countdown-ring { transition: transform .15s ease; }
.countdown-ring.tick { transform: scale(1.08); }

/* Slide 7 — status lifecycle strip cycling through each state */
.status-chip { display: inline-block; padding: 2px 7px; border-radius: 6px; opacity: .55; }
.sep { opacity: .4; }
.slide.active .status-chip.s1 { animation: statusCycle 4.8s ease-in-out infinite; }
.slide.active .status-chip.s2 { animation: statusCycle 4.8s ease-in-out infinite; animation-delay: 1.2s; }
.slide.active .status-chip.s3 { animation: statusCycle 4.8s ease-in-out infinite; animation-delay: 2.4s; }
.slide.active .status-chip.s4 { animation: statusCycle 4.8s ease-in-out infinite; animation-delay: 3.6s; }
@keyframes statusCycle {
  0%, 8%   { opacity: .55; background: transparent; color: inherit; }
  15%, 25% { opacity: 1;   background: var(--teal-400); color: #06231f; }
  32%, 100%{ opacity: .55; background: transparent; color: inherit; }
}

/* Slide 8 — approval flow lighting up node by node + GPS ping */
.slide.active .flow .fnode:nth-child(1) .circ { animation: nodeLight 5s ease-in-out infinite; }
.slide.active .flow .fnode:nth-child(3) .circ { animation: nodeLight 5s ease-in-out infinite; animation-delay: .9s; }
.slide.active .flow .fnode:nth-child(5) .circ { animation: nodeLight 5s ease-in-out infinite; animation-delay: 1.8s; }
.slide.active .flow .fnode:nth-child(7) .circ { animation: nodeLight 5s ease-in-out infinite; animation-delay: 2.7s; }
.slide.active .flow .fnode:nth-child(9) .circ { animation: nodeLight 5s ease-in-out infinite; animation-delay: 3.6s; }
@keyframes nodeLight {
  0%, 12%   { background: #eef4f4; color: var(--teal-700); transform: scale(1); }
  20%, 30%  { background: var(--teal-600); color: #fff; transform: scale(1.12); }
  40%, 100% { background: #eef4f4; color: var(--teal-700); transform: scale(1); }
}
.slide.active .flow i.arrow:nth-child(2) { animation: arrowFlash 5s ease-in-out infinite; animation-delay: .5s; }
.slide.active .flow i.arrow:nth-child(4) { animation: arrowFlash 5s ease-in-out infinite; animation-delay: 1.4s; }
.slide.active .flow i.arrow:nth-child(6) { animation: arrowFlash 5s ease-in-out infinite; animation-delay: 2.3s; }
.slide.active .flow i.arrow:nth-child(8) { animation: arrowFlash 5s ease-in-out infinite; animation-delay: 3.2s; }
@keyframes arrowFlash {
  0%, 15%   { color: #c3ccd8; }
  25%, 35%  { color: var(--teal-600); }
  45%, 100% { color: #c3ccd8; }
}
.gps-ping { display: inline-block; }
.slide.active .gps-ping { animation: gpsPulse 1.6s ease-in-out infinite; }
@keyframes gpsPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: .6; }
}

/* Slide 9 — reward icons idle float */
.slide.active .reward-card:nth-child(1) .ico { animation: floatY 3.2s ease-in-out infinite; }
.slide.active .reward-card:nth-child(2) .ico { animation: floatY 3.2s ease-in-out infinite; animation-delay: .3s; }
.slide.active .reward-card:nth-child(3) .ico { animation: floatY 3.2s ease-in-out infinite; animation-delay: .6s; }
.slide.active .reward-card:nth-child(4) .ico { animation: floatY 3.2s ease-in-out infinite; animation-delay: .9s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Slide 10 — spinning gear */
.slide.active .head.teal i.fa-gear { display: inline-block; animation: gearSpin 6s linear infinite; }
@keyframes gearSpin { to { transform: rotate(360deg); } }

/* Slide 11 — divider draw-in + breathing ring */
.draw-line { width: 0; overflow: hidden; white-space: nowrap; }
.slide.active .draw-line { animation: drawLine 1.1s ease-out .3s forwards; }
@keyframes drawLine { from { width: 0; } to { width: 100%; } }

.slide.active .pulse-ring { animation: ringPulse 2.4s ease-in-out 1s infinite; }
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(20,184,166,0); }
}

@media (prefers-reduced-motion: reduce) {
  .slide-inner > .slide,
  .agenda-item, .reward-card, .info-card, .feature-row, .step, .phone-col,
  .chip, .row-item.wbox, .hdr-full, .hdr-pill, .hdr-simple, .pill-strip,
  .reveal-parent > * {
    transition-duration: .01ms !important;
  }
  .hdr-full .icon-badge::after, .hdr-pill .icon-badge::after, .hdr-simple .icon-badge::after,
  .rings-decor, .icon-breathe, .badge-pop, .bell-wiggle, .scan-line, .status-chip,
  .flow .fnode .circ, .flow i.arrow, .gps-ping, .reward-card .ico, .head.teal i.fa-gear,
  .draw-line, .pulse-ring, .fill-2pct {
    animation: none !important;
  }
}
