/* Cozinha Fácil — app móvel */
:root {
  --paper: #FAF6EF;
  --card: #FFFFFF;
  --ink: #2B2018;
  --ink-soft: #6B5D4F;
  --hair: #E8DFCF;
  --gold: #C98F1F;
  --gold-soft: #E3C26B;
  --display: "Poppins", sans-serif;
  --serif: "Cormorant Garamond", serif;
  --body: "Plus Jakarta Sans", sans-serif;
  --shadow: 0 2px 10px rgba(43, 32, 24, .07);
}
html[data-theme="dark"] {
  --paper: #1C1612;
  --card: #2A221C;
  --ink: #F2EADC;
  --ink-soft: #BCA88F;
  --hair: #3D332A;
  --shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #ECE5D8; }
html[data-theme="dark"] { background: #0F0C09; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: 96px;
}
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
i[data-lucide], svg.lucide { width: 20px; height: 20px; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--hair);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .01em; line-height: 1.15; max-width: 250px; }
.wordmark small { display: block; font-family: var(--body); font-weight: 600; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--card); box-shadow: var(--shadow);
  border: 1px solid var(--hair);
}
.search { position: relative; margin-top: 10px; }
.search input {
  width: 100%; height: 46px; border-radius: 999px;
  border: 1.5px solid var(--hair); background: var(--card); color: var(--ink);
  font-family: var(--body); font-size: 15px;
  padding: 0 16px 0 44px; outline: none;
}
.search input:focus { border-color: var(--gold); }
.search .lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); width: 18px; height: 18px; }

