/* ============================================================
   ANTI-INFLAMA · DESIGN SYSTEM & STYLES (v5)
   ============================================================ */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  
  --bg: #f8f5ee;
  --bg-alt: #f1ecdf;
  --card: #ffffff;
  --ink: #26221d;
  --muted: #7d756d;
  --line: #e7dfd3;
  --line-strong: #d8cebf;
  
  --accent: #2e7a56;
  --accent-dark: #1f573d;
  --accent-light: #eaf4ee;
  --accent-hover: #266b4b;
  
  --gold: #c9882a;
  --gold-light: #fef7eb;
  --gold-dark: #a16a1c;
  
  --warn: #d97d54;
  --bad: #c2523e;
  --chip: #eaf3ed;
  
  --shadow-sm: 0 2px 8px rgba(38,34,29, .04);
  --shadow: 0 8px 24px rgba(38,34,29, .08);
  --shadow-lg: 0 18px 45px rgba(38,34,29, .12);
  --radius: 16px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120e;
    --bg-alt: #1c1914;
    --card: #201c16;
    --ink: #f2ece2;
    --muted: #a3988c;
    --line: #332d24;
    --line-strong: #453c30;
    
    --accent: #48a679;
    --accent-dark: #67c296;
    --accent-light: #1f2b24;
    --accent-hover: #58b688;
    
    --gold: #dfa042;
    --gold-light: #2b2316;
    --chip: #242c26;
    --shadow: 0 10px 30px rgba(0,0,0, .5);
    --shadow-lg: 0 20px 50px rgba(0,0,0, .6);
  }
}

body.theme-dark {
  --bg: #14120e;
  --bg-alt: #1c1914;
  --card: #201c16;
  --ink: #f2ece2;
  --muted: #a3988c;
  --line: #332d24;
  --line-strong: #453c30;
  
  --accent: #48a679;
  --accent-dark: #67c296;
  --accent-light: #1f2b24;
  --accent-hover: #58b688;
  
  --gold: #dfa042;
  --gold-light: #2b2316;
  --chip: #242c26;
  --shadow: 0 10px 30px rgba(0,0,0, .5);
  --shadow-lg: 0 20px 50px rgba(0,0,0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   BOTÕES GLOBAIS
   ============================================================ */
.btn-primary-sm, .btn-primary-lg, button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(46,122,86, .25);
  text-decoration: none;
}
.btn-primary-sm {
  padding: 8px 16px;
  font-size: 13.5px;
  border-radius: 20px;
}
.btn-primary-lg, button.primary.big {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-primary-sm:hover, .btn-primary-lg:hover, button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46,122,86, .35);
}

