/* ============================================================
   Comparei — base, shell e componentes
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img, svg { display: block; }

:focus-visible { outline: 2.5px solid var(--info); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--tag) 55%, transparent); color: var(--ink); }

.mono { font-family: var(--font-mono); font-feature-settings: "zero" 0; }
.muted { color: var(--muted); }
.save { color: var(--save); }
.up { color: var(--up); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */

.app-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg);
    overflow: hidden;
}

.screen {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: calc(var(--safe-top) + 14px) var(--gutter) 28px;
}
.screen::-webkit-scrollbar { display: none; }
.screen--bleed { padding: 0; }

.page-enter { animation: page-in .38s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Bottom navigation ---------- */

.bottom-nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 8px 10px calc(var(--safe-bottom) + 8px);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    z-index: 20;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 44px;
    padding: 6px 0 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .01em;
    transition: color .2s;
}
.bottom-nav__item.active { color: var(--brand); font-weight: 650; }
.bottom-nav__item.active .icon { stroke-width: 2.2; }

.bottom-nav__scan {
    justify-self: center;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    border-radius: 20px;
    background: var(--tag);
    color: var(--on-tag);
    box-shadow: 0 10px 22px -10px rgb(245 183 0 / .8), inset 0 -3px 0 rgb(0 0 0 / .08), 0 0 0 4px var(--surface);
    transform: rotate(-4deg);
    transition: transform .25s var(--ease-out);
}
.bottom-nav__scan:active { transform: rotate(0) scale(.94); }
.bottom-nav__scan .icon { transform: rotate(4deg); }

/* ---------- Tipografia ---------- */

.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.05;
    font-variation-settings: "opsz" 96;
}
.title-xl { font-size: 32px; }
.title-lg { font-size: 26px; }
.title-md { font-size: 20px; }
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Top bar ---------- */

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-bottom: 18px;
}
.topbar__title { flex: 1; font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.topbar__title--center { text-align: center; }
.icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: transform .15s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn--glass { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .16); color: #fff; box-shadow: none; backdrop-filter: blur(10px); }

/* ---------- Sections ---------- */

.section { margin-top: 30px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.section-head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.section-head__link { font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 2px; }
.section-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }

.h-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 8px;
    scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: none; }

/* ---------- Cards e listas ---------- */

.card {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.card--pad { padding: 18px; }

.list { display: flex; flex-direction: column; }
.list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-height: 64px;
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row__body { flex: 1; min-width: 0; }
.list-row__title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__end { text-align: right; flex: none; }
a.list-row:active, button.list-row:active { background: var(--surface-2); }

/* ---------- Thumb de produto e avatar de loja ---------- */

.thumb {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 24px;
    line-height: 1;
    position: relative;
}
.thumb--sm { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }
.thumb--lg { width: 88px; height: 88px; border-radius: 26px; font-size: 48px; }
[data-theme="dark"] .thumb, .thumb { filter: saturate(1.05); }

.store-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -.02em;
}
.store-avatar--sm { width: 22px; height: 22px; border-radius: 7px; font-size: 9.5px; }
.store-avatar--lg { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }

.store-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; min-width: 0; }
.store-inline span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Preço estilo etiqueta ---------- */

.price {
    display: inline-flex;
    align-items: flex-start;
    font-family: var(--font-display);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.price__cur { font-size: .42em; font-weight: 600; margin: .18em .18em 0 0; letter-spacing: 0; }
.price__int { font-size: 1em; }
.price__cents { font-size: .5em; margin-top: .08em; margin-left: .04em; }
.price--sm { font-size: 17px; }
.price--md { font-size: 24px; }
.price--lg { font-size: 36px; }
.price--xl { font-size: 54px; }

.price-was { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--up); }

/* Etiqueta de gôndola amarela — o selo de "melhor preço" */
.shelf-tag {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px 10px 18px;
    background: var(--tag);
    color: var(--on-tag);
    border-radius: 6px 14px 14px 6px;
    box-shadow: inset 0 -3px 0 rgb(0 0 0 / .07);
}
.shelf-tag::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--bg);
}
.shelf-tag__label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* ---------- Badges ---------- */

.delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 8px 3px 6px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.delta--down { background: var(--save-soft); color: var(--save); }
.delta--up { background: var(--up-soft); color: var(--up); }
.delta--flat { background: var(--surface-sunk); color: var(--muted); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 550;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}
.chip--active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip { position: relative; }
.chip::after { content: ""; position: absolute; inset: -2px 0; } /* área de toque ≥ 44px */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 600;
    background: var(--surface-sunk);
    color: var(--ink-2);
}
.pill--sponsored { background: transparent; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.pill--tag { background: var(--tag); color: var(--on-tag); }
.pill--save { background: var(--save-soft); color: var(--save); }

/* ---------- Botões ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 650;
    font-size: 15.5px;
    transition: transform .15s, filter .2s;
}
.btn:active { transform: scale(.98); }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--tag); color: var(--on-tag); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .08); }
.btn--dark { background: var(--brand); color: var(--on-brand); }
.btn--ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Busca ---------- */

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    color: var(--muted);
}
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15.5px; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag) 40%, transparent); }

/* ---------- Segmented ---------- */

.segmented {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 4px;
    gap: 4px;
    border-radius: 14px;
    background: var(--surface-sunk);
}
.segmented button {
    min-height: 40px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    transition: background .2s, color .2s;
}
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Checkbox ---------- */

.check {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    border: 2px solid var(--line-strong);
    background: var(--surface);
    color: transparent;
    transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
}
.check--on { background: var(--save); border-color: var(--save); color: #fff; transform: scale(1.05); }

/* ---------- Toggle ---------- */

.toggle {
    position: relative;
    flex: none;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: var(--surface-sunk);
    border: 1px solid var(--line);
    transition: background .2s;
}
.toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / .25);
    transition: transform .25s var(--ease-out);
}
.toggle--on { background: var(--save); border-color: var(--save); }
.toggle--on::after { transform: translateX(20px); }

/* ---------- Progress ---------- */

.progress { height: 8px; border-radius: 99px; background: var(--surface-sunk); overflow: hidden; }
.progress__bar { height: 100%; border-radius: inherit; background: var(--save); transition: width .4s var(--ease-out); }

/* ---------- Cupom fiscal (elemento assinatura) ---------- */