/* chips de capítulos (fixos no topo, dentro do header) */
.top .chips { margin: 0 -16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  border: 1.5px solid var(--chip, var(--hair));
  color: var(--chip, var(--ink));
  background: var(--card);
  transition: all 150ms ease;
}
.chip.on { background: var(--chip); color: #fff; }
.chip .dot { width: 9px; height: 9px; border-radius: 99px; background: var(--chip); }
.chip.on .dot { background: rgba(255,255,255,.7); }

/* seletor de modo: por categoria / por região */
.catmode-row { margin-top: 10px; }
.seg.catmode { margin-bottom: 0; }
.seg.catmode button { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.seg.catmode button .lucide { width: 16px; height: 16px; }

/* ---------- lista do catálogo ---------- */
.list { padding: 4px 16px 16px; }
.ch-band {
  margin: 18px 0 10px; border-radius: 16px; color: #fff;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.ch-band .num { font-family: var(--display); font-weight: 800; font-size: 24px; opacity: .55; }
.ch-band h2 { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; flex: 1; }
.ch-band .count { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.sub-label { display: flex; align-items: center; gap: 10px; margin: 14px 2px 8px; }
.sub-label h3 { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.sub-label .rule { flex: 1; height: 3px; border-radius: 2px; opacity: .35; }
.sub-note { font-size: 12.5px; font-style: italic; color: var(--ink-soft); margin: -2px 2px 8px; }

.row {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 12px 12px 0; margin-bottom: 8px;
  border-left: 5px solid var(--c, var(--gold));
}
.row .n {
  flex: 0 0 44px; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 16px;
  color: var(--c, var(--gold));
}
.row .tx { flex: 1; min-width: 0; }
.row h4 { font-family: var(--display); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.row p { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.row .star { flex: 0 0 44px; height: 44px; display: grid; place-items: center; color: var(--ink-soft); }
.row .star.on { color: var(--gold); }
.row .star.on svg { fill: var(--gold); }
.row .flag {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: var(--c, var(--gold));
  border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}
.empty { text-align: center; color: var(--ink-soft); padding: 48px 24px; }
.empty .lucide { width: 36px; height: 36px; margin-bottom: 10px; opacity: .5; }

/* ---------- folha de detalhe ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 14, 9, .5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.sheet-bg.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 105%);
  width: 100%; max-width: 480px; z-index: 41;
  background: var(--card); border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.25);
  transition: transform 250ms ease-out;
  max-height: 82vh; overflow-y: auto;
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-accent { height: 8px; border-radius: 24px 24px 0 0; }
.sheet-in { padding: 18px 20px 28px; }
.sheet-top { display: flex; align-items: flex-start; gap: 12px; }
.sheet-top .n { font-family: var(--display); font-weight: 800; font-size: 26px; }
.sheet-top h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.15; flex: 1; padding-top: 2px; }
.sheet .ch-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 600; font-size: 12px;
  color: #fff; border-radius: 99px; padding: 4px 12px; margin: 10px 0 2px;
}
.sheet .ch-tag .lucide { width: 14px; height: 14px; }
.note-vary {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--paper); border: 1px dashed var(--gold-soft);
  font-size: 12.5px; line-height: 1.4; color: var(--ink-soft);
}
.note-vary .lucide { width: 16px; height: 16px; flex: 0 0 16px; color: var(--gold); margin-top: 1px; }
.note-vary b { color: var(--ink); }
.note-edited {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 10px; font-size: 12.5px; color: var(--gold);
}
.note-edited .lucide { width: 15px; height: 15px; }
.link-btn { color: var(--gold); font-weight: 700; text-decoration: underline; font-size: 12.5px; }
.diet-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.diet-tag {
  font-family: var(--display); font-weight: 600; font-size: 10.5px; letter-spacing: .03em;
  color: var(--ink-soft); background: var(--paper);
  border: 1.5px solid var(--hair); border-radius: 999px; padding: 3px 10px;
}
.sheet .desc { margin-top: 10px; font-size: 15px; }
.sheet .block { margin-top: 14px; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.sheet .block b { font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.sheet .fav-btn {
  margin-top: 18px; width: 100%; height: 50px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--hair); color: var(--ink);
}
.sheet .fav-btn.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.sheet .fav-btn.on svg { fill: #fff; }

/* ---------- ideia para hoje ---------- */
.idea-wrap { padding: 16px; }
.idea-hero {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px; padding: 22px 20px; text-align: left;
  position: relative; overflow: hidden;
}
.idea-hero::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(227,194,107,.45); border-radius: 14px; pointer-events: none; }
.hero-seal {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold-soft); color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .04em;
  margin-bottom: 12px;
}
html[data-theme="dark"] .idea-hero { background: #3A2E24; }
.idea-hero h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.1; }
.idea-hero p { font-size: 13.5px; opacity: .85; margin-top: 6px; }
.gen-btn {
  margin-top: 14px; width: 100%; height: 52px; border-radius: 999px;
  background: var(--gold); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 18px rgba(201, 143, 31, .4);
  transition: transform 150ms ease;
}
.gen-btn:active { transform: scale(.97); }
.gen-btn[disabled] { opacity: .45; box-shadow: none; }
.var-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 16px 0 4px; }
.var-dots button {
  min-width: 34px; height: 34px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  border: 1.5px solid var(--hair); color: var(--ink-soft); background: var(--card);
}
.var-dots button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.var-label { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
/* ementa do dia */
.ementa {
  background: var(--card); border: 1.5px solid var(--gold-soft); border-radius: 20px;
  box-shadow: var(--shadow); padding: 22px 16px 16px; position: relative;
}
.ementa::before { content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--gold-soft) 45%, transparent); border-radius: 15px; pointer-events: none; }
.ementa-head { text-align: center; margin-bottom: 14px; }
.ementa-head .k { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.ementa-head h3 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 4px 0 2px; }
.ementa-head .date { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft); }
.ementa-rule { display: flex; align-items: center; gap: 8px; margin: 12px 6px; }
.ementa-rule::before, .ementa-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.ementa-rule::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.ementa-rule span { width: 7px; height: 7px; background: var(--gold-soft); transform: rotate(45deg); }
.moment {
  display: flex; gap: 12px; align-items: stretch;
  padding: 10px 6px; margin-bottom: 0;
  background: none; border: none; box-shadow: none; border-radius: 0;
  border-top: 1px dashed color-mix(in srgb, var(--gold-soft) 50%, transparent);
  animation: fadeUp .35s ease-out both;
}
.moment:first-of-type { border-top: none; }
.moment:nth-child(2) { animation-delay: .04s; }
.moment:nth-child(3) { animation-delay: .08s; }
.moment:nth-child(4) { animation-delay: .12s; }
.moment:nth-child(5) { animation-delay: .16s; }
.moment:nth-child(6) { animation-delay: .2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .moment { animation: none; } }
.moment .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; align-self: center; }
.moment .tx { flex: 1; }
.moment .m-label { font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.moment .m-item { display: block; text-align: left; width: 100%; font-family: var(--display); font-weight: 600; font-size: 14.5px; line-height: 1.3; margin-top: 3px; }
.moment .m-item span.nn { font-weight: 800; margin-right: 6px; }
.reset-btn { width: 100%; margin-top: 6px; height: 44px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; text-decoration: underline; }

/* gerar só um momento */
.single-box { margin-top: 18px; }
.single-title { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); text-align: center; margin-bottom: 10px; }
.mom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mom-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--card); border: 1.5px solid var(--hair); border-radius: 16px;
  box-shadow: var(--shadow); padding: 12px 4px 10px;
  font-family: var(--display); font-weight: 600; font-size: 10px; line-height: 1.1;
  color: var(--ink-soft); text-align: center;
  transition: all 150ms ease;
}
.mom-btn .lucide { width: 19px; height: 19px; }
.mom-btn.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
html[data-theme="dark"] .mom-btn.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.mom-btn .now {
  position: absolute; top: -7px; right: -2px;
  font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: #fff; border-radius: 99px; padding: 2px 7px;
}
.single-card {
  margin-top: 12px; background: var(--card);
  border: 1.5px solid var(--gold-soft); border-radius: 18px;
  box-shadow: var(--shadow); padding: 14px 12px 10px;
  animation: fadeUp .3s ease-out both;
}
.single-card .m-label { font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 10px; }
.single-card .row { margin-bottom: 8px; }
.again-btn {
  width: 100%; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
  color: var(--gold); border: 1.5px solid var(--gold-soft);
  margin-top: 4px;
}
.again-btn .lucide { width: 16px; height: 16px; }

