/* ==========================================================================
   NEOVEST-STYLE DASHBOARD CSS
   Clean, light, pastel-gradient aesthetic matching the latest Neovest theme
   ========================================================================== */

/* ---------- Animation ---------- */
@keyframes neoFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TOP ROW — Wallets + Referral
   ============================================================ */
.neo-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    animation: neoFadeUp 0.45s ease-out;
}

@media (max-width: 1199px) {
    .neo-top-row { grid-template-columns: 1fr; }
}

.neo-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 18px 0;
}

.dark-theme .neo-card-title {
    color: #e2e8f0;
}

/* -- Wallet Card -- */
.neo-wallet-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.dark-theme .neo-wallet-card {
    background: #1a2236;
    border-color: rgba(255,255,255,0.08);
}

.neo-wallet-card-inner {
    padding: 24px;
}

.neo-wallet-gradient {
    background: linear-gradient(135deg, #4f6af6 0%, #7c3aed 50%, #6366f1 100%);
    border-radius: 14px;
    padding: 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.neo-wallet-gradient::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -80px;
    right: -40px;
}

.neo-wallet-gradient::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -40px;
    right: 60px;
}

.neo-wallet-item {
    position: relative;
    z-index: 1;
}

.neo-wallet-label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 4px;
    font-weight: 500;
}