.receipt {
    --tooth: 10px;
    position: relative;
    background: var(--paper);
    color: var(--paper-ink);
    padding: 20px 20px calc(18px + var(--tooth));
    font-family: var(--font-mono);
    font-size: 13px;
    filter: drop-shadow(0 1px 1px rgb(34 22 56 / .06)) drop-shadow(0 12px 20px rgb(34 22 56 / .12));
    -webkit-mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x,
        linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat;
    mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x,
        linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat;
}
.receipt--top-teeth {
    -webkit-mask:
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) var(--tooth) repeat-x,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x,
        linear-gradient(#000 0 0) center / 100% calc(100% - var(--tooth) * 2 + 2px) no-repeat;
    mask:
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) var(--tooth) repeat-x,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x,
        linear-gradient(#000 0 0) center / 100% calc(100% - var(--tooth) * 2 + 2px) no-repeat;
    padding-top: calc(18px + var(--tooth));
}
.receipt__head { text-align: center; font-size: 11.5px; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; color: #6C6577; }
.receipt__head strong { display: block; color: var(--paper-ink); font-size: 13px; letter-spacing: .06em; }
.receipt__rule { border: 0; border-top: 1.5px dashed var(--paper-dash); margin: 14px 0; }
.receipt__line { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; }
.receipt__line > :first-child { flex: none; }
.receipt__line::after { content: none; }
.receipt__dots { flex: 1; border-bottom: 1.5px dotted var(--paper-dash); transform: translateY(-4px); min-width: 12px; }
.receipt__value { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt__total { font-size: 16px; font-weight: 700; }
.receipt__small { font-size: 10.5px; color: #8A8396; letter-spacing: .02em; word-break: break-all; text-align: center; }

/* ---------- Toast ---------- */

.toast-host {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px);
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 50;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 16px;
    background: var(--brand);
    color: var(--on-brand);
    font-weight: 550;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    animation: toast-in .35s var(--ease-out) both;
}
.toast .icon { color: var(--tag); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- Skeleton ---------- */

.skeleton {
    border-radius: var(--r-md);
    background: linear-gradient(90deg, var(--surface-sunk) 0%, var(--surface) 50%, var(--surface-sunk) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Prévia no navegador (host Web) ---------- */

@media (min-width: 620px) {
    body.web-preview {
        display: grid;
        place-items: center;
        background:
            radial-gradient(1200px 600px at 10% 0%, rgb(255 210 63 / .16), transparent 60%),
            radial-gradient(900px 500px at 100% 100%, rgb(61 42 95 / .08), transparent 60%),
            #EFEDF4;
    }
    body.web-preview .app-shell {
        width: 400px;
        height: min(860px, calc(100dvh - 48px));
        border-radius: 46px;
        border: 10px solid #1D1627;
        box-shadow: var(--shadow-lg);
    }
}

/* ============================================================
   Funcionalidades (conta, sheets, estados, monetização)
   ============================================================ */

.small { font-size: 13px; }
.center { text-align: center; }
.boot { height: 100%; display: grid; place-items: center; }
.boot__mark { width: 44px; height: 44px; border-radius: 14px; background: var(--tag); transform: rotate(-6deg); animation: boot 1s ease-in-out infinite alternate; }
@keyframes boot { to { transform: rotate(6deg) scale(.9); } }

/* ---------- Formulários ---------- */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field__hint { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.field__hint.save { color: var(--save); }
.input {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); font-size: 16px; outline: 0; transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.input { min-height: 80px; resize: none; }
.input:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag) 40%, transparent); }
.input:disabled { opacity: .6; }
.input.invalid { border-color: var(--up); }
.validation-message { font-size: 12.5px; color: var(--up); font-weight: 500; }
.input-wrap { position: relative; display: block; }
.input-wrap .input { padding-right: 84px; }
.input-wrap__btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input-money { position: relative; display: block; }
.input-money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-money .input { padding-left: 42px; font-family: var(--font-mono); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.check-line input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.check-line a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.radio-list { display: flex; flex-direction: column; gap: 4px; }
.radio-line { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.radio-line input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.form-error { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--up-soft); color: var(--up); font-size: 14px; font-weight: 500; }
.form-card { display: flex; flex-direction: column; gap: 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row span { display: flex; flex-direction: column; }
.toggle-row small { color: var(--muted); font-size: 12.5px; }
.btn--glass { background: rgb(255 255 255 / .1); color: #fff; }
.btn--danger { background: var(--up); color: #fff; }
.btn--danger-text { color: var(--up); }
.code-view { max-height: 40vh; overflow: auto; margin: 0; padding: 12px; border-radius: 12px; background: var(--surface-sunk); font-family: var(--font-mono); font-size: 11px; white-space: pre-wrap; word-break: break-all; }

/* ---------- Boas-vindas e autenticação ---------- */
.screen--auth { padding-bottom: calc(var(--safe-bottom) + 24px); }
.welcome { min-height: 100%; display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.welcome__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.welcome__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tag); color: var(--brand); transform: rotate(-6deg); }
.welcome__slide { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; animation: page-in .4s var(--ease-out) both; }
.welcome__slide .muted { font-size: 16px; }
.welcome__art { flex: 1; min-height: 240px; display: grid; place-items: center; margin-bottom: 12px; border-radius: var(--r-xl); background: radial-gradient(260px 200px at 70% 20%, rgb(255 210 63 / .45), transparent 70%), var(--brand-tint); border: 1px solid var(--brand-tint-2); }
.welcome__receipt { width: 240px; transform: rotate(-4deg); }
.welcome__tag { transform: rotate(-5deg) scale(1.15); }
.welcome__art--list { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; }
.welcome__check { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 280px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; box-shadow: var(--shadow); }
.welcome__dots { display: flex; gap: 8px; justify-content: center; }
.welcome__dots button { position: relative; width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .25s var(--ease-out), background .25s; }
.welcome__dots button::after { content: ""; position: absolute; inset: -18px -6px; } /* área de toque */
.welcome__dots button.on { width: 24px; background: var(--brand); }
.welcome__actions { display: flex; flex-direction: column; gap: 10px; }
.auth { display: flex; flex-direction: column; gap: 6px; }
.auth .muted { font-size: 15.5px; }
.auth__link { align-self: center; margin-top: 18px; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.auth__foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth__foot a { color: var(--ink); font-weight: 650; }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop { position: absolute; inset: 0; z-index: 60; background: rgb(34 22 56 / .32); animation: fade .25s both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88%; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: var(--surface); box-shadow: var(--shadow-lg); animation: sheet-in .32s var(--ease-out) both; padding-bottom: var(--safe-bottom); }
.sheet__grip { width: 40px; height: 5px; margin: 8px auto 0; border-radius: 99px; background: var(--line-strong); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 6px; }
.sheet__head h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.sheet__body { overflow-y: auto; padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Estados ---------- */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 16px; }
.state__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--surface-sunk); color: var(--ink-2); margin-bottom: 4px; }
.state__icon--error { background: var(--up-soft); color: var(--up); }
.state__icon--ok { background: var(--save-soft); color: var(--save); }
.state__title { font-family: var(--font-display); font-weight: 650; font-size: 19px; }
.state__text { color: var(--muted); font-size: 14.5px; max-width: 320px; margin-bottom: 8px; }
.state__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- Início ---------- */
.home-head__actions { display: flex; gap: 10px; align-items: center; }
.home-head__bell { position: relative; }
.dot-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--up); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.home-head__avatar--plus { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--tag); }
.first-steps .first-steps__text { font-family: var(--font-body); font-size: 14px; color: var(--paper-ink); }

/* ---------- Escanear ---------- */
.scan-error { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center; padding: 0 8px; }
.scan-error__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 20px; background: rgb(255 115 88 / .18); color: #FF9B86; }
.scan-error p { color: rgb(255 255 255 / .7); margin-bottom: 10px; }
.scan__demo { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 14px; border-radius: 99px; background: rgb(255 255 255 / .08); color: rgb(255 255 255 / .85); font-size: 13px; font-weight: 600; }

/* ---------- Nota ---------- */
.receipt-status { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.receipt__new-store { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; background: #FFF3C4; color: #7A5600; font-size: 10px; letter-spacing: .04em; }
.receipt-item__matched { font-family: var(--font-body); font-size: 11.5px; color: #4A3F60; }
.receipt-item__note { font-family: var(--font-body); font-size: 11.5px; color: #8A5A00; background: #FFF6D6; padding: 4px 8px; border-radius: 8px; margin-top: 4px; }
.vbadge { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #EFEDF3; color: #6C6577; }
.vbadge--approved { background: #DAF4EB; color: #0B7F62; }
.vbadge--inreview { background: #FFF1C2; color: #8A6100; }
.vbadge--unidentified { background: #E6ECFB; color: #3F63D8; }
.vbadge--rejected { background: #FCE5DF; color: #C23A20; }
.review-actions__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* ---------- Produto ---------- */
.report-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.premium-lock { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--tag-soft); border: 1px solid var(--tag-line); color: var(--ink); }
.premium-lock__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--brand); color: var(--tag); }
.premium-lock__text { flex: 1; display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); }
.premium-lock__text strong { color: var(--ink); font-size: 14.5px; }

/* ---------- Lista ---------- */
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 99px; background: var(--surface-sunk); }
.stepper button { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); }
.stepper button::after { content: ""; position: absolute; inset: -6px -2px; } /* área de toque ≥ 44px */
.stepper button:active { background: var(--surface); }
.stepper .mono { min-width: 30px; text-align: center; font-size: 12px; font-weight: 600; }
.list-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.plan__teaser { font-size: 14px; color: var(--ink-2); }
.picker-results { display: flex; flex-direction: column; margin-top: 4px; }
.picker-row { width: 100%; text-align: left; border-radius: 14px; }
.picker-row + .picker-row { border-top: 1px solid var(--line); border-radius: 0; }
.picker-empty { text-align: center; padding: 24px 0; }
.result-count { font-size: 13px; margin-bottom: 8px; }
.icon-btn--plain { background: none; border: 0; box-shadow: none; width: 44px; height: 44px; color: var(--muted); }

/* ---------- Notificações ---------- */
.notification { align-items: flex-start; }
.notification__title { font-weight: 650; font-size: 14.5px; }
.notification__body { font-size: 13.5px; color: var(--ink-2); }
.notification__time { font-size: 12px; color: var(--muted); margin-top: 2px; }
.notification--unread { background: var(--tag-soft); }
.notification--unread .notification__title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--up); vertical-align: 1px; }

/* ---------- Perfil e Comparei+ ---------- */
.plus-card { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: radial-gradient(220px 120px at 100% 0%, rgb(255 210 63 / .4), transparent 70%), var(--tag-soft); border: 1px solid var(--tag-line); color: var(--ink); }
.plus-card__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--brand); color: var(--tag); }
.plus-card__text { flex: 1; display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); }
.plus-card__text strong { color: var(--ink); font-size: 15px; }
.trust-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.plus-hero { text-align: center; padding: 8px 8px 20px; }
.plus-hero__badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: var(--tag); color: var(--brand); transform: rotate(-6deg); box-shadow: 0 12px 28px -10px rgb(245 183 0 / .7); }
.plus-hero p { color: var(--ink-2); margin-top: 8px; }
.benefits { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: center; font-weight: 550; }
.benefits__check { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--save-soft); color: var(--save); }
.plus-status { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.plan-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.plan-option { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); text-align: left; transition: border-color .2s; }
.plan-option--on { border-color: var(--brand); background: var(--brand-tint); }
.plan-option__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.plan-option--on .plan-option__radio { border: 6px solid var(--brand); }
.plan-option__body { flex: 1; display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.plan-option__body strong { color: var(--ink); font-size: 15.5px; }
.plan-option__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.points-link { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); }
.points-link strong { color: var(--ink); }

