/* ============================================================
   DESAFIO DAS ESTRELAS — estilos compartilhados
   ============================================================ */
:root {
  --navy-900: #050c1f;
  --navy-800: #0a152e;
  --navy-700: #0e1c3d;
  --navy-600: #13264f;
  --navy-500: #1b3468;
  --gold-400: #f0d27a;
  --gold-500: #d4af37;
  --gold-600: #b8912b;
  --text: #eaf0ff;
  --text-dim: #9fb0d0;
  --line: rgba(212, 175, 55, .18);
  --green: #34c759;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 55, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(27, 52, 104, .55), transparent 55%),
    linear-gradient(180deg, var(--navy-900), #020611 90%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Decorative twinkling stars */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; }
.stars span {
  position: absolute; color: var(--gold-500); font-size: 10px; opacity: .35;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{opacity:.15;transform:scale(.9)} 50%{opacity:.55;transform:scale(1.1)} }

.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 22px 80px; }
.narrow { max-width: 760px; }

/* ---------- Top nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5, 12, 31, .88), rgba(5, 12, 31, .4));
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-badge {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--navy-500), var(--navy-800));
  border: 1px solid var(--line); color: var(--gold-400); font-size: 18px;
}
.brand-name {
  font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 2px;
  font-size: 16px; line-height: 1;
}
.brand-name b { color: var(--gold-500); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-400); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--navy-900);
  font-weight: 700; font-size: 14px; border: 2px solid rgba(240, 210, 122, .4); text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13px;
  padding: 11px 16px; border-radius: 11px; text-decoration: none; transition: filter .15s, background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(212, 175, 55, .10); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-900); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-green { background: var(--green); color: #04240f; }
.btn-green:hover { filter: brightness(1.05); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Welcome header ---------- */
.welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 40px 0 6px; }
.eyebrow { color: var(--gold-500); font-size: 12px; letter-spacing: 3px; font-weight: 600; text-transform: uppercase; }
.welcome h1 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 34px; margin-top: 8px; letter-spacing: .5px; }
.welcome p { color: var(--text-dim); margin-top: 6px; font-size: 14px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  margin-top: 26px; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    linear-gradient(120deg, rgba(5, 12, 31, .92) 40%, rgba(5, 12, 31, .35)),
    radial-gradient(600px 300px at 90% 0%, rgba(212, 175, 55, .18), transparent 60%),
    var(--navy-700);
}
.hero-inner { padding: 30px 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.hero-tag { color: var(--gold-500); font-size: 12px; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; }
.hero h2 { font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 600; margin: 8px 0 4px; }
.hero .sub { color: var(--text-dim); font-size: 14px; }
.progress-wrap { margin-top: 18px; max-width: 460px; }
.progress-line { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress-line > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width .4s ease; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-dim); }

/* ---------- Sections ---------- */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-head h3 { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: .5px; }
.section-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 12px var(--gold-500); }
.section-head .count { margin-left: auto; font-size: 12px; color: var(--text-dim); }

/* ---------- Diet banner ---------- */
.diet-banner {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(212, 175, 55, .20), transparent 60%),
    linear-gradient(120deg, var(--navy-600), var(--navy-700));
  box-shadow: var(--shadow);
}
.diet-icon {
  width: 70px; height: 70px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 30% 25%, rgba(240, 210, 122, .25), rgba(212, 175, 55, .05));
  border: 1px solid var(--line);
}
.diet-banner .txt { flex: 1; min-width: 220px; }
.diet-banner h4 { font-family: 'Oswald', sans-serif; font-size: 21px; font-weight: 600; }
.diet-banner p { color: var(--text-dim); font-size: 14px; margin-top: 6px; max-width: 560px; }
.badge-pill { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-400); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }

