/* ═══════════════════════════════════════════════════
   CRIMIND — Funil Gamificado v2
   Design System Noir | Dark + Light | Mobile-first
═══════════════════════════════════════════════════ */

/* ── 1. Design Tokens ───────────────────────────── */
:root {
  /* Core */
  --bg:       #060a0e;
  --bg2:      #0b1218;
  --surface:  #111820;
  --surface2: #182028;
  --border:   rgba(255,255,255,.08);
  /* Brand */
  --red:      #e53e3e;
  --red-dark: #9b1c1c;
  --gold:     #d97706;
  --gold-lt:  #fbbf24;
  --green:    #10b981;
  --cyan:     #06b6d4;
  --indigo:   #6366f1;
  /* Text */
  --text:     #e2e8f0;
  --text2:    #94a3b8;
  --muted:    #64748b;
  /* WhatsApp */
  --wa-bg:    #0b141a;
  --wa-hdr:   #1f2c34;
  --wa-in:    #1e2a30;
  --wa-out:   #005c4b;
  --wa-link:  #53bdeb;
  /* Misc */
  --phone-w:  390px;
  --r:        .75rem;
  --ios-bar:  50px;
}

/* Light theme */
:root[data-theme="light"] {
  --bg:      #f1f5f9;
  --bg2:     #e2e8f0;
  --surface: #ffffff;
  --surface2:#f8fafc;
  --border:  rgba(0,0,0,.08);
  --text:    #1e293b;
  --text2:   #475569;
  --muted:   #94a3b8;
}

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

html, body {
  height: 100%; width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #000;
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ── 3. App Shell ────────────────────────────────── */
#app {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}

/* ── 4. Phone Frame ──────────────────────────────── */
.phone {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  /* Mobile: no frame */
}

/* Desktop: real phone frame */
@media (min-width: 480px) {
  #app {
    background: radial-gradient(ellipse at 40% 30%, #0d1520 0%, #000 70%);
  }
  .phone {
    width: var(--phone-w);
    height: min(860px, 96dvh);
    border-radius: 50px;
    background: var(--bg);
    /* Outer shell */
    box-shadow:
      0 0 0 2px #1a1a1a,
      0 0 0 4px #2a2a2a,
      0 0 0 5px #111,
      0 50px 150px rgba(0,0,0,.9),
      inset 0 0 0 1px rgba(255,255,255,.04);
    outline: 6px solid #1a1a1a;
  }
  /* Side buttons */
  .phone::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 120px;
    width: 4px;
    height: 60px;
    background: #222;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 80px 0 #222, 0 -80px 0 #222;
    z-index: 300;
  }
  .phone::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 160px;
    width: 4px;
    height: 35px;
    background: #222;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 50px 0 #222;
    z-index: 300;
  }
}

/* Dynamic Island (desktop only) */
.phone-island {
  display: none;
}
@media (min-width: 480px) {
  .phone-island {
    display: block;
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 200;
    box-shadow: 0 0 0 2px #1a1a1a;
  }
  .phone-island::before {
    content: '';
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 10px;
    background: #0d1117;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,100,150,.4);
  }
}

/* ── 5. iOS Status Bar ───────────────────────────── */
.ios-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--ios-bar);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
}
.ios-bar .bar-right {
  display: flex; align-items: center; gap: 6px;
}
.ios-bar .signal {
  display: flex; align-items: flex-end; gap: 2px; height: 12px;
}
.ios-bar .signal s {
  display: block; width: 3px; background: #fff; border-radius: 1px;
}
.ios-bar .batt {
  width: 24px; height: 12px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 3px; position: relative;
}
.ios-bar .batt::after {
  content: '';
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 5px;
  background: rgba(255,255,255,.5);
  border-radius: 0 1px 1px 0;
}
.ios-bar .batt-fill {
  position: absolute; inset: 2px; right: 4px;
  background: #fff; border-radius: 1px;
}
/* Dark bar for light stages */
.ios-bar.dark { color: #000; }
.ios-bar.dark .batt      { border-color: rgba(0,0,0,.7); }
.ios-bar.dark .batt-fill { background: #000; }
.ios-bar.dark .batt::after { background: rgba(0,0,0,.5); }
.ios-bar.dark .signal s  { background: #000; }

/* ── 6. Stages ───────────────────────────────────── */
.stage {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
}
.stage.active {
  display: flex;
  animation: stageIn .35s cubic-bezier(.22,.68,0,1.2);
}
@keyframes stageIn {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── 7. INTRO ────────────────────────────────────── */
#stage-intro {
  background: var(--bg);
  align-items: center; justify-content: center;
  padding: 2rem 2rem 3rem;
  overflow: hidden;
}
#stage-intro::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 15%, rgba(229,62,62,.14) 0%, transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(99,102,241,.08) 0%, transparent 55%);
  pointer-events: none;
}
/* Scanlines */
#stage-intro::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.06) 3px,
    rgba(0,0,0,.06) 4px
  );
  pointer-events: none; z-index: 0;
}

