/* ============================================================
   Dieta Fácil — Identidade Visual Neon
   ------------------------------------------------------------
   Tokens extraídos do manual de marca. O tema NEON é o padrão
   (fundo preto + glow). O tema claro usa a paleta clássica —
   verde e laranja sólidos, sem glow, como manda o manual.
   ============================================================ */

:root {
  /* ---- Cores da marca (manual, valores literais) ---- */
  --bg-neon:     #050505;   /* Preto Neon    — fundo padrão            */
  --green-neon:  #85DF04;   /* Verde Neon    — destaque principal      */
  --green-glow:  #E2FB8E;   /* Verde Glow    — brilho e realce fino    */
  --green-deep:  #1C8402;   /* Verde Profundo— sombra, fundo de card   */
  --orange-neon: #F36604;   /* Laranja Neon  — CTAs, selos, alertas    */
  --yellow-glow: #FCD141;   /* Amarelo Glow  — realce do laranja       */
  --text-soft:   #B9C9AE;   /* texto de apoio                          */
  --text-faint:  #4A5A44;   /* texto secundário / legendas             */

  /* ---- Papéis semânticos: TEMA NEON (padrão) ---- */
  --accent: var(--green-neon);
  --accent-deep: var(--green-deep);
  --accent-soft: rgba(133, 223, 4, .12);
  --accent-glow: var(--green-glow);

  --secondary: var(--orange-neon);
  --secondary-soft: rgba(243, 102, 4, .13);
  --secondary-glow: var(--yellow-glow);

  --deep: var(--green-deep);
  --deep-deep: #0A1206;
  --deep-soft: rgba(28, 132, 2, .18);

  --ok: var(--green-neon);
  --ok-deep: var(--green-deep);
  --ok-soft: rgba(133, 223, 4, .12);

  --bg: var(--bg-neon);
  --surface: #0C1008;          /* verde-preto profundo, como no manual */
  --surface-2: #131A0D;
  --line: #22301A;
  --ink: #ECF5E2;
  --ink-soft: var(--text-soft);
  --ink-muted: var(--text-faint);

  --danger: #FF4B4B;
  --warn: var(--yellow-glow);

  /* ---- Brilho neon (só em elementos-chave, nunca em cada card) ---- */
  --glow-green: 0 0 6px var(--green-neon), 0 0 18px rgba(133, 223, 4, .55), 0 0 40px rgba(133, 223, 4, .25);
  --glow-green-sm: 0 0 4px rgba(133, 223, 4, .8), 0 0 12px rgba(133, 223, 4, .35);
  --glow-orange: 0 0 6px var(--orange-neon), 0 0 16px rgba(243, 102, 4, .5);
  --glow-text: 0 0 8px rgba(226, 251, 142, .8);
  --glow-text-orange: 0 0 8px rgba(252, 209, 65, .75);

  --shadow-xs: 0 1px 3px rgba(0,0,0,.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.55);
  --shadow-md: 0 4px 16px rgba(0,0,0,.6);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.7);
  --shadow-card: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.35);

  /* ---- Raio e espaçamento (tokens do manual) ---- */
  --radius-pill: 999px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;

  --header-h: 60px;
  --tabbar-h: 68px;
  --font-head: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* O tema neon é o padrão; data-theme="dark" apenas confirma. */
html[data-theme="dark"] { color-scheme: dark; }

/* ============================================================
   TEMA CLARO — paleta clássica, sem glow
   O manual é explícito: neon é exclusivo do tema escuro.
   ============================================================ */
html[data-theme="light"] {
  color-scheme: light;

  --accent: #4E9E02;
  --accent-deep: #1C8402;
  --accent-soft: #EDF7DE;
  --accent-glow: #3D7D02;

  --secondary: #E05A00;
  --secondary-soft: #FFEEE1;
  --secondary-glow: #B84900;

  --deep: #1C8402;
  --deep-deep: #146001;
  --deep-soft: #E6F3DC;

  --ok: #4E9E02;
  --ok-deep: #1C8402;
  --ok-soft: #EDF7DE;

  --bg: #F7F9F3;
  --surface: #FFFFFF;
  --surface-2: #F2F6EC;
  --line: #E2E9D9;
  --ink: #16220E;
  --ink-soft: #5A6B52;
  --ink-muted: #93A48A;

  --danger: #D33030;
  --warn: #C98A00;

  /* sem brilho no tema claro */
  --glow-green: none;
  --glow-green-sm: none;
  --glow-orange: none;
  --glow-text: none;
  --glow-text-orange: none;

  --shadow-xs: 0 1px 3px rgba(20,40,10,.07);
  --shadow-sm: 0 2px 8px rgba(20,40,10,.08);
  --shadow-md: 0 4px 16px rgba(20,40,10,.10);
  --shadow-lg: 0 8px 30px rgba(20,40,10,.12);
  --shadow-card: 0 1px 3px rgba(20,40,10,.05), 0 4px 12px rgba(20,40,10,.05);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, .display { font-family: var(--font-head); margin: 0; }
button { font-family: inherit; -webkit-appearance: none; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

/* ── App Shell ─────────────────────────────────── */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  body {
    padding: 20px 0;
    background: #0A0D07;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  html[data-theme="light"] body { background: #EDF1E6; }
  .app-shell {
    border-radius: 32px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
}

/* ── Header ────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.app-header .logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 0 1.5px var(--accent-deep), var(--glow-green-sm);
}
.app-header .brand { flex: 1; min-width: 0; }
.app-header .brand b {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
  display: block;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  white-space: nowrap;
  letter-spacing: .01em;
}
.chip.offline { background: var(--secondary-soft); color: var(--secondary-glow); border-color: var(--secondary); }
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.85); }
}

.icon-btn {
  width: 36px;
  height: 36px;
  flex: none;
  border: none;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.icon-btn:active { transform: scale(.92); background: var(--line); }
.icon-btn { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--orange-neon, #F36604);
  color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center;
}
.notif-badge.hidden { display: none; }
/* Central de notificações */
.notif-item {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 8px 0; cursor: pointer;
}
.notif-item .nic {
  width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 20px; background: var(--accent-soft);
}
.notif-item .ntx { flex: 1; min-width: 0; }
.notif-item .ntx b { display: block; font-size: 14.5px; color: var(--ink); }
.notif-item .ntx small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ── Screens ───────────────────────────────────── */
main.screens {
  flex: 1;
  position: relative;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
.screen {
  display: none;
  flex-direction: column;
  animation: fadeSlideIn .32s var(--ease) both;
  min-height: calc(100dvh - var(--header-h) - var(--tabbar-h));
}
.screen.active { display: flex; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ── Tabbar ────────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tabbar button {
  flex: 1;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 8px 0 6px;
  position: relative;
  transition: color .2s var(--ease);
  letter-spacing: .01em;
}
.tabbar button .ic {
  font-size: 21px;
  line-height: 1;
  transition: transform .25s var(--spring);
}
.tabbar button.active { color: var(--accent); }
.tabbar button.active .ic { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 6px rgba(133, 223, 4, .85)); }
html[data-theme="light"] .tabbar button.active .ic { filter: none; }
.tabbar button.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--accent);
}

/* ── Content ───────────────────────────────────── */
.content { padding: 16px 16px 24px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.content.tight { gap: 8px; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 2px;
}
.topbar .back {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  border: none;
  flex: none;
  background: var(--deep-soft);
  color: var(--deep);
  font-size: 16px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.topbar .back:active { background: var(--line); }
html:not([data-theme="light"]) .topbar .back { color: var(--ink); }
.topbar .titles { flex: 1; min-width: 0; }
.topbar h2 { font-size: 17px; color: var(--ink); letter-spacing: -.01em; font-weight: 700; }
.topbar p { margin: 2px 0 0; font-size: 12px; color: var(--ink-soft); }
.topbar .step-badge {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), opacity .15s var(--ease);
  letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }
/* CTA da marca: contorno + brilho verde, fundo transparente (manual, pág. 9) */
.btn-primary {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  color: var(--accent-glow);
  box-shadow: var(--glow-green);
  text-shadow: var(--glow-text);
}
.btn-primary:active { box-shadow: var(--glow-green-sm); }
.btn-primary:disabled {
  border-color: var(--line); color: var(--ink-muted);
  box-shadow: none; text-shadow: none; cursor: not-allowed;
}
/* Ação secundária: mesmo desenho em laranja neon */
.btn-secondary {
  background: transparent;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-pill);
  color: var(--secondary-glow);
  box-shadow: var(--glow-orange);
  text-shadow: var(--glow-text-orange);
}
.btn-deep { background: var(--accent-deep); color: var(--green-glow); }

html[data-theme="light"] .btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(78, 158, 2, .28);
}
html[data-theme="light"] .btn-primary:disabled { background: #C9D3C0; border-color: #C9D3C0; color: #fff; }
html[data-theme="light"] .btn-secondary { background: var(--secondary); border-color: var(--secondary); color: #fff; }
html[data-theme="light"] .btn-deep { color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:active { background: var(--surface-2); border-color: var(--ink-muted); }
.btn-danger { background: transparent; border: 2px solid var(--danger); border-radius: var(--radius-pill); color: var(--danger); }
html[data-theme="light"] .btn-danger { background: var(--danger); color: #fff; }
.btn-sm { width: auto; padding: 8px 14px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ── Cards ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card.plain { box-shadow: none; }

.section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Hero (Home) ───────────────────────────────── */
.hero {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(133, 223, 4, .16), transparent 60%),
    linear-gradient(180deg, #070B04 0%, var(--bg) 100%);
  color: var(--ink);
  padding: 32px 22px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
html[data-theme="light"] .hero {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(133, 223, 4, .14), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 102, 4, .22), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -15%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 223, 4, .20), transparent 70%);
  pointer-events: none;
}
.hero .plate {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #16210E, #070B05 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 8px rgba(133, 223, 4, .28), 0 0 30px rgba(133, 223, 4, .18);
  font-size: 42px;
  position: relative;
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.hero .plate .food {
  position: absolute;
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2));
}
.hero .plate .f1 { top: 10px; left: 18px; }
.hero .plate .f2 { bottom: 12px; left: 14px; }
.hero .plate .f3 { bottom: 14px; right: 16px; }
.hero .plate .f4 { top: 12px; right: 20px; }
.hero h1 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.hero h1 .hl { color: var(--accent); text-shadow: var(--glow-text); }
.hero p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 8px auto 0;
  line-height: 1.6;
  max-width: 300px;
  position: relative;
  z-index: 1;
}
.hero .logo-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 4px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
  position: relative;
  z-index: 1;
}

/* ── Option Cards ──────────────────────────────── */
.opt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .2s var(--ease);
  text-align: left;
  width: 100%;
}
.opt-card:active { transform: scale(.985); }
.opt-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.opt-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.opt-card.new .opt-icon { background: var(--ok-soft); }
.opt-card.existing .opt-icon { background: var(--accent-soft); }
.opt-card .txt { flex: 1; min-width: 0; }
.opt-card .txt strong { display: block; font-size: 14px; color: var(--ink); font-weight: 700; }
.opt-card .txt small { color: var(--ink-soft); font-size: 12px; line-height: 1.4; display: block; margin-top: 2px; }
.opt-card .chev { color: var(--ink-muted); font-size: 18px; transition: transform .15s var(--ease); }
.opt-card:active .chev { transform: translateX(2px); }

