/* AbastecePay — design tokens e componentes base (claro/escuro). Sem build. */
:root {
  color-scheme: light;
  --surface: #ffffff;
  --surface-sunken: #f3f6f4;
  --surface-raised: #ffffff;
  --line: #e3e9e6;
  --line-strong: #7f8c86;
  --ink: #0e1a15;
  --ink-muted: #55625c;
  --ink-disabled: #a6b0ab;
  --brand: #00805a;
  --brand-strong: #006944;
  --brand-soft: #e2f5ec;
  --on-brand: #ffffff;
  --hero: #07301f;
  --on-hero: #ffffff;
  --on-hero-muted: #b9ddcd;
  --mint: #3be39e;
  --on-mint: #04241a;
  --danger: #c62f2b;
  --danger-soft: #fdecea;
  --warning: #8a5700;
  --warning-soft: #fff4d6;
  --info: #1c5ad0;
  --info-soft: #eaf1ff;
  --link: #006944;
  --scrim: rgba(4, 14, 10, .55);
  --shadow-sm: 0 1px 2px rgba(14,26,21,.06), 0 1px 3px rgba(14,26,21,.08);
  --shadow-md: 0 2px 6px rgba(14,26,21,.06), 0 10px 24px -6px rgba(14,26,21,.12);
  --shadow-lg: 0 8px 16px rgba(14,26,21,.08), 0 24px 48px -8px rgba(14,26,21,.2);
  --grad-hero: linear-gradient(135deg, #0a1d15 0%, #0c4a2c 55%, #149c57 100%);
  --grad-promo: linear-gradient(120deg, #006944 0%, #00a366 60%, #1fc27f 100%);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-strong);
  --radius: 16px;
  --radius-sm: 12px;
  --tabbar-h: 64px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) and (min-width: 99999px) {
  :root:not([data-theme="light"]) {
    --surface: #0b1110; --surface-sunken: #111916; --surface-raised: #172019;
    --line: #27322d; --line-strong: #72807a; --ink: #eef5f1; --ink-muted: #a3b2aa; --ink-disabled: #55645d;
    --brand: #2fd493; --brand-strong: #5cecb0; --brand-soft: #123626; --on-brand: #04241a;
    --danger: #ff8a85; --danger-soft: #3a1514; --warning: #ffcf70; --warning-soft: #3a2a08;
    --info: #8fb4ff; --info-soft: #14233f; --link: #5cecb0; --scrim: rgba(0,0,0,.65);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 8px 24px -6px rgba(0,0,0,.5); --shadow-lg: 0 24px 48px -8px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #050d09; --surface-sunken: #0a1710; --surface-raised: #0b1a12;
  --line: #1c3a2a; --line-strong: #4f6b5c; --ink: #f3f9f5; --ink-muted: #a9bdb1; --ink-disabled: #55645d;
  --brand: #2fe08f; --brand-strong: #4ff0a6; --brand-soft: #0f2e20; --on-brand: #03150c;
  --danger: #ff8a85; --danger-soft: #3a1514; --warning: #ffcf70; --warning-soft: #3a2a08;
  --info: #8fb4ff; --info-soft: #14233f; --link: #5cecb0; --scrim: rgba(0,0,0,.65);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 16px/1.45 var(--font); min-height: 100vh; min-height: 100dvh;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.2; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .6em; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* Layout */
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--surface); position: relative; }
.appbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.appbar img.logo { height: 30px; width: auto; display: block; }
.appbar .title { font: 700 1.05rem var(--font-display); flex: 1; }
.appbar .back { background: none; border: 0; padding: 8px; margin-left: -8px; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink); min-width: 44px; min-height: 44px; }
.page { padding: 16px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
.page.no-tabs { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.h-section { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--brand); color: var(--on-brand); transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); color: var(--ink-disabled); cursor: not-allowed; filter: none; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--brand-strong); border-color: var(--line-strong); }
.btn.soft { background: var(--brand-soft); color: var(--brand-strong); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Forms */
.field { display: block; margin-bottom: 14px; }
.field > .lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 12px; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand-strong); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.field .hint { color: var(--ink-muted); font-size: .85rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 10px 0 16px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }

/* Cards */
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 12px; }
.card-hero { background: var(--grad-hero); color: var(--on-hero); border: 0; box-shadow: var(--shadow-md); }
.card-hero .k { color: var(--on-hero-muted); font-size: .85rem; }
.card-hero .v { font: 800 1.7rem var(--font-display); letter-spacing: -.01em; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-grid .card { margin: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.kv + .kv { border-top: 1px dashed var(--line); }
.kv.total { font-weight: 800; font-size: 1.1rem; }
.kv .k { color: var(--ink-muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; background: var(--surface-raised);
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; color: inherit; margin-bottom: 10px;
}
.list-item .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-size: 1.3rem; flex: none; }

/* Promo banner */
.promo {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer; text-decoration: none; color: #fff;
  background: var(--grad-promo); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow-md), 0 0 0 3px rgba(255,224,102,.0);
  position: relative; overflow: hidden; animation: promo-pulse 2.8s ease-in-out infinite;
}
.promo::after { content: "⛽"; position: absolute; right: 10px; bottom: -14px; font-size: 5.5rem; opacity: .16; }
.promo .tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.25); padding: 3px 9px; border-radius: 99px; margin-bottom: 8px; }
.promo .txt { font: 800 1.35rem/1.25 var(--font-display); display: block; max-width: 92%; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.promo .txt b { color: #ffe066; font-weight: 800; }
.promo .go { display: inline-block; margin-top: 12px; background: #fff; color: #006944; font-weight: 800; padding: 9px 16px; border-radius: 99px; }
@keyframes promo-pulse { 0%,100% { transform: scale(1); box-shadow: var(--shadow-md), 0 0 0 0 rgba(255,224,102,.0); } 50% { transform: scale(1.015); box-shadow: var(--shadow-lg), 0 0 0 5px rgba(255,224,102,.35); } }
@media (prefers-reduced-motion: reduce) { .promo { animation: none; } * { scroll-behavior: auto !important; } .spinner { animation-duration: 2s; } }

/* Chips / segmented tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"], .chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; overflow-x: auto; }
.seg button { flex: 1; white-space: nowrap; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }

/* Badges */
.badge { display: inline-block; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--brand-strong); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }

/* Notice */
.notice { border-radius: 12px; padding: 12px 14px; background: var(--info-soft); color: var(--ink); font-size: .92rem; }
.notice.warn { background: var(--warning-soft); }
.notice.bad { background: var(--danger-soft); }
.notice.ok { background: var(--brand-soft); }

/* QR */
.qr-box { background: #fff; border-radius: 16px; padding: 14px; display: inline-block; line-height: 0; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.qr-box svg { width: min(72vw, 280px); height: auto; display: block; }
.big-money { font: 800 2.2rem var(--font-display); color: var(--brand-strong); letter-spacing: -.02em; }
.code-text { font: 700 1.1rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; }

/* Bottom tab bar */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; z-index: 30; display: flex;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabbar-h); color: var(--ink-muted); text-decoration: none; font-size: .75rem; font-weight: 700; }
.tabbar a .ic { font-size: 1.35rem; line-height: 1; }
.tabbar a[aria-current="page"] { color: var(--brand-strong); }
.tabbar a.buy .ic { background: var(--brand); color: var(--on-brand); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-top: -18px; box-shadow: var(--shadow-md); font-size: 1.2rem; }

/* Sheet / modal */
.scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: -8px auto 14px; opacity: .5; }
.sheet h2 { margin-bottom: 8px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet .actions .btn { flex: 1; }
@media (min-width: 560px) { .scrim { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(24px); opacity: 0 } }

/* Toasts */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; background: #12201a; color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 420px; font-size: .92rem; animation: up .2s; }
.toast.err { background: #a42521; }
.toast.ok { background: #00704c; }

/* Spinner / skeleton / empty */
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; display: inline-block; vertical-align: middle; margin: 0; }
@keyframes spin { to { transform: rotate(360deg) } }
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--surface-raised) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-muted); }
.empty .ic { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

/* Welcome */
.welcome { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--grad-hero); color: #fff; padding: calc(28px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); }
.welcome img { width: 200px; max-width: 64%; margin: 24px auto 0; display: block; background: #fff; padding: 14px 18px; border-radius: 20px; box-shadow: var(--shadow-md); }
.welcome .mid { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.welcome h1 { font-size: 2rem; }
.welcome .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.welcome .btn.light { background: #fff; color: #006944; }
.welcome a { color: #fff; }

/* carrossel de cupons */
.cp-view { overflow: hidden; border-radius: 18px; touch-action: pan-y; }
.cp-track { display: flex; transition: transform .55s ease; }
.cp-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; }
.cp-slide .list-item { margin-bottom: 0; }
.cp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.cp-dots button { appearance: none; border: 0; padding: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); cursor: pointer; transition: width .15s ease, background-color .15s ease; }
.cp-dots button.on { width: 20px; border-radius: 4px; background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .cp-track { transition: none; } }
/* tela Comprar: postos em lista */
.st-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; margin-bottom: 10px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.st-card[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.st-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.st-card .grow { min-width: 0; }
.st-card .px { text-align: right; flex: none; }
.st-card .px strong { font-size: 1.05rem; color: var(--brand-strong); }
.st-card .px-cb { font-size: .82rem; color: var(--brand-strong); margin-top: 2px; white-space: nowrap; }
.st-card .px-cb b { font-weight: 800; }

.chips.invalid { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 16px; }

/* aviso de atualizacao: no meio da tela */
.scrim.mid { align-items: center; padding: 16px; }
.sheet.pop { border-radius: 22px; max-width: 420px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; text-align: left; animation: fade .15s; }
.sheet.pop .pop-body { overflow: auto; min-height: 0; flex: 0 1 auto; }
.sheet.pop .btn { flex: none; }

/* ===== App do cliente — visual novo (escopo .cx). Claro é o padrão; escuro por botão (topo da Início) e em Perfil > Aparência.
   Medidas tiradas do modelo enviado pelo dono (imagem de 592 px = 390 px de tela). ===== */
.cx { --cx-line: #e8efeb; --cx-soft: #e1f6ec; --cx-green: #0f9d63; --tabbar-h: 58px; }
html[data-theme="dark"] .cx { --cx-line: rgba(255,255,255,.13); --cx-soft: rgba(46,214,142,.16); --cx-green: #2fe08f; }
html[data-theme="dark"] body { background: radial-gradient(90% 38% at 90% 0%, rgba(40,200,120,.17), transparent 70%), radial-gradient(70% 30% at 0% 22%, rgba(30,160,100,.1), transparent 70%), #050d09; }
html[data-theme="dark"] .cx .appbar { background: transparent; border-color: transparent; }
.cx .page { padding-bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom)); }
.cx .page.home-page { padding: calc(8px + env(safe-area-inset-top)) 18px calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom)); }
.lt-only { display: block; } .dk-only { display: none; }
html[data-theme="dark"] .lt-only { display: none; } html[data-theme="dark"] .dk-only { display: block; }

/* topo */
.cx-top { display: flex; align-items: center; gap: 8px; }
.cx-brand { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.cx-brand img { height: 34px; width: auto; display: block; }
html[data-theme="dark"] .cx-brand img { filter: brightness(1.45) saturate(1.15); }
.cx-brand .wm { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.02em; display: block; }
.cx-brand .wm b { color: #12a56a; font-weight: 800; }
html[data-theme="dark"] .cx-brand .wm b { color: #2fe08f; }
.cx-brand .tg { display: block; font: 600 .42rem/1 var(--font); letter-spacing: .16em; color: var(--ink-muted); text-transform: uppercase; margin-top: 3px; white-space: nowrap; }
.cx-iconbtn { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #ebf7f1; color: #0b5a39; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
html[data-theme="dark"] .cx-iconbtn { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.2px rgba(46,214,142,.35); color: #fff; }
.cx-iconbtn svg { width: 17px; height: 17px; }
.cx-iconbtn.prof { color: #12a56a; }
.cx-iconbtn .dot { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #2fe08f; box-shadow: 0 0 0 1.5px #ebf7f1; }
html[data-theme="dark"] .cx-iconbtn .dot { box-shadow: 0 0 0 1.5px #0a1710; }
.appbar .cx-brand img { height: 30px; }
.appbar .cx-brand .wm { font-size: 1.1rem; }

/* cumprimento + bico de bomba */
.cx-hello { position: relative; margin: 6px 0 4px; min-height: 100px; }
.cx-hello h1 { font: 800 1.5rem/1.1 var(--font-display); letter-spacing: -.02em; padding-top: 8px; }
.cx-hello h1 span { color: #12a56a; }
html[data-theme="dark"] .cx-hello h1 span { color: #2fe08f; }
.cx-hello p { color: var(--ink-muted); font-size: .72rem; line-height: 1.22; max-width: 62%; margin: 8px 0 0; position: relative; z-index: 1; }
.cx-hello .hero { position: absolute; right: -18px; top: -8px; width: 132px; height: auto; pointer-events: none; }
.cx-hello .hero.lt-only { mix-blend-mode: multiply; }
.cx-hello .hero.dk-only { width: 160px; mix-blend-mode: lighten; }

/* cartoes de saldo */
.cx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-stat { position: relative; overflow: hidden; display: block; text-decoration: none; color: var(--ink); border-radius: 13px; padding: 11px 10px; min-height: 89px; background: #fff; border: 1px solid var(--cx-line); box-shadow: 0 1px 2px rgba(14,26,21,.04), 0 8px 18px -12px rgba(14,26,21,.2); }
html[data-theme="dark"] .cx-stat { background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); box-shadow: none; }
.cx-stat.is-main { color: #fff; background: linear-gradient(135deg, #0f8a55 0%, #0a6a43 55%, #08563a 100%); border-color: transparent; }
html[data-theme="dark"] .cx-stat.is-main { background: linear-gradient(135deg, #0b5a38 0%, #09422a 55%, #062c1c 100%); border-color: rgba(46,214,142,.5); }
.cx-stat.is-main::after { content: ""; position: absolute; right: -25%; bottom: -55%; width: 95%; height: 115%; border-radius: 50%; background: radial-gradient(circle, rgba(60,220,150,.4), transparent 68%); pointer-events: none; }
.cx-stat .hd { display: flex; align-items: center; gap: 7px; }
.cx-stat .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--cx-soft); color: #12a56a; }
.cx-stat.is-main .ic { background: rgba(255,255,255,.16); color: #bff5da; }
.cx-stat .ic svg { width: 17px; height: 17px; }
.cx-stat .k { font-size: .66rem; line-height: 1.2; flex: 1; min-width: 0; color: var(--ink); font-weight: 500; }
.cx-stat.is-main .k { color: rgba(255,255,255,.92); }
.cx-stat .chev { display: grid; color: var(--ink-muted); flex: none; }
.cx-stat.is-main .chev { color: #fff; }
.cx-stat .chev svg { width: 12px; height: 12px; }
.cx-stat .v { font: 800 1.5rem/1 var(--font-display); letter-spacing: -.01em; margin-top: 12px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }

/* promocao (carrossel) */
.cx-promos { margin-top: 12px; }
.cx-promos .cp-view { border-radius: 15px; }
.cx-promos .cp-slide { padding: 0; }
.cx-promo { position: relative; overflow: hidden; display: block; text-decoration: none; color: #0a4a2e; border-radius: 15px; padding: 12px 12px 12px 14px; min-height: 162px; background: linear-gradient(120deg, #f3fbf7 0%, #e1f5ea 55%, #cdeedd 100%); border: 1px solid #d3eddf; box-shadow: 0 10px 22px -16px rgba(10,100,60,.4); }
html[data-theme="dark"] .cx-promo { color: #fff; background: linear-gradient(135deg, #0b7a4a 0%, #07503a 55%, #052e21 100%); border-color: rgba(46,214,142,.4); box-shadow: none; }
.cx-promo .tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 99px; border: 1px solid #12a56a; background: rgba(255,255,255,.6); color: #0b7f50; font: 800 .56rem var(--font); letter-spacing: .08em; text-transform: uppercase; }
html[data-theme="dark"] .cx-promo .tag { border-color: rgba(46,214,142,.7); color: #35f0a0; background: transparent; }
.cx-promo .tag svg { width: 10px; height: 10px; }
.cx-promo .t { position: relative; z-index: 1; display: block; margin-top: 10px; max-width: 62%; font: 800 1rem/1.22 var(--font-display); }
.cx-promo .t span { display: inline; }
.cx-promo .amt { color: #12a56a; white-space: nowrap; }
html[data-theme="dark"] .cx-promo .amt { color: #35f0a0; }
.cx-promo .go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0 14px; height: 30px; border-radius: 99px; background: linear-gradient(135deg, #0f7a4b, #0a5c39); color: #fff; font: 700 .75rem var(--font); }
html[data-theme="dark"] .cx-promo .go { background: linear-gradient(135deg, #2fe08f, #19b872); color: #04241a; }
.cx-promo .go svg { width: 13px; height: 13px; }
.cx-promo .pa { position: absolute; right: 0; top: 0; bottom: 0; aspect-ratio: 176 / 235; pointer-events: none; }
html[data-theme="dark"] .cx-promo .pa { aspect-ratio: 317 / 345; }
.cx-promo .pa img { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%); mask-image: linear-gradient(to right, transparent 0, #000 24%); }
.cx-promo .pbadge { position: absolute; z-index: 2; left: 79.4%; top: 40.4%; transform: translate(-50%, -50%); width: 36.4%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 2px solid #b7e3cc; color: #0f9d63; font: 800 .5rem/1.05 var(--font-display); text-align: center; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(10,100,60,.22); padding: 2px; }
html[data-theme="dark"] .cx-promo .pbadge { display: none; }
.cx-promo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-130%) skewX(-18deg); animation: cx-shine 5s ease-in-out infinite; pointer-events: none; z-index: 2; }
html[data-theme="dark"] .cx-promo::before { background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent); }
.cx-promo .pa { animation: cx-float 3.4s ease-in-out infinite; }
.cx-promo .go { animation: cx-pulse 2.4s ease-out infinite; }
.cx-promo .amt { animation: cx-glow 2.2s ease-in-out infinite alternate; }
.cx-promos .cp-dots { gap: 5px; margin: 7px 0 0; }
.cx-promos .cp-dots button { width: 5px; height: 5px; background: #cfe3d8; }
.cx-promos .cp-dots button.on { width: 5px; background: #12a56a; border-radius: 50%; }
@keyframes cx-shine { 0% { transform: translateX(-130%) skewX(-18deg); } 55%, 100% { transform: translateX(380%) skewX(-18deg); } }
@keyframes cx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes cx-glow { from { text-shadow: 0 0 0 rgba(53,240,160,0); } to { text-shadow: 0 0 12px rgba(53,240,160,.5); } }
@keyframes cx-pulse { 0% { box-shadow: 0 0 0 0 rgba(15,157,99,.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(15,157,99,0); } }
@media (prefers-reduced-motion: reduce) { .cx-promo::before, .cx-promo .pa, .cx-promo .go, .cx-promo .amt { animation: none; } }

/* indique e ganhe */
.cx-ind { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; min-height: 82px; border-radius: 13px; background: #fff; border: 1px solid var(--cx-line); text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(14,26,21,.04), 0 8px 18px -14px rgba(14,26,21,.2); }
html[data-theme="dark"] .cx-ind { background: rgba(255,255,255,.03); border-color: rgba(46,214,142,.3); box-shadow: none; }
.cx-ind .gi { width: 38px; height: 38px; border-radius: 50%; background: var(--cx-soft); color: #12a56a; display: grid; place-items: center; flex: none; }
.cx-ind .gi svg { width: 20px; height: 20px; }
.cx-ind b { display: block; font-size: .8rem; }
.cx-ind span.tx { display: block; color: var(--ink-muted); font-size: .68rem; line-height: 1.25; margin-top: 2px; }
.cx-ind .chev { color: var(--ink); display: grid; margin-left: auto; flex: none; }
.cx-ind .chev svg { width: 13px; height: 13px; }

/* titulos de secao */
.cx-sec { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.cx-sec h2 { font: 800 1.25rem var(--font-display); letter-spacing: -.01em; }
.cx-sec a { color: #0f8f5b; font-weight: 700; font-size: .66rem; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
html[data-theme="dark"] .cx-sec a { color: #2fe08f; }
.cx-sec a svg { width: 10px; height: 10px; }
.cx-sec a.pill { background: #fff; padding: 0 10px; height: 26px; border-radius: 99px; box-shadow: 0 2px 8px rgba(14,26,21,.12); }
html[data-theme="dark"] .cx-sec a.pill { background: rgba(255,255,255,.08); box-shadow: none; }

/* atalhos */
.cx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cx-tile { position: relative; display: block; text-decoration: none; color: var(--ink); padding: 8px 6px 8px 8px; border-radius: 11px; background: #fff; border: 1px solid #eef3f0; min-height: 88px; box-shadow: 0 1px 2px rgba(14,26,21,.04), 0 8px 16px -12px rgba(14,26,21,.22); }
html[data-theme="dark"] .cx-tile { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.13); box-shadow: none; }
.cx-tile .bd { width: 33px; height: 31px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.cx-tile .bd img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-tile .bd.doc { background: var(--cx-soft); color: #0b5a39; }
.cx-tile .bd.doc svg { width: 19px; height: 19px; }
.cx-tile .bd svg.fb { width: 20px; height: 20px; }
.cx-tile b { display: block; font-size: .6rem; line-height: 1.15; }
.cx-tile span.sb { display: block; font-size: .5rem; color: var(--ink-muted); margin-top: 2px; line-height: 1.2; }
.cx-tile .go { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--cx-soft); color: #0f7a4b; margin-top: 6px; }
.cx-tile .go svg { width: 9px; height: 9px; }
html[data-theme="dark"] .cx-tile .go { color: #2fe08f; }

/* destaques */
.cx-dests { display: flex; gap: 7px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
.cx-dests::-webkit-scrollbar { display: none; }
.cx-dest { position: relative; flex: 0 0 116px; height: 84px; border-radius: 11px; overflow: hidden; scroll-snap-align: start; text-decoration: none; display: block; color: #fff; }
.cx-dest .art { position: absolute; top: 0; bottom: 0; height: 100%; width: auto; max-width: none; }
.cx-dest .tt { position: absolute; z-index: 1; font: 800 .66rem/1.12 var(--font-display); }
.cx-dest .st { position: absolute; z-index: 1; font-size: .46rem; line-height: 1.15; opacity: .95; }
.cx-dest.green { background: linear-gradient(135deg, #12864f 0%, #0a5c37 60%, #08492c 100%); }
.cx-dest.green .art { left: 0; -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); }
.cx-dest.green .tt { left: 48px; right: 4px; top: 22px; }
.cx-dest.green .st { left: 48px; right: 4px; bottom: 14px; }
.cx-dest.pink { background: linear-gradient(135deg, #fde7ec 0%, #f9d3dc 100%); color: #c4161c; }
.cx-dest.pink .art { left: 7px; height: 52px; top: 12px; bottom: auto; border-radius: 6px; mix-blend-mode: multiply; }
.cx-dest.pink .tt { left: 46px; right: 6px; top: 22px; color: #c4161c; }
.cx-dest.pink .st { left: 46px; right: 4px; bottom: 14px; color: #6b4a50; }
.cx-dest.pink .fire { position: absolute; top: 6px; right: 6px; width: 17px; height: 17px; border-radius: 50%; background: #e5252b; color: #fff; display: grid; place-items: center; z-index: 1; }
.cx-dest.pink .fire svg { width: 10px; height: 10px; }
.cx-dest.forest { background: linear-gradient(135deg, #0b5a43 0%, #06382a 100%); }
.cx-dest.forest .art { right: 0; height: 100%; -webkit-mask-image: linear-gradient(to left, #000 60%, transparent); mask-image: linear-gradient(to left, #000 60%, transparent); }
.cx-dest.forest .tt { left: 10px; right: 40px; top: 22px; }
.cx-dest.forest .st { left: 10px; right: 36px; bottom: 14px; }
.cx-dest.forest .stars { position: absolute; z-index: 1; left: 9px; top: 7px; color: #7ee0ad; font-size: .6rem; letter-spacing: 3px; }

/* barra inferior */
.cx .tabbar { width: 100%; max-width: 520px; bottom: 0; border: 0; border-top: 1px solid var(--cx-line); border-radius: 18px 18px 0 0; background: #fff; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px rgba(14,26,21,.07); }
html[data-theme="dark"] .cx .tabbar { background: rgba(7,18,12,.96); box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.cx .tabbar a { position: relative; height: var(--tabbar-h); gap: 3px; font-size: .6rem; font-weight: 600; color: #6c7b74; }
html[data-theme="dark"] .cx .tabbar a { color: var(--ink-muted); }
.cx .tabbar a .ic { display: grid; place-items: center; font-size: 0; }
.cx .tabbar a .ic svg { width: 17px; height: 17px; }
.cx .tabbar a[aria-current="page"] { color: #0b8f58; }
html[data-theme="dark"] .cx .tabbar a[aria-current="page"] { color: #2fe08f; }
.cx .tabbar a[aria-current="page"]::after { content: ""; position: absolute; bottom: 5px; width: 24px; height: 2.5px; border-radius: 3px; background: currentColor; }
.cx .tabbar a.buy[aria-current="page"]::after { display: none; }
.cx .tabbar a.buy .ic { width: 42px; height: 42px; margin-top: -22px; background: linear-gradient(135deg, #0f7a4b, #07583a); color: #fff; box-shadow: 0 0 0 4px #fff, 0 8px 16px rgba(10,168,107,.35); }
html[data-theme="dark"] .cx .tabbar a.buy .ic { background: linear-gradient(135deg, #0b4a2f, #06301f); color: #35f0a0; box-shadow: 0 0 0 4px #07120c, 0 0 20px rgba(46,214,142,.35); border: 1.5px solid rgba(46,214,142,.6); }
.cx .tabbar a.buy .ic svg { width: 21px; height: 21px; }
.cx .toasts { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }

/* aparencia (Perfil) */
.cx-theme { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.cx-theme button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font-weight: 700; cursor: pointer; }
.cx-theme button svg { width: 20px; height: 20px; }
.cx-theme button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

html[data-theme="dark"] .cx-tile .fb.dk-only { display: grid; }
.cx-tile .fb { width: 100%; height: 100%; place-items: center; border-radius: 10px; }
.cx-tile .fb svg { width: 19px; height: 19px; }

.cx-hello .hero.lt-only { -webkit-mask-image: radial-gradient(ellipse 72% 78% at 64% 52%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 72% 78% at 64% 52%, #000 52%, transparent 100%); }
.cx-hello .hero.dk-only { -webkit-mask-image: radial-gradient(ellipse 75% 80% at 62% 52%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 75% 80% at 62% 52%, #000 50%, transparent 100%); }
.cx-promo .t { max-width: 67%; font-size: .95rem; }
.cx-tile { padding: 7px 5px 7px 7px; }
.cx-tile b { font-size: .58rem; }
.cx-tile span.sb { font-size: .5rem; }
.cx-dest .tt { font-size: .6rem; }
.cx-dest.green .tt, .cx-dest.green .st { left: 44px; }
.cx-hello .hero { top: -4px; }
html[data-theme="dark"] .cx-tile .bd img.lt-only { display: none; }

/* tela inicial mais compacta: os Destaques aparecem sem rolar */
.cx-hello { min-height: 90px; margin-top: 2px; }
.cx-hello p { margin-top: 5px; }
.cx-stat { min-height: 80px; padding: 9px 10px; }
.cx-stat .v { margin-top: 8px; font-size: 1.4rem; }
.cx-promos { margin-top: 9px; }
.cx-promo { min-height: 138px; padding-top: 10px; }
.cx-promo .t { margin-top: 7px; }
.cx-promo .go { margin-top: 8px; height: 28px; }
.cx-promos .cp-dots { margin-top: 5px; }
.cx-ind { margin-top: 7px; min-height: 66px; padding: 8px 12px; }
.cx-sec { margin: 11px 0 6px; }
.cx-tile { min-height: 0; padding: 6px 5px 6px 6px; }
.cx-tile .bd { width: 30px; height: 28px; margin-bottom: 4px; }
.cx-tile .go { margin-top: 4px; width: 15px; height: 15px; }
.cx-tile span.sb { min-height: 0; }

/* campo de senha com olhinho */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; border-radius: 10px; padding: 0; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--brand-strong); }
.pw-eye svg { width: 20px; height: 20px; }