/* ---------- Pontos ---------- */
.points-hero { text-align: center; }
.points-hero__balance { font-size: 56px; color: var(--paper-ink); margin: 6px 0 12px; }
.points-hero .progress { background: #ECEAF2; }
.points-hero__hint { font-family: var(--font-body); font-size: 12.5px; color: #7B7388; margin-top: 8px; }
.earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.earn-grid div { display: flex; flex-direction: column; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.earn-grid strong { font-family: var(--font-display); font-size: 24px; color: var(--save); }
.reward .pill { margin-top: 4px; }
.coupon-code { padding: 4px 10px; border-radius: 8px; background: var(--tag); color: var(--on-tag); font-weight: 600; font-size: 13px; }
.coupon-code--big { display: block; text-align: center; font-size: 26px; padding: 16px; letter-spacing: .08em; }
.points-delta { font-weight: 700; }
.scan__demo--center { align-self: center; margin-top: 6px; }
.scan-key .btn--primary { margin-top: 12px; }

/* ---------------------------------------------------------------- modo leve (celular simples ou internet fraca)
   Desfoque (backdrop-filter) e animações contínuas são o que mais pesa em Android de entrada; aqui saem todos.
   A informação continua igual: só muda o acabamento. */
html.lite *, html.lite *::before, html.lite *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html.lite .card, html.lite .sheet, html.lite .bottom-nav, html.lite .top-bar { box-shadow: none !important; }
html.lite img { image-rendering: auto; }
.lite-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.lite-picker button { padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; }
.lite-picker button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); }

/* ---------------------------------------------------------------- sem internet */
.offline-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600;
    background: var(--tag-soft); color: var(--ink); border-bottom: 1px solid var(--tag-line); }
