/* =====================================================================
   Sample Bank - Client Onboarding Portal
   Dark "glass" theme, mobile-first, no framework dependency.
   ===================================================================== */

:root {
    --bg:            #060915;
    --bg-soft:       #0b1226;
    --surface:       rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.075);
    --border:        rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text:          #eef2ff;
    --text-muted:    #97a3c4;
    --text-dim:      #6b779b;

    --brand:         #6366f1;
    --brand-2:       #22d3ee;
    --gold:          #f4c26b;
    --success:       #34d399;
    --error:         #fb7185;

    --grad-brand:  linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #22d3ee 100%);
    --grad-text:   linear-gradient(120deg, #ffffff 0%, #c7d2fe 55%, #7dd3fc 100%);

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;

    --shadow:    0 18px 40px -18px rgba(0, 0, 0, 0.75);
    --shadow-lg: 0 40px 80px -32px rgba(5, 8, 22, 0.9);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
p  { margin: 0; }
a  { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.88em;
    padding: 0.15em 0.45em;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.16);
    color: #c7d2fe;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------- animated backdrop */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(1000px 600px at 15% -10%, rgba(79, 70, 229, 0.20), transparent 65%),
        radial-gradient(900px 500px at 90% 0%,   rgba(34, 211, 238, 0.13), transparent 60%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 60%);
}

.aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: drift 22s var(--ease) infinite alternate;
}

.aurora__blob--one   { width: 420px; height: 420px; top: -110px;  left: -80px;  background: #4f46e5; }
.aurora__blob--two   { width: 360px; height: 360px; top: 30%;     right: -110px; background: #0ea5e9; animation-delay: -7s; }
.aurora__blob--three { width: 300px; height: 300px; bottom: -120px; left: 35%;   background: #7c3aed; animation-delay: -14s; }

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .aurora__blob { animation: none; }
}

/* ------------------------------------------------------------------ topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 0;
    background: rgba(6, 9, 21, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(99, 102, 241, 0.9);
}
.brand__mark svg { width: 22px; height: 22px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.06rem; font-weight: 800; letter-spacing: -0.02em; }
.brand__text small  { font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }

.nav {
    display: flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link svg { width: 15px; height: 15px; }
.nav__link:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }

.nav__link.is-active {
    color: #fff;
    background: var(--grad-brand);
    box-shadow: 0 8px 20px -10px rgba(99, 102, 241, 0.95);
}

/* -------------------------------------------------------------------- page */
.page {
    flex: 1;
    padding-top: 40px;
    padding-bottom: 64px;
}

.hero { max-width: 660px; margin-bottom: 32px; }
.hero--compact { margin-bottom: 26px; }

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 13px;
    border: 1px solid rgba(244, 194, 107, 0.32);
    border-radius: 999px;
    background: rgba(244, 194, 107, 0.09);
    color: var(--gold);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* ------------------------------------------------------------------- alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: slide-in 0.35s var(--ease) both;
}

.alert p { flex: 1; font-size: 0.95rem; }

.alert__icon {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}
.alert__icon svg { width: 15px; height: 15px; }

.alert--success               { border-left-color: var(--success); }
.alert--success .alert__icon  { background: rgba(52, 211, 153, 0.16); color: var(--success); }
.alert--error                 { border-left-color: var(--error); }
.alert--error .alert__icon    { background: rgba(251, 113, 133, 0.16); color: var(--error); }

.alert__close {
    flex: 0 0 auto;
    border: 0;
    background: none;
    color: var(--text-dim);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s var(--ease);
}
.alert__close:hover { color: var(--text); }

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------- cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card--form { max-width: 880px; }
.card--error { padding: 26px; border-color: rgba(251, 113, 133, 0.35); }

.card__header {
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--border);
}

.card__header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.card__title    { font-size: 1.18rem; font-weight: 700; }
.card__subtitle { margin-top: 5px; color: var(--text-dim); font-size: 0.9rem; }