/* partilha + histórico + toast */
.share-btn {
  width: calc(100% - 12px); margin: 10px 6px 2px; height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  background: var(--ink); color: var(--paper);
}
html[data-theme="dark"] .share-btn { background: var(--gold); color: #fff; }
.share-btn .lucide { width: 17px; height: 17px; }
.fav-btn.share2 { margin-top: 10px; }
.hist-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px;
  box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px;
}
.hist-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.hist-meta span:first-child { font-family: var(--display); font-weight: 700; font-size: 12.5px; }
.hist-meta span:last-child { font-size: 11px; color: var(--ink-soft); }
.hist-items { display: flex; flex-wrap: wrap; gap: 6px; }
.hist-chip {
  font-family: var(--body); font-weight: 600; font-size: 11.5px;
  border: 1.5px solid var(--c, var(--hair)); color: var(--c, var(--ink));
  border-radius: 999px; padding: 5px 10px; min-height: 28px;
  background: var(--card); text-align: left;
}
#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 600; font-size: 13px;
  border-radius: 999px; padding: 10px 18px; box-shadow: 0 6px 24px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: all 200ms ease; z-index: 9999;
  max-width: 90vw; text-align: center;
}
html[data-theme="dark"] #toast { background: var(--gold); color: #fff; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* acessibilidade */
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* tamanho de letra ajustável */
html[data-font="1"] body { zoom: 1.1; }
html[data-font="2"] body { zoom: 1.22; }

