/* Ezee Club — visual Enerzee (verde floresta) + E-cash (roxo). Sem tipografia serifada. */
:root {
  color-scheme: light;
  --bg: #eef3f0; --surface: #ffffff; --surface-2: #e6eee9; --ink: #0f1a15; --ink-2: #5b6b63; --ink-3: #8a9790;
  --forest: #0d4a34; --forest-deep: #06281d; --leaf: #1f9b68; --lime: #a8e60f; --mint: #e8f7ef; --mint-strong: #c5ebd6;
  --ecash: #6b4ea3; --ecash-deep: #3e2a6b; --ecash-soft: #efe9f9; --ecash-mid: #b9a6e0;
  --verde: #14965a; --verde-soft: #d5f5e5; --amarelo: #b7820f; --amarelo-soft: #fff4d6; --vermelho: #d6332a; --vermelho-soft: #ffe5e3; --azul: #2563c9; --azul-soft: #e3edfc;
  --sep: rgba(15, 40, 30, .08); --sep-2: rgba(15, 40, 30, .14);
  --shadow: 0 1px 2px rgba(6, 40, 29, .04), 0 8px 24px rgba(6, 40, 29, .06); --shadow-float: 0 12px 40px rgba(6, 40, 29, .16);
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 26px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 62px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
img { max-width: 100%; }
a { color: var(--leaf); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* ---------- Estrutura ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: 0 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
.app--largo { max-width: 1080px; }
.app--sem-nav { padding-bottom: 32px; }
.topo { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 0 12px; }
.topo__marca { display: flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 700; font-size: 15px; }
.topo__marca svg { height: 26px; width: auto; }
.topo__marca small { font-weight: 600; color: var(--ecash); background: var(--ecash-soft); padding: 2px 8px; border-radius: 99px; font-size: 11px; }
.topo__fim { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topo__voltar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; flex: none; }
.topo__voltar svg { width: 18px; height: 18px; }
.topo h1 { font-size: 20px; }
.titulo { font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.sub { color: var(--ink-2); font-size: 13px; margin: 0 0 14px; }
.secao { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 8px; }
.secao h2 { font-size: 15px; }
.secao a, .secao button { font-size: 12.5px; font-weight: 600; color: var(--leaf); background: none; border: 0; cursor: pointer; text-decoration: none; }
.grade { display: grid; gap: 12px; }
.grade--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .grade--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grade--lado { grid-template-columns: 1.3fr 1fr; align-items: start; } }
@media (max-width: 859px) { .grade--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cartões ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.card--plano { box-shadow: none; border: 1px solid var(--sep-2); }
.card h3 { font-size: 14px; margin-bottom: 6px; }
.kpi { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; min-width: 0; }
.kpi__rot { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.kpi__val { font-size: 21px; font-weight: 750; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__det { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.kpi--ecash .kpi__val { color: var(--ecash); }
.kpi--verde .kpi__val { color: var(--verde); }
.kpi--alerta { background: var(--amarelo-soft); }

/* Cartão da carteira */
.carteira { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #8c6fd0 0%, var(--ecash) 38%, var(--ecash-deep) 100%); box-shadow: 0 16px 40px rgba(62, 42, 107, .35); }
.carteira::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .07); }
.carteira__rot { font-size: 12px; opacity: .85; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.carteira__saldo { font-size: 38px; font-weight: 780; letter-spacing: -.03em; margin: 2px 0 14px; font-variant-numeric: tabular-nums; }
.carteira__saldo span { font-size: 18px; font-weight: 650; opacity: .9; margin-right: 4px; }
.carteira__linha { display: flex; gap: 18px; font-size: 12px; position: relative; z-index: 1; }
.carteira__linha b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.carteira__linha div { opacity: .92; }
.carteira__acoes { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.carteira__acoes .btn { flex: 1; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 0; cursor: pointer; font-weight: 650; font-size: 14.5px; text-decoration: none; background: var(--forest); color: #fff; transition: transform .08s ease, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn--bloco { width: 100%; }
.btn--ecash { background: var(--ecash); }
.btn--lima { background: var(--lime); color: var(--forest-deep); }
.btn--branco { background: #fff; color: var(--ecash-deep); }
.btn--vidro { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--sec { background: var(--surface-2); color: var(--forest); }
.btn--linha { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--sep-2); }
.btn--perigo { background: var(--vermelho-soft); color: var(--vermelho); }
.btn--peq { min-height: 34px; padding: 0 13px; font-size: 12.5px; }
.btn-txt { background: none; border: 0; color: var(--leaf); font-weight: 650; cursor: pointer; padding: 6px 0; font-size: 13px; }
.acoes { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.acoes .btn { flex: 1; }

/* ---------- Listas ---------- */
.lista { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--sep); text-decoration: none; color: inherit; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: default; }
.item:first-child { border-top: 0; }
button.item, a.item { cursor: pointer; }
button.item:hover, a.item:hover { background: rgba(13, 74, 52, .025); }
.item__av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--mint); color: var(--forest); font-weight: 700; font-size: 13px; }
.item__av svg { width: 20px; height: 20px; }
.item__av--ecash { background: var(--ecash-soft); color: var(--ecash); }
.item__av--cinza { background: var(--surface-2); color: var(--ink-2); }
.item__corpo { flex: 1; min-width: 0; }
.item__tit { font-weight: 620; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__sub { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__fim { text-align: right; flex: none; font-variant-numeric: tabular-nums; font-weight: 650; }
.item__fim small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-3); }
.mais { color: var(--verde); }
.menos { color: var(--ink); }
.riscado { text-decoration: line-through; color: var(--ink-3); }

.selo { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.selo--verde { background: var(--verde-soft); color: var(--verde); }
.selo--amarelo { background: var(--amarelo-soft); color: var(--amarelo); }
.selo--vermelho { background: var(--vermelho-soft); color: var(--vermelho); }
.selo--cinza { background: var(--surface-2); color: var(--ink-2); }
.selo--azul { background: var(--azul-soft); color: var(--azul); }
.selo--ecash { background: var(--ecash-soft); color: var(--ecash); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 99px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--sep-2); cursor: pointer; }
.chip--on { background: var(--forest); color: #fff; box-shadow: none; }
.chip b { font-weight: 700; opacity: .75; margin-left: 3px; }

.vazio { text-align: center; color: var(--ink-2); padding: 28px 16px; font-size: 13px; }
.vazio b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }

/* ---------- Formulários ---------- */
.campo { display: block; margin-bottom: 12px; }
.campo > span { display: block; font-size: 12px; font-weight: 650; color: var(--ink-2); margin: 0 0 5px 2px; }
.campo input, .campo select, .campo textarea, .busca { width: 100%; min-height: 46px; border-radius: var(--r-md); border: 1.5px solid var(--sep-2); background: var(--surface); padding: 10px 13px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.campo input:focus, .campo select:focus, .busca:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(31, 155, 104, .14); }
.campo small { display: block; font-size: 11.5px; color: var(--ink-3); margin: 4px 2px 0; }
.campos-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 6px 0 12px; }
.check input { width: 20px; height: 20px; accent-color: var(--leaf); flex: none; margin: 0; }
.erro { color: var(--vermelho); font-size: 12.5px; font-weight: 600; min-height: 0; margin: 4px 2px; }
.erro:empty { display: none; }
.busca { margin-bottom: 10px; }

/* ---------- Assistente de cadastro ---------- */
.passos { display: flex; gap: 6px; margin: 4px 0 16px; }
.passos i { flex: 1; height: 4px; border-radius: 4px; background: var(--sep-2); }
.passos i.on { background: var(--leaf); }
.upload { display: grid; place-items: center; text-align: center; gap: 8px; padding: 30px 18px; border-radius: var(--r-xl); border: 2px dashed var(--mint-strong); background: var(--mint); cursor: pointer; color: var(--forest); }
.upload svg { width: 44px; height: 44px; }
.upload b { font-size: 16px; }
.upload small { color: var(--ink-2); }
.upload input { display: none; }
.lendo { display: grid; place-items: center; gap: 14px; padding: 46px 16px; text-align: center; color: var(--ink-2); }
.giro { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--mint-strong); border-top-color: var(--leaf); animation: giro 0.8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.resultado { border-radius: var(--r-xl); padding: 18px; }
.resultado--ok { background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%); color: #fff; }
.resultado--fora { background: var(--amarelo-soft); color: #5a4100; }
.resultado__rot { font-size: 12px; font-weight: 650; opacity: .85; }
.resultado__val { font-size: 34px; font-weight: 780; letter-spacing: -.03em; color: var(--lime); font-variant-numeric: tabular-nums; }
.resultado__val small { font-size: 15px; color: #fff; opacity: .8; font-weight: 600; }
.resultado dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 0; font-size: 13px; }
.resultado dt { opacity: .78; }
.resultado dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.aviso { font-size: 12px; border-radius: var(--r-md); background: var(--amarelo-soft); color: #6a4c00; padding: 9px 12px; margin: 10px 0; }
.aviso--info { background: var(--azul-soft); color: #1d4a91; }
.como { counter-reset: p; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.como li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.como li::before { counter-increment: p; content: counter(p); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--forest-deep); font-weight: 750; display: grid; place-items: center; font-size: 13px; }
.como b { display: block; }

/* ---------- Pagamento ---------- */
.estab-topo { display: flex; gap: 14px; align-items: center; }
.estab-topo .item__av { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }
.valor-grande { font-size: 44px; font-weight: 780; letter-spacing: -.03em; text-align: center; border: 0; background: none; width: 100%; color: var(--ink); outline: none; font-variant-numeric: tabular-nums; padding: 8px 0; font-family: var(--font); }
.valor-grande::placeholder { color: var(--ink-3); }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 14px; }
.teclado button { min-height: 54px; border: 0; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); font-size: 22px; font-weight: 600; cursor: pointer; }
.teclado button:active { background: var(--surface-2); }
.comprovante { text-align: center; padding: 26px 18px; }
.comprovante__ok { width: 76px; height: 76px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; animation: pulo .4s ease; }
.comprovante__ok svg { width: 40px; height: 40px; }
@keyframes pulo { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.comprovante__val { font-size: 36px; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.comprovante__cod { display: inline-block; font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .12em; background: var(--surface-2); padding: 8px 14px; border-radius: var(--r-md); margin: 12px 0 4px; }
.scanner { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #000; aspect-ratio: 1; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner::after { content: ""; position: absolute; inset: 18%; border: 3px solid var(--lime); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }

/* ---------- Lojista ---------- */
.qr-card { text-align: center; }
.qr-card img { width: min(260px, 70vw); height: auto; display: block; margin: 8px auto; border-radius: 12px; }
.qr-card .comprovante__cod { font-size: 18px; }
.nova { animation: brilho 1.6s ease; }
@keyframes brilho { 0% { background: var(--verde-soft); } 100% { background: transparent; } }
.placa { display: none; }

/* ---------- Admin ---------- */
.barras { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 4px 0; }
.barras__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.barras__par { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.barras__par i { display: block; width: min(16px, 40%); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.barras__par i:first-child { background: var(--ecash); }
.barras__par i:last-child { background: var(--lime); }
.barras__rot { font-size: 11px; color: var(--ink-3); }
.legenda { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-2); margin-top: 8px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th { text-align: left; font-size: 11px; color: var(--ink-3); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--sep-2); text-transform: uppercase; letter-spacing: .03em; }
.tabela td { padding: 10px; border-bottom: 1px solid var(--sep); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .dir { text-align: right; font-variant-numeric: tabular-nums; }
.rolagem { overflow-x: auto; }
.segmento { display: flex; background: var(--surface-2); border-radius: 99px; padding: 3px; margin-bottom: 14px; }
.segmento button { flex: 1; border: 0; background: none; border-radius: 99px; padding: 8px 6px; font-weight: 650; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.segmento button.on { background: var(--surface); color: var(--forest); box-shadow: var(--shadow); }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.ficha dt { color: var(--ink-2); }
.ficha dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }

/* ---------- Barra de navegação ---------- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; width: min(496px, calc(100% - 24px)); height: var(--nav-h); display: flex; gap: 2px; padding: 5px; border-radius: 22px;
  background: color-mix(in srgb, #fff 78%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border: 1px solid color-mix(in srgb, var(--leaf) 20%, var(--sep)); box-shadow: var(--shadow-float); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 17px; text-decoration: none; color: var(--ink-2); font-size: 10.5px; font-weight: 550; min-width: 0; }
.nav a svg { width: 22px; height: 22px; }
.nav a.on { background: color-mix(in srgb, var(--leaf) 18%, transparent); color: var(--forest); font-weight: 680; }
.nav a.nav__destaque { color: #fff; background: var(--ecash); margin: 0 4px; }
.nav a.nav__destaque.on { background: var(--ecash-deep); color: #fff; }

/* ---------- Folha (modal) ---------- */
.folha-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(6, 20, 14, .42); display: flex; align-items: flex-end; justify-content: center; animation: some .15s ease; }
.folha { width: min(560px, 100%); max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); animation: sobe .22s ease; }
@media (min-width: 700px) { .folha-fundo { align-items: center; } .folha { border-radius: 24px; } }
.folha__topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.folha__topo h2 { font-size: 18px; }
.folha__x { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes sobe { from { transform: translateY(30px); opacity: 0; } }
@keyframes some { from { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--forest-deep); color: #fff; border-radius: 99px; padding: 10px 16px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-float); transition: .2s ease; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
.toast--on { opacity: 1; transform: translate(-50%, 0); }
.toast--erro { background: var(--vermelho); }
.demo-faixa { background: var(--amarelo-soft); color: #7a5600; font-size: 11.5px; font-weight: 650; text-align: center; padding: 6px 10px; }
.demo-faixa button { background: none; border: 0; color: inherit; text-decoration: underline; font-weight: 700; cursor: pointer; font-size: inherit; }

/* ---------- Entrada / landing ---------- */
.hero { margin: 8px -16px 0; padding: 26px 20px 30px; color: #fff; background: radial-gradient(140% 120% at 100% 0%, #2b7a57 0%, var(--forest) 40%, var(--forest-deep) 100%); border-radius: 0 0 32px 32px; }
@media (min-width: 560px) { .hero { margin: 8px 0 0; border-radius: 32px; } }
.hero h1 { font-size: 28px; line-height: 1.12; letter-spacing: -.025em; margin: 14px 0 10px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { opacity: .86; margin: 0 0 18px; font-size: 14.5px; }
.hero .topo__marca { color: #fff; }
.hero .topo__marca small { background: rgba(255, 255, 255, .14); color: #fff; }
.contas-demo .item__av { font-size: 11px; }

@media print {
  body * { visibility: hidden; }
  .placa, .placa * { visibility: visible; }
  .placa { display: block; position: fixed; inset: 0; text-align: center; padding-top: 40px; }
  .placa img { width: 340px; }
  .placa h1 { font-size: 34px; margin-bottom: 6px; }
}
