/* ==========================================================================
   Fund Reliva — design system
   ========================================================================== */

:root {
    --navy-950: #06101f;
    --navy-900: #0a1a2f;
    --navy-800: #102742;
    --navy-700: #173555;
    --brand-700: #0b5f59;
    --brand-600: #0f766e;
    --brand-500: #0d9488;
    --brand-400: #2dd4bf;
    --brand-100: #ccfbf1;
    --brand-50: #f0fdfa;
    --gold: #e0b252;
    --gold-soft: #fdf5e2;

    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #6b7a90;
    --line: #e3e9f2;
    --line-strong: #cfd9e6;
    --positive: #0f9d58;
    --positive-soft: #e8f8ef;
    --negative: #dc2626;
    --negative-soft: #fdecec;
    --warning: #b45309;
    --warning-soft: #fef4e2;
    --info: #1d4ed8;
    --info-soft: #eaf0ff;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 12px 34px rgba(15, 23, 42, .08);
    --shadow-lg: 0 30px 70px rgba(6, 16, 31, .18);
    --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --sidebar: 264px;
}

* {
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -.02em;
    font-weight: 700;
}

p {
    margin: 0;
}

a {
    color: var(--brand-600);
    text-decoration: none;
}

a:hover {
    color: var(--brand-700);
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--brand-100);
    color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--brand-400), var(--brand-600) 58%, #064e48);
    box-shadow: 0 8px 20px rgba(13, 148, 136, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 30px;
    height: 90px;
    background: rgba(255, 255, 255, .18);
    transform: rotate(28deg);
}

.brand-mark span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #fff;
    position: relative;
    z-index: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
}

.brand-text strong span {
    color: var(--brand-400);
}

.brand-text small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .5);
    margin-top: 2px;
}

.brand--dark .brand-text strong {
    color: var(--ink);
}

.brand--dark .brand-text strong span {
    color: var(--brand-600);
}

.brand--dark .brand-text small {
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    --btn-bg: var(--brand-600);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
    white-space: nowrap;
}

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    --btn-bg: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    box-shadow: 0 10px 24px rgba(13, 118, 110, .3);
}

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--ink-2);
    border-color: var(--line-strong);
}

.btn--outline:hover {
    --btn-fg: var(--brand-700);
    border-color: var(--brand-400);
    background: var(--brand-50);
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink-2);
}

.btn--ghost:hover {
    --btn-fg: var(--ink);
    background: var(--surface-2);
}

.btn--danger {
    --btn-bg: var(--negative);
    box-shadow: 0 10px 24px rgba(220, 38, 38, .22);
}

.btn--soft-danger {
    --btn-bg: var(--negative-soft);
    --btn-fg: #b91c1c;
}

.btn--gold {
    --btn-bg: linear-gradient(135deg, #f2c66a, #d9a43c);
    --btn-fg: #3a2a04;
    box-shadow: 0 10px 24px rgba(224, 178, 82, .3);
}

.btn--sm {
    padding: 8px 13px;
    font-size: 13px;
    border-radius: 9px;
}

.btn--block {
    width: 100%;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--negative);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: grid;
    place-items: center;
    border: 2px solid var(--bg);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    display: inline-grid;
    place-items: center;
    position: relative;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.icon-btn:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--ink);
}

.icon-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, .55);
    width: 34px;
    height: 34px;
}

.icon-btn--ghost:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Badges & pills
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    background: var(--surface-2);
    color: var(--muted);
    white-space: nowrap;
}

.badge--success {
    background: var(--positive-soft);
    color: #087443;
}

.badge--warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge--danger {
    background: var(--negative-soft);
    color: #b91c1c;
}

.badge--info {
    background: var(--info-soft);
    color: var(--info);
}

.badge--gold {
    background: var(--gold-soft);
    color: #8a6415;
}

.badge--neutral {
    background: #eef2f7;
    color: var(--muted);
}

.badge--dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #087443;
    background: var(--positive-soft);
    padding: 7px 12px;
    border-radius: 999px;
}

.live-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--positive);
    box-shadow: 0 0 0 3px rgba(15, 157, 88, .16);
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    position: relative;
}

.alert > svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.alert span {
    flex: 1;
}

.alert--success {
    background: var(--positive-soft);
    border-color: #b9e8cd;
    color: #08633b;
}

.alert--danger {
    background: var(--negative-soft);
    border-color: #f6c6c6;
    color: #a91d1d;
}

.alert--info {
    background: var(--info-soft);
    border-color: #cfdcff;
    color: #1e40af;
}

.alert--warning {
    background: var(--warning-soft);
    border-color: #f5ddb0;
    color: #92400e;
}

.alert-list {
    margin-top: 6px;
    padding-left: 0;
    font-size: 13px;
}

.alert-list li {
    margin-top: 3px;
}

.alert-close {
    border: 0;
    background: transparent;
    color: inherit;
    opacity: .55;
    padding: 2px;
    line-height: 0;
}

.alert-close:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