/* ações na folha de detalhe */
.act-row { display: flex; gap: 8px; margin-top: 10px; }
.act-row .fav-btn.half { flex: 1; margin-top: 0; font-size: 13px; }
.fav-btn.cooked { background: #5C7A34; border-color: #5C7A34; color: #fff; }
.fav-btn.on-list { background: var(--ink); border-color: var(--ink); color: var(--paper); }
html[data-theme="dark"] .fav-btn.on-list { background: var(--gold); border-color: var(--gold); color: #fff; }

/* lista de compras */
.shop-row {
  display: flex; align-items: center; gap: 4px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 16px;
  box-shadow: var(--shadow); margin-bottom: 8px;
  border-left: 5px solid var(--c, var(--gold));
  padding: 4px 4px 4px 0;
}
.shop-check { flex: 0 0 46px; height: 46px; display: grid; place-items: center; color: var(--c, var(--gold)); }
.shop-tx { flex: 1; min-width: 0; text-align: left; padding: 8px 0; }
.shop-tx h4 { font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.25; }
.shop-tx p { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.shop-row .star { flex: 0 0 44px; height: 44px; display: grid; place-items: center; color: var(--ink-soft); }
.shop-row.done .shop-tx h4 { text-decoration: line-through; opacity: .55; }
.shop-row.done .shop-tx p { opacity: .5; }

/* ecrã de boas-vindas */
#welcome {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20, 14, 9, .65);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#welcome[hidden] { display: none; }
.welcome-card {
  background: #2B2018; color: #FAF6EF;
  border-radius: 24px; padding: 30px 26px;
  max-width: 380px; width: 100%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.welcome-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(227,194,107,.5); border-radius: 18px; pointer-events: none; }
.welcome-card .w-seal {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold-soft); color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: .04em;
  margin-bottom: 14px;
}
.welcome-card h2 { font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.15; }
.welcome-card .w-sub { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--gold-soft); margin: 6px 0 14px; }
.welcome-card .w-big { font-family: var(--serif); font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.welcome-card .w-small { font-size: 13px; opacity: .82; }
.welcome-card .gen-btn { position: relative; z-index: 1; }
.welcome-card #w-name-wrap { position: relative; z-index: 1; margin-top: 4px; }
.welcome-card #w-name { background: rgba(250,246,239,.08); border-color: rgba(227,194,107,.4); color: #FAF6EF; }
.welcome-card #w-name::placeholder { color: rgba(250,246,239,.45); }
.w-credit { text-align: center; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(227,194,107,.75); margin-top: 14px; position: relative; z-index: 1; }

/* botão flutuante + formulário de nova receita */
.fab {
  position: fixed; z-index: 36;
  bottom: calc(88px + env(safe-area-inset-bottom));
  right: max(16px, calc(50% - 224px));
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--gold); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(201, 143, 31, .45);
  transition: transform 150ms ease;
}
.fab:active { transform: scale(.94); }
.fab .lucide { width: 26px; height: 26px; }
.form-title { font-family: var(--serif); font-weight: 700; font-size: 24px; }
.form-sub { font-size: 13px; color: var(--ink-soft); margin: 4px 0 14px; }
.f-label { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 12px 2px 6px; }
.f-input {
  width: 100%; border: 1.5px solid var(--hair); border-radius: 14px;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 15px;
  padding: 12px 14px; outline: none; resize: vertical;
}
.f-input:focus { border-color: var(--gold); }
select.f-input { height: 48px; }
.fav-btn.del-btn { margin-top: 10px; color: #9B2C20; border-color: #9B2C20; }
html[data-theme="dark"] .fav-btn.del-btn { color: #E08A80; border-color: #E08A80; }

/* lista de compras inteligente */
.list-name { font-family: var(--display); font-weight: 700; margin-bottom: 10px; }
.cur-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cur-row > span { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.cur-row select { height: 44px; }
.total-card {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--paper);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; font-size: 13px;
}
html[data-theme="dark"] .total-card { background: #3A2E24; }
.total-card .tot { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--gold-soft); white-space: nowrap; }
.add-box { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.add-row { display: flex; gap: 8px; align-items: center; }
.add-row .f-input { padding: 10px 12px; }
.add-row #new-name { flex: 1; min-width: 0; }
.f-input.price { width: 84px; flex: 0 0 84px; }
.add-row .icon-btn { flex: 0 0 44px; overflow: hidden; padding: 0; }
.add-btn {
  flex: 1; height: 46px; border-radius: 999px;
  background: var(--gold); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(201, 143, 31, .35);
}
.add-btn:active { transform: scale(.97); }
.add-btn .lucide { width: 17px; height: 17px; }
.thumb { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: 0 0 36px; }
.mem-hint { font-size: 11.5px; color: var(--gold); margin: 2px 4px 10px; min-height: 14px; }
.shop-row .row-price { width: 80px; flex: 0 0 80px; padding: 8px 10px; font-size: 13px; margin-right: 2px; }
.arch-card { background: var(--card); border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 14px 16px; }
.arch-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.arch-head h4 { font-family: var(--display); font-weight: 700; font-size: 15px; }
.arch-head .tot { font-family: var(--display); font-weight: 800; color: var(--gold); white-space: nowrap; }
.arch-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.arch-actions { display: flex; gap: 8px; margin-top: 10px; }
.arch-actions button {
  flex: 1; height: 38px; border-radius: 999px;
  border: 1.5px solid var(--hair); color: var(--ink-soft);
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.arch-actions button .lucide { width: 15px; height: 15px; }
.arch-items { margin-top: 10px; border-top: 1px dashed var(--hair); padding-top: 8px; }
.arch-items div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.arch-items div span:last-child { color: var(--ink-soft); white-space: nowrap; }

/* ---------- plano ---------- */
.plan-wrap { padding: 16px; }
.seg { display: flex; background: var(--card); border: 1.5px solid var(--hair); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; height: 40px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.seg button.on { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .seg button.on { background: var(--gold); color: #fff; }
.water-note { border: 1.5px dashed #46698C; color: #46698C; border-radius: 14px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
html[data-theme="dark"] .water-note { color: #8FB3D9; border-color: #8FB3D9; }
.day-card { background: var(--card); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.day-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-family: var(--display); font-weight: 700; font-size: 15px;
  color: #fff;
}
.day-head .sp { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.25); border-radius: 99px; padding: 3px 10px; }
.day-body { padding: 4px 16px 12px; }
.day-meal { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hair); }
.day-meal:first-child { border-top: none; }
.day-meal .m { flex: 0 0 96px; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.day-meal .t { flex: 1; font-size: 13.5px; }
.day-meal .t .refs { color: var(--ink-soft); font-size: 11.5px; }
.seg.seg3 button { font-size: 12.5px; padding: 0 4px; }
.day-head .day-del { color: rgba(255,255,255,.85); width: 30px; height: 30px; display: grid; place-items: center; }
.day-head .day-del .lucide { width: 16px; height: 16px; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-empty { color: var(--ink-soft); }
.plan-chip {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1.5px solid var(--c, var(--hair)); border-radius: 999px;
  background: var(--card); overflow: hidden; max-width: 100%;
}
.plan-chip-open {
  font-family: var(--display); font-weight: 600; font-size: 12px;
  color: var(--ink); padding: 5px 4px 5px 11px; text-align: left; line-height: 1.2;
}
.plan-chip-x, .plan-chip-act { color: var(--c, var(--ink-soft)); padding: 4px 6px; display: grid; place-items: center; }
.plan-chip-x .lucide, .plan-chip-act .lucide { width: 13px; height: 13px; }
.plan-chip-act { opacity: .75; }
.plan-add {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  border: 1.5px dashed var(--gold-soft); color: var(--gold);
}
.plan-add .lucide { width: 15px; height: 15px; }
.plan-card-actions { display: flex; gap: 6px; padding: 4px 12px 12px; }
.plan-card-actions button {
  flex: 1; min-width: 0; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px solid var(--hair); color: var(--ink-soft); background: var(--card);
  font-family: var(--display); font-weight: 600; font-size: 11.5px;
}
.plan-card-actions button .lucide { width: 14px; height: 14px; }
.plan-card-actions button.del { color: #9B2C20; border-color: #E5C4BF; }
html[data-theme="dark"] .plan-card-actions button.del { color: #E08A80; border-color: #5C3A34; }
.plan-head { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 2px 2px 12px; }
.prefs-title { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 2px 2px 8px; }
.prefs-title span { font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .8; }
.prefs-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.pref-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
  border: 1.5px solid var(--hair); color: var(--ink-soft); background: var(--card);
}
.pref-chip .lucide { width: 15px; height: 15px; }
.pref-chip.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.build-tag { text-align: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); opacity: .6; margin-top: 18px; }
.plan-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.plan-actions .gen-btn { margin-top: 0; height: 48px; }
.add-day-btn {
  width: 100%; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--ink); border: 1.5px solid var(--hair); background: var(--card);
}
.add-day-btn .lucide { width: 17px; height: 17px; }

/* ---------- administração ---------- */
#admin {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto;
  background: var(--paper); max-width: 480px; margin: 0 auto;
}
#admin[hidden] { display: none; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.adm-top h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; display: flex; align-items: center; gap: 8px; }
.adm-top h2 .lucide { width: 22px; height: 22px; color: var(--gold); }
.adm-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.adm-metric { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 8px; text-align: center; }
.adm-metric b { font-family: var(--display); font-weight: 800; font-size: 19px; display: block; line-height: 1.1; }
.adm-metric span { font-size: 9.5px; color: var(--ink-soft); letter-spacing: .02em; }
.adm-metric.ok b { color: #5C7A34; }
.adm-metric.trial b { color: var(--gold); }
.adm-metric.off b { color: #9B2C20; }
@media (max-width: 380px) { .adm-metrics { grid-template-columns: repeat(2, 1fr); } }
.adm-filters { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.adm-filt { border: 1.5px solid var(--hair); border-radius: 999px; padding: 5px 12px; font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--ink-soft); }
.adm-filt.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.adm-card { background: var(--card); border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; }
.adm-h { font-family: var(--display); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.adm-user { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.adm-user:first-of-type { border-top: none; }
.adm-user-tx { min-width: 0; flex: 1; }
.adm-user-tx b { font-family: var(--display); font-weight: 700; font-size: 14px; display: block; }
.adm-user-tx span { font-size: 12px; color: var(--ink-soft); display: inline-block; margin-right: 8px; }
.adm-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 99px; padding: 2px 8px; }
.adm-badge.ok { background: #5C7A34; color: #fff; }
.adm-badge.trial { background: var(--gold); color: #fff; }
.adm-badge.off { background: var(--hair); color: var(--ink-soft); }
.adm-until { color: var(--ink-soft); }
.adm-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.adm-actions button { border: 1.5px solid var(--hair); border-radius: 999px; padding: 5px 9px; font-family: var(--display); font-weight: 700; font-size: 11px; color: var(--ink-soft); text-transform: capitalize; }
.adm-actions button.del { color: #9B2C20; border-color: #E5C4BF; }
.adm-gen-out { margin-top: 10px; font-size: 12.5px; }
.adm-gen-out b { display: block; margin-bottom: 6px; }
.adm-cp, .adm-code code { font-family: monospace; font-weight: 700; letter-spacing: .06em; }
.adm-cp { display: inline-block; background: var(--paper); border: 1.5px dashed var(--gold-soft); border-radius: 8px; padding: 5px 9px; margin: 3px 4px 0 0; cursor: pointer; }
.adm-code { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dotted var(--hair); font-size: 12.5px; }
.adm-code span.ok { color: #5C7A34; font-weight: 700; }
.adm-code span.off { color: var(--ink-soft); }
.adm-code span { margin-left: auto; }
.adm-code span + span { margin-left: 8px; }

/* ---------- mensagem do dia (quadrado pequeno) ---------- */
#daily {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(20, 14, 9, .28);
}
#daily[hidden] { display: none; }
.daily-card {
  position: relative; width: 100%; max-width: 330px;
  background: var(--card); border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border: 1.5px solid var(--gold-soft);
  padding: 30px 24px 24px; text-align: center;
  animation: dailyPop .25s ease-out both;
}
@keyframes dailyPop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.daily-x {
  position: absolute; top: 10px; right: 10px;
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 30px; line-height: 1; color: var(--ink-soft);
  background: var(--paper); border: 1.5px solid var(--hair);
}
.daily-x:active { transform: scale(.92); }
.daily-emoji { font-size: 44px; line-height: 1; margin: 6px 0 12px; }
.daily-msg { font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--ink); }
.daily-msg b { color: var(--gold); font-weight: 700; }
.daily-cta { margin-top: 18px; }

/* ---------- jejum ---------- */
.fast-wrap { padding: 16px; }
.fast-head h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; }
.fast-head p { font-size: 13px; color: var(--ink-soft); margin: 2px 0 16px; }
.fast-ring {
  background: var(--ink); color: var(--paper);
  border-radius: 22px; padding: 26px 18px; text-align: center; position: relative; overflow: hidden;
}
html[data-theme="dark"] .fast-ring { background: #3A2E24; }
.fast-ring.done { background: #5C7A34; }
.fast-pct { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--gold-soft); }
.fast-ring.done .fast-pct { color: #EAF3DC; }
.fast-time { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.05; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.fast-of { font-size: 13px; opacity: .85; }
.fast-bar { height: 8px; border-radius: 999px; background: var(--hair); margin: 14px 0; overflow: hidden; }
.fast-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width 1s linear; }
.fast-times { display: flex; gap: 10px; }
.fast-times > div { flex: 1; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px; }
.fast-times span { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.fast-times b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.fast-adjust { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 2px; }
.fast-adjust span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.fast-adjust button { border: 1.5px solid var(--hair); border-radius: 999px; padding: 7px 14px; font-family: var(--display); font-weight: 700; font-size: 12.5px; color: var(--ink-soft); }
.fast-stop { background: #9B2C20 !important; box-shadow: 0 6px 18px rgba(155,44,32,.35) !important; }
.fast-protos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fast-proto { min-width: 56px; height: 46px; border-radius: 14px; border: 1.5px solid var(--hair); background: var(--card); font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink-soft); padding: 0 14px; }
.fast-proto.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.fast-cu { display: flex; align-items: center; font-size: 13px; color: var(--ink-soft); }
.fast-chosen { background: var(--paper); border: 1px dashed var(--gold-soft); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px; }
.fast-chosen b { color: var(--gold); }
.fast-hist { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; margin-bottom: 8px; }
.fast-hist b { font-family: var(--display); font-weight: 700; font-size: 13.5px; display: block; }
.fast-hist span { font-size: 12px; color: var(--ink-soft); }
.fast-hist-r { font-family: var(--display); font-weight: 800; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.fast-hist-r.ok { color: #5C7A34; }
.fast-notif { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fast-notif .fast-proto { height: 42px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.fast-notif .fast-proto .lucide { width: 16px; height: 16px; }

/* ---------- pagamentos: bloqueio + planos ---------- */
#trial-banner {
  position: sticky; top: 0; z-index: 31;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #5C7A34; color: #fff; padding: 8px 16px;
  font-family: var(--display); font-weight: 600; font-size: 12.5px;
}
#trial-banner[hidden] { display: none; }
#trial-banner span { display: inline-flex; align-items: center; gap: 6px; }
#trial-banner .lucide { width: 15px; height: 15px; }
#trial-banner button { background: rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 4px 12px; font-family: var(--display); font-weight: 700; font-size: 12px; }

#gate {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 14, 9, .75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto;
}
#gate[hidden] { display: none; }
.gate-card {
  position: relative; width: 100%; max-width: 400px;
  background: var(--card); color: var(--ink);
  border-radius: 22px; padding: 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  text-align: center; margin: auto;
}
.gate-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink-soft); }
.gate-seal {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--gold); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
}
.gate-card h2 { font-family: var(--serif); font-weight: 700; font-size: 23px; line-height: 1.15; }
.gate-sub { font-size: 13.5px; color: var(--ink-soft); margin: 8px 0 16px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.plan-card {
  border: 1.5px solid var(--hair); border-radius: 16px; padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--paper);
  transition: border-color 150ms ease, transform 150ms ease;
}
.plan-card:active { transform: scale(.97); }
.plan-card:hover { border-color: var(--gold); }
.plan-nome { font-family: var(--display); font-weight: 700; font-size: 14px; }
.plan-preco { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--gold); }
.plan-dur { font-size: 11px; color: var(--ink-soft); }
.plan-buy { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 11.5px; color: #258a4a; }
.plan-buy .lucide { width: 14px; height: 14px; }
.plan-cheio { font-size: 11px; color: var(--ink-soft); }
.plan-cheio s { opacity: .7; }
.plan-cheio b { color: #258a4a; }
/* QR do menu */
.r-qr { text-align: center; margin-top: 10px; padding: 14px; background: var(--card); border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow); }
.r-qr img { width: 200px; height: 200px; max-width: 100%; }
.r-qr-link { font-size: 11px; color: var(--ink-soft); word-break: break-all; margin-top: 6px; }
/* menu público (clientes) */
#public-menu { position: fixed; inset: 0; z-index: 300; overflow-y: auto; background: var(--paper); }
#public-menu[hidden] { display: none; }
.pm-wrap { max-width: 480px; margin: 0 auto; padding: 24px 18px 60px; }
.pm-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-bottom: 16px; border-bottom: 2px solid var(--gold); margin-bottom: 18px; }
.pm-logo { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.pm-seal { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 24px; }
.pm-head h1 { font-family: var(--serif); font-weight: 700; font-size: 28px; }
.pm-zone { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; margin: 20px 0 8px; }
.pm-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--hair); }
.pm-n { font-family: var(--display); font-weight: 600; font-size: 15px; }
.pm-n em { font-style: normal; font-size: 12px; color: var(--ink-soft); }
.pm-p { font-family: var(--display); font-weight: 800; color: var(--gold); white-space: nowrap; }
.pm-msg { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.pm-foot { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 28px; }
.plan-group-title { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 2px 8px; }
.plan-card { position: relative; }
.plan-card.popular { border-color: var(--gold); box-shadow: 0 6px 18px rgba(201,143,31,.22); }
.plan-pop { position: absolute; top: -9px; background: var(--gold); color: #fff; font-family: var(--display); font-weight: 800; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; }
.plan-launch { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: #fff; border-radius: 999px; padding: 6px 14px; font-family: var(--display); font-weight: 700; font-size: 12px; margin-bottom: 12px; }
.plan-launch .lucide { width: 15px; height: 15px; }
.adm-fb { border-top: 1px solid var(--hair); padding: 10px 0; }
.adm-fb:first-of-type { border-top: none; }
.adm-fb p { font-size: 13.5px; line-height: 1.4; }
.adm-fb span { font-size: 11.5px; color: var(--ink-soft); }
.gate-code { text-align: left; margin-top: 6px; }
.gate-code-row { display: flex; gap: 8px; }
.gate-code-row .f-input { flex: 1; text-transform: uppercase; }
.gate-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 12px; line-height: 1.4; }

/* ---------- conta / nuvem ---------- */
/* a folha da conta tem de ficar ACIMA do paywall (#gate z-index:90) */
#account-bg { z-index: 100; }
#account-sheet { z-index: 101; }
.icon-btn.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.acc-lang { margin: 12px 0 16px; }
.acc-lang > span { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.acc-lang-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-lang-btns button {
  flex: 1; min-width: 90px; height: 42px; border-radius: 12px;
  border: 1.5px solid var(--hair); background: var(--card); color: var(--ink-soft);
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
}
.acc-lang-btns button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
/* seta "voltar ao site" no topo */
.site-back { color: var(--gold); text-decoration: none; border-color: var(--gold-soft); }
.site-back:hover { background: var(--gold); color: #fff; }
/* logótipo no cabeçalho */
.brand-lockup { display: flex; align-items: center; gap: 9px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; flex: none; }
/* cartão de assinatura na conta */
.acc-sub { border-radius: 14px; padding: 13px 15px; margin: 0 0 14px; border: 1.5px solid var(--hair); background: var(--card); }
.acc-sub.ok { border-color: #9CC06A; background: var(--success-soft, #EAF3DC); }
.acc-sub.trial { border-color: var(--gold-soft); background: color-mix(in srgb, #C98F1F 9%, var(--card)); }
.acc-sub.off { border-color: var(--hair); }
.acc-sub-h { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.acc-sub-h .lucide { width: 17px; height: 17px; }
.acc-sub.ok .acc-sub-h { color: #4A6A2A; } .acc-sub.trial .acc-sub-h { color: var(--gold); }
.acc-sub-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; color: var(--ink-soft, #6B5D4F); }
.acc-sub-row b { color: var(--ink); }
/* ecrã de pagamento (IBAN) */
.pay-box { background: var(--paper, #FAF6EF); border: 1.5px solid var(--gold-soft); border-radius: 14px; padding: 14px; margin: 14px 0; text-align: left; }
.pay-label { font: 700 12px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.pay-iban { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-iban code { flex: 1; min-width: 160px; font: 700 15px ui-monospace, monospace; letter-spacing: .04em; color: var(--ink); word-break: break-all; }
.pay-copy { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--gold-soft); background: transparent; color: var(--gold); font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.pay-copy .lucide { width: 13px; height: 13px; }
.pay-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; color: var(--ink-soft, #6B5D4F); }
.pay-row b { color: var(--ink); }
.pay-warn { display: flex; gap: 9px; align-items: flex-start; background: color-mix(in srgb, #C0392B 8%, transparent); border: 1px solid #E5C4BF; border-radius: 12px; padding: 11px 13px; font-size: 13px; line-height: 1.4; color: var(--ink); text-align: left; margin-bottom: 14px; }
.pay-warn .lucide { width: 17px; height: 17px; color: #C0392B; flex: none; margin-top: 1px; }
/* voltar ao site (no gate) */
.gate-site { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--gold); font-weight: 700; font-size: 14px; text-decoration: none; }
.gate-site .lucide { width: 16px; height: 16px; }
.acc-site-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; padding: 11px; border-radius: 12px; border: 1.5px solid var(--gold-soft); color: var(--gold); background: transparent; font-weight: 700; font-size: 14px; text-decoration: none; }
.acc-site-link:hover { background: var(--gold); color: #fff; }
.acc-site-link .lucide { width: 17px; height: 17px; }
.adm-clean { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 12px; border: 1.5px solid #C0392B; color: #C0392B; background: transparent; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
.adm-clean:hover { background: #C0392B; color: #fff; }
.adm-clean .lucide { width: 15px; height: 15px; }
.acc-benefits { background: var(--paper); border: 1.5px solid var(--gold-soft); border-radius: 16px; padding: 14px; margin: 4px 0 16px; }
.acc-benefits-h { font-family: var(--display); font-weight: 800; font-size: 14px; margin-bottom: 10px; color: var(--gold); }
.acc-benefit { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 13px; line-height: 1.35; }
.acc-benefit .lucide { width: 17px; height: 17px; flex: 0 0 17px; color: var(--gold); margin-top: 1px; }
.acc-benefit b { color: var(--ink); }
.acc-seg { margin-bottom: 14px; }
.acc-user { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.acc-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.acc-avatar .lucide { width: 24px; height: 24px; }
.acc-user b { font-family: var(--display); font-weight: 700; font-size: 15px; display: block; }
.acc-user span { font-size: 12px; color: var(--ink-soft); }
.acc-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 16px; padding: 12px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--hair);
  font-size: 12.5px; line-height: 1.4; color: var(--ink-soft);
}
.acc-note .lucide { width: 17px; height: 17px; flex: 0 0 17px; color: var(--gold); margin-top: 1px; }
.acc-note b { color: var(--ink); }

/* ---------- navegação inferior ---------- */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 35;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair);
  display: flex; padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
}
.nav button {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; color: var(--ink-soft);
  font-family: var(--display); font-weight: 600; font-size: 9.5px; line-height: 1.05;
  border-radius: 14px; text-align: center;
}
.nav button.on { color: var(--gold); }
.view { display: none; }
.view.on { display: block; }
