/* ─────────────────────────────────────────
   Uber-Inspired Design System
   All tokens and component overrides
───────────────────────────────────────── */

/* ── Tokens ── */
:root {
    /* Core palette */
    --uber-black:       #000000;
    --uber-white:       #ffffff;
    --uber-body-gray:   #4b4b4b;
    --uber-muted-gray:  #afafaf;
    --uber-chip-gray:   #efefef;
    --uber-hover-gray:  #e2e2e2;
    --uber-hover-light: #f3f3f3;

    /* Shadows */
    --shadow-subtle:  rgba(0,0,0,.12) 0px 4px 16px 0px;
    --shadow-medium:  rgba(0,0,0,.16) 0px 4px 16px 0px;
    --shadow-float:   rgba(0,0,0,.16) 0px 2px 8px 0px;
    --shadow-pressed: inset rgba(0,0,0,.08) 0px 0px 0px 999px;

    /* Typography */
    --font-headline: 'Inter', system-ui, 'Helvetica Neue', Arial, sans-serif;
    --font-body:     'Inter', system-ui, 'Helvetica Neue', Arial, sans-serif;

    /* Border radius */
    --radius-card:     8px;
    --radius-featured: 12px;
    --radius-pill:     999px;
    --radius-circle:   50%;
    --radius-input:    8px;

    /* Spacing (8px base) */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Bootstrap overrides */
    --bs-body-font-family:   var(--font-body);
    --bs-body-color:         var(--uber-black);
    --bs-body-bg:            var(--uber-white);
    --bs-primary:            var(--uber-black);
    --bs-primary-rgb:        0, 0, 0;
    --bs-link-color:         var(--uber-black);
    --bs-link-hover-color:   var(--uber-black);
    --bs-border-radius:      var(--radius-card);
    --bs-card-border-radius: var(--radius-card);
    --bs-card-border-width:  0;
    --bs-card-box-shadow:    var(--shadow-subtle);
}

/* ── Base ── */
body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--uber-black);
    background-color: var(--uber-white);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.25;
    color: var(--uber-black);
}

/* ── Links ── */
a {
    color: var(--uber-black);
    text-decoration: underline;
}
a:hover {
    color: var(--uber-black);
    text-decoration: none;
}

/* ── Primary Button (Black Pill CTA) ── */
.btn-primary {
    background-color: var(--uber-black);
    border-color: var(--uber-black);
    color: var(--uber-white);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 12px;
    min-height: 44px;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--uber-white);
}
.btn-primary:focus-visible {
    box-shadow: rgb(255,255,255) 0px 0px 0px 2px inset;
    outline: none;
}
.btn-primary:active {
    box-shadow: var(--shadow-pressed);
}
.btn-lg {
    font-size: 16px;
    padding: 14px 16px;
    min-height: 52px;
}

/* ── Secondary Button (White Pill) ── */
.btn-secondary {
    background-color: var(--uber-white);
    border-color: var(--uber-white);
    color: var(--uber-black);
    border-radius: var(--radius-pill);
    font-weight: 500;
    padding: 10px 12px;
    min-height: 44px;
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--uber-hover-gray);
    border-color: var(--uber-hover-gray);
    color: var(--uber-black);
}

/* ── Chip / Filter Button ── */
.btn-chip {
    background-color: var(--uber-chip-gray);
    border: none;
    color: var(--uber-black);
    border-radius: var(--radius-pill);
    font-weight: 500;
    padding: 14px 16px;
    min-height: 44px;
}
.btn-chip.active,
.btn-chip:active {
    background-color: var(--uber-black);
    color: var(--uber-white);
    box-shadow: var(--shadow-pressed);
}

/* ── Inputs ── */
.form-control,
.form-select {
    background-color: var(--uber-white);
    border: 1px solid var(--uber-black);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--uber-black);
    padding: 12px 14px;
    height: auto;
    min-height: 48px;
    transition: box-shadow .15s ease;
}
.form-control::placeholder {
    color: var(--uber-muted-gray);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--uber-black);
    background-color: var(--uber-white);
    box-shadow: rgb(255,255,255) 0px 0px 0px 2px inset,
                var(--uber-black) 0px 0px 0px 3px;
    outline: none;
}
.form-control.is-invalid {
    border-color: #b00020;
    background-color: var(--uber-white);
    background-image: none;
}

