/* ===== Shell ===== */
html, body { height: 100%; }
body { overscroll-behavior-y: none; }
#app { min-height: 100dvh; }

.screen { padding: calc(env(safe-area-inset-top) + 12px) 16px calc(112px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.screen.flush { padding: 0; max-width: none; }
.screen.no-nav { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }

.topbar { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-bottom: 8px; }
.topbar h1 { font-family: var(--f-display); font-size: 1.375rem; font-weight: 700; margin: 0; letter-spacing: -.02em; flex: 1; }
.topbar .sub { color: var(--ink-2); font-size: .875rem; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: var(--paper); display: grid; place-items: center; box-shadow: var(--shadow-1); flex: none; }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 22px; height: 22px; }

.view-enter { animation: viewIn .28s var(--ease); }
@keyframes viewIn { from { opacity: .4; transform: translateY(6px); } }

/* ===== Navegação inferior ===== */
.nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.nav-inner { pointer-events: auto; max-width: 520px; margin: 0 auto; height: 68px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-2); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: .6875rem; font-weight: 600; padding: 6px 0; border-radius: 14px; }
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--volt); }
.nav .center { position: relative; justify-self: center; width: 64px; height: 64px; margin-top: -30px; border-radius: 50%; background: var(--volt); color: #fff; box-shadow: 0 10px 24px rgba(22, 82, 240, .38); display: grid; place-items: center; padding: 0; }
.nav .center svg { width: 28px; height: 28px; }
.nav .center:active { transform: scale(.95); }
.nav .center.live { background: var(--ink); box-shadow: 0 10px 24px rgba(10, 31, 68, .35); }
/* Recarga em andamento: "água" verde que sobe com ondas até encher o botão */
.nav .center.live { overflow: hidden; box-shadow: 0 0 0 3px var(--paper), 0 10px 24px rgba(18, 184, 134, .35); }
.nav .center .liquid { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.nav .center .liquid i { position: absolute; left: 50%; width: 180%; aspect-ratio: 1; border-radius: 42%; bottom: var(--lvl); transform: translate(-50%, 100%); transition: bottom 1s var(--ease); }
.nav .center .liquid i:first-child { background: var(--charge); animation: wave 5s linear infinite; }
.nav .center .liquid i:last-child { background: rgba(18, 184, 134, .55); border-radius: 38%; animation: wave 7s linear infinite reverse; margin-bottom: 3px; }
@keyframes wave { from { transform: translate(-50%, 100%) rotate(0); } to { transform: translate(-50%, 100%) rotate(360deg); } }
.nav .center.full { background: var(--charge); }
.nav .center .mini-pct { position: relative; z-index: 1; font-family: var(--f-display); font-weight: 700; font-size: .9375rem; letter-spacing: -.02em; text-shadow: 0 1px 3px rgba(0,0,0,.35); }

@media (min-width: 900px) {
  .nav { top: 0; right: auto; width: 104px; padding: 16px 0 16px 16px; }
  .nav-inner { height: 100%; width: 88px; grid-template-columns: 1fr; grid-template-rows: repeat(5, 76px); align-content: center; border-radius: 26px; }
  .nav .center { margin: 0; order: -1; margin-bottom: 18px; }
  .screen { padding-left: 136px; padding-right: 32px; max-width: 1080px; padding-bottom: 40px; padding-top: 28px; }
  .screen.flush { padding: 0 0 0 120px; }
}

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: var(--r-md); border: 0; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--volt); color: #fff; }
.btn-primary:hover { background: var(--volt-press); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-stop { background: var(--stop); color: #fff; }
.btn-soft { background: var(--sky-soft); color: var(--volt); }
.btn-block { width: 100%; }
.btn[disabled] { background: #C9D3E3; color: #fff; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--volt); font-weight: 700; }

/* ===== Superfícies ===== */
.card { background: var(--paper); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-1); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.section-title h2 { font-family: var(--f-display); font-size: 1.0625rem; margin: 0; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.tiny { font-size: .8125rem; }
.center-text { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* ===== Saldo (cartão-bilhete) ===== */
.balance { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 20px 20px 18px; }
/* Ilustração de fundo: plugue com cabo e raio */
.balance::after { content: ""; position: absolute; right: -18px; top: -26px; width: 190px; height: 190px; transform: rotate(-18deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%233FB8FF' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M46 14v22M74 14v22'/%3E%3Cpath d='M34 36h52v18a26 26 0 0 1-52 0z'/%3E%3Cpath d='M60 80v12c0 10 8 16 18 16h30'/%3E%3Cpath d='m63 44-8 12h10l-8 12' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .22; }
.balance .label { color: #B6C6E6; font-size: .875rem; }
.balance .amount { font-family: var(--f-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; margin: 2px 0 14px; font-variant-numeric: tabular-nums; }
.balance .amount small { font-size: 1.25rem; font-weight: 600; margin-right: 4px; opacity: .8; }
.balance .tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border-radius: var(--r-pill); padding: 5px 11px; font-size: .8125rem; font-weight: 600; color: #DDE7FA; }
.balance .actions { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 16px; }
.balance .actions .btn { flex: 1; min-height: 46px; }
.balance .btn-ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }

/* ===== Listas ===== */
.list { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; background: none; border: 0; width: 100%; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
button.row:active, a.row:active { background: var(--mist); }
.row .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--sky-soft); color: var(--volt); }
.row .ico svg { width: 21px; height: 21px; }
.row .ico.green { background: var(--charge-soft); color: var(--charge); }
.row .ico.red { background: var(--stop-soft); color: var(--stop); }
.row .ico.pix { background: #E6F7F5; }
.row .ico.brandico { background: #F1F4F9; }
.row .ico svg.brand-svg, .method .ico svg.brand-svg { width: 32px; height: 20px; display: block; }
.cc-brand svg.brand-svg { width: 48px; height: 28px; display: block; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { color: var(--ink-2); font-size: .8125rem; }
.row .v { font-family: var(--f-display); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .v.pos { color: var(--charge); }
.row .chev { color: var(--ink-3); width: 18px; height: 18px; }

/* ===== Status ===== */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-available { background: var(--charge-soft); color: #0B8A64; }
.st-preparing { background: var(--sky-soft); color: var(--volt); }
.st-charging { background: var(--charge); color: #fff; }
.st-charging::before { animation: blink 1.2s infinite; background: #fff; }
.st-finishing, .st-reserved { background: var(--warn-soft); color: #A86B00; }
.st-faulted, .st-unavailable { background: var(--stop-soft); color: var(--stop); }
.st-offline { background: #EDF0F5; color: var(--ink-3); }
@keyframes blink { 50% { opacity: .3; } }

/* ===== Home ===== */
.hello { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.hello h1 { font-family: var(--f-display); font-size: 1.5rem; margin: 0; letter-spacing: -.025em; line-height: 1.1; }
.hello p { margin: 0 0 2px; color: var(--ink-2); font-size: .875rem; }
.hello .date { display: block; margin-top: 3px; font-size: .8125rem; color: var(--ink-3); }
.hello .date::first-letter { text-transform: uppercase; }
.hello .who { flex: 1; min-width: 0; }
.avatar { flex: none; border-radius: 50%; background: var(--volt); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; overflow: hidden; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.ring { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--sky); }
.avatar .badge-dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--charge); border: 2.5px solid var(--paper); }
.avatar-edit { position: relative; flex: none; }
.avatar-edit .cam { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--paper); background: var(--volt); color: #fff; display: grid; place-items: center; cursor: pointer; }
.avatar-edit .cam svg { width: 15px; height: 15px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); background: var(--mist); cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--volt); flex: none; }
.check-row strong { display: block; font-size: .9375rem; }
.check-row span { font-size: .8125rem; color: var(--ink-2); }
.gbtn-wrap { min-height: 52px; display: flex; justify-content: center; }
.home-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.home-grid > * { min-width: 0; }
@media (min-width: 720px) {
  .home-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 20px; }
  .screen { max-width: 920px; padding-left: 24px; padding-right: 24px; }
  .nav-inner { max-width: 560px; }
}

.scan-cta { display: flex; align-items: center; gap: 16px; background: var(--volt); color: #fff; border-radius: var(--r-lg); padding: 18px; text-decoration: none; }
.scan-cta .qr { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.scan-cta .qr svg { width: 28px; height: 28px; }
.scan-cta strong { display: block; font-family: var(--f-display); font-size: 1.125rem; letter-spacing: -.01em; }
.scan-cta span { font-size: .875rem; color: #D6E2FF; }

.live-card { display: flex; align-items: center; gap: 16px; background: var(--paper); border-radius: var(--r-lg); padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 2px var(--charge), var(--shadow-1); }
.live-card .ring-sm { width: 64px; height: 64px; flex: none; }

.app-banner { display: flex; gap: 14px; align-items: center; background: var(--sky-soft); border-radius: var(--r-lg); padding: 16px; color: var(--ink); text-decoration: none; }
.app-banner .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; color: var(--volt); flex: none; }
.app-banner strong { display: block; }
.app-banner span { font-size: .875rem; color: var(--ink-2); }

/* ===== Formulários ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 650; font-size: .875rem; }
.input { height: 52px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--paper); padding: 0 16px; font-size: 1rem; width: 100%; transition: border-color .15s; }
.input:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 4px rgba(22, 82, 240, .12); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.hint { font-size: .8125rem; color: var(--ink-2); }
.err { font-size: .8125rem; color: var(--stop); font-weight: 600; }

/* ===== Auth ===== */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--paper); }
.auth-hero { background: var(--ink); color: #fff; padding: calc(env(safe-area-inset-top) + 28px) 24px 64px; position: relative; overflow: hidden; }
.auth-hero .brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; }
.auth-hero h1 { font-family: var(--f-display); font-size: 2.125rem; line-height: 1.05; letter-spacing: -.035em; margin: 34px 0 10px; max-width: 13ch; }
.auth-hero p { color: #B6C6E6; margin: 0; max-width: 34ch; }
.auth-hero .arc { position: absolute; right: -36px; top: -10px; width: 210px; height: 210px; transform: rotate(-18deg); opacity: .3; color: var(--sky); }
@media (min-width: 900px) { .auth-hero .arc { width: 420px; height: 420px; right: -60px; top: auto; bottom: -60px; opacity: .22; } }
.auth-hero > :not(.arc) { position: relative; z-index: 1; }
.auth-body { background: var(--paper); border-radius: 28px 28px 0 0; margin-top: -28px; position: relative; padding: 26px 20px calc(28px + env(safe-area-inset-bottom)); }
.auth-body .inner { max-width: 420px; margin: 0 auto; }
.btn-google { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .8125rem; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (min-width: 900px) {
  .auth { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .auth-hero { display: flex; flex-direction: column; justify-content: center; padding: 64px; }
  .auth-hero h1 { font-size: 3.25rem; }
  .auth-body { margin: 0; border-radius: 0; display: flex; align-items: center; }
  .auth-body .inner { width: 100%; }
}

/* ===== Mapa ===== */
.map-wrap { position: relative; height: 100dvh; background: #DDE6F2; overflow: hidden; }
.layer-toggle { position: absolute; z-index: 5; right: 16px; top: calc(env(safe-area-inset-top) + 76px); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--paper); box-shadow: var(--shadow-2); font-weight: 700; font-size: .8125rem; color: var(--ink-2); }
.layer-toggle svg { width: 16px; height: 16px; }
.layer-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; }
.marker.ext { background: #7A89A8; width: 30px; height: 30px; border-width: 2px; }
.marker.ext svg { width: 14px; height: 14px; }
@media (min-width: 900px) { .layer-toggle { right: 428px; top: 24px; } }
.ext-pop { display: flex; flex-direction: column; gap: 4px; min-width: 190px; font-family: var(--f-body); }
.ext-pop small { color: var(--ink-2); }
.ext-pop ul { margin: 4px 0; padding-left: 16px; font-size: .8125rem; }
.ext-pop a { font-weight: 700; color: var(--volt); }
#map { position: absolute; inset: 0; background: #DDE6F2; z-index: 0; }
.map-search { position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 12px); left: 16px; right: 16px; display: flex; gap: 10px; }
.map-search .input { box-shadow: var(--shadow-2); border: 0; }
.sheet { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 30px rgba(10,31,68,.12); padding: 10px 16px calc(100px + env(safe-area-inset-bottom)); max-height: 46dvh; overflow-y: auto; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-family: var(--f-display); font-size: 1.0625rem; margin: 0 2px 8px; }
@media (min-width: 900px) {
  .sheet { left: auto; right: 24px; top: 24px; bottom: 24px; width: 380px; max-height: none; border-radius: 26px; padding: 18px; }
  .map-search { left: 24px; right: 428px; max-width: 460px; }
}
.station-row .ico { background: var(--ink); color: #fff; }
.marker { width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; background: var(--volt); box-shadow: 0 4px 12px rgba(10,31,68,.3); border: 3px solid #fff; }
.marker svg { transform: rotate(45deg); width: 18px; height: 18px; color: #fff; }
.marker.busy { background: var(--charge); }
.marker.off { background: var(--ink-3); }
.leaflet-container { font-family: var(--f-body) !important; }

/* ===== Scanner ===== */
.scanner { position: fixed; inset: 0; z-index: 60; background: #050E22; color: #fff; display: flex; flex-direction: column; }
.scanner .top { padding: calc(env(safe-area-inset-top) + 14px) 16px 0; display: flex; align-items: center; gap: 12px; }
.scanner .top .icon-btn { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.scanner .top h1 { font-family: var(--f-display); font-size: 1.125rem; margin: 0; }
.scanner .viewport { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.scanner .frame { position: relative; width: min(68vw, 280px); aspect-ratio: 1; border-radius: 28px; box-shadow: 0 0 0 100vmax rgba(5, 14, 34, .62); }
.scanner .frame i { position: absolute; width: 44px; height: 44px; border: 4px solid var(--sky); }
.scanner .frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 28px 0 0 0; }
.scanner .frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 28px 0 0; }
.scanner .frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 28px; }
.scanner .frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 28px 0; }
.scanner .frame .beam { position: absolute; left: 12%; right: 12%; height: 2px; background: var(--sky); box-shadow: 0 0 16px var(--sky); animation: beam 2.2s ease-in-out infinite; }
@keyframes beam { 0%, 100% { top: 14%; } 50% { top: 86%; } }
.scanner .hint-txt { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #C5D3EE; font-size: .9375rem; padding: 0 24px; }
.scanner .bottom { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); background: #0A1A3A; border-radius: 24px 24px 0 0; }
.scanner .bottom .input { background: rgba(255,255,255,.08); border-color: transparent; color: #fff; text-transform: uppercase; }
.scanner .bottom .input::placeholder { color: #8396BD; text-transform: none; }
.scanner .bottom label { color: #C5D3EE; font-size: .875rem; font-weight: 600; display: block; margin-bottom: 8px; }

/* ===== Estação ===== */
.station-head { background: var(--ink); color: #fff; padding: calc(env(safe-area-inset-top) + 12px) 16px 70px; }
.station-head .icon-btn { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.station-head h1 { font-family: var(--f-display); font-size: 1.625rem; letter-spacing: -.025em; margin: 18px 0 4px; line-height: 1.1; }
.station-head p { margin: 0; color: #B6C6E6; font-size: .9375rem; }
.station-head .code { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.station-body { margin-top: -52px; padding: 0 16px calc(40px + env(safe-area-inset-bottom)); max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .station-head { padding-left: 136px; padding-top: 32px; } .station-head .wrap, .station-body { max-width: 640px; } .station-body { margin-left: 136px; } }

.connectors { display: grid; gap: 10px; }
.conn { display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: var(--r-lg); padding: 14px; border: 2px solid transparent; box-shadow: var(--shadow-1); text-align: left; width: 100%; }
.conn[aria-pressed="true"] { border-color: var(--volt); }
.conn[disabled] { opacity: .6; cursor: not-allowed; }
.conn .plug { width: 52px; height: 52px; border-radius: 16px; background: var(--mist); display: grid; place-items: center; color: var(--ink); flex: none; font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; }
.conn .meta { flex: 1; min-width: 0; }
.conn .meta strong { display: block; }
.conn .meta span { color: var(--ink-2); font-size: .8125rem; }

.plug-wait { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--sky-soft); }
.plug-wait .anim { width: 56px; height: 56px; flex: none; color: var(--volt); }
.plug-wait .anim .head { animation: plugIn 1.8s var(--ease) infinite; }
@keyframes plugIn { 0%, 15% { transform: translateX(-9px); } 55%, 100% { transform: translateX(0); } }
.plug-wait strong { display: block; }
.plug-wait span { font-size: .875rem; color: var(--ink-2); }

.tariff { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tariff .price { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.tariff .price small { font-size: .9375rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.tariff .old { color: var(--ink-3); text-decoration: line-through; font-size: .875rem; }
.badge-app { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; }

.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount-btn { height: 56px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--paper); font-family: var(--f-display); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 4px; }
.amount-btn[aria-pressed="true"] { border-color: var(--volt); background: var(--volt); color: #fff; }
.amount-btn.wide { grid-column: span 2; font-family: var(--f-body); font-size: .9375rem; }
.limit { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; background: var(--mist); border-radius: var(--r-md); }
.limit b { font-family: var(--f-display); font-size: 1.125rem; font-variant-numeric: tabular-nums; }

details.specs { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
details.specs summary { list-style: none; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
details.specs summary::-webkit-details-marker { display: none; }
details.specs summary svg { width: 18px; height: 18px; transition: transform .2s; color: var(--ink-3); }
details.specs[open] summary svg { transform: rotate(180deg); }
details.specs dl { margin: 0; padding: 0 18px 16px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .9375rem; }
details.specs dt { color: var(--ink-2); }
details.specs dd { margin: 0; text-align: right; font-weight: 600; }

.sticky-cta { position: sticky; bottom: 0; padding: 14px 0 calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--mist) 70%, transparent); }

/* ===== Sessão ao vivo: o medidor ===== */
.session { min-height: 100dvh; background: var(--ink); color: #fff; padding: calc(env(safe-area-inset-top) + 12px) 16px calc(120px + env(safe-area-inset-bottom)); }
.session .topbar .icon-btn { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.session .topbar h1 { font-size: 1.0625rem; }
.session .topbar .sub { color: #9FB2D6; font-size: .8125rem; font-weight: 500; display: block; }
.session-inner { max-width: 560px; margin: 0 auto; }
.gauge { position: relative; width: min(82vw, 320px); aspect-ratio: 1; margin: 6px auto 4px; }
.gauge svg { width: 100%; height: 100%; display: block; }
.gauge .tick { stroke: rgba(255,255,255,.14); stroke-width: 3; stroke-linecap: round; }
.gauge .tick.on { stroke: var(--sky); }
.gauge .tick.on.hot { stroke: #fff; }
.gauge .readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge .big { font-family: var(--f-display); font-size: 4.25rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge .big sup { font-size: 1.5rem; vertical-align: top; margin-left: 2px; letter-spacing: 0; position: relative; top: 8px; }
.gauge .cap { color: #9FB2D6; font-size: .875rem; margin-top: 6px; }
.gauge .state { margin-top: 12px; }
.gauge .bolt { color: var(--sky); width: 26px; height: 26px; margin-bottom: 4px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.energy-bar { margin: 18px 0 16px; }
.energy-bar .lbl { display: flex; justify-content: space-between; font-size: .8125rem; color: #9FB2D6; margin-bottom: 8px; }
.energy-bar .lbl b { color: #fff; font-variant-numeric: tabular-nums; }
.energy-bar .track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.energy-bar .fill { height: 100%; background: var(--sky); border-radius: 4px; transition: width .6s var(--ease); }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { background: rgba(255,255,255,.06); border-radius: var(--r-md); padding: 14px; }
.metric .k { display: flex; align-items: center; gap: 7px; color: #9FB2D6; font-size: .8125rem; font-weight: 600; }
.metric .k svg { width: 16px; height: 16px; color: var(--sky); }
.metric .val { font-family: var(--f-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.metric .val small { font-size: .875rem; color: #9FB2D6; font-weight: 600; letter-spacing: 0; margin-left: 3px; }
.session .actions { display: flex; gap: 10px; margin-top: 18px; }
.session .actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; flex: none; width: 56px; padding: 0; }
.session .actions .btn-stop { flex: 1; }
.session .note { text-align: center; color: #9FB2D6; font-size: .8125rem; margin-top: 14px; }

.done-card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 20px; margin-top: 8px; }
.done-card .tot { display: flex; justify-content: space-between; align-items: baseline; }
.done-card .tot b { font-family: var(--f-display); font-size: 2rem; letter-spacing: -.03em; }
.receipt { margin: 14px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: .9375rem; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Recarga de saldo (passos) ===== */
/* Etapas: concluída = círculo com check, atual = número em destaque, futura = cinza; a linha entre elas acompanha */
.steps { display: flex; align-items: flex-start; margin: 6px 0 22px; padding: 0; list-style: none; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: .8125rem; font-weight: 700; color: var(--ink-3); }
.steps li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; transition: background .3s; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.on::before { background: linear-gradient(90deg, var(--volt), var(--sky)); }
.steps .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); color: var(--ink-3); font-family: var(--f-display); font-size: .875rem; transition: all .25s var(--ease); }
.steps .dot svg { width: 15px; height: 15px; stroke-width: 3.2; }
/* uma família só (azuis da marca): feita = azul cheio, atual = contorno azul com halo, futura = cinza */
.steps li.done { color: var(--ink-2); }
.steps li.done .dot { border-color: var(--volt); background: var(--volt); color: #fff; }
.steps li.on { color: var(--volt); }
.steps li.on .dot { border: 2.5px solid var(--volt); background: var(--paper); color: var(--volt); box-shadow: 0 0 0 5px var(--sky-soft); }

/* Campos com ícone */
.input-ic { position: relative; }
.input-ic > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--ink-3); pointer-events: none; transition: color .15s; }
.input-ic .input { padding-left: 44px; }
.input::placeholder { text-transform: none; color: #9AA8C2; }
.input-ic:focus-within > svg { color: var(--volt); }

/* Prévia do cartão */
.cc-preview { position: relative; overflow: hidden; aspect-ratio: 1.586; max-height: 210px; border-radius: 18px; padding: 18px 20px; color: #fff; background: linear-gradient(135deg, #0A1F44 0%, #12317A 60%, #1652F0 100%); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 12px 28px rgba(10, 31, 68, .28); }
.cc-preview .cc-art { position: absolute; right: -24px; bottom: -30px; width: 170px; height: 170px; color: var(--sky); opacity: .18; transform: rotate(-18deg); }
.cc-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.cc-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #F5D78E, #C9A24A); }
.cc-brand { min-height: 22px; display: flex; align-items: center; }
.cc-num { position: relative; font-family: var(--f-display); font-size: clamp(1.05rem, 5vw, 1.375rem); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.cc-bottom { position: relative; display: flex; justify-content: space-between; gap: 12px; }
.cc-bottom small { display: block; font-size: .625rem; color: #9FB2D6; letter-spacing: .04em; }
.cc-bottom b { font-size: .875rem; font-weight: 600; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 200px; }
.brand-word { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: 1rem; letter-spacing: -.01em; }
.method-group { font-size: .8125rem; font-weight: 700; color: var(--ink-2); margin: 6px 2px -4px; }
.value-big { text-align: center; padding: 18px 0 22px; }
.value-big .input-money { width: 100%; text-align: center; border: 0; background: none; font-family: var(--f-display); font-weight: 700; font-size: 3.25rem; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.value-big .input-money:focus { outline: none; }
.value-big .hint { margin-top: 4px; }
.method { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); border: 2px solid var(--line); width: 100%; text-align: left; }
.method[aria-pressed="true"] { border-color: var(--volt); background: #F5F8FF; }
.method .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); flex: none; color: var(--ink); }
.method .ico svg { width: 24px; height: 24px; }
.method strong { display: block; }
.method span { font-size: .8125rem; color: var(--ink-2); }
.method .radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.method[aria-pressed="true"] .radio { border: 7px solid var(--volt); }
.pix-box { text-align: center; }
.pix-box .secure { display: inline-flex; gap: 6px; align-items: center; background: var(--charge-soft); color: #0B8A64; border-radius: var(--r-pill); padding: 5px 12px; font-size: .8125rem; font-weight: 700; }
.pix-box .secure svg { width: 14px; height: 14px; }
.pix-qr { width: 220px; height: 220px; margin: 16px auto; padding: 12px; background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); }
.pix-qr svg { width: 100%; height: 100%; }
.copy-code { display: flex; gap: 8px; align-items: center; background: var(--mist); border-radius: var(--r-md); padding: 6px 6px 6px 14px; text-align: left; }
.copy-code code { flex: 1; font-size: .75rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiting { display: flex; gap: 10px; justify-content: center; align-items: center; color: var(--ink-2); font-size: .875rem; margin-top: 16px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--volt); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-burst { width: 84px; height: 84px; border-radius: 50%; background: var(--charge-soft); color: var(--charge); display: grid; place-items: center; margin: 18px auto 12px; animation: pop .45s var(--ease); }
.success-burst svg { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.signup-invite { margin-top: 14px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, #12317A, var(--volt)); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.signup-invite strong { font-family: var(--f-display); font-size: 1.125rem; }
.signup-invite span { color: #D6E2FF; font-size: .875rem; margin-bottom: 8px; }
.signup-invite .btn-primary { background: #fff; color: var(--volt); }

/* ===== Abas segmentadas ===== */
.seg { display: flex; background: #E2E9F4; border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 40px; border: 0; background: none; border-radius: 11px; font-weight: 700; font-size: .875rem; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }

.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow { background: var(--paper); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-1); }
.flow .k { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.flow .v { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Placa no padrão Mercosul */
.plate-in { position: relative; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.plate-in .plate-flag { display: block; background: var(--volt); color: #fff; text-align: center; font-size: .625rem; font-weight: 800; letter-spacing: .3em; padding: 2px 0; }
.plate-in .input { border: 0; border-radius: 0; height: 54px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 1.625rem; letter-spacing: .12em; text-transform: uppercase; }
.plate-in .input:focus { box-shadow: none; }
.plate-in:focus-within { box-shadow: 0 0 0 4px rgba(22, 82, 240, .14); }

/* ===== Relatório ===== */
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; margin: 0 -2px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 650; font-size: .8125rem; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.range { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.range .btn { min-height: 52px; }
@media (max-width: 420px) { .range { grid-template-columns: 1fr 1fr; } .range .btn { grid-column: 1 / -1; } }
.rep-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rep-kpis .hero { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.rep-kpis .wide { grid-column: 1 / -1; }
.rep-kpis .hero .k, .rep-kpis .hero .s { color: #9FB2D6; }
.rep-kpis .hero .v { font-size: 1.875rem; }
.flow .v small { font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.flow .s { font-size: .75rem; color: var(--ink-2); margin-top: 3px; }
.split { height: 6px; border-radius: 3px; background: var(--volt); overflow: hidden; margin: 8px 0 2px; }
.split i { display: block; height: 100%; background: #32BCAD; }
.dot-pix, .dot-card { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #32BCAD; margin-right: 4px; vertical-align: 1px; }
.dot-card { background: var(--volt); }
@media (min-width: 720px) { .rep-kpis { grid-template-columns: repeat(3, 1fr); } .rep-kpis .hero { grid-column: span 1; } }
.rep-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; margin-top: 14px; }
.rep-chart .bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.rep-chart .bar i { width: 100%; max-width: 22px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, var(--volt), var(--sky)); }
.rep-chart .bar.zero i { background: var(--line); }
.rep-chart .bar span { font-size: .625rem; color: var(--ink-3); height: 12px; white-space: nowrap; }
.seg-sm { padding: 3px; border-radius: 11px; }
.seg-sm button { height: 30px; padding: 0 12px; font-size: .8125rem; border-radius: 8px; }
.report-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; }
.report-link .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--sky-soft); color: var(--volt); }
.report-link .ico svg { width: 21px; height: 21px; }
.report-link strong { display: block; }
.report-link span.s { font-size: .8125rem; color: var(--ink-2); }

/* ===== Perfil ===== */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--volt); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.profile-head h2 { margin: 0; font-family: var(--f-display); font-size: 1.25rem; letter-spacing: -.02em; }
.plate { display: inline-block; font-family: var(--f-display); font-weight: 700; letter-spacing: .06em; border: 2px solid var(--ink); border-radius: 6px; padding: 1px 8px; font-size: .875rem; position: relative; padding-top: 7px; }
.plate::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--volt); border-radius: 3px 3px 0 0; }

/* ===== Modal / sheet ===== */
.backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(5, 14, 34, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--paper); width: 100%; max-width: 520px; border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .3s var(--ease); max-height: 92dvh; overflow-y: auto; }
.modal .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.modal h2 { font-family: var(--f-display); margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -.02em; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
@media (min-width: 640px) { .backdrop { align-items: center; } .modal { border-radius: 26px; } }

/* ===== Toast ===== */
.toast { position: fixed; z-index: 90; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-md); box-shadow: var(--shadow-2); font-weight: 600; font-size: .9375rem; display: flex; gap: 10px; align-items: center; animation: toastIn .3s var(--ease); max-width: calc(100% - 32px); }
.toast svg { width: 20px; height: 20px; color: var(--sky); flex: none; }
@keyframes toastIn { from { transform: translate(-50%, -16px); opacity: 0; } }

.empty { text-align: center; padding: 32px 20px; color: var(--ink-2); }
.empty svg { width: 40px; height: 40px; color: var(--ink-3); margin-bottom: 8px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

.demo-bar { position: fixed; z-index: 80; right: 12px; top: calc(env(safe-area-inset-top) + 12px); background: var(--warn-soft); color: #7A4E00; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; padding: 6px 12px; box-shadow: var(--shadow-1); }
