/* =========================================================
   Viral Click — Design system
   ========================================================= */
:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #f1f2f9;
  --surface-3: #e9ebf5;
  --border: #e3e6f0;
  --text: #141828;
  --text-2: #3c4260;
  --muted: #6d7494;
  --brand: #7c3aed;
  --brand-2: #ec4899;
  --brand-soft: rgba(124, 58, 237, .1);
  --grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #ec4899 100%);
  --success: #16a34a; --success-soft: rgba(22, 163, 74, .12);
  --warning: #d97706; --warning-soft: rgba(217, 119, 6, .13);
  --danger: #dc2626;  --danger-soft: rgba(220, 38, 38, .11);
  --info: #2563eb;    --info-soft: rgba(37, 99, 235, .11);
  --purple: #9333ea;  --purple-soft: rgba(147, 51, 234, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 60px rgba(16, 24, 40, .18);
  --sidebar: 264px;
  --topbar: 68px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0b14;
  --surface: #12142a;
  --surface-2: #181b35;
  --surface-3: #20243f;
  --border: #252a48;
  --text: #eceefb;
  --text-2: #c4c8e4;
  --muted: #8a91b5;
  --brand-soft: rgba(139, 92, 246, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; } h4 { font-size: .98rem; }
p { margin: 0 0 1rem; }
code, pre { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .86em; }
code { background: var(--surface-2); padding: .12em .4em; border-radius: 6px; }
pre { background: var(--surface-2); border: 1px solid var(--border); padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.text-muted { color: var(--muted); } .text-success { color: var(--success); } .text-danger { color: var(--danger); }
.text-warning { color: var(--warning); } .text-right { text-align: right; } .text-center { text-align: center; }
.small { font-size: .85em; } .nowrap { white-space: nowrap; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.fw-bold { font-weight: 700; } .mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; } .w-100 { width: 100%; }
.hidden { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout app ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; transition: transform .25s ease;
}
.sidebar-brand { height: var(--topbar); display: flex; align-items: center; gap: 10px; padding: 0 22px; border-bottom: 1px solid var(--border); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(192, 38, 211, .35); }
.logo img { max-height: 34px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px 24px; }
.nav-section { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 16px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-2);
  font-weight: 600; font-size: .93rem; margin-bottom: 2px; position: relative; transition: background .15s, color .15s;
}
.nav-link i { font-size: 1.12rem; width: 20px; text-align: center; color: var(--muted); transition: color .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--brand-soft); color: var(--brand); }
.nav-link.active i { color: var(--brand); }
[data-theme="dark"] .nav-link.active { color: #c4b5fd; } [data-theme="dark"] .nav-link.active i { color: #c4b5fd; }
.nav-link .count { margin-left: auto; background: var(--brand-2); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); }
.balance-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 14px 16px; position: relative; overflow: hidden; }
.balance-card::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); right: -40px; top: -50px; }
.balance-card small { opacity: .85; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.balance-card strong { display: block; font-size: 1.35rem; margin: 2px 0 8px; }
.balance-card a { color: #fff; font-weight: 700; font-size: .85rem; background: rgba(255,255,255,.2); padding: 6px 12px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.balance-card a:hover { background: rgba(255,255,255,.3); text-decoration: none; }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar); display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.topbar-title { font-weight: 700; font-size: 1.08rem; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; font-size: 1.1rem; transition: .15s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.menu-toggle { display: none; }
.chip-balance { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 11px; font-weight: 700; color: var(--text); }
.chip-balance i { color: var(--brand); }
.chip-balance:hover { text-decoration: none; border-color: var(--brand); }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; color: var(--text); font: inherit; padding: 4px; border-radius: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex-shrink: 0; }
.user-btn .meta { text-align: left; line-height: 1.2; }
.user-btn .meta b { display: block; font-size: .9rem; }
.user-btn .meta small { color: var(--muted); font-size: .76rem; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60;
}
.dropdown.open { display: block; animation: pop .15s ease; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font: inherit; font-weight: 600; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.dropdown .sep { height: 1px; background: var(--border); margin: 6px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.content { padding: 28px; flex: 1; width: 100%; max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.app-footer { padding: 18px 28px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.app-footer a { color: var(--muted); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(5, 6, 15, .55); z-index: 35; }
.impersonate-bar { background: var(--warning); color: #fff; padding: 8px 28px; font-weight: 600; font-size: .88rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.impersonate-bar a { color: #fff; text-decoration: underline; }

/* ---------- Cards / grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.card-head h3 i { color: var(--brand); }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 18px; }

.stat { padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.stat-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-icon.pink { background: rgba(236, 72, 153, .12); color: var(--brand-2); }
.stat-icon.green { background: var(--success-soft); color: var(--success); }
.stat-icon.blue { background: var(--info-soft); color: var(--info); }
.stat-icon.orange { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.stat-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }

.hero-card { background: var(--grad); color: #fff; border: 0; position: relative; overflow: hidden; }
.hero-card::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.1); right: -80px; top: -110px; }
.hero-card::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.07); right: 120px; bottom: -110px; }
.hero-card .card-body { position: relative; z-index: 1; }
.hero-card h2 { color: #fff; }
.hero-card p { opacity: .9; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; border: 1px solid transparent; transition: .15s; white-space: nowrap;
  color: var(--text); background: var(--surface-2); line-height: 1.3;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(192, 38, 211, .28); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(192, 38, 211, .4); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-soft-danger { background: var(--danger-soft); color: var(--danger); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
[data-theme="dark"] .btn-soft { color: #c4b5fd; }
.btn-white { background: #fff; color: #5b21b6; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-xs { padding: 3px 9px; font-size: .76rem; border-radius: 7px; gap: 5px; }
.btn-lg { padding: 13px 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Formulários ---------- */
.form-group { margin-bottom: 16px; }
label, .label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--text-2); }
.input, .select, .textarea, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input:not([type]), input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: .93rem; transition: border-color .15s, box-shadow .15s; outline: none;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238a91b5' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 17px; height: 17px; vertical-align: middle; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer; margin: 0; }
.help { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.input-group { display: flex; }
.input-group > input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group > .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.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; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; margin: 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .slider { width: 42px; height: 24px; background: var(--surface-3); border-radius: 99px; position: relative; transition: .2s; flex-shrink: 0; }
.switch .slider::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::after { left: 21px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table .link-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-cat td { background: var(--surface-2) !important; font-weight: 700; color: var(--text); }

/* ---------- Badges / alertas ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-brand { background: var(--grad); color: #fff; }
[data-theme="dark"] .badge-info { color: #93c5fd; } [data-theme="dark"] .badge-purple { color: #d8b4fe; }
[data-theme="dark"] .badge-success { color: #86efac; } [data-theme="dark"] .badge-warning { color: #fcd34d; } [data-theme="dark"] .badge-danger { color: #fca5a5; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; border: 1px solid transparent; }
.alert i { font-size: 1.1rem; margin-top: 1px; }
.alert span { flex: 1; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
[data-theme="dark"] .alert-success { color: #86efac; } [data-theme="dark"] .alert-danger { color: #fca5a5; }
[data-theme="dark"] .alert-warning { color: #fcd34d; } [data-theme="dark"] .alert-info { color: #93c5fd; }
.alert-close { background: none; border: 0; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .6; padding: 0 2px; }
.alert-close:hover { opacity: 1; }

.announcement { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin-bottom: 12px; }
.announcement .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }
.announcement h4 { margin: 0 0 3px; }
.announcement p { margin: 0; color: var(--text-2); font-size: .9rem; }

/* ---------- Tabs / pills ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 11px 16px; font-weight: 700; font-size: .9rem; color: var(--muted); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-family: inherit; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .active { color: var(--brand); border-bottom-color: var(--brand); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.pills a { padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: .85rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.pills a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.pills a.active { background: var(--grad); color: #fff; border-color: transparent; }
.pills a .n { opacity: .7; margin-left: 4px; }
.tab-pane { display: none; } .tab-pane.active { display: block; }

/* ---------- Toolbar / filtros ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input-icon { flex: 1; min-width: 200px; max-width: 380px; }
.toolbar select { width: auto; min-width: 160px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(5, 6, 15, .6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; backdrop-filter: blur(3px); }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 18px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .2s ease; border: 1px solid var(--border); }
.modal-box.lg { max-width: 820px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Diversos ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty i { font-size: 2.6rem; display: block; margin-bottom: 10px; opacity: .55; }
.empty h3 { color: var(--text); }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .86rem; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination a.active { background: var(--grad); color: #fff; border-color: transparent; }
.pagination span { border: 0; background: none; }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.copy-box { display: flex; gap: 8px; align-items: stretch; }
.copy-box input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.service-info { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.service-info h4 { display: flex; gap: 8px; align-items: center; }
.service-desc { white-space: pre-line; color: var(--text-2); font-size: .9rem; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.total-box { background: var(--brand-soft); border: 1px dashed var(--brand); border-radius: var(--radius); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; margin: 6px 0 18px; }
.total-box strong { font-size: 1.5rem; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.method { position: relative; cursor: pointer; margin: 0; }
.method input { position: absolute; opacity: 0; }
.method .box { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; background: var(--surface); transition: .15s; }
.method .box i { font-size: 1.6rem; color: var(--brand); }
.method .box b { display: block; color: var(--text); }
.method .box small { color: var(--muted); font-weight: 500; }
.method input:checked + .box { border-color: var(--brand); background: var(--brand-soft); }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.quick-amounts button { padding: 7px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.quick-amounts button:hover { border-color: var(--brand); color: var(--brand); }
.qr-wrap { background: #fff; padding: 16px; border-radius: 16px; display: inline-block; box-shadow: var(--shadow); }
.qr-wrap img { width: 240px; height: 240px; display: block; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,119,6,.6); } 70% { box-shadow: 0 0 0 10px rgba(217,119,6,0); } 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); } }
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 13px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.msg.me { align-self: flex-end; background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.msg .who { font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 5px; display: flex; gap: 8px; justify-content: space-between; }
.msg .body { white-space: pre-wrap; word-wrap: break-word; }
.msg .att { margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .85rem; }
.level-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-weight: 800; font-size: .78rem; color: #fff; }
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.legal { max-width: 860px; }
.legal h2 { margin-top: 1.8rem; font-size: 1.15rem; }
.legal p, .legal li { color: var(--text-2); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: var(--grad); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.08); right: -180px; top: -160px; }
.auth-side::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); left: -120px; bottom: -140px; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .logo { color: #fff; }
.auth-side .logo-mark { background: rgba(255,255,255,.2); box-shadow: none; }
.auth-side h2 { font-size: 2.2rem; color: #fff; max-width: 460px; letter-spacing: -.03em; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; }
.auth-side li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-weight: 600; }
.auth-side li i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 1.75rem; }
.auth-box .sub { color: var(--muted); margin-bottom: 26px; }
.auth-links { display: flex; justify-content: space-between; font-size: .88rem; margin: -4px 0 18px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.theme-float { position: fixed; top: 16px; right: 16px; z-index: 10; }

/* ---------- Site público ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-nav .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; gap: 24px; }
.site-nav nav { display: flex; gap: 22px; margin-left: 20px; }
.site-nav nav a { color: var(--text-2); font-weight: 600; font-size: .93rem; }
.site-nav nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(192, 38, 211, .22), transparent 65%); top: -300px; right: -200px; pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .18), transparent 65%); bottom: -320px; left: -200px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 3.3rem; letter-spacing: -.04em; line-height: 1.06; margin-bottom: 18px; }
.hero p.lead { font-size: 1.12rem; color: var(--text-2); max-width: 540px; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .82rem; margin-bottom: 18px; }
[data-theme="dark"] .eyebrow { color: #d8b4fe; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.hero-stats span { color: var(--muted); font-size: .86rem; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 22px; transform: rotate(1.5deg); }
.mock .row { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 10px; }
.mock .row i { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; }
.mock .row b { display: block; font-size: .92rem; }
.mock .row small { color: var(--muted); }
.mock .row .badge { margin-left: auto; }
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: 2.2rem; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.feature { padding: 26px; }
.feature .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
[data-theme="dark"] .feature .ic { color: #d8b4fe; }
.feature p { color: var(--muted); margin: 0; }
.networks { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.network { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
.network i { font-size: 1.3rem; }
.steps { counter-reset: s; }
.step { padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
.cta { background: var(--grad); border-radius: 26px; padding: 56px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta h2 { color: #fff; font-size: 2.2rem; letter-spacing: -.03em; }
.cta p { opacity: .9; font-size: 1.08rem; margin-bottom: 26px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq-item summary { padding: 17px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--brand); line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .a { padding: 0 20px 18px; color: var(--text-2); }
.site-footer { border-top: 1px solid var(--border); padding: 50px 0 30px; background: var(--surface); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: .86rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.site-footer a { display: block; color: var(--text-2); margin-bottom: 8px; font-size: .92rem; }
.site-footer .bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); z-index: 80; }
.whatsapp-float:hover { text-decoration: none; transform: scale(1.06); }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .overlay { display: block; }
  .main { margin-left: 0; }
  .menu-toggle { display: grid; }
  .grid-main, .grid-3 { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero .mock { display: none; }
  .site-nav nav { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  .content { padding: 18px 16px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .topbar-title { display: none; }
  .user-btn .meta { display: none; }
  .grid-2, .grid-4, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 2.3rem; }
  .section { padding: 56px 0; }
  .section-head h2, .cta h2 { font-size: 1.7rem; }
  .cta { padding: 40px 22px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-nav .actions .btn-outline { display: none; }
  .card-body { padding: 18px; }
  .msg { max-width: 94%; }
  .app-footer { padding: 16px; }
}