.app-body {
    background:
        radial-gradient(1100px 500px at 100% -10%, rgba(13, 148, 136, .09), transparent 60%),
        radial-gradient(900px 480px at -10% 110%, rgba(10, 26, 47, .08), transparent 55%),
        var(--bg);
    min-height: 100vh;
}

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

.sidebar {
    width: var(--sidebar);
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
    color: rgba(255, 255, 255, .72);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    padding: 22px 16px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(45, 212, 191, .22), transparent 68%);
    pointer-events: none;
}

.sidebar--admin {
    background: linear-gradient(180deg, #0b1b30 0%, #06101f 100%);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 8px 20px;
    position: relative;
}

.sidebar-close {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 9px;
    padding: 6px;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0 8px 16px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(224, 178, 82, .12);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid rgba(224, 178, 82, .2);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    position: relative;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .32);
    padding: 16px 12px 7px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 11px;
    color: rgba(255, 255, 255, .64);
    font-size: 13.5px;
    font-weight: 500;
    transition: background .16s ease, color .16s ease, transform .16s ease;
    position: relative;
}

.nav-item svg {
    opacity: .8;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(13, 148, 136, .9), rgba(11, 95, 89, .9));
    color: #fff;
    box-shadow: 0 8px 20px rgba(6, 16, 31, .4);
}

.nav-item.active svg {
    opacity: 1;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: var(--brand-400);
}

.nav-badge {
    margin-left: auto;
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.nav-badge--gold {
    background: rgba(224, 178, 82, .2);
    color: var(--gold);
}

.sidebar-foot {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.support-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
}

.support-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(45, 212, 191, .14);
    color: var(--brand-400);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.support-card strong {
    display: block;
    color: #fff;
    font-size: 12.5px;
}

.support-card a {
    font-size: 11.5px;
    color: var(--brand-400);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.sidebar-user-info strong {
    color: #fff;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info small {
    color: rgba(255, 255, 255, .42);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar);
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 30px;
    background: rgba(243, 246, 251, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(227, 233, 242, .8);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.page-heading h1 {
    font-size: 20px;
    font-weight: 750;
}

.page-heading p {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu {
    display: none;
}

.page {
    padding: 26px 30px 50px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.page--narrow {
    max-width: 980px;
}

/* --------------------------------------------------------------------------
   Avatars & user menu
   -------------------------------------------------------------------------- */

.avatar {
    --avatar-color: var(--brand-600);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: var(--avatar-color);
    background: linear-gradient(145deg, color-mix(in srgb, var(--avatar-color) 82%, white), var(--avatar-color));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.avatar--sm {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 10.5px;
}

.avatar--lg {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 17px;
}

.avatar--xl {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    font-size: 22px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.avatar-upload-preview {
    flex-shrink: 0;
}

.avatar-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 220px;
}

.file-input {
    width: 100%;
    font-size: 12.5px;
    color: var(--muted);
}

.file-input::file-selector-button {
    margin-right: 12px;
    padding: 8px 13px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--ink-2);
    font-family: inherit;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
}

.file-input::file-selector-button:hover {
    border-color: var(--brand-400);
    background: var(--brand-50);
    color: var(--brand-700);
}

.user-menu {
    position: relative;
}

.user-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 5px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu summary:hover {
    background: var(--surface);
    border-color: var(--line);
}

.user-menu-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-caret {
    transform: rotate(90deg);
    color: var(--muted);
    transition: transform .2s ease;
}

.user-menu[open] .user-menu-caret {
    transform: rotate(-90deg);
}

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 230px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 90;
}

.user-menu-head {
    padding: 10px 11px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
}

.user-menu-head strong {
    font-size: 13px;
}

.user-menu-head small {
    color: var(--muted);
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-panel a,
.user-menu-panel button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border-radius: 9px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    border: 0;
    background: transparent;
    text-align: left;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.sidebar-scrim {
    display: none;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    gap: 18px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--sidebar {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: start;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.muted {
    color: var(--muted);
}

.small {
    font-size: 12.5px;
}

.tiny {
    font-size: 11.5px;
}

.strong {
    font-weight: 700;
}

.text-right {
    text-align: right;
}

.nowrap {
    white-space: nowrap;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 26px; }

.positive { color: var(--positive); }
.negative { color: var(--negative); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-600);
    background: var(--brand-50);
    border: 1px solid #c7f0ea;
    padding: 6px 11px;
    border-radius: 999px;
}

.eyebrow--light {
    color: var(--brand-400);
    background: rgba(45, 212, 191, .1);
    border-color: rgba(45, 212, 191, .2);
}

/* --------------------------------------------------------------------------
   Panels & cards
   -------------------------------------------------------------------------- */

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel--flat {
    box-shadow: none;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
    font-size: 15.5px;
    font-weight: 700;
}

.panel-head p {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.panel-title {
    display: flex;
    flex-direction: column;
}

.panel-body {
    padding: 22px;
}

.panel-body--tight {
    padding: 12px 10px;
}

.panel-foot {
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted);
}

.panel-link {
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-600);
}

/* --------------------------------------------------------------------------
   Stat cards
   -------------------------------------------------------------------------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
    flex-shrink: 0;
}

.stat-icon--gold { background: var(--gold-soft); color: #a9781a; }
.stat-icon--blue { background: var(--info-soft); color: var(--info); }
.stat-icon--green { background: var(--positive-soft); color: var(--positive); }
.stat-icon--red { background: var(--negative-soft); color: var(--negative); }
.stat-icon--navy { background: #e8eef7; color: var(--navy-800); }

.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.stat-value {
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1;
}

.stat-value--small {
    font-size: 19px;
}

.stat-foot {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--muted);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 11.5px;
}

.stat-trend--up { color: var(--positive); }
.stat-trend--down { color: var(--negative); }

/* --------------------------------------------------------------------------
   Balance hero
   -------------------------------------------------------------------------- */

.balance-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 26px 28px;
    color: #fff;
    background:
        radial-gradient(700px 280px at 88% -20%, rgba(45, 212, 191, .4), transparent 70%),
        radial-gradient(500px 240px at 105% 120%, rgba(224, 178, 82, .22), transparent 60%),
        linear-gradient(135deg, #0a1a2f 0%, #0c2b42 50%, #0b5f59 130%);
    box-shadow: 0 26px 60px rgba(6, 16, 31, .3);
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 100%;
}

.balance-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .09);
    right: -90px;
    bottom: -150px;
    box-shadow: 0 0 0 42px rgba(255, 255, 255, .03), 0 0 0 90px rgba(255, 255, 255, .02);
}

.balance-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
}

.balance-amount {
    font-size: 42px;
    font-weight: 750;
    letter-spacing: -.04em;
    margin-top: 8px;
    line-height: 1;
}

.balance-amount small {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    margin-left: 6px;
    letter-spacing: 0;
}

.balance-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    position: relative;
    z-index: 1;
}

.balance-meta strong {
    color: #fff;
    font-weight: 650;
}

.balance-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.balance-actions .btn {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(4px);
    color: #fff;
    box-shadow: none;
}

.balance-actions .btn:hover {
    background: rgba(255, 255, 255, .18);
}

.balance-actions .btn--gold {
    background: linear-gradient(135deg, #f2c66a, #d9a43c);
    color: #3a2a04;
    border-color: transparent;
}

.balance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
}

/* --------------------------------------------------------------------------
   Quick actions
   -------------------------------------------------------------------------- */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.quick-action:hover {
    border-color: var(--brand-400);
    background: var(--brand-50);
    color: var(--brand-700);
    transform: translateY(-1px);
}

.quick-action span.q-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand-600);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Account cards
   -------------------------------------------------------------------------- */