.trust-strip {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  cursor: pointer;
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-xs);
}

.quick-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quick-card .quick-emoji {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 20px;
}

.quick-card strong {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -.02em;
}

.quick-card small {
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 11px;
}

/* ── Forms ─────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-soft); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  outline: none;
}
.field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237, 106, 44, .12);
}
.field .err { font-size: 11px; color: var(--danger); font-weight: 600; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }
.row2, .row3 { display: flex; gap: 10px; }
.row2 .field, .row3 .field { flex: 1; }

.segmented { display: flex; gap: 8px; }
.seg-btn {
  flex: 1;
  padding: 11px 8px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .18s var(--ease);
}
.seg-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-glow); }
html[data-theme="light"] .seg-btn.active { color: var(--accent-deep); }
.seg-btn.mint.active { border-color: var(--ok-deep); background: var(--ok-soft); color: var(--ok-deep); }

.step-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.step-tabs .dot2 { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .25s var(--ease); }
.step-tabs .dot2.done { background: var(--ok); }
.step-tabs .dot2.now { background: var(--accent); }

.meal-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.meal-progress .icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
}
.meal-progress .info { flex: 1; min-width: 0; }
.meal-progress h3 { font-size: 15px; color: var(--ink); font-weight: 700; }
.bar-track { height: 5px; background: var(--line); border-radius: 5px; margin-top: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ok); border-radius: 5px; transition: width .4s var(--ease); }
.meal-progress .count { font-size: 11px; font-weight: 700; color: var(--ok-deep); white-space: nowrap; }

/* ── Food Grid ─────────────────────────────────── */
.food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.food-item {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .15s var(--ease);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.food-item:active { transform: scale(.95); }
.food-item:hover { border-color: var(--accent-deep); }
.food-item.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--glow-green-sm); }
.food-item .emoji { font-size: 22px; line-height: 1; }
/* Tile do alimento: fundo em gradiente conforme a categoria */
.food-item .emoji {
  font-size: 26px; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; border-radius: 18px;
}
.meal-item .em[class*="cat-"], .shop-row .em[class*="cat-"] {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 18px; flex: none;
}
.cat-proteina { background: linear-gradient(135deg, rgba(214,72,65,.30), rgba(214,72,65,.10)); }
.cat-carbo { background: linear-gradient(135deg, rgba(230,126,34,.30), rgba(230,126,34,.10)); }
.cat-fruta { background: linear-gradient(135deg, rgba(133,223,4,.28), rgba(133,223,4,.10)); }
.cat-vegetal { background: linear-gradient(135deg, rgba(46,160,67,.32), rgba(46,160,67,.12)); }
.cat-lacteo { background: linear-gradient(135deg, rgba(79,168,220,.32), rgba(79,168,220,.12)); }
.cat-bebida { background: linear-gradient(135deg, rgba(155,89,182,.32), rgba(155,89,182,.12)); }
.cat-oleogeloso { background: linear-gradient(135deg, rgba(212,172,13,.32), rgba(212,172,13,.12)); }
.cat-fitaprazer { background: linear-gradient(135deg, rgba(232,90,150,.30), rgba(232,90,150,.12)); }
.food-item .lbl { font-size: 10px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.food-item .dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .15s var(--ease);
}
.food-item.sel .dot { background: var(--accent); border-color: var(--accent); color: #08120A; }

.footer-cta {
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 10;
}
.hint { font-size: 12px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ── Plans ─────────────────────────────────────── */
.plan-feats li::before { content: "✓"; color: var(--ok-deep); font-weight: 800; flex: none; }

/* ── Checkout ──────────────────────────────────── */

.coupon-line { display: flex; gap: 8px; align-items: center; }
.coupon-line input { flex: 1; min-width: 0; }
.coupon-line .btn-ghost { flex: none; padding: 8px 10px; }

.qr-box canvas, .qr-box img, .qr-box table { border-radius: 4px; }
.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-head);
}

/* ── Lookup / Result ───────────────────────────── */
.lookup-result { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--surface); }
.lookup-result .lr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lookup-result .lr-head .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ok-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.lr-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lr-row:last-child { border-bottom: none; }
.lr-row span:first-child { color: var(--ink-soft); }
.lr-row span:last-child { font-weight: 700; color: var(--ink); text-align: right; }

.empty-note {
  display: flex;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 500;
}
.empty-note.green { border-left-color: var(--accent); }

/* ── Success ───────────────────────────────────── */
.success-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 14px 28px; position: relative; overflow: hidden; }
.success-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.success-check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 16px;
  animation: popIn .45s var(--spring) both;
}
@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-wrap h2 { font-size: 19px; margin-bottom: 6px; font-weight: 800; }
.success-wrap p { margin: 0 0 22px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; max-width: 280px; }
.confetti { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: confettiFall 2.5s ease-in forwards; }
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0); opacity: 1; }
  100% { transform: translateY(400px) rotate(540deg); opacity: 0; }
}