/* ── Labels ── */
.form-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--uber-black);
    margin-bottom: 6px;
}

/* ── Cards ── */
.card {
    background-color: var(--uber-white);
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-subtle);
}
.card-body {
    padding: var(--space-8);
}

/* ── Alerts ── */
.alert {
    border-radius: var(--radius-card);
    font-size: 14px;
    font-weight: 500;
}
.alert-success {
    background-color: #f0faf4;
    border: 1px solid #a3d9b1;
    color: #0d6b3a;
}
.alert-danger {
    background-color: #fef0f0;
    border: 1px solid #f5a5a5;
    color: #b00020;
}

/* ── Form errors ── */
.invalid-feedback,
ul.form-error-message {
    font-size: 12px;
    font-weight: 400;
    color: #b00020;
    margin-top: 4px;
    list-style: none;
    padding: 0;
}

/* ── Checkbox ── */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--uber-black) !important;
    border-radius: 4px;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--uber-black) !important;
    border: 2px solid var(--uber-black) !important;
    box-shadow: inset 0 0 0 2px #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.form-check-input:focus {
    box-shadow: var(--uber-black) 0px 0px 0px 2px;
    outline: none;
}

/* ── Divider ── */
hr {
    border-color: #e5e5e5;
    opacity: 1;
}

/* ── Navbar dark dropdown ── */
.navbar .dropdown-item {
    color: #ffffff;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #2a2a2a;
    color: #ffffff;
}
.navbar .dropdown-item:active {
    background-color: #3a3a3a;
    color: #ffffff;
}

