/* ============================================================
   AI FIT COACH — Protótipo · Design Moderno «VOLT»
   Nova proposta visual (2026) para o nicho fitness:
   volt lime + grafite, tipografia Archivo pesada, pílulas,
   cartões limpos e navegação flutuante.
   Mesma estrutura de classes do protótipo atual — o app.js é
   compartilhado e permanece intocado.
   ============================================================ */

:root {
  /* Cores */
  --primary: #C8F542;            /* volt lime */
  --on-primary: #0E1206;         /* tinta sobre o volt */
  --primary-soft: rgba(200, 245, 66, 0.12);
  --primary-border: rgba(200, 245, 66, 0.30);
  --secondary: #FF7A45;          /* laranja energia */
  --bg: #0B0D0F;
  --surface: #15181C;
  --surface2: #1C2025;
  --text: #F2F5F0;
  --text2: #98A1A9;
  --error: #FF5D5D;
  --success: #2DD4A7;
  --warning: #FFB224;
  --input-border: rgba(255, 255, 255, 0.08);

  /* Espaçamento */
  --sp-xxs: 4px; --sp-xs: 8px; --sp-sm: 12px; --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 32px; --sp-xxl: 48px;

  /* Radius */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px; --r-full: 999px;

  /* Sombras / glow (nomes mantidos por compatibilidade) */
  --purple-glow: 0 8px 24px -6px rgba(200, 245, 66, 0.35);
  --yellow-glow: 0 8px 24px -6px rgba(255, 122, 69, 0.30);
  --soft: 0 6px 18px rgba(0, 0, 0, 0.35);
  --card-glow: 0 0 0 1px rgba(200, 245, 66, 0.22), 0 8px 28px -10px rgba(200, 245, 66, 0.18);

  /* Fontes */
  --font-head: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Gradientes */
  --grad-bg:
    radial-gradient(circle at 88% -6%, rgba(200, 245, 66, 0.10) 0%, transparent 42%),
    radial-gradient(circle at -10% 30%, rgba(45, 212, 167, 0.05) 0%, transparent 45%),
    var(--bg);
  --grad-card: linear-gradient(160deg, var(--surface2) 0%, var(--surface) 65%);
  --card-border: rgba(255, 255, 255, 0.07);
}