/* ── Stats ─────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat .lbl { font-size: 10px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .val { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.stat .val small { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; }
.stat .sub { font-size: 10.5px; color: var(--ink-soft); }
.stat.accent { background: linear-gradient(140deg, rgba(133,223,4,.16), rgba(28,132,2,.10)); border-color: var(--accent-deep); }
.stat.accent .lbl, .stat.accent .sub { color: var(--ink-soft); }
.stat.accent .val { color: var(--accent-glow); text-shadow: var(--glow-text); }
.stat.tone-ok { background: linear-gradient(140deg, rgba(243,102,4,.15), rgba(243,102,4,.07)); border-color: var(--secondary); }
.stat.tone-ok .lbl, .stat.tone-ok .sub { color: var(--ink-soft); }
.stat.tone-ok .val, .stat.tone-ok .val small { color: var(--secondary-glow); }

html[data-theme="light"] .stat.accent { background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 100%); border: none; }
html[data-theme="light"] .stat.accent .lbl, html[data-theme="light"] .stat.accent .sub { color: rgba(255,255,255,.8); }
html[data-theme="light"] .stat.accent .val { color: #fff; text-shadow: none; }
html[data-theme="light"] .stat.tone-ok { background: linear-gradient(140deg, var(--secondary) 0%, #C24D00 100%); border: none; }
html[data-theme="light"] .stat.tone-ok .lbl, html[data-theme="light"] .stat.tone-ok .sub { color: rgba(255,255,255,.82); }
html[data-theme="light"] .stat.tone-ok .val, html[data-theme="light"] .stat.tone-ok .val small { color: #fff; }

/* ── Rings ─────────────────────────────────────── */
.ring-row { display: flex; gap: 14px; align-items: center; }
.ring-box { position: relative; width: 100px; height: 100px; flex: none; }
.ring-box svg { transform: rotate(-90deg); }
.ring-box .ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.ring-box .ring-center b { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.ring-box .ring-center small { font-size: 9px; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ── Water ─────────────────────────────────────── */
.water-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 16px;
  background: linear-gradient(165deg, var(--deep) 0%, var(--deep-deep) 100%);
  border-radius: var(--radius);
  color: #fff;
}
.cup {
  width: 108px;
  height: 148px;
  border: 3px solid rgba(255, 255, 255, .45);
  border-radius: 14px 14px 24px 24px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.cup:active { transform: scale(.97); }
.cup .water {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--green-neon), var(--green-deep));
  transition: height .5s var(--ease);
}
.cup .water::before {
  content: "";
  position: absolute;
  top: -7px;
  left: -10%;
  width: 120%;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .30);
}
.cup .pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 46, 89, .4);
}
.water-actions { display: flex; gap: 10px; width: 100%; }
.water-actions .btn { flex: 1; padding: 12px; }

/* ── Charts ────────────────────────────────────── */
.chart-card canvas { width: 100%; height: 170px; display: block; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

/* ── Diet / Meals ──────────────────────────────── */
.list { display: flex; flex-direction: column; gap: 10px; }
.meal-day-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.meal-day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  transition: background .12s var(--ease);
}
.meal-day-head:active { background: var(--line); }
.meal-day-head .ic {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex: none;
}
.meal-day-head .t { flex: 1; min-width: 0; }
.meal-day-head .t b { display: block; font-size: 13.5px; font-family: var(--font-head); color: var(--ink); font-weight: 700; }
.meal-day-head .t small { font-size: 11px; color: var(--ink-soft); }
.meal-day-head .kcal { font-family: var(--font-head); font-weight: 800; font-size: 12.5px; color: var(--accent-deep); white-space: nowrap; }
.meal-day-body { padding: 4px 6px 8px; display: flex; flex-direction: column; }
.meal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  border-radius: var(--radius-xs);
  transition: background .12s var(--ease);
}
.meal-item:active { background: var(--surface-2); }
.meal-item .em { font-size: 19px; width: 24px; text-align: center; flex: none; }
.meal-item .mi { flex: 1; min-width: 0; }
.meal-item .mi b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.meal-item .mi small { font-size: 10.5px; color: var(--ink-soft); }
.meal-item .grams {
  font-size: 11px;
  font-weight: 700;
  color: var(--ok-deep);
  background: var(--ok-soft);
  padding: 3px 8px;
  border-radius: 7px;
  white-space: nowrap;
}
.meal-item .swap { border: none; background: none; font-size: 14px; cursor: pointer; color: var(--ink-soft); padding: 5px; transition: color .15s var(--ease); }
.meal-item .swap:active { color: var(--accent); }
.meal-item.done .mi b { text-decoration: line-through; color: var(--ink-muted); }
.meal-item .chk {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--line);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.meal-item.done .chk { background: var(--ok-deep); border-color: var(--ok-deep); }

/* ── Workouts ──────────────────────────────────── */
.workout-plan { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.workout-plan .wp-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px; cursor: pointer; }
.workout-plan .wp-head .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; color: #fff; }
.workout-plan .wp-head b { display: block; font-size: 13.5px; font-family: var(--font-head); color: var(--ink); font-weight: 700; }
.workout-plan .wp-head small { color: var(--ink-soft); font-size: 11px; }
.ex-row { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.ex-row:last-child { border-bottom: none; }
.ex-row .em { font-size: 20px; width: 28px; text-align: center; flex: none; }
.ex-row .ei { flex: 1; min-width: 0; }
.ex-row .ei b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.ex-row .ei small { color: var(--ink-soft); font-size: 11px; line-height: 1.4; display: block; margin-top: 1px; }
.ex-row .series {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  color: var(--deep);
  background: var(--deep-soft);
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
html:not([data-theme="light"]) .ex-row .series { color: var(--ink); }
.ex-row .timer-btn {
  border: none;
  background: var(--accent-soft);
  color: var(--accent-deep);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  flex: none;
  transition: transform .12s var(--ease);
}
.ex-row .timer-btn:active { transform: scale(.9); }

/* ── Recipes ───────────────────────────────────── */
.recipe-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  gap: 0;
  transition: all .18s var(--ease);
}
.recipe-card:active { transform: scale(.98); }
.recipe-card:hover { border-color: var(--accent); }
.recipe-card .rc-emoji {
  width: 70px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--accent-soft);
}
.recipe-card .rc-body { padding: 12px 13px; flex: 1; min-width: 0; }
.recipe-card .rc-body b { display: block; font-size: 13px; font-family: var(--font-head); color: var(--ink); line-height: 1.3; font-weight: 700; }
.recipe-card .rc-body small { color: var(--ink-soft); font-size: 11px; display: block; margin-top: 2px; }
.recipe-card .rc-kcal {
  align-self: flex-start;
  margin: 12px 12px 0 0;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ok-deep);
  background: var(--ok-soft);
  padding: 3px 8px;
  border-radius: 7px;
  white-space: nowrap;
}