/* ─────────────────────────────────────────
   Dark Mode
   Inverts the black/white duality:
   page → #000000, surface → #141414,
   text → #ffffff, buttons → white pill
───────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        /* Invert core palette */
        --uber-black:       #ffffff;
        --uber-white:       #000000;
        --uber-body-gray:   #afafaf;
        --uber-muted-gray:  #6b6b6b;
        --uber-chip-gray:   #1f1f1f;
        --uber-hover-gray:  #2a2a2a;
        --uber-hover-light: #1a1a1a;

        /* Softer shadows on dark bg */
        --shadow-subtle:  rgba(255,255,255,.06) 0px 4px 16px 0px;
        --shadow-medium:  rgba(255,255,255,.10) 0px 4px 16px 0px;
        --shadow-float:   rgba(255,255,255,.08) 0px 2px 8px 0px;
        --shadow-pressed: inset rgba(255,255,255,.08) 0px 0px 0px 999px;

        /* Bootstrap dark overrides */
        --bs-body-color:         #ffffff;
        --bs-body-bg:            #000000;
        --bs-primary:            #ffffff;
        --bs-primary-rgb:        255, 255, 255;
        --bs-link-color:         #ffffff;
        --bs-link-hover-color:   #ffffff;
        --bs-card-box-shadow:    rgba(255,255,255,.06) 0px 4px 16px 0px;
    }

    /* ── Base ── */
    body {
        background-color: #000000;
        color: #ffffff;
    }

    /* ── Typography ── */
    h1, h2, h3, h4, h5, h6,
    .h1, .h2, .h3, .h4, .h5, .h6 {
        color: #ffffff;
    }
    /* ── Links ── */
    a {
        color: #ffffff;
    }
    a:hover {
        color: #ffffff;
    }

    /* ── Primary Button → white pill on dark bg ── */
    .btn-primary {
        background-color: #ffffff;
        border-color: #ffffff;
        color: #000000;
    }
    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #e2e2e2;
        border-color: #e2e2e2;
        color: #000000;
    }
    .btn-primary:focus-visible {
        box-shadow: #000000 0px 0px 0px 2px inset;
    }

    /* ── Secondary Button → black pill on dark bg ── */
    .btn-secondary {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    .btn-secondary:hover,
    .btn-secondary:focus {
        background-color: #1a1a1a;
        border-color: #1a1a1a;
        color: #ffffff;
    }

    /* ── Chip ── */
    .btn-chip {
        background-color: #1f1f1f;
        color: #ffffff;
    }
    .btn-chip.active,
    .btn-chip:active {
        background-color: #ffffff;
        color: #000000;
    }

    /* ── Inputs ── */
    .form-control,
    .form-select {
        background-color: #000000;
        border-color: #ffffff;
        color: #ffffff;
    }
    .form-control::placeholder {
        color: #6b6b6b;
    }
    .form-control:focus,
    .form-select:focus {
        background-color: #000000;
        border-color: #ffffff;
        box-shadow: #000000 0px 0px 0px 2px inset,
                    #ffffff 0px 0px 0px 3px;
    }
    .form-control.is-invalid {
        border-color: #ff6b6b;
        background-color: #1a0000;
    }

    /* ── Labels ── */
    .form-label {
        color: #ffffff;
    }
    .form-label--sm {
        color: #ffffff;
    }

    /* ── Cards ── */
    .card {
        background-color: #141414;
        box-shadow: rgba(255,255,255,.06) 0px 4px 16px 0px;
    }
    /* WFBO admin panel stays light — keep cards white */
    [data-layout="wfbo"] .card {
        background-color: #ffffff;
        box-shadow: rgba(0,0,0,.08) 0px 4px 16px 0px;
        color: #000000;
    }
    /* Explicitly white card (e.g. deposit form) */
    .card--white {
        background-color: #ffffff !important;
        color: #374151 !important;
    }
    .card--white .form-label--sm {
        color: #374151;
    }
    .card--white .form-control,
    .card--white .form-select {
        background-color: #f9fafb;
        border-color: #d1d5db;
        color: #111827;
    }
    .card--white .form-control:focus,
    .card--white .form-select:focus {
        background-color: #ffffff;
        border-color: #374151;
        box-shadow: none;
    }

    /* ── Alerts ── */
    .alert-success {
        background-color: #0a2a18;
        border-color: #1a5c32;
        color: #6ee7a0;
    }
    .alert-danger {
        background-color: #2a0a0a;
        border-color: #7f1d1d;
        color: #fca5a5;
    }

    /* ── Form errors ── */
    .invalid-feedback,
    ul.form-error-message {
        color: #ff6b6b;
    }

    /* ── Checkbox ── */
    .form-check-input {
        border-color: #ffffff;
        background-color: transparent;
    }
    .form-check-input:checked {
        background-color: #ffffff;
        border-color: #ffffff;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 14px;
    }
    .form-check-input:focus {
        box-shadow: #ffffff 0px 0px 0px 2px;
    }
    /* WFBO white panel — restore dark checkbox border */
    [data-layout="wfbo"] .form-check-input {
        border-color: #374151 !important;
        background-color: #ffffff;
    }
    [data-layout="wfbo"] .form-check-input:checked {
        background-color: #374151 !important;
        border-color: #374151 !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    }
    [data-layout="wfbo"] .form-check-input:focus {
        box-shadow: #374151 0px 0px 0px 2px;
    }

    /* ── Divider ── */
    hr {
        border-color: #2a2a2a;
    }
}

/* ─────────────────────────────────────────
   Responsive — Wallet Balance Card
───────────────────────────────────────── */
.wallet-balance-amount {
    font-size: clamp(28px, 8vw, 46px);
}

.wallet-card-body {
    padding: 28px 32px;
}

@media (max-width: 575.98px) {
    .wallet-card-body {
        padding: 20px 20px;
    }
}

/* ─────────────────────────────────────────
   Responsive — Tables (enforce min-width
   so overflow-x: auto actually scrolls)
───────────────────────────────────────── */
[data-testid="deposit-history-table"] { min-width: 580px; }
[data-testid="transactions-table"]    { min-width: 650px; }
[data-testid="users-table"]           { min-width: 700px; }

/* wfbo deposits table is very wide */
@media (max-width: 991.98px) {
    [data-testid="deposits-table"] { min-width: 800px; }
}

/* ─────────────────────────────────────────
   Responsive — Pagination stack on xs
───────────────────────────────────────── */
@media (max-width: 479.98px) {
    [data-testid="deposit-pagination"],
    [data-testid="transactions-pagination"],
    [data-testid="pagination"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px;
    }
}

/* ─────────────────────────────────────────
   Responsive — WFBO Sidebar Collapse
───────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Outer wrapper: stack sidebar above main */
    [data-layout="wfbo"] {
        flex-direction: column;
    }

    /* Sidebar: becomes a full-width sticky top bar */
    [data-testid="wfbo-sidebar"] {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100;
        overflow-y: visible !important;
        flex-direction: column !important;
    }

    /* Compact the brand row to a slim top-bar height */
    [data-testid="wfbo-sidebar"] > div:first-child {
        padding: 0 16px !important;
        height: 56px;
        flex-shrink: 0;
    }

    /* Hide nav and footer by default on mobile */
    [data-testid="wfbo-sidebar-nav"],
    [data-testid="wfbo-sidebar-footer"] {
        display: none !important;
    }

    /* Expand when hamburger is toggled */
    [data-testid="wfbo-sidebar"].is-open [data-testid="wfbo-sidebar-nav"],
    [data-testid="wfbo-sidebar"].is-open [data-testid="wfbo-sidebar-footer"] {
        display: flex !important;
        flex-direction: column;
    }

    /* Main: reduce padding */
    [data-testid="wfbo-main"] {
        overflow-y: visible !important;
    }

    [data-testid="wfbo-main"] > div:first-child {
        padding: 0 16px !important;
    }

    [data-testid="wfbo-main"] > div:last-child {
        padding: 16px !important;
    }
}

