/* ============================================================
   DIOGO GOTARDI — VOX ENGLISH FOR DOCTORS — Design System
   Identidade: charcoal (estrutura/autoridade) + esmeralda (ação/aprovação)
   + âmbar (atenção/pendente) + branco. Paleta "medtech premium" —
   escolhida pelo Diogo em 2026-08 (opção C do brainstorm de paletas).
   ============================================================ */

:root {
  /* cores oficiais da marca */
  --navy: #2f3436;         /* charcoal — cor primária (era teal) */
  --navy-2: #23272a;       /* charcoal escuro — hover/gradientes */
  --navy-3: #1a1d1f;       /* charcoal mais escuro — fundos profundos */
  --gold: #10b981;         /* esmeralda — cor de destaque/CTA/conquista (era coral) */
  --gold-light: #6ee7b7;   /* esmeralda clara */
  --mint: #d1f5e8;         /* esmeralda bem clara — cor secundária */
  --cream: #ffffff;        /* branco — fundo principal */
  --cream-2: #f0faf6;      /* esmeralda quase branca — fundo de cards secundários */
  --ink: #1a1d1f;
  --ink-soft: #5c6366;
  --emerald: #059669;      /* esmeralda mais fechada — reservada pro estado "concluído" (distinta do --gold, que é o CTA) */
  --coral: #f59e0b;        /* âmbar — reservada pro estado "pendente/atenção" (contraste com o verde de "concluído") */
  --red: #d64545;
  --white: #ffffff;

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

  --shadow-card: 0 10px 30px rgba(26, 29, 31, 0.12);
  --shadow-lift: 0 16px 40px rgba(26, 29, 31, 0.22);

  /* 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; }

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

.vox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(47, 52, 54, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.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;
  position: relative;
}
@media (min-width: 1024px) {
  .vox-shell { max-width: 1040px; padding-top: 44px; }
}

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

/* ---------- 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; }

/* Leitura Científica — palavra/expressão clicável (2026-08) */
.clickable-term {
  cursor: pointer;
  border-bottom: 1.5px dotted var(--emerald);
  transition: background-color 0.15s ease;
  border-radius: 3px;
}
.clickable-term:hover,
.clickable-term:active {
  background-color: var(--cream-2);
}

/* ---------- 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(90px, 1fr));
  gap: 10px;
}
.passport-stamp {
  text-align: center;
  padding: 12px 6px;
  border: 2px dashed var(--gold);
  border-radius: var(--radius-md);
  transform: rotate(-2deg);
  background: var(--cream-2);
}
.passport-stamp:nth-child(even) { transform: rotate(2deg); }
.passport-stamp .flag { font-size: 24px; }
.passport-stamp .city { font-size: 11px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* ---------- 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; }

/* ---------- 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; }
}

/* ============================================================
   LIQUID GLASS — Início (2026-08)
   Pedido do Diogo: a tela inicial estava "jogada" — muitos cards
   empilhados, sem hierarquia, difícil saber tudo que o app oferece.
   Reconstrução com estética "liquid glass" (superfícies translúcidas
   com blur, profundidade sutil) mantendo a identidade da marca (charcoal
   + esmeralda + âmbar) — em vez de trocar as cores, elas aparecem como
   "brilho" desfocado por trás do vidro. Classes novas e opt-in — o
   .card padrão usado no resto do app não foi tocado, pra não arriscar
   nenhuma tela já validada.
   ============================================================ */

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}
body::before {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, var(--mint), transparent 70%);
}
body::after {
  width: 520px;
  height: 520px;
  bottom: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.32), transparent 70%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(26, 29, 31, 0.08);
}
.glass-card-dark {
  background: rgba(47, 52, 54, 0.74);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(26, 29, 31, 0.3);
  color: var(--cream);
}

/* ---- tira de status compacta (streak / pounds / nível) ---- */
.dash-stat-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 22px;
}
.dash-stat-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(26, 29, 31, 0.06);
}
.dash-stat-chip .n { font-family: var(--font-serif); }

/* ---- hero: UMA ação principal em destaque, não três competindo ---- */
.dash-hero { padding: 26px 24px; margin: 0 0 26px; }
.dash-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dash-hero-icon { font-size: 36px; line-height: 1; flex-shrink: 0; }
.dash-hero h2 { color: var(--white); margin: 0 0 3px; font-size: 19px; }
.dash-hero p { color: rgba(250, 246, 238, 0.82); margin: 0; font-size: 13.5px; line-height: 1.4; }
.dash-hero .progress-track { background: rgba(255, 255, 255, 0.16); margin: 4px 0 16px; }
.dash-hero-checklist { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.dash-hero-checklist a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; border-radius: var(--radius-sm);
  text-decoration: none; color: inherit;
}
.dash-hero-checklist .txt { font-size: 13.5px; color: rgba(250, 246, 238, 0.92); }
.dash-hero-checklist .txt.done { opacity: 0.55; text-decoration: line-through; }

/* ---- títulos de seção discretos ---- */
.dash-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  margin: 30px 0 12px;
}

/* ---- grid de módulos: tudo que o app oferece, visível de uma vez ---- */
.dash-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.dash-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(26, 29, 31, 0.14); }
.dash-tile:active { transform: translateY(0) scale(0.98); }
.dash-tile .icon { font-size: 25px; }
.dash-tile .title { font-weight: 700; font-size: 13.5px; color: var(--navy); line-height: 1.25; }
.dash-tile .sub { font-size: 11.5px; color: var(--ink-soft); line-height: 1.35; }
.dash-tile .tile-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 20px;
}

/* ---- insights secundários (readiness, ponto fraco, desafio semanal) ---- */
.dash-insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.dash-insight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.dash-insight .icon { font-size: 24px; flex-shrink: 0; }
.dash-insight .title { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--navy); }
.dash-insight .sub { margin: 0; font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.dash-insight .arrow { font-size: 18px; flex-shrink: 0; color: var(--ink-soft); }

@media (min-width: 720px) {
  .dash-tile-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-insight-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .dash-tile-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- 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);
}