.filter-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s var(--ease);
}
.fchip:active { transform: scale(.95); }
.fchip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-glow); }
html[data-theme="light"] .fchip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Shopping ──────────────────────────────────── */
.shop-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: opacity .15s var(--ease);
}
.shop-row .chk {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--line);
  flex: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  transition: all .15s var(--ease);
}
.shop-row.done { opacity: .5; }
.shop-row.done .chk { background: var(--ok-deep); border-color: var(--ok-deep); }
.shop-row .nm { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; }
.shop-row.done .nm { text-decoration: line-through; }
.shop-row .qty { font-size: 11px; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.shop-row .del { border: none; background: none; color: var(--danger); font-size: 14px; cursor: pointer; padding: 4px; transition: transform .12s var(--ease); }
.shop-row .del:active { transform: scale(.85); }

/* ── Menu Grid ─────────────────────────────────── */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: all .18s var(--ease);
  text-align: left;
}
.menu-tile:active { transform: scale(.97); }
.menu-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.menu-tile .mt-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--accent-soft);
}
.menu-tile.mint .mt-ic { background: var(--ok-soft); }
.menu-tile.navy .mt-ic { background: var(--deep-soft); }
.menu-tile b { font-size: 13px; font-family: var(--font-head); color: var(--ink); font-weight: 700; }
.menu-tile small { font-size: 10.5px; color: var(--ink-soft); line-height: 1.4; }
.menu-tile { position: relative; }
.menu-tile .tile-selo {
  position: absolute; top: 8px; right: 8px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .02em;
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid var(--accent);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
html[data-theme="light"] .menu-tile .tile-selo {
  background: var(--accent-deep); color: #fff; border-color: var(--accent-deep);
}

/* Hidratação: chips de ml */
.water-ml { font-weight: 700; color: var(--ink-soft); font-size: .95em; }
.water-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 8px; }
.chip-ml {
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.chip-ml:hover, .chip-ml:active { border-color: var(--accent); color: var(--accent-glow); }
html[data-theme="light"] .chip-ml:hover, html[data-theme="light"] .chip-ml:active {
  color: var(--accent-deep);
}
.water-free {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-bottom: 8px;
}
.water-free input {
  width: 110px; padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 14px; text-align: center;
}

/* Treinos: badge de recomendação */
.workout-plan.recommended { border-color: var(--green-neon); box-shadow: var(--glow-green); }
html[data-theme="light"] .workout-plan.recommended { border-color: var(--accent-deep); box-shadow: none; }
.rec-badge {
  font-size: 10.5px; font-weight: 800; white-space: nowrap;
  background: var(--green-neon); color: #06130a;
  padding: 4px 9px; border-radius: 999px; margin-right: 6px;
}
html[data-theme="light"] .rec-badge { background: var(--accent-deep); color: #fff; }

/* ── Toggles ───────────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.toggle-row .t { flex: 1; min-width: 0; }
.toggle-row .t b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.toggle-row .t small { color: var(--ink-soft); font-size: 11px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .sl {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line);
  transition: background .2s var(--ease);
}
.switch .sl::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform .2s var(--ease);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.switch input:checked + .sl { background: var(--ok-deep); }
.switch input:checked + .sl::before { transform: translateX(20px); }

/* ── Offline / Toast / Modal ───────────────────── */
.offline-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 14px;
  text-align: center;
}
.offline-banner.show { display: flex; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(20px);
  background: var(--deep-deep);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all .25s var(--ease);
  z-index: 200;
  max-width: 88vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--ok-deep); color: #fff; }
.toast.err { background: var(--danger); }

.modal-root { position: fixed; inset: 0; z-index: 150; display: none; }
.modal-root.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet {
  position: relative;
  margin: auto;
  width: min(420px, 92vw);
  max-height: 82vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 22px;
  padding: 20px;
  animation: sheetUp .3s var(--spring) both;
  box-shadow: var(--shadow-lg);
}
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-sheet h3 { font-size: 16px; margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.modal-sheet .ms-sub { font-size: 12px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.5; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s var(--ease);
}
.modal-close:active { background: var(--line); }

.timer-modal { text-align: center; }
.timer-display { font-family: var(--font-head); font-size: 52px; font-weight: 800; color: var(--deep); margin: 8px 0 4px; letter-spacing: -.02em; }
html:not([data-theme="light"]) .timer-display { color: var(--ink); }
.timer-display.running { color: var(--accent-deep); }
.timer-presets { display: flex; gap: 7px; justify-content: center; margin: 10px 0 14px; }
.timer-presets .fchip.active { background: var(--accent); border-color: var(--accent); }
.timer-ring { position: relative; width: 180px; height: 180px; margin: 6px auto; }
.timer-ring .td {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
}
.timer-ring.running .td { color: var(--accent-deep); }

.sync-info { font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; }
.sync-info b { color: var(--ink); font-weight: 600; }

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--secondary-soft);
  border: 1.5px solid var(--secondary);
  color: var(--secondary-glow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  box-shadow: var(--glow-orange);
}
html[data-theme="light"] .streak-pill { background: var(--secondary); border-color: var(--secondary); color: #fff; }

.macro-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.macro-bar .mb-top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 3px; }
.macro-bar .mb-top b { color: var(--ink); font-weight: 700; }
.macro-bar .bar-track { height: 6px; }
.macro-bar.carb .bar-fill { background: linear-gradient(90deg, var(--yellow-glow), var(--secondary)); }
.macro-bar.prot .bar-fill { background: linear-gradient(90deg, var(--ok), var(--ok-deep)); }
.macro-bar.gord .bar-fill { background: linear-gradient(90deg, var(--green-glow), var(--green-deep)); }

.imc-scale { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.imc-scale i { flex: 1; }
.imc-scale .s1 { background: #6E7F62; }
.imc-scale .s2 { background: var(--ok); }
.imc-scale .s3 { background: var(--yellow-glow); }
.imc-scale .s4 { background: var(--accent); }
.imc-scale .s5 { background: var(--danger); }
.imc-scale .s6 { background: #7A1C1C; }
.imc-marker { position: relative; height: 0; }
.imc-marker .mk {
  position: absolute;
  top: -18px;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 800;
  background: var(--ink);
  color: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.imc-marker .mk::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  border: 3px solid transparent;
  border-top-color: var(--ink);
  border-bottom: none;
}

/* ── Utilities ─────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Tablet (600px+)
   ══════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .app-shell { max-width: 720px; }

  .food-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .food-item { padding: 14px 6px 10px; }
  .food-item .emoji { font-size: 26px; }
  .food-item .lbl { font-size: 11px; }

  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat { padding: 16px; }
  .stat .val { font-size: 22px; }

  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .menu-tile { padding: 18px 16px; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .quick-card { min-height: 128px; padding: 16px 14px; }

  .hero { padding: 36px 32px 32px; }
  .hero h1 { font-size: 27px; }
  .hero .plate { width: 160px; height: 160px; font-size: 48px; }

  .content { padding: 20px 20px 28px; gap: 16px; }

  .card { padding: 18px; }

  .meal-day-head { padding: 14px 18px; }
  .meal-item { padding: 10px 8px; gap: 12px; }
  .meal-item .em { font-size: 21px; width: 28px; }

  .recipe-card .rc-emoji { width: 84px; font-size: 32px; }
  .recipe-card .rc-body { padding: 14px 16px; }
  .recipe-card .rc-body b { font-size: 14px; }
  .recipe-card .rc-body small { font-size: 12px; }

  .ex-row { padding: 12px 16px; gap: 14px; }

  .shop-row { padding: 13px 16px; gap: 13px; }
  .shop-row .nm { font-size: 14px; }

  .topbar h2 { font-size: 19px; }

  .plan-price { font-size: 32px; }

  .btn { padding: 16px; font-size: 15px; }

  .water-hero { padding: 28px 24px; }
  .cup { width: 120px; height: 164px; }

  .ring-box { width: 120px; height: 120px; }
  .ring-box .ring-center b { font-size: 22px; }

  .timer-display { font-size: 60px; }
  .timer-ring { width: 210px; height: 210px; }

  .chart-card canvas { height: 210px; }

  .success-wrap { padding: 48px 24px 36px; }
  .success-check { width: 88px; height: 88px; font-size: 40px; }
  .success-wrap h2 { font-size: 22px; }

  .filter-chips { gap: 10px; }
  .fchip { padding: 8px 18px; font-size: 13px; }

  .section-title { font-size: 13px; }

  .tabbar button { font-size: 11px; gap: 4px; }
  .tabbar button .ic { font-size: 23px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Desktop (900px+)
   Layout sidebar + conteúdo principal, visual refinado
   ══════════════════════════════════════════════════ */
@media (min-width: 900px) {
  :root {
    --header-h: 64px;
    --sidebar-w: 260px;
  }

  body {
    padding: 0;
    display: block;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(133, 223, 4, .04), transparent 50%),
      radial-gradient(ellipse at 80% 100%, rgba(243, 102, 4, .03), transparent 50%),
      var(--bg);
  }
  html[data-theme="light"] body {
    background:
      radial-gradient(ellipse at 20% 0%, rgba(78, 158, 2, .06), transparent 50%),
      radial-gradient(ellipse at 80% 100%, rgba(224, 90, 0, .04), transparent 50%),
      var(--bg);
  }

  /* ── Shell ─────────────────────────────────────── */
  .app-shell {
    max-width: 100%;
    border-radius: 0;
    overflow: visible;
    min-height: 100vh;
    min-height: 100dvh;
    border: none;
    box-shadow: none;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: auto 1fr;
  }

  /* ── Header ────────────────────────────────────── */
  .app-header {
    grid-column: 1 / -1;
    height: 60px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    max-width: none;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--line);
  }
  .app-header .logo {
    width: 38px;
    height: 38px;
  }
  .app-header .brand b {
    font-size: 17px;
  }
  .app-header .chip {
    font-size: 12px;
    padding: 6px 14px;
  }
  .app-header .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
  }

  /* ── Sidebar ───────────────────────────────────── */
  .tabbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 76px 12px 24px;
    border-top: none;
    border-right: 1px solid var(--line);
    border-radius: 0;
    z-index: 45;
    overflow-y: auto;
    transform: none;
    background: var(--surface);
    transition: background .2s var(--ease);
  }
  .tabbar::-webkit-scrollbar { width: 4px; }
  .tabbar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
  .tabbar::-webkit-scrollbar-track { background: transparent; }

  .tabbar button {
    flex: none;
    flex-direction: row;
    gap: 12px;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-right: 4px;
    justify-content: flex-start;
    color: var(--ink-soft);
    transition: all .2s var(--ease);
    position: relative;
  }
  .tabbar button:hover {
    color: var(--ink);
    background: var(--surface-2);
  }
  html[data-theme="light"] .tabbar button:hover {
    background: var(--surface-2);
  }
  .tabbar button .ic {
    font-size: 21px;
    width: 28px;
    text-align: center;
    flex: none;
    transition: transform .2s var(--spring);
  }
  .tabbar button.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 700;
  }
  .tabbar button.active .ic {
    transform: scale(1.1);
  }
  .tabbar button.active::after {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 3px;
    height: 28px;
    border-radius: 0 6px 6px 0;
  }
  html:not([data-theme="light"]) .tabbar button.active {
    box-shadow: inset 0 0 20px rgba(133, 223, 4, .06);
  }

  /* ── Main content ──────────────────────────────── */
  main.screens {
    grid-column: 2;
    padding-bottom: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    scroll-behavior: smooth;
  }
  main.screens::-webkit-scrollbar { width: 6px; }
  main.screens::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
  main.screens::-webkit-scrollbar-track { background: transparent; }

  .screen.active {
    min-height: auto;
    animation: desktopFadeIn .35s var(--ease) both;
  }
  @keyframes desktopFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }

  .content {
    padding: 28px 40px 40px;
    gap: 20px;
    max-width: 1200px;
  }

  /* ── Topbar ────────────────────────────────────── */
  .topbar { padding: 16px 24px 6px; }
  .topbar h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
  .topbar p { font-size: 13.5px; }

  /* ── Hero ──────────────────────────────────────── */
  .hero {
    padding: 48px 52px 44px;
    border-radius: var(--radius);
    margin-bottom: 4px;
  }
  .hero h1 { font-size: 32px; letter-spacing: -.03em; }
  .hero p { font-size: 15px; max-width: 440px; line-height: 1.7; }
  .hero .plate { width: 190px; height: 190px; font-size: 58px; }
  .hero .plate .food { font-size: 28px; }

  /* ── Cards ─────────────────────────────────────── */
  .card {
    padding: 24px;
    border-radius: var(--radius);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  }
  html:not([data-theme="light"]) .card:hover {
    box-shadow: var(--shadow-md);
  }

  /* ── Stat Grid ─────────────────────────────────── */
  .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stat {
    padding: 20px;
    border-radius: var(--radius);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  }
  .stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  .stat .val { font-size: 26px; letter-spacing: -.02em; }
  .stat .lbl { font-size: 11.5px; letter-spacing: .04em; }

  /* ── Quick Grid ────────────────────────────────── */
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .quick-card {
    min-height: 140px;
    padding: 20px 18px;
    border-radius: var(--radius);
    transition: all .2s var(--ease);
    position: relative;
    overflow: hidden;
  }
  .quick-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .25s var(--ease);
    background: linear-gradient(135deg, rgba(133, 223, 4, .06), transparent 60%);
  }
  html:not([data-theme="light"]) .quick-card:hover::before { opacity: 1; }
  html[data-theme="light"] .quick-card:hover::before { opacity: 1; background: linear-gradient(135deg, rgba(78, 158, 2, .06), transparent 60%); }
  .quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
  }
  .quick-card .quick-emoji { width: 48px; height: 48px; font-size: 23px; }
  .quick-card strong { font-size: 14.5px; }
  .quick-card small { font-size: 12.5px; line-height: 1.5; }

  /* ── Food Grid ─────────────────────────────────── */
  .food-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .food-item {
    padding: 18px 10px 14px;
    border-radius: var(--radius);
    transition: all .2s var(--ease);
  }
  .food-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  .food-item .emoji { font-size: 32px; }
  .food-item .lbl { font-size: 12.5px; }

  /* ── Menu Grid ─────────────────────────────────── */
  .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .menu-tile {
    padding: 22px 20px;
    border-radius: var(--radius);
    transition: all .2s var(--ease);
  }
  .menu-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  .menu-tile b { font-size: 14.5px; }
  .menu-tile small { font-size: 12.5px; line-height: 1.5; }

  /* ── Meal Cards ────────────────────────────────── */
  .meal-day-card {
    border-radius: var(--radius);
    transition: box-shadow .2s var(--ease);
  }
  .meal-day-card:hover { box-shadow: var(--shadow-sm); }
  .meal-day-head { padding: 16px 22px; }
  .meal-item { padding: 12px 12px; gap: 14px; }
  .meal-item:hover { background: var(--surface-2); }
  .meal-item .em { font-size: 24px; width: 34px; }
  .meal-item .mi b { font-size: 14px; }
  .meal-item .mi small { font-size: 12px; }
  .meal-item .grams { font-size: 12.5px; padding: 4px 12px; }

  /* ── Recipe Cards ──────────────────────────────── */
  .recipe-card {
    border-radius: var(--radius);
    transition: all .2s var(--ease);
  }
  .recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  .recipe-card .rc-emoji { width: 100px; font-size: 40px; }
  .recipe-card .rc-body { padding: 18px 22px; }
  .recipe-card .rc-body b { font-size: 15.5px; }
  .recipe-card .rc-body small { font-size: 13px; }

  /* ── Workout Rows ──────────────────────────────── */
  .ex-row { padding: 14px 22px; gap: 16px; }
  .ex-row:hover { background: var(--surface-2); border-radius: var(--radius-xs); }
  .ex-row .em { font-size: 26px; width: 34px; }
  .ex-row .ei b { font-size: 14.5px; }
  .ex-row .ei small { font-size: 12.5px; }
  .ex-row .series { font-size: 12.5px; padding: 5px 14px; }

  /* ── Shopping ──────────────────────────────────── */
  .shop-row {
    padding: 15px 20px;
    gap: 14px;
    border-radius: var(--radius);
    transition: all .2s var(--ease);
  }
  .shop-row:hover { box-shadow: var(--shadow-xs); }
  .shop-row .nm { font-size: 15px; }
  .shop-row .qty { font-size: 12.5px; }

  /* ── Buttons ───────────────────────────────────── */
  .btn {
    padding: 16px 28px;
    font-size: 15px;
    border-radius: var(--radius);
    transition: all .2s var(--ease);
  }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(.98); }
  .btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: var(--radius-xs); }

  /* ── Opt Cards ─────────────────────────────────── */
  .opt-card {
    padding: 20px 24px;
    border-radius: var(--radius);
    transition: all .2s var(--ease);
  }
  .opt-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  .opt-card .txt strong { font-size: 15.5px; }
  .opt-card .txt small { font-size: 13px; line-height: 1.5; }

  /* ── Forms ─────────────────────────────────────── */
  .field input, .field select, .field textarea {
    padding: 14px 18px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }
  .field input:focus, .field select:focus {
    box-shadow: 0 0 0 4px rgba(133, 223, 4, .12);
  }
  html[data-theme="light"] .field input:focus,
  html[data-theme="light"] .field select:focus {
    box-shadow: 0 0 0 4px rgba(78, 158, 2, .12);
  }

  /* ── Filter Chips ──────────────────────────────── */
  .filter-chips { gap: 10px; }
  .fchip {
    padding: 9px 22px;
    font-size: 13.5px;
    border-radius: var(--radius-pill);
    transition: all .2s var(--ease);
  }
  .fchip:hover { transform: translateY(-1px); }

  /* ── Water ─────────────────────────────────────── */
  .water-hero { padding: 36px 32px; border-radius: var(--radius); }
  .cup { width: 150px; height: 200px; }
  .water-actions .btn { padding: 14px 20px; font-size: 15px; }

  /* ── Rings ─────────────────────────────────────── */
  .ring-box { width: 148px; height: 148px; }
  .ring-box .ring-center b { font-size: 28px; }
  .ring-row { gap: 24px; }

  /* ── Charts ────────────────────────────────────── */
  .chart-card canvas { height: 280px; }

  /* ── Timer ─────────────────────────────────────── */
  .timer-display { font-size: 78px; }
  .timer-ring { width: 260px; height: 260px; }
  .timer-ring .td { font-size: 50px; }

  /* ── Section Titles ────────────────────────────── */
  .section-title { font-size: 14.5px; letter-spacing: .08em; }

  /* ── Success ───────────────────────────────────── */
  .success-wrap { padding: 60px 40px 48px; }
  .success-check { width: 110px; height: 110px; font-size: 50px; }
  .success-wrap h2 { font-size: 28px; letter-spacing: -.02em; }
  .success-wrap p { font-size: 15px; max-width: 400px; line-height: 1.7; }

  /* ── Modal ─────────────────────────────────────── */
  .modal-sheet { width: min(480px, 88vw); padding: 28px; border-radius: 24px; }
  .modal-sheet h3 { font-size: 19px; }

  /* ── Choice List ───────────────────────────────── */
  .choice-list { gap: 10px; }
  .choice {
    padding: 16px 18px;
    border-radius: var(--radius);
    transition: all .2s var(--ease);
  }
  .choice:hover { transform: translateY(-1px); box-shadow: var(--shadow-xs); }

  /* ── Plan Price ────────────────────────────────── */
  .plan-price { font-size: 38px; }
  .plan-feats li { font-size: 13.5px; }

  /* ── Coupon ────────────────────────────────────── */
  .coupon-line input { padding: 14px 18px; font-size: 15px; }

  /* ── Day Strip ─────────────────────────────────── */
  .day-pill { padding: 10px 6px; font-size: 12.5px; }

  /* ── Toggle ────────────────────────────────────── */
  .toggle-row { padding: 16px; }
  .toggle-row .t b { font-size: 14px; }

  /* ── Home Head ─────────────────────────────────── */
  .home-head h2 { font-size: 24px; letter-spacing: -.02em; }
  .home-head p { font-size: 13.5px; }

  /* ── Next Meal ─────────────────────────────────── */
  .next-meal { padding: 4px; }
  .next-meal .opt-icon { width: 50px; height: 50px; font-size: 24px; }
  .next-meal b { font-size: 15px; }
  .next-meal small { font-size: 12.5px; }

  /* ── Empty Note ────────────────────────────────── */
  .empty-note { padding: 14px 18px; font-size: 13px; border-radius: var(--radius-sm); }

  /* ── Warn Note ─────────────────────────────────── */
  .warn-note { padding: 14px 18px; font-size: 13px; border-radius: var(--radius-sm); }

  /* ── Free Ribbon ───────────────────────────────── */
  .free-ribbon { padding: 18px 20px; font-size: 13px; }
  .free-ribbon b { font-size: 15px; }

  /* ── Feature Strip ─────────────────────────────── */
  .feature-strip { padding: 18px 14px; }
  .feature-strip b { font-size: 17px; }
  .feature-strip span { font-size: 12px; }

  /* ── Streak Pill ───────────────────────────────── */
  .streak-pill { font-size: 13px; padding: 6px 16px; }

  /* ── Sync Info ─────────────────────────────────── */
  .sync-info { font-size: 12.5px; }

  /* ── Onboarding ────────────────────────────────── */
  .ob-card { max-width: 420px; padding: 40px 32px 28px; }
  .ob-card h2 { font-size: 26px; }
}