.setup-steps {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.setup-steps li { margin-bottom: 8px; }

/* --------------------------------------------------------------------- form */
.form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 26px;
}

.field--wide,
.form__actions { grid-column: 1 / -1; }

.field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text);
}
.field__req { color: var(--gold); }

.field__control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(4, 7, 18, 0.55);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field__control:hover { border-color: rgba(255, 255, 255, 0.26); }

.field__control:focus-within {
    border-color: var(--brand);
    background: rgba(4, 7, 18, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.field__control--area { align-items: flex-start; padding: 0; }

.field__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--text-dim);
}
.field__icon svg { width: 18px; height: 18px; }
.field__control:focus-within .field__icon { color: var(--brand-2); }

.field__prefix {
    flex: 0 0 auto;
    padding-right: 10px;
    border-right: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.field__input {
    flex: 1;
    width: 100%;
    padding: 13px 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    outline: none;
}
.field__input::placeholder { color: #55628a; }

.field__input--mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
}

.field__input--area {
    padding: 13px 14px;
    resize: vertical;
    min-height: 92px;
    line-height: 1.55;
}

.field__hint {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    color: var(--text-dim);
    font-size: 0.79rem;
}

.field__counter { font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

.field__error {
    margin-top: 6px;
    color: var(--error);
    font-size: 0.81rem;
    font-weight: 500;
    min-height: 0;
}
.field__error:empty { display: none; }

.field.has-error .field__control {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.13);
}
.field.has-error .field__hint { display: none; }

/* ------------------------------------------------------------------ buttons */
.form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    margin-top: 2px;
    padding-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
                background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 17px; height: 17px; }
.btn--sm { padding: 9px 16px; font-size: 0.86rem; }

.btn--primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(99, 102, 241, 0.95);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(99, 102, 241, 1); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--text-muted);
}
.btn--ghost:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border-strong); }

.btn--link {
    padding: 12px 4px;
    background: none;
    color: var(--brand-2);
}
.btn--link:hover { color: #67e8f9; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* -------------------------------------------------------------------- stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat {
    position: relative;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.stat::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--grad-brand);
    opacity: 0.85;
}

