/* Ísis — vinho profundo + ouro sobre noite. Liquid Glass só nas peças que flutuam:
   barra de abas, barra de título, ilha do cronômetro, folha de oferta, campo do chat e avisos. */
:root {
  --bg: #0E0809;
  --surface: rgba(255, 240, 235, .045);
  --surface-2: rgba(255, 240, 235, .08);
  --sep: rgba(255, 240, 235, .08);
  --line: rgba(255, 240, 235, .1);
  --ink: #F8EFEA;
  --ink-2: rgba(248, 239, 234, .74);
  --muted: rgba(248, 239, 234, .55);
  --wine: #A3264A;
  --rose: #E8708A;
  --gold: #E2BC74;
  --gold-2: #C99A4E;
  --gold-soft: rgba(226, 188, 116, .14);
  --ok: #7FD1A4;
  --bad: #F07A8F;
  --r: 22px;
  --r-sm: 14px;
  --serif: 'Recoleta', 'Poppins';            /* títulos, números grandes, preços */
  --sans: 'Avenir Next', 'Avenir', 'Poppins';  /* texto corrido, listas, chat */
  --ui: 'Poppins';                             /* botões, abas, etiquetas, controles */
  --spring: cubic-bezier(.32, .72, 0, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 64px;
}
/* ---------- Fontes: só Recoleta, Avenir e Poppins ----------
   Recoleta e Avenir são pagas: coloque os arquivos licenciados em fonts/ (ver fonts/LEIA-ME.md).
   No iPhone e no Mac a Avenir Next já vem instalada, então ela aparece sem arquivo. */
@font-face { font-family: 'Recoleta'; font-weight: 500; font-display: swap; src: local('Recoleta Medium'), local('Recoleta-Medium'), url('fonts/Recoleta-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Recoleta'; font-weight: 600; font-display: swap; src: local('Recoleta SemiBold'), local('Recoleta-SemiBold'), url('fonts/Recoleta-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Avenir'; font-weight: 400; font-display: swap; src: local('Avenir Book'), local('Avenir-Book'), url('fonts/Avenir-Book.woff2') format('woff2'); }
@font-face { font-family: 'Avenir'; font-weight: 500 600; font-display: swap; src: local('Avenir Medium'), local('Avenir-Medium'), url('fonts/Avenir-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Avenir'; font-weight: 700 800; font-display: swap; src: local('Avenir Heavy'), local('Avenir-Heavy'), url('fonts/Avenir-Heavy.woff2') format('woff2'); }

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: #060304; color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

/* ---------- Moldura ---------- */
.phone { position: relative; max-width: 430px; height: 100dvh; margin: 0 auto; background: var(--bg); overflow: hidden; isolation: isolate; }
@media (min-width: 640px) {
  body { display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% 0%, #1A0B10, #060304); }
  .phone { width: 402px; height: min(874px, calc(100dvh - 48px)); border-radius: 54px; box-shadow: 0 0 0 10px #17100F, 0 0 0 11px #2C2220, 0 40px 120px rgba(0,0,0,.7); }
}

/* Fundo vivo: dá cor para o vidro refratar */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: deriva 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 340px; height: 340px; background: #7A1631; top: -120px; left: -120px; }
.aurora i:nth-child(2) { width: 280px; height: 280px; background: #6B4A1C; top: 30%; right: -150px; animation-duration: 28s; opacity: .4; }
.aurora i:nth-child(3) { width: 300px; height: 300px; background: #4A0F22; bottom: -120px; left: 10%; animation-duration: 25s; }
@keyframes deriva { to { transform: translate(40px, 30px) scale(1.15); } }

main { position: absolute; inset: 0; overflow-y: auto; padding: calc(16px + env(safe-area-inset-top)) 18px calc(var(--nav-h) + 48px + env(safe-area-inset-bottom)); outline: none; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
main.no-nav { padding-bottom: 32px; }
main.chat-pad { padding-bottom: calc(var(--nav-h) + 110px + env(safe-area-inset-bottom)); }
main.push > * { animation: empurra .42s var(--spring) both; }
main.pop > * { animation: volta .42s var(--spring) both; }
main.fade > * { animation: surge .3s ease both; }
@keyframes empurra { from { opacity: 0; transform: translateX(28px); } }
@keyframes volta { from { opacity: 0; transform: translateX(-28px); } }
@keyframes surge { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Liquid Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.05);
  backdrop-filter: blur(22px) saturate(190%) brightness(1.05);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(255,255,255,.06),
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 12px 32px rgba(0,0,0,.42);
}
/* reflexo especular curvo, como a borda de uma lente */
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 20% -10%, rgba(255,255,255,.2), transparent 55%),
              radial-gradient(80% 60% at 110% 120%, rgba(226,188,116,.14), transparent 60%);
  mix-blend-mode: screen;
}
/* Refração (Chromium): distorce o fundo nas bordas do vidro. Safari fica no desfoque. */
@supports (backdrop-filter: url(#x)) {
  .glass.refract { backdrop-filter: blur(14px) saturate(190%) url(#lente); }
}

/* ---------- Tipografia ---------- */
.large-title { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.06; letter-spacing: -.6px; margin: 6px 0 4px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.08; letter-spacing: -.5px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -.3px; }
h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.1px; }
.serif { font-family: var(--serif); font-weight: 600; }
.gold { color: var(--gold); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.section-h { display: flex; justify-content: space-between; align-items: center; margin: 26px 2px 8px; }
.section-h h2 { font-size: 20px; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 13px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.subtitle { color: var(--ink-2); font-size: 15px; }

/* ---------- Barra de título compacta (aparece ao rolar) ---------- */
.appbar { position: absolute; top: 0; left: 0; right: 0; z-index: 8; height: calc(54px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); display: flex; align-items: center; justify-content: center; border-radius: 0 0 24px 24px; opacity: 0; transform: translateY(-100%); transition: opacity .25s, transform .4s var(--spring); pointer-events: none; }
.appbar.on { opacity: 1; transform: none; pointer-events: auto; }
.appbar .t { font-weight: 700; font-size: 16px; }
.appbar .back { position: absolute; left: 8px; top: calc(5px + env(safe-area-inset-top)); }

/* ---------- Topo das telas ---------- */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 4px; }
.back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: transform .3s var(--bounce); }
.back:active { transform: scale(.88); }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold); letter-spacing: -.3px; }

/* ---------- Cartões e listas agrupadas (estilo iOS) ---------- */
.card { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.card.hero { background: linear-gradient(150deg, rgba(163,38,74,.45), rgba(94,19,40,.25) 55%, rgba(226,188,116,.12)); box-shadow: inset 0 0 0 1px rgba(232,112,138,.22), inset 0 1px 0 rgba(255,255,255,.12); }
.card.goldc { background: linear-gradient(160deg, rgba(226,188,116,.16), rgba(255,255,255,.03) 60%); box-shadow: inset 0 0 0 1px rgba(226,188,116,.25); }
.card.wine { background: linear-gradient(160deg, rgba(163,38,74,.5), rgba(94,19,40,.35)); box-shadow: inset 0 0 0 1px rgba(232,112,138,.25); }
a.card, button.card { display: block; width: 100%; text-align: left; color: inherit; transition: transform .35s var(--bounce), background .2s; }
a.card.row, button.card.row { display: flex; }
a.card:active, button.card:active { transform: scale(.975); }
@media (hover: hover) { a.card:hover, button.card:hover { transform: translateY(-2px); } }

.list { background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; position: relative; transition: background .15s; }
.list-row + .list-row::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--sep); }
.list.plain .list-row + .list-row::before { left: 16px; }
button.list-row:active, a.list-row:active { background: var(--surface-2); }
@media (hover: hover) { button.list-row:hover, a.list-row:hover { background: rgba(255,255,255,.03); } }
.list-row .grow { flex: 1; min-width: 0; }
.chev { color: var(--muted); }
.badge { flex: none; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.badge.ok { background: rgba(127,209,164,.14); color: var(--ok); }
.ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.ic.wine { background: rgba(163,38,74,.32); color: var(--rose); }
.ic.dim { background: var(--surface-2); color: var(--muted); }

/* ---------- Botões ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; width: 100%; border-radius: 999px; font-weight: 700; font-size: 15.5px; color: #1C1208; background: linear-gradient(180deg, #F0CF8C, var(--gold) 45%, var(--gold-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 26px rgba(226,188,116,.22); transition: transform .35s var(--bounce), filter .2s; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.btn.shine::after { animation: brilho 3.2s ease-in-out 1s infinite; }
@keyframes brilho { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn:active { transform: scale(.965); filter: brightness(.95); }
.btn.ghost { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn.wine { color: var(--ink); background: linear-gradient(180deg, #C03560, var(--wine)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 26px rgba(163,38,74,.35); }
.btn.sm { min-height: 40px; width: auto; padding: 0 14px; font-size: 13px; }
.btn.text { background: none; box-shadow: none; color: var(--muted); min-height: 44px; }
.link { color: var(--gold); font-weight: 600; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Campos ---------- */
.field span { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 6px; }
.input { width: 100%; min-height: 54px; padding: 0 18px; background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-sm); outline: none; font-size: 16px; transition: box-shadow .2s; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--gold); }
.code { letter-spacing: 12px; text-align: center; font-size: 24px; font-weight: 700; }

/* ---------- Quiz / opções ---------- */
.option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 14px 18px; text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-sm); font-weight: 600; transition: transform .35s var(--bounce), box-shadow .2s, background .2s; }
.option:active { transform: scale(.97); background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }

/* Controle segmentado com lente de vidro */
.segment { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.segment button { position: relative; z-index: 1; min-height: 38px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); transition: color .25s; white-space: nowrap; padding: 0 4px; }
.segment button.on { color: var(--ink); }
.segment .lens { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); transform: translateX(calc(100% * var(--i))); border-radius: 999px; transition: transform .45s var(--bounce); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: transform .3s var(--bounce), background .2s; }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--gold); color: #1C1208; box-shadow: none; }