/* ══════════════════════════════════════════════════
   Onboarding Tutorial
   ══════════════════════════════════════════════════ */
.onboarding-overlay{
  position:fixed;inset:0;z-index:500;
  background:linear-gradient(165deg,var(--deep-deep) 0%,var(--deep) 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:#fff;padding:24px;
}
.onboarding-overlay.hidden{display:none}
.ob-card{
  background:rgba(255,255,255,.1);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.15);border-radius:28px;
  padding:36px 28px 28px;max-width:380px;width:100%;text-align:center;
}
.ob-icon{font-size:64px;margin-bottom:18px;display:block;animation:obBounce .6s var(--spring) both}
@keyframes obBounce{from{transform:scale(.3) translateY(20px);opacity:0}to{transform:none;opacity:1}}
.ob-card h2{font-size:22px;font-weight:800;margin-bottom:8px;line-height:1.2}
.ob-card p{font-size:13.5px;color:rgba(255,255,255,.72);line-height:1.6;margin:0 0 24px}
.ob-dots{display:flex;gap:8px;justify-content:center;margin-bottom:24px}
.ob-dots .dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.3);transition:all .3s var(--ease)}
.ob-dots .dot.active{background:#fff;width:24px;border-radius:4px}
.ob-actions{display:flex;gap:10px}
.ob-btn{
  flex:1;padding:14px;border-radius:14px;border:none;
  font-family:var(--font-head);font-weight:700;font-size:14px;cursor:pointer;
  transition:transform .12s var(--ease);
}
.ob-btn:active{transform:scale(.96)}
.ob-btn.primary{background:var(--accent);color:#fff;box-shadow:0 4px 14px rgba(237,106,44,.35)}
.ob-btn.ghost{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2)}
.ob-skip{
  margin-top:16px;border:none;background:none;color:rgba(255,255,255,.5);
  font-size:13px;font-weight:600;cursor:pointer;padding:8px;
}
.ob-skip:hover{color:#fff}
.ob-features{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px;text-align:left;
}
.ob-feat{
  background:rgba(255,255,255,.08);border-radius:14px;padding:14px;
  display:flex;align-items:flex-start;gap:10px;
}
.ob-feat .of-ic{font-size:24px;flex:none;line-height:1}
.ob-feat .of-txt{font-size:11.5px;color:rgba(255,255,255,.8);line-height:1.4}
.ob-feat .of-txt b{display:block;color:#fff;font-size:12.5px;margin-bottom:2px}
@media(min-width:600px){
  .ob-card{padding:44px 36px 32px}
  .ob-card h2{font-size:26px}
  .ob-features{gap:14px}
}

/* ============================================================
   v2 — componentes novos
   ============================================================ */

/* ── início ───────────────────────────────────────────────── */
.home-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-head > div { flex: 1; min-width: 0; }
.home-head h2 { font-size: 20px; line-height: 1.2; }
.home-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-soft); }

.feature-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 10px; text-align: center;
}
.feature-strip b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--accent-deep); }
.feature-strip span { font-size: 10.5px; color: var(--ink-soft); line-height: 1.3; display: block; margin-top: 3px; }

