/* =====================================================================
   DR RECARGAS — Design system (usuário e painel ADM)
   Tema claro / escuro via [data-theme="dark"] no <html>
   ===================================================================== */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafd;
    --surface-3: #eef2f8;
    --border: #e3e8f0;
    --border-strong: #cfd7e3;
    --text: #111827;
    --text-2: #4b5563;
    --muted: #8b95a5;
    --primary: #1a56db;
    --primary-600: #1545b3;
    --primary-soft: rgba(26, 86, 219, .09);
    --primary-grad: var(--primary);
    --on-primary: #ffffff;
    --accent: #ffffff;
    --ink: #123a8c;
    --success: #12915a;
    --success-soft: rgba(18, 145, 90, .11);
    --danger: #d93a2b;
    --danger-soft: rgba(217, 58, 43, .10);
    --warning: #e09100;
    --warning-soft: rgba(224, 145, 0, .13);
    --info: #1f72c4;
    --info-soft: rgba(31, 114, 196, .10);
    --promo: #7a4cc2;
    --promo-soft: rgba(122, 76, 194, .11);
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 0 rgba(23, 24, 27, .04);
    --shadow: 0 4px 14px rgba(23, 24, 27, .07);
    --shadow-lg: 0 18px 44px rgba(23, 24, 27, .18);
    --header-h: 64px;
    --sidebar-w: 260px;
    --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #0d1117;
    --surface: #151b26;
    --surface-2: #111722;
    --surface-3: #1c2433;
    --border: #243044;
    --border-strong: #31405a;
    --text: #e8edf6;
    --text-2: #a3aec2;
    --muted: #6f7a8e;
    --primary: #4d8dff;
    --primary-600: #3a78ea;
    --primary-soft: rgba(77, 141, 255, .15);
    --on-primary: #ffffff;
    --ink: #13306e;
    --success: #34c27f;
    --success-soft: rgba(52, 194, 127, .14);
    --danger-soft: rgba(217, 58, 43, .18);
    --warning-soft: rgba(224, 145, 0, .18);
    --info: #5aa6ee;
    --info-soft: rgba(90, 166, 238, .15);
    --promo-soft: rgba(122, 76, 194, .2);
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, .3);
    --shadow: 0 6px 20px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    font-feature-settings: "tnum" 1;
    min-height: 100vh;
    min-height: 100dvh;
    transition: background-color .25s ease, color .25s ease;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, .h1, .h2, .h3 { line-height: 1.2; letter-spacing: -.015em; font-family: var(--font-display); }
.h1 { font-size: 28px; font-weight: 800; }
.h2 { font-size: 22px; font-weight: 700; }
.h3 { font-size: 16.5px; font-weight: 700; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary) !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Layout utilitário ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.hide { display: none !important; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2:not(.keep) { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-2.keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hide-mobile { display: none !important; }
}
@media (min-width: 641px) { .only-mobile { display: none !important; } }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s, transform .2s, background-color .25s;
}
.card.flush { padding: 0; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; }
.card-title i { color: var(--muted); font-size: 14px; }
.card-sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.card.hover:hover { border-color: var(--text-2); }
.card-pad-sm { padding: 14px; }
@media (max-width: 640px) { .card { padding: 16px; border-radius: 14px; } }