/* ---------- Module grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: var(--navy-700); text-decoration: none; color: inherit; display: block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, .45); }
.card-top {
  height: 130px; position: relative; display: grid; place-items: center;
  background:
    radial-gradient(200px 120px at 50% -20%, rgba(212, 175, 55, .22), transparent 70%),
    linear-gradient(160deg, var(--navy-500), var(--navy-800));
  border-bottom: 1px solid var(--line); background-size: cover; background-position: center;
}
.card-stars { position: absolute; top: 12px; left: 0; right: 0; text-align: center; color: var(--gold-500); font-size: 13px; letter-spacing: 4px; opacity: .9; }
.card-num { font-family: 'Oswald', sans-serif; font-size: 42px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--gold-500); opacity: .85; }
.card-locked { position: absolute; top: 10px; right: 12px; font-size: 13px; opacity: .55; }
.card-body { padding: 15px 16px 18px; }
.card-body .kicker { font-size: 10px; letter-spacing: 2px; color: var(--gold-500); text-transform: uppercase; font-weight: 600; }
.card-body h5 { font-size: 14.5px; font-weight: 600; margin-top: 7px; line-height: 1.35; min-height: 40px; }
.mini-progress { margin-top: 14px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mini-progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width .4s; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--text-dim); }
.card-foot .done { color: var(--green); }
.card-cta { display: flex; align-items: center; gap: 6px; color: var(--gold-400); font-weight: 600; }

/* ---------- Lesson (aula) page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); text-decoration: none; font-size: 14px; margin: 30px 0 18px; }
.back-link:hover { color: var(--gold-400); }
.lesson-head .kicker { color: var(--gold-500); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.lesson-head h1 { font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 600; margin: 8px 0 20px; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px;
  background: radial-gradient(400px 220px at 50% 30%, rgba(212, 175, 55, .18), transparent 60%), var(--navy-700);
  color: var(--text-dim); padding: 20px;
}
.video-placeholder .play { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 24px; color: var(--navy-900); background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
.lesson-body { margin-top: 26px; display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.lesson-desc { background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lesson-desc h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 12px; color: var(--gold-400); }
.lesson-desc p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; margin-bottom: 12px; }
.lesson-desc ul { color: var(--text-dim); font-size: 14.5px; line-height: 1.8; padding-left: 20px; }
.lesson-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-500); margin-bottom: 12px; }
.status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); }
.status-tag.done { color: var(--green); border-color: rgba(52, 199, 89, .4); background: rgba(52, 199, 89, .08); }

/* ---------- Questionnaire ---------- */
.quiz-card { margin-top: 30px; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quiz-progress { height: 6px; background: rgba(255, 255, 255, .07); }
.quiz-progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width .35s; }
.quiz-inner { padding: 34px 36px 30px; }
.quiz-step-count { color: var(--gold-500); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.quiz-q { font-family: 'Oswald', sans-serif; font-size: 25px; font-weight: 600; margin: 10px 0 6px; }
.quiz-hint { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.opt-list { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .15s, background .15s;
}
.opt:hover { border-color: rgba(212, 175, 55, .5); }
.opt.selected { border-color: var(--gold-500); background: rgba(212, 175, 55, .10); }
.opt .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: rgba(212, 175, 55, .08); border: 1px solid var(--line); flex-shrink: 0; }
.opt .opt-txt strong { display: block; font-size: 15px; }
.opt .opt-txt span { font-size: 12.5px; color: var(--text-dim); }
.opt .check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: var(--navy-900); font-size: 12px; }
.opt.selected .check { background: var(--gold-500); border-color: var(--gold-500); }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.field input, .field select {
  font-family: 'Montserrat', sans-serif; font-size: 15px; color: var(--text);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-500); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 12px; }

