/* ============================================================
   DIOGO GOTARDI — MÉTODO VOX — Design System
   Identidade oficial da marca: teal profundo + menta + coral + branco
   "act like you own the world"
   ============================================================ */

:root {
  /* cores oficiais da marca */
  --navy: #2b616d;        /* teal profundo — cor primária (era navy) */
  --navy-2: #234f59;       /* teal escuro — hover/gradientes */
  --navy-3: #1a3940;       /* teal mais escuro — fundos profundos */
  --gold: #fa8d62;         /* coral — cor de destaque/conquista (era dourado) */
  --gold-light: #fcae8c;   /* coral claro */
  --mint: #b2dbd5;         /* menta — cor secundária oficial */
  --cream: #ffffff;        /* branco — fundo principal */
  --cream-2: #e3f1ee;      /* menta bem clara — fundo de cards secundários */
  --ink: #1c2b2e;
  --ink-soft: #52696d;
  --emerald: #2f8f7a;
  --coral: #fa8d62;
  --red: #d64545;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 10px 30px rgba(43, 97, 109, 0.10);
  --shadow-lift: 0 16px 40px rgba(43, 97, 109, 0.20);

  /* tipografia: aproximações livres das fontes da marca
     (Adam Light -> Jost, Arista Pro Light -> Quicksand, Clauques Script -> Sacramento)
     Troque pelos arquivos originais em fonts/ quando disponíveis — ver README */
  --font-serif: "Jost", "Century Gothic", sans-serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-round: "Quicksand", "Manrope", sans-serif;
  --font-script: "Sacramento", "Segoe Script", cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; display: flex; flex-direction: column; }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }

/* Sem isso, todo toque em botão/link no iOS Safari pisca um retângulo cinza
   por cima (o "tap highlight" padrão do WebKit) antes da animação :active
   do próprio botão aparecer — trocando a sensação de "app" por "site".
   touch-action: manipulation também tira o pequeno atraso de 300ms que o
   iOS usa pra esperar um possível duplo-toque de zoom. */
a, button, .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ---------- layout shells ---------- */

.vox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* iPhone com notch/Dynamic Island, app instalado na Tela de Início
     (standalone): a barra de status fica "black-translucent" (ver
     index.html), ou seja, o conteúdo roda por baixo dela — sem este respiro
     a logo/menu ficam colados ou escondidos atrás do entalhe.
     env(safe-area-inset-top) some sozinho em navegador comum (Safari em
     aba, Android), então não afeta ninguém mais. */
  padding: calc(16px + env(safe-area-inset-top)) 28px 16px;
  background: var(--navy);
  color: var(--cream);
}

.vox-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vox-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.vox-logo .mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}
.vox-logo .tagline {
  font-size: 12px;
  color: rgba(250, 246, 238, 0.6);
  letter-spacing: 0.02em;
}

.vox-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.vox-nav a {
  color: rgba(250, 246, 238, 0.75);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.vox-nav a.active, .vox-nav a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.vox-shell {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 20px 90px;
}

.vox-demo-banner {
  background: var(--gold-light);
  color: var(--navy);
  font-size: 13px;
  text-align: center;
  padding: 8px 14px;
  font-weight: 600;
}

.vox-update-banner {
  background: var(--navy);
  color: var(--cream);
  font-size: 13px;
  text-align: center;
  padding: 10px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vox-update-banner #update-now-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* Banner de instalação no iOS (mais texto que o de atualização — alinha à
   esquerda em vez de centralizar, e o botão de dispensar fica discreto). */
.vox-ios-banner {
  justify-content: space-between;
  text-align: left;
  padding-top: calc(10px + env(safe-area-inset-top));
}

.vox-ios-banner span {
  flex: 1;
  min-width: 220px;
}

.vox-ios-banner #ios-banner-dismiss-btn {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- cards & buttons ---------- */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.35);
}
.btn-navy {
  background: var(--navy);
  color: var(--cream);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-3);
}
.btn-soft-red {
  background: #fbdcd6;
  color: #a13c2e;
}
.btn-soft-green {
  background: #d9f0e4;
  color: #1d7a5f;
}
.btn-block { width: 100%; }