/* Destaque do saldo */
.hero-card {
    background: var(--ink);
    color: #ffffff;
    border: 0;
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
}
.hero-card::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 46%;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.3px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
    pointer-events: none;
}
.hero-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #6ea8ff;
}
.hero-card .label { color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; }
.hero-card .valor { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; line-height: 1.1; position: relative; z-index: 1; }
.hero-card .sub { font-size: 13px; color: rgba(255, 255, 255, .72); position: relative; z-index: 1; }
.hero-card .sub strong { color: #ffffff; }
.hero-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-actions .btn { background: rgba(255,255,255,.07); color: #ffffff; border-color: rgba(255,255,255,.16); }
.hero-actions .btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.hero-actions .btn.solid { background: #fff; border-color: #fff; color: var(--primary-600); }
.hero-actions .btn.solid:hover { background: #eaf1ff; }
@media (max-width: 640px) { .hero-card .valor { font-size: 32px; } .hero-actions .btn { flex: 1; padding: 10px 8px; } }

/* KPIs */
.stat { display: flex; gap: 14px; align-items: flex-start; }
.stat-icon {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary); font-size: 18px;
}
.stat-icon.success { background: var(--success-soft); color: var(--success); }
.stat-icon.danger { background: var(--danger-soft); color: var(--danger); }
.stat-icon.warning { background: var(--warning-soft); color: var(--warning); }
.stat-icon.info { background: var(--info-soft); color: var(--info); }
.stat-icon.promo { background: var(--promo-soft); color: var(--promo); }
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.stat-value { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 1px; word-break: break-word; }
.stat-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .stat-value { font-size: 18px; } .stat-icon { width: 38px; height: 38px; font-size: 16px; } }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px;
    cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s, box-shadow .15s, opacity .15s;
    white-space: nowrap; user-select: none; text-decoration: none; line-height: 1.2;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #059669; border-color: #059669; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #111; }
.btn-soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn-soft:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn-whatsapp { background: #1faa59; border-color: #1faa59; color: #fff; }
.btn-whatsapp:hover { background: #178e49; border-color: #178e49; color: #fff; }
.btn-whatsapp i { font-size: 1.2em; }
.btn-soft-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-soft-success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 10px; }
.btn-lg { padding: 14px 20px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.btn-icon.btn-sm { width: 32px; height: 32px; border-radius: 9px; }
.btn .fa-spin { animation-duration: .8s; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
    width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
    padding: 11px 14px; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 40px; }
.input-icon .btn-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 36px; height: 36px; cursor: pointer; border-radius: 9px; }
.input-icon .btn-eye:hover { color: var(--primary); }
.input-lg { font-size: 22px; font-weight: 700; padding: 14px 16px; font-family: var(--font-display); letter-spacing: .01em; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--success); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 1px; flex-shrink: 0; }

/* ---------- Badges / chips ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge i { font-size: 10.5px; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warning-soft); color: #d97706; }
html[data-theme="dark"] .badge-warning { color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-promo { background: var(--promo-soft); color: var(--promo); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-info .fa-spinner { animation: fa-spin 1.4s linear infinite; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2); transition: .15s; }
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--surface); }

/* ---------- Alertas ---------- */
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid transparent; align-items: flex-start; }
.alert i { margin-top: 2px; }
.alert-info { background: var(--info-soft); color: var(--text); border-color: rgba(14,165,233,.25); }
.alert-info > i { color: var(--info); }
.alert-success { background: var(--success-soft); border-color: rgba(16,185,129,.25); }
.alert-success > i { color: var(--success); }
.alert-warning { background: var(--warning-soft); border-color: rgba(245,158,11,.3); }
.alert-warning > i { color: var(--warning); }
.alert-danger { background: var(--danger-soft); border-color: rgba(239,68,68,.25); }
.alert-danger > i { color: var(--danger); }

/* ---------- Tabelas ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12.5px; color: var(--text-2); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.card.flush .table th:first-child, .card.flush .table td:first-child { padding-left: 20px; }
.card.flush .table th:last-child, .card.flush .table td:last-child { padding-right: 20px; }
@media (max-width: 640px) {
    .table-cards thead { display: none; }
    .table-cards tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .table-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0 !important; border: 0; text-align: right; }
    .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
    .table-cards td.actions { justify-content: flex-end; padding-top: 8px !important; }
    .table-cards td.actions::before { content: none; }
}

/* ---------- Listas ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-click .list-item { width: 100%; padding: 14px 16px; background: none; border: 0; border-bottom: 1px solid var(--border); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background .12s; }
.list-click .list-item:last-child { border-bottom: 0; }
.list-click .list-item:hover { background: var(--surface-2); }
.list-click .list-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.ver-detalhes { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.ver-detalhes i { font-size: 9.5px; transition: transform .15s; }
.list-click .list-item:hover .ver-detalhes { text-decoration: underline; text-underline-offset: 3px; }
.list-click .list-item:hover .ver-detalhes i { transform: translateX(3px); }
.list-item:last-child { border-bottom: 0; }
.list-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-size: 16px; background: var(--surface-3); color: var(--text-2); }
.list-icon.in { background: var(--success-soft); color: var(--success); }
.list-icon.out { background: var(--danger-soft); color: var(--danger); }
.list-icon.pending { background: var(--warning-soft); color: var(--warning); }
.list-title { font-weight: 700; font-size: 14.5px; }
.list-sub { font-size: 12.5px; color: var(--text-2); }
.list-amount { font-weight: 800; white-space: nowrap; text-align: right; }
.list-amount.in { color: var(--success); }
.list-amount.out { color: var(--danger); }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface-3); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 9px 14px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); font-weight: 650; font-size: 13.5px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; transition: .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tab .badge { padding: 1px 7px; }
.tab-panel { display: none; animation: fadeUp .25s ease; }
.tab-panel.active { display: block; }

/* ---------- Vazio / carregando ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--text-2); }
.empty i { font-size: 34px; color: var(--muted); margin-bottom: 12px; display: block; }
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.loader { display: grid; place-items: center; padding: 60px 0; color: var(--muted); font-size: 22px; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
.skeleton-card { height: 120px; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.fade-in { animation: fadeUp .3s ease both; }

/* ---------- Paginação ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 14px 0 4px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 650; font-size: 13px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--text); border-color: var(--text); color: var(--surface); }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(2, 6, 23, .55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 520px;
    max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(.98); transition: transform .22s ease;
}
.modal.lg { max-width: 760px; }
.modal-backdrop.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
@media (max-width: 640px) {
    .modal-backdrop { align-items: flex-end; padding: 0; }
    .modal { border-radius: 22px 22px 0 0; max-height: 92dvh; transform: translateY(100%); }
    .modal-foot .btn { flex: 1; }
}

/* ---------- Toast ---------- */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 24px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: pop .22s ease; pointer-events: auto; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--info); }
.toast.warning i { color: var(--warning); }
.toast.saindo { opacity: 0; transform: translateY(-8px); transition: .25s; }