.next-meal { display: flex; align-items: center; gap: 12px; }
.next-meal .opt-icon { background: var(--accent-soft); width: 46px; height: 46px; font-size: 22px; flex: none; }
.next-meal b { font-family: var(--font-head); font-size: 14.5px; display: block; }
.next-meal small { display: block; color: var(--ink-soft); font-size: 11.5px; margin-top: 2px; }

/* ── formulários ──────────────────────────────────────────── */
.lbl-hint { font-weight: 500; color: var(--ink-muted); font-size: 10.5px; }
.field .err { display: none; color: var(--danger); font-size: 11px; margin-top: 4px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }

.preview-card { background: var(--surface-2); border-style: dashed; }
.preview-line {
  background: var(--surface-2); border-radius: var(--radius-xs);
  padding: 10px 12px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5;
}
.preview-line b { color: var(--ink); font-family: var(--font-head); }

.search-input {
  width: 100%; padding: 12px 14px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
}
.search-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* ── lista de escolhas (restrições, protocolos) ───────────── */
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.choice:active { transform: scale(.99); }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); }
.choice .ch-emoji {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  background: var(--surface-2); font-family: var(--font-head);
}
.choice.sel .ch-emoji { background: rgba(255,255,255,.6); }
.choice .ch-txt { flex: 1; min-width: 0; }
.choice .ch-txt b { display: block; font-size: 14px; font-family: var(--font-head); }
.choice .ch-txt small { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }
.choice .ch-dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 12px; color: #fff;
}
.choice.sel .ch-dot { background: var(--accent); border-color: var(--accent); }