.account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

a.account-row:hover {
    border-color: var(--brand-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.account-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
    flex-shrink: 0;
}

.account-icon--savings { background: var(--gold-soft); color: #a9781a; }
.account-icon--business { background: var(--info-soft); color: var(--info); }

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

.account-info strong {
    font-size: 13.5px;
}

.account-info small {
    font-size: 11.5px;
    color: var(--muted);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: .02em;
}

.account-balance {
    text-align: right;
    font-weight: 700;
    font-size: 14px;
}

.account-balance small {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Transactions list
   -------------------------------------------------------------------------- */

.tx-list {
    display: flex;
    flex-direction: column;
}

a.tx-item {
    color: inherit;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    border-bottom: 1px solid var(--line);
    transition: background .15s ease;
}

.tx-item:last-child {
    border-bottom: 0;
}

.tx-item:hover {
    background: var(--surface-2);
}

.tx-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.tx-icon--in {
    background: var(--positive-soft);
    color: var(--positive);
}

.tx-icon--out {
    background: #eef2f7;
    color: var(--ink-2);
}

.tx-body {
    flex: 1;
    min-width: 0;
}

.tx-title {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tx-meta {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-amount {
    text-align: right;
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
}

.tx-amount small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .03em;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.tx-amount--in { color: var(--positive); }
.tx-amount--out { color: var(--ink); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.table thead th {
    text-align: left;
    padding: 11px 18px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

table.table tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

table.table tbody tr:last-child td {
    border-bottom: 0;
}

table.table tbody tr:hover {
    background: #fbfcfe;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.table-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.table-user-info strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-user-info small {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mono {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    letter-spacing: .01em;
}

/* --------------------------------------------------------------------------
   Filters & forms
   -------------------------------------------------------------------------- */

.toolbar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.toolbar .field {
    margin: 0;
    flex: 1;
    min-width: 140px;
}

.toolbar .field--wide {
    flex: 2;
    min-width: 200px;
}

.toolbar .field--auto {
    flex: 0 0 auto;
    min-width: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.field label .req {
    color: var(--negative);
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
    transition: border-color .16s ease, box-shadow .16s ease;
    appearance: none;
}

.input::placeholder,
.textarea::placeholder {
    color: #9aa8ba;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3.5px rgba(13, 148, 136, .13);
}

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.textarea {
    min-height: 90px;
    resize: vertical;
}

.field .hint {
    font-size: 11.5px;
    color: var(--muted);
}

.field .error-text {
    font-size: 11.5px;
    color: var(--negative);
    font-weight: 500;
}

.input.is-invalid,
.select.is-invalid {
    border-color: var(--negative);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .input {
    border-radius: 11px 0 0 11px;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-left: 0;
    border-radius: 0 11px 11px 0;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .field--full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    color: var(--ink-2);
}

.checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--brand-600);
    flex-shrink: 0;
}

.input-with-button {
    position: relative;
}

.input-with-button .input {
    padding-right: 60px;
}

.input-with-button .input-suffix {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: var(--surface-2);
    color: var(--brand-600);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 7px;
}

/* --------------------------------------------------------------------------
   Virtual cards
   -------------------------------------------------------------------------- */

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

.virtual-card {
    position: relative;
    aspect-ratio: 1.586 / 1;
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(420px 200px at 100% -10%, rgba(45, 212, 191, .35), transparent 65%),
        linear-gradient(135deg, #0a1a2f, #123b52 62%, #0b5f59);
    box-shadow: 0 24px 50px rgba(6, 16, 31, .32);
}

.virtual-card--gold {
    background:
        radial-gradient(420px 200px at 100% -10%, rgba(255, 255, 255, .25), transparent 65%),
        linear-gradient(135deg, #6b4a0d, #b98a2c 55%, #e0b252);
}

.virtual-card--frozen {
    filter: grayscale(.8);
    opacity: .78;
}

.virtual-card::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    right: -90px;
    bottom: -120px;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, .04);
}

.vc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.vc-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

.vc-brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
}

.vc-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .16);
}

.vc-chip {
    width: 42px;
    height: 30px;
    border-radius: 7px;
    margin-top: 20px;
    background: linear-gradient(135deg, #f4dca4, #c9a24a);
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .6);
}

.vc-chip::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(101, 72, 12, .35);
    border-radius: 3px;
}

.vc-number {
    margin-top: auto;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 18px;
    letter-spacing: .13em;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.vc-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

.vc-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 3px;
}

.vc-value {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .03em;
}

.vc-logo {
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .92);
}

.card-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    margin-top: -2px;
}

.card-meta {
    display: flex;
    flex-direction: column;
    font-size: 11.5px;
    color: var(--muted);
}

.card-meta strong {
    font-size: 12.5px;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Loans
   -------------------------------------------------------------------------- */

.loan-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: #e8edf4;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
}

.progress-bar--gold {
    background: linear-gradient(90deg, #f2c66a, #d9a43c);
}

.loan-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.loan-row:hover {
    border-color: var(--brand-400);
}

.loan-row-main {
    flex: 1;
    min-width: 0;
}

.loan-row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 650;
}

.loan-row-meta {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

.loan-amount {
    text-align: right;
    font-weight: 700;
    font-size: 14px;
}

.loan-amount small {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 500;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-item .detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 600;
}

.detail-item .detail-value {
    font-size: 14px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Chart / activity
   -------------------------------------------------------------------------- */

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 130px;
    padding-top: 8px;
}

.chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
    min-height: 4px;
    transition: height .3s ease;
    position: relative;
}

.chart-bar--muted {
    background: linear-gradient(180deg, #dbe3ee, #c6d1e0);
}

.chart-bar-label {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
}

.chart-bar-value {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}

.spend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
}

.spend-swatch {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--brand-500);
    flex-shrink: 0;
}