/* ─────────────────────────────────────────
   A. Loading Overlay
───────────────────────────────────────── */
@keyframes vk-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: .5; transform: scale(.92);  }
}

#loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0,0,0,.65);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay__logo {
    height: 56px;
    width: auto;
    animation: vk-pulse 1.4s ease-in-out infinite;
}

.loading-overlay__label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    letter-spacing: .04em;
}

/* ─────────────────────────────────────────
   B. Navbar — Public
───────────────────────────────────────── */
.navbar--dark {
    background-color: #000000;
    padding: 0 16px;
}

.navbar--dark .navbar-container {
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar--dark .navbar-brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar--dark .navbar-brand-logo {
    height: 44px;
    width: auto;
}

.navbar--dark .navbar-brand-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.02em;
}

.nav-link--dark {
    color: #afafaf;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    background-color: transparent;
}
.nav-link--dark.is-active {
    color: #ffffff;
    background-color: #1a1a1a;
}

.navbar-user-chip {
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.navbar-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu--dark {
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 6px;
    min-width: 200px;
    box-shadow: rgba(0,0,0,.4) 0px 8px 24px;
}

.dropdown-menu--dark .dropdown-user-label {
    font-size: 12px;
    color: #6b6b6b;
    padding: 6px 12px;
    display: block;
}

.dropdown-menu--dark .dropdown-divider--dark {
    border-color: #2a2a2a;
    margin: 4px 0;
}

.dropdown-item--dark {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: block;
}

.dropdown-item--muted {
    color: #afafaf;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: block;
}

/* ─────────────────────────────────────────
   C. WFBO Admin Sidebar Layout
───────────────────────────────────────── */
.wfbo-layout {
    display: flex;
    min-height: 100vh;
}

.wfbo-sidebar {
    width: 240px;
    min-width: 240px;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.wfbo-sidebar__brand-row {
    padding: 20px 20px 18px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.wfbo-sidebar__brand-link {
    text-decoration: none;
    display: block;
}

.wfbo-sidebar__brand-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: .1em;
    display: block;
    margin-bottom: 2px;
}

.wfbo-sidebar__brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -.02em;
}

.wfbo-sidebar__hamburger {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wfbo-sidebar__nav {
    padding: 12px 10px;
    flex: 1;
}

.wfbo-sidebar__nav-section-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 8px 10px 4px;
    margin: 0;
}

.wfbo-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #afafaf;
    background-color: transparent;
}
.wfbo-nav-item.is-active {
    color: #ffffff;
    background-color: #1a1a1a;
}

.wfbo-nav-item--sub {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 1px;
    color: #afafaf;
    background-color: transparent;
}
.wfbo-nav-item--sub.is-active {
    color: #ffffff;
    background-color: #1a1a1a;
}