.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e3ddcd;
  background: var(--white);
  font-family: var(--font-sans);
  /* 16px é o mínimo pra iOS Safari não dar zoom automático ao focar o campo. */
  font-size: 16px;
  color: var(--ink);
}
.input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ---------- landing ---------- */

.hero {
  background: radial-gradient(120% 120% at 50% 0%, var(--navy-3), var(--navy) 70%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 26px;
}
.hero h1 {
  color: var(--white);
  font-size: 34px;
  margin: 10px 0 12px;
}
.hero p {
  color: rgba(250, 246, 238, 0.78);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 6px;
}
.hero .kicker {
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-logo {
  max-width: 260px;
  width: 60%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.vox-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 80px;
  animation: vox-splash-fade 1.4s ease-in-out infinite;
}
.vox-splash img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}
@keyframes vox-splash-fade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- dashboard stats ---------- */

.stat-row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.stat-pill {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-pill .num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}
.stat-pill .label {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-pill.streak .num { color: var(--coral); }
.stat-pill.xp .num { color: var(--gold); }

/* ---------- trilha (lesson path) ---------- */

.phase-heading {
  margin: 30px 0 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.phase-heading h2 { margin: 0; font-size: 20px; }
.phase-heading .phase-sub { font-size: 13px; color: var(--ink-soft); }

.trail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trail-node {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, border-color .12s ease;
}
.trail-node:hover { transform: translateY(-2px); border-color: var(--gold-light); }
.trail-node.locked { opacity: 0.5; cursor: not-allowed; }
.trail-node.locked:hover { transform: none; border-color: transparent; }
.trail-node.done { border-color: var(--emerald); }
.trail-node.marco {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--cream);
}

.trail-node .node-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-serif);
  background: var(--cream-2);
  color: var(--navy);
  flex-shrink: 0;
}
.trail-node.done .node-badge { background: var(--emerald); color: white; }
.trail-node.marco .node-badge { background: var(--gold); color: var(--navy); }

.trail-node .node-title { font-weight: 700; font-size: 14.5px; }
.trail-node .node-sub { font-size: 12.5px; opacity: 0.65; }
.trail-node.marco .node-sub { color: var(--gold-light); }

/* ---------- pronúncia / gravação ---------- */

.rec-phrase {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 16px;
}
.rec-phrase .txt { font-family: var(--font-serif); font-size: 22px; color: var(--gold-light); }
.rec-phrase .sub { font-size: 13px; color: rgba(255, 255, 255, 0.88); margin-top: 8px; }

.rec-controls { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 18px 0; flex-wrap: wrap; }

.rec-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 999px; padding: 12px 22px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14.5px;
  cursor: pointer; background: var(--navy); color: var(--cream);
}
.rec-btn.recording { background: var(--red); animation: rec-pulse 1.1s infinite; }
.rec-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rec-btn.play { background: var(--cream-2); color: var(--navy); }

@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(214,69,69,0.45); }
  70% { box-shadow: 0 0 0 12px rgba(214,69,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(214,69,69,0); }
}

.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.rec-playback { text-align: center; margin: 14px 0; }
.rec-playback audio { width: 100%; max-width: 340px; }

