/* ══════════════════════════════════════════════════════════
   WaSaaS — design system
   ══════════════════════════════════════════════════════════ */

:root {
    --wa-green: #25d366;
    --wa-green-dark: #128c7e;
    --wa-teal: #075e54;
    --bg: #0b1220;
    --bg-elevated: #111a2e;
    --bg-soft: #16203a;
    --bg-input: #0e1729;
    --border: #22304d;
    --border-strong: #2f4066;
    --text: #e6ecf7;
    --text-muted: #8fa0bd;
    --text-dim: #64748b;
    --danger: #f87171;
    --warning: #fbbf24;
    --info: #38bdf8;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --shadow: 0 18px 40px -20px rgba(2, 8, 20, 0.9);
    --sidebar-w: 250px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--wa-green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 14px; }
small { font-size: 12.5px; }

code, pre, .mono { font-family: var(--mono); font-size: 13px; }
pre {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    overflow: auto;
    margin: 0 0 16px;
}
code:not(pre code) {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 12.5px;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Layout shell ─────────────────────────────────────── */

.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, #0d1425, #0b1220);
    border-right: 1px solid var(--border);
    padding: 20px 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
    display: grid; place-items: center;
    color: #04180d; font-weight: 800; font-size: 17px;
    flex: 0 0 34px;
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; color: var(--text-dim); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim); padding: 14px 10px 6px; font-weight: 700;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav-item.active { background: rgba(37, 211, 102, 0.13); color: var(--wa-green); }
.nav-item .ico { width: 18px; text-align: center; flex: 0 0 18px; font-size: 15px; }
.nav-item .badge { margin-left: auto; }

.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.user-chip {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 9px 10px;
}
.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700; color: #04180d;
    background: var(--wa-green); flex: 0 0 30px;
}
.user-chip .meta { min-width: 0; }
.user-chip .meta strong { display: block; font-size: 13px; font-weight: 600; }
.user-chip .meta span { display: block; font-size: 11px; color: var(--text-dim); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 26px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 20;
}
.topbar h1 { margin: 0; font-size: 19px; }
.topbar .spacer { flex: 1; }

.content { padding: 24px 26px 56px; flex: 1; }
.content.flush { padding: 0; }

/* ── Cards, grids ─────────────────────────────────────── */

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.card + .card { margin-top: 18px; }
.card-head {
    display: flex; align-items: center; gap: 12px;
    margin: -4px 0 16px;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer { flex: 1; }
.card-sub { color: var(--text-muted); font-size: 13px; margin: -8px 0 16px; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

@media (max-width: 1100px) {
    .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.cols-3, .grid.split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .grid.cols-2, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: fixed; left: -100%; z-index: 60; }
    .sidebar.open { left: 0; }
    .content { padding: 18px 14px 48px; }
    .topbar { padding: 14px 16px; }
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); font-weight: 700; }
.stat .value { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }
.stat .hint { font-size: 12px; color: var(--text-muted); }