.wfbo-nav-subgroup {
    margin-left: 14px;
    border-left: 1px solid #2a2a2a;
    padding-left: 12px;
}

.wfbo-nav-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #afafaf;
}
.wfbo-nav-group-header.is-active {
    color: #ffffff;
}

.wfbo-sidebar__footer {
    padding: 12px 10px;
    border-top: 1px solid #1a1a1a;
}

.wfbo-sidebar__back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 8px;
}

.wfbo-sidebar__user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.wfbo-sidebar__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.wfbo-sidebar__user-info {
    overflow: hidden;
}

.wfbo-sidebar__user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wfbo-sidebar__user-email {
    font-size: 11px;
    color: #6b6b6b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wfbo-main {
    flex: 1;
    background-color: #f8f8f8;
    overflow-y: auto;
    color: #000000;
}

.wfbo-main__topbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wfbo-main__page-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #000000;
}

.wfbo-main__content {
    padding: 32px;
}

/* ─────────────────────────────────────────
   D. Agent Portal Layout
───────────────────────────────────────── */
.agent-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-topbar__brand {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.agent-topbar__brand-main {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -.02em;
}

.agent-topbar__brand-sub {
    font-size: 11px;
    color: #6b6b6b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.agent-topbar__nav {
    display: flex;
    gap: 4px;
}

.agent-nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    color: #afafaf;
}
.agent-nav-link.is-active {
    background: #1a1a1a;
    color: #ffffff;
}