.word-diff { text-align: center; font-size: 17px; margin: 16px 0; line-height: 1.9; }
.word-diff span { display: inline-block; margin: 0 5px; padding: 2px 4px; border-radius: 4px; }
.word-diff span.hit { color: #1d5c4d; background: #eaf7f3; }
.word-diff span.miss { color: #8a5a10; background: #fdf1de; text-decoration: underline wavy #e0a53c; }

.pron-score { text-align: center; font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 10px; }

.help-box {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
  text-align: center;
}
.help-box .en { font-size: 15.5px; color: var(--navy); font-style: italic; }
.help-box .pt { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- mini-diálogos ---------- */

.dialogue-script { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.dialogue-line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  border: 1.5px solid #e3ddcd; background: var(--white);
  opacity: 0.5;
}
.dialogue-line.active { opacity: 1; border-color: var(--gold); background: #fbf3de; }
.dialogue-line.done { opacity: 0.75; }
.dialogue-line .speaker-tag {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  width: 46px; flex-shrink: 0; color: var(--ink-soft);
}
.dialogue-line.you .speaker-tag { color: var(--coral); }
.dialogue-line .line-text { flex: 1; font-size: 14.5px; }
.dialogue-line .line-status { font-size: 18px; flex-shrink: 0; }

/* ---------- lesson player ---------- */

.progress-track {
  height: 10px;
  background: var(--cream-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 26px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .25s ease;
}

.exercise-prompt {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.4;
}

.option-grid {
  display: grid;
  gap: 10px;
}
.option-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e3ddcd;
  background: var(--white);
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.option-btn:hover { border-color: var(--gold); }
.option-btn.selected { border-color: var(--gold); background: #fbf3de; }
.option-btn.correct { border-color: var(--emerald); background: #eaf7f3; }
.option-btn.incorrect { border-color: var(--red); background: #fcecec; }

.word-bank { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; min-height: 44px; }
.word-chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.word-chip.used { opacity: 0.3; cursor: not-allowed; }
.answer-line {
  min-height: 52px;
  border-bottom: 2px solid var(--navy-3);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 0; margin-bottom: 22px;
}
.answer-line .word-chip { background: var(--gold); color: var(--navy); }

.feedback-banner {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14.5px;
  margin-top: 16px;
  display: none;
}
.feedback-banner.show { display: block; }
.feedback-banner.correct { background: #eaf7f3; color: #1d5c4d; }
.feedback-banner.incorrect { background: #fcecec; color: #8a2a2a; }

.vocab-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer;
}
.vocab-card .word { font-family: var(--font-serif); font-size: 30px; color: var(--gold-light); }
.vocab-card .hint { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); margin-top: 10px; }
.vocab-card .translation { font-size: 18px; margin-top: 14px; color: var(--white); }
.vocab-card .example { font-size: 13px; margin-top: 8px; color: rgba(255, 255, 255, 0.85); font-style: italic; }

/* ---------- chat (marco / ai conversation) ---------- */

.chat-window {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px;
  height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.4;
}
.bubble.ai {
  align-self: flex-start;
  background: var(--cream-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.bubble.user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}
.bubble.feedback {
  align-self: center;
  background: #fbf3de;
  border: 1px dashed var(--gold);
  color: var(--navy);
  font-size: 13.5px;
  max-width: 95%;
}
.chat-input-row { display: flex; gap: 10px; }
.chat-input-row .input { flex: 1; }

/* ---------- leaderboard ---------- */

.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}
.lb-rank {
  font-family: var(--font-serif);
  font-weight: 700;
  width: 28px;
  text-align: center;
  color: var(--ink-soft);
}
.lb-row.top1 .lb-rank { color: var(--gold); font-size: 20px; }
.lb-row.top2 .lb-rank { color: #9aa1ac; font-size: 18px; }
.lb-row.top3 .lb-rank { color: #b5773f; font-size: 18px; }
.lb-row.me { border: 2px solid var(--gold); }
.lb-name { flex: 1; font-weight: 600; }
.lb-xp { font-weight: 700; color: var(--navy); font-size: 14px; }
.lb-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.lb-tab {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--cream-2); color: var(--navy); cursor: pointer;
}
.lb-tab.active { background: var(--navy); color: var(--gold-light); }

/* ---------- badges ---------- */

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.badge-item {
  text-align: center;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.badge-item.locked { opacity: 0.6; }
.badge-item.locked .icon { opacity: 0.5; }
.badge-item.unlocked {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  box-shadow: 0 10px 26px rgba(250, 141, 98, 0.28);
}
.badge-item.unlocked .name { color: var(--gold-light); }
.badge-item.unlocked::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: badge-shine 3.2s ease-in-out infinite;
}
@keyframes badge-shine {
  0% { left: -60%; }
  50% { left: 130%; }
  100% { left: 130%; }
}
.badge-item .icon { font-size: 30px; margin-bottom: 8px; }
.badge-item .name { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.badge-item .badge-progress {
  height: 6px;
  background: var(--cream-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.badge-item .badge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.badge-item .badge-hint {
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.3;
}
.badge-item .badge-hint.unlocked {
  color: var(--emerald);
  font-weight: 700;
}

/* ---------- misc ---------- */

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.spacer { height: 20px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--gold-light);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  z-index: 999;
  opacity: 0;
  transition: opacity .2s ease;
}
.toast.show { opacity: 1; }

/* ---------- navegação inferior (mobile, estilo app de celular) ---------- */

.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: var(--white);
  border-top: 1px solid #eee2cc;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -6px 20px rgba(14, 27, 43, 0.06);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}
.bottom-nav-item .icon { font-size: 20px; line-height: 1; }
.bottom-nav-item .label { font-size: 10.5px; font-weight: 700; }
.bottom-nav-item.active { color: var(--gold); }

/* ---------- passaporte VOX ---------- */

.passport-stamps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
}
.passport-stamp-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Antes e Depois (lado a lado em telas largas) ---------- */

.vox-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .vox-before-after { grid-template-columns: 1fr; }
}

/* ---------- tira de reforço "treinei → evoluí → conquistei → falo melhor" ---------- */

.vox-loop-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px 8px;
  margin-top: 16px; padding: 10px 14px;
  background: var(--cream-2); border-radius: var(--radius-md);
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
}
.vox-loop-strip .arrow { color: var(--gold); font-weight: 400; }
.vox-loop-strip .highlight { color: var(--navy); }

/* ---------- Mapa VOX (mapa-múndi desbloqueável) ---------- */

.vox-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--navy-3);
}
.vox-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.vox-map-plane {
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  offset-path: path("M 60,420 Q 300,90 520,150 Q 760,210 940,80");
  offset-rotate: auto;
  animation: vox-plane-fly 26s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  pointer-events: none;
}
@keyframes vox-plane-fly {
  0% { offset-distance: 0%; opacity: 0; }
  4% { opacity: 1; }
  96% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.vox-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: transform 0.15s ease;
  /* área de toque maior que o círculo visível — importante no celular,
     onde vários destinos ficam próximos (ex: cluster da Europa) */
  background-clip: padding-box;
}
.vox-pin::before {
  content: "";
  position: absolute;
  inset: -7px;
}
@media (max-width: 560px) {
  .vox-map-wrap { aspect-ratio: 4 / 3; }
}
.vox-pin:active { transform: translate(-50%, -50%) scale(0.92); }

.vox-pin.locked {
  background: rgba(255,255,255,0.14);
  filter: grayscale(1) blur(0.2px);
  opacity: 0.55;
}
.vox-pin.locked .vox-pin-emoji { font-size: 12px; }

.vox-pin.unlocked {
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold));
  box-shadow: 0 0 0 3px rgba(250, 141, 98, 0.25), 0 4px 12px rgba(0,0,0,0.35);
  animation: vox-pin-pulse 2.6s ease-in-out infinite;
}
@keyframes vox-pin-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(250, 141, 98, 0.25), 0 4px 12px rgba(0,0,0,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(250, 141, 98, 0.06), 0 4px 16px rgba(0,0,0,0.4); }
}

.vox-pin.recommended {
  animation: vox-pin-recommended 1.6s ease-in-out infinite;
}
@keyframes vox-pin-recommended {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.vox-map-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12px; color: var(--ink-soft);
}
.vox-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vox-map-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.vox-destination-modal .flag-big { font-size: 46px; line-height: 1; }
.vox-destination-modal .stamp-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px dashed var(--gold);
  margin: 10px auto;
}
.vox-destination-modal .stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 16px; text-align: left;
}
.vox-destination-modal .stat-box {
  background: var(--cream-2); border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.vox-destination-modal .stat-box .n { font-size: 18px; font-weight: 800; color: var(--navy); }
.vox-destination-modal .stat-box .l { font-size: 11px; color: var(--ink-soft); }

/* ---------- botão flutuante de feedback (WhatsApp) ---------- */

.feedback-fab {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  transition: transform .12s ease;
}
.feedback-fab:hover { transform: translateY(-2px); }
.feedback-fab:active { transform: scale(0.96); }
.feedback-fab-icon { font-size: 18px; line-height: 1; }

.emergency-fab {
  position: fixed;
  left: 20px;
  bottom: 28px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #ffffff;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 10px 24px rgba(214, 69, 69, 0.45);
  transition: transform .12s ease;
}
.emergency-fab:hover { transform: translateY(-2px); }
.emergency-fab:active { transform: scale(0.96); }
.emergency-fab-icon { font-size: 18px; line-height: 1; }

.stamp-clickable {
  border: none;
  background: transparent;
  padding: 0;
  display: block;
  width: 100%;
  cursor: pointer;
  font: inherit;
}

/* ---------- rodapé institucional ---------- */

.vox-footer {
  background: var(--navy-3);
  color: rgba(250, 246, 238, 0.65);
  text-align: center;
  padding: 22px 20px;
  font-size: 12px;
  line-height: 1.7;
}
.vox-footer p { margin: 0; }
.vox-footer-company {
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 12.5px;
  margin-bottom: 2px !important;
}
.vox-footer a { color: rgba(250, 246, 238, 0.8); text-decoration: underline; }
.vox-footer a:hover { color: var(--gold-light); }
.vox-footer-copy { margin-top: 6px !important; opacity: 0.7; }

@media (max-width: 560px) {
  .vox-nav { display: none; }
  .stat-row { flex-wrap: wrap; }
  .hero h1 { font-size: 26px; }
  .bottom-nav { display: flex; }
  .vox-shell { padding-bottom: 90px; }
  .vox-footer { padding-bottom: calc(22px + 70px + env(safe-area-inset-bottom)); }
  .feedback-fab {
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 12px;
  }
  .feedback-fab-label { display: none; }
  .emergency-fab {
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 12px;
  }
  .emergency-fab-label { display: none; }
}

/* ---- modal genérico (card compartilhável, etc.) ---- */
.vox-modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 20, 25, 0.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 20px;
}
.vox-modal-card {
  background: var(--cream); border-radius: 20px; padding: 24px;
  max-width: 340px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* ---- Hub do Modo Viagem: cabeçalho mini + hero do dia + carrossel ---- */
/* Redesenho pra reduzir "tudo empilhado do mesmo jeito": 1 card gigante de
   ação do dia (hero) em vez de 4-5 cards de mesmo peso, cabeçalho compacto
   com streak + carimbos, e recursos secundários num carrossel horizontal. */
.vox-mini-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.vox-mini-stat {
  display: flex; align-items: center; gap: 6px;
  font-weight: 800; color: var(--navy); font-size: 14.5px;
}
.vox-hero-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-lift);
}
.vox-hero-kicker {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 800; margin: 0 0 8px;
}
.vox-hero-title {
  font-size: 21px; font-weight: 800; margin: 0 0 6px; color: var(--white); line-height: 1.3;
}
.vox-hero-meta {
  font-size: 13px; opacity: 0.8; margin: 0 0 16px; color: var(--cream);
}
.vox-month-card {
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}
.vox-carousel {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px;
  margin-bottom: 22px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.vox-carousel-item {
  flex: 0 0 158px; scroll-snap-align: start;
  background: var(--white); border-radius: var(--radius-md);
  padding: 14px; box-shadow: var(--shadow-card);
  text-decoration: none; display: flex; flex-direction: column; gap: 6px;
}
.vox-carousel-item .icon { font-size: 22px; }
.vox-carousel-item .title { font-weight: 800; color: var(--navy); font-size: 13px; line-height: 1.25; }
.vox-carousel-item .sub { font-size: 11px; color: var(--ink-soft); line-height: 1.3; }