.stat__label {
    display: block;
    color: var(--text-dim);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat__value {
    display: block;
    margin: 6px 0 2px;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.stat__meta { color: var(--text-dim); font-size: 0.82rem; }

/* ------------------------------------------------------------------- search */
.search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(4, 7, 18, 0.55);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}
.search__icon { display: grid; place-items: center; color: var(--text-dim); }
.search__icon svg { width: 17px; height: 17px; }

.search__input {
    width: 190px;
    max-width: 42vw;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    outline: none;
}
.search__input::placeholder { color: #55628a; }
.search .btn { border-radius: 999px; }

/* -------------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.table thead th {
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.028);
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table tbody tr { transition: background 0.18s var(--ease); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.table tbody tr:last-child td { border-bottom: 0; }

.table tbody tr.is-new {
    background: rgba(52, 211, 153, 0.09);
    box-shadow: inset 3px 0 0 var(--success);
    animation: flash-row 2.4s var(--ease) 1;
}

@keyframes flash-row {
    0%, 40% { background: rgba(52, 211, 153, 0.22); }
    100%    { background: rgba(52, 211, 153, 0.09); }
}

.row-index {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

.person { display: flex; align-items: center; gap: 12px; }

.avatar {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--grad-brand);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.person__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.person__text strong { font-weight: 600; }
.person__text small  { color: var(--text-dim); font-size: 0.76rem; }

.badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge--new {
    background: rgba(52, 211, 153, 0.17);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.address {
    display: block;
    max-width: 270px;
    color: var(--text-muted);
    font-size: 0.89rem;
}

.chip {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    white-space: nowrap;
}
.chip--mono { font-family: 'JetBrains Mono', monospace; font-size: 0.83rem; letter-spacing: 0.06em; }

.link-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.86rem;
    color: var(--text);
    white-space: nowrap;
}
.link-mono:hover { color: var(--brand-2); }

.stamp { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.stamp small { color: var(--text-dim); font-size: 0.76rem; }

/* --------------------------------------------------------------- empty state */
.empty { padding: 60px 26px; text-align: center; }

.empty__icon {
    display: grid;
    place-items: center;
    width: 62px; height: 62px;
    margin: 0 auto 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text-dim);
}
.empty__icon svg { width: 28px; height: 28px; }

.empty h3 { font-size: 1.1rem; font-weight: 700; }
.empty p  { margin: 8px 0 20px; color: var(--text-dim); }

/* ------------------------------------------------------------------- footer */
.footer {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    background: rgba(6, 9, 21, 0.6);
}
.footer__inner { color: var(--text-dim); font-size: 0.86rem; text-align: center; }
.footer__meta  { margin-top: 5px; font-size: 0.8rem; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 760px) {
    .form { grid-template-columns: 1fr; gap: 18px; }
    .card__header--row { align-items: stretch; }
    .search { width: 100%; }
    .search__input { flex: 1; width: auto; max-width: none; }
    .nav { width: 100%; justify-content: center; }
    .form__actions .btn { flex: 1 1 auto; }

    /* Table collapses into stacked cards */
    .table-wrap { overflow: visible; }
    .table thead { display: none; }
    /* width:auto keeps the row margins from overflowing the viewport */
    .table, .table tbody, .table tr, .table td { display: block; width: auto; }

    .table tbody tr {
        margin: 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.03);
        overflow: hidden;
    }

    .table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 16px;
        text-align: right;
    }

    .table tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--text-dim);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: left;
    }

    .table tbody td[data-label='Customer'] { justify-content: flex-start; text-align: left; }
    .table tbody td[data-label='Customer']::before { display: none; }
    .table tbody td[data-label='#'] { display: none; }
    .address { max-width: none; text-align: right; }
    .stamp { align-items: flex-end; }
}

@media (max-width: 420px) {
    .stat__value { font-size: 1.8rem; }
    .page { padding-top: 28px; }
}


/* =====================================================================
   Login screen, dashboard and client profile
   ===================================================================== */

/* ------------------------------------------------------------- user box --- */
.topbar__inner--center { justify-content: center; }

.userbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.userbox__avatar {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4c26b 0%, #e0952f 100%);
    color: #2a1a02;
    font-size: 0.74rem;
    font-weight: 800;
}

.userbox__text { display: flex; flex-direction: column; line-height: 1.2; }
.userbox__text strong { font-size: 0.84rem; font-weight: 600; }
.userbox__text small  { color: var(--text-dim); font-size: 0.68rem; }