/* ---------- Avatar ---------- */
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-family: var(--font-display); font-weight: 700; font-size: 15px; flex-shrink: 0; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }

/* ---------- Operadoras ---------- */
.op-logo { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; flex-shrink: 0; text-transform: uppercase; }
.op-claro { background: #da291c; }
.op-tim { background: #004691; }
.op-vivo { background: #660099; }
.op-oi { background: #ffd400; color: #1f1f1f; }
.op-generic { background: #4a4f55; }

/* ---------- Header / navegação compartilhados ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px;
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 14px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: .15s; font-size: 16px; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn .dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.balance-pill { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px; border-radius: 10px; background: var(--primary); color: #ffffff; font-weight: 700; font-size: 14px; cursor: pointer; border: 0; white-space: nowrap; }
.balance-pill i { color: rgba(255,255,255,.85); }
html[data-theme="dark"] .balance-pill { background: var(--surface-3); color: var(--text); }
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w); z-index: 80;
    background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform .25s ease;
}
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
.sidebar-head { padding: 18px; border-bottom: 1px solid var(--border); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 12px; font-weight: 700; color: var(--muted); padding: 16px 12px 6px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: .15s; cursor: pointer; }
.nav-link i { width: 20px; text-align: center; font-size: 15px; }
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.active { background: var(--surface-3); color: var(--text); font-weight: 700; }
.nav-link.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary); }
.nav-link.active i { color: var(--primary); }
.nav-link .badge { margin-left: auto; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.overlay { position: fixed; inset: 0; background: rgba(2,6,23,.45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }

.app-main { padding: 20px 18px 110px; max-width: 1180px; margin: 0 auto; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.page-head p { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
#view { min-height: 50vh; }
#view.carregando { opacity: .55; pointer-events: none; transition: opacity .15s; }

@media (min-width: 1024px) {
    .sidebar { transform: none; }
    .com-sidebar .topbar, .com-sidebar .app-main-wrap { margin-left: var(--sidebar-w); }
    .com-sidebar .menu-toggle { display: none; }
    .overlay { display: none; }
    .app-main { padding: 26px 28px 60px; }
}

/* Barra inferior (mobile) */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: space-around;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-size: 10.5px; font-weight: 700; border-radius: 12px; transition: .15s; }
.bottom-nav a i { font-size: 18px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.destaque i { width: 48px; height: 48px; margin-top: -22px; border-radius: 14px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; border: 4px solid var(--bg); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }

/* Painel de notificações */
.notif-panel {
    position: fixed; top: calc(var(--header-h) + 8px); right: 12px; width: 380px; max-width: calc(100vw - 24px); max-height: min(560px, calc(100dvh - 100px));
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    z-index: 900; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: .18s;
}
.notif-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); gap: 8px; }
.notif-list { overflow-y: auto; flex: 1; }
.notif-item { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; transition: background .12s; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); }
.notif-item.unread::before { content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); transform: translateY(-50%); }
.notif-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.notif-ico.success { background: var(--success-soft); color: var(--success); }
.notif-ico.danger { background: var(--danger-soft); color: var(--danger); }
.notif-ico.warning { background: var(--warning-soft); color: var(--warning); }
.notif-ico.info { background: var(--info-soft); color: var(--info); }
.notif-ico.promo { background: var(--promo-soft); color: var(--promo); }
.notif-title { font-weight: 700; font-size: 13.5px; }
.notif-msg { font-size: 13px; color: var(--text-2); margin-top: 2px; word-break: break-word; }
.notif-time { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.notif-foot { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }

/* Utilitário de valores rápidos */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amount-btn { padding: 14px 8px; border-radius: 10px; border: 1.5px solid var(--border-strong); background: var(--surface); font-family: var(--font-display); font-weight: 700; font-size: 16px; cursor: pointer; transition: .15s; color: var(--text); }
.amount-btn:hover { border-color: var(--primary); color: var(--primary); }
.amount-btn.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* Escolhas (cards selecionáveis) */
.choice { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; transition: .15s; background: var(--surface); display: flex; align-items: center; gap: 12px; }
.choice:hover { border-color: var(--border-strong); }
.choice.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.choice.disabled { opacity: .5; cursor: not-allowed; }

/* Resumo de valores */
.summary { background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.summary-row strong { color: var(--text); }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 10px; font-size: 16px; font-weight: 800; color: var(--text); font-family: var(--font-display); }

/* Barra de progresso */
.progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary-grad); border-radius: 999px; transition: width .6s ease; }

