/* ============================================================
   AI FIT COACH — Protótipo (réplica fiel do design system Flutter)
   Tokens extraídos de lib/core/design_system/
   ============================================================ */

:root {
  /* Cores */
  --primary: #8B5CF6;
  --secondary: #FACC15;
  --bg: #0D0C12;
  --surface: #1F1D2B;
  --text: #FFFFFF;
  --text2: #9CA3AF;
  --error: #EF4444;
  --success: #10B981;
  --warning: #FBBF24;
  --input-border: transparent;

  /* 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: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* Sombras / glow */
  --purple-glow: 0 4px 15px 1px rgba(139, 92, 246, 0.3);
  --yellow-glow: 0 4px 15px 1px rgba(250, 204, 21, 0.3);
  --soft: 0 4px 10px rgba(0, 0, 0, 0.2);
  --card-glow: 0 0 20px 2px rgba(139, 92, 246, 0.1);

  /* Fontes */
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Gradientes */
  --grad-bg: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, var(--bg) 80%);
  --grad-card: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(31, 29, 43, 0.05) 100%);
  --card-border: rgba(139, 92, 246, 0.2);
}

.phone[data-theme="light"] {
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --text: #1F2937;
  --text2: #6B7280;
  --input-border: #E5E7EB;
  --grad-bg: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, var(--bg) 80%);
  --grad-card: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(255, 255, 255, 0.5) 100%);
  --card-border: rgba(139, 92, 246, 0.25);
  --card-glow: 0 0 20px 2px rgba(139, 92, 246, 0.08);
}

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

body {
  font-family: var(--font-body);
  background: #17141f;
  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 #2a2735;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  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: 600;
  flex: 1; letter-spacing: .5px;
}
.appbar .subtitle { font-size: 12px; color: var(--text2); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; 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: rgba(139, 92, 246, 0.15); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Tipografia ---------- */
.display { font-family: var(--font-head); font-size: 36px; font-weight: 700; letter-spacing: -0.5px; }
.h1 { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.h2 { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.h3 { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.h4 { font-family: var(--font-head); font-size: 18px; font-weight: 500; }
.body { font-size: 16px; }
.caption { font-size: 14px; color: var(--text2); }
.label { font-size: 14px; font-weight: 500; }
.overline { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: var(--text2); text-transform: uppercase; }

/* ---------- CyberCard ---------- */
.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); }
.cyber-card.tappable { cursor: pointer; transition: transform .08s; }
.cyber-card.tappable:active { transform: scale(.985); }
.cyber-card.danger { border-color: rgba(239, 68, 68, 0.4); }

/* ---------- Botões ---------- */
.btn-primary {
  height: 56px; width: 100%; border: none; border-radius: var(--r-md);
  background: var(--primary); color: #fff;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 1.1px;
  box-shadow: var(--purple-glow); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-xs);
  transition: filter .12s;
}
.btn-primary:active { filter: brightness(1.12); }
.btn-primary:disabled { opacity: .45; box-shadow: none; cursor: default; }
.btn-primary svg { width: 20px; height: 20px; }
.btn-primary .spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }

.btn-secondary {
  height: 56px; width: 100%; border-radius: var(--r-md);
  background: transparent; border: 1px solid rgba(250, 204, 21, 0.5);
  color: var(--secondary); font-size: 16px; font-weight: 700; letter-spacing: 1.1px;
  font-family: var(--font-body); 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-md);
  background: transparent; border: 1px solid var(--error); color: var(--error);
  font-size: 15px; font-weight: 600; font-family: var(--font-body); cursor: pointer;
}
.btn-text {
  background: none; border: none; color: var(--primary); font-size: 14px;
  font-weight: 600; 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: 14px; font-weight: 500; margin-bottom: var(--sp-xs); }
.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);
  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: var(--grad-card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--card-glow);
}
.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: var(--r-sm);
  background: rgba(139, 92, 246, 0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.ai-card .ai-ico svg { width: 20px; height: 20px; }
.ai-card .ai-title { font-size: 14px; font-weight: 700; color: var(--primary); }
.ai-card .ai-body { font-size: 15px; line-height: 1.5; color: var(--text); opacity: .9; }
.ai-card .ai-action {
  margin-top: var(--sp-sm); width: 100%; padding: 12px; border-radius: var(--r-sm);
  border: 1px solid rgba(139, 92, 246, 0.3); background: none; color: var(--primary);
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--font-body);
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  display: flex; background: var(--surface);
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  padding: 6px 0 20px; 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: 11px; font-family: var(--font-body); padding-top: 6px;
}
.bottom-nav button.active { color: var(--primary); }
.bottom-nav svg { width: 24px; height: 24px; }

/* ---------- Tabs ---------- */
.tabbar { display: flex; border-bottom: 1px solid rgba(139, 92, 246, 0.15); }
.tabbar button {
  flex: 1; background: none; border: none; color: var(--text2); cursor: pointer;
  padding: 12px 8px; font-size: 13px; font-weight: 600; font-family: var(--font-body);
  border-bottom: 2px solid transparent; display: flex; align-items: center; justify-content: center; gap: 6px;
  letter-spacing: .3px; white-space: nowrap;
}
.tabbar button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabbar svg { width: 18px; height: 18px; }
.tabbar.scrollable { overflow-x: auto; scrollbar-width: none; }
.tabbar.scrollable button { flex: 0 0 auto; padding: 12px 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: rgba(139, 92, 246, 0.12); color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 5px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
}
.chip.green { background: rgba(16, 185, 129, 0.1); color: var(--success); border-color: rgba(16, 185, 129, 0.3); }
.chip.amber { background: rgba(251, 191, 36, 0.1); color: var(--warning); border-color: rgba(251, 191, 36, 0.3); }
.chip.gray  { background: rgba(156, 163, 175, 0.1); color: var(--text2); border-color: rgba(156, 163, 175, 0.3); }

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