.phone[data-theme="light"] {
  --primary: #4D7C0F;
  --on-primary: #FFFFFF;
  --primary-soft: rgba(77, 124, 15, 0.10);
  --primary-border: rgba(77, 124, 15, 0.30);
  --secondary: #EA580C;
  --bg: #F4F6F1;
  --surface: #FFFFFF;
  --surface2: #FAFCF6;
  --text: #191D15;
  --text2: #67707A;
  --input-border: #E2E6DC;
  --purple-glow: 0 8px 22px -8px rgba(77, 124, 15, 0.40);
  --yellow-glow: 0 8px 22px -8px rgba(234, 88, 12, 0.30);
  --soft: 0 6px 16px rgba(25, 29, 21, 0.08);
  --card-glow: 0 0 0 1px rgba(77, 124, 15, 0.22), 0 8px 24px -12px rgba(77, 124, 15, 0.25);
  --grad-bg:
    radial-gradient(circle at 88% -6%, rgba(163, 230, 53, 0.16) 0%, transparent 40%),
    var(--bg);
  --grad-card: linear-gradient(160deg, #FFFFFF 0%, #FBFDF7 100%);
  --card-border: rgba(25, 29, 21, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: #101214;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 24px 12px;
}

/* ---------- Moldura do celular ---------- */
.phone {
  width: 390px;
  height: 844px;
  background: var(--bg);
  border-radius: 44px;
  border: 6px solid #24282c;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  color: var(--text);
}
.phone::after { /* notch */
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 24px; background: #000; border-radius: 999px; z-index: 400;
  pointer-events: none;
}

/* Tamanho padrão de ícone — regras mais específicas abaixo sobrescrevem */
.phone svg { width: 20px; height: 20px; flex-shrink: 0; }
.chip svg { width: 14px; height: 14px; }

/* ---------- Telas ---------- */
.screen {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  background: var(--grad-bg);
  overflow: hidden;
}
.screen.active { display: flex; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-md); padding-top: 52px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.scroll.no-appbar { padding-top: 60px; }

/* ---------- AppBar ---------- */
.appbar {
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: 44px var(--sp-md) 10px;
  min-height: 92px; z-index: 5;
}
.appbar .title {
  font-family: var(--font-head); font-size: 20px; font-weight: 800;
  flex: 1; letter-spacing: .2px;
}
.appbar .subtitle { font-size: 12px; color: var(--text2); font-weight: 600; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 14px; border: none;
  background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-btn:active { background: var(--primary-soft); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Tipografia ---------- */
.display { font-family: var(--font-head); font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.h1 { font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.h2 { font-family: var(--font-head); font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.h4 { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.body { font-size: 16px; }
.caption { font-size: 14px; color: var(--text2); }
.label { font-size: 14px; font-weight: 700; }
.overline { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--text2); text-transform: uppercase; }

/* ---------- CyberCard (agora: cartão limpo elevado) ---------- */
.cyber-card {
  background: var(--grad-card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  position: relative;
}
.cyber-card.glow { box-shadow: var(--card-glow); border-color: var(--primary-border); }
.cyber-card.tappable { cursor: pointer; transition: transform .08s; }
.cyber-card.tappable:active { transform: scale(.985); }
.cyber-card.danger { border-color: rgba(255, 93, 93, 0.4); }

/* ---------- Botões ---------- */
.btn-primary {
  height: 56px; width: 100%; border: none; border-radius: var(--r-full);
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-head); font-size: 15px; font-weight: 800; letter-spacing: 1.2px;
  box-shadow: var(--purple-glow); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-xs);
  transition: filter .12s, transform .08s;
}
.btn-primary:active { filter: brightness(1.08); transform: scale(.99); }
.btn-primary:disabled { opacity: .4; box-shadow: none; cursor: default; }
.btn-primary svg { width: 20px; height: 20px; }
.btn-primary .spinner { border-color: rgba(14, 18, 6, .25); border-top-color: var(--on-primary); }

.btn-secondary {
  height: 56px; width: 100%; border-radius: var(--r-full);
  background: transparent; border: 1.5px solid rgba(255, 122, 69, 0.55);
  color: var(--secondary); font-size: 15px; font-weight: 800; letter-spacing: 1.2px;
  font-family: var(--font-head); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-xs);
}
.btn-secondary.glow { box-shadow: var(--yellow-glow); }
.btn-outline-danger {
  height: 48px; width: 100%; border-radius: var(--r-full);
  background: transparent; border: 1.5px solid var(--error); color: var(--error);
  font-size: 14px; font-weight: 800; font-family: var(--font-head); letter-spacing: .8px; cursor: pointer;
}
.btn-text {
  background: none; border: none; color: var(--primary); font-size: 14px;
  font-weight: 800; cursor: pointer; font-family: var(--font-body); padding: var(--sp-sm);
}
.btn-text.muted { color: var(--text2); }
.btn-text.danger { color: var(--error); }

/* ---------- Campos ---------- */
.field { margin-bottom: var(--sp-md); }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: var(--sp-xs); color: var(--text2); text-transform: uppercase; letter-spacing: .8px; }
.field .input-wrap { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--input-border); border-radius: var(--r-md);
  padding: 18px 16px; font-size: 15px; font-family: var(--font-body); font-weight: 600;
  outline: none; appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border: 2px solid var(--primary); padding: 17px 15px; }
.field .eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text2); cursor: pointer;
}
.field textarea { resize: none; min-height: 96px; }

/* ---------- AiInsightCard ---------- */
.ai-card {
  background: linear-gradient(135deg, rgba(200, 245, 66, 0.10) 0%, rgba(45, 212, 167, 0.05) 100%), var(--surface);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-lg); padding: 20px;
}
.phone[data-theme="light"] .ai-card {
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.14) 0%, rgba(45, 212, 167, 0.06) 100%), var(--surface);
}
.ai-card .ai-head { display: flex; align-items: center; gap: var(--sp-sm); margin-bottom: var(--sp-sm); }
.ai-card .ai-ico {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
}
.ai-card .ai-ico svg { width: 20px; height: 20px; }
.ai-card .ai-title { font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--primary); }
.ai-card .ai-body { font-size: 15px; line-height: 1.55; color: var(--text); opacity: .92; }
.ai-card .ai-action {
  margin-top: var(--sp-sm); width: 100%; padding: 12px; border-radius: var(--r-full);
  border: 1.5px solid var(--primary-border); background: none; color: var(--primary);
  font-weight: 800; font-size: 13px; letter-spacing: .8px; cursor: pointer; font-family: var(--font-head);
}