/* ---------- Diet result ---------- */
.diet-result { margin-top: 30px; text-align: center; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 34px; }
.diet-result .seal { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; background: radial-gradient(circle at 30% 25%, rgba(240, 210, 122, .3), rgba(212, 175, 55, .05)); border: 1px solid var(--line); }
.diet-result h2 { font-family: 'Oswald', sans-serif; font-size: 27px; font-weight: 600; }
.diet-result .plan-name { color: var(--gold-400); font-size: 17px; margin: 10px 0 4px; font-weight: 600; }
.diet-result p { color: var(--text-dim); font-size: 14.5px; max-width: 480px; margin: 6px auto 0; line-height: 1.6; }
.summary-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 28px; }
.summary-tags span { font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.summary-tags b { color: var(--gold-400); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty .big { font-size: 46px; margin-bottom: 14px; }

/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 34px 0 8px; }
.admin-head h1 { font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 600; }
.admin-head .eyebrow { margin-bottom: 6px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-top: 22px; flex-wrap: wrap; }
.tab { padding: 12px 18px; cursor: pointer; color: var(--text-dim); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.tab.active { color: var(--gold-400); border-bottom-color: var(--gold-500); }
.tab-panel { display: none; margin-top: 26px; }
.tab-panel.active { display: block; }

.admin-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 13px; border: 1px solid rgba(240,210,122,.35); background: rgba(212,175,55,.08); font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin-bottom: 22px; }
.admin-banner b { color: var(--gold-400); }

.editor-item { border: 1px solid var(--line); border-radius: 14px; background: var(--navy-700); padding: 18px 20px; margin-bottom: 16px; }
.editor-item .row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.editor-item .row-top .idx { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--gold-500); font-weight: 700; }
.editor-item .row-top .spacer { margin-left: auto; display: flex; gap: 6px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-dim); cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--gold-400); border-color: rgba(212,175,55,.5); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(255,107,107,.5); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .field, .grid3 .field { margin-bottom: 0; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.field textarea { font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; resize: vertical; min-height: 60px; }
.field textarea:focus { outline: none; border-color: var(--gold-500); }
.sub-block { border: 1px dashed var(--line); border-radius: 11px; padding: 14px; margin-top: 14px; }
.sub-block > label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-500); font-weight: 600; }
.opt-row { display: grid; grid-template-columns: 60px 1fr 1fr 32px; gap: 8px; align-items: center; margin-top: 10px; }
.opt-row input { padding: 10px 12px; font-size: 13.5px; }

.add-row { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

.publish-bar { position: sticky; bottom: 0; margin-top: 26px; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,21,46,.7), rgba(10,21,46,.95)); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: var(--shadow); }
.publish-bar .msg { font-size: 13px; color: var(--text-dim); flex: 1; min-width: 200px; }
.publish-bar .msg b { color: var(--green); }