.spend-name {
    flex: 1;
    font-size: 12.5px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spend-value {
    font-size: 12.5px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Notifications
   -------------------------------------------------------------------------- */

.notification-item {
    display: flex;
    gap: 13px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item--unread {
    background: #f7fdfc;
}

.notification-item--unread::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-500);
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--info-soft);
    color: var(--info);
    flex-shrink: 0;
}

.notification-icon--success { background: var(--positive-soft); color: var(--positive); }
.notification-icon--warning { background: var(--warning-soft); color: var(--warning); }
.notification-icon--danger { background: var(--negative-soft); color: var(--negative); }

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-body strong {
    font-size: 13.5px;
}

.notification-body p {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
}

.notification-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}

/* --------------------------------------------------------------------------
   Empty states
   -------------------------------------------------------------------------- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 40px 24px;
    color: var(--muted);
}

.empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--muted);
    margin-bottom: 4px;
}

.empty-state strong {
    color: var(--ink);
    font-size: 14px;
}

.empty-state p {
    font-size: 12.5px;
    max-width: 320px;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid transparent;
}

a.page-btn:hover {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--ink);
}

.page-btn.active {
    background: var(--brand-600);
    color: #fff;
}

.page-btn.disabled {
    opacity: .4;
}

.page-ellipsis {
    padding: 0 4px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.guest-body {
    background: var(--bg);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 340px at 85% 0%, rgba(45, 212, 191, .3), transparent 60%),
        radial-gradient(600px 320px at -10% 100%, rgba(224, 178, 82, .16), transparent 60%),
        linear-gradient(160deg, #071426 0%, #0a2238 55%, #0b4c48 130%);
    color: #fff;
    padding: 40px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.auth-brand-top {
    position: relative;
    z-index: 1;
}

.auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.auth-brand-copy h2 {
    font-size: 42px;
    font-weight: 780;
    letter-spacing: -.04em;
    margin: 16px 0 14px;
    line-height: 1.05;
}

.auth-brand-copy p {
    color: rgba(255, 255, 255, .62);
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 400px;
}

.auth-features {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
}

.auth-features li span {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(45, 212, 191, .16);
    color: var(--brand-400);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.auth-quote {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
    max-width: 440px;
}

.auth-quote p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .72);
    font-style: italic;
    line-height: 1.6;
}

.auth-quote > div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.auth-quote span {
    display: flex;
    flex-direction: column;
}

.auth-quote strong {
    font-size: 12.5px;
    color: #fff;
}

.auth-quote small {
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
}

.auth-brand-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand-orb--one {
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, .07);
    right: -140px;
    bottom: -120px;
    box-shadow: 0 0 0 50px rgba(255, 255, 255, .02), 0 0 0 110px rgba(255, 255, 255, .015);
}

.auth-brand-orb--two {
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .08);
    left: -70px;
    top: 30%;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(13, 148, 136, .05), transparent 60%),
        var(--surface);
}

.auth-panel-inner {
    width: 100%;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: center;
}

.auth-mobile-brand {
    display: none;
    margin-bottom: 26px;
}

.auth-header {
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 760;
    letter-spacing: -.035em;
}

.auth-header p {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 6px;
}

.auth-form .field {
    margin-bottom: 15px;
}

.auth-form .btn {
    margin-top: 6px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.demo-box {
    border: 1px dashed var(--line-strong);
    background: var(--surface-2);
    border-radius: 13px;
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-box strong {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

.demo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.demo-row code {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 11.5px;
    color: var(--ink-2);
}

.demo-row button {
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--brand-600);
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--muted);
}

.auth-footer-links {
    display: flex;
    gap: 14px;
}

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */

.landing {
    background: #fff;
    overflow-x: hidden;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(20px, 5vw, 70px);
    background: rgba(6, 16, 31, .86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.landing-nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .62);
}

.landing-nav-links a:hover {
    color: #fff;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-nav-actions .btn--outline {
    --btn-fg: rgba(255, 255, 255, .82);
    border-color: rgba(255, 255, 255, .2);
}

.landing-nav-actions .btn--outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .35);
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(50px, 8vw, 100px) clamp(20px, 5vw, 70px) clamp(60px, 9vw, 120px);
    background:
        radial-gradient(900px 460px at 78% -10%, rgba(45, 212, 191, .22), transparent 62%),
        radial-gradient(600px 400px at 0% 110%, rgba(224, 178, 82, .12), transparent 60%),
        linear-gradient(155deg, #06101f 0%, #0a2036 55%, #0a3533 120%);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.landing-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
    right: -160px;
    top: -160px;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .02), 0 0 0 150px rgba(255, 255, 255, .014);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero-copy h1 {
    font-size: clamp(38px, 5.2vw, 66px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.02;
    margin: 18px 0 18px;
}

.hero-copy h1 em {
    font-style: normal;
    color: var(--brand-400);
    position: relative;
}

.hero-copy > p {
    font-size: clamp(14px, 1.4vw, 16.5px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .62);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-actions .btn--outline {
    --btn-fg: rgba(255, 255, 255, .86);
    border-color: rgba(255, 255, 255, .22);
}

.hero-actions .btn--outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .4);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .56);
    font-weight: 500;
}

.hero-trust-item svg {
    color: var(--brand-400);
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.phone-mock {
    width: min(320px, 100%);
    border-radius: 38px;
    background: linear-gradient(160deg, #0e2337, #071526);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
    transform: rotate(2deg);
    position: relative;
}

.phone-screen {
    border-radius: 28px;
    background: #f5f8fc;
    overflow: hidden;
    padding: 20px 18px 22px;
    color: var(--ink);
    min-height: 480px;
}

.phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--ink-2);
    padding: 0 4px 16px;
}

.phone-hero {
    border-radius: 18px;
    padding: 16px;
    color: #fff;
    background:
        radial-gradient(240px 120px at 100% 0%, rgba(45, 212, 191, .4), transparent 65%),
        linear-gradient(135deg, #0a1a2f, #0b5f59 130%);
    box-shadow: 0 14px 30px rgba(6, 16, 31, .25);
}

.phone-hero small {
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
}

.phone-hero strong {
    display: block;
    font-size: 25px;
    letter-spacing: -.03em;
    margin-top: 5px;
}

.phone-pills {
    display: flex;
    gap: 6px;
    margin-top: 13px;
}

.phone-pill {
    flex: 1;
    padding: 7px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    font-size: 8.5px;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, .85);
}

.phone-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 2px 9px;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.phone-tx {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.phone-tx:last-child {
    border-bottom: 0;
}

.phone-tx-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-600);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.phone-tx-body {
    flex: 1;
    min-width: 0;
}

.phone-tx-body strong {
    display: block;
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-tx-body small {
    font-size: 8px;
    color: var(--muted);
}

.phone-tx-amount {
    font-size: 9.5px;
    font-weight: 700;
}

.phone-float {
    position: absolute;
    background: #fff;
    border-radius: 13px;
    padding: 11px 13px;
    box-shadow: 0 20px 40px rgba(6, 16, 31, .22);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10.5px;
    color: var(--ink);
    z-index: 2;
}

.phone-float strong {
    display: block;
    font-size: 11px;
}

.phone-float small {
    font-size: 9px;
    color: var(--muted);
}

.phone-float-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--positive-soft);
    color: var(--positive);
    flex-shrink: 0;
}

