/* ============================================================================
   APP CERO SENTADILLAS — design system (handoff §3) + tema claro/escuro
   vinho #7B2D3E = marca · verde #1B7A4D = acción/avance
============================================================================ */
:root {
  --bg: #faf7f5; --bg-2: #f3ecea; --card: #fff; --line: rgba(123,45,62,.14);
  --tx: #2b1a1f; --tx-soft: #6f5a60; --tx-mute: #a08d93;
  --brand: #7B2D3E; --brand-soft: rgba(123,45,62,.08);
  --go: #1B7A4D; --go-2: #14603c; --lock: #b98a2e;
  --r: 18px; --r-sm: 12px; --shadow: 0 14px 34px -18px rgba(123,45,62,.28); --maxw: 480px;
}
:root[data-theme="dark"] {
  --bg: #17100f; --bg-2: #1f1614; --card: #241a18; --line: rgba(255,255,255,.09);
  --tx: #f3e9e6; --tx-soft: #c3b0ab; --tx-mute: #8a7772; --brand: #d98a9c; --brand-soft: rgba(217,138,156,.12);
  --shadow: 0 14px 34px -18px rgba(0,0,0,.6);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--tx); font-family: "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
#app { min-height: 100%; }

/* ---- botões ---- */
.btn { display: block; width: 100%; border: 0; border-radius: var(--r-sm); padding: 14px; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.98); }
.btn--go { background: var(--go); color: #fff; } .btn--go:active { background: var(--go-2); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px; color: var(--tx-soft); margin-bottom: 5px; text-transform: uppercase; }
.fld input, .prof__form input { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; font-size: 15px; background: var(--card); color: var(--tx); outline: none; }
.fld input:focus, .prof__form input:focus { border-color: var(--brand); }

/* ---- login ---- */
.login { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 22px; }
.logo-img { display: block; width: min(260px, 72%); margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow); }
.login__tag { text-align: center; color: var(--tx-mute); font-weight: 800; font-size: 11.5px; letter-spacing: 1.4px; margin: 14px 0 6px; }
.login__h1 { text-align: center; font-size: 28px; font-weight: 800; }
.login__sub { text-align: center; color: var(--tx-soft); font-size: 14.5px; line-height: 1.5; margin: 10px 0 22px; }
.login__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.login__err { color: #c0392b; font-size: 13px; margin-top: 10px; text-align: center; }
.login__stats { display: flex; justify-content: center; gap: 26px; margin-top: 22px; }
.login__stats span { display: flex; flex-direction: column; align-items: center; font-size: 11.5px; color: var(--tx-mute); font-weight: 600; }
.login__stats b { font-size: 22px; color: var(--brand); font-weight: 800; }

/* ---- shell ---- */
.shell { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; padding-bottom: 76px; }
/* hero header: imagem temática + degradê vinho + logo blanca + título */
.hero { position: relative; overflow: hidden; background: #3a1520; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero--main { min-height: 186px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero--main .hero__bg { object-position: 72% 26%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(46,14,22,.92) 0%, rgba(46,14,22,.62) 46%, rgba(46,14,22,.18) 100%), linear-gradient(to top, rgba(46,14,22,.55), transparent 55%); }
/* login: logo wordmark transparente (sem card) */
.logo-img--word { border-radius: 0; box-shadow: none; width: min(300px, 82%); }
/* ofertas: tag de produto */
.prod__tag { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; letter-spacing: .5px; }
.hero__tx { position: relative; z-index: 1; padding: 12px 18px 14px; color: #fff; }
.hero__k { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; color: rgba(255,255,255,.75); margin-bottom: 3px; }
.hero__tx h1 { font-size: 20px; font-weight: 800; line-height: 1.15; }
.hero__tx p { font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.85); margin-top: 4px; max-width: 340px; }
.view { padding: 18px 16px 24px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: var(--maxw); margin: 0 auto; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6,1fr); z-index: 30; }
.tab { background: none; border: 0; padding: 8px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--tx-mute); cursor: pointer; }
.tab__ic { font-size: 20px; filter: grayscale(1); opacity: .6; }
.tab__lb { font-size: 9.5px; font-weight: 700; }
.tab.is-active { color: var(--brand); } .tab.is-active .tab__ic { filter: none; opacity: 1; }