.intro-logo {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; margin-bottom: 2rem; position: relative; z-index: 1;
}
.logo-badge {
  width: 88px; height: 88px;
  background: radial-gradient(circle at 35% 35%, #2d0808, #1a0505);
  border: 1.5px solid rgba(229,62,62,.5);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 0 40px rgba(229,62,62,.3), 0 0 80px rgba(229,62,62,.1);
  position: relative;
}
.logo-badge::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 26px;
  border: 1px solid rgba(229,62,62,.15);
}
.logo-name {
  font-size: 1.7rem; font-weight: 800;
  letter-spacing: 5px; color: #fff; text-transform: uppercase;
}
.logo-tagline {
  font-size: .65rem; letter-spacing: 2px; color: var(--muted);
  text-transform: uppercase;
}

.intro-body {
  text-align: center; position: relative; z-index: 1;
}
.intro-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(229,62,62,.1); border: 1px solid rgba(229,62,62,.3);
  color: #fca5a5; font-size: .68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 99px; margin-bottom: 1.5rem;
}
.intro-tag .blink {
  width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  animation: blink 1.4s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: .2; }
}
.intro-body h1 {
  font-size: 1.8rem; font-weight: 800;
  line-height: 1.2; color: #fff; margin-bottom: .5rem;
}
.intro-body h1 em {
  font-style: normal; color: var(--red);
  font-size: 2rem; letter-spacing: -1px;
  display: block;
}
.intro-body p {
  font-size: .92rem; color: var(--text2);
  line-height: 1.55; margin-bottom: 1.5rem;
}
.vol-hint {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; font-size: .74rem; color: var(--muted);
  margin-bottom: 2rem;
}

/* Buttons shared */
.btn-primary {
  display: block; width: 100%;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff; font-size: .98rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  border: none; border-radius: 16px; cursor: pointer;
  box-shadow: 0 8px 30px rgba(229,62,62,.4);
  transition: transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
}
.btn-primary:active { transform: scale(.97); }

.btn-secondary {
  display: block; width: 100%;
  padding: .9rem 1.5rem;
  background: var(--surface); color: var(--text);
  font-size: .9rem; font-weight: 600; letter-spacing: .5px;
  border: 1px solid var(--border); border-radius: 16px; cursor: pointer;
  transition: background .2s;
}
.btn-secondary:active { background: var(--surface2); }

.btn-skip {
  display: block; text-align: center; margin-top: 1.25rem;
  font-size: .8rem; color: var(--muted);
  text-decoration: underline; cursor: pointer;
  background: none; border: none;
}