.neo-wallet-amount {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* -- Referral Card -- */
.neo-referral-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.dark-theme .neo-referral-card {
    background: #1a2236;
    border-color: rgba(255,255,255,0.08);
}

.neo-referral-card-inner {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.neo-referral-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.neo-referral-input-row {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    align-items: stretch;
}

.neo-referral-input {
    flex: 1;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    border-right: none;
    border-radius: 24px 0 0 24px;
    padding: 0 20px;
    font-size: 14px;
    color: #4f46e5;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.neo-referral-input:focus {
    border-color: #4f46e5;
}

.dark-theme .neo-referral-input {
    background: #111827;
    border-color: rgba(255,255,255,0.12);
    color: #818cf8;
}

.neo-copy-btn {
    height: 48px;
    padding: 0 28px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 0 24px 24px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.neo-copy-btn:hover {
    background: #4338ca;
    color: #ffffff;
}

.neo-referral-joined {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 14px 0;
}

.dark-theme .neo-referral-joined {
    color: #64748b;
}

.neo-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.neo-share-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.neo-share-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.neo-share-icon:hover {
    background: #4f46e5;
    color: #fff;
}

.dark-theme .neo-share-icon {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
}

.dark-theme .neo-share-icon:hover {
    background: #4f46e5;
    color: #fff;
}

/* ============================================================
   STAT CARDS GRID
   ============================================================ */
.neo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    animation: neoFadeUp 0.45s ease-out 0.08s both;
}

@media (max-width: 1399px) { .neo-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px)  { .neo-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .neo-stats-grid { grid-template-columns: 1fr; } }

.neo-stat-card {
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.neo-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Pastel gradient backgrounds — matching Neovest */
.neo-grad-green {
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 40%, #ffffff 100%);
}
.neo-grad-pink {
    background: linear-gradient(145deg, #fdf2f8 0%, #fce7f3 40%, #ffffff 100%);
}
.neo-grad-blue {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 40%, #ffffff 100%);
}
.neo-grad-peach {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 40%, #ffffff 100%);
}
.neo-grad-mint {
    background: linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 40%, #ffffff 100%);
}
.neo-grad-rose {
    background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 40%, #ffffff 100%);
}
.neo-grad-lavender {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 40%, #ffffff 100%);
}
.neo-grad-sky {
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 40%, #ffffff 100%);
}

/* Dark theme stat cards */
.dark-theme .neo-stat-card {
    border-color: rgba(255,255,255,0.06);
}
.dark-theme .neo-grad-green    { background: linear-gradient(145deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.04) 40%, #1a2236 100%); }
.dark-theme .neo-grad-pink     { background: linear-gradient(145deg, rgba(236,72,153,0.08) 0%, rgba(236,72,153,0.04) 40%, #1a2236 100%); }
.dark-theme .neo-grad-blue     { background: linear-gradient(145deg, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0.04) 40%, #1a2236 100%); }
.dark-theme .neo-grad-peach    { background: linear-gradient(145deg, rgba(251,146,60,0.08) 0%, rgba(251,146,60,0.04) 40%, #1a2236 100%); }
.dark-theme .neo-grad-mint     { background: linear-gradient(145deg, rgba(20,184,166,0.08) 0%, rgba(20,184,166,0.04) 40%, #1a2236 100%); }
.dark-theme .neo-grad-rose     { background: linear-gradient(145deg, rgba(244,63,94,0.08) 0%, rgba(244,63,94,0.04) 40%, #1a2236 100%); }
.dark-theme .neo-grad-lavender { background: linear-gradient(145deg, rgba(139,92,246,0.08) 0%, rgba(139,92,246,0.04) 40%, #1a2236 100%); }
.dark-theme .neo-grad-sky      { background: linear-gradient(145deg, rgba(14,165,233,0.08) 0%, rgba(14,165,233,0.04) 40%, #1a2236 100%); }

/* Blue Circle Icon */
.neo-stat-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}

.dark-theme .neo-stat-icon-circle {
    background: #6366f1;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.neo-stat-label {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.dark-theme .neo-stat-label {
    color: #94a3b8;
}

.neo-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.neo-stat-value b {
    font-weight: 500;
    font-size: 18px;
    position: relative;
    top: -3px;
    margin-right: 1px;
}

.dark-theme .neo-stat-value {
    color: #e2e8f0;
}

/* ============================================================
   TRANSACTIONS TABLE
   ============================================================ */
.neo-transactions-section {
    animation: neoFadeUp 0.45s ease-out 0.16s both;
}

.neo-transactions-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.dark-theme .neo-transactions-card {
    background: #1a2236;
    border-color: rgba(255,255,255,0.08);
}

.neo-transactions-header {
    padding: 22px 24px 0;
}

.neo-transactions-body {
    padding: 0 0;
}

.neo-transactions-body .site-datatable {
    padding: 12px 0 0;
}

.neo-transactions-body .data-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse;
}

/* Table Header */
.neo-transactions-body .data-table thead tr th {
    background: transparent;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}

.dark-theme .neo-transactions-body .data-table thead tr th {
    color: #e2e8f0;
    border-bottom-color: rgba(255,255,255,0.08);
}

/* Table Rows */
.neo-transactions-body .data-table tbody tr {
    transition: background 0.15s;
}

.neo-transactions-body .data-table tbody tr:hover {
    background: #f8fafc;
}

.dark-theme .neo-transactions-body .data-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.neo-transactions-body .data-table tbody tr td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 14px;
    color: #334155;
}

.dark-theme .neo-transactions-body .data-table tbody tr td {
    color: #cbd5e1;
    border-bottom-color: rgba(255,255,255,0.04);
}

/* Transaction Description Cell */
.neo-txn-desc {
    display: flex;
    align-items: center;
    gap: 12px;
}

.neo-txn-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    font-size: 16px;
}

.neo-txn-icon-circle svg {
    width: 18px;
    height: 18px;
}

.dark-theme .neo-txn-icon-circle {
    background: #6366f1;
}

.neo-txn-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.neo-txn-detail strong {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-theme .neo-txn-detail strong {
    color: #e2e8f0;
}

.neo-txn-date {
    font-size: 12px;
    color: #94a3b8;
}

.neo-txn-msg {
    color: #4f46e5;
    font-size: 14px;
    cursor: help;
    margin-left: 4px;
}

.neo-txn-id {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.dark-theme .neo-txn-id {
    color: #94a3b8;
}

.neo-txn-charge {
    color: #ef4444;
    font-weight: 600;
}

.neo-txn-gateway {
    font-weight: 500;
    color: #64748b;
}

.dark-theme .neo-txn-gateway {
    color: #94a3b8;
}

/* Neovest-style Badges — rounded pills */
.neo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.neo-badge-type {
    background: #eef2ff;
    color: #4f46e5;
}

.dark-theme .neo-badge-type {
    background: rgba(79,70,229,0.15);
    color: #818cf8;
}

.neo-badge-success {
    background: #ecfdf5;
    color: #059669;
}

.dark-theme .neo-badge-success {
    background: rgba(16,185,129,0.12);
    color: #34d399;
}

.neo-badge-pending {
    background: #fffbeb;
    color: #d97706;
}

.dark-theme .neo-badge-pending {
    background: rgba(245,158,11,0.12);
    color: #fbbf24;
}

.neo-badge-failed {
    background: #fef2f2;
    color: #dc2626;
}

.dark-theme .neo-badge-failed {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}

/* Amount colors */
.neo-transactions-body .green-color {
    color: #4f46e5 !important;
    font-weight: 600;
}

.neo-transactions-body .red-color {
    color: #ef4444 !important;
    font-weight: 600;
}

.dark-theme .neo-transactions-body .green-color {
    color: #818cf8 !important;
}

.dark-theme .neo-transactions-body .red-color {
    color: #f87171 !important;
}

/* Empty State */
.neo-empty-state {
    text-align: center;
    padding: 48px 20px !important;
}

.neo-empty-icon {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.dark-theme .neo-empty-icon {
    color: #475569;
}

.neo-empty-state p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

/* DataTables overrides */
.neo-transactions-body .dataTables_wrapper {
    padding: 0;
}

.neo-transactions-body .dataTables_wrapper .dataTables_length,
.neo-transactions-body .dataTables_wrapper .dataTables_filter {
    padding: 10px 20px;
}

.neo-transactions-body .dataTables_wrapper .dataTables_filter input {
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    padding: 6px 14px;
}

.dark-theme .neo-transactions-body .dataTables_wrapper .dataTables_filter input {
    border-color: rgba(255,255,255,0.1);
    background: #111827;
    color: #e2e8f0;
}

.neo-transactions-body .dataTables_wrapper .dataTables_info,
.neo-transactions-body .dataTables_wrapper .dataTables_paginate {
    padding: 14px 20px;
    color: #94a3b8;
}

.neo-transactions-body .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    margin: 0 2px;
}

.neo-transactions-body .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #fff !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    .neo-wallet-card-inner,
    .neo-referral-card-inner {
        padding: 18px;
    }
    .neo-wallet-gradient {
        padding: 22px 20px;
    }
    .neo-wallet-amount {
        font-size: 24px;
    }
    .neo-referral-input-row {
        flex-direction: column;
        gap: 10px;
    }
    .neo-referral-input {
        border-radius: 24px;
        border-right: 1.5px solid #e5e7eb;
    }
    .neo-copy-btn {
        border-radius: 24px;
        width: 100%;
        justify-content: center;
    }
    .neo-transactions-header {
        padding: 18px 18px 0;
    }
    .neo-stat-card {
        padding: 20px;
    }
}

/* ============================================================
   NEOVEST LIGHT MODE — FULL PAGE OVERRIDES
   Forces light theme across the entire user panel,
   overriding ALL dark-theme colors from styles.css
   ============================================================ */

/* --- Body & Root --- */
.dark-theme {
    color: #1e293b !important;
    background: #f0f2f5 !important;
}

/* --- Sidebar --- */
.dark-theme .panel-layout .side-nav {
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    box-shadow: 1px 0 8px rgba(0,0,0,0.04);
}
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a {
    color: #475569 !important;
    font-weight: 500;
}
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a:hover {
    color: #1e293b !important;
    background: #f1f5f9;
    border-radius: 8px;
}
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a:after {
    background: rgba(0, 0, 0, 0.06) !important;
}
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item.active a {
    color: #ffffff !important;
    background: #4f46e5 !important;
    border-radius: 8px;
}
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a i,
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a .anticon,
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item a svg {
    color: #94a3b8 !important;
}
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item.active a i,
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item.active a .anticon,
.dark-theme .panel-layout .side-nav .side-nav-inside .side-nav-menu .side-nav-item.active a svg {
    color: #ffffff !important;
}

/* --- Side Wallet Box --- */
.dark-theme .panel-layout .side-wallet-box,
.dark-theme .side-wallet-box {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}
.dark-theme .panel-layout .side-wallet-box .user-balance-card::before,
.dark-theme .side-wallet-box .user-balance-card::before {
    background: linear-gradient(135deg, #4f6af6 0%, #7c3aed 100%) !important;
}

/* --- Header / Nav Bar --- */
.dark-theme .panel-layout .panel-header .logo {
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
}
.dark-theme .panel-layout .panel-header .logo img {
    filter: none !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-left .sidebar-toggle {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-left .sidebar-toggle:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .color-switcher {
    color: #475569 !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .color-switcher svg.dark-icon { display: none; }
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .color-switcher svg.light-icon { display: inline-block; }
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .notification-dot {
    background: #ef4444 !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .item {
    color: #475569 !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .item:hover {
    color: #4f46e5 !important;
}

/* Header nice-select (language switcher etc) */
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .site-nice-select {
    color: #475569 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e5e7eb !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .site-nice-select::after {
    border-bottom-color: #475569 !important;
    border-right-color: #475569 !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .site-nice-select .list {
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    border: 1px solid #e5e7eb !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .site-nice-select .list li {
    color: #475569 !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .site-nice-select .list li:hover {
    background: #f1f5f9 !important;
}

/* Header dropdowns */
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .dropdown-menu li .dropdown-item {
    color: #475569 !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .dropdown-menu li .dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .dropdown-menu li.logout .dropdown-item {
    color: #dc2626 !important;
}
.dark-theme .panel-layout .panel-header .nav-wrap .nav-right .single-nav-right .single-right .dropdown-menu li.logout .dropdown-item:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* --- Page Container / Main Content --- */
.dark-theme .panel-layout .page-container {
    background: #f0f2f5 !important;
}
.dark-theme .panel-layout .page-container .main-content {
    background: #f0f2f5 !important;
}
.dark-theme .panel-layout .page-container .main-content .page-title .title-content .title {
    color: #1e293b !important;
}

/* --- Site Cards (all pages) --- */
.dark-theme .site-card,
.dark-theme .panel-layout .site-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
}
.dark-theme .site-card .site-card-header,
.dark-theme .panel-layout .site-card .site-card-header {
    border-bottom: 1px solid #e5e7eb !important;
}
.dark-theme .site-card .site-card-header .title,
.dark-theme .panel-layout .site-card .site-card-header .title {
    color: #1e293b !important;
}
.dark-theme .site-card .site-card-header .search input,
.dark-theme .panel-layout .site-card .site-card-header .search input {
    color: #1e293b !important;
    border-color: #e5e7eb !important;
    background: #f8fafc !important;
}
.dark-theme .site-card .site-card-body,
.dark-theme .panel-layout .site-card .site-card-body {
    color: #475569 !important;
}

/* Site card progress steps and forms */
.dark-theme .panel-layout .site-card .site-card-body .progress-steps .single-step,
.dark-theme .site-card .site-card-body .progress-steps .single-step {
    background: #f8fafc !important;
    border-color: #e5e7eb !important;
}
.dark-theme .panel-layout .site-card .site-card-body .progress-steps .single-step .content h4,
.dark-theme .site-card .site-card-body .progress-steps .single-step .content h4 {
    color: #1e293b !important;
}
.dark-theme .site-card .site-card-body .progress-steps-form label,
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form label {
    color: #475569 !important;
}
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .input-group .form-control,
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .input-group .form-control-textarea,
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .input-group .form-select,
.dark-theme .site-card .site-card-body .progress-steps-form .input-group .form-control,
.dark-theme .site-card .site-card-body .progress-steps-form .input-group .form-control-textarea,
.dark-theme .site-card .site-card-body .progress-steps-form .input-group .form-select {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #e5e7eb !important;
}
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .input-group .input-group-text,
.dark-theme .site-card .site-card-body .progress-steps-form .input-group .input-group-text {
    background: #f8fafc !important;
    color: #64748b !important;
    border-color: #e5e7eb !important;
}
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .transaction-list .table,
.dark-theme .site-card .site-card-body .progress-steps-form .transaction-list .table {
    color: #475569 !important;
}
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .transaction-list .table tbody tr,
.dark-theme .site-card .site-card-body .progress-steps-form .transaction-list .table tbody tr {
    border-bottom-color: #f1f5f9 !important;
}
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .transaction-list .table tbody tr td strong,
.dark-theme .site-card .site-card-body .progress-steps-form .transaction-list .table tbody tr td strong {
    color: #1e293b !important;
}
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .transaction-list .user-panel-title,
.dark-theme .panel-layout .site-card .site-card-body .progress-steps-form .transaction-list .user-panel-title h3,
.dark-theme .site-card .site-card-body .progress-steps-form .transaction-list .user-panel-title,
.dark-theme .site-card .site-card-body .progress-steps-form .transaction-list .user-panel-title h3 {
    color: #1e293b !important;
}
.dark-theme .progress-steps-form .transaction-status {
    color: #475569 !important;
}

/* Nice-select in forms */
.dark-theme .progress-steps-form .input-group .site-nice-select,
.dark-theme .nice-select {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #1e293b !important;
}
.dark-theme .progress-steps-form .input-group .site-nice-select::after,
.dark-theme .nice-select::after {
    border-bottom-color: #475569 !important;
    border-right-color: #475569 !important;
}
.dark-theme .progress-steps-form .input-group .site-nice-select .list,
.dark-theme .nice-select .list {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}
.dark-theme .progress-steps-form .input-group .site-nice-select .list li:hover,
.dark-theme .progress-steps-form .input-group .site-nice-select .list li.selected,
.dark-theme .nice-select .option:hover,
.dark-theme .nice-select .option.selected {
    background: #f1f5f9 !important;
}

/* Referral link form */
.dark-theme .site-card .site-card-body .referral-link .referral-joined,
.dark-theme .panel-layout .site-card .site-card-body .referral-link .referral-joined {
    color: #94a3b8 !important;
}
.dark-theme .site-card .site-card-body .referral-link .referral-link-form input,
.dark-theme .panel-layout .site-card .site-card-body .referral-link .referral-link-form input {
    background: #f8fafc !important;
    color: #4f46e5 !important;
    border-color: #e5e7eb !important;
}

/* --- Site Alert --- */
.dark-theme .panel-layout .site-alert,
.dark-theme .site-alert {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}

/* --- DataTables (all pages) --- */
.dark-theme .site-datatable .data-table thead tr th {
    color: #1e293b !important;
    background: #f8fafc !important;
    border-bottom-color: #e5e7eb !important;
}
.dark-theme .site-datatable .data-table {
    color: #475569 !important;
}
.dark-theme .site-datatable .data-table tbody tr td {
    color: #475569 !important;
    border-bottom-color: #f1f5f9 !important;
}
.dark-theme .site-datatable .data-table tbody tr:hover {
    background: #f8fafc !important;
}
.dark-theme .site-datatable .data-table tbody tr td .date {
    color: #94a3b8 !important;
}
.dark-theme .site-datatable .data-table tbody tr td .avatar-text {
    color: #1e293b !important;
}
.dark-theme .site-datatable .data-table tbody tr td .link {
    color: #4f46e5 !important;
}
.dark-theme .site-datatable .data-table tbody tr td .link:hover {
    color: #4338ca !important;
}
.dark-theme .site-datatable .data-table tbody tr td .table-description .icon {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.dark-theme .site-datatable .data-table tbody tr td .investment-timeline {
    background: #f1f5f9 !important;
}
.dark-theme .site-datatable .data-table tbody tr td .investment-timeline .progress-bar {
    background: #4f46e5 !important;
}

/* DataTable badges */
.dark-theme .site-datatable .data-table tbody tr td .site-badge {
    background: #eef2ff !important;
    color: #4f46e5 !important;
}
.dark-theme .site-datatable .data-table tbody tr td .site-badge.success {
    background: #ecfdf5 !important;
    color: #059669 !important;
}
.dark-theme .site-datatable .data-table tbody tr td .site-badge.warnning {
    background: #fffbeb !important;
    color: #d97706 !important;
}
.dark-theme .site-datatable .data-table tbody tr td .site-badge.failed {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* DataTable controls */
.dark-theme .site-datatable .dataTables_length label,
.dark-theme .site-datatable .dataTables_info {
    color: #64748b !important;
}
.dark-theme .site-datatable .dataTables_length label select:focus {
    border-color: #4f46e5 !important;
    color: #1e293b !important;
}
.dark-theme .site-datatable .dataTables_filter label input {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #e5e7eb !important;
}
.dark-theme .site-datatable .dataTables_filter label input:focus {
    border-color: #4f46e5 !important;
}
.dark-theme .site-datatable .dataTables_paginate .pagination .paginate_button .page-link {
    background: #ffffff !important;
    color: #475569 !important;
    border-color: #e5e7eb !important;
}
.dark-theme .site-datatable .dataTables_paginate .pagination .paginate_button .page-link:hover,
.dark-theme .site-datatable .dataTables_paginate .pagination .paginate_button .page-link:focus {
    background: #f1f5f9 !important;
    color: #4f46e5 !important;
}
.dark-theme .site-datatable .dataTables_paginate .pagination .paginate_button.active .page-link {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

/* --- Site Table (older table style) --- */
.dark-theme .site-table .table {
    color: #475569 !important;
}
.dark-theme .site-table .table thead tr th {
    color: #1e293b !important;
    background: #f8fafc !important;
    border-bottom-color: #e5e7eb !important;
}
.dark-theme .site-table .table tbody tr td {
    color: #475569 !important;
    border-bottom-color: #f1f5f9 !important;
}
.dark-theme .site-table .table tbody tr td .date {
    color: #94a3b8 !important;
}
.dark-theme .site-table .table tbody tr td .table-description .icon {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.dark-theme .site-table .table tbody tr td .table-description .description .date {
    color: #94a3b8 !important;
}
.dark-theme .site-table .table-filter .filter .search input {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #e5e7eb !important;
}
.dark-theme .site-table .table-filter .filter .search input:focus {
    border-color: #4f46e5 !important;
}
.dark-theme .site-table .table-filter .filter .search label {
    color: #64748b !important;
}
.dark-theme .site-table .table-filter .filter .filter-right-btn button {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #e5e7eb !important;
}

/* --- Transactions list --- */
.dark-theme .site-transactions .single,
.dark-theme .panel-layout .site-transactions .single {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
}
.dark-theme .site-transactions .single .left .icon,
.dark-theme .panel-layout .site-transactions .single .left .icon {
    background: #f1f5f9 !important;
    color: #475569 !important;
}
.dark-theme .site-transactions .single .left .content .date,
.dark-theme .panel-layout .site-transactions .single .left .content .date {
    color: #94a3b8 !important;
}
.dark-theme .site-transactions .single.head,
.dark-theme .panel-layout .site-transactions .single.head {
    background: transparent !important;
}

/* --- Site Pagination --- */
.dark-theme .site-pagination .page-item .page-link,
.dark-theme .panel-layout .site-pagination .page-item .page-link {
    background: #ffffff !important;
    color: #475569 !important;
    border-color: #e5e7eb !important;
}
.dark-theme .site-pagination .page-item.active .page-link,
.dark-theme .panel-layout .site-pagination .page-item.active .page-link {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}

/* --- Btn Link --- */
.dark-theme .btn-link,
.dark-theme .panel-layout .btn-link {
    color: #4f46e5 !important;
}

/* --- Mobile views --- */
.dark-theme .mobile-transactions {
    background: transparent !important;
}
.dark-theme .mobile-transactions .single-transaction {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
}
.dark-theme .mobile-transactions .single-transaction .transaction-left .transaction-title {
    color: #1e293b !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-left .transaction-date,
.dark-theme .mobile-transactions .single-transaction .transaction-left .transaction-id {
    color: #94a3b8 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-left .transaction-type {
    color: #64748b !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-left .transaction-note {
    color: #94a3b8 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-amount.add {
    color: #059669 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-amount.sub {
    color: #dc2626 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-fee {
    color: #94a3b8 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-fee.add {
    color: #059669 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-fee.sub {
    color: #dc2626 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-gateway {
    color: #64748b !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-status.success {
    background: #ecfdf5 !important;
    color: #059669 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-status.pending {
    background: #fffbeb !important;
    color: #d97706 !important;
}
.dark-theme .mobile-transactions .single-transaction .transaction-right .transaction-status.cancel {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}
.dark-theme .mobile-ref-url .referral-joined {
    color: #94a3b8 !important;
}
.dark-theme .mobile-transaction-filter .filter .search input {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #e5e7eb !important;
}
.dark-theme .mobile-transaction-filter .filter .search input:focus {
    border-color: #4f46e5 !important;
}
.dark-theme .mobile-transaction-filter .filter .search label {
    color: #64748b !important;
}
.dark-theme .mobile-transaction-filter .filter .filter-right-btn button {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* --- Forms --- */
.dark-theme .form-control,
.dark-theme .form-select,
.dark-theme input[type="text"],
.dark-theme input[type="email"],
.dark-theme input[type="password"],
.dark-theme input[type="number"],
.dark-theme textarea,
.dark-theme select {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #e5e7eb !important;
}
.dark-theme .form-control:focus,
.dark-theme .form-select:focus,
.dark-theme input:focus,
.dark-theme textarea:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
}
.dark-theme label { color: #475569 !important; }
.dark-theme .input-icon { color: #94a3b8 !important; }

/* --- Dropdowns (generic) --- */
.dark-theme .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.dark-theme .dropdown-menu .dropdown-item { color: #475569 !important; }
.dark-theme .dropdown-menu .dropdown-item:hover { background: #f1f5f9 !important; color: #1e293b !important; }

/* --- Badges --- */
.dark-theme .site-badge { border-radius: 20px; }
.dark-theme .site-badge.success { background: #ecfdf5 !important; color: #059669 !important; }
.dark-theme .site-badge.pending,
.dark-theme .site-badge.warnning { background: #fffbeb !important; color: #d97706 !important; }
.dark-theme .site-badge.danger,
.dark-theme .site-badge.failed { background: #fef2f2 !important; color: #dc2626 !important; }

/* --- Modal --- */
.dark-theme .modal-content { background: #ffffff !important; border: 1px solid #e5e7eb !important; color: #1e293b !important; }
.dark-theme .modal-header { border-bottom-color: #e5e7eb !important; }
.dark-theme .modal-footer { border-top-color: #e5e7eb !important; }

/* --- Tooltip --- */
.dark-theme .tooltip-inner { background: #1e293b; color: #fff; }

/* --- Scrollbar --- */
.dark-theme ::-webkit-scrollbar { width: 6px; }
.dark-theme ::-webkit-scrollbar-track { background: #f1f5f9; }
.dark-theme ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* --- Typography --- */
.dark-theme h1, .dark-theme h2, .dark-theme h3,
.dark-theme h4, .dark-theme h5, .dark-theme h6 { color: #1e293b !important; }
.dark-theme p { color: #475569; }
.dark-theme a { color: #4f46e5; }
.dark-theme a:hover { color: #4338ca; }

/* --- Access device images --- */
.dark-theme .site-card .site-card-body .access-device .icon img,
.dark-theme .panel-layout .site-card .site-card-body .access-device .icon img {
    filter: none !important;
}

/* --- Switch field radio toggles --- */
.dark-theme .switch-field label { color: #475569 !important; background: #f1f5f9 !important; }
.dark-theme .switch-field input:checked + label { color: #ffffff !important; background: #4f46e5 !important; }

/* --- User cards / stat cards (old layout) --- */
.dark-theme .user-cards .single {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #1e293b !important;
}
.dark-theme .user-cards .single .icon { color: #4f46e5 !important; }
.dark-theme .user-cards .single .content h4 { color: #1e293b !important; }
.dark-theme .user-cards .single .content p { color: #64748b !important; }

/* --- User ranking circle --- */
.dark-theme .user-ranking {
    background: linear-gradient(135deg, #4f6af6, #7c3aed) !important;
    border: 3px solid #e5e7eb !important;
}

/* --- Referral link form (old) --- */
.dark-theme .referral-link .referral-link-form input {
    background: #f8fafc !important;
    color: #4f46e5 !important;
    border-color: #e5e7eb !important;
}
.dark-theme .referral-link .referral-link-form button {
    background: #4f46e5 !important;
    color: #ffffff !important;
}

/* --- Earnings calculator (homepage) --- */
.dark-theme .earnings-calculator .single-box .input-group .form-control { background: #ffffff !important; color: #1e293b !important; border-color: #e5e7eb !important; }
.dark-theme .earnings-calculator .single-box .input-group .input-group-text { background: #f8fafc !important; color: #64748b !important; }
.dark-theme .earnings-calculator .single-box .site-nice-select { background: #ffffff !important; color: #1e293b !important; }
.dark-theme .earnings-calculator .single-box .site-nice-select::after { border-bottom-color: #475569 !important; border-right-color: #475569 !important; }
.dark-theme .earnings-calculator .single-box .site-nice-select .current { color: #1e293b !important; }
.dark-theme .earnings-calculator .single-box .site-nice-select .list { background: #ffffff !important; }
.dark-theme .earnings-calculator .single-box .site-nice-select .list li:hover { background: #f1f5f9 !important; }
.dark-theme .earnings-calculator .single-box label { color: #475569 !important; }

/* --- Green/Red amount colors --- */
.dark-theme .green-color { color: #059669 !important; }
.dark-theme .red-color { color: #dc2626 !important; }

/* ============================================================
   AUTO-INVEST TOGGLE
   ============================================================ */
.auto-invest-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f8fafc;
    transition: all 0.2s;
    width: 100%;
}

.auto-invest-toggle:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}

.auto-invest-toggle input:checked ~ span {
    color: #4f46e5;
    font-weight: 600;
}

.auto-invest-toggle input.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.auto-invest-toggle input.form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.dark-theme .auto-invest-toggle {
    color: #e2e8f0;
    background: #1a2236;
    border-color: rgba(255,255,255,0.1);
}

.dark-theme .auto-invest-toggle:hover {
    border-color: #6366f1;
    background: rgba(99,102,241,0.1);
}

.dark-theme .auto-invest-toggle input:checked ~ span {
    color: #818cf8;
}

/* ============================================================
   INVESTMENT CALCULATOR
   ============================================================ */
.invest-calc-card {
    background: #ffffff;
    border: 1.5px solid #e0e7ff;
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    animation: neoFadeUp 0.3s ease-out;
}

.dark-theme .invest-calc-card {
    background: #1a2236;
    border-color: rgba(99,102,241,0.2);
}

.invest-calc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    border-bottom: 1px solid #e0e7ff;
}

.dark-theme .invest-calc-header {
    background: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(59,130,246,0.06) 100%);
    border-bottom-color: rgba(255,255,255,0.06);
}

.invest-calc-header i {
    font-size: 20px;
    color: #4f46e5;
}

.invest-calc-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.dark-theme .invest-calc-header h4 {
    color: #e2e8f0 !important;
}

.invest-calc-body {
    padding: 20px;
}

.invest-calc-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 575px) {
    .invest-calc-summary { grid-template-columns: 1fr; }
}

.invest-calc-stat {
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.dark-theme .invest-calc-stat {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
}

.invest-calc-stat-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.invest-calc-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.dark-theme .invest-calc-stat-value {
    color: #e2e8f0 !important;
}

.invest-calc-stat-value.invest-calc-profit {
    color: #059669;
}

.dark-theme .invest-calc-stat-value.invest-calc-profit {
    color: #34d399 !important;
}

.invest-calc-stat-value.invest-calc-return {
    color: #4f46e5;
}

.dark-theme .invest-calc-stat-value.invest-calc-return {
    color: #818cf8 !important;
}

.invest-calc-stat-sub {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

/* Breakdown timeline */
.invest-calc-breakdown-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dark-theme .invest-calc-breakdown-title {
    color: #94a3b8 !important;
}

.invest-calc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dark-theme .invest-calc-row {
    border-bottom-color: rgba(255,255,255,0.04);
}

.invest-calc-row:last-child {
    border-bottom: none;
}

.invest-calc-row-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.dark-theme .invest-calc-row-num {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
}

.invest-calc-row-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.dark-theme .invest-calc-row-bar {
    background: rgba(255,255,255,0.06);
}

.invest-calc-row-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 3px;
    transition: width 0.4s ease-out;
}

.invest-calc-row-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 100px;
}

.invest-calc-row-profit {
    font-size: 13px;
    font-weight: 600;
    color: #059669;
}

.dark-theme .invest-calc-row-profit {
    color: #34d399;
}

.invest-calc-row-cum {
    font-size: 11px;
    color: #94a3b8;
}

.invest-calc-more {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* ============================================================
   PROFIT CHART
   ============================================================ */
.neo-chart-section {
    margin-bottom: 24px;
    animation: neoFadeUp 0.45s ease-out 0.12s both;
}

.neo-chart-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.dark-theme .neo-chart-card {
    background: #1a2236 !important;
    border-color: rgba(255,255,255,0.08) !important;
}

.neo-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.neo-chart-legend {
    display: flex;
    gap: 16px;
}

.neo-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.neo-chart-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.neo-chart-dot-profit {
    background: #059669;
}

.neo-chart-dot-deposit {
    background: #4f46e5;
}

.neo-chart-body {
    padding: 16px 20px 20px;
    position: relative;
    height: 300px;
}

.neo-chart-body canvas {
    width: 100% !important;
}

@media (max-width: 575px) {
    .neo-chart-body {
        height: 220px;
    }
    .neo-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================================
   ANNOUNCEMENTS
   ============================================================ */
.neo-announce-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid;
    animation: neoFadeUp 0.35s ease-out;
}
.neo-announce-info  { background: #eff6ff; border-color: #bfdbfe; }
.neo-announce-success { background: #ecfdf5; border-color: #a7f3d0; }
.neo-announce-warning { background: #fffbeb; border-color: #fde68a; }
.neo-announce-danger { background: #fef2f2; border-color: #fecaca; }
.neo-announce-icon { font-size: 22px; flex-shrink: 0; }
.neo-announce-info .neo-announce-icon { color: #2563eb; }
.neo-announce-success .neo-announce-icon { color: #059669; }
.neo-announce-warning .neo-announce-icon { color: #d97706; }
.neo-announce-danger .neo-announce-icon { color: #dc2626; }
.neo-announce-text { flex: 1; min-width: 0; }
.neo-announce-text strong { display: block; font-size: 14px; color: #1e293b; margin-bottom: 2px; }
.neo-announce-text p { font-size: 13px; color: #64748b; margin: 0; }
.neo-announce-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.neo-announce-btn {
    padding: 6px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    background: #4f46e5; color: #fff; text-decoration: none; white-space: nowrap;
}
.neo-announce-btn:hover { background: #4338ca; color: #fff; }
.neo-announce-close {
    width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center;
    color: #64748b; font-size: 14px;
}
.neo-announce-close:hover { background: rgba(0,0,0,0.1); }
@media (max-width: 575px) {
    .neo-announce-banner { flex-wrap: wrap; }
    .neo-announce-actions { width: 100%; justify-content: flex-end; }
}

/* Announcements page cards */
.neo-announcement {
    background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 20px; border-left: 4px solid #4f46e5;
}
.neo-announcement-info  { border-left-color: #2563eb; }
.neo-announcement-success { border-left-color: #059669; }
.neo-announcement-warning { border-left-color: #d97706; }
.neo-announcement-danger { border-left-color: #dc2626; }
.neo-announcement-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.neo-announcement-type-badge {
    padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.neo-type-info { background: #eff6ff; color: #2563eb; }
.neo-type-success { background: #ecfdf5; color: #059669; }
.neo-type-warning { background: #fffbeb; color: #d97706; }
.neo-type-danger { background: #fef2f2; color: #dc2626; }
.neo-announcement-date { font-size: 12px; color: #94a3b8; }
.neo-announcement-title { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0 0 8px; }
.neo-announcement-content { font-size: 14px; color: #475569; line-height: 1.6; }
.neo-announcement-expires { font-size: 12px; color: #94a3b8; margin: 10px 0 0; font-style: italic; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.neo-portfolio-summary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px;
}
@media (max-width: 575px) { .neo-portfolio-summary { grid-template-columns: 1fr; } }
.neo-portfolio-stat {
    background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 20px; text-align: center;
}
.neo-portfolio-stat-label { display: block; font-size: 12px; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.neo-portfolio-stat-value { display: block; font-size: 24px; font-weight: 700; color: #1e293b; }
.neo-text-profit { color: #059669 !important; }

.neo-portfolio-card {
    background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px;
    margin-bottom: 16px; overflow: hidden;
}
.neo-portfolio-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid #f1f5f9;
}
.neo-portfolio-plan { display: flex; align-items: center; gap: 12px; }
.neo-portfolio-plan-icon {
    width: 44px; height: 44px; border-radius: 10px; background: #eef2ff;
    color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.neo-portfolio-plan-name { font-size: 15px; font-weight: 600; color: #1e293b; margin: 0 0 2px; }
.neo-portfolio-plan-date { font-size: 12px; color: #94a3b8; }
.neo-portfolio-amount { text-align: right; }
.neo-portfolio-invested { font-size: 20px; font-weight: 700; color: #1e293b; }

.neo-portfolio-card-body { padding: 18px 20px; }
.neo-portfolio-details {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px;
}
@media (max-width: 991px) { .neo-portfolio-details { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .neo-portfolio-details { grid-template-columns: repeat(2, 1fr); } }
.neo-portfolio-detail-label { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 2px; }
.neo-portfolio-detail-value { display: block; font-size: 14px; font-weight: 600; color: #1e293b; }

.neo-portfolio-progress { margin-top: 4px; }
.neo-portfolio-progress-bar {
    height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin-bottom: 6px;
}
.neo-portfolio-progress-fill {
    height: 100%; background: linear-gradient(90deg, #4f46e5, #7c3aed); border-radius: 4px;
    transition: width 0.6s ease;
}
.neo-portfolio-progress-text { font-size: 12px; color: #64748b; font-weight: 500; }

/* ============================================================
   REFERRAL TREE
   ============================================================ */
.neo-ref-tree-section { margin-top: 20px; }
.neo-ref-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px;
}
@media (max-width: 575px) { .neo-ref-stats { grid-template-columns: 1fr; } }
.neo-ref-stat-item {
    text-align: center; padding: 16px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px;
}
.neo-ref-stat-num { display: block; font-size: 22px; font-weight: 700; color: #1e293b; }
.neo-ref-stat-label { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }

.neo-ref-tree { padding: 10px 0; }
.neo-ref-node {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
    background: #f8fafc; border: 1px solid #e5e7eb; margin-bottom: 4px; flex-wrap: wrap;
}
.neo-ref-root { background: #eef2ff; border-color: #c7d2fe; }
.neo-ref-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: #4f46e5; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.neo-ref-l1 { background: #059669; }
.neo-ref-l2 { background: #d97706; width: 28px; height: 28px; font-size: 12px; }
.neo-ref-name { font-weight: 600; color: #1e293b; font-size: 14px; }
.neo-ref-tag {
    font-size: 11px; font-weight: 600; background: #4f46e5; color: #fff;
    padding: 2px 8px; border-radius: 10px;
}
.neo-ref-date { font-size: 11px; color: #94a3b8; }
.neo-ref-sub-count { font-size: 11px; color: #059669; font-weight: 600; }

.neo-ref-branches { padding-left: 24px; border-left: 2px solid #e0e7ff; margin-left: 18px; }
.neo-ref-branch { margin-bottom: 8px; position: relative; }
.neo-ref-connector {
    position: absolute; left: -26px; top: 20px; width: 24px; height: 2px; background: #e0e7ff;
}
.neo-ref-sub-branches { padding-left: 20px; border-left: 2px solid #fde68a; margin-left: 18px; }
.neo-ref-sub-branch { margin-bottom: 4px; position: relative; }
.neo-ref-connector-sm {
    position: absolute; left: -22px; top: 16px; width: 20px; height: 2px; background: #fde68a;
}
.neo-ref-small .neo-ref-name { font-size: 13px; }
.neo-ref-small { padding: 6px 10px; }
.neo-ref-more, .neo-ref-more-root {
    font-size: 12px; color: #94a3b8; font-style: italic; padding: 6px 14px;
}

/* ============================================================
   AUTH PAGES — Login, Register, Forgot Password, etc.
   Neovest-style light background with blue accents
   ============================================================ */
.site-auth {
    background: #f0f2f5 !important;
    background-image:
        linear-gradient(135deg, rgba(79,70,229,0.03) 25%, transparent 25%),
        linear-gradient(225deg, rgba(79,70,229,0.03) 25%, transparent 25%),
        linear-gradient(315deg, rgba(79,70,229,0.03) 25%, transparent 25%),
        linear-gradient(45deg, rgba(79,70,229,0.03) 25%, transparent 25%) !important;
    background-size: 60px 60px !important;
}

.site-auth .auth-content {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06) !important;
    padding: 48px 48px !important;
    border: 1px solid #e5e7eb;
}

@media (max-width: 575px) {
    .site-auth .auth-content { padding: 32px 20px !important; }
}

.site-auth .auth-content .title h2 {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.site-auth .auth-content .title p {
    color: #64748b !important;
}

.site-auth .auth-content .site-auth-form .single-field .box-label {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.site-auth .auth-content .site-auth-form .single-field .box-input {
    background: #f8fafc !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 12px !important;
    height: 52px !important;
    font-size: 15px !important;
    color: #1e293b !important;
    transition: all 0.2s !important;
}

.site-auth .auth-content .site-auth-form .single-field .box-input:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
    background: #ffffff !important;
}

.site-auth .auth-content .site-auth-form .single-field .box-input::placeholder {
    color: #94a3b8 !important;
}

/* Nice select in auth forms */
.site-auth .auth-content .site-auth-form .single-field .site-nice-select {
    border-radius: 12px !important;
    border: 1.5px solid #e5e7eb !important;
    background: #f8fafc !important;
    height: 52px !important;
}

.site-auth .auth-content .site-auth-form .single-field .site-nice-select .list {
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

/* Joint input groups */
.site-auth .auth-content .site-auth-form .single-field .joint-input {
    border-radius: 12px !important;
    border: 1.5px solid #e5e7eb !important;
    height: 52px !important;
    overflow: hidden;
}

.site-auth .auth-content .site-auth-form .single-field .joint-input .input-group-text {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

/* Form check input (remember me) */
.site-auth .auth-content .site-auth-form .single-field .check-input {
    border-color: #cbd5e1 !important;
}

.site-auth .auth-content .site-auth-form .single-field .check-input:checked {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.site-auth .auth-content .site-auth-form .single-field .form-check-label {
    color: #475569 !important;
}

.site-auth .auth-content .site-auth-form .single-field .forget-pass-text a {
    color: #4f46e5 !important;
}

/* Auth buttons — replace grad-btn with solid blue */
.site-auth .grad-btn,
.site-auth .site-btn.grad-btn {
    background: #4f46e5 !important;
    border: none !important;
    border-radius: 12px !important;
    height: 52px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.site-auth .grad-btn:hover {
    background: #4338ca !important;
}

/* Signup/login link text */
.site-auth .auth-content .singnup-text p {
    color: #64748b !important;
}

.site-auth .auth-content .singnup-text a {
    color: #4f46e5 !important;
    font-weight: 600 !important;
}

/* Password eye icon */
.site-auth .auth-content .site-auth-form .single-field .password {
    position: relative;
}

/* Alert styling in auth */
.site-auth .alert {
    border-radius: 10px !important;
}

/* Also override the global grad-btn outside auth for sidebar logout etc */
.grad-btn {
    background: #4f46e5 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

.grad-btn:hover {
    background: #4338ca !important;
    color: #ffffff !important;
}

/* Section style backgrounds (used by auth pages) */
.section-style.site-auth::before,
.section-style.site-auth::after {
    display: none !important;
}

/* ============================================================
   HOMEPAGE — Full Neovest-style redesign
   Header, Hero, Sections, Footer, Schema Cards, etc.
   ============================================================ */

/* --- HEADER --- */
.dark-theme .header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.dark-theme .header .navbar .main-nav .nav-item a.nav-link {
    color: #475569 !important;
    font-weight: 500;
}
.dark-theme .header .navbar .main-nav .nav-item a.nav-link:hover,
.dark-theme .header .navbar .main-nav .nav-item a.nav-link.active {
    color: #4f46e5 !important;
}
.dark-theme .header .navbar .main-nav .nav-item.dropdown .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.dark-theme .header .navbar .header-right-btn .color-switcher {
    color: #475569 !important;
}
.dark-theme .header .navbar-toggler {
    border-color: #cbd5e1 !important;
}
.dark-theme .header .navbar-toggler-icon {
    filter: invert(0.5) !important;
}
.dark-theme .header .navbar .header-right-btn .language-nice-select {
    color: #475569 !important;
    background: #f1f5f9 !important;
    border-color: #e5e7eb !important;
}

/* --- SECTION BACKGROUNDS --- */
.dark-theme .dark-blue-bg { background: #f0f2f5 !important; }
.dark-theme .light-blue-bg { background: #ffffff !important; }
.dark-theme .section-style { background: #f8fafc !important; }

/* --- BANNER / HERO --- */
.dark-theme .banner .banner-content::before {
    background: rgba(79,70,229,0.06) !important;
}
.dark-theme .banner .banner-content h2 {
    color: #1e293b !important;
}
.dark-theme .banner .banner-content p {
    color: #64748b !important;
}

/* --- SECTION TITLES --- */
.dark-theme .section-title h4 {
    color: #4f46e5 !important;
}
.dark-theme .section-title h2 {
    color: #1e293b !important;
}
.dark-theme .section-title p {
    color: #64748b !important;
}

/* --- COUNTER STATS --- */
.dark-theme .counter .single-counter h3 {
    color: #1e293b !important;
}
.dark-theme .counter .single-counter p {
    color: #64748b !important;
}

/* --- WHY CHOOSE US --- */
.dark-theme .why-choose-us .why-choose-us-content .single {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
}
.dark-theme .why-choose-us .why-choose-us-content .single .content h4 {
    color: #1e293b !important;
}
.dark-theme .why-choose-us .why-choose-us-content .single .content p {
    color: #64748b !important;
}

/* --- HOW IT WORKS --- */
.dark-theme .how-it-works .how-it-works-single {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
}
.dark-theme .how-it-works .how-it-works-single h4 {
    color: #1e293b !important;
}
.dark-theme .how-it-works .how-it-works-single p {
    color: #64748b !important;
}
.dark-theme .how-it-works .how-it-works-single::before {
    color: rgba(79,70,229,0.08) !important;
}

/* --- SCHEMA / PLAN CARDS --- */
.dark-theme .pricing-card,
.dark-theme .single-pricing {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
}
.dark-theme .pricing-card h3,
.dark-theme .single-pricing h3 {
    color: #1e293b !important;
}
.dark-theme .pricing-card .price,
.dark-theme .single-pricing .price {
    color: #4f46e5 !important;
}
.dark-theme .pricing-card li,
.dark-theme .single-pricing li {
    color: #475569 !important;
}

/* --- INVESTMENT CALCULATOR (homepage) --- */
.dark-theme .earnings-calculator {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
}

/* --- RECENT INVESTORS / WITHDRAWALS --- */
.dark-theme .latest-transactions,
.dark-theme .latest-invest-withdraw {
    background: #f8fafc !important;
}
.dark-theme .latest-transactions .single,
.dark-theme .invest-withdraw-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
}
.dark-theme .latest-transactions .single h4,
.dark-theme .invest-withdraw-card h4 {
    color: #1e293b !important;
}
.dark-theme .latest-transactions .single p,
.dark-theme .invest-withdraw-card p {
    color: #64748b !important;
}

/* --- FAQ --- */
.dark-theme .faq-contents .accordion-item {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    margin-bottom: 10px;
}
.dark-theme .faq-contents .accordion-item .accordion-header .accordion-button {
    color: #1e293b !important;
    background: #ffffff !important;
}
.dark-theme .faq-contents .accordion-item .accordion-header .accordion-button:not(.collapsed) {
    color: #4f46e5 !important;
    background: #f8fafc !important;
}
.dark-theme .faq-contents .accordion-item .accordion-body .para {
    color: #64748b !important;
}
.dark-theme .faq-contents .accordion-item .accordion-body .list ul li {
    color: #475569 !important;
}

/* --- BLOG --- */
.dark-theme .single-blog {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    overflow: hidden;
}
.dark-theme .single-blog .content {
    background: #ffffff !important;
}
.dark-theme .single-blog .content .title h3 a {
    color: #1e293b !important;
}
.dark-theme .single-blog .content .link a {
    color: #4f46e5 !important;
}
.dark-theme .single-blog .content p {
    color: #64748b !important;
}
.dark-theme .blog-details {
    background: #ffffff !important;
    color: #475569 !important;
}
.dark-theme .blog-details .blockquote {
    background: #f8fafc !important;
    border-left-color: #4f46e5 !important;
}

/* --- ABOUT --- */
.dark-theme .about-us .about-content .content {
    color: #64748b !important;
}
.dark-theme .about-us .about-content h2 {
    color: #1e293b !important;
}

/* --- CTA / NEWSLETTER --- */
.dark-theme .cta-section,
.dark-theme .newsletter-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
}

/* --- FOOTER --- */
.dark-theme .footer {
    background: #0f172a !important;
}
.dark-theme .footer .footer-widget h4 {
    color: rgba(255,255,255,0.9) !important;
}
.dark-theme .footer .footer-widget p,
.dark-theme .footer .footer-widget a,
.dark-theme .footer .footer-widget li {
    color: rgba(255,255,255,0.6) !important;
}
.dark-theme .footer .footer-widget a:hover {
    color: #818cf8 !important;
}
.dark-theme .footer .copyright p {
    color: rgba(255,255,255,0.4) !important;
}
.dark-theme .footer .copyright a {
    color: #818cf8 !important;
}

/* --- CONTACT PAGE --- */
.dark-theme .contact-form {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
}
.dark-theme .contact-form h3 {
    color: #1e293b !important;
}
.dark-theme .contact-form .form-control {
    background: #f8fafc !important;
    border-color: #e5e7eb !important;
    color: #1e293b !important;
}

/* --- PRIMARY BTN overrides for homepage --- */
.dark-theme .site-btn-sm.primary-btn {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}
.dark-theme .site-btn-sm.primary-btn:hover {
    background: #4338ca !important;
}

/* --- CTA buttons on homepage hero --- */
.dark-theme .banner .banner-content .site-btn {
    border-radius: 10px !important;
}

/* Brands/partners section */
.dark-theme .brands-logo .single-brands-logo img {
    filter: grayscale(1) opacity(0.5) !important;
}

/* Input icon for homepage forms */
.dark-theme .input-icon {
    color: #94a3b8 !important;
}

/* --- CACHES/PRIVACY/TERMS PAGES --- */
.dark-theme .caches-privacy {
    background: #ffffff !important;
    color: #475569 !important;
}
.dark-theme .caches-privacy h1,
.dark-theme .caches-privacy h2,
.dark-theme .caches-privacy h3 {
    color: #1e293b !important;
}