.progressbar { height: 6px; border-radius: 999px; background: rgba(139, 92, 246, 0.15); overflow: hidden; }
.progressbar > div { height: 100%; border-radius: 999px; background: var(--primary); transition: width .4s; }

.divider-or { display: flex; align-items: center; gap: var(--sp-sm); color: var(--text2); font-size: 12px; margin: var(--sp-md) 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: rgba(156,163,175,.25); }

.avatar {
  border-radius: 50%; background: rgba(139, 92, 246, 0.2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; flex-shrink: 0;
}

.skeleton {
  border-radius: var(--r-xs); background: rgba(139, 92, 246, 0.08);
  position: relative; overflow: hidden;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.14), 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: 96px; z-index: 300;
  background: var(--surface); color: var(--text);
  border-radius: var(--r-md); padding: 14px 16px; font-size: 14px;
  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(13, 12, 18, 0.75);
  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(--surface); 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: 600; 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(--surface); border-radius: var(--r-xl) var(--r-xl) 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: 4px; border-radius: 999px; background: rgba(156,163,175,.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-family: var(--font-body);
  padding: 14px 8px; cursor: pointer; border-radius: var(--r-sm); text-align: left;
}
.sheet-item:active { background: rgba(139,92,246,.1); }
.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: #F97316; color: #fff; font-size: 12px; font-weight: 600;
  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-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; }
.settings-row .chev { color: var(--text2); }

/* Switch */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(156,163,175,.35); transition: .2s; cursor: pointer;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .2s;
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(20px); }

/* 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: 26px; font-weight: 700; color: var(--primary); text-shadow: 0 0 14px rgba(139,92,246,.5); }
.stat-card .lbl { font-size: 12px; 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: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(139, 92, 246, 0.45); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; 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; }

/* 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: 600; }
.cal .day {
  aspect-ratio: 1; border: none; background: none; color: var(--text); font-size: 13px;
  border-radius: 50%; cursor: pointer; position: relative; font-family: var(--font-body);
}
.cal .day.other { color: rgba(156,163,175,.35); }
.cal .day.today { border: 1.5px solid var(--primary); }
.cal .day.selected { background: var(--primary); color: #fff; }
.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: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 44px; font-weight: 700;
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.7);
}
.timer-ring .time small { font-size: 12px; color: var(--text2); text-shadow: none; letter-spacing: 1.5px; }
.timer-ring.danger .time { color: var(--error); text-shadow: 0 0 18px rgba(239,68,68,.7); animation: pulse .5s infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: .55; } }

/* Onboarding */
.onb-circle {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto var(--sp-lg);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.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(156,163,175,.4); transition: all .25s; }
.dots span.active { width: 24px; background: var(--primary); }

/* Login logo */
.logo-circle {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto var(--sp-md);
  background: var(--grad-card); border: 1px solid var(--card-border);
  box-shadow: var(--purple-glow);
  display: flex; align-items: center; justify-content: center; color: var(--secondary);
}
.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-sm); cursor: pointer;
  background: transparent; color: var(--text2); font-weight: 600; font-size: 13px; font-family: var(--font-body);
}
.seg-toggle button.active { background: var(--primary); color: #fff; }

/* 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: 600;
  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 { box-shadow: var(--card-glow); 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(156,163,175,.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(139,92,246,.8); }
.steps .sline { flex: 1; height: 2px; background: rgba(156,163,175,.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(139, 92, 246, 0.25), transparent 45%),
    radial-gradient(circle at 30% 70%, rgba(250, 204, 21, 0.12), transparent 50%),
    linear-gradient(160deg, #1c1926 0%, #0a090e 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: #fff;
  border: 5px solid rgba(255,255,255,.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(13,12,18,.7); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 8px 14px; font-family: var(--font-head);
  font-weight: 700; font-size: 13px; letter-spacing: 1px; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.photo-brand svg { width: 15px; height: 15px; color: var(--secondary); }
.photo-info {
  position: absolute; left: 16px; right: 16px; bottom: 120px; z-index: 2;
  background: rgba(13,12,18,.75); border: 1px solid var(--card-border);
  border-radius: var(--r-lg); padding: 14px 16px; color: #fff;
}

/* ShareCard */
.share-card {
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.35), transparent 55%),
    linear-gradient(150deg, #1F1D2B, #0D0C12);
  border: 1px solid var(--card-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: #d5d2e0;
  font-size: 13px; position: sticky; top: 24px;
}
.dev-panel h1 { font-family: var(--font-head); font-size: 17px; color: #fff; margin-bottom: 4px; }
.dev-panel .dp-sub { font-size: 11px; color: #8a8798; margin-bottom: 16px; }
.dev-panel section { background: #201d2b; border: 1px solid #322e42; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.dev-panel h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8a8798; margin-bottom: 8px; }
.dev-panel .dp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-panel button, .dev-panel select {
  background: #2a2739; color: #d5d2e0; border: 1px solid #3b3750;
  border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; font-family: var(--font-body);
}
.dev-panel button.on { background: #8B5CF6; color: #fff; border-color: #8B5CF6; }
.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; }
}