/* ── 8. INCOMING CALL ────────────────────────────── */
#stage-incoming, #stage-incoming2 {
  background: #000;
  align-items: center; justify-content: space-between;
  padding: 0 0 2.5rem;
}
.call-inc-top {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: calc(var(--ios-bar) + 1.5rem);
}
.call-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2d0808, #1a0505);
  border: 2px solid rgba(229,62,62,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem;
  box-shadow: 0 0 0 0 rgba(229,62,62,.4);
  animation: ring-pulse 1.8s ease-out infinite;
  margin-bottom: 1.25rem;
}
@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(229,62,62,.4); }
  70%  { box-shadow: 0 0 0 24px rgba(229,62,62,.0); }
  100% { box-shadow: 0 0 0 0   rgba(229,62,62,.0); }
}
.call-name  { font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.call-sub   { font-size: .9rem; color: rgba(255,255,255,.55); margin-top: .25rem; }
.call-type  { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: .1rem; }

.call-btns-grid {
  width: 100%; padding: 0 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}
.call-btn {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  background: none; border: none; cursor: pointer; color: #fff;
}
.call-btn .cb-circle {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  transition: transform .12s;
}
.call-btn:active .cb-circle { transform: scale(.88); }
.call-btn .cb-label { font-size: .72rem; color: rgba(255,255,255,.65); }

.cb-decline .cb-circle { background: #e53e3e; }
.cb-answer  .cb-circle { background: #25d366; box-shadow: 0 4px 20px rgba(37,211,102,.4); }
.cb-remind  .cb-circle { background: rgba(255,255,255,.18); }
.cb-msg     .cb-circle { background: rgba(255,255,255,.18); }

/* ── 9. RECOVERY (declined) ──────────────────────── */
#stage-declined {
  background: var(--bg);
  overflow: hidden;
  justify-content: space-between;
}
/* Crime tape */
.crime-tape {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.tape-bar {
  width: 200%; height: 44px;
  background: repeating-linear-gradient(
    -45deg,
    #fbbf24 0px, #fbbf24 20px,
    #1a1a1a 20px, #1a1a1a 40px
  );
  animation: tape-scroll 8s linear infinite;
  display: flex; align-items: center; padding-left: 1rem;
}
@keyframes tape-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tape-text {
  font-size: .7rem; font-weight: 900; letter-spacing: 3px;
  color: #1a1a1a; text-transform: uppercase; white-space: nowrap;
  pointer-events: none;
}

.recovery-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; text-align: center; gap: 1rem;
}
.recovery-icon {
  font-size: 3.5rem; margin-bottom: .5rem;
  animation: shake-miss 3s ease infinite;
}
@keyframes shake-miss {
  0%, 90%, 100% { transform: none; }
  92% { transform: rotate(-8deg); }
  94% { transform: rotate(8deg); }
  96% { transform: rotate(-5deg); }
  98% { transform: rotate(5deg); }
}
.recovery-body h2 {
  font-size: 1.4rem; font-weight: 800; color: var(--red); letter-spacing: .5px;
}
.recovery-body p {
  font-size: .88rem; color: var(--text2); line-height: 1.55; max-width: 280px;
}
.recovery-countdown {
  font-size: 3rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--red); letter-spacing: -2px;
  background: rgba(229,62,62,.08); border: 2px solid rgba(229,62,62,.2);
  border-radius: 16px; padding: .5rem 1.5rem;
}
.recovery-cta { width: 100%; }

/* ── 10. ACTIVE CALL ─────────────────────────────── */
#stage-active1, #stage-active2 {
  background: #000;
  align-items: center; justify-content: space-between;
  padding: 0 2rem 2.5rem;
}
.active-top {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: calc(var(--ios-bar) + 1.5rem);
  gap: .3rem;
}
.active-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2d0808, #1a0505);
  border: 2px solid rgba(229,62,62,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; margin-bottom: 1rem;
}
.active-name  { font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.active-sub   { font-size: .85rem; color: rgba(255,255,255,.5); }
.active-timer { font-size: 1rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.active-label {
  font-size: .7rem; background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3); color: #6ee7b7;
  padding: .2rem .7rem; border-radius: 99px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-top: .3rem;
}

.call-controls {
  width: 100%; display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem; margin-bottom: .5rem;
}
.ctrl-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: .3rem;
  background: none; border: none; cursor: pointer;
  transition: opacity .2s;
}
.ctrl-btn .cc {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transition: background .2s, transform .12s;
}
.ctrl-btn:active .cc { transform: scale(.88); }
.ctrl-btn.active .cc { background: rgba(255,255,255,.85); }
.ctrl-btn.active .cc svg,
.ctrl-btn.active .cc span { filter: invert(1); }
.ctrl-btn .cl { font-size: .65rem; color: rgba(255,255,255,.6); }