.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn-secondary-lg:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost-sm, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  transition: all .15s;
}
.btn-ghost-sm:hover, .ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.ghost.small, .primary.small { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.ghost.danger { color: var(--bad); border-color: rgba(194,82,62,.3); }
.ghost.danger:hover { background: rgba(194,82,62,.08); }
button:disabled { opacity: .45; cursor: not-allowed; }

/* ============================================================
   VITRINE / LANDING PAGE
   ============================================================ */
.landing-page {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,245,238, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
body.theme-dark .lp-header {
  background: rgba(20,18,14, .88);
}

.lp-header-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-logo { font-size: 28px; line-height: 1; }
.lp-brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
  color: var(--accent-dark);
}
.lp-brand-tag {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.lp-nav {
  display: flex;
  gap: 20px;
}
.lp-nav-link {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color .2s;
}
.lp-nav-link:hover { color: var(--accent); }
@media (max-width: 820px) { .lp-nav { display: none; } }

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hero */
.lp-hero {
  padding: 60px 0 50px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, var(--accent-light) 0%, transparent 70%);
}
.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.lp-hero-title {
  font-size: 42px;
  line-height: 1.18;
  max-width: 860px;
  margin: 0 auto 20px;
  color: var(--ink);
}
@media (max-width: 768px) {
  .lp-hero-title { font-size: 30px; }
  .lp-hero { padding: 40px 0 35px; }
}
.lp-hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.lp-hero-sub b { color: var(--ink); }

.lp-hero-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.lp-trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.lp-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Seções */
.lp-section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.lp-bg-alt { background: var(--bg-alt); }

.lp-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.lp-badge {
  display: inline-block;
  background: var(--chip);
  color: var(--accent-dark);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.lp-badge-gold {
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid rgba(201,136,42,.3);
}

.lp-section-title {
  font-size: 32px;
  margin: 0 0 12px;
}
@media (max-width: 768px) { .lp-section-title { font-size: 25px; } }
.lp-section-sub {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* QUIZ / DEGUSTAÇÃO CARD */
.quiz-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 600px) { .quiz-card { padding: 18px; } }

.quiz-step {
  margin-bottom: 24px;
}
.quiz-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.quiz-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.quiz-phase-btn {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quiz-phase-btn:hover { border-color: var(--accent); }
.quiz-phase-btn.active {
  background: var(--chip);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent) inset;
}
.qpb-icon { font-size: 22px; }
.qpb-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.qpb-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.quiz-restrs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quiz-chip-btn {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--ink);
  transition: all .15s;
}
.quiz-chip-btn:hover { border-color: var(--accent); }
.quiz-chip-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.quiz-action .full-width {
  width: 100%;
}

/* Resultado da degustação */
.lp-result {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px dashed var(--line-strong);
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.lp-result-header {
  text-align: center;
  margin-bottom: 22px;
}
.lp-result-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.lp-result-header h3 {
  font-size: 22px;
  margin: 4px 0 6px;
}
.lp-result-tip {
  font-size: 13.5px;
  color: var(--accent-dark);
  background: var(--chip);
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin: 0;
}

.lp-meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.lp-meal-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-meal-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
}
.lp-meal-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.lp-meal-why {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}
.lp-meal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  margin-top: 4px;
}
.lp-meta-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  font-weight: 600;
}

/* Teaser Bloqueado */
.lp-lock-banner {
  background: linear-gradient(135deg, rgba(46,122,86,.08), rgba(201,136,42,.12));
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.lp-lock-badge {
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.lp-lock-top h4 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.lp-lock-top p {
  font-size: 14px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 16px;
}
.lp-lock-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lp-lock-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.lp-lock-de {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 14px;
}
.lp-lock-por {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-dark);
}
.lp-lock-parc {
  font-size: 13px;
  color: var(--muted);
}

/* Fases Grid */
.lp-fases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lp-fase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.lp-fase-card:hover { transform: translateY(-3px); }
.lp-fase-icon { font-size: 34px; margin-bottom: 12px; }
.lp-fase-card h3 { font-size: 17px; margin: 0 0 8px; }
.lp-fase-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Recursos Grid */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.lp-feat-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.lp-feat-icon { font-size: 30px; margin-bottom: 10px; display: inline-block; }
.lp-feat-item h4 { font-size: 16px; margin: 0 0 6px; }
.lp-feat-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Bônus Grid */
.lp-bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.lp-bonus-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.lp-b-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.lp-b-emoji { font-size: 30px; display: block; margin-bottom: 8px; }
.lp-bonus-card h4 { font-size: 15.5px; margin: 0 0 6px; }
.lp-bonus-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }

/* Depoimentos */
.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lp-test-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lp-test-stars { font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.lp-test-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 16px;
}
.lp-test-author b { display: block; font-size: 13.5px; }
.lp-test-author span { font-size: 12px; color: var(--muted); }

/* Oferta / Pricing Box */
.lp-offer-section {
  background: radial-gradient(circle at 50% 30%, rgba(46,122,86,.12) 0%, transparent 75%);
}
.lp-offer-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.lp-offer-title { font-size: 34px; margin: 0 0 12px; }
.lp-offer-desc { font-size: 15.5px; color: var(--muted); margin: 0 0 32px; line-height: 1.55; }

.lp-pricing-card {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
@media (max-width: 600px) { .lp-pricing-card { padding: 22px; } }

.lp-p-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 22px; }
.lp-p-plan { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--accent); letter-spacing: .05em; }
.lp-p-old { text-decoration: line-through; color: var(--muted); font-size: 15px; display: block; margin-top: 6px; }
.lp-p-big { font-family: var(--font-heading); font-size: 46px; font-weight: 800; color: var(--ink); line-height: 1; margin: 4px 0; }
.lp-p-big small { font-size: 18px; font-weight: 500; color: var(--muted); }
.lp-p-sub { font-size: 14px; font-weight: 600; color: var(--accent-dark); display: block; }
.lp-p-micro { font-size: 12px; color: var(--muted); margin-top: 6px; }