/* Gráfico de barras simples */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .bar span { width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: var(--primary-grad); min-height: 3px; transition: height .5s ease; }
.bars .bar span.neg { background: var(--danger); }
.bars .bar small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* Códigos / copiar */
.copy-box { display: flex; gap: 8px; align-items: stretch; }
.copy-box .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.code-area { width: 100%; min-height: 84px; resize: none; font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }

/* Tela de autenticação */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.auth-side { display: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 28px 18px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card { padding: 30px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 960px) {
    .auth-wrap { grid-template-columns: 1.05fr 1fr; }
    .auth-side { display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: var(--ink); color: #ffffff; position: relative; overflow: hidden; }
    .auth-side::after { content: ''; position: absolute; inset: 0 0 0 45%; background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.3px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); mask-image: linear-gradient(90deg, transparent, #000 75%); pointer-events: none; }
    .auth-side h2 { font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; max-width: 520px; }
    .auth-side h2 em { font-style: normal; color: #8fbcff; }
    .auth-side p { opacity: .9; font-size: 16px; margin-top: 12px; max-width: 440px; }
    .auth-feats { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; position: relative; z-index: 1; }
    .auth-feats div { display: flex; gap: 12px; align-items: center; font-weight: 600; }
    .auth-feats i { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
}
.fab-whatsapp { position: fixed; right: 18px; bottom: 18px; height: 50px; padding: 0 16px 0 12px; border-radius: 999px; background: #1faa59; color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 700; box-shadow: 0 10px 24px rgba(37,211,102,.35); z-index: 40; }
.fab-whatsapp i { font-size: 24px; }

/* Raspadinha */
.scratch-wrap { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: none; }
.scratch-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: linear-gradient(135deg, #fde68a, #fbbf24); }
.scratch-grid.dourada { background: linear-gradient(135deg, #fef3c7, #f59e0b 60%, #b45309); }
.scratch-cell { background: rgba(255,255,255,.92); border-radius: 12px; display: grid; place-items: center; font-weight: 850; font-size: clamp(13px, 4vw, 17px); color: #78350f; text-align: center; padding: 4px; }
.scratch-cell.win { background: #10b981; color: #fff; animation: pop .4s ease; }
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.scratch-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; text-align: center; padding: 24px; font-weight: 700; }
.scratch-placeholder i { font-size: 42px; margin-bottom: 10px; display: block; }

/* Comprovante */
.receipt { max-width: 440px; margin: 0 auto; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.receipt-line span:first-child { color: var(--text-2); }

/* Impressão */
@media print {
    .topbar, .sidebar, .bottom-nav, .overlay, .notif-panel, .no-print { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; }
}

/* Layout principal + coluna lateral */
.grid-side { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .grid-side { grid-template-columns: 1fr; } }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 4px; }

/* ---------- Recarga: layout responsivo ---------- */
.choice { text-align: left; width: 100%; font: inherit; color: inherit; }
.rc-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.rc-resumo { position: sticky; top: 80px; }
.rc-valor { padding: 12px 14px; }
.rc-valor .bold { font-size: 15px; }
.op-logo.op-mini { width: 40px; height: 40px; border-radius: 12px; font-size: 9.5px; }
.op-logo.op-img { background: #fff; border: 1px solid var(--border); padding: 4px; overflow: hidden; }
.op-logo.op-img img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.rc-barra { display: none; }
@media (max-width: 900px) {
    .rc-grid { grid-template-columns: 1fr; }
    .rc-resumo { position: static; }
    .rc-barra {
        display: flex; align-items: center; gap: 12px; position: fixed; left: 10px; right: 10px;
        bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 55; padding: 10px 12px 10px 16px;
        background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
        animation: fadeUp .25s ease;
    }
    .rc-barra.hide { display: none !important; }
    #pg-recarga { padding-bottom: 80px; }
}
@media (min-width: 1024px) and (max-width: 900px) { .rc-barra { bottom: 16px; } }

/* ---------- Validação de formulários ---------- */
.campo-erro, .campo-erro:focus { border-color: var(--danger) !important; box-shadow: 0 0 0 4px var(--danger-soft) !important; }
.erro-campo { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: 12.5px; font-weight: 600; margin-top: 6px; animation: fadeUp .2s ease; }
.erro-campo::before { content: '\f06a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.rc-valor { gap: 12px; }
.rc-valor-info { min-width: 0; }
.rc-valor-face { font-family: var(--font-display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.rc-valor-eco { font-size: 12.5px; font-weight: 700; color: var(--success); white-space: nowrap; }
.rc-valor-preco { text-align: right; flex-shrink: 0; padding: 6px 10px; border-radius: 9px; background: var(--primary-soft); }
.rc-valor-preco span { display: block; font-size: 11px; color: var(--text-2); font-weight: 600; }
.rc-valor-preco strong { color: var(--primary); font-size: 15px; white-space: nowrap; }
.rc-valor.active .rc-valor-preco { background: var(--primary); }
.rc-valor.active .rc-valor-preco span, .rc-valor.active .rc-valor-preco strong { color: var(--on-primary); }
@media (max-width: 380px) { .rc-valor { padding: 10px; gap: 10px; } .op-logo.op-mini { width: 34px; height: 34px; font-size: 8.5px; } .rc-valor-face { font-size: 15px; } }

/* ---------- Segmentos (abas grandes) ---------- */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; }
.seg-wrap { flex-wrap: wrap; }
.seg-item { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-weight: 700; font-size: 14px; cursor: pointer; text-align: center; transition: .15s; white-space: nowrap; }
.seg-item:hover { color: var(--text); }
.seg-item.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg-item.active i { color: var(--primary); }
.seg-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 11.5px; display: inline-grid; place-items: center; }
@media (max-width: 480px) { .seg-item { font-size: 13px; padding: 9px 6px; gap: 6px; } }

/* ---------- Código de compra ---------- */
.codigo-compra { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px 12px; border-radius: 12px; background: var(--surface-2); border: 1.5px dashed var(--border-strong); text-align: center; }
.codigo-compra.destaque { background: var(--primary-soft); border-color: var(--primary); }
.codigo-rotulo { font-size: 13px; color: var(--text-2); font-weight: 600; }
.codigo-valor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 28px; font-weight: 800; letter-spacing: .08em; color: var(--text); user-select: all; }
.passos { margin: 0; padding-left: 0; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 8px; }
.passos li { counter-increment: p; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.passos li::before { content: counter(p); flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }

/* ---------- Temas sazonais (ADM) ---------- */
.tema-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tema-opcao { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: .15s; background: var(--surface); }
.tema-opcao:hover { border-color: var(--border-strong); }
.tema-opcao.active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.switch > span:last-child { line-height: 1.35; }
html[data-theme="dark"] .hero-card { border: 1px solid var(--border); }

/* ---------- Cartela fidelidade ---------- */
.fidel { display: flex; flex-direction: column; gap: 14px; }
.fidel-selos { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.fidel-selo { aspect-ratio: 1; max-width: 52px; width: 100%; border-radius: 50%; border: 2px dashed var(--border-strong); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); background: var(--surface-2); }
.fidel-selo.feito { border: 0; background: var(--primary); color: var(--on-primary); animation: pop .35s ease both; }
.fidel-selo.premio:not(.feito) { border-style: solid; border-color: var(--success); color: var(--success); background: var(--success-soft); }
@media (max-width: 420px) { .fidel-selos { gap: 5px; } .fidel-selo { font-size: 11px; } }

/* ---------- Página inicial pública ---------- */
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; width: 100%; }
.lp-top { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.lp-main.app-main { max-width: 1120px; display: flex; flex-direction: column; gap: 44px; padding-bottom: 60px; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-top: 18px; }
.lp-hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 12px 0 14px; }
.lp-hero h1 em { font-style: normal; color: var(--primary); }
.lp-hero p { font-size: 17px; color: var(--text-2); max-width: 520px; }
.lp-tag { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; }
.lp-oferta { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.lp-oferta::after { content: ''; position: absolute; inset: 0 0 0 40%; background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.3px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.lp-oferta .small { opacity: .75; font-weight: 600; }
.lp-oferta-op { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin: 4px 0; }
.lp-oferta-face { opacity: .85; }
.lp-oferta-paga { font-family: var(--font-display); font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; position: relative; z-index: 1; }
.lp-oferta-paga span { display: block; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0; opacity: .7; margin-bottom: 4px; }
.lp-oferta-eco { align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 700; font-size: 13px; }
.lp-precos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.lp-tabela td, .lp-tabela th { padding: 10px 16px; }
.lp-passo { display: flex; flex-direction: column; gap: 8px; }
.lp-num { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.lp-servico { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 14px; }
.lp-servico strong { color: var(--primary); margin-left: 6px; }
.lp-faq details { border-bottom: 1px solid var(--border); }
.lp-faq details:last-child { border-bottom: 0; }
.lp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; cursor: pointer; }
.lp-faq summary i { color: var(--muted); font-size: 12px; transition: transform .2s; }
.lp-faq details[open] summary i { transform: rotate(180deg); }
.lp-faq p { padding: 0 18px 16px; color: var(--text-2); }
.lp-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px; border-radius: var(--radius-lg); background: var(--primary); color: #fff; }
.lp-cta .btn { background: #fff; color: var(--primary-600); border-color: #fff; }
.lp-rodape { border-top: 1px solid var(--border); padding: 22px 0 90px; }
.lp-rodape a { color: var(--text-2); }
.lp-rodape .row-wrap { gap: 16px; }
@media (max-width: 820px) { .lp-hero { grid-template-columns: 1fr; } .lp-main.app-main { gap: 34px; } }
@media (max-width: 640px) { .lp-cta .btn { width: 100%; } .lp-tabela.table-cards td { text-align: left; } }

/* ---------- Aviso de permissão de notificações ---------- */
.notif-aviso { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 950; display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: fadeUp .3s ease both; max-width: 460px; margin: 0 auto; }
.notif-aviso-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary); font-size: 17px; animation: sino 1.4s ease 0.4s 2; }
.notif-aviso-ic.off { background: var(--danger-soft); color: var(--danger); animation: none; }
.notif-aviso .small { margin-top: 2px; line-height: 1.45; }
@keyframes sino { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@media (min-width: 1024px) { .notif-aviso { left: auto; right: 24px; bottom: 24px; margin: 0; } }

/* ---------- Resgate de comissões ---------- */
.resgate-saldo { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.resgate-saldo span { opacity: .8; font-size: 13.5px; font-weight: 600; }
.resgate-saldo strong { font-family: var(--font-display); font-size: 24px; }
.destino { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: .15s; }
.destino:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.destino:disabled { opacity: .55; cursor: not-allowed; }
.destino-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 18px; flex-shrink: 0; }
.destino-ic.pix { background: rgba(50, 188, 173, .14); color: #1a9e8f; }
.destino-tit { display: block; font-weight: 700; }
.destino-sub { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.destino-taxa { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--warning-soft); color: #b26a00; text-align: center; max-width: 110px; }
.destino-taxa.gratis { background: var(--success-soft); color: var(--success); }
.resgate-ok { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 28px; background: var(--success-soft); color: var(--success); animation: pop .4s ease; }
.resgate-regra { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.resgate-regra > i { color: var(--primary); font-size: 18px; margin-top: 2px; }
@media (max-width: 420px) { .destino-taxa { max-width: 80px; } }

/* ---------- Modo ADM (acessando a conta do cliente) ---------- */
.faixa-adm { position: fixed; top: 0; left: 0; right: 0; height: 40px; z-index: 1100; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #f59e0b; color: #1a1205; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.faixa-adm .grow { overflow: hidden; text-overflow: ellipsis; }
.faixa-adm .btn { background: #1a1205; color: #fff; border-color: #1a1205; padding: 5px 10px; }
body.modo-adm { padding-top: 40px; }
.modo-adm .topbar { top: 40px; }
.modo-adm .sidebar { top: 40px; }
.modo-adm .notif-panel { top: calc(var(--header-h) + 48px); }
.aviso-novos { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 60; border: 0; border-radius: 999px; padding: 9px 16px; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-lg); cursor: pointer; animation: fadeUp .25s ease both; }
@media (min-width: 1024px) { .aviso-novos { left: calc(50% + var(--sidebar-w) / 2); } }

/* Destaque: Jogo dos Copos (tela inicial) */
.jogo-destaque {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-lg, 16px);
    background: linear-gradient(120deg, #7a1020 0%, #b3182d 55%, #d4442f 100%); color: #fff; text-decoration: none;
    position: relative; overflow: hidden; box-shadow: 0 6px 18px rgba(179, 24, 45, .28);
}
.jogo-destaque:hover { color: #fff; filter: brightness(1.06); }
.jogo-destaque-img { width: 72px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.jogo-destaque-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 13px; color: rgba(255,255,255,.88); }
.jogo-destaque-txt strong { font-family: var(--font-display); font-size: 20px; color: #fff; line-height: 1.15; }
.jogo-destaque-tag { align-self: flex-start; background: #ffd24a; color: #5a3b00; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; }
.jogo-destaque-go { flex: none; background: #fff; color: #b3182d; font-weight: 800; font-size: 13px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 560px) {
    .jogo-destaque { padding: 12px 14px; gap: 10px; }
    .jogo-destaque-img { width: 56px; height: 56px; }
    .jogo-destaque-txt strong { font-size: 17px; }
    .jogo-destaque-go { padding: 8px 11px; font-size: 12px; }
    .jogo-destaque-go i { display: none; }
}

/* promoção nos valores */
.rc-promo-tag { margin: 3px 0 2px; }
.rc-promo-tag .badge { font-size: 11px; padding: 2px 8px; }
.rc-valor-preco s { display: block; font-size: 12px; color: var(--text-2); opacity: .8; line-height: 1.2; }
.rc-valor-preco em { display: block; font-style: normal; font-size: 10.5px; color: var(--text-2); margin-top: 2px; white-space: nowrap; }
.rc-valor.active .rc-valor-preco s, .rc-valor.active .rc-valor-preco em { color: var(--on-primary); opacity: .85; }
.promo-home { display: grid; gap: 8px; }
.promo-home a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; background: var(--promo-soft); }
.promo-home .pi { flex: 1; min-width: 0; }
.promo-home .pi b { font-size: 15px; display: block; }
.promo-home .pi small { color: var(--text-2); font-size: 11.5px; }
.promo-home .pp { text-align: right; white-space: nowrap; }
.promo-home .pp s { display: block; font-size: 12px; color: var(--text-2); }
.promo-home .pp strong { color: var(--promo); font-size: 16px; }

.rc-promo-ate { font-size: 11.5px; color: var(--text-2); margin-top: 3px; white-space: nowrap; }

.rc-promo-tag { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-promo-ate { margin-top: 0; font-size: 11px; }