/* ---------- Bottom nav (flutuante, em pílula) ---------- */
.bottom-nav {
  display: flex; background: var(--surface2);
  border: 1px solid var(--card-border); border-radius: var(--r-full);
  margin: 8px 14px 20px; padding: 8px;
  box-shadow: var(--soft); z-index: 10;
}
.bottom-nav button {
  flex: 1; background: none; border: none; color: var(--text2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; font-family: var(--font-body);
  padding: 8px 0; border-radius: var(--r-full); transition: all .15s;
}
.bottom-nav button.active { color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.bottom-nav svg { width: 23px; height: 23px; }

/* ---------- Tabs (controle segmentado) ---------- */
.tabbar {
  display: flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--r-md); border-bottom: 1px solid var(--card-border);
}
.tabbar button {
  flex: 1; background: none; border: none; color: var(--text2); cursor: pointer;
  padding: 10px 8px; font-size: 12px; font-weight: 800; font-family: var(--font-head);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
  letter-spacing: .6px; white-space: nowrap; border-bottom: none;
}
.tabbar button.active { color: var(--on-primary); background: var(--primary); border-bottom-color: transparent; }
.tabbar svg { width: 17px; height: 17px; }
.tabbar.scrollable { overflow-x: auto; scrollbar-width: none; }
.tabbar.scrollable button { flex: 0 0 auto; padding: 10px 18px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
/* Abas da Home precisam ser flex-column para o .scroll interno ter altura limitada e rolar */
.home-tab.active { display: flex; flex-direction: column; min-height: 0; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 5px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase;
}
.chip.green { background: rgba(45, 212, 167, 0.10); color: var(--success); border-color: rgba(45, 212, 167, 0.32); }
.chip.amber { background: rgba(255, 178, 36, 0.10); color: var(--warning); border-color: rgba(255, 178, 36, 0.32); }
.chip.gray  { background: rgba(152, 161, 169, 0.10); color: var(--text2); border-color: rgba(152, 161, 169, 0.30); }

/* ---------- Diversos ---------- */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--primary-soft); border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
.spinner.lg { width: 48px; height: 48px; border-width: 3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.progressbar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.phone[data-theme="light"] .progressbar { background: rgba(25, 29, 21, 0.08); }
.progressbar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), #A8E62E); transition: width .4s; }

.divider-or { display: flex; align-items: center; gap: var(--sp-sm); color: var(--text2); font-size: 11px; font-weight: 800; letter-spacing: 2px; margin: var(--sp-md) 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }

.avatar {
  border-radius: 16px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; flex-shrink: 0;
}

.skeleton {
  border-radius: var(--r-xs); background: rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200, 245, 66, .10), transparent);
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Snackbar */
.snackbar {
  position: absolute; left: 16px; right: 16px; bottom: 110px; z-index: 300;
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; font-weight: 600;
  box-shadow: var(--soft); border-left: 4px solid var(--primary);
  opacity: 0; transform: translateY(12px); transition: all .25s; pointer-events: none;
}
.snackbar.show { opacity: 1; transform: none; }
.snackbar.success { border-left-color: var(--success); }
.snackbar.error { border-left-color: var(--error); }

