/* ============================================================
   Chelita UI · refined glass + soft-neon theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-0: #07091a;
    --bg-1: #0d1126;
    --bg-2: #161a35;

    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.075);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #eef1ff;
    --text-soft: #c8cfe6;
    --muted: #8892b0;

    --brand: #5ee0c8;
    --brand-2: #6ea8ff;
    --accent: #ffb37a;
    --danger: #ff6b89;
    --ok: #4ee0a8;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.18);
    --shadow:    0 14px 40px rgba(2, 6, 23, 0.45);
    --shadow-lg: 0 30px 80px rgba(2, 6, 23, 0.55);

    --ring: 0 0 0 3px rgba(94, 224, 200, 0.22);

    --container: min(1120px, calc(100% - 32px));
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
    margin: 0;
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(110, 168, 255, 0.18), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(94, 224, 200, 0.16), transparent 55%),
        radial-gradient(700px 600px at 50% 110%, rgba(255, 179, 122, 0.10), transparent 60%),
        linear-gradient(160deg, var(--bg-0), var(--bg-2));
    background-attachment: fixed;
}

/* Typography ------------------------------------------------- */

h1, h2, h3, h4 {
    margin: 0 0 8px;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; letter-spacing: 0; }
h4 { font-size: 15px; color: var(--text-soft); }

p { margin: 0 0 8px; }

.muted    { color: var(--muted); font-size: 13.5px; }
.kicker   { margin: 0; color: var(--brand); letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.eyebrow  { color: var(--text-soft); font-size: 13px; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }

/* Glass surface --------------------------------------------- */

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.glass-card:hover { border-color: var(--border-strong); }

.stack-md > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 8px; }

/* Auth ------------------------------------------------------- */

.auth-bg { display: grid; place-items: center; padding: 24px; min-height: 100vh; }

.auth-wrap { width: min(100%, 440px); }

.auth-card {
    padding: 30px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-lockup {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(94, 224, 200, 0.35), rgba(110, 168, 255, 0.35));
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(94, 224, 200, 0.18);
    color: var(--text);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.brand-lockup h1 { margin: 2px 0 0; font-size: 22px; }

/* Forms ------------------------------------------------------ */

label {
    display: block;
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 500;
}

input, select, textarea, button { font: inherit; }

input[type="text"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="email"],
select, textarea {
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(8, 12, 28, 0.55);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
    background: rgba(8, 12, 28, 0.75);
}

input::placeholder { color: rgba(200, 207, 230, 0.4); }

input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--brand);
    transform: translateY(1px);
}

.payment-mode-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 4px 0 12px;
}

.payment-mode-option {
    position: relative;
    min-width: 0;
}

.payment-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-mode-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(8, 12, 28, 0.55);
    color: var(--text-soft);
    font-weight: 650;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.payment-mode-option input:checked + span {
    color: #04121a;
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 8px 22px rgba(94, 224, 200, 0.22);
}

.payment-mode-option input:focus-visible + span {
    box-shadow: var(--ring);
}

textarea { resize: vertical; min-height: 90px; }

/* Buttons --------------------------------------------------- */

.btn {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #06111b;
    background: #e8edff;
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn:disabled,
.client-pill:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #04121a;
    box-shadow: 0 8px 22px rgba(94, 224, 200, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(94, 224, 200, 0.4); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.11); }