.meter { height: 6px; background: var(--bg-input); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--wa-green), var(--wa-green-dark)); }
.meter.warn > span { background: linear-gradient(90deg, var(--warning), #f59e0b); }
.meter.bad > span { background: linear-gradient(90deg, var(--danger), #dc2626); }

/* ── Badges, pills ────────────────────────────────────── */

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: 99px;
    font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
    background: var(--bg-soft); color: var(--text-muted);
    border: 1px solid var(--border);
}
.badge.ok { background: rgba(37,211,102,.14); color: #4ade80; border-color: rgba(37,211,102,.3); }
.badge.warn { background: rgba(251,191,36,.14); color: #fcd34d; border-color: rgba(251,191,36,.3); }
.badge.bad { background: rgba(248,113,113,.14); color: #fca5a5; border-color: rgba(248,113,113,.3); }
.badge.info { background: rgba(56,189,248,.14); color: #7dd3fc; border-color: rgba(56,189,248,.3); }
.badge.muted { background: var(--bg-input); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); display: inline-block; }
.dot.ok { background: var(--wa-green); box-shadow: 0 0 0 3px rgba(37,211,102,.18); }
.dot.warn { background: var(--warning); box-shadow: 0 0 0 3px rgba(251,191,36,.18); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px rgba(248,113,113,.18); }

/* ── Buttons ──────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform .08s, background .12s, border-color .12s, opacity .12s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #1c284a; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.primary {
    background: linear-gradient(135deg, var(--wa-green), var(--wa-green-dark));
    border-color: transparent; color: #04180d;
}
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.4); color: #fca5a5; }
.btn.danger:hover { background: rgba(248,113,113,.22); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.btn.block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── Forms ────────────────────────────────────────────── */

.field { margin-bottom: 14px; }
.field label, .label {
    display: block; font-size: 12.5px; font-weight: 650;
    color: var(--text-muted); margin-bottom: 6px;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], input[type=tel], input[type=search], input[type=datetime-local],
input[type=date], input[type=file], select, textarea {
    width: 100%; padding: 10px 12px;
    background: var(--bg-input); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; font-size: 14px; outline: none;
    transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--wa-green);
    box-shadow: 0 0 0 3px rgba(37,211,102,.14);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%238fa0bd' d='M6 8.5 1.5 4h9z'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
input::placeholder, textarea::placeholder { color: #4d5f7d; }
.hint { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.error-text { font-size: 12.5px; color: #fca5a5; margin-top: 5px; }
input.has-error, textarea.has-error, select.has-error { border-color: var(--danger); }

.check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 13.5px; color: var(--text); }
.check input[type=checkbox], .check input[type=radio] {
    width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--wa-green); flex: 0 0 16px;
}
.check span small { display: block; color: var(--text-dim); font-size: 12px; }

.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .form-row, .form-row.three { grid-template-columns: minmax(0, 1fr); } }

fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; }
legend { font-size: 12px; font-weight: 700; color: var(--text-muted); padding: 0 6px; text-transform: uppercase; letter-spacing: .06em; }

/* ── Tables ───────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
    text-align: left; padding: 10px 14px; background: var(--bg-soft);
    font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--text-dim); font-weight: 700; white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(34,48,77,.6); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(22,32,58,.5); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { text-align: right; white-space: nowrap; }

.empty {
    padding: 46px 24px; text-align: center; color: var(--text-muted);
    border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty .big { font-size: 34px; margin-bottom: 10px; }
.empty h3 { color: var(--text); }

/* ── Flash + alerts ───────────────────────────────────── */

.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.alert {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-soft); font-size: 13.5px;
}
.alert.success { border-color: rgba(37,211,102,.35); background: rgba(37,211,102,.1); color: #86efac; }
.alert.error { border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.1); color: #fca5a5; }
.alert.warning { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.1); color: #fcd34d; }
.alert.info { border-color: rgba(56,189,248,.35); background: rgba(56,189,248,.1); color: #7dd3fc; }
.alert .close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 16px; opacity: .7; }

/* ── Tabs, filters ───────────────────────────────────── */

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab {
    padding: 9px 14px; font-size: 13.5px; font-weight: 600;
    color: var(--text-muted); border-bottom: 2px solid transparent; text-decoration: none;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--wa-green); border-bottom-color: var(--wa-green); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 160px; }
.filters .grow { flex: 1; min-width: 220px; }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 6px 11px; border-radius: 7px; border: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted); text-decoration: none;
}
.pagination a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.pagination .current { background: rgba(37,211,102,.15); color: var(--wa-green); border-color: rgba(37,211,102,.3); }

/* ── Inbox ────────────────────────────────────────────── */

.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - 57px); }
@media (max-width: 980px) {
    .inbox { grid-template-columns: minmax(0, 1fr); }
    .inbox .chat-list { display: none; }
    .inbox.list-mode .chat-list { display: flex; }
    .inbox.list-mode .thread-pane { display: none; }
}