/* Modais / bottom sheets */
.modal-overlay {
  position: absolute; inset: 0; z-index: 200;
  background: rgba(5, 7, 4, 0.72);
  display: none; align-items: center; justify-content: center; padding: var(--sp-lg);
}
.modal-overlay.show { display: flex; }
.modal-overlay.sheet { align-items: flex-end; padding: 0; }
.dialog {
  background: var(--surface2); border: 1px solid var(--card-border);
  border-radius: var(--r-xl); padding: var(--sp-lg); width: 100%;
}
.dialog .dlg-title { font-family: var(--font-head); font-size: 19px; font-weight: 800; margin-bottom: var(--sp-sm); }
.dialog .dlg-body { font-size: 14px; color: var(--text2); line-height: 1.5; margin-bottom: var(--sp-lg); }
.dialog .dlg-actions { display: flex; justify-content: flex-end; gap: var(--sp-xs); }
.bottom-sheet {
  background: var(--surface2); border-radius: 28px 28px 0 0;
  padding: var(--sp-md); width: 100%; max-height: 75%; overflow-y: auto;
  border-top: 1px solid var(--card-border);
}
.sheet-handle { width: 42px; height: 5px; border-radius: 999px; background: rgba(152, 161, 169, .4); margin: 0 auto var(--sp-md); }
.sheet-item {
  display: flex; align-items: center; gap: var(--sp-sm); width: 100%;
  background: none; border: none; color: var(--text); font-size: 15px; font-weight: 600; font-family: var(--font-body);
  padding: 14px 8px; cursor: pointer; border-radius: var(--r-md); text-align: left;
}
.sheet-item:active { background: var(--primary-soft); }
.sheet-item svg { width: 22px; height: 22px; color: var(--primary); }

/* Banner offline */
.conn-banner {
  display: none; align-items: center; gap: 8px; justify-content: center;
  background: var(--secondary); color: #fff; font-size: 12px; font-weight: 800;
  padding: 34px 12px 8px; z-index: 20;
}
.conn-banner.show { display: flex; }
.conn-banner svg { width: 16px; height: 16px; }

/* Listas de config */
.settings-row {
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: 13px 4px; cursor: pointer; border: none; background: none;
  width: 100%; color: var(--text); font-size: 15px; font-weight: 600; font-family: var(--font-body); text-align: left;
}
.settings-row svg { width: 21px; height: 21px; color: var(--text2); flex-shrink: 0; }
.settings-row .grow { flex: 1; }
.settings-row .sub { font-size: 12px; color: var(--text2); margin-top: 2px; font-weight: 500; }
.settings-row .chev { color: var(--text2); }

/* Switch */
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(152, 161, 169, .35); transition: .2s; cursor: pointer;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: .2s;
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--on-primary); }
.phone[data-theme="light"] .switch input:checked + .track::after { background: #fff; }

/* Sliders */
input[type="range"] { width: 100%; accent-color: var(--primary); height: 32px; }

/* Grid de stats */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.stat-card { text-align: center; padding: var(--sp-md); }
.stat-card .num { font-family: var(--font-head); font-size: 27px; font-weight: 900; color: var(--primary); letter-spacing: -.5px; }
.stat-card .lbl { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text2); margin-top: 4px; }

/* Exercícios */
.ex-row { display: flex; align-items: center; gap: var(--sp-sm); }
.ex-num {
  width: 34px; height: 34px; border-radius: 12px; flex-shrink: 0;
  border: none; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
}
.ex-num.done { background: var(--success); border-color: var(--success); color: #fff; }
.ex-meta { font-size: 12px; color: var(--text2); margin-top: 2px; font-weight: 500; }

/* Calendário */
.cal { width: 100%; }
.cal .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-sm); }
.cal .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: 11px; color: var(--text2); padding: 6px 0; font-weight: 800; }
.cal .day {
  aspect-ratio: 1; border: none; background: none; color: var(--text); font-size: 13px; font-weight: 600;
  border-radius: 12px; cursor: pointer; position: relative; font-family: var(--font-body);
}
.cal .day.other { color: rgba(152, 161, 169, .35); }
.cal .day.today { border: 1.5px solid var(--primary); }
.cal .day.selected { background: var(--primary); color: var(--on-primary); font-weight: 800; }
.cal .day .dot {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--secondary);
}