/* ── avisos ───────────────────────────────────────────────── */
.warn-note {
  display: flex; flex-direction: column; gap: 3px;
  background: #FFF8E8; border: 1px solid #F2D9A0; border-left: 3px solid var(--warn);
  border-radius: var(--radius-xs); padding: 12px 14px; font-size: 12.5px; color: #6B5320; line-height: 1.5;
}
.warn-note b { font-size: 13px; font-family: var(--font-head); }
.warn-note.danger { background: #FDECEE; border-color: #F3C2C8; border-left-color: var(--danger); color: #7A2630; }
html:not([data-theme="light"]) .warn-note { background: rgba(243,102,4,.10); border-color: rgba(243,102,4,.45); color: #F2DFAE; }
html:not([data-theme="light"]) .warn-note.danger { background: rgba(255,75,75,.10); border-color: rgba(255,75,75,.45); color: #FFC3C3; }

.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.card-head b { font-family: var(--font-head); font-size: 13.5px; color: var(--accent-deep); }

.badge-tone {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; font-family: var(--font-head);
  background: var(--surface-2); color: var(--ink-soft);
}
.badge-tone.ok { background: var(--ok-soft); color: var(--ok-deep); }
.badge-tone.warn { background: var(--secondary-soft); color: var(--secondary-glow); }
.badge-tone.danger { background: rgba(255,75,75,.14); color: #FF8A8A; }
.badge-tone.neutral { background: var(--surface-2); color: var(--ink-soft); }

.tag-mini {
  display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 10.5px;
  font-weight: 600; background: var(--ok-soft); color: var(--ok-deep); white-space: nowrap;
}
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ── seletor de dia da semana ─────────────────────────────── */
.day-strip {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 6px;
}
.day-pill {
  border: 0; border-radius: 10px; padding: 9px 2px; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  font: inherit; font-size: 11.5px; font-weight: 700; position: relative;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.day-pill.today::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--ok-deep);
}
.day-pill.active { background: var(--accent); color: #fff; }
.day-pill.active.today::after { background: #fff; }

.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--accent-deep); font: inherit; font-weight: 700; text-decoration: underline;
}

/* ── dieta ────────────────────────────────────────────────── */
.meal-day-body.collapsed { display: none; }
.meal-day-card.done .meal-day-head { background: var(--ok-soft); }
.extras-card .shop-row:last-child { border-bottom: 0; }

.swap-list { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.swap-opt { cursor: pointer; }
.swap-opt:active { background: var(--surface-2); }

.food-item .kc {
  display: block; font-size: 10px; color: var(--ink-muted); margin-top: 2px;
}

.locked { align-items: center; text-align: center; padding-top: 46px; }
.locked h2 { font-size: 19px; margin-top: 10px; }
.locked .hint { max-width: 280px; }
.lock-emoji { font-size: 54px; }

/* ── checkout ─────────────────────────────────────────────── */
html:not([data-theme="light"]) .demo-ribbon { color: var(--deep); }

/* ── hidratação ───────────────────────────────────────────── */
.btn-glass {
  background: rgba(255,255,255,.14) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.3) !important;
}
.water-count { font-family: var(--font-head); font-size: 17px; }

/* ── botões e utilitários ─────────────────────────────────── */
.btn.tall { height: 46px; }
.segmented.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.segmented.scroll::-webkit-scrollbar { display: none; }
.segmented.scroll .seg-btn { white-space: nowrap; flex: 0 0 auto; padding-inline: 14px; }
.ex-list { padding: 0; overflow: hidden; border-radius: 18px; }
.tb-logo { width: 34px; height: 34px; border-radius: 50%; }
.sync-info.center { text-align: center; }
.danger-zone { border-color: var(--danger); }

.shop-row .em { font-size: 19px; flex: none; }
.shop-row .nm small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 500; margin-top: 1px; }
.shop-row .nm small.down { color: var(--ok-deep); }
.shop-row .nm small.up { color: var(--accent-deep); }
.shop-row.compact { padding: 10px 12px; }

/* ── receitas ─────────────────────────────────────────────── */
.recipe-card.dim { opacity: .55; }
.recipe-head { text-align: center; }
.recipe-head .rh-emoji { font-size: 52px; line-height: 1; }
.recipe-head h3 { margin: 6px 0 8px; }
.steps { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.75; color: var(--ink); }
.steps li { margin-bottom: 6px; }

/* ── estados vazios ───────────────────────────────────────── */
.empty-state { text-align: center; padding: 26px 20px; }
.empty-state .es-emoji { font-size: 46px; line-height: 1; }
.empty-state b { display: block; font-family: var(--font-head); font-size: 15.5px; margin: 10px 0 6px; }
.empty-state p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }

/* ── composição corporal ──────────────────────────────────── */
.range-bar { position: relative; margin: 14px 0 22px; }
.rb-track { height: 10px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.rb-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--ok), var(--ok-deep)); }
.rb-mark {
  position: absolute; top: 16px; transform: translateX(-50%);
  background: var(--deep); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.rb-mark::before {
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: var(--deep); border-top: 0;
}
.stat.danger { background: #FDECEE; border-color: #F3C2C8; }
html:not([data-theme="light"]) .stat.danger { background: rgba(255,75,75,.10); border-color: rgba(255,75,75,.4); }

/* ── jejum ────────────────────────────────────────────────── */
.fast-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; }
.fast-card .fc-ring { flex: none; width: 56px; height: 56px; }
.fast-card .fc-txt { flex: 1; min-width: 0; }
.fast-card .fc-txt b { display: block; font-family: var(--font-head); font-size: 14px; }
.fast-card .fc-txt small { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

.fast-active { text-align: center; }
.fa-ring { position: relative; width: 200px; height: 200px; margin: 4px auto 12px; }
.fa-center { position: absolute; inset: 0; display: grid; place-content: center; }
.fa-center b { font-family: var(--font-head); font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fa-center small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.fa-status { margin-bottom: 14px; }
.fa-times { display: flex; gap: 10px; margin-bottom: 14px; }
.fa-times > div { flex: 1; background: var(--surface-2); border-radius: var(--radius-xs); padding: 10px; }
.fa-times span { display: block; font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.fa-times b { font-family: var(--font-head); font-size: 15px; }

/* ── compartilhamento ─────────────────────────────────────── */
.share-text {
  width: 100%; margin-top: 12px; padding: 11px; font: inherit; font-size: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-xs);
  background: var(--surface-2); color: var(--ink-soft); resize: vertical;
}

/* ============================================================
   Impressão / PDF
   ============================================================ */
#printSheet { display: none; }

@media print {
  .app-shell, .modal-root, .toast, .onboarding-overlay { display: none !important; }
  body { background: #fff !important; }
  #printSheet { display: block !important; padding: 0; color: #111; background: #fff; }
  @page { margin: 14mm 12mm; }
}

#printSheet .ps-head {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 2px solid #ED6A2C; padding-bottom: 10px; margin-bottom: 16px;
}
#printSheet .ps-head img { width: 42px; height: 42px; border-radius: 50%; }
#printSheet .ps-head h1 { font-size: 17px; margin: 0; font-family: var(--font-head); color: #22405E; }
#printSheet .ps-head p { margin: 2px 0 0; font-size: 11.5px; color: #555; }
#printSheet .ps-brand { margin-left: auto; font-size: 11px; color: #ED6A2C; font-weight: 700; }

#printSheet .ps-metas {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
  page-break-inside: avoid;
}
#printSheet .ps-metas > div {
  flex: 1; min-width: 90px; border: 1px solid #E4E4E4; border-radius: 8px; padding: 8px 10px;
}
#printSheet .ps-metas span { display: block; font-size: 9.5px; color: #666; text-transform: uppercase; letter-spacing: .05em; }
#printSheet .ps-metas b { font-size: 14px; color: #111; }

#printSheet .ps-day { page-break-inside: avoid; margin-bottom: 18px; }
#printSheet .ps-day h2 {
  font-size: 13.5px; margin: 0 0 8px; color: #22405E; font-family: var(--font-head);
  border-bottom: 1px solid #E4E4E4; padding-bottom: 4px;
}
#printSheet .ps-day h2 small { font-weight: 500; color: #666; font-size: 11px; float: right; }

#printSheet .ps-meal { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 11.5px; }
#printSheet .ps-meal th {
  text-align: left; background: #FAF6EF; padding: 5px 8px; font-size: 11px; color: #22405E;
  border-bottom: 1px solid #E9E1D2;
}
#printSheet .ps-meal td { padding: 4px 8px; border-bottom: 1px solid #F2F2F2; }
#printSheet .ps-meal td.w { width: 52%; }
#printSheet .ps-meal td.m { color: #666; font-size: 10.5px; }
#printSheet .ps-meal .r { text-align: right; white-space: nowrap; }

#printSheet .ps-note {
  font-size: 10.5px; color: #555; line-height: 1.5; margin: 4px 0 10px;
  background: #F7F9F3; border-left: 3px solid #4AA872; padding: 6px 10px; border-radius: 4px;
}
#printSheet .ps-treino { page-break-inside: avoid; margin-bottom: 16px; }
#printSheet .ps-treino h2 {
  font-size: 14.5px; font-family: var(--font-head); color: #22405E;
  border-bottom: 2px solid #4AA872; padding-bottom: 4px; margin: 14px 0 8px;
}
#printSheet .ps-treino h2 small { font-weight: 500; color: #666; font-size: 11px; float: right; }
#printSheet .ps-tr-day { margin-bottom: 8px; page-break-inside: avoid; }
#printSheet .ps-tr-day b { font-size: 12px; color: #1C8402; display: block; margin-bottom: 3px; }
#printSheet .ps-tr-day ul { list-style: none; margin: 0; padding: 0; font-size: 11.5px; }
#printSheet .ps-tr-day li { padding: 3px 8px; border-bottom: 1px solid #F2F2F2; display: flex; justify-content: space-between; }
#printSheet .ps-tr-day li span { color: #666; font-weight: 600; }