/* ---- comuns ---- */
.hi { font-size: 24px; font-weight: 800; }
.hi__sub { color: var(--tx-soft); font-size: 14px; margin: 6px 0 16px; line-height: 1.45; }
.k { display: block; color: var(--brand); font-weight: 800; font-size: 11px; letter-spacing: 1.2px; margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--tx-soft); font-size: 14px; line-height: 1.5; }
.card .btn { margin-top: 14px; }
.pbar { height: 8px; background: var(--bg-2); border-radius: 8px; overflow: hidden; margin: 12px 0; }
.pbar i { display: block; height: 100%; background: var(--go); border-radius: 8px; transition: width .3s; }

/* viaje */
.viaje__row { display: flex; justify-content: space-between; align-items: flex-end; }
.viaje__day b, .viaje__pct b { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.viaje__day span, .viaje__pct span { display: block; font-size: 11px; color: var(--tx-mute); font-weight: 700; margin-top: 2px; }
.viaje__pct { text-align: right; }
.viaje__fases { display: flex; gap: 6px; }
.chip { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 6px 4px; border-radius: 8px; background: var(--bg-2); color: var(--tx-mute); }
.chip.on { background: var(--brand); color: #fff; }
.today h3 { margin-top: 4px; }

/* feed */
.feed__h { margin-bottom: 12px; }
.post { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: 0; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.av--lg { width: 52px; height: 52px; font-size: 20px; }
.post__b b { font-size: 13.5px; } .post__b em { font-style: normal; color: var(--tx-mute); font-weight: 500; }
.post__b p { font-size: 14px; margin: 3px 0; color: var(--tx); }
.post__like { font-size: 12px; color: var(--brand); font-weight: 700; }
.av--img { object-fit: cover; background: var(--bg-2); }
.post { position: relative; }
.post__del { position: absolute; top: 10px; right: 0; background: none; border: 0; color: var(--tx-mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.post__del:active { color: var(--brand); }
.post__like--btn { background: none; border: 0; cursor: pointer; padding: 2px 0; opacity: .55; }
.post__like--btn.liked { opacity: 1; }

/* entrenos */
.prog-line { color: var(--tx-soft); font-size: 13.5px; margin-bottom: 16px; }
.prog-line b { color: var(--brand); }
.fase { margin-bottom: 14px; }
.fase__h { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.fase__head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; font-size: 15px; color: var(--tx); cursor: pointer; }
.fase__head b { color: var(--brand); }
.fase__chev { color: var(--tx-mute); transition: transform .25s; }
.fase__head.open .fase__chev { transform: rotate(180deg); }
.fase__head.open { border-radius: var(--r-sm) var(--r-sm) 0 0; border-bottom: 0; }
.fase__body { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); padding: 12px 10px 4px; background: var(--bg-2); }
.fase__foco { color: var(--tx-soft); font-size: 13px; margin: 2px 4px 12px; line-height: 1.45; }
.daycard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.daycard__img { width: calc(100% + 28px); margin: -14px -14px 12px; height: 128px; object-fit: cover; display: block; }
.daycard--locked { opacity: .82; }
.daycard--locked .daycard__img { filter: grayscale(.5) brightness(.96); }
.daycard--locked h3 { color: var(--tx-soft); }
.daycard__lock { margin-left: auto; font-size: 15px; opacity: .75; }
.daycard__locknote { font-size: 12px !important; color: var(--tx-mute) !important; margin-top: 4px; }
.daycard--current { border-color: var(--brand); box-shadow: 0 14px 34px -16px rgba(123,45,62,.4); }
.exrow--seen .exrow__n { background: var(--go); color: #fff; }
.exrow--seen .exrow__v { color: var(--go); font-weight: 800; }

/* aviso de dia incompleto (Inicio) */
.warn { border-left: 4px solid #c97116; }
.warn__k { color: #c97116 !important; }

/* check-in pós-treino + registro no Perfil */
.chk__chips { display: flex; gap: 8px; margin-bottom: 10px; }
.chk__chip { flex: 1; border: 1.5px solid var(--line); background: var(--card); color: var(--tx-soft); border-radius: var(--r-sm); padding: 10px 4px; font-size: 13px; font-weight: 700; cursor: pointer; }
.chk__chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.chk__row { border-top: 1px solid var(--line); padding: 10px 0; }
.chk__row:first-of-type { border-top: 0; }
.chk__head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chk__head em { font-style: normal; color: var(--tx-mute); font-size: 12px; }
.chk__dif { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--tx-soft); }
.chk__pain { font-size: 13px; color: var(--tx-soft); margin-top: 4px; }
/* resumen de fase (TU VIAJE) */
.chip--btn { border: 0; cursor: pointer; font-family: inherit; }
.chip--btn:active { transform: scale(.96); }
.viaje__hint { font-size: 11.5px; color: var(--tx-mute); margin-top: 8px; text-align: center; }
.fres__st { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--tx-mute); }
.fres__st--ok { color: var(--go); }
.fres__st--cur { color: var(--brand); }
.fres__meta { font-size: 12.5px; color: var(--tx-soft); margin-top: 3px; }
.fres__empty { font-size: 13px; color: var(--tx-mute); margin-top: 10px; }
.daycard.done { border-color: var(--go); }
.daycard.rest { opacity: .82; }
.daycard__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.daycard__day { font-size: 11px; font-weight: 800; color: var(--tx-soft); letter-spacing: .8px; display: inline-flex; align-items: baseline; gap: 5px; }
.daycard__day b { font-size: 20px; font-weight: 900; color: var(--brand); line-height: 1; }
.daycard__tag { font-size: 10.5px; font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; }
/* tipos de día diferenciados: express / cardio / descanso / desafío */
.daycard--express { border-left: 4px solid #c97116; }
.daycard--express .daycard__tag { color: #c97116; background: rgba(201,113,22,.12); }
.daycard--express .daycard__day b { color: #c97116; }
.daycard--cardio { border-left: 4px solid #0e7490; }
.daycard--cardio .daycard__tag { color: #0e7490; background: rgba(14,116,144,.1); }
.daycard--cardio .daycard__day b { color: #0e7490; }
.daycard--resty { border-left: 4px solid #64748b; }
.daycard--resty .daycard__tag { color: #64748b; background: rgba(100,116,139,.12); }
.daycard--resty .daycard__day b { color: #64748b; }
.daycard--desafio { border-left: 4px solid var(--lock); background: linear-gradient(135deg, rgba(185,138,46,.07), transparent 60%) var(--card); }
.daycard--desafio .daycard__tag { color: var(--lock); background: rgba(185,138,46,.14); }
.daycard--desafio .daycard__day b { color: var(--lock); }
:root[data-theme="dark"] .daycard--express .daycard__tag, :root[data-theme="dark"] .daycard--express .daycard__day b { color: #e89b4a; }
:root[data-theme="dark"] .daycard--cardio .daycard__tag, :root[data-theme="dark"] .daycard--cardio .daycard__day b { color: #4fb3cf; }
:root[data-theme="dark"] .daycard--resty .daycard__tag, :root[data-theme="dark"] .daycard--resty .daycard__day b { color: #94a3b8; }
:root[data-theme="dark"] .daycard--desafio .daycard__tag, :root[data-theme="dark"] .daycard--desafio .daycard__day b { color: #d9b45e; }
.daycard__check { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: none; color: var(--go); font-weight: 900; cursor: pointer; }
.daycard.done .daycard__check { background: var(--go); border-color: var(--go); color: #fff; }
.daycard h3 { font-size: 15.5px; font-weight: 800; }
.daycard p { color: var(--tx-soft); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--tx-soft); }
.stats b { color: var(--tx); font-weight: 800; }
.stats .note { color: var(--tx-mute); }
.exlist { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.exrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.exrow__n { width: 22px; height: 22px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.exrow__nm { flex: 1; font-size: 13.5px; font-weight: 600; }
.exrow__v { font-size: 11px; color: var(--tx-mute); }

/* comida */
.bmr__row { display: flex; gap: 20px; }
.bmr__row b { font-size: 24px; font-weight: 800; color: var(--brand); }
.bmr__row span { display: block; font-size: 11px; color: var(--tx-mute); font-weight: 600; }
.bmr--empty p { text-align: center; }
.meal h3 { font-size: 15px; }
.meal__d { font-size: 12.5px; color: var(--tx-mute); margin-bottom: 8px; }
.meal__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.meal__row span { color: var(--tx-soft); flex: none; }
.meal__row b { text-align: right; font-weight: 600; }

/* biblioteca */
.bono { position: relative; }
.bono.locked { opacity: .92; }
.bono__lock { position: absolute; top: 14px; right: 14px; font-size: 18px; }
.bono__ok { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--go); background: rgba(27,122,77,.1); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; letter-spacing: .5px; }

/* perfil */
.prof__id { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.prof__id b { font-size: 16px; } .prof__id span { display: block; font-size: 13px; color: var(--tx-mute); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px,1fr)); gap: 10px; }
.badge { text-align: center; padding: 12px 6px; border-radius: var(--r-sm); background: var(--bg-2); opacity: .4; }
.badge.got { opacity: 1; background: var(--brand-soft); }
.badge span { font-size: 26px; display: block; }
.badge b { font-size: 10px; display: block; margin-top: 3px; }
.badge em { font-style: normal; font-size: 9.5px; color: var(--tx-mute); display: block; margin-top: 2px; line-height: 1.2; }
.row-btn { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 2px; font-size: 14px; font-weight: 600; color: var(--tx); cursor: pointer; }
.row-btn:first-of-type { border-top: 0; }
.row-btn b { color: var(--brand); }
.row-btn--danger { color: #c0392b; }

/* ---- composer (postar no feed) ---- */
.composer { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.composer__in { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; font-size: 14px; background: var(--bg-2); color: var(--tx); resize: none; outline: none; }
.composer__in:focus { border-color: var(--brand); }
.composer__btn { align-self: flex-end; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: 13px; cursor: pointer; }

/* ---- bônus com imagem QUADRADA ao lado do texto (pedido do Pedro) ---- */
.bono { display: grid; grid-template-columns: 104px 1fr; column-gap: 14px; align-items: start; }
.bono__media { position: relative; width: 104px; aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); grid-column: 1; grid-row: 1 / span 3; }
.bono__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bono__media--ph { display: grid; place-items: center; background: linear-gradient(150deg, var(--brand-soft), var(--bg-2)); }
.bono__media--ph span { font-size: 36px; }
.bono > .bono__up, .bono > .bono__ok, .bono > .prod__tag, .bono > h3, .bono > p { grid-column: 2; }
.bono > .btn { grid-column: 1 / -1; }
.bono__lock { position: absolute; top: 6px; right: 6px; font-size: 14px; background: rgba(0,0,0,.35); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.bono.locked .bono__media { filter: grayscale(.4) brightness(.96); }
.bono__ok { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--go); background: rgba(27,122,77,.1); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; letter-spacing: .5px; }
.bono__up { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--lock); background: rgba(185,138,46,.12); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; letter-spacing: .5px; }

/* ---- promo cards (modelados do app de referência) ---- */
.promo { position: relative; display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font-family: inherit; color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 14px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.promo:hover { transform: translateY(-2px); }
.promo:active { transform: scale(.99); }
.promo--vinho { background: linear-gradient(135deg, #8d3448, #7B2D3E 45%, #5c1f2e); box-shadow: 0 14px 30px -14px rgba(123,45,62,.55); }
.promo--oro { background: linear-gradient(135deg, #c98a2e, #a8661f 45%, #7B2D3E); box-shadow: 0 14px 30px -14px rgba(185,138,46,.55); }
.promo--dark { background: linear-gradient(135deg, #241016, #3c0f1c 55%, #0d0508); box-shadow: 0 14px 30px -14px rgba(0,0,0,.65); }
.promo--verde { background: linear-gradient(135deg, #22935f, #1B7A4D 45%, #0f5233); box-shadow: 0 14px 30px -14px rgba(27,122,77,.55); }
.promo::before, .promo::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.promo::before { top: -70px; right: -60px; background: rgba(255,255,255,.16); }
.promo::after { bottom: -80px; left: -60px; background: rgba(255,220,180,.14); }
.promo--dark::before { background: rgba(217,138,156,.2); }
.promo__spark { position: absolute; top: 14px; right: 16px; color: rgba(255,255,255,.45); font-size: 13px; pointer-events: none; }
.promo__spark--2 { top: auto; bottom: 18px; right: 52px; font-size: 9px; color: rgba(255,255,255,.3); }
.promo__row { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.promo__img { position: relative; flex: none; width: 84px; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.12); box-shadow: 0 8px 20px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.28); }
.promo--big .promo__img { width: 108px; }
.promo__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.promo:hover .promo__img img { transform: scale(1.06); }
.promo__img--ph { display: grid; place-items: center; }
.promo__img--ph span { font-size: 36px; }
.promo__star { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #c98a2e; display: grid; place-items: center; font-size: 12px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.promo__b { flex: 1; min-width: 0; }
.promo__tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.38); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; backdrop-filter: blur(3px); margin-bottom: 6px; }
.promo__b h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; line-height: 1.2; }
.promo__b p { font-size: 12.5px; color: rgba(255,255,255,.94); line-height: 1.45; margin-top: 3px; }
.promo__price { margin-top: 8px; line-height: 1.15; }
.promo__old { display: block; font-size: 11px; color: rgba(255,255,255,.75); text-decoration: line-through; font-weight: 600; }
.promo__price b { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.promo__qual { display: block; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.92); margin-top: 2px; }
.promo__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: #fff; color: var(--go); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,.18); transition: gap .18s ease; }
.promo--dark .promo__cta, .promo--vinho .promo__cta { color: #7B2D3E; }
.promo--oro .promo__cta { color: #a8661f; }
.promo:hover .promo__cta { gap: 10px; }
.promo__cta i { font-style: normal; }
.promo__disc { position: relative; font-size: 10.5px; color: rgba(255,255,255,.7); margin-top: 10px; }

/* ---- vitrine de ofertas na home ---- */
.shop__row { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.shop__row::-webkit-scrollbar { display: none; }
.shopmini { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; cursor: pointer; font-family: inherit; color: var(--tx); display: flex; flex-direction: column; }
.shopmini:active { transform: scale(.97); }
.shopmini__media { width: 100%; aspect-ratio: 1 / 1; border-radius: 9px; overflow: hidden; background: var(--card); }
.shopmini__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shopmini__media--ph { display: grid; place-items: center; background: linear-gradient(150deg, var(--brand-soft), var(--card)); }
.shopmini__media--ph span { font-size: 34px; }
.shopmini b { font-size: 12px; line-height: 1.25; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shopmini__cta { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 800; color: var(--go); }

/* ---- modal (onboarding + sheet) ---- */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(20,10,14,.55); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.modal--sheet { align-items: flex-end; padding: 0; }
.modal__box { background: var(--card); border-radius: 22px; padding: 26px 22px; max-width: 360px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.ob__dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.ob__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--bg-2); }
.ob__dots i.on { background: var(--brand); width: 20px; border-radius: 4px; }
.ob__ic { font-size: 46px; }
.modal__box h2 { font-size: 20px; font-weight: 800; margin: 8px 0 8px; }
.modal__box p { color: var(--tx-soft); font-size: 14.5px; line-height: 1.5; margin-bottom: 18px; }
.ob__skip { background: none; border: 0; color: var(--tx-mute); font-size: 13px; margin-top: 10px; cursor: pointer; }

/* ---- player de video de ejercicio ---- */
.exrow--play { cursor: pointer; }
.exrow--play:active { opacity: .75; }
.modal__box--video { max-width: 460px; padding: 18px 18px 16px; max-height: 92vh; overflow-y: auto; }
.modal__box--video h2 { font-size: 16px; text-align: left; }
.modal__box--video video { width: 100%; max-height: 62vh; border-radius: 14px; background: #000; display: block; margin-bottom: 10px; }
.vnum { display: inline-grid; place-items: center; min-width: 34px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; padding: 0 6px; margin-right: 4px; vertical-align: 2px; }
.vfs { background: var(--brand); color: #fff; font-size: 16px; padding: 15px; }
.vfs:active { opacity: .9; }
.vinfo { text-align: left; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.vinfo__desc { color: var(--tx-soft); font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.vinfo .k { margin-bottom: 6px; }
.vinfo__tips { list-style: none; }
.vinfo__tips li { position: relative; padding-left: 20px; color: var(--tx-soft); font-size: 13.5px; line-height: 1.45; margin-bottom: 6px; }
.vinfo__tips li::before { content: "✓"; position: absolute; left: 0; color: var(--go); font-weight: 900; }
.vnext { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; animation: fadeIn .25s ease; }
.vnext__ok { color: var(--go); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
@media (min-width: 900px) {
  .modal__box--video { max-width: 880px; }
  .modal__box--video video { max-height: 66vh; }
}
/* ---- celebração de día completado ---- */
.celebrate { position: relative; overflow: hidden; }
.celebrate__ic { font-size: 52px; animation: celebPop .5s cubic-bezier(.2,1.4,.4,1); }
.celebrate h2 { font-size: 22px; }
.celebrate .composer__in { width: 100%; }
.celebrate__burst { position: absolute; inset: 0; pointer-events: none; }
.celebrate__burst span { position: absolute; top: 46%; left: 50%; font-size: 22px; opacity: 0; animation: confetti 1.1s ease-out forwards; animation-delay: calc(var(--i) * 60ms); transform: translate(-50%, -50%); }
.celebrate__burst span:nth-child(odd) { --dx: calc(-90px - var(--i) * 22px); }
.celebrate__burst span:nth-child(even) { --dx: calc(90px + var(--i) * 22px); }
@keyframes celebPop { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
@keyframes confetti {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -170px) scale(1.15) rotate(24deg); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- FAB chat ---- */
.fab { position: fixed; right: 16px; bottom: 84px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 24px; box-shadow: 0 10px 26px -8px rgba(123,45,62,.6); cursor: pointer; max-width: none; }
.fab:active { transform: scale(.94); }

/* ---- chat sheet ---- */
.chat { background: var(--card); width: 100%; max-width: var(--maxw); margin: 0 auto; height: 82vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.chat__head { position: relative; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; font-size: 16px; }
.chat__head span { font-size: 12px; color: var(--tx-mute); }
.chat__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 18px; color: var(--tx-mute); cursor: pointer; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 15px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.msg--bot { align-self: flex-start; background: var(--bg-2); color: var(--tx); border-bottom-left-radius: 5px; }
.msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.msg.typing { opacity: .6; letter-spacing: 3px; }
.chat__bar { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__in { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 14.5px; background: var(--bg-2); color: var(--tx); outline: none; }
.chat__in:focus { border-color: var(--brand); }
.chat__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--go); color: #fff; font-size: 17px; cursor: pointer; flex: none; }
.chat__send:disabled { opacity: .5; }

/* ---- dieta: reglas / bebidas ---- */
.rule { padding: 12px 0; border-top: 1px solid var(--line); }
.rule:first-of-type { border-top: 0; }
.rule b { font-size: 14.5px; }
.rule p { color: var(--tx-soft); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.rule--num { display: flex; gap: 12px; align-items: flex-start; }
.rule__n { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }

/* ---- prefs (modal de preferências de dieta) ---- */
.modal__box--wide { max-width: 460px; max-height: 86vh; overflow-y: auto; text-align: left; }
.modal__box--wide h2, .modal__box--wide > p { text-align: center; }
.prefs { margin: 8px 0 4px; }
.prefs__lbl { font-weight: 800; font-size: 13px; margin: 14px 0 8px; color: var(--brand); }
.prefs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prefchip { text-align: left; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 11px; cursor: pointer; transition: all .12s; }
.prefchip b { display: block; font-size: 12.5px; font-weight: 700; color: var(--tx); }
.prefchip em { font-style: normal; font-size: 10.5px; color: var(--tx-mute); }
.prefchip.on { border-color: var(--brand); background: var(--brand-soft); }
.prefchip.on b { color: var(--brand); }

/* ---- mini-quiz "tu plan" (1º acesso) ---- */
.planq__opts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.planq__opts .chk__chip { padding: 13px 12px; font-size: 14px; }
.planq__load { list-style: none; text-align: left; margin: 6px auto 14px; max-width: 270px; }
.planq__load li { position: relative; padding-left: 24px; color: var(--tx-mute); font-size: 13.5px; line-height: 1.5; margin-bottom: 8px; transition: color .3s; }
.planq__load li::before { content: "○"; position: absolute; left: 0; }
.planq__load li.done { color: var(--tx); }
.planq__load li.done::before { content: "✓"; color: var(--go); font-weight: 900; }
.planq__chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.planq__chips .chip { flex: none; padding: 6px 12px; }
.planq__chips--left { justify-content: flex-start; }
.modal__box .planq__line, .modal__box--wide > .planq__line { text-align: left; font-size: 13.5px; margin-bottom: 10px; }
.viaje__plan { font-size: 12.5px; color: var(--tx-soft); margin: 2px 0 10px; }
.viaje__plan b { color: var(--brand); }
.entren__plan { font-size: 12.5px; color: var(--tx-soft); margin: -8px 0 14px; }
.entren__plan b { color: var(--brand); }

/* ---- Guía Piel de Bebé ---- */
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: inherit; color: var(--brand); font-weight: 700; text-decoration: underline; cursor: pointer; }
.piel__back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 0 12px; color: var(--tx-soft); font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.piel__back:active { color: var(--brand); }
.piel__areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.piel__zonas { font-size: 13px; margin-bottom: 6px; }
.pstep { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.pstep:first-of-type { border-top: 0; }
.pstep__ic { font-size: 24px; flex: none; margin-top: 1px; }
.pstep__b { flex: 1; min-width: 0; }
.pstep__b b { font-size: 14.5px; }
.pstep__b p { font-size: 13px !important; color: var(--tx-soft); margin-top: 2px; line-height: 1.45; }
.pstep__b .btn { margin-top: 8px; }
.pstep__chk { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: none; color: #fff; font-weight: 900; cursor: pointer; flex: none; margin-top: 4px; }
.pstep.done .pstep__chk { background: var(--go); border-color: var(--go); }
.pstep.done .pstep__b b, .pstep.done .pstep__b p { color: var(--tx-mute); }
.ptimer { font-size: 36px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; margin: 8px 0 2px; }
.piel__list { list-style: none; margin: 10px 0 4px; }
.piel__list li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--tx-soft); line-height: 1.5; margin-bottom: 6px; }
.piel__list li::before { content: "✓"; position: absolute; left: 0; color: var(--go); font-weight: 900; }
.piel__list--dot li::before { content: "•"; color: var(--brand); }
.piel__opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.piel__opts .chk__chip { flex: 1 1 45%; }
.piel__racha { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 800; border-radius: 999px; padding: 6px 14px; font-size: 13px; margin-top: 10px; }
.piel__done { text-align: center; }
.piel__done-ic { font-size: 44px; }
.piel--renew { border-left: 4px solid var(--lock); }
.piel--renew .k { color: var(--lock); }
:root[data-theme="dark"] .piel--renew .k { color: #d9b45e; }
.piel__ob .k { margin-top: 4px; }

/* ---- DESKTOP: sidebar real, não telefone centralizado ---- */
@media (min-width: 900px) {
  body { background: var(--bg-2); }
  .shell {
    max-width: 1040px; min-height: 100vh; padding-bottom: 0; background: var(--bg);
    display: grid; grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr;
    box-shadow: 0 0 80px -30px rgba(76,29,149,.3);
  }
  .hero { grid-column: 1 / 3; min-height: 200px; }
  .hero--main { min-height: 230px; }
  .hero__tx { padding: 14px 28px 20px; }
  .hero__tx h1 { font-size: 26px; }
  .hero__tx p { font-size: 14px; max-width: 520px; }
  .tabbar {
    position: static; grid-column: 1; grid-row: 2; max-width: none; margin: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line); padding: 16px 12px;
  }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; }
  .tab__ic { font-size: 20px; }
  .tab__lb { font-size: 14px; font-weight: 700; }
  .tab.is-active { background: var(--brand-soft); }
  .view { grid-column: 2; grid-row: 2; padding: 28px 32px; max-width: 720px; }
  /* grades de 2 colunas onde faz sentido */
  .fase > .daycard, .bono, .today, .viaje, .feed { }
  .prog-line { font-size: 15px; }
  .fab { right: 32px; bottom: 32px; width: 60px; height: 60px; font-size: 26px; }
  .login { min-height: 100vh; }
  .modal--sheet { align-items: center; }
  .modal--sheet .chat { border-radius: 22px; height: 76vh; max-width: 460px; }
}
@media (min-width: 1200px) {
  .shell { max-width: 1180px; }
  .view { max-width: 820px; }
}