.phone-float--one {
    top: 16%;
    left: -34px;
}

.phone-float--two {
    bottom: 14%;
    right: -28px;
}

.landing-section {
    padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 70px);
}

.landing-section--tint {
    background: var(--surface-2);
}

.section-head {
    max-width: 640px;
    margin-bottom: 38px;
}

.section-head h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 780;
    letter-spacing: -.04em;
    margin-top: 12px;
}

.section-head p {
    color: var(--muted);
    font-size: 14.5px;
    margin-top: 12px;
    line-height: 1.7;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--brand-400);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
}

.feature-icon--gold { background: var(--gold-soft); color: #a9781a; }
.feature-icon--blue { background: var(--info-soft); color: var(--info); }

.feature-card h3 {
    font-size: 16px;
    margin-top: 4px;
}

.feature-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 30px clamp(20px, 5vw, 70px);
    background: linear-gradient(135deg, #06101f, #0a2036 60%, #0b4c48 140%);
    color: #fff;
}

.stats-strip-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-left: 1px solid rgba(255, 255, 255, .1);
    padding-left: 22px;
}

.stats-strip-item:first-child {
    border-left: 0;
    padding-left: 0;
}

.stats-strip-item strong {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 780;
    letter-spacing: -.04em;
    color: var(--brand-400);
}

.stats-strip-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    counter-reset: step;
}

.step-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--navy-900);
    color: var(--brand-400);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 15.5px;
}

.step-card p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 7px;
    line-height: 1.65;
}

.cta-band {
    margin: 0 clamp(20px, 5vw, 70px) clamp(50px, 6vw, 80px);
    border-radius: var(--radius-xl);
    padding: clamp(34px, 5vw, 56px);
    background:
        radial-gradient(600px 300px at 100% -20%, rgba(45, 212, 191, .3), transparent 60%),
        linear-gradient(135deg, #0a1a2f, #0b5f59 150%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}

.cta-band h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    letter-spacing: -.04em;
    max-width: 520px;
}

.cta-band p {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    margin-top: 10px;
    max-width: 460px;
}

.landing-footer {
    padding: 40px clamp(20px, 5vw, 70px);
    background: var(--navy-950);
    color: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 12px;
}

.landing-footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.landing-footer a {
    color: rgba(255, 255, 255, .55);
}

.landing-footer a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Public subpages
   -------------------------------------------------------------------------- */

.landing-nav-links a.active {
    color: #fff;
}

.subpage-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(52px, 7vw, 92px) clamp(20px, 5vw, 70px);
    background:
        radial-gradient(760px 360px at 82% -20%, rgba(45, 212, 191, .22), transparent 62%),
        radial-gradient(520px 300px at 0% 120%, rgba(224, 178, 82, .12), transparent 60%),
        linear-gradient(155deg, #06101f 0%, #0a2036 55%, #0a3533 130%);
    color: #fff;
}

.subpage-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .07);
    right: -150px;
    top: -120px;
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 130px rgba(255, 255, 255, .015);
    pointer-events: none;
}

.subpage-hero .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.subpage-hero h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.04;
    margin: 18px 0 16px;
}

.subpage-hero h1 em {
    font-style: normal;
    color: var(--brand-400);
}

.subpage-hero p {
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .62);
    max-width: 600px;
}

.page-section {
    padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 70px);
}

.page-section--tint {
    background: var(--surface-2);
}

.prose {
    max-width: 860px;
    margin: 0 auto;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.8;
}

.prose h2 {
    margin: 34px 0 10px;
    font-size: 23px;
    color: var(--ink);
}

.prose h3 {
    margin: 24px 0 8px;
    font-size: 17px;
    color: var(--ink);
}

.prose p {
    margin: 0 0 14px;
}

.prose ul,
.prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
    list-style: disc;
}

.prose li {
    margin-bottom: 6px;
}

.prose a {
    color: var(--brand-600);
    font-weight: 600;
}

.prose .updated {
    display: inline-block;
    font-size: 11.5px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

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

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.contact-card h3 {
    font-size: 16px;
    margin: 14px 0 6px;
}

.contact-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}

.contact-card a,
.contact-card strong {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-700);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--brand-600);
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.faq-category {
    max-width: 860px;
    margin: 38px auto 14px;
    font-size: 16px;
    font-weight: 750;
    color: var(--ink);
    letter-spacing: -.015em;
}

.faq-category:first-of-type {
    margin-top: 0;
}

.about-hero {
    background-size: cover;
    background-position: center;
}

.about-hero .hero-copy h1,
.about-hero .hero-copy p {
    text-shadow: 0 2px 18px rgba(6, 16, 31, .35);
}

.about-story-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: var(--shadow-lg);
}

.about-story-image img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.about-image-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.about-image-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.about-image-caption {
    padding: 13px 16px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}