/* ---------- Progresso ---------- */
.bar { height: 5px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--rose), var(--gold)); border-radius: inherit; transition: width .6s var(--spring); }
.ring { --p: 0; width: 68px; height: 68px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); }
.ring b { width: 56px; height: 56px; border-radius: 50%; background: #2A1218; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; font-weight: 600; }

/* ---------- Termômetro ---------- */
.thermo { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #3E5C7E, var(--wine), var(--rose), var(--gold)); margin: 14px 0 8px; }
.thermo i { position: absolute; top: 50%; width: 28px; height: 28px; border-radius: 50%; transform: translate(-50%, -50%); transition: left .7s var(--bounce); }
.temp { font-family: var(--serif); font-size: 34px; letter-spacing: -1px; line-height: 1; font-weight: 600; }
.log-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 4px -18px 0; padding: 4px 18px 2px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.log-scroll::-webkit-scrollbar { display: none; }
.log-btn { flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .3s var(--bounce); }
.log-btn:active { transform: scale(.92); }
.log-btn.pos::before { content: '▲ '; color: var(--ok); font-size: 10px; }
.log-btn.neg::before { content: '▼ '; color: var(--bad); font-size: 10px; }

/* ---------- Ferramentas ---------- */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool { position: relative; min-height: 112px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.tool .ic { width: 40px; height: 40px; border-radius: 12px; }
.tool .badge { position: absolute; top: 14px; right: 14px; }
.tool.locked h3 { color: var(--ink-2); }

/* ---------- Mensagens ---------- */
.msg-card { display: flex; flex-direction: column; gap: 12px; }
.bubble { align-self: flex-start; max-width: 100%; background: linear-gradient(180deg, #1F5B47, #174636); color: #EAF7EF; border-radius: 20px 20px 20px 6px; padding: 11px 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); font-size: 15px; }
.copy { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 12.5px; font-weight: 700; transition: transform .3s var(--bounce), background .2s, color .2s; }
.copy:active { transform: scale(.92); }
.copy.done { background: rgba(127,209,164,.16); color: var(--ok); }

/* ---------- Checklist ---------- */
.box { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); display: grid; place-items: center; transition: all .35s var(--bounce); color: transparent; font-size: 13px; font-weight: 800; }
.check.on .box { background: var(--gold); box-shadow: none; color: #1C1208; transform: scale(1.06); }
.check.on .grow { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }

/* ---------- Protocolo ---------- */
.dnum { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 600; background: var(--surface-2); }
.done .dnum { background: var(--gold); color: #1C1208; }
.today .dnum { background: var(--wine); box-shadow: 0 0 0 4px rgba(163,38,74,.28); }
.list-row.locked { opacity: .45; }
.timer { font-family: var(--serif); font-size: 40px; letter-spacing: -1px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Ilha do cronômetro (estilo Live Activity) ---------- */
.island { position: absolute; z-index: 9; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translate(-50%, -160%); display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 7px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: transform .5s var(--bounce); white-space: nowrap; }
.island.on { transform: translate(-50%, 0); }
.island .dot { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: var(--ink); }
.island .tt { font-variant-numeric: tabular-nums; color: var(--gold); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.chat .me, .chat .her { max-width: 84%; padding: 11px 15px; border-radius: 22px; white-space: pre-line; font-size: 15px; }
.chat .new { animation: bolha .4s var(--bounce) both; }
@keyframes bolha { from { opacity: 0; transform: scale(.9) translateY(6px); } }
.chat .me { align-self: flex-end; background: linear-gradient(180deg, #B42E57, var(--wine)); border-bottom-right-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.chat .her { align-self: flex-start; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.chat .her b { color: var(--gold); }
.chat img { max-width: 170px; border-radius: 14px; display: block; }
.day-sep { align-self: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 10px; margin: 4px 0; }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--ink-2); animation: pula 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer { position: absolute; z-index: 7; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 999px; transition: bottom .4s var(--spring); }
.composer[hidden] { display: none; }
.composer input { flex: 1; min-width: 0; min-height: 44px; padding: 0 6px; background: none; border: 0; outline: none; font-size: 16px; }
.composer input::placeholder { color: var(--muted); }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: transform .3s var(--bounce); cursor: pointer; }
.icon-btn:active { transform: scale(.88); }
.icon-btn.send { background: linear-gradient(180deg, #F0CF8C, var(--gold-2)); color: #1C1208; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.isis-av { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #4A3418, #1C1208 70%); box-shadow: inset 0 0 0 1px rgba(226,188,116,.55), 0 0 22px rgba(226,188,116,.18); color: var(--gold); font-family: var(--serif); font-size: 22px; }
.isis-av.big { width: 84px; height: 84px; font-size: 42px; }
.isis-av .live { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Barra de abas flutuante ---------- */
.nav { position: absolute; z-index: 8; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); height: var(--nav-h); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 999px; transition: left .45s var(--spring), right .45s var(--spring), height .45s var(--spring); }
.nav[hidden] { display: none; }
.nav a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); border-radius: 999px; transition: color .25s, transform .3s var(--bounce); }
.nav a:active { transform: scale(.9); }
.nav a.on { color: var(--gold); }
.nav a span { transition: opacity .2s, max-height .3s; max-height: 16px; overflow: hidden; }
.nav .lens { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); transform: translateX(calc(100% * var(--i, 0))); border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .5s var(--bounce); }
/* minimiza ao rolar para baixo, como no iOS */
.nav.min { left: 64px; right: 64px; height: 52px; }
.nav.min a span { opacity: 0; max-height: 0; }

/* ---------- Folha (oferta / checkout) ---------- */
.sheet { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgba(4,1,2,.55); animation: fundo .25s both; }
.sheet[hidden] { display: none; }
.sheet.closing { animation: fundo .25s reverse both; }
@keyframes fundo { from { opacity: 0; } }
.sheet-body { width: 100%; max-height: 92%; overflow-y: auto; border-radius: 34px 34px 0 0; padding: 8px 22px calc(26px + env(safe-area-inset-bottom)); animation: sobe .45s var(--spring) both; background: linear-gradient(180deg, rgba(48,24,30,.93), rgba(16,9,11,.98)); }
.sheet.closing .sheet-body { animation: desce .25s ease-in both; }
@keyframes sobe { from { transform: translateY(100%); } }
@keyframes desce { to { transform: translateY(100%); } }
.grab-zone { padding: 6px 0 16px; cursor: grab; touch-action: none; }
.grab { width: 40px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.28); margin: 0 auto; }
.price { font-family: var(--serif); font-size: 44px; letter-spacing: -1px; line-height: 1; color: var(--gold); font-weight: 600; }
.price s { font-family: var(--sans); font-size: 15px; color: var(--muted); margin-right: 8px; font-weight: 500; }
.price .per { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.ticks { padding: 0; }
.ticks li { list-style: none; padding-left: 30px; position: relative; margin-top: 10px; color: var(--ink-2); }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 800; }
.qr { width: 184px; height: 184px; margin: 4px auto; border-radius: 18px; background: #fff; padding: 12px; display: grid; grid-template-columns: repeat(21, 1fr); }
.qr i { background: #111; } .qr i.w { background: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(163,38,74,.35); color: #FFD2DB; box-shadow: inset 0 0 0 1px rgba(232,112,138,.35); }
.proto { font-size: 11.5px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 12px; padding: 9px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }

/* ---------- Aviso ---------- */
.toast { position: absolute; left: 50%; top: calc(60px + env(safe-area-inset-top)); z-index: 30; transform: translate(-50%, -24px) scale(.9); opacity: 0; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; transition: transform .5s var(--bounce), opacity .25s; pointer-events: none; white-space: nowrap; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.phone.ilha main { padding-top: calc(64px + env(safe-area-inset-top)); }

/* ---------- Login ---------- */
.hero-login { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-login .large-title { font-size: 42px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Conversas ---------- */
.isis-av { overflow: visible; }
.isis-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.isis-av.sm { width: 34px; height: 34px; font-size: 17px; }
.isis-av.xl { width: 116px; height: 116px; font-size: 56px; margin: 0 auto; box-shadow: inset 0 0 0 1.5px rgba(226,188,116,.6), 0 0 0 8px rgba(226,188,116,.06), 0 0 60px rgba(226,188,116,.25); }
.back .isis-av.sm { box-shadow: none; }
main.no-nav.chat-pad { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
main.no-nav ~ .composer { bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ---------- Poppins: tudo que é controle ---------- */
.btn, .nav a, .eyebrow, .badge, .chip, .segment button, .tag, .copy, .log-btn, .link,
.toast, .island, .day-sep, .secure, .proto { font-family: var(--ui); }
.btn { font-weight: 600; letter-spacing: 0; }
.nav a { font-weight: 500; font-size: 10.5px; }
.nav a.on { font-weight: 600; }
.eyebrow { font-weight: 600; letter-spacing: 1.2px; }
.badge, .tag, .copy, .chip, .segment button, .log-btn { font-weight: 500; }
.chip.on, .segment button.on { font-weight: 600; }
h3 { font-weight: 600; }

/* ---------- Início: frase, jornada, metas, conquistas ---------- */
.frase { background: linear-gradient(160deg, rgba(226,188,116,.12), rgba(163,38,74,.14)); box-shadow: inset 0 0 0 1px rgba(226,188,116,.2); }
.frase-t { font-family: var(--serif); font-size: 19px; line-height: 1.35; font-weight: 500; letter-spacing: -.2px; }
a.card.jornada { display: block; }
.fases { display: grid; grid-template-columns: 2fr 3fr 2fr; gap: 6px; margin-top: 14px; }
.fases > div { display: flex; flex-direction: column; gap: 6px; }
.fbar { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--gold)); border-radius: inherit; transition: width .6s var(--spring); }
.fases small { font-family: var(--ui); font-size: 11px; font-weight: 500; color: var(--muted); }
.fases .now small { color: var(--gold); font-weight: 600; }
.log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.log-grid .log-btn { width: 100%; white-space: normal; text-align: left; min-height: 52px; padding: 8px 14px; border-radius: var(--r-sm); line-height: 1.25; }
.medal { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.medal.on { color: #2A1A08; background: radial-gradient(circle at 35% 30%, #FBE3A8, var(--gold) 50%, var(--gold-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 18px rgba(226,188,116,.3); }
.medal.big { width: 96px; height: 96px; margin: 0 auto; }
.medal.big svg { width: 42px; height: 42px; }
.medals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.medals > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.medals small { font-family: var(--ui); font-size: 10.5px; line-height: 1.25; color: var(--ink-2); }
.tool.locked .medal { opacity: .6; }
.burst { position: relative; padding: 10px 0; }
.burst::before { content: ''; position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(226,188,116,.35), transparent 65%); animation: pulsa 2s ease-in-out infinite; }
@keyframes pulsa { 50% { transform: translate(-50%, -50%) scale(1.15); opacity: .7; } }
.burst .medal { position: relative; animation: ganha .7s var(--bounce) both; }
@keyframes ganha { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
.list-row.check .box { cursor: pointer; }

/* ---------- Foto e nome da usuária ---------- */
.user-av { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, var(--wine), #5E1328); color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(226,188,116,.5); }
.user-av img { width: 100%; height: 100%; object-fit: cover; }
.user-av.xl { width: 112px; height: 112px; font-size: 46px; margin: 0 auto; }
.foto-edit { position: relative; display: inline-block; cursor: pointer; }
.foto-edit .cam { position: absolute; right: 0; bottom: 2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }

/* Topo da conversa fixo: sempre dá para voltar sem rolar */
.chat-head { position: sticky; z-index: 6; top: calc(-16px - env(safe-area-inset-top)); margin: calc(-16px - env(safe-area-inset-top)) -18px 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; border-radius: 0 0 26px 26px; }
.phone.ilha .chat-head { top: calc(-64px - env(safe-area-inset-top)); margin-top: calc(-64px - env(safe-area-inset-top)); padding-top: calc(58px + env(safe-area-inset-top)); }