/* Timer circular */
.timer-ring { position: relative; width: 230px; height: 230px; margin: 0 auto; }
.timer-ring svg { width: 230px; height: 230px; transform: rotate(-90deg); }
.timer-ring .time {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 46px; font-weight: 900; letter-spacing: -1px;
}
.timer-ring .time small { font-size: 11px; font-weight: 800; color: var(--text2); letter-spacing: 2.5px; }
.timer-ring.danger .time { color: var(--error); animation: pulse .5s infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .55; } }

/* Onboarding */
.onb-circle {
  width: 150px; height: 150px; border-radius: 44px; margin: 0 auto var(--sp-lg);
  display: flex; align-items: center; justify-content: center; color: var(--on-primary);
  box-shadow: var(--purple-glow);
}
.onb-circle svg { width: 64px; height: 64px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: var(--sp-lg) 0; }
.dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(152, 161, 169, .4); transition: all .25s; }
.dots span.active { width: 26px; background: var(--primary); }

/* Login logo */
.logo-circle {
  width: 92px; height: 92px; border-radius: 30px; margin: 0 auto var(--sp-md);
  background: var(--primary); border: none;
  box-shadow: var(--purple-glow);
  display: flex; align-items: center; justify-content: center; color: var(--on-primary);
}
.logo-circle svg { width: 44px; height: 44px; }

/* Toggle segmentado */
.seg-toggle { display: flex; gap: 6px; padding: 6px; }
.seg-toggle button {
  flex: 1; padding: 12px 8px; border: none; border-radius: var(--r-full); cursor: pointer;
  background: transparent; color: var(--text2); font-weight: 800; font-size: 12px; letter-spacing: .6px; font-family: var(--font-head);
}
.seg-toggle button.active { background: var(--primary); color: var(--on-primary); }

/* Cards selecionáveis (anamnese) */
.sel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.sel-card {
  background: var(--grad-card); border: 1px solid var(--card-border); border-radius: var(--r-lg);
  padding: var(--sp-md); text-align: center; cursor: pointer; color: var(--text);
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-xs);
}
.sel-card svg { width: 28px; height: 28px; color: var(--text2); }
.sel-card.selected { background: var(--primary-soft); border-color: var(--primary); }
.sel-card.selected svg { color: var(--primary); }

/* Step progress (anamnese) */
.steps { display: flex; align-items: center; gap: 4px; padding: 0 var(--sp-lg) var(--sp-md); }
.steps .sdot { width: 10px; height: 10px; border-radius: 50%; background: rgba(152, 161, 169, .35); flex-shrink: 0; }
.steps .sdot.done { background: var(--primary); }
.steps .sdot.current { width: 14px; height: 14px; background: var(--primary); box-shadow: 0 0 10px rgba(200, 245, 66, .7); }
.steps .sline { flex: 1; height: 2px; background: rgba(152, 161, 169, .25); }
.steps .sline.done { background: var(--primary); }

/* Gráfico */
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; }