.chat-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.chat-list .search { padding: 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.chat-list .items { overflow-y: auto; flex: 1; }
.chat-item {
    display: flex; gap: 11px; padding: 11px 13px; cursor: pointer;
    border-bottom: 1px solid rgba(34,48,77,.5); text-decoration: none; color: inherit;
}
.chat-item:hover { background: var(--bg-soft); text-decoration: none; }
.chat-item.active { background: rgba(37,211,102,.1); border-left: 3px solid var(--wa-green); padding-left: 10px; }
.chat-item.bumped { animation: chat-bump 1.6s ease-out 1; }
@keyframes chat-bump {
    from { background: rgba(37,211,102,.22); }
    to { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .chat-item.bumped { animation: none; }
}
.chat-item .body { min-width: 0; flex: 1; }
.chat-item .row1 { display: flex; align-items: baseline; gap: 8px; }
.chat-item .name { font-weight: 620; font-size: 14px; }
.chat-item .time { margin-left: auto; font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.chat-item .preview { font-size: 12.5px; color: var(--text-muted); }
.chat-item .row2 { display: flex; align-items: center; gap: 6px; }
.unread-pill {
    background: var(--wa-green); color: #04180d; font-size: 10.5px; font-weight: 800;
    border-radius: 99px; padding: 1px 7px; margin-left: auto;
}

.thread-pane { display: flex; flex-direction: column; min-width: 0; }
.thread-head {
    display: flex; align-items: center; gap: 12px; padding: 11px 16px;
    border-bottom: 1px solid var(--border); background: var(--bg-elevated);
}
.thread-head .meta { min-width: 0; }
.thread-head .meta strong { display: block; font-size: 15px; }
.thread-head .meta span { font-size: 12px; color: var(--text-muted); }
.thread-head .spacer { flex: 1; }

.thread-body {
    flex: 1; overflow-y: auto; padding: 20px 18px;
    display: flex; flex-direction: column; gap: 8px;
    background:
        radial-gradient(circle at 20% 10%, rgba(37,211,102,.05), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(56,189,248,.04), transparent 40%),
        var(--bg);
    position: relative;
}

/* Sticky "new messages" pill when the reader is scrolled away from the end. */
.jump-new {
    position: sticky; bottom: 6px; align-self: center; z-index: 2;
    padding: 6px 14px; border-radius: 99px; cursor: pointer;
    background: var(--wa-green); color: #04180d; border: 0;
    font: inherit; font-size: 12.5px; font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(2,8,20,.9);
}
.jump-new[hidden] { display: none; }

.bubble {
    max-width: min(560px, 78%); padding: 9px 13px; border-radius: 14px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    font-size: 14px; position: relative; word-wrap: break-word; overflow-wrap: anywhere;
}
.bubble.out { align-self: flex-end; background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.28); }
.bubble.in { align-self: flex-start; }
.bubble .author { font-size: 11.5px; font-weight: 700; color: var(--wa-green); margin-bottom: 3px; }
.bubble .text { white-space: pre-wrap; }
.bubble .foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10.5px; color: var(--text-dim); justify-content: flex-end; }
.bubble.system { align-self: center; background: var(--bg-soft); font-size: 12px; color: var(--text-muted); max-width: 70%; text-align: center; }
.bubble img, .bubble video { max-width: 100%; border-radius: 9px; display: block; margin-bottom: 6px; }
.bubble audio { width: 260px; max-width: 100%; }
.bubble .doc { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: var(--bg-input); border-radius: 9px; margin-bottom: 6px; }
.bubble .reactions { display: flex; gap: 3px; margin-top: 5px; }
.bubble .reactions span { background: var(--bg-input); border: 1px solid var(--border); border-radius: 99px; padding: 0 6px; font-size: 12px; }
.bubble .msg-tools { position: absolute; top: -10px; right: 6px; display: none; gap: 3px; }
.bubble:hover .msg-tools { display: flex; }
.msg-tools button {
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px;
    font-size: 11px; padding: 2px 6px; color: var(--text-muted); cursor: pointer;
}
.msg-tools button:hover { color: var(--text); }

.composer { border-top: 1px solid var(--border); padding: 12px 14px; background: var(--bg-elevated); }
.composer .row { display: flex; gap: 9px; align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 160px; }
.composer .tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.composer .panel { display: none; margin-bottom: 10px; padding: 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.composer .panel.open { display: block; }

.reply-preview {
    display: none; align-items: center; gap: 9px; padding: 8px 11px; margin-bottom: 9px;
    background: var(--bg-input); border-left: 3px solid var(--wa-green); border-radius: 7px; font-size: 13px;
}
.reply-preview.open { display: flex; }

/* ── QR / connect ─────────────────────────────────────── */

.qr-box {
    display: grid; place-items: center; gap: 14px; padding: 26px;
    background: var(--bg-input); border: 1px dashed var(--border-strong); border-radius: var(--radius);
    text-align: center;
}
.qr-box img { width: 260px; height: 260px; background: #fff; padding: 10px; border-radius: 12px; }
.pair-code {
    font-family: var(--mono); font-size: 30px; letter-spacing: .28em; font-weight: 700;
    color: var(--wa-green); background: var(--bg-input); border: 1px dashed var(--border-strong);
    padding: 18px 22px; border-radius: var(--radius); text-align: center;
}

.spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2.5px solid var(--border-strong); border-top-color: var(--wa-green);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Charts ───────────────────────────────────────────── */

.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.spark .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.spark .bar { border-radius: 3px 3px 0 0; min-height: 2px; }
.spark .bar.out { background: var(--wa-green); }
.spark .bar.in { background: #3b82f6; }
.spark .label { font-size: 9px; color: var(--text-dim); text-align: center; margin-top: 5px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* ── Auth / marketing ─────────────────────────────────── */

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-aside {
    padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; gap: 20px;
    background:
        radial-gradient(circle at 15% 20%, rgba(37,211,102,.16), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(56,189,248,.12), transparent 45%),
        #0a1120;
    border-right: 1px solid var(--border);
}
.auth-aside h2 { font-size: 32px; letter-spacing: -0.03em; }
.auth-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-aside li { display: flex; gap: 10px; color: var(--text-muted); font-size: 14.5px; }
.auth-aside li b { color: var(--text); font-weight: 650; }
.auth-panel { display: grid; place-items: center; padding: 40px 22px; }
.auth-card { width: 100%; max-width: 420px; }

.site-header {
    display: flex; align-items: center; gap: 24px; padding: 18px 32px;
    border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30;
    background: rgba(11,18,32,.88); backdrop-filter: blur(10px);
}
.site-header nav { display: flex; gap: 20px; margin-left: 20px; }
.site-header nav a { color: var(--text-muted); font-size: 14px; font-weight: 550; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.site-header .spacer { flex: 1; }
.site-main { max-width: 1120px; margin: 0 auto; padding: 56px 24px 80px; }
.site-footer { border-top: 1px solid var(--border); padding: 26px 32px; color: var(--text-dim); font-size: 13px; text-align: center; }

.hero { text-align: center; padding: 34px 0 46px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); letter-spacing: -0.035em; margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: var(--text-muted); max-width: 640px; margin: 0 auto 26px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 99px;
    background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.28);
    color: var(--wa-green); font-size: 12.5px; font-weight: 650; margin-bottom: 18px;
}
.gradient-text {
    background: linear-gradient(120deg, var(--wa-green), #7dd3fc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.feature { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.feature .ico { font-size: 22px; margin-bottom: 10px; }
.feature h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: rgba(37,211,102,.45); box-shadow: 0 0 0 1px rgba(37,211,102,.2), var(--shadow); }
.price-card .amount { font-size: 34px; font-weight: 750; letter-spacing: -0.03em; }
.price-card .amount small { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--text-muted); }
.price-card ul li::before { content: "✓"; color: var(--wa-green); font-weight: 700; margin-right: 8px; }
.ribbon {
    position: absolute; top: -11px; right: 16px; background: var(--wa-green); color: #04180d;
    font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 99px;
}

/* ── Utilities ────────────────────────────────────────── */

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.right { text-align: right; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex.wrap { flex-wrap: wrap; }
.flex.between { justify-content: space-between; }
.flex.col { flex-direction: column; align-items: stretch; }
.spacer { flex: 1; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: var(--mono); font-size: 12.5px; }
.scroll-y { overflow-y: auto; }
.max-260 { max-height: 260px; }
details summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text-muted); }
details summary:hover { color: var(--text); }
details[open] summary { margin-bottom: 12px; color: var(--text); }

dialog.modal {
    border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
    border-radius: var(--radius-lg); padding: 22px; width: min(560px, calc(100vw - 32px));
    box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: rgba(4,9,20,.72); backdrop-filter: blur(3px); }
dialog.modal h3 { margin-bottom: 4px; }

.mobile-only { display: none; }
@media (max-width: 720px) { .mobile-only { display: inline-flex; } }