.userbox__out {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    margin-left: 2px;
    border-radius: 50%;
    color: var(--text-dim);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.userbox__out svg { width: 16px; height: 16px; }
.userbox__out:hover { color: var(--error); background: rgba(251, 113, 133, 0.13); text-decoration: none; }

/* ----------------------------------------------------------- login card --- */
.auth {
    display: grid;
    place-items: center;
    min-height: 62vh;
    padding: 20px 0;
}

.auth__card { width: 100%; max-width: 430px; padding: 34px 30px 26px; }

.auth__head { text-align: center; margin-bottom: 22px; }

.auth__lock {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    margin: 0 auto 16px;
    border-radius: 17px;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(99, 102, 241, 0.95);
}
.auth__lock svg { width: 26px; height: 26px; }

.auth__title { font-size: 1.5rem; font-weight: 800; }
.auth__lead  { margin-top: 7px; color: var(--text-dim); font-size: 0.92rem; }

.auth__error {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 1px solid rgba(251, 113, 133, 0.34);
    border-radius: var(--radius-sm);
    background: rgba(251, 113, 133, 0.11);
    color: #ffd7de;
    font-size: 0.88rem;
}
.auth__error svg { flex: 0 0 17px; width: 17px; height: 17px; color: var(--error); }

.auth__form { display: grid; gap: 17px; }

.btn--block { width: 100%; margin-top: 3px; }

.field__toggle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.field__toggle svg { width: 17px; height: 17px; }
.field__toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.field__toggle.is-on { color: var(--brand-2); }

.auth__demo {
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px dashed var(--border-strong);
    color: var(--text-dim);
    font-size: 0.83rem;
    text-align: center;
}
.auth__demo code { font-size: 0.85em; }
.auth__demo small { display: block; margin-top: 7px; font-size: 0.75rem; color: var(--text-dim); opacity: 0.75; }

/* ------------------------------------------------------------ dashboard --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding: 22px 26px 18px;
}

.chart__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
}

.chart__count {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.chart__bar {
    width: 100%;
    max-width: 42px;
    min-height: 6px;
    border-radius: 7px 7px 3px 3px;
    background: var(--grad-brand);
    box-shadow: 0 8px 18px -10px rgba(99, 102, 241, 0.9);
    transition: filter 0.2s var(--ease);
    animation: grow-bar 0.6s var(--ease) both;
}
.chart__bar:hover { filter: brightness(1.18); }
.chart__bar.is-zero { background: rgba(255, 255, 255, 0.09); box-shadow: none; }

@keyframes grow-bar {
    from { transform: scaleY(0); transform-origin: bottom; }
    to   { transform: scaleY(1); transform-origin: bottom; }
}

.chart__day {
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quick { display: grid; gap: 10px; padding: 20px 22px; }

.quick__item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.028);
    color: var(--text);
    transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.quick__item:hover {
    transform: translateX(3px);
    border-color: var(--border-strong);
    background: var(--surface-hover);
    text-decoration: none;
}

.quick__icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
}
.quick__icon svg { width: 18px; height: 18px; }

.quick__text { display: flex; flex-direction: column; line-height: 1.35; }
.quick__text strong { font-size: 0.93rem; font-weight: 600; }
.quick__text small  { color: var(--text-dim); font-size: 0.79rem; }

/* ------------------------------------------------------------ feed list --- */
.feed { margin: 0; padding: 0; list-style: none; }
.feed__item { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.feed__item:last-child { border-bottom: 0; }

.feed__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--text);
    transition: background 0.18s var(--ease);
}
.feed__link:hover { background: rgba(255, 255, 255, 0.035); text-decoration: none; }

.feed__text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.feed__text strong { font-weight: 600; }
.feed__text small {
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.feed__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
    color: var(--text-muted);
    font-size: 0.83rem;
    white-space: nowrap;
}
.feed__meta small { color: var(--text-dim); font-size: 0.73rem; }

.feed__chev { color: var(--text-dim); }
.feed__chev svg { width: 17px; height: 17px; }
.feed__link:hover .feed__chev { color: var(--brand-2); }

/* -------------------------------------------------------------- profile --- */
.crumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--brand-2); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

.profile { max-width: 860px; }

.profile__head {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 26px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.05));
}

.profile__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    width: 62px; height: 62px;
    border-radius: 19px;
    background: var(--grad-brand);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 14px 30px -14px rgba(99, 102, 241, 0.95);
}

.profile__id { flex: 1; min-width: 0; }
.profile__name { font-size: 1.45rem; font-weight: 800; }
.profile__sub  { margin-top: 5px; color: var(--text-dim); font-size: 0.87rem; }

.badge--active {
    background: rgba(52, 211, 153, 0.16);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.34);
}

.profile__grid { margin: 0; padding: 8px 26px 20px; }

.profile__row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.profile__row:last-child { border-bottom: 0; }

.profile__row dt {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-dim);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.profile__row dt svg { width: 16px; height: 16px; flex: 0 0 16px; }

.profile__row dd { margin: 0; font-size: 0.97rem; }

.profile__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 26px 24px;
    border-top: 1px solid var(--border);
}