.agent-topbar__wallet-label {
    font-size: 10px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.agent-topbar__wallet-amount {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.agent-topbar__back-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.agent-topbar__hamburger {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-mobile-nav {
    display: none;
    background: #111111;
    border-bottom: 1px solid #1a1a1a;
    padding: 8px 16px;
}

.agent-mobile-nav__link {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    color: #afafaf;
}
.agent-mobile-nav__link.is-active {
    color: #ffffff;
}

.agent-mobile-nav__wallet {
    padding: 10px 0;
    font-size: 13px;
    color: #6b7280;
}

.agent-page {
    min-height: calc(100vh - 56px);
    background-color: #0a0a0a;
    color: #ffffff;
}

.agent-page__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* ─────────────────────────────────────────
   E. Stat Cards
───────────────────────────────────────── */
.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.stat-label--sm {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.stat-value--lg {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 4px;
}

.stat-value--md {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.stat-value--pending {
    color: #854d0e;
}

.stat-sub {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

.stat-count-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background-color: #fef9c3;
    color: #854d0e;
    white-space: nowrap;
    flex-shrink: 0;
}

.stat-review-link {
    font-size: 12px;
    font-weight: 500;
    color: #854d0e;
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
}

/* ─────────────────────────────────────────
   F. Status & Role Badges
───────────────────────────────────────── */
.badge-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.badge-status--pending {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge-status--approved,
.badge-status--won {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-status--rejected,
.badge-status--lost {
    background-color: #fee2e2;
    color: #b00020;
}

.badge-status--neutral {
    background-color: #f3f4f6;
    color: #6b7280;
}

.badge-role {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.badge-role--admin {
    background-color: #000000;
    color: #ffffff;
}

.badge-role--agent {
    background-color: #4f46e5;
    color: #ffffff;
}

.badge-role--finance {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-role--operations {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-role--default {
    background-color: #efefef;
    color: #000000;
}

.badge-role--agent-role {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-role--suspended {
    background-color: #fee2e2;
    color: #b00020;
}

.badge-role--active {
    background-color: #dcfce7;
    color: #15803d;
}

.filter-count-badge {
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 1px 7px;
    margin-left: 4px;
}

.filter-count-badge--default {
    background-color: #000000;
    color: #ffffff;
}

.filter-count-badge--active {
    background-color: #ffffff;
    color: #000000;
}

.tab-count {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background-color: #f0f0f0;
    color: #374151;
    margin-left: 4px;
}

.badge-agent-inline {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: #000000;
    color: #ffffff;
    letter-spacing: .05em;
    white-space: nowrap;
}

/* ─────────────────────────────────────────
   G. Filter Pills
───────────────────────────────────────── */
.filter-pill {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    background-color: #efefef;
    color: #000000;
}

.filter-pill.is-active {
    background-color: #000000;
    color: #ffffff;
}

/* ─────────────────────────────────────────
   H. Tab Navigation
───────────────────────────────────────── */
.tab-link {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    color: #9ca3af;
}

.tab-link:hover {
    color: #000000;
}

.tab-link.is-active {
    font-weight: 600;
    border-bottom-color: currentColor;
    color: inherit;
}

.tab-link--block {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
    text-decoration: none;
    color: #6b7280;
}

.tab-link--block:hover {
    color: #000000;
}

.tab-link--block.is-active {
    background-color: #000000;
    color: #ffffff;
}

/* ─────────────────────────────────────────
   I. Pagination Controls
───────────────────────────────────────── */
.pagination-info {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.btn-page-prev {
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background-color: #efefef;
    color: #000000;
    text-decoration: none;
}

.btn-page-next {
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
}

/* ─────────────────────────────────────────
   J. Data Tables
───────────────────────────────────────── */
.table-card {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.table-row {
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
}

.th-white {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    white-space: nowrap;
    background-color: #ffffff;
    text-align: left;
}

.th-gray {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6b7280;
    background-color: #f9fafb;
    white-space: nowrap;
    text-align: left;
}

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

.td-cell {
    padding: 14px 20px;
    background-color: #ffffff;
}

.td-cell--id {
    color: #9ca3af;
}

.td-cell--muted {
    color: #6b7280;
}

.td-cell--dark {
    color: #374151;
}

.td-cell--nowrap {
    white-space: nowrap;
}

.td-empty {
    padding: 32px 20px;
    text-align: center;
    color: #9ca3af;
    background-color: #ffffff;
}

.td-empty--lg {
    padding: 40px 20px;
}

.thead-row--strong {
    border-bottom: 2px solid #000000;
}

.thead-row--light {
    border-bottom: 2px solid #e5e7eb;
    background-color: #f9fafb;
}

/* ─────────────────────────────────────────
   K. Table Action Buttons
───────────────────────────────────────── */
.btn-actions-trigger {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background-color: #f3f4f6;
    color: #000000;
    border: 1px solid #e5e7eb;
}

.dropdown-menu--light {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
    min-width: 190px;
    box-shadow: rgba(0,0,0,.12) 0px 4px 16px;
    max-height: none !important;
    overflow-y: visible !important;
}

.dropdown-item--view {
    font-size: 13px;
    font-weight: 500;
    color: #1d4ed8;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.dropdown-item--action {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-item--danger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #b00020;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-item--success {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #15803d;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-divider--light {
    border-color: #f0f0f0;
    margin: 4px 0;
}

.btn-approve {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background-color: #000000;
    color: #ffffff;
    border: none;
    white-space: nowrap;
}

.btn-reject {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background-color: #fee2e2;
    color: #b00020;
    border: none;
    white-space: nowrap;
}

.table-input {
    font-size: 12px;
    border-radius: 6px;
    padding: 5px 10px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #000000;
}

/* ─────────────────────────────────────────
   L. Pill Action Links
───────────────────────────────────────── */
.pill-link--primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: #000000;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
}

.pill-link--secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    background-color: #f0f0f0;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
}

.pill-link--ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255,255,255,.15);
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
}

.btn-form-submit {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-pill);
    background-color: #000000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
}

.btn-admin-save {
    padding: 10px 28px;
    border-radius: var(--radius-pill);
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
}

/* ─────────────────────────────────────────
   M. Back Navigation Link
───────────────────────────────────────── */
.back-link {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

/* ─────────────────────────────────────────
   N. Avatar / Initials Badge
───────────────────────────────────────── */
.avatar--lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.wallet-badge {
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: right;
    flex-shrink: 0;
}

.wallet-badge__label {
    font-size: 11px;
    font-weight: 500;
    color: #afafaf;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 4px;
}

.wallet-badge__amount {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

/* ─────────────────────────────────────────
   P. Period Filter Bar
───────────────────────────────────────── */
.period-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.period-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}
.period-pill:hover {
    color: #000000;
}

.period-pill.is-active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.period-pill--dark {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #1a1a1a;
    color: #afafaf;
    border: 1px solid #2a2a2a;
}

.period-pill--dark.is-active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.period-filter-input {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.period-filter-input--light {
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #000000;
}

.period-filter-input--light.is-active {
    border-color: #000000;
}

.period-filter-input--dark {
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #ffffff;
}

.period-filter-input--dark.is-active {
    border-color: #ffffff;
}

.period-filter-go {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.period-filter-go--light {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.period-filter-go--light.is-active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.period-filter-go--dark {
    background: #1a1a1a;
    color: #afafaf;
    border: 1px solid #2a2a2a;
}

.period-filter-go--dark.is-active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* ─────────────────────────────────────────
   Q. Split Stat Card
───────────────────────────────────────── */
.split-stat__divider {
    width: 1px;
    background: #f0f0f0;
    align-self: stretch;
    flex-shrink: 0;
}

.split-stat__label--success {
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 4px;
}

.split-stat__label--danger {
    font-size: 11px;
    font-weight: 600;
    color: #b00020;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 4px;
}

.split-stat__value--success {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: #15803d;
}

.split-stat__value--danger {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    color: #b00020;
}

.split-stat__sub--success {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    margin: 3px 0 0;
}

.split-stat__sub--danger {
    font-size: 13px;
    font-weight: 600;
    color: #b00020;
    margin: 3px 0 0;
}

.split-stat__link--success {
    font-size: 12px;
    font-weight: 500;
    color: #15803d;
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
}

.split-stat__link--danger {
    font-size: 12px;
    font-weight: 500;
    color: #b00020;
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
}

/* ─────────────────────────────────────────
   R. Form Helpers
───────────────────────────────────────── */
.form-label--sm {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.form-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.form-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin: 24px 0 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.input-group-suffix {
    background-color: #f9fafb;
    border-left: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.input-group-prefix {
    background-color: #f9fafb;
    border-right: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* ─────────────────────────────────────────
   S. WFBO Card Headings
───────────────────────────────────────── */
.wfbo-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #000000;
}

.wfbo-card-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 24px;
}

/* ─────────────────────────────────────────
   T. Dividend Matrix Table
───────────────────────────────────────── */
.dividend-table th,
.dividend-table td {
    border: 1px solid #e5e5e5;
}

.dividend-table th {
    padding: 8px 12px;
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.dividend-table th.dividend-table__header-wide {
    padding: 8px 20px;
}

.dividend-table td {
    padding: 6px 8px;
    text-align: center;
    background: #ffffff;
}

.dividend-table td.dividend-table__empty {
    background: #f3f4f6;
}

.dividend-table td.dividend-table__view {
    padding: 10px 12px;
    text-align: right;
    font-size: 13px;
    color: #111827;
    font-weight: 500;
    min-width: 120px;
}

.dividend-input {
    width: 120px;
    text-align: right;
}

/* ─────────────────────────────────────────
   U. Miscellaneous
───────────────────────────────────────── */
.payment-detail-card {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 220px;
    flex: 1;
}

.payment-detail-card__label {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 10px;
}

.payment-detail-card__row {
    font-size: 13px;
    color: #374151;
    margin: 0 0 4px;
}

.payment-detail-card__key {
    color: #6b7280;
}

.wallet-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

.wallet-hint__text {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #374151;
}

.withdrawal-schedule-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

.withdrawal-schedule-box__title {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    margin: 0 0 4px;
}

.withdrawal-schedule-box__body {
    font-size: 13px;
    color: #374151;
    margin: 0;
}

.unavailable-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.txn-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid #f5f5f5;
}

.txn-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.txn-list-icon--deposit {
    background-color: #f0f0f0;
}

.txn-list-icon--withdrawal {
    background-color: #fef9c3;
}

.horse-position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.horse-position-badge--top2 {
    background-color: #14532d;
    color: #4ade80;
    border: 1px solid #16a34a;
}

.horse-position-badge--other {
    background-color: #1a1a1a;
    color: #6b7280;
    border: 1px solid #2a2a2a;
}

.card--pending-warning {
    border: 1px solid #fde68a !important;
}

.card--pending-neutral {
    border: 1px solid #e5e7eb !important;
}

.user-name-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.page-container {
    max-width: 860px;
    padding: 48px 16px;
}

/* ─────────────────────────────────────────
   X. Game / Dark Page Shells
───────────────────────────────────────── */
.game-page {
    min-height: 100vh;
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 24px 16px;
}

.game-page__inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Dark card used in agent dashboard */
.dark-card {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
}

/* Dark-themed table card wrapper */
.dark-table-card {
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px 28px;
}

/* Dark table header row */
.thead-dark-row {
    border-bottom: 1px solid #2a2a2a;
}

/* Dark table th */
.th-dark {
    padding: 8px 12px;
    text-align: left;
    color: #6b7280;
    font-weight: 600;
}

/* Dark table body row */
.tr-dark {
    border-bottom: 1px solid #1f1f1f;
}

/* Dark table td variants */
.td-dark {
    padding: 10px 12px;
    color: #4b5563;
}

.td-dark--muted {
    color: #6b7280;
    white-space: nowrap;
}

.td-dark--green {
    color: #4ade80;
    font-weight: 700;
}

.td-dark--bet {
    color: #9ca3af;
}

/* Dark pagination (numbered) */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.page-btn--square {
    width: 36px;
    height: 36px;
}

.page-btn--wide {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
}

.page-btn--prev,
.page-btn--next {
    background: #1a1a1a;
    color: #afafaf;
    border: 1px solid #2a2a2a;
}

.page-btn--number {
    background: #1a1a1a;
    color: #afafaf;
    border: 1px solid #2a2a2a;
}

.page-btn--active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.page-btn--ellipsis {
    color: #3f3f3f;
    font-size: 13px;
}

/* Wallet card inner text (on dark gradient background) */
.wallet-card__balance-label {
    font-size: 11px;
    font-weight: 600;
    color: #afafaf;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 6px;
}

/* Txn list item detail text */
.txn-detail-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
}

.txn-detail-sub {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}

/* ─────────────────────────────────────────
   W. Additional Layout Helpers
───────────────────────────────────────── */

/* Tab bar bottom border wrapper */
.tabs-border-bottom {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

/* Table card variant for tabbed layout (rounded only on bottom) */
.table-card--tabbed {
    border-radius: 0 8px 8px 8px;
    overflow: hidden;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #e5e7eb;
}

/* Compact card body (smaller padding) */
.card-body--compact {
    padding: 16px 20px;
}

/* Green-colored stat value */
.stat-value--green {
    color: #15803d;
}

/* ─────────────────────────────────────────
   V. Table Utility Classes
───────────────────────────────────────── */

/* Move overflow hidden into .table-card itself */
.table-card {
    overflow: hidden;
}

/* Horizontal scroll wrapper for tables */
.table-scroll {
    overflow-x: auto;
}

/* Base table reset */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #000000;
}

/* Date display patterns (used in date/time cells) */
.date-primary {
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
}

.date-secondary {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

/* Amount display patterns */
.amount-primary {
    font-weight: 700;
    margin: 0;
    color: #000000;
}

.amount-approved {
    font-weight: 700;
    margin: 0;
    color: #15803d;
}

.amount-rejected {
    font-weight: 700;
    margin: 0;
    color: #b00020;
}

.amount-neutral {
    font-weight: 700;
    margin: 0;
    color: #9ca3af;
}

.amount-sub {
    font-size: 11px;
    color: #9ca3af;
    margin: 2px 0 0;
}

/* Monospace amount/id cells */
.font-mono-sm {
    font-family: monospace;
    font-size: 13px;
}

/* Truncating text within a cell */
.text-truncate-cell {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── Auth split layout ──────────────────────────────────────────────────── */
.auth-split {
    display: flex;
    min-height: calc(100vh - 64px);
}

.auth-split__brand {
    flex: 0 0 45%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem;
}

.auth-split__logo {
    max-width: 320px;
    width: 80%;
    height: auto;
}

.auth-split__form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem;
    background-color: var(--uber-white);
}

.auth-split__inner {
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--uber-body-gray);
    margin-bottom: 1.75rem;
}