.about-image-caption strong {
    display: block;
    color: var(--ink);
    font-size: 12.5px;
    margin-bottom: 2px;
}

.about-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.about-media img {
    width: 100%;
    display: block;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.about-photo-credit {
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: .02em;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .about-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}

.rate-spotlight {
    border-radius: var(--radius-xl);
    padding: 30px;
    color: #fff;
    background:
        radial-gradient(400px 220px at 100% 0%, rgba(45, 212, 191, .34), transparent 65%),
        linear-gradient(135deg, #0a1a2f, #0b5f59 145%);
    box-shadow: var(--shadow-lg);
}

.rate-spotlight .rate {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    margin: 10px 0 4px;
}

.rate-spotlight .rate small {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
    letter-spacing: 0;
}

.rate-spotlight p {
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    line-height: 1.7;
}

.rate-spotlight .kv-row {
    color: rgba(255, 255, 255, .7);
}

.rate-spotlight .kv-row strong {
    color: #fff;
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .subpage-hero {
        padding-top: 44px;
    }
}

/* --------------------------------------------------------------------------
   Support tickets
   -------------------------------------------------------------------------- */

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
}

.ticket-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ticket-message-content {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 15px;
}

.ticket-message--staff .ticket-message-content {
    background: var(--brand-50);
    border-color: #c7f0ea;
}

.ticket-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.ticket-message-head strong {
    font-size: 12.5px;
}

.ticket-message-head span {
    font-size: 11px;
    color: var(--muted);
}

.ticket-message-body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-2);
    white-space: pre-line;
}

.ticket-reply {
    border-top: 1px solid var(--line);
    padding: 20px 22px;
    background: var(--surface-2);
}

.ticket-reply .field {
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.copy-btn {
    border: 0;
    background: transparent;
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
}

.copy-feedback {
    color: var(--positive);
    font-size: 10.5px;
    font-weight: 700;
}

.kv-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.kv-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 12.5px;
}

.kv-row span:first-child {
    color: var(--muted);
}

.kv-row strong {
    font-weight: 650;
    text-align: right;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 16px 0;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tab-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-dot--success { background: var(--positive); }
.status-dot--warning { background: var(--warning); }
.status-dot--danger { background: var(--negative); }
.status-dot--muted { background: var(--muted); }

.section-title {
    font-size: 15.5px;
    font-weight: 700;
}

.section-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .landing-nav-links {
        gap: 15px;
    }

    .landing-nav-links a {
        font-size: 12.5px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 960px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-flex;
    }

    .app-main {
        margin-left: 0;
    }

    .mobile-menu {
        display: inline-grid;
    }

    .sidebar-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(6, 16, 31, .5);
        backdrop-filter: blur(2px);
        z-index: 55;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }

    body.sidebar-open .sidebar-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-brand {
        display: none;
    }

    .auth-mobile-brand {
        display: block;
    }

    .auth-panel {
        padding: 30px 20px;
        align-items: flex-start;
    }

    .auth-panel-inner {
        justify-content: flex-start;
    }

    .feature-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-strip-item:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .landing-nav-links {
        display: none;
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 13px 16px;
    }

    .page {
        padding: 18px 16px 40px;
    }

    .grid--2,
    .grid--3,
    .grid--4,
    .stat-grid,
    .form-grid,
    .form-grid--3,
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .topbar-transfer,
    .user-menu-name {
        display: none;
    }

    .page-heading h1 {
        font-size: 17px;
    }

    .balance-hero {
        padding: 22px;
    }

    .balance-amount {
        font-size: 32px;
    }

    .feature-grid,
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-hero {
        padding-top: 44px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .stats-strip-item {
        padding-left: 14px;
    }

    .stats-strip-item:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .cta-band {
        margin-left: 16px;
        margin-right: 16px;
    }

    .tx-item {
        padding: 12px 16px;
    }

    .panel-head,
    .panel-body,
    .toolbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .landing-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .quick-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .balance-actions .btn {
        flex: 1;
    }

    .topbar-actions {
        gap: 6px;
    }
}

/* --------------------------------------------------------------------------
   Public frontend readability
   -------------------------------------------------------------------------- */

.landing {
    font-size: 16.5px;
}

.landing .landing-nav-links a {
    font-size: 14.5px;
}

.landing .btn {
    font-size: 15px;
}

.landing .btn--sm {
    font-size: 13.5px;
}

.landing .eyebrow {
    font-size: 12px;
}

.landing .hero-copy > p {
    font-size: clamp(16.5px, 1.5vw, 18.5px);
    line-height: 1.75;
}

.landing .subpage-hero p {
    font-size: clamp(16.5px, 1.4vw, 18px);
    line-height: 1.75;
}

.landing .section-head p {
    font-size: 16.5px;
    line-height: 1.75;
}

.landing .hero-trust-item {
    font-size: 13px;
}

.landing .feature-card h3 {
    font-size: 17.5px;
}

.landing .feature-card p {
    font-size: 15px;
    line-height: 1.7;
}

.landing .step-card h3 {
    font-size: 16.5px;
}