.stu-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.stu-table th, .stu-table td { text-align: left; padding: 13px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.stu-table th { color: var(--gold-500); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.stu-table td .mini-progress { margin-top: 0; max-width: 120px; }
.tag-live { font-size: 11px; color: var(--green); border: 1px solid rgba(52,199,89,.4); background: rgba(52,199,89,.08); padding: 3px 8px; border-radius: 999px; }
.tag-wait { font-size: 11px; color: var(--text-dim); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }

@media (max-width: 680px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .opt-row { grid-template-columns: 1fr 1fr; }
  .stu-table thead { display: none; }
  .stu-table td { display: block; border: none; padding: 4px 0; }
  .stu-table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
}

footer { margin-top: 60px; text-align: center; color: var(--text-dim); font-size: 12px; opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .lesson-body { grid-template-columns: 1fr; }
  .lesson-side { position: static; }
}
@media (max-width: 620px) {
  .welcome h1 { font-size: 26px; }
  .hero h2 { font-size: 24px; }
  .quiz-inner { padding: 26px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a.hide-mobile { display: none; }
}

/* ---------- Plano alimentar na tela (dieta.html) ----------
   A dieta é navegada dentro do app, não baixada. Cada refeição é um
   acordeão: no celular, ver 8 seções abertas de uma vez seria uma
   parede de texto. */
.plan-head { text-align: center; padding: 34px 0 6px; }
.plan-head .seal { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: radial-gradient(circle at 30% 25%, rgba(240,210,122,.3), rgba(212,175,55,.05)); border: 1px solid var(--line); }
.plan-head h2 { font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 600; }
.plan-head .plan-name { color: var(--gold-400); font-size: 17px; margin: 8px 0 4px; font-weight: 600; }
.plan-head p { color: var(--text-dim); font-size: 14px; max-width: 500px; margin: 6px auto 0; line-height: 1.6; }

.plan-warn { max-width: 560px; margin: 16px auto 0; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(240,210,122,.35); background: rgba(212,175,55,.08); font-size: 13px; color: var(--text-dim); line-height: 1.55; text-align: left; }

.meal { border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy-700); margin-bottom: 12px; overflow: hidden; }
.meal-head { display: flex; align-items: center; gap: 13px; width: 100%; padding: 16px 18px; cursor: pointer; background: none; border: 0; color: var(--text); text-align: left; font: inherit; }
.meal-head:hover { background: rgba(212,175,55,.05); }
.meal-emoji { font-size: 19px; }
.meal-title { font-family: 'Oswald', sans-serif; font-size: 16.5px; font-weight: 600; letter-spacing: .3px; flex: 1; }
.meal-count { font-size: 12px; color: var(--text-dim); }
.meal-chev { color: var(--gold-500); transition: transform .2s ease; font-size: 12px; }
.meal.open .meal-chev { transform: rotate(180deg); }
.meal-body { display: none; padding: 2px 18px 18px; }
.meal.open .meal-body { display: block; }

.food { padding: 13px 0; border-top: 1px solid rgba(212,175,55,.10); }
.food:first-child { border-top: 0; }
.food-main { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.food-name { font-weight: 600; font-size: 14.5px; }
.food-qty { font-size: 12.5px; color: var(--text-dim); }
.food-weight { font-size: 11.5px; color: var(--gold-400); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.food-subs { margin-top: 9px; padding-left: 13px; border-left: 2px solid rgba(212,175,55,.22); }
.food-subs .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--gold-400); }
.food-subs .sub { font-size: 13px; color: var(--text-dim); margin-top: 5px; }
.food-subs .sub b { color: var(--text); font-weight: 600; }

.meal-obs { margin-top: 15px; padding: 13px 15px; border-radius: 11px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.meal-obs p { margin: 0 0 6px; }
.meal-obs p:last-child { margin-bottom: 0; }

/* Lista de compras: marcável, e o que foi marcado fica salvo. */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; }
.shop-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.shop-item:hover { background: rgba(212,175,55,.06); }
.shop-item input { accent-color: var(--gold-500); width: 16px; height: 16px; cursor: pointer; }
.shop-item.done span { text-decoration: line-through; color: var(--text-dim); opacity: .6; }

/* Lista de compras agrupada por seção de mercado — assim o aluno
   percorre cada corredor uma vez só, em vez de ficar voltando. */
.shop-cat { margin-top: 14px; }
.shop-cat:first-child { margin-top: 6px; }
.shop-cat-name { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--gold-400); margin: 0 0 6px 11px; }

/* Ajuste de faixa por saciedade. A orientação da nutrição vira botão:
   num PDF seria um parágrafo que ninguém segue. */
.ajuste { margin-top: 18px; padding: 18px 20px; }
.ajuste h4 { font-family: 'Oswald', sans-serif; font-size: 15.5px; font-weight: 600; letter-spacing: .3px; }
.ajuste p { color: var(--text-dim); font-size: 13px; line-height: 1.55; margin: 7px 0 14px; }
.ajuste-btns { display: grid; gap: 9px; }
.ajuste-btns .btn { width: 100%; justify-content: flex-start; font-size: 13.5px; }
.ajuste-reset { width: 100%; justify-content: center; margin-top: 9px; font-size: 12.5px; opacity: .75; }

/* "Seus números" — referências da calculadora. São informativos: quem
   define o cardápio é a conta do desafio (peso × 20). */
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; padding: 6px; }
.num-item { padding: 15px 16px; border-radius: 12px; }
.num-item:hover { background: rgba(212,175,55,.05); }
.num-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--gold-400); }
.num-valor { font-family: 'Oswald', sans-serif; font-size: 25px; font-weight: 600; margin: 5px 0 3px; }
.num-valor small { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-left: 2px; }
.num-sub { font-size: 11.5px; color: var(--text-dim); }
.num-nota { font-size: 12px; color: var(--text-dim); line-height: 1.55; margin: 12px 4px 0; }