/* Câmera */
.cam { background: #000 !important; }
.cam .cam-view {
  flex: 1; position: relative;
  background:
    radial-gradient(circle at 65% 30%, rgba(200, 245, 66, 0.20), transparent 45%),
    radial-gradient(circle at 30% 70%, rgba(255, 122, 69, 0.12), transparent 50%),
    linear-gradient(160deg, #171b14 0%, #08090a 100%);
}
.cam .cam-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; padding: 48px 16px 24px;
  background: linear-gradient(rgba(0,0,0,.6), transparent);
}
.cam .cam-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; padding: 24px 40px 44px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.shutter {
  width: 74px; height: 74px; border-radius: 50%; background: var(--primary);
  border: 5px solid rgba(200, 245, 66, .35); cursor: pointer;
}
.cam-circle {
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.cam-circle svg { width: 22px; height: 22px; }
.photo-brand {
  position: absolute; top: 56px; left: 16px; z-index: 2;
  background: rgba(8, 10, 6, .72); border: 1px solid var(--primary-border);
  border-radius: 999px; padding: 8px 14px; font-family: var(--font-head);
  font-weight: 800; font-size: 13px; letter-spacing: 1px; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.photo-brand svg { width: 15px; height: 15px; color: var(--primary); }
.photo-info {
  position: absolute; left: 16px; right: 16px; bottom: 120px; z-index: 2;
  background: rgba(8, 10, 6, .78); border: 1px solid var(--primary-border);
  border-radius: var(--r-lg); padding: 14px 16px; color: #fff;
}

/* ShareCard */
.share-card {
  background:
    radial-gradient(circle at 15% 15%, rgba(200, 245, 66, 0.28), transparent 55%),
    linear-gradient(150deg, #1C2025, #0B0D0F);
  border: 1px solid var(--primary-border); border-radius: var(--r-xl);
  padding: var(--sp-lg); color: #fff;
}

/* ---------- Painel de controle do protótipo ---------- */
.dev-panel {
  width: 250px; flex-shrink: 0; color: #d3d8d0;
  font-size: 13px; position: sticky; top: 24px;
}
.dev-panel h1 { font-family: var(--font-head); font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.dev-panel .dp-sub { font-size: 11px; color: #8b9388; margin-bottom: 8px; }
.dev-panel .dp-back { display: inline-block; font-size: 11px; color: #C8F542; text-decoration: none; margin-bottom: 14px; }
.dev-panel .dp-back:hover { text-decoration: underline; }
.dev-panel section { background: #191d18; border: 1px solid #2b3129; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.dev-panel h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8b9388; margin-bottom: 8px; }
.dev-panel .dp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-panel button, .dev-panel select {
  background: #22271f; color: #d3d8d0; border: 1px solid #363d33;
  border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; font-family: var(--font-body);
}
.dev-panel button.on { background: #C8F542; color: #0E1206; border-color: #C8F542; font-weight: 700; }
.dev-panel select { width: 100%; }
.dev-panel .jump { display: block; width: 100%; text-align: left; margin-bottom: 4px; }

@media (max-width: 720px) {
  body { flex-direction: column; align-items: center; }
  .dev-panel { width: 390px; position: static; }
}

/* ============================================================
   Sobrescritas visuais de cores fixas geradas pelo app.js
   (o app.js é compartilhado com o protótipo atual e não é
   alterado — atributos SVG e estilos inline são vencidos aqui)
   ============================================================ */

/* Onboarding: círculos com gradiente da marca antiga → volt */
.onb-circle { background: linear-gradient(135deg, #C8F542, #2DD4A7) !important; }

/* Gráfico de progressão: linha, pontos e área */
.chart-wrap polyline { stroke: var(--primary); }
.chart-wrap polygon + polyline + circle, .chart-wrap svg > circle { fill: var(--primary); }
.chart-wrap circle { fill: var(--primary); }
.chart-wrap linearGradient stop:first-child { stop-color: rgba(200, 245, 66, .40); }
.chart-wrap linearGradient stop:last-child { stop-color: rgba(200, 245, 66, 0); }
.phone[data-theme="light"] .chart-wrap polyline { stroke: var(--primary); }
.phone[data-theme="light"] .chart-wrap linearGradient stop:first-child { stop-color: rgba(77, 124, 15, .30); }
.phone[data-theme="light"] .chart-wrap linearGradient stop:last-child { stop-color: rgba(77, 124, 15, 0); }

/* Timer de isometria: trilho do anel */
.timer-ring svg circle:first-of-type { stroke: rgba(200, 245, 66, .14); }
.phone[data-theme="light"] .timer-ring svg circle:first-of-type { stroke: rgba(77, 124, 15, .15); }

/* Cronômetro de descanso: brilho roxo → sem brilho, tipografia da marca */
#rest-time { text-shadow: none !important; font-family: var(--font-head) !important; letter-spacing: -1px; }

/* Ícone decorativo de fundo no card "Pronto para treinar" */
.cyber-card.glow > svg[style*="position:absolute"] { color: var(--primary-soft) !important; }

/* Linhas divisórias roxas nos detalhes de sessão */
.cyber-card div[style*="border-top"] { border-top-color: var(--card-border) !important; }