.lp-p-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
}
.lp-p-benefits li { display: flex; align-items: flex-start; gap: 8px; }

.btn-buy-pulse {
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(46,122,86, .4);
}

.lp-guarantee {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--chip);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.lp-g-icon { font-size: 28px; flex-shrink: 0; }
.lp-guarantee b { color: var(--ink); display: block; margin-bottom: 2px; }
.lp-guarantee p { margin: 0; line-height: 1.4; }

/* FAQ */
.lp-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lp-faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.lp-faq-item h4 { font-size: 15.5px; margin: 0 0 8px; color: var(--accent-dark); }
.lp-faq-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Footer LP */
.lp-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.lp-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.lp-footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.lp-footer-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}
.lp-disclaimer { max-width: 760px; margin: 0 auto 10px; line-height: 1.5; opacity: .8; }
.lp-copy { margin: 0; font-weight: 600; }

/* ============================================================
   TELAS DE AUTH (MODAL / PAYWALL)
   ============================================================ */
.auth-screen {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}
.auth-screen[hidden] { display: none !important; }

.auth-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0, .35);
  animation: modalEnter .25s ease;
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

.auth-logo { font-size: 44px; margin-bottom: 6px; }
.auth-card h1 { font-size: 22px; margin: 0 0 4px; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.auth-sub b { color: var(--accent-dark); }

.auth-card .field { text-align: left; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.auth-card button.primary { width: 100%; margin-top: 8px; }
.auth-msg { font-size: 12.5px; min-height: 18px; margin: 8px 0; color: var(--bad); font-weight: 500; }
.auth-note { font-size: 10.5px; color: var(--muted); margin-top: 16px; line-height: 1.4; }

.auth-extra-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}
.link-btn:hover { color: var(--accent); }
.link-btn.highlight { color: var(--accent); font-weight: 600; text-decoration: none; }
.dot-sep { color: var(--line-strong); }

.forgot-box {
  margin-top: 14px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-align: left;
}
.forgot-row { display: flex; gap: 6px; margin-top: 6px; }
.forgot-row input { flex: 1; }

/* ============================================================
   SISTEMA DE MODAIS (POPUP OVERLAY)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 12, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal[hidden] {
  display: none !important;
}

.modal-card {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  box-shadow: 0 25px 65px rgba(0,0,0, 0.45);
  animation: modalPopIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.93) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: var(--chip);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  z-index: 10;
}
.modal-close:hover {
  background: var(--line);
  color: var(--ink);
  transform: scale(1.08);
}

/* Modal Body da Receita */
.modal-body h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--ink);
  padding-right: 36px;
}
.modal-body .recipe-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.modal-body .macros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.modal-body .macro {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}
.modal-body .macro b {
  display: block;
  font-size: 15px;
  font-family: var(--font-heading);
  color: var(--accent-dark);
  line-height: 1.15;
  margin-bottom: 2px;
}
.modal-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.modal-body .ing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.modal-body .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.modal-body .prep-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  color: var(--ink);
  margin-bottom: 14px;
}
.modal-body .recipe-tip-box {
  background: var(--gold-light);
  border: 1px solid rgba(201,136,42,.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gold-dark);
  margin: 10px 0 14px;
}
.recipe-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   APLICATIVO INTERNO (body.app-ready)
   ============================================================ */
/* Por padrão esconde app interno e mostra vitrine */
.topbar, .tabs, main, .footer { display: none; }
#landingPage { display: block; }

