/* NOVA Portal 5.0 - Unified Design System & Mobile UX Optimization */

:root {
    --nova-canvas: #050a14;
    --nova-surface: #111622;
    --nova-surface-card: #171d2c;
    --nova-border: #1e2538;
    --nova-border-highlight: #2e384e;
    --nova-copy: #f8fafc;
    --nova-muted: #94a3b8;
    --nova-gold: #fbbf24;
    --nova-blue: #3b82f6;
    --nova-green: #10b981;
    --nova-red: #ef4444;
}

/* Admin deposits: searchable desktop table and zero-scroll mobile cards */
.admin-deposit-tools { display:grid; grid-template-columns:minmax(260px,1fr) auto auto; align-items:center; gap:.75rem; margin:0 0 1rem; }
.admin-deposit-search, .admin-deposit-filter { display:flex; align-items:center; gap:.55rem; min-height:44px; padding:.15rem .8rem; background:#0c0f1a; border:1px solid #1e2538; border-radius:10px; color:#94a3b8; }
.admin-deposit-search .material-symbols-outlined, .admin-deposit-filter .material-symbols-outlined { font-size:1.1rem; }
.admin-deposit-search input, .admin-deposit-filter select { width:100%; min-width:0; padding:.55rem 0; background:transparent; border:0; outline:0; color:#e5edf8; font:500 .8rem/1.2 Inter,sans-serif; }
.admin-dashboard-body .admin-deposit-search input,
.admin-dashboard-body .admin-deposit-filter select { min-height:0 !important; background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
.admin-deposit-search:focus-within, .admin-deposit-filter:focus-within { border-color:rgba(109,156,232,.62); box-shadow:0 0 0 3px rgba(109,156,232,.13); }
.admin-deposit-filter select { min-width:145px; cursor:pointer; }
.admin-deposit-filter option { background:#0c0f1a; }
.admin-deposit-count { color:#94a3b8; font-size:.75rem; white-space:nowrap; }
.deposit-action-group { display:flex; flex-wrap:wrap; gap:.45rem; }
.deposit-action-btn { display:inline-flex; align-items:center; justify-content:center; gap:.25rem; min-height:34px; padding:.38rem .68rem; border:0; border-radius:7px; color:#fff; font-size:.72rem; font-weight:750; cursor:pointer; }
.deposit-action-btn:disabled { opacity:.55; cursor:wait; }
.deposit-action-btn .material-symbols-outlined { font-size:.95rem; }
.deposit-action-btn.approve { background:#059669; }
.deposit-action-btn.reject { background:#dc2626; }
.deposit-action-btn.revise { color:#fbbf24; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.32); }
.payout-wallet-value { max-width:280px; color:#cbd5e1; font:500 .78rem/1.5 monospace; overflow-wrap:anywhere; }
.payout-copy-btn { display:inline-flex; align-items:center; gap:.25rem; margin-top:.25rem; padding:.25rem 0; background:none; border:0; color:#fbbf24; cursor:pointer; font-size:.72rem; font-weight:700; }
.payout-confirm-btn { min-height:36px; padding:.4rem .75rem; background:#2563eb; border:0; border-radius:7px; color:#fff; cursor:pointer; font-size:.72rem; font-weight:750; }
.payout-confirm-btn:disabled { opacity:.55; cursor:wait; }

@media (max-width: 700px) {
    .admin-deposit-tools { grid-template-columns:1fr auto; gap:.6rem; }
    .admin-deposit-search { grid-column:1 / -1; }
    .admin-deposit-filter select { min-width:0; }
    #panel-deposits .admin-deposits-card { padding:.65rem !important; overflow:visible !important; }
    #panel-deposits .admin-deposits-table-wrap { overflow:visible !important; border:0 !important; background:transparent !important; }
    #panel-deposits .admin-deposits-table-wrap::after { content:none !important; display:none !important; }
    #panel-deposits .admin-deposits-table { display:block; width:100%; min-width:0 !important; }
    #panel-deposits .admin-deposits-table thead { display:none; }
    #panel-deposits .admin-deposits-table tbody { display:grid; width:100%; gap:.7rem; }
    #panel-deposits .admin-deposit-row { display:grid; grid-template-columns:1fr 1fr; gap:.75rem 1rem; width:100%; padding:.9rem; background:#0c101b; border:1px solid #1e2538; border-radius:12px; box-sizing:border-box; }
    #panel-deposits .admin-deposit-row td { display:flex; min-width:0; padding:0 !important; border:0 !important; flex-direction:column; align-items:flex-start; gap:.25rem; white-space:normal !important; overflow-wrap:anywhere; }
    #panel-deposits .admin-deposit-row td::before { content:attr(data-label); color:#718096; font-size:.61rem; font-weight:700; letter-spacing:.045em; text-transform:uppercase; }
    #panel-deposits .admin-deposit-row td:nth-child(2) { text-align:right; align-items:flex-end; }
    #panel-deposits .admin-deposit-row td:nth-child(3), #panel-deposits .admin-deposit-row td:nth-child(4), #panel-deposits .admin-deposit-row td:nth-child(5), #panel-deposits .admin-deposit-row td:nth-child(6), #panel-deposits .admin-deposit-row td:nth-child(7) { grid-column:1 / -1; padding-top:.65rem !important; border-top:1px solid rgba(126,156,205,.1) !important; }
    #panel-deposits .admin-deposit-row td:nth-child(3), #panel-deposits .admin-deposit-row td:nth-child(6) { grid-column:auto; }
    #panel-deposits .admin-deposit-row td:nth-child(6) { align-items:flex-end; }
    #panel-deposits .deposit-action-group, #panel-deposits .deposit-action-btn { width:100%; }
    #panel-deposits .deposit-action-group .deposit-action-btn { flex:1; }
    #panel-deposits .admin-deposits-empty { display:block; }
    #panel-deposits .admin-deposits-empty td { display:block; width:100%; box-sizing:border-box; }
    #panel-payouts .admin-payouts-card { padding:.65rem !important; overflow:visible !important; }
    #panel-payouts .admin-payouts-table-wrap { overflow:visible !important; border:0 !important; background:transparent !important; }
    #panel-payouts .admin-payouts-table-wrap::after { content:none !important; display:none !important; }
    #panel-payouts .admin-payouts-table { display:block; width:100%; min-width:0 !important; }
    #panel-payouts .admin-payouts-table thead { display:none; }
    #panel-payouts .admin-payouts-table tbody { display:grid; width:100%; gap:.7rem; }
    #panel-payouts .admin-payout-row { display:grid; grid-template-columns:1fr 1fr; gap:.75rem 1rem; width:100%; padding:.9rem; background:#0c101b; border:1px solid #1e2538; border-radius:12px; box-sizing:border-box; }
    #panel-payouts .admin-payout-row td { display:flex; min-width:0; padding:0 !important; border:0 !important; flex-direction:column; align-items:flex-start; gap:.25rem; white-space:normal !important; overflow-wrap:anywhere; }
    #panel-payouts .admin-payout-row td::before { content:attr(data-label); color:#718096; font-size:.61rem; font-weight:700; letter-spacing:.045em; text-transform:uppercase; }
    #panel-payouts .admin-payout-row td:nth-child(2) { text-align:right; align-items:flex-end; }
    #panel-payouts .admin-payout-row td:nth-child(3), #panel-payouts .admin-payout-row td:nth-child(5), #panel-payouts .admin-payout-row td:nth-child(7) { grid-column:1 / -1; padding-top:.65rem !important; border-top:1px solid rgba(126,156,205,.1) !important; }
    #panel-payouts .admin-payout-row td:nth-child(4) { grid-column:1; }
    #panel-payouts .admin-payout-row td:nth-child(6) { grid-column:2; align-items:flex-end; }
    #panel-payouts .payout-wallet-value { width:100%; max-width:none; }
    #panel-payouts .payout-copy-btn, #panel-payouts .payout-confirm-btn { width:100%; min-height:42px; justify-content:center; border-radius:8px; }
    #panel-payouts .admin-payouts-empty { display:block; }
    #panel-payouts .admin-payouts-empty td { display:block; width:100%; box-sizing:border-box; }
}

/* Force Dark Mode Globally */
html, body {
    background-color: var(--nova-canvas) !important;
    color: var(--nova-copy) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Admin & User Layout Surfaces */
.dashboard-body, .admin-dashboard-body, .landing-body {
    background-color: var(--nova-canvas) !important;
    color: var(--nova-copy) !important;
}

.dashboard-sidebar {
    background-color: #111622 !important;
    border-right: 1px solid #1e2538 !important;
}

.dashboard-header {
    background-color: #111622 !important;
    border-bottom: 1px solid #1e2538 !important;
}

.metric-card-box, .deposit-step-box, .recent-deposits-section, .smtp-settings-card {
    background-color: #111622 !important;
    border: 1px solid #1e2538 !important;
    border-radius: 12px !important;
}

/* Table Responsive Mobile Box */
.table-responsive-box {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid #1e2538 !important;
    border-radius: 10px !important;
}

.deposits-table-list th {
    background-color: #171d2c !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #1e2538 !important;
}

.deposits-table-list td {
    border-bottom: 1px solid #1e2538 !important;
    color: #f8fafc !important;
}

/* Mobile Sidebar Drawer Navigation */
@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 260px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        transition: left 0.3s ease-in-out !important;
        box-shadow: 4px 0 25px rgba(0,0,0,0.5) !important;
    }

    .dashboard-sidebar.active,
    .dashboard-sidebar.mobile-open {
        left: 0 !important;
    }

    .dashboard-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .header-left-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        z-index: 9998;
    }

    .sidebar-overlay.active {
        display: block !important;
    }
}

/* Final responsive shell — shared by user and admin dashboards */
.dashboard-sidebar {
    width: 240px !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.dashboard-wrapper {
    width: calc(100% - 240px) !important;
    min-width: 0 !important;
    margin-left: 240px !important;
}

.sidebar-logo {
    min-height: 88px;
    padding: 1.25rem 1.25rem 1rem !important;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.sidebar-logo img { display: block; max-width: 145px; height: auto !important; }
.sidebar-product-label { flex: 0 0 auto; padding: .2rem 1.25rem .65rem; color: #dbe5f4; font-size: .73rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
.admin-dashboard-body .sidebar-logo { display: none !important; }
.admin-dashboard-body .sidebar-product-label { padding-top: 1.25rem; }
.user-dashboard-body .sidebar-logo { display: none !important; }
.user-dashboard-body .sidebar-product-label { padding-top: 1.25rem; }
.sidebar-menu { flex: 1 1 auto !important; min-height: 0; margin: 0 !important; padding: .25rem .7rem !important; overflow-x: hidden !important; overflow-y: auto !important; scrollbar-width: thin; }
.sidebar-menu li { width: 100%; }
.sidebar-item-link { width: 100%; min-height: 44px; padding: .68rem .85rem !important; gap: .75rem !important; white-space: nowrap; }
.sidebar-item-link > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.sidebar-icon { width: 22px; flex: 0 0 22px; text-align: center; }

.sidebar-system-card {
    flex: 0 0 auto;
    margin: .75rem;
    padding: .8rem;
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    align-items: center;
    gap: .65rem;
    background: rgba(8,16,29,.72);
    border: 1px solid rgba(126,156,205,.16);
    border-radius: 12px;
}
.system-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #29c97d; box-shadow: 0 0 0 4px rgba(41,201,125,.1), 0 0 12px rgba(41,201,125,.45); }
.sidebar-system-card > div { min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.sidebar-system-card strong, .sidebar-system-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-system-card strong { color: #d9e3f1; font-size: .72rem; line-height: 1.3; }
.sidebar-system-card > div > span { color: #718096; font-size: .64rem; line-height: 1.3; }

.dashboard-header { min-width: 0; gap: 1rem; }
.dashboard-header-context { min-width: 0; display: flex; align-items: center; gap: .65rem; }
.dashboard-header-context > .material-symbols-outlined { flex: 0 0 auto; color: #89a9df; font-size: 1.2rem; }
.dashboard-header-context > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.dashboard-header-context strong, .dashboard-header-context span { display: block; white-space: nowrap; }
.dashboard-header-context strong { color: #edf3fb; font-size: .8rem; }
.dashboard-header-context > div > span { margin-top: .14rem; color: #78869a; font-size: .65rem; }
.header-right-user { min-width: 0; }
.dashboard-footer { margin-top: auto; min-height: 58px; display: flex; align-items: center; padding: 0 1.5rem; }

@media (max-width: 900px) {
    .dashboard-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        width: min(82vw, 280px) !important;
        transform: translateX(-105%);
        transition: transform .25s cubic-bezier(.2,.8,.2,1) !important;
        z-index: 9999 !important;
        box-shadow: 16px 0 42px rgba(0,0,0,.48) !important;
    }
    .dashboard-sidebar.active, .dashboard-sidebar.mobile-open { left: 0 !important; transform: translateX(0); }
    .dashboard-wrapper { width: 100% !important; margin-left: 0 !important; }
    .header-left-toggle { display: flex !important; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; border-radius: 10px; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(1,5,12,.7); backdrop-filter: blur(4px); }
    .sidebar-overlay.active { display: block !important; }
}

@media (max-width: 520px) {
    .dashboard-header { height: 60px !important; padding: 0 .65rem !important; gap: .45rem; }
    .dashboard-header-context { display: none; }
    .header-right-user { margin-left: auto; }
    .user-card-info { max-width: 132px; padding: .4rem .55rem !important; }
    .user-name-label { max-width: 75px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dashboard-main-content { width: 100%; min-width: 0; padding-inline: .75rem !important; }
    .dashboard-footer { min-height: 50px; padding: 0 .8rem; font-size: .68rem; }
}

/* Dashboard polish — clear hierarchy, touch-friendly controls and mobile rhythm */
#panel-notifications, #panel-email-preferences, #panel-smtp { width: 100%; max-width: 900px; margin-inline: auto; }

/* Dedicated investment portfolio and financial overview */
.investment-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.85rem; margin:1rem 0; }
.financial-metrics-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.85rem; margin:1rem 0; }
.investment-summary-grid article, .financial-metrics-grid article { position:relative; min-width:0; padding:1rem; overflow:hidden; background:linear-gradient(145deg,rgba(17,29,48,.96),rgba(8,17,31,.98)); border:1px solid rgba(126,156,205,.18); border-radius:14px; }
.investment-summary-grid span, .financial-metrics-grid span { display:block; color:#8997aa; font-size:.68rem; font-weight:650; }
.investment-summary-grid strong, .financial-metrics-grid strong { display:block; margin-top:.35rem; color:#f4f7fb; font:750 1.2rem/1.2 'Inter',sans-serif; }
.financial-metrics-grid article > i { position:absolute; right:.8rem; bottom:.65rem; color:rgba(96,165,250,.22); font-size:2.1rem; }
.financial-metrics-grid .financial-net-card { border-color:rgba(16,185,129,.3); }
.financial-net-card strong { color:#34d399; }.financial-net-card strong.negative { color:#fb7185; }

.btn-browse-plans {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 1.15rem !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btn-browse-plans:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
    transform: translateY(-1px);
}
.my-investments-list { display:grid; gap:.85rem; }
.my-investment-card { padding:1rem; background:linear-gradient(145deg,rgba(16,27,45,.97),rgba(7,15,28,.99)); border:1px solid rgba(126,156,205,.18); border-radius:16px; }
.my-investment-card.tone-0 { border-left:3px solid #3b82f6; }.my-investment-card.tone-1 { border-left:3px solid #a855f7; }.my-investment-card.tone-2 { border-left:3px solid #10b981; }.my-investment-card.tone-3 { border-left:3px solid #f59e0b; }
.my-investment-card.tone-0 .my-investment-title > .material-symbols-outlined{color:#60a5fa;background:rgba(59,130,246,.13)}.my-investment-card.tone-1 .my-investment-title > .material-symbols-outlined{color:#c084fc;background:rgba(168,85,247,.13)}.my-investment-card.tone-2 .my-investment-title > .material-symbols-outlined{color:#34d399;background:rgba(16,185,129,.13)}.my-investment-card.tone-3 .my-investment-title > .material-symbols-outlined{color:#fbbf24;background:rgba(245,158,11,.13)}
.my-investment-title { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:.75rem; }
.my-investment-title > .material-symbols-outlined { display:grid; width:42px; height:42px; place-items:center; color:#60a5fa; background:rgba(59,130,246,.13); border-radius:11px; }
.my-investment-title small { color:#718096; font-size:.62rem; }.my-investment-title h2 { margin:.15rem 0 0; color:#f2f6fc; font-size:.95rem; }
.my-investment-values { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin:.95rem 0; padding:.85rem; background:rgba(3,9,18,.38); border-radius:11px; }
.my-investment-values span { display:block; color:#718096; font-size:.6rem; }.my-investment-values strong { display:block; margin-top:.2rem; color:#e8eef7; font-size:.78rem; }
.my-investment-progress > div { display:flex; justify-content:space-between; gap:1rem; color:#8090a5; font-size:.66rem; }.my-investment-progress > div strong { color:#60a5fa; }
.my-investment-progress > i, .financial-bar-row > i { display:block; height:6px; margin-top:.4rem; overflow:hidden; background:#17243a; border-radius:99px; }.my-investment-progress > i em { display:block; height:100%; background:linear-gradient(90deg,#3b82f6,#22c55e); border-radius:inherit; }
.my-investment-card footer { display:flex; justify-content:space-between; gap:1rem; margin-top:.75rem; color:#65748a; font-size:.61rem; }
.my-investments-pagination { display:flex; align-items:center; justify-content:center; gap:.8rem; margin-top:1rem; }.my-investments-pagination[hidden]{display:none!important}.my-investments-pagination button{display:flex;align-items:center;gap:.2rem;padding:.55rem .75rem;color:#dbe7f7;background:rgba(27,49,82,.7);border:1px solid rgba(96,165,250,.25);border-radius:9px;font-size:.68rem;font-weight:700;cursor:pointer}.my-investments-pagination button:disabled{opacity:.38;cursor:not-allowed}.my-investments-pagination button span{font-size:1rem}.my-investments-pagination > span{color:#8391a6;font-size:.67rem;font-weight:700}

/* User Panel - My Investments Filter Toolbar & Badges */
.my-investments-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
    padding: 0.5rem;
    background: rgba(5, 13, 25, 0.75);
    border: 1px solid rgba(126, 156, 205, 0.18);
    border-radius: 14px;
}

.my-investments-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.inv-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    color: #8897ab;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inv-filter-btn:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.inv-filter-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.filter-count-badge {
    padding: 0.15rem 0.45rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
}

.inv-filter-btn.active .filter-count-badge {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
}

.upcoming-payout-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upcoming-payout-toggle:hover {
    background: rgba(245, 158, 11, 0.2);
}

.upcoming-payout-toggle.active {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #b45309);
    border-color: #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.inv-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.inv-status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.inv-status-pill.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.inv-status-pill.active .status-dot {
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.inv-status-pill.completed {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.inv-status-pill.completed .status-dot {
    background: #38bdf8;
}

.inv-status-pill.hold {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.inv-status-pill.hold .status-dot {
    background: #fbbf24;
}

.inv-status-pill.suspended {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.inv-status-pill.suspended .status-dot {
    background: #f87171;
}

.payout-soon-banner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.6rem 0 0.8rem;
    padding: 0.5rem 0.75rem;
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { border-color: rgba(245, 158, 11, 0.3); box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    50% { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 12px rgba(245, 158, 11, 0.2); }
}

/* Recent Commissions Card */
.recent-commissions-card {
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(145deg, rgba(15, 27, 45, 0.95), rgba(7, 15, 28, 0.98));
    border: 1px solid rgba(126, 156, 205, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.recent-commissions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.recent-commissions-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.recent-commissions-title .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 10px;
}

.recent-commissions-title h3 {
    margin: 0;
    color: #f1f5fb;
    font-size: 0.95rem;
}

.recent-commissions-title p {
    margin: 0.15rem 0 0;
    color: #7f8da2;
    font-size: 0.68rem;
}

.commission-badge-count {
    padding: 0.25rem 0.6rem;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 99px;
    font-size: 0.64rem;
    font-weight: 750;
}

.recent-commissions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-commission-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: rgba(3, 9, 18, 0.4);
    border: 1px solid rgba(126, 156, 205, 0.1);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.recent-commission-item:hover {
    background: rgba(3, 9, 18, 0.65);
    border-color: rgba(52, 211, 153, 0.2);
}

.commission-item-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.commission-item-info {
    flex: 1;
    min-width: 0;
}

.commission-item-info strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
}

.commission-item-info small {
    display: block;
    color: #64748b;
    font-size: 0.65rem;
}

.commission-item-amount {
    color: #34d399;
    font-size: 0.88rem;
    font-weight: 800;
}

.financial-period-filter { display:flex; gap:.45rem; margin:1rem 0; padding:.35rem; width:max-content; max-width:100%; background:rgba(5,13,25,.72); border:1px solid rgba(126,156,205,.15); border-radius:11px; }
.financial-period-filter button { padding:.55rem .85rem; color:#8897ab; background:transparent; border:0; border-radius:8px; font-size:.7rem; font-weight:700; cursor:pointer; }.financial-period-filter button.active { color:#fff; background:#2563eb; box-shadow:0 5px 14px rgba(37,99,235,.28); }
.financial-custom-range { display:flex; align-items:flex-end; gap:.6rem; margin-bottom:.7rem; padding:.8rem; background:rgba(7,16,30,.72); border:1px solid rgba(126,156,205,.16); border-radius:13px; }.financial-custom-range > div{display:flex;min-width:0;flex-direction:column;gap:.3rem}.financial-custom-range label{color:#7f8ea3;font-size:.61rem;font-weight:700}.financial-custom-range input{min-width:145px;padding:.55rem .65rem;color:#e7eef8;color-scheme:dark;background:#091323;border:1px solid #263752;border-radius:8px;font:600 .7rem 'Inter',sans-serif}.financial-custom-range > .material-symbols-outlined{align-self:center;color:#586b85;font-size:1rem}.financial-custom-range button{display:flex;align-items:center;gap:.35rem;padding:.58rem .75rem;color:#fff;background:#2563eb;border:0;border-radius:8px;font-size:.67rem;font-weight:750;cursor:pointer}.financial-custom-range button span{font-size:1rem}.financial-custom-range .range-reset{color:#aab7c8;background:rgba(56,70,91,.45);border:1px solid rgba(126,156,205,.15)}
.financial-period-summary{display:flex;align-items:center;gap:.4rem;margin-bottom:.65rem;color:#718096;font-size:.65rem}.financial-period-summary>.material-symbols-outlined{color:#60a5fa;font-size:1rem}.financial-period-summary strong{color:#d9e4f3}.financial-period-summary b{margin-left:auto;padding:.25rem .5rem;color:#93c5fd;background:rgba(59,130,246,.1);border-radius:99px;font-size:.6rem}
.financial-analytics-card{margin:1rem 0;padding:1rem;background:linear-gradient(145deg,rgba(15,27,45,.98),rgba(6,14,27,.99));border:1px solid rgba(126,156,205,.18);border-radius:16px;box-shadow:0 16px 34px rgba(2,8,18,.2)}.financial-analytics-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.financial-analytics-heading h2{margin:0;color:#f1f5fb;font-size:1rem}.financial-analytics-heading p{margin:.25rem 0 0;color:#7f8da2;font-size:.67rem}.financial-analytics-heading>span{padding:.3rem .55rem;color:#93c5fd;background:rgba(59,130,246,.1);border-radius:99px;font-size:.61rem;font-weight:700}.financial-chart-legend{display:flex;flex-wrap:wrap;gap:1rem;margin:.9rem 0 .4rem;color:#8998ac;font-size:.64rem}.financial-chart-legend span{display:flex;align-items:center;gap:.35rem}.financial-chart-legend i{display:block;width:9px;height:9px;background:#38bdf8;border-radius:3px}.financial-chart-legend .money-out i{background:#f87171}.financial-chart-legend .earnings i{background:#34d399;border-radius:50%}.financial-analytics-chart{width:100%;min-height:230px;overflow:hidden}.financial-analytics-chart svg{display:block;width:100%;height:auto;min-height:230px}.financial-analytics-chart .chart-grid{stroke:rgba(126,156,205,.12);stroke-width:1;stroke-dasharray:4 5}.financial-analytics-chart .chart-axis{fill:#718096;font:600 10px 'Inter',sans-serif}.financial-analytics-chart .chart-money-in{fill:#38bdf8;opacity:.78}.financial-analytics-chart .chart-money-out{fill:#f87171;opacity:.72}.financial-analytics-chart .chart-earnings-line{fill:none;stroke:#34d399;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.financial-analytics-chart .chart-earning-point{fill:#07101f;stroke:#34d399;stroke-width:2.5}
.financial-overview-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:1rem; }
.financial-breakdown-card, .financial-activity-card { min-width:0; padding:1rem; background:linear-gradient(145deg,rgba(16,27,45,.96),rgba(7,15,28,.98)); border:1px solid rgba(126,156,205,.18); border-radius:16px; }
.financial-breakdown-card h2, .financial-activity-card h2 { margin:0 0 .9rem; color:#f1f5fb; font-size:.9rem; }
.financial-bar-row { margin:.8rem 0; }.financial-bar-row > div { display:flex; justify-content:space-between; gap:.75rem; color:#8998ac; font-size:.66rem; }.financial-bar-row strong { color:#dce5f1; }
.financial-bar-row em { display:block; height:100%; min-width:2px; border-radius:inherit; background:#3b82f6; }.financial-bar-row em.invested{background:#a855f7}.financial-bar-row em.commissions{background:#10b981}.financial-bar-row em.referrals{background:#f59e0b}.financial-bar-row em.withdrawals{background:#f43f5e}
.financial-activity-row { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:.65rem; padding:.7rem 0; border-bottom:1px solid rgba(126,156,205,.1); }.financial-activity-row:last-child{border:0}.financial-activity-row > span{display:grid;width:34px;height:34px;place-items:center;color:#60a5fa;background:rgba(59,130,246,.1);border-radius:9px;font-size:1rem}.financial-activity-row strong,.financial-activity-row small{display:block;min-width:0}.financial-activity-row strong{color:#e6edf7;font-size:.72rem}.financial-activity-row small{margin-top:.15rem;overflow:hidden;color:#718096;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}.financial-activity-row b{color:#dce5f1;font-size:.72rem}
.financial-activity-row b.credit{color:#34d399}.financial-activity-row b.debit{color:#fb7185}
.financial-empty { display:grid; min-height:150px; padding:1rem; place-content:center; justify-items:center; gap:.35rem; color:#718096; text-align:center; border:1px dashed rgba(126,156,205,.17); border-radius:13px; }.financial-empty > span{font-size:2rem}.financial-empty strong{color:#dce5f1}.financial-empty small{max-width:320px;font-size:.68rem}.financial-empty button{margin-top:.55rem;padding:.55rem .8rem;color:#fff;background:#2563eb;border:0;border-radius:8px;font-weight:700;cursor:pointer}

@media (max-width:700px) {
    #panel-myinvestments, #panel-financial { padding-bottom:74px; }
    .investment-summary-grid, .financial-metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
    .investment-summary-grid article, .financial-metrics-grid article { padding:.8rem; }
    .investment-summary-grid strong, .financial-metrics-grid strong { font-size:1rem; }
    .my-investment-title { grid-template-columns:38px minmax(0,1fr); }.my-investment-title > .material-symbols-outlined{width:38px;height:38px}.my-investment-title > b{grid-column:1/-1;width:max-content}
    .my-investment-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .my-investment-card footer { flex-direction:column; gap:.25rem; }
    .financial-period-filter { width:100%; box-sizing:border-box; }.financial-period-filter button{flex:1;padding:.5rem .25rem;font-size:.62rem}
    .financial-custom-range{display:grid;grid-template-columns:1fr 1fr;align-items:end}.financial-custom-range>div{width:100%}.financial-custom-range input{box-sizing:border-box;width:100%;min-width:0}.financial-custom-range>.material-symbols-outlined{display:none}.financial-custom-range button{justify-content:center}.financial-period-summary{flex-wrap:wrap}.financial-period-summary b{margin-left:0}
    .financial-analytics-card{padding:.8rem}.financial-analytics-heading{flex-direction:column;gap:.55rem}.financial-chart-legend{gap:.6rem}.financial-analytics-chart{min-height:180px}.financial-analytics-chart svg{width:100%;min-height:180px}
    .financial-overview-grid { grid-template-columns:1fr; }
    .financial-activity-row { grid-template-columns:32px minmax(0,1fr); }.financial-activity-row b{grid-column:2}
}
@media (max-width:420px){.financial-custom-range{grid-template-columns:1fr}.my-investments-pagination{gap:.4rem}.my-investments-pagination button{padding:.5rem}.financial-metrics-grid{grid-template-columns:1fr 1fr}}
.dashboard-panel-view > .panel-title { margin-bottom: .4rem; letter-spacing: -.025em; }
.dashboard-panel-view > .panel-desc { max-width: 720px; line-height: 1.55; }
.notification-settings-grid { gap: .8rem !important; }
.notification-setting {
    min-height: 82px;
    padding: 1rem 1.05rem !important;
    border-color: rgba(126,156,205,.18) !important;
    background: linear-gradient(145deg, rgba(15,25,43,.92), rgba(8,16,29,.96)) !important;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.notification-setting:hover { border-color: rgba(85,139,226,.48) !important; transform: translateY(-1px); }
.notification-setting strong { font-size: .9rem; line-height: 1.25; }
.notification-setting small { font-size: .73rem; }
.notification-setting:focus-within { outline: 3px solid rgba(59,130,246,.22); outline-offset: 2px; }
.notification-setting i { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.notification-setting input:checked + i { background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: 0 4px 14px rgba(37,99,235,.28); }
.form-btn-db, .smtp-test-btn, .chat-send-btn { touch-action: manipulation; }
.form-input-db, .modal-text-input, .chat-input { max-width: 100%; }

@media (max-width: 900px) {
    .dashboard-header { position: sticky !important; top: 0; z-index: 900; backdrop-filter: blur(18px); }
    .dashboard-main-content { min-height: calc(100dvh - 110px); }
    .sidebar-product-label { padding-top: 1rem !important; }
    .sidebar-item-link { min-height: 48px; border-radius: 10px !important; }
}

@media (max-width: 600px) {
    .dashboard-main-content { padding: 1rem .75rem 2rem !important; }
    .dashboard-panel-view > .panel-title { font-size: clamp(1.45rem, 7vw, 1.8rem) !important; line-height: 1.15; }
    .dashboard-panel-view > .panel-desc { margin-bottom: 1.15rem; font-size: .84rem; }
    .smtp-settings-card { padding: .9rem !important; border-radius: 16px !important; box-shadow: 0 14px 35px rgba(0,0,0,.2); }
    .smtp-card-heading { gap: .7rem; margin-bottom: 1rem; }
    .smtp-heading-icon { width: 40px; height: 40px; border-radius: 11px; }
    .smtp-card-heading h2 { font-size: 1rem; }
    .smtp-card-heading p { font-size: .72rem; line-height: 1.4; }
    .notification-settings-grid { grid-template-columns: 1fr !important; gap: .65rem !important; margin: .85rem 0 !important; }
    .notification-setting { min-height: 72px; padding: .85rem .9rem !important; gap: .7rem !important; }
    .notification-setting strong { font-size: .84rem; }
    .notification-setting small { font-size: .68rem; }
    .notification-setting i { width: 44px; height: 26px; flex-basis: 44px; }
    .notification-privacy-note, .smtp-security-note { font-size: .7rem !important; line-height: 1.45; }
    .smtp-actions { margin-top: .85rem !important; }
    .smtp-actions button { width: 100%; min-height: 48px !important; }
    .table-responsive-box { margin-inline: 0 !important; border-radius: 12px !important; scrollbar-color: #334a72 transparent; }
    .profile-dropdown-menu { max-width: calc(100vw - 1.5rem); }
}

/* Transactions: independent empty state and native mobile cards */
.transactions-table-wrap[hidden], .transactions-empty-state[hidden] { display: none !important; }
.transactions-table-wrap::after { content: none !important; display: none !important; }
.transactions-empty-state { min-height: 170px; padding: 1.5rem; display: grid; place-content: center; justify-items: center; text-align: center; color: #76859a; border: 1px dashed rgba(126,156,205,.18); border-radius: 14px; background: rgba(5,12,24,.42); }
.transactions-empty-state > span { margin-bottom: .65rem; color: #5279bd; font-size: 2.1rem; }
.transactions-empty-state > strong { color: #dce6f5; font-size: 1rem; }
.transactions-empty-state > small { max-width: 340px; margin-top: .4rem; font-size: .76rem; line-height: 1.5; }
.table-scroll-hint { display: none !important; }

/* User-dashboard-only PWA install prompt */
.dashboard-pwa-banner { display: none; }
@media (max-width: 768px) {
    .dashboard-pwa-banner.show { 
        position: fixed; 
        left: 50%; 
        bottom: calc(74px + env(safe-area-inset-bottom)) !important; 
        z-index: 2500; 
        width: calc(100% - 1.25rem); 
        max-width: 390px; 
        padding: .9rem; 
        display: grid; 
        grid-template-columns: 44px minmax(0,1fr); 
        gap: .75rem; 
        color: #eaf1fb; 
        background: linear-gradient(145deg,rgba(14,25,44,.98),rgba(8,15,29,.99)); 
        border: 1px solid rgba(83,132,224,.38); 
        border-radius: 16px; 
        box-shadow: 0 18px 50px rgba(0,0,0,.65); 
        transform: translateX(-50%); 
        animation: dashboardPwaIn .35s ease both; 
    }
    .dashboard-pwa-close {
        position: absolute;
        top: 6px;
        right: 8px;
        background: transparent;
        border: 0;
        color: #94a3b8;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }
    .dashboard-pwa-close:hover { color: #ffffff; background: rgba(255,255,255,0.12); }
    .dashboard-pwa-close .material-symbols-outlined { font-size: 1.1rem; }
    .dashboard-pwa-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#3b82f6,#7c3aed); border-radius: 12px; }
    .dashboard-pwa-icon .material-symbols-outlined { font-size: 1.35rem; }
    .dashboard-pwa-copy { min-width: 0; align-self: center; padding-right: 1.5rem; }
    .dashboard-pwa-copy strong, .dashboard-pwa-copy small { display: block; }
    .dashboard-pwa-copy strong { font-size: .86rem; }
    .dashboard-pwa-copy small { margin-top: .15rem; color: #8fa0b8; font-size: .68rem; line-height: 1.35; }
    .dashboard-pwa-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .25rem; }
    .dashboard-pwa-actions button { min-height: 42px; border-radius: 9px; font: 700 .78rem/1 'Inter',sans-serif; cursor: pointer; }
    #dashboard-pwa-install { color: #fff; background: linear-gradient(135deg,#3b82f6,#7c3aed); border: 0; }
    #dashboard-pwa-later { color: #9fadc0; background: rgba(255,255,255,.055); border: 1px solid rgba(126,156,205,.15); }
    @keyframes dashboardPwaIn { from { opacity: 0; transform: translate(-50%,24px); } to { opacity: 1; transform: translate(-50%,0); } }
}

@media (max-width: 900px) {
    .mobile-header-logo { 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        position: absolute !important; 
        left: 50% !important; 
        top: 50% !important; 
        transform: translate(-50%,-50%) !important; 
        z-index: 5 !important; 
        pointer-events: auto;
    }
    .mobile-header-logo img { 
        display: block !important; 
        width: 112px !important; 
        max-width: 38vw !important; 
        height: auto !important; 
        max-height: 38px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) !important;
    }
    .dashboard-header > .header-left-toggle, .dashboard-header > .header-right-user { position: relative; z-index: 10; }
}

@media (max-width: 700px) {
    .reference-panel-heading { 
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: .85rem !important; 
        min-height: auto !important;
        position: relative !important;
        padding-bottom: .5rem !important;
    }
    .reference-panel-heading > div { min-width: 0; width: 100%; }
    .reference-panel-heading .panel-title { font-size: clamp(1.8rem, 8vw, 2.4rem) !important; line-height: 1.1; margin-bottom: .35rem !important; }
    .reference-panel-heading .panel-desc { max-width: 100% !important; font-size: .84rem !important; line-height: 1.5; margin-bottom: .25rem !important; }
    .statement-download-btn { 
        position: relative !important; 
        top: auto !important; 
        bottom: auto !important; 
        left: auto !important; 
        right: auto !important; 
        align-self: stretch !important; 
        justify-content: center !important; 
        width: 100% !important; 
        max-width: 100% !important; 
        min-height: 44px !important; 
        padding: .65rem 1rem !important; 
        white-space: nowrap !important;
        margin-left: 0 !important;
    }
    
    .transactions-card { 
        min-height: 220px !important; 
        padding: 1rem !important; 
        border-radius: 18px !important; 
        background: rgba(14, 22, 37, 0.75) !important;
        border: 1px solid rgba(126, 156, 205, 0.16) !important;
        backdrop-filter: blur(12px) !important;
    }
    .transactions-table-wrap { overflow: visible !important; border: 0 !important; background: transparent !important; }
    .transactions-table-wrap .deposits-table-list { display: block; width: 100%; min-width: 0 !important; }
    .transactions-table-wrap thead { display: none; }
    .transactions-table-wrap tbody { display: grid; gap: .85rem; width: 100%; }
    .transactions-table-wrap tr { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: .75rem 1rem; 
        width: 100%; 
        padding: 1rem; 
        background: linear-gradient(135deg, rgba(16,26,46,0.92), rgba(10,16,30,0.96)); 
        border: 1px solid rgba(126,156,205,0.18); 
        border-radius: 14px; 
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
        position: relative;
    }
    .transactions-table-wrap td { display: flex; min-width: 0; padding: 0 !important; border: 0 !important; flex-direction: column; align-items: flex-start; gap: .25rem; overflow-wrap: anywhere; }
    .transactions-table-wrap td::before { content: attr(data-label); color: #64748b; font: 700 .62rem/1.2 'Inter',sans-serif; letter-spacing: .05em; text-transform: uppercase; }
    .transactions-table-wrap td:nth-child(4) { grid-column: 1 / -1; padding-top: .75rem !important; border-top: 1px solid rgba(126,156,205,0.12) !important; }
    .transactions-table-wrap td:nth-child(5) { position: absolute; top: 1rem; right: 1rem; align-self: start; justify-self: end; }
    .transactions-table-wrap td:nth-child(5)::before { content: none; }
    .transactions-table-wrap td:nth-child(2) { padding-right: 5rem !important; }
    .transactions-table-wrap .deposit-tx-hash { white-space: normal !important; width: 100%; }
    .transactions-table-wrap .deposit-tx-hash > span { max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .transactions-empty-state { min-height: 180px; padding: 1.75rem 1rem; }
}

@media (max-width: 387px) {
    .mobile-header-logo img { width: 105px !important; max-width: 40vw !important; }
    .transactions-table-wrap tr { padding: .85rem; gap: .7rem .75rem; }
}

/* In-app notification center and investment-cycle visibility */
.header-notification-btn { position:relative; width:42px; height:42px; display:grid; place-items:center; flex:0 0 42px; color:#9db1cd; background:rgba(12,20,35,.8); border:1px solid rgba(126,156,205,.22); border-radius:12px; cursor:pointer; }
.header-notification-btn b { position:absolute; top:-5px; right:-5px; min-width:18px; height:18px; padding:0 4px; display:grid; place-items:center; color:#fff; background:#ef4444; border:2px solid #111622; border-radius:99px; font-size:.58rem; }
.notification-inbox-card { margin-bottom:1rem; padding:1rem; background:linear-gradient(145deg,rgba(14,24,43,.96),rgba(8,16,30,.98)); border:1px solid rgba(126,156,205,.2); border-radius:16px; }
.notification-inbox-heading { display:flex; align-items:center; justify-content:space-between; gap:0.75rem; margin-bottom:.8rem; }
.notification-inbox-heading h2 { margin:0;color:#f5f8fd;font-size:1rem; }
.notification-inbox-heading p { margin:.2rem 0 0;color:#8391a6;font-size:.72rem; }
.notification-inbox-heading button { color:#60a5fa !important; background:rgba(59,130,246,0.15) !important; border:1px solid rgba(59,130,246,0.3) !important; border-radius:6px !important; padding:0.4rem 0.75rem !important; font-size:.75rem !important; font-weight:700 !important; cursor:pointer !important; white-space:nowrap !important; flex-shrink:0 !important; transition:all 0.2s ease !important; }
.notification-inbox-heading button:hover { background:rgba(59,130,246,0.28) !important; color:#fff !important; }
.notification-inbox-list { display:grid; gap:.55rem; max-height:420px; overflow:auto; }
.notification-inbox-item { width:100%; padding:.8rem; display:grid; grid-template-columns:38px minmax(0,1fr); gap:.7rem; text-align:left; color:#cbd5e1; background:rgba(3,9,18,.35); border:1px solid rgba(126,156,205,.1); border-radius:11px; cursor:pointer; }
.notification-inbox-item.unread { background:rgba(37,99,235,.1); border-color:rgba(77,127,222,.3); }
.notification-category-icon { width:38px;height:38px;display:grid!important;place-items:center;color:#75a3f7;background:rgba(43,83,157,.24);border-radius:10px; }
.notification-inbox-item strong,.notification-inbox-item small,.notification-inbox-item time { display:block; }
.notification-inbox-item strong { color:#edf3fb;font-size:.8rem; }.notification-inbox-item small{margin-top:.2rem;color:#8d9bb0;font-size:.7rem;line-height:1.4}.notification-inbox-item time{margin-top:.3rem;color:#59677c;font-size:.62rem}
.notification-inbox-empty { padding:2rem 1rem;text-align:center;color:#718096 }.notification-inbox-empty span,.notification-inbox-empty strong,.notification-inbox-empty small{display:block;margin-inline:auto}.notification-inbox-empty strong{margin-top:.4rem;color:#dce6f5}.notification-inbox-empty small{margin-top:.25rem;font-size:.7rem}
.investment-cycle { min-width:130px;color:#8fa0b8;font-size:.7rem }.investment-cycle b{color:#68a0ff}.investment-cycle i{display:block;height:6px;margin-top:.4rem;overflow:hidden;background:#1e293b;border-radius:99px}.investment-cycle em{display:block;height:100%;background:linear-gradient(90deg,#3b82f6,#22c55e);border-radius:99px}
.statement-download-btn { position:relative; z-index:2; margin-left:auto; padding:.65rem .85rem; display:inline-flex; align-items:center; gap:.4rem; color:#dce9ff; background:rgba(30,64,125,.6); border:1px solid rgba(95,140,225,.4); border-radius:10px; font-weight:700; cursor:pointer }.statement-download-btn .material-symbols-outlined{font-size:1.05rem}
.audit-toolbar{display:flex;gap:.7rem;margin-bottom:1rem}.audit-toolbar input{flex:1}.audit-toolbar button{padding:.65rem .9rem;display:flex;align-items:center;gap:.35rem;color:#dce9ff;background:#17243a;border:1px solid #2b3c58;border-radius:10px}.audit-log-list{display:grid;gap:.65rem}.audit-log-item{padding:.9rem;display:grid;grid-template-columns:38px minmax(0,1fr);gap:.75rem;background:rgba(12,20,35,.75);border:1px solid rgba(126,156,205,.16);border-radius:12px}.audit-log-item>.material-symbols-outlined{width:38px;height:38px;display:grid;place-items:center;color:#79a6fa;background:rgba(45,81,151,.25);border-radius:10px}.audit-log-item strong,.audit-log-item small,.audit-log-item time{display:block}.audit-log-item strong{color:#eef4fd;font-size:.82rem}.audit-log-item small{margin-top:.25rem;color:#91a0b5;font-size:.72rem}.audit-log-item time{margin-top:.35rem;color:#59677c;font-size:.64rem}
.security-summary-card{margin-bottom:1rem;padding:1rem;display:grid;grid-template-columns:44px minmax(0,1fr);gap:.8rem;align-items:center;color:#b9c9df;background:rgba(16,185,129,.07);border:1px solid rgba(16,185,129,.22);border-radius:14px}.security-summary-card>.material-symbols-outlined{width:44px;height:44px;display:grid;place-items:center;color:#42cf8b;background:rgba(16,185,129,.12);border-radius:12px}.security-summary-card strong,.security-summary-card small{display:block}.security-summary-card strong{color:#eaf7f0}.security-summary-card small{margin-top:.25rem;color:#88a397;font-size:.72rem;line-height:1.4}

@media (max-width:600px) {
    .header-notification-btn { width:38px;height:38px;flex-basis:38px;border-radius:10px; }
    .notification-inbox-heading { align-items:flex-start; }.notification-inbox-heading p{max-width:190px}.notification-inbox-card{padding:.8rem;border-radius:14px}.notification-inbox-item{padding:.7rem;grid-template-columns:34px minmax(0,1fr)}.notification-category-icon{width:34px;height:34px}
    .audit-toolbar{flex-direction:column}.audit-toolbar button{justify-content:center;min-height:44px}.audit-log-item{padding:.75rem;grid-template-columns:34px minmax(0,1fr)}
}
@media (max-width:430px) { .user-dashboard-body .user-text-details { display:none !important; } .user-dashboard-body .user-card-info { max-width:48px !important; } }

/* Deposit history: compact, complete and swipe-free on phones */
.recent-deposits-empty-row td { padding: 2.25rem 1rem !important; text-align: center !important; color: #718096 !important; }
.recent-deposits-empty-row span, .recent-deposits-empty-row strong, .recent-deposits-empty-row small { display: block; margin-inline: auto; }
.recent-deposits-empty-row span { margin-bottom: .55rem; color: #5685d6; font-size: 1.9rem; }
.recent-deposits-empty-row strong { color: #dce6f5; font-size: .92rem; }
.recent-deposits-empty-row small { margin-top: .3rem; font-size: .72rem; }

@media (max-width: 700px) {
    .recent-deposits-card { padding: .9rem !important; border-radius: 16px !important; }
    .recent-deposits-heading { margin-bottom: .8rem !important; }
    .recent-deposits-heading .recent-deposits-title { font-size: 1.05rem !important; }
    .recent-deposits-heading button { min-height: 42px; padding: .55rem .75rem !important; border-radius: 9px !important; }
    .recent-deposits-table-wrap { overflow: visible !important; border: 0 !important; background: transparent !important; }
    .recent-deposits-table-wrap .deposits-table-list { display: block; width: 100%; min-width: 0 !important; }
    .recent-deposits-table-wrap thead { display: none; }
    .recent-deposits-table-wrap tbody { display: grid; gap: .7rem; width: 100%; }
    .recent-deposits-table-wrap tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; width: 100%; padding: .9rem; background: rgba(5,12,24,.72); border: 1px solid rgba(126,156,205,.16) !important; border-radius: 13px; }
    .recent-deposits-table-wrap td { display: flex; min-width: 0; padding: 0 !important; border: 0 !important; flex-direction: column; align-items: flex-start; gap: .22rem; }
    .recent-deposits-table-wrap td::before { content: attr(data-label); color: #6f7e94; font: 650 .62rem/1.2 'Inter',sans-serif; letter-spacing: .045em; text-transform: uppercase; }
    .recent-deposits-table-wrap td:nth-child(3) { grid-column: 1 / -1; padding-top: .65rem !important; border-top: 1px solid rgba(126,156,205,.11) !important; }
    .recent-deposits-table-wrap td:nth-child(4) { position: absolute; top: .8rem; right: .8rem; }
    .recent-deposits-table-wrap td:nth-child(4)::before { content: none; }
    .recent-deposits-table-wrap td:nth-child(2) { padding-right: 5rem !important; }
    .recent-deposits-table-wrap .deposit-tx-hash { width: 100%; white-space: normal !important; }
    .recent-deposits-table-wrap .deposit-tx-hash > span { max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .recent-deposits-table-wrap .recent-deposits-empty-row { display: block; padding: 0; }
    .recent-deposits-table-wrap .recent-deposits-empty-row td { display: block; width: 100%; }
    .recent-deposits-table-wrap .recent-deposits-empty-row td::before { content: none; }
}

@media (max-width: 380px) {
    .dashboard-main-content { padding-inline: .6rem !important; }
    .user-card-info { max-width: 118px !important; }
    .notification-setting { padding-inline: .75rem !important; }
}

/* ── Compact dashboard navigation and iPhone-safe spacing ── */
.sidebar-logout-item { margin-top: .35rem !important; padding-top: .35rem; border-top: 1px solid rgba(148,163,184,.12); }
.sidebar-logout-item .sidebar-item-link.logout {
    margin-top: 0 !important;
    color: #fca5a5 !important;
    background: rgba(239,68,68,.06);
    border: 1px solid rgba(248,113,113,.16);
}
.sidebar-logout-item .sidebar-item-link.logout:hover,
.sidebar-logout-item .sidebar-item-link.logout:focus-visible {
    color: #fff !important;
    background: rgba(220,38,38,.22);
    border-color: rgba(248,113,113,.42);
}
.dashboard-body { width: 100%; max-width: 100%; overflow-x: clip !important; }
.dashboard-wrapper, .dashboard-main-content, .dashboard-panel-view { min-width: 0; box-sizing: border-box; }

@media (max-width: 900px) {
    /* The centered header already contains the brand on mobile; removing the
       duplicate drawer logo also removes the empty block above navigation. */
    .dashboard-sidebar .sidebar-logo { display: none !important; }
    .dashboard-sidebar .sidebar-product-label { padding: max(.85rem, env(safe-area-inset-top)) 1rem .45rem !important; margin: 0 !important; }
    .dashboard-sidebar .sidebar-menu { padding: 0 .65rem .7rem !important; gap: .15rem !important; }
    .dashboard-sidebar .sidebar-system-card { margin: .55rem .65rem calc(.65rem + env(safe-area-inset-bottom)) !important; }
    .dashboard-main-content { padding-top: 1rem !important; }
    .dashboard-panel-view { margin: 0 !important; }
}

@media (max-width: 430px) {
    .dashboard-header { padding-left: max(.55rem, env(safe-area-inset-left)) !important; padding-right: max(.55rem, env(safe-area-inset-right)) !important; }
    .dashboard-main-content { padding-left: max(.65rem, env(safe-area-inset-left)) !important; padding-right: max(.65rem, env(safe-area-inset-right)) !important; }
    .dashboard-footer { padding-left: max(.75rem, env(safe-area-inset-left)) !important; padding-right: max(.75rem, env(safe-area-inset-right)) !important; }
}

/* Admin user management: readable card list and complete actions on phones */
@media (max-width: 700px) {
    #panel-users .panel-title { font-size: 1.45rem !important; line-height: 1.15; }
    #panel-users .panel-desc { max-width: 32rem; line-height: 1.5; }
    .admin-users-add-row,
    .admin-users-add-btn { width: 100%; }
    .admin-users-add-btn { min-height: 48px; justify-content: center; }
    #panel-users .db-search-filters-bar { display: grid !important; grid-template-columns: minmax(0,1fr); gap: .75rem !important; padding: .8rem !important; }
    .admin-users-search { width: 100%; min-width: 0 !important; min-height: 48px; box-sizing: border-box; }
    .admin-users-search input { min-width: 0; font-size: 16px !important; text-overflow: ellipsis; }
    .admin-users-filter-controls { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: .55rem !important; }
    .admin-users-filter-controls > div { min-width: 0; }
    .admin-users-filter-controls select { width: 100%; min-width: 0; min-height: 44px; padding-inline: .55rem !important; }
    .admin-users-card { padding: .8rem !important; border-radius: 16px !important; overflow: hidden; }
    .admin-users-card .recent-deposits-title { padding-inline: .15rem; font-size: 1.05rem !important; }
    .admin-users-table-wrap { overflow: visible !important; border: 0 !important; background: transparent !important; }
    .admin-users-table { display: block; width: 100%; min-width: 0 !important; }
    .admin-users-table thead { display: none; }
    .admin-users-table tbody { display: grid; width: 100%; gap: .8rem; }
    .admin-users-table .admin-user-row {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: .85rem 1rem;
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        background: linear-gradient(145deg,rgba(12,18,31,.96),rgba(15,25,41,.94));
        border: 1px solid rgba(126,156,205,.18) !important;
        border-radius: 14px;
        overflow: hidden;
    }
    .admin-users-table .admin-user-row > td { display: flex; min-width: 0; padding: 0 !important; border: 0 !important; flex-direction: column; align-items: flex-start; gap: .35rem; }
    .admin-users-table .admin-user-row > td::before { content: attr(data-label); color: #7f8da3; font: 700 .64rem/1.2 'Inter',sans-serif; letter-spacing: .055em; text-transform: uppercase; }
    .admin-users-table .admin-user-identity { grid-column: 1 / -1; padding-bottom: .85rem !important; border-bottom: 1px solid rgba(126,156,205,.14) !important; }
    .admin-users-table .admin-user-identity::before { display: none; }
    .admin-users-table .admin-user-identity > div { width: 100%; min-width: 0; }
    .admin-users-table .admin-user-identity > div > div:last-child { min-width: 0; overflow: hidden; }
    .admin-users-table .admin-user-identity > div > div:last-child > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-users-table .admin-user-actions-cell { grid-column: 1 / -1; padding-top: .85rem !important; border-top: 1px solid rgba(126,156,205,.14) !important; }
    .admin-users-table .admin-user-actions { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: .5rem !important; }
    .admin-users-table .admin-user-action { width: 100%; min-width: 0; min-height: 44px; gap: .4rem; padding: .55rem .45rem !important; font-weight: 700; }
    .admin-users-table .admin-user-action::after { content: attr(data-action-label); font-size: .68rem; white-space: nowrap; }
    .admin-users-table .admin-user-action:last-child { grid-column: 1 / -1; }
}

@media (max-width: 370px) {
    .admin-users-filter-controls { grid-template-columns: minmax(0,1fr); }
    .admin-users-table .admin-user-row { padding: .8rem; gap: .75rem; }
}

/* Final small-screen hardening across the full user/admin application */
img, svg, video, canvas { max-width:100%; }
.dashboard-panel-view, .recent-deposits-section, .deposit-step-box, .metric-card-box { min-width:0; }
.admin-support-layout { min-width:0; }

@media (max-width:700px) {
    .admin-support-layout { height:auto !important; min-height:620px; grid-template-columns:1fr !important; grid-template-rows:auto minmax(430px,62vh); gap:0 !important; overflow:hidden; }
    .admin-support-users { max-height:190px; border-right:0 !important; border-bottom:1px solid #1e2538; }
    .admin-support-chat { min-height:430px; height:62vh !important; }
    #admin-chat-users-list { max-height:145px; }
    #admin-chat-messages-container { padding:.85rem !important; }
    #admin-chat-header { padding:.7rem .8rem !important; gap:.5rem; }
    #admin-chat-user-email { max-width:190px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    #admin-chat-status-toggle-container { flex-wrap:wrap; justify-content:flex-end; }
    .admin-dashboard-body .table-responsive-box { max-width:100%; overflow-x:auto !important; }
    .admin-dashboard-body .deposits-table-list { min-width:680px; }
    .admin-dashboard-body .dashboard-footer, .user-dashboard-body .dashboard-footer { text-align:center; justify-content:center; padding-block:.7rem; line-height:1.45; }
    .modal-overlay { padding:.65rem !important; }
    .modal-content-box, .modal-content { width:100% !important; max-width:calc(100vw - 1.3rem) !important; max-height:calc(100dvh - 1.3rem); overflow-y:auto; padding:1rem !important; border-radius:14px !important; }
    .modal-footer { position:sticky; bottom:0; padding-top:.75rem; background:inherit; }
}

/* Support desk mobile layout: stacked threads and a usable full-width composer */
.admin-support-layout { grid-template-columns:320px minmax(0,1fr) !important; gap:0 !important; }
.admin-conversation-toolbar { display:grid; gap:.65rem; padding:.9rem; border-bottom:1px solid #1e2538; }
.admin-conversation-title { color:#f8fafc; font-size:1rem; font-weight:750; }
.admin-conversation-search { display:flex; align-items:center; gap:.45rem; min-height:40px; padding:0 .65rem; background:#0b0e14; border:1px solid #263249; border-radius:9px; color:#718096; }
.admin-conversation-search .material-symbols-outlined { font-size:1rem; }
.admin-conversation-search input { width:100%; min-width:0; padding:.55rem 0; background:transparent; border:0; outline:0; color:#f1f5f9; font-size:.76rem; }
.admin-dashboard-body .admin-conversation-search input { min-height:0 !important; background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
.admin-conversation-search:focus-within { border-color:rgba(109,156,232,.62); box-shadow:0 0 0 3px rgba(109,156,232,.13); }
.admin-conversation-filters { display:grid; grid-template-columns:repeat(3,1fr); gap:.35rem; }
.admin-conversation-filters button { min-height:34px; padding:.35rem; background:#111827; border:1px solid #263249; border-radius:7px; color:#94a3b8; cursor:pointer; font-size:.68rem; font-weight:700; }
.admin-conversation-filters button.active { background:rgba(59,130,246,.16); border-color:rgba(59,130,246,.45); color:#7fb0ff; }
#admin-chat-users-list { min-height:0; }
.admin-conversation-item { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:.65rem; width:100%; padding:.8rem .85rem; background:transparent; border:0; border-bottom:1px solid #1e2538; color:inherit; cursor:pointer; text-align:left; }
.admin-conversation-item:hover, .admin-conversation-item.selected { background:#0b0e14; }
.admin-conversation-avatar { display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,#3b82f6,#1d4ed8); color:#fff; font-size:.72rem; font-weight:800; }
.admin-conversation-details { display:flex; min-width:0; flex-direction:column; gap:.18rem; }
.admin-conversation-name, .admin-conversation-email { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-conversation-name { color:#f8fafc; font-size:.8rem; font-weight:700; }
.admin-conversation-email { color:#718096; font-size:.68rem; }
.admin-conversation-status { padding:.18rem .48rem; border-radius:99px; font-size:.62rem; font-weight:750; }
.admin-conversation-status.open { color:#10b981; background:rgba(16,185,129,.13); }
.admin-conversation-status.closed { color:#94a3b8; background:rgba(100,116,139,.14); }
.admin-conversation-pagination { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:.45rem .7rem; border-top:1px solid #1e2538; color:#718096; font-size:.68rem; }
.admin-conversation-pagination button { display:flex; align-items:center; justify-content:center; width:32px; height:32px; background:#111827; border:1px solid #263249; border-radius:7px; color:#cbd5e1; cursor:pointer; }
.admin-conversation-pagination button:disabled { opacity:.35; cursor:not-allowed; }
.admin-conversation-pagination .material-symbols-outlined { font-size:1rem; }
.admin-conversation-empty { display:flex; min-height:180px; padding:1rem; flex-direction:column; align-items:center; justify-content:center; gap:.3rem; color:#718096; text-align:center; }
.admin-conversation-empty .material-symbols-outlined { margin-bottom:.3rem; font-size:2rem; }
.admin-conversation-empty strong { color:#cbd5e1; font-size:.78rem; }
.admin-conversation-empty small { font-size:.68rem; }
.admin-chat-back-btn { display:none; }
.admin-chat-client-heading { min-width:0; }

.withdrawal-status-card { margin-top:1rem; padding:1rem; background:#111622; border:1px solid #1e2538; border-radius:14px; }
.withdrawal-status-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.85rem; }
.withdrawal-status-heading h2 { margin:0 0 .2rem; color:#f8fafc; font-size:1rem; }
.withdrawal-status-heading p { margin:0; color:#718096; font-size:.72rem; }
.withdrawal-status-heading > .material-symbols-outlined { color:#60a5fa; }
.withdrawal-status-list { display:grid; gap:.6rem; }
.withdrawal-status-item { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:.65rem; padding:.75rem; background:#0b0e14; border:1px solid #1e2538; border-radius:10px; }
.withdrawal-status-icon { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; color:#60a5fa; background:rgba(59,130,246,.12); font-size:1.15rem; }
.withdrawal-status-details { display:flex; min-width:0; flex-direction:column; gap:.15rem; }
.withdrawal-status-details strong { color:#f8fafc; font-size:.82rem; }
.withdrawal-status-details small { overflow:hidden; color:#718096; font-size:.65rem; text-overflow:ellipsis; white-space:nowrap; }
.withdrawal-status-badge { max-width:175px; padding:.25rem .55rem; border-radius:99px; font-size:.62rem; font-weight:750; text-align:center; }
.withdrawal-status-badge.pending { color:#fbbf24; background:rgba(245,158,11,.13); }
.withdrawal-status-badge.confirmed { color:#10b981; background:rgba(16,185,129,.13); }
.withdrawal-status-badge.rejected { color:#fb7185; background:rgba(244,63,94,.13); }
.withdrawal-status-empty { padding:1.25rem; color:#718096; font-size:.75rem; text-align:center; }
.withdrawal-view-all { display:flex; justify-content:center; margin-top:.8rem; padding:.7rem; color:#60a5fa; border:1px solid #1e2538; border-radius:9px; font-size:.72rem; font-weight:700; text-decoration:none; }
.withdrawal-view-all:hover { color:#93c5fd; background:rgba(59,130,246,.08); }

@media (max-width: 700px) {
    #panel-tickets { min-width:0; padding-bottom:74px; overflow:visible; }
    #panel-tickets > .panel-title { font-size:1.25rem !important; line-height:1.2 !important; }
    #panel-tickets > .panel-desc { margin-bottom:.9rem !important; font-size:.78rem !important; line-height:1.45 !important; }
    #panel-tickets .admin-support-layout { display:block !important; width:100% !important; height:min(70dvh,620px) !important; min-height:500px !important; max-height:none !important; border-radius:14px !important; overflow:hidden !important; }
    #panel-tickets .admin-support-users { display:flex !important; width:100%; height:100%; max-height:none !important; border:0 !important; }
    #panel-tickets .admin-conversation-toolbar { flex:0 0 auto; }
    #panel-tickets #admin-chat-users-list { display:block; flex:1 1 auto; max-height:none !important; padding:0 !important; overflow-x:hidden; overflow-y:auto; }
    #panel-tickets .admin-conversation-pagination { flex:0 0 auto; }
    #panel-tickets .admin-support-chat { display:none !important; width:100%; height:100% !important; min-height:0 !important; }
    #panel-tickets .admin-support-layout.mobile-chat-open .admin-support-users { display:none !important; }
    #panel-tickets .admin-support-layout.mobile-chat-open .admin-support-chat { display:flex !important; }
    #panel-tickets .admin-chat-back-btn { display:flex; flex:0 0 36px; align-items:center; justify-content:center; width:36px; height:36px; margin-right:.5rem; background:transparent; border:0; border-radius:50%; color:#cbd5e1; cursor:pointer; }
    #panel-tickets #admin-chat-header { flex:0 0 auto; align-items:flex-start !important; padding:.72rem .8rem !important; }
    #panel-tickets #admin-chat-header .admin-chat-client-heading { min-width:0; flex:1; }
    #panel-tickets #admin-chat-user-name, #panel-tickets #admin-chat-user-email { display:block; max-width:100% !important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    #panel-tickets #admin-chat-status-toggle-container { flex:0 0 auto; flex-direction:column; align-items:flex-end !important; gap:.3rem !important; }
    #panel-tickets #admin-chat-toggle-btn { padding:.32rem .5rem !important; font-size:.66rem !important; }
    #panel-tickets #admin-chat-messages-container { min-height:0; padding:.8rem !important; overscroll-behavior:contain; }
    #panel-tickets #admin-chat-messages-container .chat-bubble { max-width:88% !important; padding:.65rem .75rem !important; font-size:.8rem !important; }
    #panel-tickets #admin-chat-input-box { flex:0 0 auto; min-width:0; }
    #panel-tickets #admin-chat-input-box .chat-input-area { display:grid !important; grid-template-columns:40px minmax(0,1fr) 42px; gap:.4rem !important; padding:.6rem !important; }
    #panel-tickets #admin-chat-message-input { width:100% !important; min-width:0 !important; margin:0 !important; padding:.65rem .7rem !important; }
    #panel-tickets #admin-chat-input-box .chat-send-btn { width:42px !important; min-width:42px !important; height:42px !important; }

    #panel-support { min-width:0; padding-bottom:74px; }
    #panel-support .panel-title { font-size:1.3rem !important; }
    #panel-support .panel-desc { margin-bottom:.9rem !important; font-size:.78rem !important; }
    #panel-support .chat-container { height:min(68dvh,590px) !important; min-height:450px; margin-bottom:0 !important; border-radius:14px !important; }
    #panel-support .chat-header { padding:.72rem .8rem !important; }
    #panel-support .chat-header-title { font-size:.86rem !important; }
    #panel-support .chat-status-text { font-size:.66rem !important; }
    #panel-support .chat-messages { min-height:0 !important; max-height:none !important; padding:.8rem !important; overscroll-behavior:contain; }
    #panel-support .chat-bubble { max-width:88% !important; padding:.65rem .75rem !important; font-size:.8rem !important; }
    #panel-support .chat-input-area { display:grid !important; grid-template-columns:40px minmax(0,1fr) 42px; gap:.4rem !important; padding:.6rem !important; }
    #panel-support .chat-attach-btn, #panel-support .chat-send-btn { width:40px !important; min-width:40px !important; height:40px !important; }
    #panel-support #chat-message-input { width:100% !important; min-width:0 !important; padding:.62rem .68rem !important; margin:0 !important; }
    #panel-support #chat-image-preview-box, #panel-tickets #admin-chat-image-preview-box { min-width:0; padding:.45rem .65rem !important; }
    .withdrawal-status-card { padding:.8rem; }
    .withdrawal-status-item { grid-template-columns:36px minmax(0,1fr); }
    .withdrawal-status-badge { grid-column:1 / -1; width:100%; max-width:none; box-sizing:border-box; border-radius:7px; }
}

@media (max-width:430px) {
    html, body { max-width:100%; overflow-x:hidden; }
    .admin-dashboard-body .dashboard-metrics-row { grid-template-columns:1fr !important; }
    .admin-dashboard-body .metric-card-box { min-height:96px; }
    .db-search-filters-bar { padding:.75rem !important; gap:.65rem !important; }
    .db-search-filters-bar > div, .db-search-filters-bar select { width:100% !important; min-width:0 !important; }
    .dashboard-footer p { margin:0; font-size:.65rem; }
    .profile-dropdown-menu { right:0 !important; left:auto !important; }
    .panel-title { overflow-wrap:anywhere; }
}

/* Nova 7.0 — calm, layered workspace inspired by modern editorial SaaS UI */
:root {
    --nova-canvas: #121923;
    --nova-canvas-soft: #17212e;
    --nova-surface: #1c2735;
    --nova-surface-raised: #222f3f;
    --nova-surface-soft: #263547;
    --nova-border: rgba(173, 190, 211, .14);
    --nova-border-highlight: rgba(188, 204, 224, .24);
    --nova-copy: #f3f0e9;
    --nova-muted: #a7b0bd;
    --nova-gold: #d6a85f;
    --nova-blue: #6d9ce8;
    --nova-green: #51bd91;
}

html, body,
.dashboard-body, .admin-dashboard-body {
    color: var(--nova-copy) !important;
    background:
        radial-gradient(circle at 82% 4%, rgba(80,116,160,.18), transparent 30rem),
        radial-gradient(circle at 18% 90%, rgba(174,126,76,.09), transparent 32rem),
        linear-gradient(145deg, #151e29 0%, #111923 52%, #17212d 100%) fixed !important;
}

.dashboard-wrapper {
    background: transparent !important;
}

.dashboard-sidebar {
    background: linear-gradient(180deg, rgba(29,40,54,.98), rgba(22,31,43,.99)) !important;
    border-right: 1px solid var(--nova-border) !important;
    box-shadow: 12px 0 40px rgba(4,10,18,.18) !important;
}

.sidebar-product-label { color: #d8cfbf !important; letter-spacing: .075em !important; }
.sidebar-item-link { color: #aab5c4 !important; border: 1px solid transparent; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.sidebar-item-link:hover { color: #eef1f5 !important; background: rgba(255,255,255,.055) !important; border-color: rgba(255,255,255,.055); transform: translateX(2px); }
.sidebar-item-link.active { color: #f5ead8 !important; background: linear-gradient(90deg, rgba(196,145,75,.2), rgba(109,156,232,.11)) !important; border-color: rgba(212,169,101,.18); border-left: 3px solid #d6a85f !important; box-shadow: inset 0 1px rgba(255,255,255,.035); }
.sidebar-item-link.active .sidebar-icon { color: #e0b56d !important; }
.sidebar-system-card { background: rgba(10,17,26,.28) !important; border-color: var(--nova-border) !important; }

.dashboard-header {
    background: rgba(28,39,53,.82) !important;
    border-color: var(--nova-border) !important;
    box-shadow: 0 8px 28px rgba(4,10,18,.12) !important;
    backdrop-filter: blur(20px) saturate(120%) !important;
}
.dashboard-header-context strong { color: #f2eee7 !important; }
.header-notification-btn, .user-card-info {
    background: rgba(255,255,255,.035) !important;
    border-color: var(--nova-border-highlight) !important;
}
.user-avatar-circle { background: linear-gradient(145deg,#779fdf,#4f78bb) !important; box-shadow: 0 5px 16px rgba(49,93,164,.25); }
.profile-dropdown-menu { background: #263445 !important; border-color: var(--nova-border-highlight) !important; border-radius: 13px !important; box-shadow: 0 20px 45px rgba(3,8,14,.38) !important; }

.dashboard-main-content { width: 100%; }
.panel-title, .profile-welcome-title { color: #f4f1eb !important; letter-spacing: -.035em !important; }
.panel-desc, .profile-account-line { color: #aab4c1 !important; }

.metric-card-box,
.deposit-step-box,
.recent-deposits-section,
.smtp-settings-card,
.notification-inbox-card,
.referral-share-card,
.security-summary-card,
.admin-support-layout,
.chat-container {
    background: linear-gradient(145deg, rgba(35,48,64,.94), rgba(27,38,52,.96)) !important;
    border: 1px solid var(--nova-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 38px rgba(4,10,18,.15), inset 0 1px rgba(255,255,255,.035) !important;
}

.metric-card-box { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.metric-card-box:hover { transform: translateY(-2px); border-color: var(--nova-border-highlight) !important; box-shadow: 0 20px 44px rgba(4,10,18,.22) !important; }
.metric-card-label { color: #9faaba !important; }
.metric-card-value-txt { color: #f5f1e9 !important; }
.metric-card-icon-box { border: 1px solid rgba(255,255,255,.06); border-radius: 12px !important; }

.profile-balance-card {
    background:
        radial-gradient(circle at 92% 5%, rgba(109,156,232,.18), transparent 14rem),
        linear-gradient(145deg, #29394b, #1d2a39) !important;
    border: 1px solid rgba(180,198,220,.2) !important;
    border-radius: 22px !important;
    box-shadow: 0 22px 54px rgba(4,10,18,.24), inset 0 1px rgba(255,255,255,.05) !important;
}
.balance-eyebrow, .stat-label, .balance-secondary-grid span, .referral-card-label { color: #acb6c4 !important; }
.balance-value { color: #faf6ee !important; text-shadow: 0 2px 16px rgba(255,255,255,.06); }
.balance-wallet-icon { background: rgba(109,156,232,.15) !important; border-color: rgba(127,169,234,.24) !important; }
.balance-stats-grid, .balance-secondary-grid { border-color: var(--nova-border) !important; }
.dashboard-refresh-btn, .referral-share-btn, .statement-download-btn, .section-link-btn {
    color: #edf3fc !important;
    background: rgba(96,137,201,.18) !important;
    border-color: rgba(119,159,220,.3) !important;
    border-radius: 11px !important;
}
.dashboard-refresh-btn:hover, .referral-share-btn:hover, .statement-download-btn:hover { background: rgba(104,149,218,.28) !important; }

.table-responsive-box { background: rgba(12,20,30,.22) !important; border-color: var(--nova-border) !important; border-radius: 14px !important; }
.deposits-table-list th { color: #aeb7c3 !important; background: rgba(255,255,255,.035) !important; border-color: var(--nova-border) !important; }
.deposits-table-list td { color: #e6e9ed !important; border-color: rgba(173,190,211,.1) !important; }
.deposits-table-list tbody tr:hover { background: rgba(255,255,255,.025) !important; }

.form-input-db, .modal-text-input, .chat-input,
.admin-dashboard-body input, .admin-dashboard-body select, .admin-dashboard-body textarea,
.user-dashboard-body input, .user-dashboard-body select, .user-dashboard-body textarea {
    color: #eef1f5 !important;
    background: rgba(11,18,27,.34) !important;
    border-color: rgba(173,190,211,.2) !important;
    border-radius: 11px !important;
}
.form-input-db:focus, .modal-text-input:focus, .chat-input:focus,
.admin-dashboard-body input:focus, .admin-dashboard-body select:focus, .admin-dashboard-body textarea:focus,
.user-dashboard-body input:focus, .user-dashboard-body select:focus, .user-dashboard-body textarea:focus {
    border-color: rgba(109,156,232,.62) !important;
    box-shadow: 0 0 0 3px rgba(109,156,232,.13) !important;
}
.form-btn-db, .smtp-test-btn, .chat-send-btn {
    border-radius: 11px !important;
    box-shadow: 0 8px 22px rgba(30,75,145,.18);
}
.modal-overlay { background: rgba(8,13,20,.64) !important; backdrop-filter: blur(8px); }
.modal-overlay:target { display: flex !important; align-items: center; justify-content: center; opacity: 1 !important; visibility: visible !important; z-index: 999999 !important; }
.modal-content-box, .modal-content { background: linear-gradient(145deg,#263445,#1c2837) !important; border-color: var(--nova-border-highlight) !important; box-shadow: 0 28px 70px rgba(3,8,14,.48) !important; }
.dashboard-footer { color: #7f8d9f !important; background: rgba(24,34,47,.58) !important; border-color: var(--nova-border) !important; }

@media (min-width: 901px) {
    .dashboard-main-content { padding-top: 2rem !important; }
    .dashboard-panel-view { animation: novaPanelIn .3s ease both; }
    @keyframes novaPanelIn { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
    .dashboard-sidebar { box-shadow: 18px 0 55px rgba(2,7,12,.42) !important; }
    .sidebar-overlay { background: rgba(8,13,20,.6) !important; backdrop-filter: blur(7px) !important; }
}

@media (max-width: 600px) {
    html, body, .dashboard-body, .admin-dashboard-body {
        background: linear-gradient(155deg,#17212d 0%,#111923 52%,#182330 100%) fixed !important;
    }
    .dashboard-header { background: rgba(27,38,52,.91) !important; }
    .dashboard-main-content { padding: 1.1rem .8rem 2.25rem !important; }
    .profile-welcome-title { font-size: clamp(1.42rem,7vw,1.75rem) !important; line-height: 1.15; }
    .profile-balance-card { padding: 1.15rem !important; border-radius: 18px !important; }
    .balance-card-top { display: flex !important; align-items: flex-start !important; justify-content: space-between !important; }
    .balance-value { font-size: clamp(1.65rem,7vw,2.15rem) !important; font-weight: 800 !important; margin-top: .15rem !important; }
    .balance-wallet-icon { flex: 0 0 44px !important; width: 44px !important; height: 44px !important; border-radius: 12px !important; display: grid !important; place-items: center !important; }
    .balance-wallet-icon .material-symbols-outlined { font-size: 22px !important; }
    .balance-stats-grid { gap: .5rem !important; }
    .balance-stat { min-width: 0; }
    .stat-label { font-size: .67rem !important; }
    .stat-value { font-size: .88rem !important; overflow-wrap: anywhere; }
    .section-link-btn { cursor: pointer !important; pointer-events: auto !important; position: relative !important; z-index: 10 !important; display: inline-flex !important; align-items: center !important; gap: .35rem !important; padding: .45rem .85rem !important; }
    .metric-card-box, .deposit-step-box, .recent-deposits-section, .smtp-settings-card, .notification-inbox-card, .referral-share-card { border-radius: 15px !important; box-shadow: 0 12px 28px rgba(4,10,18,.14) !important; }
    .transactions-table-wrap tr, .recent-deposits-table-wrap tr { background: rgba(13,22,33,.34) !important; border-color: var(--nova-border) !important; }
}

/* Public pages — Help and Investment catalogue */
.landing-body, .investments-body {
    color: var(--nova-copy) !important;
    background:
        radial-gradient(circle at 82% 6%, rgba(80,116,160,.18), transparent 30rem),
        radial-gradient(circle at 12% 82%, rgba(174,126,76,.08), transparent 30rem),
        linear-gradient(145deg,#182330,#111923 58%,#192431) fixed !important;
}
.landing-header {
    background: rgba(28,39,53,.84) !important;
    border-color: var(--nova-border) !important;
    box-shadow: 0 8px 28px rgba(4,10,18,.12) !important;
    backdrop-filter: blur(20px) saturate(120%) !important;
}
.landing-header .nav-link { color: #b5bfcc !important; border-radius: 9px; }
.landing-header .nav-link:hover { color: #f4f0e9 !important; background: rgba(255,255,255,.04); }
.landing-header .profile-dropdown-btn { color: #eef1f5 !important; background: rgba(255,255,255,.035) !important; border: 1px solid var(--nova-border) !important; border-radius: 11px !important; }
.landing-header .nav-toggle-btn { color: #e7ebf0 !important; background: rgba(255,255,255,.04) !important; border-color: var(--nova-border) !important; border-radius: 10px !important; }
.landing-footer { color: #8794a5 !important; background: rgba(24,34,47,.62) !important; border-color: var(--nova-border) !important; }

.help-main { width: min(900px,100%); }
.help-main > h1 { color: #f5f1e9 !important; letter-spacing: -.04em; line-height: 1.1; }
.help-main > p { color: #aab4c1 !important; }
.help-card {
    background: linear-gradient(145deg,rgba(35,48,64,.95),rgba(27,38,52,.97)) !important;
    border: 1px solid var(--nova-border) !important;
    border-radius: 17px !important;
    box-shadow: 0 15px 36px rgba(4,10,18,.13), inset 0 1px rgba(255,255,255,.035);
    transition: transform .18s ease, border-color .18s ease;
}
.help-card:hover { transform: translateY(-2px); border-color: var(--nova-border-highlight) !important; }
.help-card h3 { color: #f1eee8 !important; }
.help-card p { color: #aab4c1 !important; }
.help-support-btn { background: linear-gradient(135deg,#648fd3,#7563bd) !important; border-radius: 11px !important; box-shadow: 0 9px 24px rgba(63,100,170,.24); }

.browse-hero { margin-top: 64px; background: linear-gradient(180deg,rgba(45,62,81,.42),rgba(22,31,43,.12)) !important; border-color: var(--nova-border) !important; }
.browse-hero h1, .section-title { color: #f5f1e9 !important; }
.browse-hero p { color: #acb6c4 !important; }
.gradient-text { color: #dfb56f !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
.pop-cat-card, .investment-card {
    background: linear-gradient(145deg,rgba(36,50,67,.96),rgba(27,38,52,.98)) !important;
    border: 1px solid var(--nova-border) !important;
    border-radius: 17px !important;
    box-shadow: 0 15px 36px rgba(4,10,18,.14), inset 0 1px rgba(255,255,255,.035) !important;
}
.pop-cat-card:hover, .investment-card:hover { transform: translateY(-4px) !important; border-color: rgba(214,168,95,.34) !important; box-shadow: 0 22px 48px rgba(4,10,18,.23) !important; }
.pop-cat-icon-circle { background: rgba(214,168,95,.13) !important; border: 1px solid rgba(214,168,95,.2); }
.pop-cat-icon { color: #dfb56f !important; }
.pop-cat-title, .investment-title { color: #f2eee7 !important; }
.pop-cat-desc, .investment-card p { color: #a7b0bd !important; }
.investment-img-container { background: rgba(10,17,26,.26) !important; }
.investment-card .invest-btn { background: linear-gradient(135deg,#648fd3,#7563bd) !important; border-radius: 10px !important; box-shadow: 0 8px 22px rgba(58,94,159,.22); }
#pagination-controls button { min-width: 42px; min-height: 42px; color: #dce4ef !important; background: rgba(35,48,64,.95) !important; border: 1px solid var(--nova-border) !important; border-radius: 10px !important; }

@media (max-width: 768px) {
    .landing-header .container-header { min-height: 60px; padding-inline: .8rem !important; }
    .landing-header .logo-container img { width: 82px !important; }
    .landing-header .nav-links.active { top: calc(100% + 8px); left: .75rem; right: .75rem; width: auto; padding: .65rem; background: rgba(35,48,64,.98) !important; border: 1px solid var(--nova-border-highlight); border-radius: 14px; box-shadow: 0 20px 45px rgba(3,8,14,.38); }
    .landing-header .nav-links.active .nav-link { min-height: 44px; display: flex; align-items: center; padding-inline: .85rem; }
    .help-main { margin: 5.5rem auto 2.5rem !important; padding: 1rem .8rem !important; }
    .help-main > h1 { font-size: clamp(2rem,10vw,2.6rem) !important; }
    .help-main > p { margin-bottom: 1.75rem !important; font-size: .92rem !important; }
    .help-main > div { gap: .8rem !important; }
    .help-card { padding: 1.05rem !important; border-radius: 14px !important; }
    .help-card h3 { font-size: 1rem !important; }
    .help-card p { font-size: .82rem; }
    .browse-hero { margin-top: 60px; padding: 2.1rem .8rem 1.35rem !important; }
    .section-container { padding-inline: .8rem !important; }
    .popular-categories-grid { gap: .7rem !important; }
    .pop-cat-card { min-width: 0; padding: .9rem !important; }
    .investment-grid { gap: .85rem !important; }
    .investment-card { border-radius: 15px !important; }
}

@media (max-width: 420px) {
    .popular-categories-grid { grid-template-columns: 1fr 1fr !important; }
    .pop-cat-card { text-align: left !important; }
    .pop-cat-desc { font-size: .7rem !important; line-height: 1.4; }
}

/* Exact viewport-centred mobile brand, independent of side controls */
@media (max-width: 900px) {
    .dashboard-header { position: relative !important; }
    .dashboard-header .mobile-header-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .dashboard-header .mobile-header-logo img { 
        width: 124px !important; 
        max-width: 44vw !important; 
        height: auto !important; 
        max-height: 42px !important; 
        object-fit: contain !important;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) !important;
    }
}

.smtp-provider-tools { margin: 0 0 1rem; padding: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: #aab4c1; background: rgba(214,168,95,.065); border: 1px solid rgba(214,168,95,.16); border-radius: 12px; }
.smtp-provider-tools span { font-size: .75rem; line-height: 1.4; }
.smtp-provider-tools button { flex: 0 0 auto; min-height: 40px; padding: .55rem .75rem; display: inline-flex; align-items: center; gap: .35rem; color: #f4e8d5; background: rgba(214,168,95,.14); border: 1px solid rgba(214,168,95,.25); border-radius: 9px; font-weight: 700; cursor: pointer; }
.smtp-provider-tools button .material-symbols-outlined { font-size: 1rem; }
@media (max-width: 520px) { .smtp-provider-tools { align-items: stretch; flex-direction: column; } .smtp-provider-tools button { justify-content: center; width: 100%; } }

/* ==========================================================================
   Nova 8.0 — Premium Mobile-First Navigation, Modals & UI/UX
   ========================================================================== */

/* ── Mobile Bottom Navigation ──────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    /* Show bottom nav on tablet and mobile */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 62px !important;
        background: rgba(17, 24, 36, 0.97) !important;
        backdrop-filter: blur(22px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
        border-top: 1px solid rgba(173, 190, 211, 0.15) !important;
        z-index: 9990 !important;
        align-items: stretch !important;
        justify-content: space-around !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.45), 0 -1px 0 rgba(255,255,255,0.04) inset !important;
    }

    /* Extra padding so content clears bottom nav */
    .dashboard-main-content {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .dashboard-footer {
        margin-bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Nav items */
    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        color: #7a8fa8 !important;
        text-decoration: none !important;
        background: none !important;
        border: none !important;
        padding: 6px 2px 4px !important;
        gap: 2px !important;
        font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
        font-size: 0.62rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em !important;
        cursor: pointer !important;
        transition: color 0.2s ease, transform 0.15s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        position: relative !important;
        outline: none !important;
    }

    .mobile-nav-item .material-symbols-outlined {
        font-size: 1.4rem !important;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease !important;
        line-height: 1 !important;
    }

    .mobile-nav-item:active {
        transform: scale(0.88) !important;
    }

    /* Active state — gold accent */
    .mobile-nav-item.active {
        color: #d6a85f !important;
    }
    .mobile-nav-item.active .material-symbols-outlined {
        color: #d6a85f !important;
        transform: translateY(-3px) scale(1.08) !important;
    }

    /* Active dot indicator below icon */
    .mobile-nav-item.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 4px !important;
        height: 4px !important;
        border-radius: 50% !important;
        background: #d6a85f !important;
        box-shadow: 0 0 6px rgba(214, 168, 95, 0.7) !important;
    }

    /* Active background glow pill */
    .mobile-nav-item.active::before {
        content: '' !important;
        position: absolute !important;
        top: 6px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 44px !important;
        height: 32px !important;
        border-radius: 10px !important;
        background: rgba(214, 168, 95, 0.1) !important;
        z-index: -1 !important;
    }
}

/* ── Touch Targets & iOS Auto-Zoom Fix ─────────────────────── */
@media (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
        min-height: 48px !important;
    }

    button,
    .form-btn-db,
    .statement-download-btn,
    .dashboard-refresh-btn,
    .referral-share-btn {
        min-height: 44px !important;
        touch-action: manipulation !important;
    }

    /* Referral link copy button full-width on tiny screens */
    #panel-referrals .deposit-step-box [style*="display: flex"] {
        flex-direction: column !important;
    }
    #panel-referrals #copy-ref-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Withdraw row stack on mobile */
    .withdraw-action-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-top: 1.25rem !important;
    }
    .withdraw-action-row .form-btn-db {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
        box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
    }
    .secure-transaction-label {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #94a3b8 !important;
        font-size: 0.78rem !important;
        gap: 0.35rem !important;
    }
}

/* ── Mobile Bottom-Sheet Modals ────────────────────────────── */
/* Two patterns exist:
   1. Admin modals: .modal-overlay + .active class (display controlled by CSS rule)
   2. User dashboard modals: inline style="display:none" or [hidden] attribute
   We must NOT touch closed modals regardless of pattern. */
@media (max-width: 768px) {

    /* Pattern 1: .active class opens the modal */
    .modal-overlay.active {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
    }



    /* Always hide modals that are explicitly marked hidden */
    .modal-overlay[hidden] {
        display: none !important;
    }
    .modal-overlay[style*="display: none"] {
        display: none !important;
    }

    /* Bottom-sheet content for OPEN modals (.active pattern) */
    .modal-overlay.active .modal-content-box,
    .modal-overlay.active .modal-content {
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 90dvh !important;
        border-radius: 24px 24px 0 0 !important;
        margin: 0 !important;
        padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -14px 50px rgba(0, 0, 0, 0.65) !important;
        animation: novaModalUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
        overflow-y: auto !important;
    }

    /* Bottom-sheet content for OPEN modals (inline display:flex / display:block pattern) */
    .modal-overlay[style*="display: flex"] .modal-content-box,
    .modal-overlay[style*="display: flex"] .modal-content,
    .modal-overlay[style*="display: block"] .modal-content-box,
    .modal-overlay[style*="display: block"] .modal-content {
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 90dvh !important;
        border-radius: 24px 24px 0 0 !important;
        margin: 0 !important;
        padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -14px 50px rgba(0, 0, 0, 0.65) !important;
        animation: novaModalUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
        overflow-y: auto !important;
    }

    /* Overlay alignment for inline-style opened modals */
    .modal-overlay[style*="display: flex"],
    .modal-overlay[style*="display: block"] {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    @keyframes novaModalUp {
        from { transform: translateY(100%); opacity: 0.6; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    /* Drag handle visual hint */
    .modal-overlay.active .modal-content-box::before,
    .modal-overlay.active .modal-content::before,
    .modal-overlay[style*="display: flex"] .modal-content-box::before,
    .modal-overlay[style*="display: flex"] .modal-content::before {
        content: '' !important;
        display: block !important;
        width: 36px !important;
        height: 4px !important;
        border-radius: 99px !important;
        background: rgba(173, 190, 211, 0.3) !important;
        margin: 0 auto 1rem !important;
    }

    /* Modal footer buttons full-width on mobile */
    .modal-footer {
        flex-direction: column-reverse !important;
        gap: 0.6rem !important;
    }
    .modal-footer button,
    .modal-footer .modal-cancel-btn,
    .modal-footer .modal-submit-btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important;
    }
}

/* ── Tablet & Desktop Grid Harmony ─────────────────────────── */
@media (min-width: 901px) and (max-width: 1100px) {
    .dashboard-metrics-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Panel Transitions ─────────────────────────────────────── */
@media (max-width: 900px) {
    .dashboard-panel-view.active {
        animation: novaPanelFadeIn 0.22s ease both;
    }
    @keyframes novaPanelFadeIn {
        from { opacity: 0; transform: translateY(6px); }
        to   { opacity: 1; transform: none; }
    }
}

/* ── Referral Copy Box Mobile ──────────────────────────────── */
@media (max-width: 500px) {
    #referral-link-input {
        font-size: 0.75rem !important;
    }
}

/* ── Active Investments Card Mobile Table ──────────────────── */
@media (max-width: 700px) {
    .active-investments-table-wrap { overflow: visible !important; border: 0 !important; background: transparent !important; }
    .active-investments-table-wrap .deposits-table-list { display: block; width: 100%; min-width: 0 !important; }
    .active-investments-table-wrap thead { display: none; }
    .active-investments-table-wrap tbody { display: grid; gap: 0.7rem; width: 100%; }
    .active-investments-table-wrap tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem 0.9rem;
        width: 100%;
        padding: 0.9rem;
        background: rgba(13, 22, 38, 0.72);
        border: 1px solid rgba(173, 190, 211, 0.15) !important;
        border-radius: 13px;
    }
    .active-investments-table-wrap td {
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        border: 0 !important;
        font-size: 0.82rem !important;
        gap: 0.18rem;
    }
    .active-investments-table-wrap td::before {
        content: attr(data-label);
        color: #6f7e94;
        font: 650 0.6rem/1.2 'Inter', sans-serif;
        letter-spacing: 0.045em;
        text-transform: uppercase;
    }
    .active-investments-table-wrap td:last-child { grid-column: 1 / -1; }
}
/* end Nova 8.0 */

/* ── Dashboard investment catalogue (High-End Fintech UI/UX) ─────────────────────── */

.invest-hero-banner {
    background: linear-gradient(135deg, rgba(16, 26, 46, 0.95), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.invest-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.invest-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.invest-quick-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.invest-stat-pill {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.invest-stat-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.invest-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.invest-stat-icon.green { background: rgba(16, 185, 129, 0.18); color: #34d399; box-shadow: 0 0 12px rgba(16, 185, 129, 0.2); }
.invest-stat-icon.blue { background: rgba(59, 130, 246, 0.18); color: #60a5fa; box-shadow: 0 0 12px rgba(59, 130, 246, 0.2); }
.invest-stat-icon.gold { background: rgba(245, 158, 11, 0.18); color: #fbbf24; box-shadow: 0 0 12px rgba(245, 158, 11, 0.2); }

.invest-stat-val {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}
.invest-stat-lbl {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0.15rem;
}

/* Toolbar & Filters */
.invest-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.invest-search-box {
    position: relative;
    flex-grow: 1;
    max-width: 420px;
}
.invest-search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.15rem;
    transition: color 0.2s;
}
.invest-search-box input {
    width: 100%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.7rem 1rem 0.7rem 2.7rem;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.invest-search-box input:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.invest-search-box input:focus + .search-icon {
    color: #818cf8;
}

.invest-filter-chips {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.invest-filter-chips::-webkit-scrollbar {
    display: none;
}

.invest-chip {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.invest-chip:hover {
    background: rgba(30, 41, 59, 0.85);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
}
.invest-chip.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-color: rgba(99, 102, 241, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

/* Popular Categories Grid (Public Investments Page) */
.popular-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.pop-cat-card {
    background: linear-gradient(145deg, rgba(16, 24, 40, 0.8), rgba(11, 16, 28, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pop-cat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 15px rgba(99, 102, 241, 0.15);
}
.pop-cat-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}
.pop-cat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.3rem;
}
.pop-cat-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Card Grid */
.db-investments-grid,
.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.35rem;
    min-height: 200px;
    align-items: stretch;
}

.db-investment-card,
.investment-card {
    min-width: 0;
    border-radius: 22px !important;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(16, 24, 40, 0.95), rgba(11, 16, 28, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
    display: flex;
    flex-direction: column;
    position: relative;
}

.db-investment-card:hover,
.investment-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 22px 45px -10px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.db-investment-card .investment-img-container,
.investment-card .investment-img-container {
    height: 175px;
    position: relative;
    overflow: hidden;
    background: #0b0f19;
}

.db-investment-card .investment-img,
.investment-card .investment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.db-investment-card:hover .investment-img,
.investment-card:hover .investment-img {
    transform: scale(1.08);
}

.db-investment-card .investment-img-container::after,
.investment-card .investment-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: linear-gradient(to top, rgba(11, 16, 28, 0.98), transparent);
}

.card-badge-overlay {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.card-roi-pill {
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-tag-pill {
    background: rgba(245, 158, 11, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.db-investment-card .investment-content,
.investment-card .investment-content {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.db-investment-heading .investment-title,
.investment-card .investment-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1.1rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* 2x2 Financial Metrics Grid */
.investment-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem 0.85rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
}

.metric-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.metric-label {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.metric-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e8f0;
}
.metric-value.highlight { color: #818cf8; font-size: 1.05rem; font-weight: 800; }
.metric-value.profit { color: #34d399; font-weight: 800; }
.metric-value.payout { color: #f8fafc; font-weight: 800; }

/* Yield Progress Meter */
.plan-yield-meter {
    margin-bottom: 1.25rem;
}
.yield-meter-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.yield-meter-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.yield-meter-bar {
    height: 100%;
    background: linear-gradient(90deg, #34d399, #10b981, #6366f1);
    border-radius: 6px;
    transition: width 0.6s ease;
}

.db-investment-action {
    margin-top: auto;
}

.db-buy-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    font: 750 0.9rem/1 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.db-buy-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5);
}
.db-buy-btn .material-symbols-outlined {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}
.db-buy-btn:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.buy-plan-modal-box {
    background: #0b1120 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    width: 100%;
    max-width: 450px;
    padding: 1.75rem;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7) !important;
}

/* Mobile Responsiveness Breakpoints (< 768px & < 480px) */
@media (max-width: 768px) {
    .invest-hero-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1.1rem;
        border-radius: 16px;
    }
    .invest-quick-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .invest-stat-pill {
        padding: 0.6rem 0.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
        border-radius: 12px;
    }
    .invest-stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .invest-stat-icon .material-symbols-outlined {
        font-size: 18px;
    }
    .invest-stat-val {
        font-size: 0.88rem;
    }
    .invest-stat-lbl {
        font-size: 0.65rem;
    }

    .invest-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        margin-bottom: 1.25rem;
    }
    .invest-search-box {
        max-width: 100%;
    }

    .popular-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    .pop-cat-card {
        padding: 1rem;
        border-radius: 14px;
    }
    .pop-cat-icon-circle {
        width: 38px;
        height: 38px;
        margin-bottom: 0.6rem;
    }

    .db-investments-grid,
    .investment-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .db-investment-card,
    .investment-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
        border-radius: 18px !important;
    }
    .db-investment-card .investment-img-container,
    .investment-card .investment-img-container {
        height: 160px;
    }
    .db-investment-card .investment-content,
    .investment-card .investment-content {
        padding: 1.15rem;
    }
    .db-buy-btn {
        min-height: 48px;
        font-size: 0.9rem;
    }

    .buy-plan-modal-box {
        padding: 1.25rem;
        border-radius: 20px !important;
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .invest-hero-banner {
        padding: 1rem;
    }
    .invest-quick-stats {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    .invest-stat-pill {
        flex-direction: row;
        text-align: left;
        padding: 0.65rem 0.85rem;
    }
    .popular-categories-grid {
        grid-template-columns: 1fr;
    }
    .db-investment-card .investment-img-container,
    .investment-card .investment-img-container {
        height: 145px;
    }
    .investment-metrics-grid {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    .metric-value {
        font-size: 0.85rem;
    }
    .metric-value.highlight {
        font-size: 0.95rem;
    }
}

/* ── Support Center & Chat Panel Responsiveness (Mobile + Desktop) ── */
#panel-support {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#panel-support .panel-title {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.35rem !important;
}

#panel-support .panel-desc {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
    margin-bottom: 1.25rem !important;
    max-width: 100% !important;
}

.chat-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    background: #111622 !important;
    border: 1px solid #1e2538 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    margin: 0 0 1.5rem 0 !important;
    height: auto !important;
}

.chat-header {
    padding: 0.85rem 1.15rem !important;
    background: #171d2c !important;
    border-bottom: 1px solid #1e2538 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
}

.chat-header-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
}

.chat-status-text {
    font-size: 0.72rem !important;
    color: #10b981 !important;
}

.chat-messages {
    min-height: 280px !important;
    max-height: 420px !important;
    padding: 1rem !important;
    overflow-y: auto !important;
    background-color: #0b0e14 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
}

.chat-input-area {
    padding: 0.65rem 0.75rem !important;
    background-color: #171d2c !important;
    border-top: 1px solid #1e2538 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.chat-attach-btn {
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    color: #a855f7 !important;
    background: rgba(168, 85, 247, 0.12) !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.chat-attach-btn:hover {
    background: rgba(168, 85, 247, 0.25) !important;
}

.chat-attach-btn .material-symbols-outlined {
    font-size: 1.25rem !important;
}

.chat-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    background-color: #0b0e14 !important;
    border: 1px solid #1e2538 !important;
    border-radius: 8px !important;
    padding: 0.65rem 0.85rem !important;
    color: #f1f5f9 !important;
    font-size: 0.88rem !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease !important;
}

.chat-input:focus {
    border-color: #3b82f6 !important;
}

.chat-send-btn {
    flex-shrink: 0 !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.2s ease !important;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.chat-send-btn .material-symbols-outlined {
    font-size: 1.15rem !important;
}

@media (max-width: 600px) {
    .chat-messages {
        min-height: 240px !important;
        max-height: 350px !important;
        padding: 0.75rem !important;
    }
    .chat-bubble {
        max-width: 85% !important;
        font-size: 0.84rem !important;
    }
    .chat-input-area {
        padding: 0.55rem 0.65rem !important;
        gap: 0.4rem !important;
    }
    .chat-input {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.84rem !important;
    }
    .chat-attach-btn, .chat-send-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ── Admin Header & Advanced User Management Mobile Responsiveness (412x870 & Mobile Screens) ── */
@media (max-width: 650px) {
    .admin-dashboard-body .dashboard-header,
    .dashboard-header {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.5rem 0.85rem !important;
        height: 56px !important;
        box-sizing: border-box !important;
    }

    .admin-dashboard-body .dashboard-header-context,
    .dashboard-header-context {
        display: none !important;
    }

    .admin-dashboard-body .header-left-toggle,
    .dashboard-header .header-left-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 20 !important;
    }

    .admin-dashboard-body .mobile-header-logo,
    .dashboard-header .mobile-header-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 10 !important;
        pointer-events: auto !important;
    }

    .admin-dashboard-body .mobile-header-logo img,
    .dashboard-header .mobile-header-logo img {
        height: 22px !important;
        max-height: 22px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .admin-dashboard-body .header-right-user,
    .dashboard-header .header-right-user {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.4rem !important;
        z-index: 20 !important;
    }

    .dashboard-header .header-notification-btn {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
        border-radius: 50% !important;
        margin: 0 !important;
        background: #1e2538 !important;
        border: 1px solid #2e384e !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .dashboard-header .header-notification-btn b {
        top: -3px !important;
        right: -3px !important;
        min-width: 16px !important;
        height: 16px !important;
        font-size: 0.6rem !important;
        line-height: 16px !important;
    }

    .admin-dashboard-body .user-card-info,
    .dashboard-header .user-card-info {
        padding: 0 !important;
        border: none !important;
        background: none !important;
        box-shadow: none !important;
    }

    .admin-dashboard-body .user-text-details,
    .dashboard-header .user-text-details {
        display: none !important;
    }

    .admin-dashboard-body .user-avatar-circle,
    .dashboard-header .user-avatar-circle {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
    }

    .admin-dashboard-body .profile-dropdown-menu,
    .dashboard-header .profile-dropdown-menu {
        top: 48px !important;
        right: 0 !important;
        width: 150px !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
        z-index: 99999 !important;
    }

    #panel-users {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    #panel-users .panel-title {
        font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 0.35rem !important;
    }

    #panel-users .panel-desc {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
        color: #94a3b8 !important;
        margin-bottom: 1rem !important;
    }

    #panel-users button[onclick*="openAddUserModal"],
    #panel-users .form-btn-db {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    #panel-users .db-search-filters-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.65rem !important;
        padding: 0.75rem !important;
        border-radius: 12px !important;
        background-color: #111622 !important;
        border: 1px solid #1e2538 !important;
        margin-bottom: 1.25rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #panel-users .db-search-filters-bar > div:first-child {
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }

    #panel-users .db-search-filters-bar > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #panel-users .db-search-filters-bar select {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.4rem !important;
        text-overflow: ellipsis !important;
    }

    #panel-users .recent-deposits-section {
        padding: 0.85rem !important;
        border-radius: 14px !important;
        background-color: #111622 !important;
        border: 1px solid #1e2538 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #panel-users .recent-deposits-title {
        font-size: 1.05rem !important;
        margin-bottom: 0.75rem !important;
    }

    #panel-users .table-responsive-box {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
    }

    #panel-users table.deposits-table-list th,
    #panel-users table.deposits-table-list td {
        padding: 0.65rem 0.5rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    /* Master Admin Panel Headings & Section Descriptions */
    .admin-dashboard-body .panel-title,
    .dashboard-panel-view .panel-title {
        font-size: clamp(1.25rem, 5.2vw, 1.7rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 0.3rem !important;
        word-break: break-word !important;
    }

    .admin-dashboard-body .panel-desc,
    .dashboard-panel-view .panel-desc {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
        color: #94a3b8 !important;
        margin-bottom: 1rem !important;
    }

    /* System Overview Grid & Cards */
    .admin-dashboard-body .dashboard-metrics-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* Manage Plans Form */
    #panel-plans .deposit-step-box {
        padding: 0.85rem !important;
        border-radius: 12px !important;
        margin-bottom: 1.25rem !important;
    }

    #panel-plans .deposit-step-box > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    #panel-plans button[onclick*="adminCreatePlan"],
    #panel-plans .form-btn-db {
        width: 100% !important;
        font-size: 0.84rem !important;
        padding: 0.75rem 1rem !important;
        justify-content: center !important;
    }

    /* Support Desk Layout */
    .admin-support-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 480px !important;
        border-radius: 14px !important;
    }

    .admin-support-users {
        max-height: 150px !important;
        min-height: 110px !important;
        border-right: none !important;
        border-bottom: 1px solid #1e2538 !important;
    }

    .admin-support-chat {
        min-height: 320px !important;
        flex: 1 1 auto !important;
    }

    /* Notification & Alert Preferences */
    .notification-settings-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }

    .notification-setting {
        padding: 0.75rem !important;
        font-size: 0.82rem !important;
    }

    /* SMTP Configuration Card & Forms */
    .smtp-settings-card {
        padding: 0.85rem !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .smtp-form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .smtp-provider-tools {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .smtp-actions {
        flex-direction: column !important;
        gap: 0.65rem !important;
    }

    .smtp-actions button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Audit Log Toolbar */
    .audit-toolbar {
        flex-direction: column !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .audit-toolbar input,
    .audit-toolbar button {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 400px) {
    .admin-dashboard-body .dashboard-metrics-row {
        grid-template-columns: 1fr !important;
    }
}

/* ── Toast Notification Elevation Above Mobile Bottom Navbar (386x870 & Mobile Screens) ── */
@media (max-width: 650px) {
    .toast-notification {
        position: fixed !important;
        bottom: 75px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        box-sizing: border-box !important;
        z-index: 100000 !important;
        padding: 0.65rem 0.9rem !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    }

    #panel-deposits .panel-title,
    #panel-payouts .panel-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    #panel-deposits .panel-desc,
    #panel-payouts .panel-desc {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.85rem !important;
    }

    #panel-deposits .recent-deposits-section,
    #panel-payouts .recent-deposits-section {
        padding: 0.75rem !important;
        border-radius: 12px !important;
    }

    /* ── System Overview 2x2 Grid & Compact Card Mobile Responsive Rules (386x870 & Mobile Screens) ── */
    .admin-dashboard-body .dashboard-metrics-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.65rem !important;
        margin-bottom: 1rem !important;
    }

    .admin-dashboard-body .metric-card-box {
        padding: 0.75rem 0.85rem !important;
        border-radius: 12px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .admin-dashboard-body .metric-card-label {
        font-size: 0.72rem !important;
        margin-bottom: 0.35rem !important;
        line-height: 1.25 !important;
        color: #94a3b8 !important;
        font-weight: 600 !important;
    }

    .admin-dashboard-body .metric-card-value-txt {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
    }

    .admin-dashboard-body .metric-card-icon-box {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
    }

    .admin-dashboard-body .metric-card-icon-box .material-symbols-outlined {
        font-size: 1.15rem !important;
    }

    .admin-dashboard-body #panel-overview > div:last-child {
        padding: 0.85rem !important;
        border-radius: 12px !important;
        margin-top: 1rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .admin-dashboard-body #panel-overview #admin-tron-address-preview {
        font-size: 0.72rem !important;
        word-break: break-all !important;
        white-space: normal !important;
    }

    .admin-dashboard-body #panel-overview > div:last-child > div:last-child {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    .admin-dashboard-body #panel-overview > div:last-child button,
    .admin-dashboard-body #panel-overview > div:last-child a {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 0.55rem 0.5rem !important;
        font-size: 0.78rem !important;
    }

    .admin-dashboard-body #panel-overview .recent-deposits-section {
        padding: 0.85rem !important;
        border-radius: 12px !important;
        margin-top: 1rem !important;
    }

    .admin-dashboard-body #panel-overview .recent-deposits-title {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }

    .admin-dashboard-body #panel-overview .recent-deposits-section p {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
    }

    /* ── Mobile User Cards Transformation (Zero Horizontal Scroll Needed!) ── */
    #panel-users table.deposits-table-list thead {
        display: none !important;
    }

    #panel-users table.deposits-table-list,
    #panel-users table.deposits-table-list tbody {
        display: block !important;
        width: 100% !important;
    }

    #panel-users tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background-color: #0c101b !important;
        border: 1px solid #1e2538 !important;
        border-radius: 12px !important;
        padding: 0.85rem !important;
        margin-bottom: 0.75rem !important;
        gap: 0.45rem !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    #panel-users tbody tr td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.35rem 0 !important;
        border: none !important;
        background: none !important;
        font-size: 0.78rem !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* 1. User Info Header Row */
    #panel-users tbody tr td:nth-child(1) {
        padding-bottom: 0.5rem !important;
        border-bottom: 1px dashed #1e2538 !important;
    }

    #panel-users tbody tr td:nth-child(1) > div {
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* 2. Balance Row */
    #panel-users tbody tr td:nth-child(2)::before {
        content: "Balance";
        font-size: 0.72rem;
        color: #64748b;
        font-weight: 600;
    }

    /* 3. Referrals Row */
    #panel-users tbody tr td:nth-child(3)::before {
        content: "Referrals";
        font-size: 0.72rem;
        color: #64748b;
        font-weight: 600;
    }

    /* 4. Status Row */
    #panel-users tbody tr td:nth-child(4)::before {
        content: "Account Status";
        font-size: 0.72rem;
        color: #64748b;
        font-weight: 600;
    }

    /* 5. Action Buttons Row */
    #panel-users tbody tr td:nth-child(5) {
        padding-top: 0.5rem !important;
        border-top: 1px dashed #1e2538 !important;
        margin-top: 0.25rem !important;
    }

    #panel-users tbody tr td:nth-child(5) > div {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    #panel-users tbody tr td:nth-child(5) button {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 44px !important;
        padding: 0.55rem 0.45rem !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #panel-users tbody tr td:nth-child(5) button::after {
        font-size: 0.7rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: center !important;
    }

    #panel-users tbody tr td:nth-child(5) button:last-child {
        grid-column: 1 / -1 !important;
    }

    #panel-users tbody tr td:nth-child(5) button .material-symbols-outlined {
        flex: 0 0 auto !important;
        font-size: 1rem !important;
    }
}

/* Admin Investments Control UI Polish & Action Buttons */
.inv-admin-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.55rem 0.95rem !important;
    color: #94a3b8 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(126, 156, 205, 0.2) !important;
    border-radius: 9px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.inv-admin-filter-btn:hover {
    color: #e2e8f0 !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

.inv-admin-filter-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.inv-search-input-wrap .inv-search-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    background: rgba(15, 23, 42, 0.95) !important;
}

.inv-id-badge {
    background: rgba(126, 156, 205, 0.12);
    color: #94a3b8;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid rgba(126, 156, 205, 0.18);
}

.inv-action-buttons-wrap {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
}

.inv-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    padding: 0.4rem 0.7rem !important;
    border-radius: 7px !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.inv-action-btn .material-symbols-outlined {
    font-size: 0.95rem !important;
}

.inv-action-btn.btn-hold {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.inv-action-btn.btn-hold:hover {
    background: #d97706 !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.inv-action-btn.btn-suspend {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.inv-action-btn.btn-suspend:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

.inv-action-btn.btn-resume {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.inv-action-btn.btn-resume:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.inv-action-btn.btn-edit {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.inv-action-btn.btn-edit:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.inv-action-btn.btn-delete {
    background: rgba(225, 29, 72, 0.1) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(225, 29, 72, 0.25) !important;
}

.inv-action-btn.btn-delete:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
    border-color: #f43f5e !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35) !important;
}

.btn-user-overview-sm {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    margin-top: 0.25rem !important;
    padding: 0.25rem 0.6rem !important;
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.28) !important;
    border-radius: 6px !important;
    font-size: 0.7rem !important;
    font-weight: 650 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}

.btn-user-overview-sm:hover {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #3b82f6 !important;
}

/* Mobile zero-scroll card transformation for User Investments Control */
@media (max-width: 991px) {
    #panel-investments .inv-admin-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
        padding: 0.85rem !important;
    }
    
    #panel-investments .my-investments-tabs {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }

    #panel-investments .inv-admin-filter-btn {
        justify-content: center !important;
        padding: 0.5rem 0.4rem !important;
        font-size: 0.72rem !important;
    }

    #panel-investments .inv-search-input-wrap {
        max-width: 100% !important;
        width: 100% !important;
    }

    #panel-investments table.inv-nova-table thead {
        display: none !important;
    }

    #panel-investments table.inv-nova-table,
    #panel-investments table.inv-nova-table tbody {
        display: block !important;
        width: 100% !important;
    }

    #panel-investments table.inv-nova-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(15, 23, 42, 0.85) !important;
        border: 1px solid rgba(126, 156, 205, 0.2) !important;
        border-radius: 14px !important;
        padding: 1rem !important;
        margin-bottom: 0.9rem !important;
        gap: 0.5rem !important;
        box-sizing: border-box !important;
        width: 100% !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
    }

    #panel-investments table.inv-nova-table tbody tr td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.4rem 0 !important;
        border: none !important;
        background: none !important;
        font-size: 0.82rem !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    #panel-investments table.inv-nova-table tbody tr td:not(:first-child):not(:last-child)::before {
        content: attr(data-label);
        font-size: 0.72rem;
        color: #94a3b8;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    #panel-investments table.inv-nova-table tbody tr td:nth-child(1) {
        display: none !important;
    }

    #panel-investments table.inv-nova-table tbody tr td:nth-child(2) {
        padding-bottom: 0.65rem !important;
        border-bottom: 1px dashed rgba(126, 156, 205, 0.2) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    #panel-investments table.inv-nova-table tbody tr td:nth-child(8) {
        padding-top: 0.75rem !important;
        border-top: 1px dashed rgba(126, 156, 205, 0.2) !important;
        margin-top: 0.25rem !important;
    }

    #panel-investments table.inv-nova-table tbody tr td:nth-child(8) .inv-action-buttons-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    #panel-investments table.inv-nova-table tbody tr td:nth-child(8) .inv-action-btn {
        width: 100% !important;
        min-height: 42px !important;
        padding: 0.55rem 0.5rem !important;
    }
}

/* User Investments: polished desktop table and compact mobile cards */
#panel-investments .inv-table-card {
    overflow: hidden;
    border: 1px solid rgba(126,156,205,.2);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(18,30,49,.94), rgba(8,16,29,.97));
    box-shadow: 0 18px 40px rgba(2,8,18,.22);
}
#panel-investments .inv-table-wrap { overflow-x: auto; }
#panel-investments table.inv-nova-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; }
#panel-investments table.inv-nova-table thead th {
    position: sticky; top: 0; z-index: 2; padding: .9rem .85rem; white-space: nowrap;
    color: #93a4bb; background: #1a283c; border-bottom: 1px solid rgba(126,156,205,.22);
    font-size: .68rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase;
}
#panel-investments table.inv-nova-table tbody td {
    padding: .85rem; vertical-align: middle; border-bottom: 1px solid rgba(126,156,205,.11);
    color: #dbe5f2; font-size: .78rem;
}
#panel-investments table.inv-nova-table tbody tr:last-child td { border-bottom: 0; }
#panel-investments table.inv-nova-table tbody tr { transition: background .18s ease; }
#panel-investments table.inv-nova-table tbody tr:hover { background: rgba(43,76,126,.16); }
#panel-investments .inv-user-email { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#panel-investments .inv-action-buttons-wrap { min-width: 230px; }
#panel-investments .inv-action-btn { min-height: 36px; }

@media (max-width: 991px) {
    #panel-investments .inv-table-card { border: 0; background: transparent; box-shadow: none; }
    #panel-investments .inv-table-wrap { overflow: visible; }
    #panel-investments table.inv-nova-table { min-width: 0; }
}

@media (max-width: 480px) {
    #panel-investments .my-investments-tabs { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    #panel-investments .my-investments-tabs .inv-admin-filter-btn:last-child { grid-column: 1 / -1; }
    #panel-investments table.inv-nova-table tbody tr { padding: .85rem !important; border-radius: 13px !important; }
    #panel-investments table.inv-nova-table tbody tr td { font-size: .78rem !important; }
    #panel-investments table.inv-nova-table tbody tr td:nth-child(8) .inv-action-buttons-wrap { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}

/* Profile Active Investments Premium UI */
.admin-financial-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0 1.2rem}.admin-financial-grid article{padding:1rem;background:linear-gradient(145deg,rgba(18,30,49,.96),rgba(8,16,29,.98));border:1px solid rgba(126,156,205,.18);border-radius:13px}.admin-financial-grid span{display:block;color:#8492a7;font-size:.68rem;font-weight:700}.admin-financial-grid strong{display:block;margin-top:.35rem;font-size:1.15rem}.admin-financial-table-card{overflow:hidden}.admin-financial-table-card table{min-width:720px}@media(max-width:700px){.admin-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.admin-financial-grid article{padding:.8rem}.admin-financial-grid strong{font-size:1rem}.admin-financial-table-card .table-responsive-box{overflow-x:auto}}
.profile-investments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.85rem;
}

.profile-inv-card {
    position: relative;
    padding: 1.15rem;
    background: linear-gradient(145deg, rgba(16, 26, 44, 0.95), rgba(9, 17, 30, 0.98));
    border: 1px solid rgba(126, 156, 205, 0.18);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    overflow: hidden;
}

.profile-inv-card:hover {
    border-color: rgba(96, 165, 250, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.profile-inv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.profile-inv-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.profile-inv-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.profile-inv-name {
    font-size: 0.92rem;
    font-weight: 750;
    color: #f8fafc;
    line-height: 1.25;
}

.profile-inv-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 750;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.profile-inv-status-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: statusPulse 2s infinite;
}

.profile-inv-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

@media (max-width: 480px) {
    .profile-inv-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-inv-metric-item span {
    display: block;
    color: #8997aa;
    font-size: 0.68rem;
    font-weight: 650;
    margin-bottom: 0.2rem;
}

.profile-inv-metric-item strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f4f7fb;
}

.profile-inv-metric-item strong.roi-pct {
    color: #34d399;
}

.profile-inv-metric-item strong.est-returns {
    color: #60a5fa;
}

.profile-inv-footer {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-inv-timer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.profile-inv-timer-bar b {
    color: #60a5fa;
    font-weight: 750;
}

.profile-inv-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.profile-inv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* Executive Transactions List UI */
.transactions-responsive-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.tx-responsive-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(145deg, rgba(16, 26, 44, 0.95), rgba(9, 17, 30, 0.98));
    border: 1px solid rgba(126, 156, 205, 0.18);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.tx-responsive-card:hover {
    border-color: rgba(96, 165, 250, 0.35);
    background: linear-gradient(145deg, rgba(21, 34, 56, 0.98), rgba(12, 22, 38, 0.99));
}

.tx-card-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.tx-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-icon-box.deposit {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.tx-icon-box.investment {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.tx-icon-box.withdrawal {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.tx-icon-box.commission {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.tx-main-info {
    min-width: 0;
}

.tx-type-title {
    font-size: 0.95rem;
    font-weight: 750;
    color: #f8fafc;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-date-subtitle {
    font-size: 0.72rem;
    color: #8997aa;
    margin-top: 0.2rem;
    font-weight: 550;
}

.tx-ref-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(126, 156, 205, 0.15);
    border-radius: 6px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.tx-ref-code {
    font-family: monospace;
    color: #cbd5e1;
    font-weight: 600;
}

.tx-copy-btn {
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.tx-copy-btn .material-symbols-outlined {
    font-size: 13px;
}

.tx-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
    text-align: right;
}

.tx-amount-display {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.tx-amount-display.credit {
    color: #34d399;
}

.tx-amount-display.debit {
    color: #fb7185;
}

.tx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: capitalize;
}

.tx-status-badge.confirmed, .tx-status-badge.completed, .tx-status-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tx-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tx-status-badge.rejected, .tx-status-badge.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 580px) {
    .tx-responsive-card {
        padding: 0.95rem;
        gap: 0.75rem;
    }
    .tx-icon-box {
        width: 36px;
        height: 36px;
    }
    .tx-type-title {
        font-size: 0.88rem;
    }
    .tx-amount-display {
        font-size: 0.98rem;
    }
}