/* ----------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .topbar__inner { justify-content: center; }
    .userbox { width: 100%; justify-content: center; }
    .profile__row { grid-template-columns: 1fr; gap: 7px; }
    .profile__head { flex-wrap: wrap; }
    .feed__link { padding: 13px 16px; flex-wrap: wrap; }
    .feed__meta { align-items: flex-start; }
    .feed__chev { display: none; }
    .chart { padding: 20px 14px 16px; gap: 6px; }
    .auth { min-height: 0; }
    .auth__card { padding: 28px 20px 22px; }
    .profile__actions .btn { flex: 1 1 auto; }
    /* the "View" button column reads better with its label on phones */
    .table tbody td[data-label='Details'] { justify-content: flex-end; }
    .table tbody td[data-label='Details']::before { display: none; }
    .table tbody td[data-label='Details'] .btn { width: 100%; }
}


/* =====================================================================
   Public website: home, services, about, contact
   ===================================================================== */

.topbar__cta { flex: 0 0 auto; }
.topbar__cta.is-active { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28); }

.btn--lg { padding: 15px 28px; font-size: 1rem; }

/* --------------------------------------------------------- landing hero --- */
.landing {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 46px;
    align-items: center;
    padding: 18px 0 56px;
}

.landing__title {
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing__lead {
    max-width: 33em;
    margin-top: 17px;
    color: var(--text-muted);
    font-size: 1.07rem;
}

.landing__actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.trust {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    margin: 38px 0 0;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}
.trust__item dt {
    color: var(--text-dim);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.trust__item dd {
    margin: 5px 0 0;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ bank card --- */
.landing__card { display: grid; gap: 22px; }

.bankcard {
    position: relative;
    aspect-ratio: 1.6 / 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
        var(--grad-brand);
    box-shadow: var(--shadow-lg);
    color: #fff;
    overflow: hidden;
    transform: rotate(-2.2deg);
    transition: transform 0.35s var(--ease);
}
.bankcard:hover { transform: rotate(0deg) translateY(-4px); }

.bankcard::after {
    content: '';
    position: absolute;
    right: -30%;
    bottom: -55%;
    width: 90%;
    height: 150%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.bankcard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.bankcard__brand { font-weight: 800; letter-spacing: -0.01em; }

.bankcard__chip {
    width: 38px; height: 27px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f7d98a 0%, #d8a33f 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.bankcard__number {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.bankcard__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 26px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.bankcard__bottom small {
    display: block;
    margin-bottom: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.72;
}

.landing__perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.landing__perks li {
    position: relative;
    padding-left: 27px;
    color: var(--text-muted);
    font-size: 0.93rem;
}
.landing__perks li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.42em;
    width: 15px; height: 8px;
    border-left: 2px solid var(--success);
    border-bottom: 2px solid var(--success);
    transform: rotate(-45deg);
}

/* -------------------------------------------------------------- section --- */
.section { padding: 40px 0 12px; }

.section__head { max-width: 620px; margin-bottom: 26px; }
.section__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.section__lead  { margin-top: 9px; color: var(--text-muted); }

/* ------------------------------------------------------------- features --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.feature {
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(12px);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.feature__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
}
.feature__icon svg { width: 21px; height: 21px; }

.feature h3 { font-size: 1.04rem; font-weight: 700; }
.feature p  { margin-top: 8px; color: var(--text-muted); font-size: 0.92rem; }

/* ---------------------------------------------------------------- steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps__item {
    position: relative;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.steps__num {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    margin-bottom: 14px;
    border-radius: 11px;
    background: var(--grad-brand);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.steps__item h3 { font-size: 1.02rem; font-weight: 700; }
.steps__item p  { margin-top: 7px; color: var(--text-muted); font-size: 0.92rem; }

/* ------------------------------------------------------------------ cta --- */
.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin: 46px 0 8px;
    padding: 32px 34px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 140% at 0% 0%, rgba(99, 102, 241, 0.26), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 800; }
.cta p  { margin-top: 8px; color: var(--text-muted); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------- services --- */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.service {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(12px);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.service__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-bottom: 17px;
    border-radius: 14px;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(99, 102, 241, 0.95);
}
.service__icon svg { width: 22px; height: 22px; }

.service__title { font-size: 1.1rem; font-weight: 700; }
.service__copy  { margin-top: 9px; color: var(--text-muted); font-size: 0.93rem; }

.service__points {
    margin: 17px 0 0;
    padding: 15px 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
    display: grid;
    gap: 9px;
}
.service__points li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.service__points li::before {
    content: '';
    position: absolute;
    left: 2px; top: 0.4em;
    width: 12px; height: 7px;
    border-left: 2px solid var(--brand-2);
    border-bottom: 2px solid var(--brand-2);
    transform: rotate(-45deg);
}

/* ------------------------------------------------------------- timeline --- */
.timeline {
    margin: 0;
    padding: 0 0 0 6px;
    list-style: none;
    border-left: 2px solid var(--border-strong);
}

.timeline__item {
    position: relative;
    padding: 0 0 26px 28px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
    content: '';
    position: absolute;
    left: -8px; top: 5px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: 0 0 0 4px var(--bg);
}

.timeline__year {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 11px;
    border: 1px solid rgba(244, 194, 107, 0.3);
    border-radius: 999px;
    background: rgba(244, 194, 107, 0.1);
    color: var(--gold);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline__body h3 { font-size: 1.02rem; font-weight: 700; }
.timeline__body p  { margin-top: 6px; color: var(--text-muted); font-size: 0.92rem; }

/* -------------------------------------------------------------- contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.contact-card {
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(12px);
    color: var(--text);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    text-decoration: none;
}

.contact-card__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: rgba(34, 211, 238, 0.14);
    color: var(--brand-2);
}
.contact-card__icon svg { width: 21px; height: 21px; }

.contact-card h2 {
    color: var(--text-dim);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.contact-card__value { margin-top: 8px; font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.contact-card small  { display: block; margin-top: 9px; color: var(--text-dim); font-size: 0.81rem; }

/* ------------------------------------------------------------------ faq --- */
.faq { display: grid; gap: 10px; }

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}
.faq__item[open] { border-color: var(--border-strong); }

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: background 0.18s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--surface-hover); }

.faq__sign {
    position: relative;
    flex: 0 0 16px;
    width: 16px; height: 16px;
}
.faq__sign::before,
.faq__sign::after {
    content: '';
    position: absolute;
    background: var(--brand-2);
    transition: transform 0.22s var(--ease);
}
.faq__sign::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__sign::after  { top: 0; left: 7px; width: 2px; height: 16px; }
.faq__item[open] .faq__sign::after { transform: scaleY(0); }

.faq__item p {
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* --------------------------------------------------------------- footer --- */
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 28px;
}

.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__tagline { color: var(--text-dim); font-size: 0.88rem; line-height: 1.65; }
.footer__tagline strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 1rem; }

.footer__col { display: grid; gap: 9px; align-content: start; }
.footer__col h2 {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.footer__col a { color: var(--text-dim); font-size: 0.88rem; }
.footer__col a:hover { color: var(--brand-2); text-decoration: none; }

.footer__base {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer__base .footer__meta { margin-top: 5px; font-size: 0.8rem; opacity: 0.85; }

/* ----------------------------------------------------------- responsive --- */
@media (max-width: 1000px) {
    .landing { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
    .landing__card { max-width: 420px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 760px) {
    /* the wider nav scrolls sideways instead of wrapping into a block */
    .nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav::-webkit-scrollbar { display: none; }
    .nav__link { white-space: nowrap; }
    .topbar__cta { width: 100%; justify-content: center; }
    .cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
    .cta__actions { width: 100%; }
    .cta__actions .btn { flex: 1 1 auto; }
    .landing__actions .btn { flex: 1 1 auto; }
    .trust { gap: 22px; }
    .trust__item dd { font-size: 1.4rem; }
    .footer__grid { grid-template-columns: 1fr; gap: 22px; }
    .bankcard__number { font-size: 0.9rem; gap: 9px; }
}