/* Quando logado e assinatura ativa */
body.app-ready #landingPage { display: none !important; }
body.app-ready .topbar { display: flex; }
body.app-ready .tabs { display: flex; }
body.app-ready main { display: block; }
body.app-ready .footer { display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { font-size: 26px; }
.topbar h1 { font-size: 17px; margin: 0; }
.tagline { margin: 0; font-size: 11px; color: var(--muted); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.streak, .points {
  background: var(--chip);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs {
  position: sticky;
  top: 57px;
  z-index: 29;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tab {
  border: none;
  background: transparent;
  padding: 8px 13px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--accent); color: #fff !important; }

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}
.panel { display: none; }
.panel.active { display: block; }

.config-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.config-card h2 { font-size: 16px; margin: 16px 0 6px; }
.config-card h2:first-child { margin-top: 0; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.muted { color: var(--muted); font-weight: 400; font-size: 12px; }

/* HERO DA ABA HOJE */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.hero h2 { margin: 0 0 4px; font-size: 21px; color: #fff; }
.hero p { margin: 0; opacity: .92; font-size: 13.5px; }
.hero-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.hero-ring small { font-size: 10.5px; font-weight: 400; opacity: .9; }

.day-progress {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
.day-progress .bar { height: 9px; background: var(--line); border-radius: 6px; margin-top: 6px; overflow: hidden; }
.day-progress .bar #dayProgFill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); transition: width .3s; }

.quick-checkin {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-checkin > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.emoji-row { display: flex; gap: 8px; }
.emoji-row button {
  font-size: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  cursor: pointer;
  transition: all .15s;
}
.emoji-row button.sel { background: var(--chip); border-color: var(--accent); }

.water-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.bars { display: flex; gap: 5px; flex: 1; min-width: 120px; }
.bars .b { width: 18px; height: 26px; border-radius: 5px; background: var(--line); transition: background .2s; }
.bars .b.on { background: #3b82f6; }

.tip-card {
  background: var(--chip);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tip-card .ti { font-size: 24px; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 12px 0 10px;
  font-size: 16px;
}
.today-meals { display: grid; gap: 12px; }
.today-meal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.today-meal:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.today-meal-left {
  flex: 1;
}
.today-meal .mt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.today-meal-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  background: var(--chip);
  padding: 2px 8px;
  border-radius: 12px;
}
.today-meal .mn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.25;
}
.today-meal-ings {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
.today-meal-ings b {
  color: var(--ink);
}
.today-meal-action-hint, .meal-view-recipe {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 6px;
  display: inline-block;
  transition: color .15s;
}
.today-meal:hover .today-meal-action-hint, .meal:hover .meal-view-recipe {
  color: var(--accent);
  text-decoration: underline;
}
.today-meal.done {
  opacity: .55;
  background: var(--bg);
}
.today-meal.done .mn {
  text-decoration: line-through;
}
.today-meal .chk {
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: transform .15s;
}
.today-meal .chk:hover {
  transform: scale(1.15);
}

/* Conquistas / Gamificação */
.achievements { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ach {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 90px;
  box-shadow: var(--shadow-sm);
}
.ach.locked { opacity: .5; filter: grayscale(.8); }
.ach .em { font-size: 20px; }
.ach-name { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.1; }
.ach-bar { width: 100%; height: 5px; background: rgba(0,0,0,.1); border-radius: 4px; overflow: hidden; margin-top: 3px; }
.ach-fill { height: 100%; background: var(--accent-dark); border-radius: 4px; transition: width .4s; }
.ach-pct { font-size: 10px; color: var(--muted); font-weight: 700; }

/* Cardápio de 7 Dias */
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.phase { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; background: var(--card); }
.phase.selected { border-color: var(--accent); background: var(--chip); box-shadow: 0 0 0 2px var(--accent) inset; }
.phase .pt { font-weight: 700; font-size: 13px; font-family: var(--font-heading); }
.phase .pd { font-size: 11px; color: var(--muted); margin-top: 3px; }
.phase-tip { margin-top: 10px; font-size: 12.5px; background: var(--chip); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--accent-dark); font-weight: 500; }

.restrictions { display: flex; flex-wrap: wrap; gap: 7px; }
.rest { font-size: 12px; border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; cursor: pointer; background: var(--card); font-weight: 500; }
.rest.selected { background: var(--chip); border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }
.gen-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.menu-area { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.day-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.day-card h3 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.meal {
  border-top: 1px dashed var(--line);
  padding: 12px 0;
  cursor: pointer;
  transition: all .15s;
}
.meal:first-of-type { border-top: none; }
.meal:hover {
  background: var(--chip);
  border-radius: var(--radius-sm);
  padding-left: 6px;
  padding-right: 6px;
}
.meal .mt {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent-dark);
  font-weight: 800;
}
.meal .mn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin: 2px 0;
}
.meal-ing-preview {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}
.meal-ing-preview b { color: var(--ink); }
.meal .mi {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.meal .mm {
  font-size: 12px;
  color: var(--accent-dark);
  margin-top: 4px;
  font-weight: 600;
}
.meal .acts { float: right; display: flex; align-items: center; gap: 4px; }
.mini {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent-dark);
  border-radius: 8px;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 700;
}
.mini:hover { background: var(--accent); color: #fff; }
.fav {
  background: transparent;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
}
.recipe-card-ings {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Lista de Compras */
.shopping-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.shopping-list { columns: 2; column-gap: 18px; }
@media (max-width: 650px) { .shopping-list { columns: 1; } }
.shop-cat { break-inside: avoid; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow-sm); }
.shop-cat h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--accent-dark); font-family: var(--font-heading); }
.shop-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.shop-item input { accent-color: var(--accent); width: 17px; height: 17px; }
.shop-item.done span { text-decoration: line-through; color: var(--muted); }
.budget { margin-top: 14px; background: var(--chip); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; }
.affiliate-card { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }

/* Progresso / Checkin */
.checkin { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.checkin-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.checkin-field input { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-size: 14px; }
.checkin .primary { grid-column: 1 / -1; }
#chart { width: 100%; max-width: 600px; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-top: 6px; box-shadow: var(--shadow-sm); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0; }
.cal-day { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.cal-day.has { background: var(--chip); color: var(--accent-dark); font-weight: 800; border-color: var(--accent); }
.checkin-list { margin-top: 10px; display: grid; gap: 8px; }
.ci-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); }
.ci-item button { background: transparent; border: none; color: var(--bad); cursor: pointer; font-size: 16px; }

/* Receitas */
.recipes-tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.recipes-tools input { flex: 1; min-width: 160px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-family: inherit; }
.recipes-tools select { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-family: inherit; }
.recipe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.recipe-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; box-shadow: var(--shadow-sm); transition: all .15s; }
.recipe-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.recipe-card .rn { font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.recipe-card .rm { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.recipe-card .rf { font-size: 11.5px; color: var(--accent-dark); margin-top: 6px; font-weight: 600; }
.recipe-card .star { float: right; font-size: 16px; }

/* BÔNUS ACCORDION */
.bonus-header-box { margin-bottom: 16px; }
.bonus-list { display: grid; gap: 14px; }
.bonus-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.bonus-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
.bonus-head .bem { font-size: 26px; }
.bonus-head .bt { font-family: var(--font-heading); font-weight: 700; font-size: 16px; flex: 1; }
.bonus-head .barrow { font-size: 12px; color: var(--muted); }
.bonus-head .chev { transition: .2s; font-size: 18px; color: var(--muted); }
.bonus-item.open .chev { transform: rotate(180deg); }
.bonus-body { padding: 0 18px 18px; display: none; }
.bonus-item.open .bonus-body { display: block; }
.subst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 10px 0; }
.subst { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; font-size: 13px; }
.subst b { color: var(--accent-dark); }
.temps { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.temp { background: var(--chip); border-radius: 20px; padding: 6px 12px; font-size: 13px; cursor: pointer; border: 1px solid transparent; font-weight: 500; }
.temp.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.check-item input { margin-top: 3px; accent-color: var(--accent); }
.check-item.done span { text-decoration: line-through; color: var(--muted); }
.plate { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.plate div { background: var(--chip); border-radius: var(--radius-sm); padding: 10px; font-size: 12.5px; text-align: center; }
.plate div b { display: block; color: var(--accent-dark); font-family: var(--font-heading); }
.btn-print-bonus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

/* Config actions */
.cfg-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }

/* ============================================================
   ESTILOS DE IMPRESSÃO (A4 / Geladeira)
   ============================================================ */
@media print {
  .lp-header, .topbar, .tabs, .footer, .config-card, #btnPrint, #btnExportList, #btnCopyList, .ghost, .btn-print-bonus, .btn-primary-sm, .btn-primary-lg {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }
  .panel { display: block !important; }
  .shopping-list { columns: 2 !important; }
  .bonus-body { display: block !important; }
  .bonus-item { box-shadow: none !important; border: 1px solid #ccc !important; page-break-inside: avoid; margin-bottom: 20px; }
}