#printSheet .ps-foot { margin-top: 20px; border-top: 1px solid #E4E4E4; padding-top: 8px; }
#printSheet .ps-foot p { font-size: 9.5px; color: #777; line-height: 1.5; margin: 0; }

/* ── acessibilidade ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* marca no cabeçalho: o "dieta" em laranja */
.brand b .hl { color: var(--accent); text-shadow: var(--glow-text); }
.brand b .hl2 { color: var(--secondary); text-shadow: var(--glow-text-orange); }

/* ============================================================
   v3 — acesso livre e utilitários
   ============================================================ */

/* Faixa que comunica o acesso gratuito (verde neon, sem exagero de glow) */
.free-ribbon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1.5px solid var(--accent-deep);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.free-ribbon b {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-glow);
  text-shadow: var(--glow-text);
}
html[data-theme="light"] .free-ribbon b { color: var(--accent-deep); }

.extra-toggle { display: inline-block; margin: 6px 0 4px; font-size: 12.5px; }
.hidden { display: none !important; }

/* Logo do topo da home e da tela de conclusão, com o brilho da marca */
.hero .logo-badge,
.success-logo {
  background: #000;
  box-shadow: 0 0 0 2px var(--accent-deep), 0 0 22px rgba(133, 223, 4, .45);
}
html[data-theme="light"] .hero .logo-badge,
html[data-theme="light"] .success-logo { box-shadow: 0 0 0 2px var(--accent-deep); }

.success-check {
  color: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: var(--glow-green);
  text-shadow: var(--glow-text);
}
html[data-theme="light"] .success-check { box-shadow: none; text-shadow: none; }

/* Dia ativo do cardápio: peça-chave, ganha brilho */
.day-pill.active { box-shadow: var(--glow-green-sm); color: #08120A; }
html[data-theme="light"] .day-pill.active { box-shadow: none; color: #fff; }

/* Tutorial no fundo preto da marca */
.onboarding-overlay { background: rgba(3, 6, 2, .96); }
.ob-btn.primary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-glow);
  box-shadow: var(--glow-green);
}

/* Folha de impressão: o PDF sai em papel branco, nunca em neon */
#printSheet .ps-head { border-bottom-color: #4E9E02; }
#printSheet .ps-head h1 { color: #1C8402; }
#printSheet .ps-brand { color: #4E9E02; }
#printSheet .ps-meal th { background: #F1F7E8; color: #1C8402; border-bottom-color: #DDE8CC; }

/* ============================================================
   v4 — letras maiores, mais objetividade, nova home
   ============================================================ */
body { font-size: 16.5px; }
.topbar h2 { font-size: 20px; }
.topbar p { font-size: 13.5px; }
.content { font-size: 15px; }
.btn { font-size: 16.5px; font-weight: 700; }
.btn-sm { font-size: 14px; }
.field label { font-size: 13.5px; }
.field input, .field select { font-size: 16px; }
.hint { font-size: 13.5px; }
.food-item .lbl { font-size: 13px; line-height: 1.3; }
.food-item .kc { font-size: 11.5px; }
.food-item .emoji { font-size: 30px; }
.opt-card .txt strong { font-size: 16px; }
.opt-card .txt small { font-size: 13.5px; }
.meal-item .mi b { font-size: 14px; }
.meal-item .mi small { font-size: 12px; }
.stat .val { font-size: 21px; }
.stat .lbl { font-size: 11px; }
.section-title { font-size: 13.5px; }
.tabbar button { font-size: 12px; }

/* Nova home: logo em destaque */
.hero-new { text-align: center; padding: 30px 22px 18px; }
.hero-new .logo-hero {
  width: 112px; height: 112px; border-radius: 28px; margin: 0 auto 14px;
  object-fit: cover; background: #000;
  box-shadow: 0 0 0 2px var(--accent-deep), 0 0 28px rgba(133, 223, 4, .5);
}
html[data-theme="light"] .hero-new .logo-hero { box-shadow: 0 0 0 2px var(--accent-deep); }
.hero-new h1 { font-size: 30px; }
.hero-new p { font-size: 15px; }
.hero-new .hero-sub {
  margin: 4px 0 0; font-size: 15.5px; font-weight: 600; color: var(--ink-soft);
}
html[data-theme="light"] .hero-new .hero-sub { color: var(--ink-soft); }
.hero-kcal {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 16px;
}
.hero-kcal > div {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 6px;
}
.hero-kcal b { display: block; font-family: var(--font-head); font-size: 19px; color: var(--accent-glow); }
html[data-theme="light"] .hero-kcal b { color: var(--accent-deep); }
.hero-kcal span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }

/* Estimativa de kcal na escolha de alimentos */
.kcal-live {
  background: var(--accent-soft); border: 1px solid var(--accent-deep);
  border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0 4px;
  font-size: 14.5px; color: var(--ink); font-weight: 600;
}
.kcal-live small { font-weight: 500; color: var(--ink-soft); }
/* Linha "selecionar tudo": só há mínimo por refeição, sem limite máximo */
.sel-all-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px 2px 10px;
}
.sel-all-row small { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

/* Planos */
.plan-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; margin: 14px 0; text-align: center;
}
.plan-card.featured { border: 2px solid var(--green-neon); box-shadow: var(--glow-green); }
html[data-theme="light"] .plan-card.featured { border-color: var(--accent-deep); box-shadow: none; }
.plan-card.has-selo { margin-top: 18px; }
.plan-selo {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green-neon); color: #06130a; font-weight: 800; font-size: 12.5px;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
html[data-theme="light"] .plan-selo { background: var(--accent-deep); color: #fff; }
.plan-card:not(.featured) .plan-selo {
  background: var(--deep-soft); color: var(--ink);
}
html[data-theme="light"] .plan-card:not(.featured) .plan-selo {
  background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--accent);
}
.plan-nome { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink); }
.plan-preco { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--green-neon); margin: 6px 0 12px; }
.plan-preco small { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
html[data-theme="light"] .plan-preco { color: var(--accent-deep); }
.plan-list { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 2px; font-size: 14.5px; color: var(--ink); }
.plan-list .ok { color: var(--green-neon); font-weight: 800; }
html[data-theme="light"] .plan-list .ok { color: var(--accent-deep); }
.plan-card .btn { width: 100%; }
/* Detalhes do plano */
.pix-box {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 12px; margin: 12px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pix-box code { font-size: 11px; word-break: break-all; color: var(--ink-soft); }
.goal-chip { font-size: 14px; padding: 10px 16px; }

/* Checkout Pix */
.pay-qr {
  background: #fff; border-radius: 16px; padding: 14px;
  display: flex; justify-content: center; margin: 0 auto 12px; max-width: 250px;
}
.pay-qr svg { width: 100%; height: auto; display: block; }
.pay-timer { text-align: center; font-size: 14.5px; color: var(--ink-soft); margin: 10px 0 12px; }
.pay-timer b { color: var(--green-neon); font-variant-numeric: tabular-nums; }
html[data-theme="light"] .pay-timer b { color: var(--accent-deep); }
.pay-confirm { display: flex; gap: 8px; align-items: stretch; }
.pay-confirm input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; color: var(--ink); font-size: 14.5px;
}
.pay-confirm input:focus { outline: none; border-color: var(--green-neon); }
.pay-confirm .btn { white-space: nowrap; }

/* Opções de refeição (Opção 1..N) */
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 4px; }
.opt-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  line-height: 1.25; text-align: center;
}
.opt-chip small { display: block; font-weight: 600; font-size: 10.5px; opacity: .75; }
.opt-chip.active {
  background: var(--green-neon); border-color: transparent; color: #06130a;
  box-shadow: 0 0 10px rgba(133, 223, 4, .25);
}
html[data-theme="light"] .opt-chip.active {
  background: var(--accent-deep); color: #fff; box-shadow: none;
}