.landing .step-card p {
    font-size: 15px;
    line-height: 1.7;
}

.landing .stats-strip-item span {
    font-size: 13.5px;
}

.landing .cta-band p {
    font-size: 15.5px;
    line-height: 1.7;
}

.landing .landing-footer {
    font-size: 13.5px;
}

.landing .landing-footer-links a {
    font-size: 13.5px;
}

.landing .small {
    font-size: 13.5px;
}

.landing .tiny {
    font-size: 12.25px;
}

.landing .kv-row {
    font-size: 13.5px;
}

.landing .about-image-caption {
    font-size: 13.5px;
}

.landing .about-image-caption strong {
    font-size: 14px;
}

.landing .about-photo-credit {
    font-size: 12px;
}

.landing .rate-spotlight p {
    font-size: 15px;
    line-height: 1.7;
}

.landing .rate-spotlight .kv-row {
    font-size: 14px;
}

.landing .contact-card h3 {
    font-size: 17px;
}

.landing .contact-card p {
    font-size: 15px;
    line-height: 1.7;
}

.landing .contact-card a,
.landing .contact-card strong {
    font-size: 15px;
}

.landing .prose {
    font-size: 16px;
    line-height: 1.85;
}

.landing .prose h2 {
    font-size: 26px;
}

.landing .prose h3 {
    font-size: 19px;
}

.landing .faq-category {
    font-size: 18px;
}

.landing .faq-item summary {
    font-size: 16px;
}

.landing .faq-answer {
    font-size: 15.5px;
    line-height: 1.8;
}

.landing .prose .updated {
    font-size: 12.5px;
}

@media (max-width: 1180px) {
    .landing .landing-nav-links {
        gap: 12px;
    }

    .landing .landing-nav-links a {
        font-size: 13px;
    }
}

.savings-hero {
    background-size: cover;
    background-position: center;
}

.savings-hero .hero-copy h1,
.savings-hero .hero-copy p {
    text-shadow: 0 2px 18px rgba(6, 16, 31, .35);
}

/* --------------------------------------------------------------------------
   Home feature blocks
   -------------------------------------------------------------------------- */

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 20px;
    margin-top: 20px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--ink-2);
}

.check-item > span:first-child {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--positive-soft);
    color: var(--positive);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

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

.offer-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--brand-400);
}

.offer-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.offer-body {
    padding: 18px;
}

.offer-body h3 {
    font-size: 16.5px;
    margin-bottom: 6px;
}

.offer-body p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--muted);
}

@media (max-width: 1180px) {
    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .offer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .check-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Public mobile navigation
   -------------------------------------------------------------------------- */

.landing-mobile-actions {
    display: none;
}

.public-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.public-menu-toggle:hover {
    background: rgba(255, 255, 255, .13);
}

@media (max-width: 960px) {
    .landing-nav {
        position: sticky;
    }

    .public-menu-toggle {
        display: inline-flex;
    }

    .landing-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 20px 20px;
        background: #06101f;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        box-shadow: 0 24px 40px rgba(6, 16, 31, .28);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        z-index: 60;
    }

    .landing-nav-links.is-open {
        display: flex;
    }

    .landing-nav-links > a {
        padding: 12px 10px;
        border-radius: 9px;
        font-size: 15px;
    }

    .landing-nav-links > a:hover,
    .landing-nav-links > a.active {
        background: rgba(255, 255, 255, .07);
        color: #fff;
    }

    .landing-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .landing-mobile-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 11px 14px;
        font-size: 14px;
    }
}

@media (max-width: 760px) {
    .landing-nav .landing-nav-actions .btn--outline {
        display: none;
    }
}

@media (max-width: 480px) {
    .landing-nav {
        padding-left: 16px;
        padding-right: 16px;
        gap: 10px;
    }

    .landing-nav .landing-nav-actions {
        display: none;
    }

    .landing-nav .brand-text small {
        display: none;
    }

    .landing-nav .brand-text strong {
        font-size: 16px;
    }

    .landing-nav .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
}

/* --------------------------------------------------------------------------
   Mobile app shell refinements
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
    .panel-head {
        flex-wrap: wrap;
    }

    .topbar {
        gap: 10px;
    }

    .topbar-left {
        flex: 1;
        min-width: 0;
    }

    .page-heading {
        min-width: 0;
    }

    .page-heading h1 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-actions {
        flex-shrink: 0;
    }

    .live-pill {
        display: none;
    }

    .card-panel-actions {
        flex-wrap: wrap;
    }

    .account-row {
        flex-wrap: wrap;
    }

    .account-row .account-info {
        flex: 1 1 calc(100% - 60px);
    }

    .account-row .account-balance,
    .account-row .badge {
        margin-left: auto;
    }

    .loan-row {
        flex-wrap: wrap;
    }

    .loan-row .loan-amount {
        margin-left: auto;
    }

    .table-wrap table.table {
        min-width: 680px;
    }

    .sidebar {
        width: min(86vw, 300px);
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .balance-actions .btn {
        flex: 1 1 100%;
    }

    .tx-item {
        flex-wrap: wrap;
    }

    .tx-amount {
        margin-left: auto;
    }
}