.btn-end-call {
  width: 68px; height: 68px; border-radius: 50%;
  background: #e53e3e; border: none; cursor: pointer;
  font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  margin: .5rem auto 0;
  box-shadow: 0 4px 20px rgba(229,62,62,.4);
  transition: transform .12s;
}
.btn-end-call:active { transform: scale(.9); }

.play-hint {
  position: absolute;
  bottom: 150px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px; padding: .6rem 1.2rem;
  font-size: .82rem; color: #fff; cursor: pointer;
  display: none; align-items: center; gap: .4rem;
  white-space: nowrap; z-index: 10;
}
.play-hint.show { display: flex; }

/* Muted visual */
.muted-bar {
  position: absolute; top: 58px; left: 50%; transform: translateX(-50%);
  background: rgba(229,62,62,.2); border: 1px solid rgba(229,62,62,.4);
  border-radius: 99px; padding: .25rem .9rem;
  font-size: .72rem; color: #fca5a5;
  display: none; align-items: center; gap: .4rem;
  white-space: nowrap; z-index: 20;
}
.muted-bar.show { display: flex; }

/* Toast fica abaixo da muted-bar para não sobrepor */
.toast { top: 96px; }

/* ── 11. CALL DROPPED ────────────────────────────── */
#stage-dropped {
  background: #000;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
}
.dropped-icon {
  font-size: 3rem;
  animation: dropped-shake .15s 3;
}
@keyframes dropped-shake {
  0%, 100% { transform: none; }
  25% { transform: translate(-4px, 2px); }
  75% { transform: translate(4px, -2px); }
}
.dropped-title  { font-size: 1.2rem; font-weight: 700; color: #fff; }
.dropped-sub    { font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; padding: 0 2rem; }
.dropped-number {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .6rem 1.2rem;
  font-size: .9rem; color: var(--text2);
  display: flex; align-items: center; gap: .6rem;
}
.dropped-number .num { font-size: 1.1rem; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.dropped-btns { width: 100%; padding: 0 2rem; display: flex; flex-direction: column; gap: .75rem; }
.btn-redial {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; font-weight: 700; font-size: .95rem;
  border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
  transition: transform .12s;
}
.btn-redial:active { transform: scale(.97); }

/* Glitch animation */
.glitch-overlay {
  position: absolute; inset: 0;
  background: #000; z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .1s;
}
.glitch-overlay.flash { opacity: 1; }

/* ── 12. CALL ENDED ──────────────────────────────── */
#stage-ended {
  background: #000;
  align-items: center; justify-content: center;
  flex-direction: column; gap: .75rem;
}
.ended-icon  { font-size: 2.5rem; opacity: .7; }
.ended-label { font-size: 1.1rem; color: rgba(255,255,255,.75); font-weight: 600; }
.ended-dur   { font-size: .85rem; color: rgba(255,255,255,.4); }

/* ── 13. WA NOTIFICATION ─────────────────────────── */
#stage-wanotif {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 60%, #0d1117 100%);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; padding: 2rem;
  overflow: hidden;
}
.lock-time { font-size: 4.5rem; font-weight: 200; color: #fff; letter-spacing: -3px; line-height: 1; }
.lock-date { font-size: .92rem; color: rgba(255,255,255,.65); margin-bottom: 2rem; }
.wa-notif-card {
  width: 100%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 1rem 1.1rem;
  display: flex; align-items: flex-start; gap: .75rem;
  cursor: pointer;
  transition: transform .12s;
}
.wa-notif-card:active { transform: scale(.98); }
.wa-notif-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 12px; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.notif-app  { font-size: .68rem; color: rgba(255,255,255,.5); font-weight: 500; }
.notif-who  { font-size: .9rem; font-weight: 700; color: #fff; }
.notif-msg  { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .1rem; }
.notif-time { font-size: .68rem; color: rgba(255,255,255,.4); margin-left: auto; white-space: nowrap; }
.swipe-hint { font-size: .75rem; color: rgba(255,255,255,.3); margin-top: 1.5rem; }

/* ── 14. WHATSAPP CHAT ───────────────────────────── */
#stage-wachat {
  background: var(--wa-bg);
  flex-direction: column; overflow: hidden;
}
.wa-hdr {
  background: var(--wa-hdr);
  padding: calc(var(--ios-bar) + 4px) 1rem .75rem;
  display: flex; align-items: center; gap: .75rem;
  position: relative; z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.wa-hdr-back { font-size: 1.3rem; color: var(--wa-link); padding-right: .25rem; cursor: pointer; }
.wa-hdr-ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2d0808, #1a0505);
  border: 1.5px solid rgba(229,62,62,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
}
.wa-hdr-info { flex: 1; cursor: pointer; }
.wa-hdr-name   { font-size: .94rem; font-weight: 700; color: #fff; }
.wa-hdr-status { font-size: .74rem; color: #25d366; }
.wa-hdr-acts   { display: flex; gap: 1.1rem; color: rgba(255,255,255,.5); font-size: 1.2rem; cursor: pointer; }

.wa-wallpaper {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events: none; top: 90px;
}

.wa-msgs {
  flex: 1; overflow-y: auto;
  padding: .75rem .75rem 1rem;
  display: flex; flex-direction: column; gap: .35rem;
  scrollbar-width: none; position: relative; z-index: 1;
}
.wa-msgs::-webkit-scrollbar { display: none; }

/* Date divider */
.wa-date-div {
  display: flex; align-items: center; justify-content: center;
  margin: .5rem 0;
}
.wa-date-div span {
  background: rgba(11,20,26,.9);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px; padding: .2rem .75rem;
  font-size: .7rem; color: rgba(255,255,255,.55);
}

/* Message bubble */
.wa-msg { max-width: 82%; animation: msgIn .22s ease; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.wa-bubble {
  background: var(--wa-in);
  border-radius: 8px 18px 18px 4px;
  padding: .55rem .8rem;
  color: #e2e8f0; font-size: .9rem; line-height: 1.48;
  word-break: break-word; position: relative;
}
.wa-meta {
  display: flex; justify-content: flex-end; align-items: center;
  gap: .25rem; margin-top: .2rem;
}
.wa-time  { font-size: .65rem; color: rgba(255,255,255,.38); }
.wa-ticks { font-size: .65rem; color: rgba(255,255,255,.35); transition: color .5s; }
.wa-ticks.read { color: var(--wa-link); }

/* Starred message */
.wa-bubble.starred::after {
  content: '★';
  position: absolute; top: .3rem; right: .4rem;
  font-size: .55rem; color: var(--gold-lt); opacity: .6;
}

/* Audio bubble */
.wa-audio {
  background: var(--wa-in);
  border-radius: 8px 18px 18px 4px;
  padding: .6rem .8rem;
  display: flex; align-items: center; gap: .7rem;
  min-width: 220px; max-width: 280px;
}
.wa-play {
  width: 38px; height: 38px; border-radius: 50%;
  background: #25d366; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; flex-shrink: 0;
  transition: transform .12s; box-shadow: 0 2px 8px rgba(37,211,102,.3);
}
.wa-play:active { transform: scale(.9); }
.wa-audio-body { flex: 1; }
.wa-wave {
  display: flex; align-items: center; gap: 2px; height: 26px; margin-bottom: 3px;
}
.wa-wave span {
  display: block; width: 3px; background: rgba(255,255,255,.25);
  border-radius: 2px; transition: background .3s, height .1s;
}
.wa-wave.playing span {
  background: #25d366 !important;
  animation: wave-play .5s ease-in-out infinite alternate;
}
.wa-wave span:nth-child(2n)   { animation-delay: .08s; }
.wa-wave span:nth-child(3n)   { animation-delay: .16s; }
.wa-wave span:nth-child(4n)   { animation-delay: .24s; }
.wa-wave span:nth-child(5n)   { animation-delay: .32s; }
@keyframes wave-play {
  from { transform: scaleY(.3); }
  to   { transform: scaleY(1); }
}
.wa-dur { font-size: .66rem; color: rgba(255,255,255,.42); }
.wa-ava { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2d0808, #1a0505); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }

/* Typing */
.wa-typing {
  display: flex; align-items: center; gap: 4px;
  padding: .6rem .9rem;
  background: var(--wa-in);
  border-radius: 8px 18px 18px 4px;
  width: fit-content;
  animation: msgIn .22s ease;
}
.wa-typing span {
  width: 7px; height: 7px;
  background: rgba(255,255,255,.38); border-radius: 50%;
  animation: typing-bounce .8s infinite;
}
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(.75); opacity: .4; }
  40%           { transform: scale(1.1); opacity: 1; }
}

/* Code badge */
.code-badge {
  display: inline-block;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
  color: #34d399; font-family: 'Courier New', monospace;
  font-weight: 700; font-size: .98rem;
  padding: .2rem .65rem; border-radius: 6px; letter-spacing: 2px;
}

/* WA CTA button */
.wa-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff; font-size: .95rem; font-weight: 700;
  border: none; border-radius: 14px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(229,62,62,.4);
  animation: pulse-cta 2s ease infinite;
  margin: .3rem 0;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 4px 20px rgba(229,62,62,.4); }
  50%       { box-shadow: 0 4px 35px rgba(229,62,62,.65); }
}

/* WA input bar (decorative) */
.wa-input-bar {
  background: var(--wa-hdr);
  padding: .5rem .75rem;
  display: flex; align-items: center; gap: .6rem;
  flex-shrink: 0;
}
.wa-input-field {
  flex: 1; background: #2a3942; border-radius: 24px;
  padding: .55rem 1rem; font-size: .88rem;
  color: rgba(255,255,255,.45);
  display: flex; align-items: center;
}
.wa-input-mic {
  width: 40px; height: 40px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
}

/* Matrix canvas */
#matrix-canvas {
  position: absolute; inset: 0; z-index: 50;
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
#matrix-canvas.show { opacity: 1; }

/* ── 15. CHECKOUT ────────────────────────────────── */
#stage-checkout {
  background: var(--bg);
  overflow-y: auto; flex-direction: column;
  scrollbar-width: none;
}
#stage-checkout::-webkit-scrollbar { display: none; }
.checkout-inner {
  padding: calc(var(--ios-bar) + 1rem) 1.5rem 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.co-logo { display: flex; align-items: center; gap: .6rem; justify-content: center; }
.co-logo .badge { font-size: 1.8rem; }
.co-logo .name  { font-size: 1.3rem; font-weight: 800; letter-spacing: 3px; color: var(--text); }

.co-tag {
  text-align: center; font-size: .68rem; font-weight: 700;
  letter-spacing: 2px; color: var(--gold-lt); text-transform: uppercase;
  background: rgba(217,119,6,.1); border: 1px solid rgba(217,119,6,.25);
  padding: .3rem .9rem; border-radius: 99px; display: inline-block; align-self: center;
}
.co-headline { text-align: center; }
.co-headline h2 {
  font-size: 1.4rem; font-weight: 800; color: var(--text);
  line-height: 1.3; margin-bottom: .5rem;
}
.co-headline h2 em { font-style: normal; color: var(--red); }
.co-headline p { font-size: .88rem; color: var(--text2); line-height: 1.55; }

.plan-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc; font-size: .7rem; font-weight: 700;
  letter-spacing: 1px; padding: .3rem .9rem; border-radius: 99px;
  text-transform: uppercase; align-self: center;
}

/* Bonus items */
.bonuses { display: flex; flex-direction: column; gap: .6rem; }
.bonus-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: .8rem 1rem;
}
.bi-icon {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.bi-icon.r  { background: rgba(229,62,62,.12); }
.bi-icon.g  { background: rgba(16,185,129,.12); }
.bi-icon.o  { background: rgba(217,119,6,.12); }
.bi-icon.i  { background: rgba(99,102,241,.12); }
.bi-text strong { font-size: .87rem; color: var(--text); display: block; font-weight: 700; }
.bi-text span   { font-size: .75rem; color: var(--text2); }

/* Price block */
.price-block {
  background: radial-gradient(ellipse at top, rgba(229,62,62,.06) 0%, transparent 70%),
              var(--surface);
  border: 2px solid rgba(229,62,62,.3);
  border-radius: 22px; padding: 1.5rem 1.25rem;
  text-align: center; position: relative; overflow: hidden;
}
.price-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,62,62,.4), transparent);
}
.price-label  { font-size: .68rem; font-weight: 700; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: .5rem; }
.price-from   { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.price-main   { font-size: 4rem; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -3px; margin: .2rem 0; }
.price-period { font-size: .82rem; color: var(--text2); margin-bottom: .75rem; }
.price-warn   {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(217,119,6,.1); border: 1px solid rgba(217,119,6,.2);
  border-radius: 8px; padding: .4rem .8rem;
  font-size: .73rem; color: var(--gold-lt); font-weight: 600;
  margin-bottom: .5rem;
}
.vagas-row    { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .78rem; color: #fca5a5; font-weight: 600; margin-top: .5rem; }
.vagas-dot    { width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: blink 1.4s infinite; }

.btn-checkout {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1.1rem; width: 100%;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff; font-size: .98rem; font-weight: 800; letter-spacing: .5px;
  border: none; border-radius: 16px; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 30px rgba(229,62,62,.45);
  transition: transform .12s;
}
.btn-checkout:active { transform: scale(.98); }
.co-security { text-align: center; font-size: .74rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: .35rem; }

/* ── 16. MODAIS ──────────────────────────────────── */
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: flex-end;
  display: none;
}
.modal-overlay.show { display: flex; }

.modal-sheet {
  width: 100%; background: #1c1c1e;
  border-radius: 20px 20px 0 0;
  padding: 1rem;
  animation: sheetUp .3s cubic-bezier(.22,.68,0,1.1);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
.modal-handle {
  width: 36px; height: 4px; background: rgba(255,255,255,.2);
  border-radius: 2px; margin: 0 auto 1rem;
}
.modal-title { font-size: 1rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 1rem; }

/* Keypad */
.keypad-display {
  font-size: 2rem; font-weight: 300; color: #fff;
  text-align: center; letter-spacing: 3px;
  min-height: 2.5rem; margin-bottom: .75rem;
  font-variant-numeric: tabular-nums;
}
.keypad-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .6rem; margin-bottom: 1rem;
}
.kp-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 70px; border-radius: 50%; background: rgba(255,255,255,.12);
  border: none; cursor: pointer; color: #fff;
  transition: background .1s, transform .1s;
}
.kp-btn:active { background: rgba(255,255,255,.25); transform: scale(.92); }
.kp-btn .kp-num  { font-size: 1.6rem; font-weight: 400; line-height: 1; }
.kp-btn .kp-sub  { font-size: .5rem; letter-spacing: 1.5px; color: rgba(255,255,255,.5); text-transform: uppercase; margin-top: 1px; }
.kp-actions { display: flex; align-items: center; justify-content: space-around; }
.kp-call {
  width: 68px; height: 68px; border-radius: 50%;
  background: #25d366; border: none; cursor: pointer;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.kp-del {
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: #fff; opacity: .7;
  display: flex; align-items: center; justify-content: center;
}

/* Contacts modal */
.contacts-list { display: flex; flex-direction: column; gap: .5rem; }
.contact-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .5rem; border-radius: 12px; cursor: pointer;
  transition: background .15s;
}
.contact-row:active { background: rgba(255,255,255,.06); }
.contact-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.08);
}
.contact-info strong { font-size: .9rem; color: #fff; display: block; font-weight: 600; }
.contact-info span   { font-size: .72rem; color: var(--muted); }
.contact-call {
  margin-left: auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(37,211,102,.15); border: 1px solid rgba(37,211,102,.3);
  color: #25d366; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}

/* FaceTime modal */
.facetime-body { text-align: center; padding: .5rem 0 1rem; }
.facetime-body .ft-icon { font-size: 3rem; margin-bottom: .75rem; }
.facetime-body p { font-size: .88rem; color: var(--text2); line-height: 1.55; margin-bottom: 1.25rem; }

/* Toast */
.toast {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px; padding: .5rem 1.1rem;
  font-size: .8rem; color: #fff; white-space: nowrap; z-index: 600;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── 17. Utilities ───────────────────────────────── */
.hidden { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.08) transparent; }