.btn-danger {
    background: linear-gradient(135deg, #ff8aa1, var(--danger));
    color: #2a0410;
    box-shadow: 0 8px 22px rgba(255, 107, 137, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.btn-deuda {
    background: linear-gradient(135deg, #ffc89a, var(--accent));
    color: #2a1404;
    box-shadow: 0 8px 22px rgba(255, 179, 122, 0.28);
}
.btn-deuda:hover { box-shadow: 0 12px 28px rgba(255, 179, 122, 0.42); }

.btn-abono {
    background: linear-gradient(135deg, #7af0c2, var(--ok));
    color: #022818;
    box-shadow: 0 8px 22px rgba(78, 224, 168, 0.26);
}
.btn-abono:hover { box-shadow: 0 12px 28px rgba(78, 224, 168, 0.4); }

.btn-sm { padding: 7px 11px; font-size: 13px; }

/* Alerts ---------------------------------------------------- */

.alert {
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    margin: 6px 0;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success { background: rgba(78, 224, 168, 0.12); border-color: rgba(78, 224, 168, 0.35); color: #b9f5dc; }
.alert-danger  { background: rgba(255, 107, 137, 0.12); border-color: rgba(255, 107, 137, 0.35); color: #ffc1cf; }

/* Topbar / nav ---------------------------------------------- */

.topbar {
    margin: 22px auto 0;
    width: var(--container);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border-radius: var(--radius);
}

.topbar > div h1 { font-size: 20px; margin: 2px 0 0; }
.topbar > div .kicker { font-size: 10.5px; }

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-links a.active {
    color: var(--brand);
    background: rgba(94, 224, 200, 0.10);
    border-color: rgba(94, 224, 200, 0.35);
}

.inline-form { margin: 0; display: inline-flex; }

/* Page layout ------------------------------------------------ */

.page {
    width: var(--container);
    margin: 16px auto 36px;
    display: grid;
    gap: 14px;
}

.app-footer {
    width: var(--container);
    margin: 0 auto 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.auth-bg .app-footer {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 32px));
    margin: 0;
}

.split-layout { grid-template-columns: 1.35fr 0.65fr; align-items: start; }

.cards-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Hero / quick actions -------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(94, 224, 200, 0.14), transparent 60%),
        radial-gradient(500px 180px at 100% 100%, rgba(110, 168, 255, 0.14), transparent 60%),
        var(--surface);
    border: 1px solid var(--border-strong);
}

.hero h2 { font-size: 24px; margin: 4px 0 6px; }
.hero p  { color: var(--text-soft); margin: 0; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Stat cards ------------------------------------------------ */

.stat-card {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.stat-card .label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-card .value {
    margin: 0;
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
}

.stat-card .sub { margin: 0; color: var(--muted); font-size: 12.5px; }

.stat-card.accent .value { color: var(--brand); }
.stat-card.warn   .value { color: var(--accent); }
.stat-card.ok     .value { color: var(--ok); }

/* Sections / tables ---------------------------------------- */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head h3 { margin: 0; }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.toolbar input, .toolbar select { margin-top: 4px; }

.client-searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.client-searchbar input { margin-top: 0; }

@media (max-width: 520px) {
    .client-searchbar { grid-template-columns: 1fr; }
}

.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius-sm); }

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 560px;
}

thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

tbody td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
}

tbody tr:hover td { background: rgba(255, 255, 255, 0.025); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }

/* Badges --------------------------------------------------- */

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-deuda { background: rgba(255, 107, 137, 0.18); color: #ffb1c2; }
.badge-abono { background: rgba(94, 224, 200, 0.18); color: #9bf0dd; }
.badge-pay-usd { background: rgba(110, 168, 255, 0.18); color: #b9d2ff; }
.badge-pay-ves { background: rgba(255, 179, 122, 0.18); color: #ffd2ad; }

/* Actions --------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }

.stack-md > label + .btn,
.stack-md > div + .btn,
.stack-md > label + .actions,
.stack-md > div + .actions {
    margin-top: 18px;
}

/* Modal wizard --------------------------------------------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 18, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 80;
}

.modal-backdrop.open { display: flex; animation: fade 0.18s ease; }

.modal-card {
    width: min(620px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Wizard themed modal --------------------------------------- */

.wizard-modal {
    --wizard-color: var(--brand);
    --wizard-color-soft: rgba(94, 224, 200, 0.18);
    --wizard-color-strong: rgba(94, 224, 200, 0.45);
    border-top: 4px solid var(--wizard-color);
    background:
        radial-gradient(700px 240px at 50% -20%, var(--wizard-color-soft), transparent 70%),
        var(--surface-strong);
}

.wizard-modal.mode-deuda {
    --wizard-color: var(--accent);                    /* ámbar */
    --wizard-color-soft: rgba(255, 179, 122, 0.20);
    --wizard-color-strong: rgba(255, 179, 122, 0.50);
}

.wizard-modal.mode-abono {
    --wizard-color: var(--ok);                        /* verde menta */
    --wizard-color-soft: rgba(78, 224, 168, 0.18);
    --wizard-color-strong: rgba(78, 224, 168, 0.45);
}

.wizard-header {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.wizard-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 700;
    color: #04121a;
    background: var(--wizard-color);
    box-shadow: 0 10px 24px var(--wizard-color-soft);
}

.wizard-titles .kicker { color: var(--wizard-color); }
.wizard-titles h3 { margin: 2px 0 4px; font-size: 19px; }
.wizard-titles .muted { margin: 0; font-size: 13px; }

/* Wizard step indicator picks the wizard color */
.wizard-modal .step-dot.active {
    background: var(--wizard-color);
    border-color: var(--wizard-color);
    box-shadow: 0 0 0 4px var(--wizard-color-soft);
}

/* Themed primary button inside wizard */
.btn-wizard {
    background: var(--wizard-color);
    color: #04121a;
    border-color: transparent;
    box-shadow: 0 8px 22px var(--wizard-color-soft);
}
.btn-wizard:hover { box-shadow: 0 12px 28px var(--wizard-color-strong); }

/* Inputs inside wizard adopt the theme on focus */
.wizard-modal input:focus,
.wizard-modal select:focus,
.wizard-modal textarea:focus {
    border-color: var(--wizard-color);
    box-shadow: 0 0 0 3px var(--wizard-color-soft);
}

.wizard-modal .client-pill.selected {
    border-color: var(--wizard-color);
    color: var(--wizard-color);
    background: var(--wizard-color-soft);
}

.wizard-modal #step3 .actions {
    margin-top: 20px;
}

.wizard-steps {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 4px 0 18px;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.18s ease;
}

.step-dot.active {
    border-color: var(--brand);
    color: #04121a;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(94, 224, 200, 0.16);
}

.step-line { flex: 1; height: 1px; background: var(--border); }

.wizard-list {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.client-pill {
    width: 100%;
    text-align: left;
    background: rgba(8, 12, 28, 0.55);
    color: var(--text-soft);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

.client-pill:hover { color: var(--text); border-color: var(--border-strong); }

.client-pill:disabled:hover { color: var(--text-soft); border-color: var(--border); }

.client-pill.selected {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(94, 224, 200, 0.08);
}

/* Client list (cards) -------------------------------------- */

.client-list {
    display: grid;
    gap: 10px;
}

.client-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    grid-template-areas:
        "avatar info    balance"
        "avatar actions actions";
    column-gap: 14px;
    row-gap: 10px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border);
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.client-row:hover {
    border-color: var(--border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    transform: translateY(-1px);
}

.client-row.has-debt {
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}

.client-avatar {
    grid-area: avatar;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
    color: #04121a;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    box-shadow: 0 6px 18px rgba(94, 224, 200, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    align-self: start;
    margin-top: 2px;
}

.client-row.has-debt .client-avatar {
    background: linear-gradient(135deg, #ffc89a 0%, var(--accent) 100%);
    box-shadow: 0 6px 18px rgba(255, 179, 122, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.client-info {
    grid-area: info;
    min-width: 0;
}

.client-name {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
}

.chip-ok {
    color: #9bf0dd;
    background: rgba(94, 224, 200, 0.12);
    border-color: rgba(94, 224, 200, 0.32);
}

.client-balance {
    grid-area: balance;
    text-align: right;
    min-width: 110px;
}

.client-balance .label {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
}

.client-balance .value {
    margin: 3px 0 1px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.1;
}

.client-balance .value-warn { color: var(--accent); }
.client-balance .value-ok   { color: var(--text-soft); }

.client-balance .sub { font-size: 11.5px; color: var(--muted); }

.client-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 2px;
}

.client-actions form { margin: 0; }

@media (max-width: 520px) {
    .client-row {
        grid-template-columns: 44px 1fr;
        grid-template-areas:
            "avatar info"
            "balance balance"
            "actions actions";
    }
    .client-avatar { width: 44px; height: 44px; font-size: 16px; }
    .client-balance { text-align: left; min-width: 0; }
    .client-actions { justify-content: flex-start; }
}

/* Help / login footer -------------------------------------- */

.help-line {
    margin-top: 18px;
    display: grid;
    gap: 4px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}

/* Animations ----------------------------------------------- */

@keyframes rise {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Scrollbar (modern browsers) ------------------------------ */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); background-clip: padding-box; }

/* Responsive ----------------------------------------------- */

@media (max-width: 980px) {
    .split-layout { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; }
    .hero-cta { justify-content: flex-start; }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .topbar { flex-direction: column; align-items: flex-start; }
    .nav-links { width: 100%; }
    .app-footer { flex-direction: column; align-items: flex-start; }
    .auth-bg .app-footer { align-items: center; text-align: center; }
    h1 { font-size: 22px; }
    .stat-card .value { font-size: 22px; }
}

/* Print (PDF export) --------------------------------------- */

@media print {
    body { background: #fff; color: #111; }
    .glass-card { background: #fff; border: 1px solid #ddd; box-shadow: none; backdrop-filter: none; }
    .nav-links, .topbar form, .btn { display: none !important; }
    table, th, td { color: #111; }
    thead th { background: #f3f4f6; color: #444; }
}
