        /*
         * NEXORA - Main CSS
         * Global styles, theme overrides, loaders, and bottom navigation.
         */

        /* Base styles and shared utilities */
        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: #050505;
            overflow-x: hidden;
        }

        /* Premium gold gradient background animation */
        .bg-gold-obsidian {
            background: linear-gradient(135deg, #050505, #0c0b08, #14110b, #050505);
            background-size: 400% 400%;
            animation: goldGlow 12s ease infinite;
        }

        @keyframes goldGlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Custom gold text and metallic border utilities */
        .text-gold {
            background: linear-gradient(to right, #ffe596, #cda74e, #967123);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .border-gold-blend {
            border-color: rgba(205, 167, 78, 0.2);
        }

        .border-gold-active {
            border-color: rgba(205, 167, 78, 0.6);
        }

        .bg-gold-gradient {
            background: linear-gradient(to right, #e8c86b, #cda74e);
        }

        .secure-note,
        .secure-tag {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 22px;
            color: #036112;
            font-size: 14px;
            text-align: center;
        }

.line {
    width: 80px;
    height: 2px;
    margin: 0 auto 28px;
    background: linear-gradient(90deg, transparent, #756715, transparent);
}

.info-card {
    background: linear-gradient(to bottom, #0c0b08, #14110b);
    border: 1px solid rgba(205, 167, 78, 0.2);
    border-radius: 12px;
    margin-top: 35px;
    padding: 28px;
    color: #a8a8a8;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

/* Shared layout helpers and loading states */
.glow-top,
.glow-bottom {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.page { display: none; }
.page.active { display: block; }

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(205, 167, 78, 0.18), transparent 32%), linear-gradient(135deg, #050505, #0c0b08, #14110b, #050505);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
        .splash-screen.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .page-loader {
            position: fixed;
            inset: 0;
            z-index: 70;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(5, 5, 5, 0.95);
            backdrop-filter: blur(14px);
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }
        .page-loader.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .loader-ring {
            width: 88px;
            height: 88px;
            border-radius: 9999px;
            border: 2px solid rgba(205, 167, 78, 0.16);
            border-top-color: #f2c96c;
            border-right-color: #cda74e;
            animation: spinLoader 0.9s linear infinite;
            box-shadow: 0 0 0 8px rgba(205, 167, 78, 0.08), 0 0 35px rgba(205, 167, 78, 0.2);
            position: relative;
        }
        .loader-ring::before,
        .loader-ring::after {
            content: '';
            position: absolute;
            inset: 10px;
            border-radius: inherit;
            border: 1px solid rgba(255,255,255,0.08);
        }
        .loader-ring::after {
            inset: 22px;
            border-top-color: #fff1b2;
            border-left-color: rgba(255,241,178,0.45);
            animation: spinLoader 1.2s linear infinite reverse;
        }
        @keyframes spinLoader {
            to { transform: rotate(360deg); }
        }
        .loader-badge {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
        }
        .loader-badge i {
            font-size: 1.15rem;
            color: #f2c96c;
            animation: pulseLoader 1s ease-in-out infinite;
        }
        @keyframes pulseLoader {
            0%, 100% { transform: scale(0.95); opacity: 0.7; }
            50% { transform: scale(1.05); opacity: 1; }
        }

    /* Blue-gold comparison palette */
    body {
            background-color: #05070b;
        }
        .bg-gold-obsidian {
            background: linear-gradient(135deg, #05070b, #0a1d35, #102f55, #05070b);
        }
        .text-gold {
            background: linear-gradient(to right, #f7df87, #d6ad4d, #9fb6c9);
        }
        .border-gold-blend {
            border-color: rgba(143, 211, 255, 0.28);
        }
        .border-gold-active {
            border-color: rgba(214, 173, 77, 0.75);
        }
        .bg-gold-gradient {
            background: linear-gradient(100deg, #d6ad4d, #f4d35e, #c7d0d9);
        }
        .info-card {
            background: linear-gradient(to bottom, #0a1d35, #102f55);
            border-color: rgba(143, 211, 255, 0.28);
            color: #c7d0d9;
        }
        .line {
            background: linear-gradient(90deg, transparent, #d6ad4d, #8fd3ff, transparent);
        }
        .splash-screen {
            background: radial-gradient(circle at top, rgba(143, 211, 255, 0.2), transparent 32%), linear-gradient(135deg, #05070b, #0a1d35, #102f55, #05070b);
        }
        .page-loader {
            background: rgba(5, 7, 11, 0.95);
        }
        .loader-ring {
            border-color: rgba(143, 211, 255, 0.2);
            border-top-color: #f4d35e;
            border-right-color: #8fd3ff;
            box-shadow: 0 0 0 8px rgba(143, 211, 255, 0.08), 0 0 35px rgba(214, 173, 77, 0.2);
        }
        .loader-ring::after {
            border-top-color: #f7df87;
            border-left-color: rgba(199, 208, 217, 0.55);
        }
        .loader-badge i {
            color: #f4d35e;
        }

    /* Utility class overrides for the blue-gold palette */
    [class*="bg-amber-950"] { background-color: rgba(11, 45, 92, 0.48) !important; }
        [class*="bg-amber-500"] { background-color: #d6ad4d !important; }
        [class*="bg-zinc-950"], [class*="bg-neutral-950"] { background-color: #05070b !important; }
        [class*="bg-zinc-900"] { background-color: #102b4e !important; }
        [class*="bg-zinc-800"] { background-color: #173b64 !important; }
        [class*="text-amber-"] { color: #f4d35e !important; }
        [class*="text-zinc-500"], [class*="text-zinc-400"], [class*="text-gray-"] { color: #aebdca !important; }
        [class*="border-amber-"] { border-color: rgba(143, 211, 255, 0.32) !important; }
        [class*="border-zinc-"] { border-color: rgba(199, 208, 217, 0.18) !important; }
        [class*="shadow-amber-"] { --tw-shadow-color: rgba(214, 173, 77, 0.24) !important; }
        [class*="from-amber-"] { --tw-gradient-from: #d6ad4d var(--tw-gradient-from-position) !important; }
        [class*="to-amber-"] { --tw-gradient-to: #8fd3ff var(--tw-gradient-to-position) !important; }
        [class*="via-amber-"] { --tw-gradient-via: #0b2d5c var(--tw-gradient-via-position) !important; }
        [class*="hover\\:bg-amber-500"]:hover { background-color: #f4d35e !important; }
        [class*="hover\\:text-amber-"]:hover { color: #f4d35e !important; }
        [class*="hover\\:border-amber-"]:hover { border-color: #f4d35e !important; }
        [class*="divide-zinc-"] > :not([hidden]) ~ :not([hidden]) { border-color: rgba(199, 208, 217, 0.18) !important; }

    /* Modern luxury bottom navigation */
    .nav-modern {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 2px;
            padding: 10px 10px 12px;
            border-radius: 28px;
            background: linear-gradient(180deg, rgba(16, 43, 78, 0.55), rgba(5, 7, 11, 0.94));
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
            border: 1px solid rgba(214, 173, 77, 0.22);
            box-shadow:
                0 18px 40px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 8px 4px 6px;
            border-radius: 16px;
            background: transparent;
            border: none;
            color: #5b6b7d;
            transition: color 0.3s ease, transform 0.3s ease;
        }
        .nav-item i {
            font-size: 1.05rem;
            transition: transform 0.3s ease, filter 0.3s ease;
        }
        .nav-item span {
            font-size: 9px;
            letter-spacing: 0.03em;
            font-weight: 500;
            opacity: 0.85;
        }
        .nav-item.active { color: #f4d35e; }
        .nav-item.active i {
            transform: translateY(-2px) scale(1.08);
            filter: drop-shadow(0 4px 10px rgba(244, 211, 94, 0.5));
        }
        .nav-item.active::after {
            content: '';
            width: 4px; height: 4px;
            border-radius: 9999px;
            margin-top: 2px;
            background: linear-gradient(90deg, #f7df87, #8fd3ff);
            box-shadow: 0 0 8px rgba(244, 211, 94, 0.75);
        }
        .nav-item:active i { transform: scale(0.88); }

        /* Elevated animated center action button */
        .nav-cta-wrap {
            position: relative;
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            padding: 0 4px;
        }
        .nav-cta {
            position: relative;
            width: 56px; height: 56px;
            border: none;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(150deg, #f7df87, #d6ad4d 55%, #8fd3ff);
            box-shadow: 0 12px 24px rgba(214, 173, 77, 0.4), 0 0 0 6px #05070b;
            transform: translateY(-22px);
            animation: ctaFloat 3.2s ease-in-out infinite;
            transition: transform 0.25s ease, box-shadow 0.35s ease;
        }
        .nav-cta:active { transform: translateY(-22px) scale(0.9); }
        .nav-cta i {
            position: relative;
            z-index: 2;
            color: #05070b;
            font-size: 1.2rem;
        }
        .nav-cta-ring {
            position: absolute;
            inset: -7px;
            border-radius: 9999px;
            background: conic-gradient(from 0deg, #f7df87, #8fd3ff, #d6ad4d, #f7df87);
            filter: blur(5px);
            opacity: 0.6;
            z-index: 0;
            animation: spinRing 4.5s linear infinite;
        }
        .nav-cta-pulse {
            position: absolute;
            inset: -4px;
            border-radius: 9999px;
            border: 1.5px solid rgba(244, 211, 94, 0.55);
            z-index: 0;
            animation: pulseRing 2.4s ease-out infinite;
        }
        .nav-cta.active-cta {
            box-shadow: 0 14px 30px rgba(143, 211, 255, 0.55), 0 0 0 6px #05070b;
        }
        .nav-cta-label {
            margin-top: -15px;
            font-size: 9px;
            font-weight: 500;
            letter-spacing: 0.03em;
            color: #8b95a3;
            transition: color 0.3s ease;
        }
        .nav-cta-wrap.active .nav-cta-label { color: #f4d35e; }

        @keyframes ctaFloat {
            0%, 100% { transform: translateY(-22px); }
            50% { transform: translateY(-27px); }
        }
        @keyframes spinRing {
            to { transform: rotate(360deg); }
        }
        @keyframes pulseRing {
            0% { transform: scale(0.9); opacity: 0.65; }
            70% { transform: scale(1.55); opacity: 0; }
            100% { opacity: 0; }
        }
        .swal2-container {
          z-index: 99999 !important;
        }
        /* ================= RECENT TRANSACTIONS SLIDER ================= */
        .tx-slider {
            position: relative;
            min-height: 125px;
            overflow: hidden;
            padding: 2px 2px 6px;
            margin: 0 -2px;
        }

        .tx-card {
            position: absolute;
            inset: 2px 2px 6px;
            display: flex;
            flex-direction: column;
            background: linear-gradient(160deg, rgba(24,20,10,0.9), rgba(6,6,8,0.96));
            border: 1px solid rgba(214, 173, 77, 0.16);
            border-radius: 16px;
            padding: 14px;
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
            transform: scale(0.98);
            transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s ease;
        }

        .tx-card.active {
            border-color: rgba(214, 173, 77, 0.42);
            opacity: 1;
            pointer-events: auto;
            transform: scale(1);
        }
        
        .tx-icon {
            width: 34px; height: 34px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.85rem;
        }
        .tx-icon.in   { background: rgba(74, 222, 128, 0.10); color: #4ade80; }
        .tx-icon.out  { background: rgba(248, 113, 113, 0.10); color: #f87171; }
        .tx-icon.gold { background: rgba(244, 211, 94, 0.10); color: #f4d35e; }

        .tx-badge {
            font-size: 9px;
            font-family: inherit;
            padding: 2px 8px;
            border-radius: 9999px;
            border: 1px solid;
            letter-spacing: 0.02em;
        }
        .tx-badge.done    { color: #4ade80; border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.08); }
        .tx-badge.pending { color: #f4d35e; border-color: rgba(244,211,94,0.25); background: rgba(244,211,94,0.08); }
        .tx-badge.failed  { color: #f87171; border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.08); }

        .tx-dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
        .tx-dots span {
            width: 5px; height: 5px;
            border-radius: 9999px;
            background: #3f3f46;
            transition: all 0.3s ease;
        }
        .tx-dots span.active {
            width: 16px;
            background: linear-gradient(90deg, #f7df87, #d6ad4d);
        }

        .market-widget {
            min-height: 76px;
            overflow: hidden;
            border: 1px solid rgba(214, 173, 77, 0.12);
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.28);
        }
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(3, 7, 12, 0.78);
            backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 1100;
            overflow-y: auto;
        }
        .modal-content-box {
            width: min(100%, 420px);
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            background: linear-gradient(160deg, rgba(16, 35, 60, 0.98), rgba(5, 7, 11, 0.99));
            border: 1px solid rgba(143, 211, 255, 0.24);
            border-radius: 20px;
            padding: 22px;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(214, 173, 77, 0.08);
            animation: depositModalIn 0.25s ease-out;
        }

        @keyframes depositModalIn {
            from { opacity: 0; transform: translateY(12px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.modal-title {
    margin: 0;
    color: #f7df87;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.modal-title::before {
    content: 'SECURE FLOW';
    display: block;
    margin-bottom: 4px;
    color: #8fd3ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.btn-close-modal {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(199, 208, 217, 0.16);
    border-radius: 10px;
    background: rgba(5, 7, 11, 0.52);
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-close-modal:hover {
    border-color: rgba(244, 211, 94, 0.55);
    background: rgba(214, 173, 77, 0.12);
    color: #f4d35e;
}

.modal-balance-row {
    margin-bottom: 20px;
}

.modal-crypto-tokens {
    display: flex;
    gap: 10px;
}

.modal-token-card {
    min-width: 0;
    flex: 1 1 0;
    padding: 12px;
    border: 1px solid rgba(143, 211, 255, 0.18);
    border-radius: 14px;
    background: rgba(5, 7, 11, 0.52);
}

.modal-token-card.usdt {
    border-color: rgba(244, 211, 94, 0.28);
}

.modal-token-card.bnb {
    border-color: rgba(143, 211, 255, 0.28);
}

.modal-token-label,
.modal-token-unit {
    display: block;
    color: #8b95a3;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    letter-spacing: 0.04em;
}

.modal-token-label i {
    margin-right: 4px;
    color: #f4d35e;
}

.modal-token-value {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    color: #f7df87;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: clamp(16px, 5vw, 22px);
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bnb .modal-token-value {
    color: #8fd3ff;
}

.modal-token-unit {
    margin-top: 5px;
    color: #c7d0d9;
}

.modal-input-group {
    display: flex;
    align-items: center;
    min-height: 56px;
    background: rgba(5, 7, 11, 0.7);
    border: 1px solid rgba(143, 211, 255, 0.18);
    border-radius: 14px;
    padding: 8px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input-group:focus-within {
    border-color: rgba(244, 211, 94, 0.65);
    box-shadow: 0 0 0 3px rgba(214, 173, 77, 0.1);
}

.input-header-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-input-label {
    font-size: 10px;
    color: #475569;
}

.btn-input-max {
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid rgba(244, 211, 94, 0.25);
    border-radius: 7px;
    color: #d97706;
    font-size: 11px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-input-max:hover {
    background: rgba(214, 173, 77, 0.12);
    color: #f7df87;
}

.modal-field-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
}

.modal-field-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.modal-input-hint,
.history-empty-text,
.modal-notice-text {
    font-size: 11px;
    color: #475569;
    margin: 8px 0;
    line-height: 1.4;
}

.btn-modal-deposit-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    border: 1px solid rgba(255, 241, 178, 0.35);
    border-radius: 12px;
    background: linear-gradient(110deg, #d6ad4d, #f7df87, #8fd3ff);
    color: #05070b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(214, 173, 77, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-modal-deposit-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 16px 34px rgba(143, 211, 255, 0.22);
    transform: translateY(-1px);
}

.btn-modal-deposit-submit:active {
    transform: translateY(0) scale(0.99);
}

/* ================= NEXORA WALLET ================= */
.scrollable-content {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 28px 16px 112px;
}

.wallet-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}

.wallet-label,
.wallet-details-title,
.card-title,
.reward-title {
    color: #8fd3ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.wallet-header h1 {
    margin: 6px 0 0;
    color: #f7df87;
    font-size: clamp(28px, 7vw, 40px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.wallet-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid rgba(143, 211, 255, .16);
    border-radius: 15px;
    background: rgba(5, 7, 11, .58);
}

.wallet-tab {
    flex: 1;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8b95a3;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.wallet-tab:hover,
.wallet-tab.active {
    color: #05070b;
    background: linear-gradient(110deg, #d6ad4d, #f7df87);
    box-shadow: 0 5px 18px rgba(214, 173, 77, .18);
}

.wallet-tab-content { display: none; }
.wallet-tab-content.active {
    display: block;
    animation: walletTabIn .3s ease;
}

@keyframes walletTabIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.wallet-card,
.wallet-details-card,
.history-card,
.reward-card {
    margin-bottom: 16px;
    border: 1px solid rgba(143, 211, 255, .18);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(16, 43, 78, .72), rgba(5, 7, 11, .82));
    box-shadow: 0 16px 36px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(14px);
}

.wallet-card,
.reward-card { padding: 20px; }

.balance-value,
.reward-value {
    margin-top: 10px;
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: clamp(30px, 9vw, 48px);
    font-weight: 800;
    letter-spacing: -.04em;
}

.balance-value span,
.reward-value span { color: #8fd3ff !important; }

.claimable {
    margin-top: 8px;
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
}

.claimable span,
.reward-note,
.reward-footer { color: #8b95a3; font-weight: 400; }

.divider {
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, rgba(143, 211, 255, .2), rgba(214, 173, 77, .3), transparent);
}

.p-actiongrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.btn-action {
    min-height: 44px;
    border-radius: 11px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}

.btn-action:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-green-glow {
    border: 1px solid rgba(255, 241, 178, .35);
    background: linear-gradient(110deg, #d6ad4d, #f7df87);
    color: #05070b;
    box-shadow: 0 8px 22px rgba(214, 173, 77, .18);
}

.btn-disabled-dark {
    border: 1px solid rgba(143, 211, 255, .2);
    background: rgba(5, 7, 11, .45);
    color: #8fd3ff;
}

.wallet-details-card { overflow: hidden; }
.wallet-details-title { padding: 18px 18px 12px; }
.wallet-accordion { border-top: 1px solid rgba(143, 211, 255, .1); }
.wallet-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    cursor: pointer;
}
.wallet-accordion-left { display: flex; align-items: center; gap: 11px; }
.wallet-accordion-left span { color: #e6edf3; font-size: 14px; font-weight: 700; }
.wallet-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(214, 173, 77, .2);
    border-radius: 10px;
    background: rgba(214, 173, 77, .1);
    color: #f4d35e;
}
.wallet-arrow { color: #8fd3ff; transition: transform .25s ease; }
.wallet-accordion.active .wallet-arrow { transform: rotate(180deg); }
.wallet-accordion-content { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.wallet-accordion.active .wallet-accordion-content { max-height: 1000px; }
.wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 18px;
    color: #aebdca;
    font-size: 12px;
}
.wallet-row strong { color: #ffffff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.history-card { padding: 18px; overflow: hidden; }
.table-title { color: #f7df87; font-size: 15px; font-weight: 700; }
.wallet-view-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.wallet-view-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(143, 211, 255, .22); border-radius: 12px; background: rgba(143, 211, 255, .1); color: #8fd3ff; }
.wallet-view-intro h2 { margin: 4px 0 3px; color: #ffffff; font-size: 19px; letter-spacing: -.02em; }
.wallet-view-intro p { margin: 0; color: #8b95a3; font-size: 11px; }
.history-card table { min-width: 560px; }
.history-card .dataTables_wrapper { color: #aebdca; font-size: 11px; }
.history-card .dataTables_wrapper input,
.history-card .dataTables_wrapper select {
    border: 1px solid rgba(143, 211, 255, .2) !important;
    border-radius: 8px !important;
    background: rgba(5, 7, 11, .7) !important;
    color: #ffffff !important;
}
.history-card table.dataTable thead th {
    border-bottom: 1px solid rgba(214, 173, 77, .28) !important;
    background: rgba(16, 43, 78, .55) !important;
    color: #f4d35e !important;
}
.history-card table.dataTable tbody td { border-bottom: 1px solid rgba(143, 211, 255, .1) !important; }
.history-card table.dataTable tbody tr:hover { background: rgba(143, 211, 255, .05) !important; }

.reward-card { border-color: rgba(214, 173, 77, .3); background: linear-gradient(155deg, rgba(214, 173, 77, .12), rgba(5, 7, 11, .84)); }
.wallet-reward-hero { position: relative; overflow: hidden; padding: 24px; }
.wallet-reward-hero::after { content: ''; position: absolute; right: -40px; bottom: -70px; width: 190px; height: 190px; border: 1px solid rgba(247, 223, 135, .25); border-radius: 50%; box-shadow: 0 0 0 22px rgba(143, 211, 255, .04), 0 0 0 44px rgba(214, 173, 77, .04); }
.wallet-reward-hero .reward-title { display: flex; align-items: center; gap: 7px; color: #f7df87; }
.wallet-reward-hero .reward-title i { color: #8fd3ff; }
.wallet-reward-hero .reward-value { position: relative; z-index: 1; }
.wallet-reward-hero .reward-note { max-width: 270px; }
.reward-note { margin-top: 8px; font-size: 12px; line-height: 1.5; }
.reward-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(143, 211, 255, .1); color: #aebdca; font-size: 13px; }
.reward-row:last-child { border-bottom: 0; }
.reward-row strong { color: #ffffff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.reward-footer { margin-top: 12px; text-align: center; font-size: 11px; }
.back-link { display: inline-flex; margin-top: 4px; color: #8fd3ff; font-size: 12px; font-weight: 700; text-decoration: none; }
.back-link:hover { color: #f7df87; }

.withdraw-modal-box { border-color: rgba(214, 173, 77, .3); }
.wd-maintenance-modal-box {
    position: relative;
    width: min(100%, 440px);
    padding: 26px;
    overflow: hidden;
    border-color: rgba(143, 211, 255, .22);
    background:
        radial-gradient(ellipse at 50% 0, rgba(56, 120, 171, .18), transparent 58%),
        linear-gradient(160deg, rgba(16, 35, 60, .99), rgba(5, 7, 11, .99));
}
.wd-maintenance-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wd-maintenance-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8fd3ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}
.wd-maintenance-label i { font-size: 12px; }
.wd-maintenance-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 28px auto 20px;
    place-items: center;
    border: 1px solid rgba(143, 211, 255, .24);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(143, 211, 255, .14), rgba(143, 211, 255, .04));
    box-shadow: 0 0 32px rgba(67, 151, 211, .12);
    color: #8fd3ff;
    font-size: 22px;
}
.wd-maintenance-title { margin: 0; color: #f4f7fb; font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; text-align: center; }
.wd-maintenance-description { max-width: 350px; margin: 12px auto 22px; color: #aebdca; font-size: 13px; line-height: 1.7; text-align: center; }
.wd-maintenance-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 14px;
    border: 1px solid rgba(143, 211, 255, .13);
    border-radius: 12px;
    background: rgba(5, 7, 11, .4);
    color: #8998a8;
    font-size: 11px;
}
.wd-maintenance-status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #f4b860; box-shadow: 0 0 10px rgba(244, 184, 96, .65); }
.wd-maintenance-status strong { margin-left: auto; color: #f4c77e; font-size: 10px; font-weight: 600; text-align: right; }
.wd-maintenance-confirm {
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(143, 211, 255, .35);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(71, 145, 195, .24), rgba(71, 145, 195, .1));
    color: #e8f5ff;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.wd-maintenance-confirm:hover { transform: translateY(-1px); border-color: rgba(143, 211, 255, .65); background: rgba(71, 145, 195, .28); }
.withdraw-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #8fd3ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}
.withdraw-available {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(143, 211, 255, .14);
    border-radius: 12px;
    background: rgba(5, 7, 11, .42);
    color: #8b95a3;
    font-size: 11px;
}
.withdraw-available strong { color: #f7df87; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.withdraw-unit { color: #8fd3ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; }
.withdraw-summary {
    margin-top: 18px;
    padding: 4px 14px;
    border: 1px solid rgba(143, 211, 255, .14);
    border-radius: 12px;
    background: rgba(5, 7, 11, .38);
}
.withdraw-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: #8b95a3; font-size: 11px; }
.withdraw-summary strong { color: #e6edf3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.withdraw-net-row { border-top: 1px solid rgba(214, 173, 77, .2); color: #f7df87 !important; font-weight: 700; }
.withdraw-net-row strong { color: #4ade80; font-size: 14px; }

@media (max-width: 520px) {
    .withdraw-available { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 520px) {
    .scrollable-content { padding: 22px 12px 108px; }
    .wallet-row { align-items: flex-start; flex-direction: column; gap: 3px; }
    .wallet-row > span:last-child { align-self: flex-end; }
    .history-card { padding: 14px 10px; }
}

/* ================= WALLET DASHBOARD REDESIGN ================= */
.wallet-navline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.wallet-kicker,
.hero-overline,
.wallet-section-heading small,
.wallet-details-heading small {
    color: #8fd3ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.wallet-page-title { margin: 5px 0 0; color: #f7df87; font-size: 31px; font-weight: 700; letter-spacing: -.04em; }
.wallet-live-status { display: flex; align-items: center; gap: 7px; color: #aebdca; font-size: 10px; white-space: nowrap; }
.wallet-live-status span { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.wallet-tabs { margin-bottom: 24px; }
.wallet-tab { display: flex; align-items: center; justify-content: center; gap: 7px; }
.wallet-tab i { font-size: 11px; }
.wallet-balance-hero {
    position: relative;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 25px;
    border: 1px solid rgba(143, 211, 255, .24);
    border-radius: 24px;
    background: radial-gradient(circle at 88% 15%, rgba(143, 211, 255, .18), transparent 30%), linear-gradient(135deg, #102f55 0%, #081b32 48%, #05070b 100%);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.wallet-balance-hero::before { content: ''; position: absolute; top: -80px; right: 80px; width: 200px; height: 200px; border: 1px solid rgba(247, 223, 135, .16); border-radius: 50%; }
.wallet-balance-hero::after { content: ''; position: absolute; top: -40px; right: 35px; width: 240px; height: 240px; border: 1px solid rgba(143, 211, 255, .12); border-radius: 50%; }
.wallet-hero-copy { position: relative; z-index: 1; }
.hero-overline { display: flex; align-items: center; gap: 7px; margin-bottom: 30px; color: #f7df87; }
.hero-overline i { color: #8fd3ff; }
.wallet-balance-hero .card-title { color: #aebdca; letter-spacing: .11em; }
.wallet-balance-hero .balance-value { margin: 9px 0 0; font-size: clamp(38px, 10vw, 58px); letter-spacing: -.07em; }
.wallet-balance-hero .balance-value span { color: #8fd3ff !important; font-size: 13px; letter-spacing: 0; }
.wallet-hero-note { margin-top: 10px; color: #8b95a3; font-size: 11px; }
.wallet-hero-note i { margin-right: 5px; color: #4ade80; }
.wallet-hero-orbit { position: absolute; top: 28px; right: 28px; z-index: 1; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(247, 223, 135, .45); border-radius: 18px; background: rgba(5, 7, 11, .34); color: #f7df87; font-size: 22px; box-shadow: 0 0 30px rgba(214, 173, 77, .12); }
.wallet-balance-footer { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid rgba(143, 211, 255, .16); }
.wallet-balance-footer div { display: flex; flex-direction: column; gap: 5px; }
.wallet-balance-footer span { color: #8b95a3; font-size: 10px; }
.wallet-balance-footer strong { color: #e6edf3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.wallet-balance-footer strong:first-letter { color: #4ade80; }
.wallet-quick-actions { margin-top: 28px; }
.wallet-section-heading, .wallet-details-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wallet-section-heading span, .wallet-details-heading span { color: #e6edf3; font-size: 14px; font-weight: 700; }
.wallet-section-heading small, .wallet-details-heading small { color: #64748b; font-size: 9px; letter-spacing: .06em; text-transform: none; }
.wallet-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wallet-action { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-width: 0; padding: 13px; border: 1px solid; border-radius: 15px; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.wallet-action:hover { transform: translateY(-2px); }
.wallet-action-primary { border-color: rgba(214, 173, 77, .4); background: rgba(214, 173, 77, .12); color: #f7df87; }
.wallet-action-secondary { border-color: rgba(143, 211, 255, .2); background: rgba(16, 43, 78, .42); color: #8fd3ff; }
.wallet-action-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(5, 7, 11, .35); font-size: 12px; }
.wallet-action > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wallet-action strong { color: #ffffff; font-size: 12px; }
.wallet-action small { overflow: hidden; color: #8b95a3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-action > i { font-size: 10px; }
.wallet-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 24px 0 30px; }
.wallet-metric { min-width: 0; padding: 13px; border: 1px solid rgba(143, 211, 255, .13); border-radius: 14px; background: rgba(5, 7, 11, .38); }
.wallet-metric span { display: flex; align-items: center; gap: 6px; min-height: 28px; color: #8b95a3; font-size: 9px; line-height: 1.35; }
.wallet-metric span i { color: #8fd3ff; }
.wallet-metric strong { display: block; margin-top: 8px; overflow: hidden; color: #ffffff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-metric strong small { color: #8fd3ff; font-size: 9px; font-weight: 400; }
.wallet-details-heading { margin-bottom: 12px; }
.wallet-details-card { border-color: rgba(143, 211, 255, .15); border-radius: 17px; background: rgba(5, 7, 11, .42); box-shadow: none; }
.wallet-details-card .wallet-accordion-header { padding: 14px 16px; }
.wallet-details-card .wallet-accordion-left span { font-size: 12px; }
.wallet-details-card .wallet-icon { width: 31px; height: 31px; border-radius: 9px; font-size: 12px; }
.wallet-details-card .wallet-row span:first-child { display: flex; align-items: center; gap: 7px; }
.wallet-details-card .wallet-row span:first-child img { width: 18px; height: 18px; object-fit: contain; }

@media (max-width: 560px) {
    .wallet-navline { align-items: flex-start; flex-direction: column; gap: 10px; }
    .wallet-live-status { align-self: flex-end; margin-top: -30px; }
    .wallet-balance-hero { min-height: 250px; padding: 21px; }
    .wallet-hero-orbit { top: 20px; right: 20px; width: 48px; height: 48px; font-size: 18px; }
    .wallet-action-row, .wallet-metrics { grid-template-columns: 1fr; }
    .wallet-metric { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .wallet-metric strong { margin-top: 0; }
}

/* Wallet page layout isolation: keeps legacy global cards from affecting this view. */
.wallet-modern-page { width: min(100%, 1120px); padding: 32px 22px 120px; }
.wallet-modern-root { width: 100%; }
.wallet-modern-root #overview.wallet-tab-content.active {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
    grid-template-areas:
        'hero actions'
        'hero metrics'
        'details details';
    align-items: stretch;
    gap: 18px;
}
.wallet-modern-root #overview .wallet-balance-hero { grid-area: hero; min-height: 100%; }
.wallet-modern-root #overview .wallet-quick-actions { grid-area: actions; margin-top: 0; }
.wallet-modern-root #overview .wallet-metrics { grid-area: metrics; margin: 0; align-self: stretch; }
.wallet-modern-root #overview .wallet-details-block { grid-area: details; }
.wallet-modern-root #overview .wallet-details-heading { margin-top: 8px; margin-bottom: 12px; }
.wallet-modern-root #overview .wallet-details-card { margin-top: 0; }
.wallet-modern-root #activity.wallet-tab-content.active,
.wallet-modern-root #rewards.wallet-tab-content.active { max-width: 820px; margin: 0 auto; }
.wallet-modern-root .wallet-tab-content:not(.active) { display: none; }
.wallet-modern-root .history-card,
.wallet-modern-root .reward-card { border-radius: 22px; }
.wallet-modern-root,
.wallet-modern-root * { box-sizing: border-box; }
.wallet-modern-root .wallet-tabs { width: 100%; }
.wallet-modern-root .wallet-tab-content { width: 100%; min-width: 0; }
.wallet-modern-root .wallet-action-row { height: auto; }
.wallet-modern-root .wallet-action { min-height: 86px; }
.wallet-modern-root .wallet-metrics { align-content: stretch; }
.wallet-modern-root .wallet-metric { display: flex; flex-direction: column; justify-content: center; }
.wallet-modern-root button { font-family: inherit; }
.wallet-modern-root .wallet-balance-hero,
.wallet-modern-root .wallet-details-card,
.wallet-modern-root .history-card,
.wallet-modern-root .reward-card { max-width: 100%; min-width: 0; }
.wallet-modern-root .wallet-row > span { min-width: 0; }
.wallet-modern-root .wallet-row > span:last-child { text-align: right; }

@media (max-width: 760px) {
    .wallet-modern-page { padding: 24px 14px 112px; }
    .wallet-modern-root #overview.wallet-tab-content.active {
        grid-template-columns: 1fr;
        grid-template-areas: 'hero' 'actions' 'metrics' 'details';
        gap: 16px;
    }
    .wallet-modern-root #overview .wallet-balance-hero { min-height: 270px; }
    .wallet-modern-root #overview .wallet-quick-actions { margin-top: 0; }
    .wallet-modern-root #overview .wallet-metrics { margin: 0; }
    .wallet-modern-root #overview .wallet-details-heading { margin-top: 5px; }
    .wallet-modern-root .wallet-row > span:last-child { text-align: left; }
}