/* Web App Stylesheet: CineInvest and TRONINVEST */

/* Root Design System Variables - Pure Dark Theme */
:root {
    --bg-primary: #050a14;
    --bg-card: #111622;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --border-color: #1e2538;
    --gradient-hero: linear-gradient(135deg, #0b101d 0%, #111827 50%, #0b101d 100%);
    --gradient-btn: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-text: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-text-alt: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --accent: #fbbf24;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

/* ========================================================================== */
/* NOVA 4.0 — unified product UI (auth, public, user and admin experiences)   */
/* ========================================================================== */
:root {
    --nova-canvas: #050a14;
    --nova-surface: rgba(11, 20, 36, .94);
    --nova-surface-2: rgba(15, 27, 47, .92);
    --nova-line: rgba(126, 156, 205, .18);
    --nova-line-strong: rgba(104, 151, 236, .38);
    --nova-copy: #f5f8fd;
    --nova-muted: #8d9bb0;
    --nova-blue: #5f91f7;
    --nova-green: #4bc482;
    --nova-radius: 16px;
}

body.dark-theme { color: var(--nova-copy); background: var(--nova-canvas); }
body.dark-theme::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 82% 8%, rgba(34, 83, 164, .13), transparent 28rem), linear-gradient(180deg, #050a14, #060c17 70%, #050912);
}

/* Shared navigation */
.dashboard-sidebar { width: 220px; padding: 1.25rem 0; background: rgba(7, 14, 27, .97); border-color: var(--nova-line); }
.dashboard-wrapper { margin-left: 220px; width: calc(100% - 220px); }
.sidebar-logo { padding: 0 1.25rem 1.5rem; }
.sidebar-menu { padding: 0 .65rem; gap: .2rem; }
.sidebar-item-link { min-height: 42px; padding: .65rem .85rem; border-radius: 10px; color: #8492a8; font-size: .83rem; }
.sidebar-item-link:hover { background: rgba(47, 75, 122, .18); }
.sidebar-item-link.active { color: #8bb0ff; background: linear-gradient(90deg, rgba(45, 87, 177, .26), rgba(30, 57, 114, .12)); border-left: 2px solid #6697ff; border-radius: 10px; }
.dashboard-header { height: 64px; padding: 0 1.5rem; background: rgba(6, 13, 25, .9) !important; border-color: var(--nova-line) !important; backdrop-filter: blur(18px); }
.dashboard-main-content { max-width: 1080px; padding: 1.65rem 1.5rem 3rem; }
.panel-title { font-size: clamp(1.55rem, 3vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; }
.panel-desc { max-width: 650px; margin: .35rem 0 1.5rem; color: var(--nova-muted); line-height: 1.55; }
.profile-dropdown-menu { background: #0b1526 !important; border: 1px solid var(--nova-line) !important; border-radius: 12px !important; box-shadow: 0 18px 45px rgba(0,0,0,.45) !important; overflow: hidden; }
.profile-dropdown-menu .dropdown-item:hover { background: rgba(67, 103, 164, .16); }

/* Shared panels, forms and controls */
.deposit-step-box, .recent-deposits-section, .chat-container,
.admin-dashboard-body .db-search-filters-bar,
.admin-dashboard-body [style*="background-color: #111622"] {
    background: linear-gradient(145deg, rgba(13, 23, 41, .96), rgba(8, 16, 30, .96)) !important;
    border: 1px solid var(--nova-line) !important;
    border-radius: var(--nova-radius) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.02), 0 16px 35px rgba(0,0,0,.18);
}
.deposit-step-box { padding: 1.35rem; }
.form-group-db { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }
.form-label-db, .modal-input-label { color: #b5c0d1; font-size: .8rem; font-weight: 600; }
.form-input-db, .modal-text-input, select, textarea,
.admin-dashboard-body input, .admin-dashboard-body select, .admin-dashboard-body textarea {
    min-height: 44px; width: 100%; padding: .72rem .85rem !important; color: var(--nova-copy) !important;
    background: rgba(25, 39, 61, .82) !important; border: 1px solid rgba(121, 148, 190, .22) !important;
    border-radius: 11px !important; outline: none; font-size: .86rem !important;
}
.form-input-db:focus, .modal-text-input:focus, select:focus, textarea:focus,
.admin-dashboard-body input:focus, .admin-dashboard-body select:focus, .admin-dashboard-body textarea:focus {
    border-color: #5e92ef !important; box-shadow: 0 0 0 3px rgba(61, 125, 237, .13) !important;
}
.form-btn-db, .modal-submit-btn, .auth-btn, .amount-select-btn,
.admin-dashboard-body button[style*="background-color"], .admin-dashboard-body button[style*="background:"] {
    min-height: 42px; padding: .68rem 1.1rem !important; border-radius: 10px !important; color: #fff !important;
    background: linear-gradient(135deg, #4b8df5, #3377df) !important; border: 1px solid rgba(126,173,255,.36) !important;
    font-weight: 650 !important; box-shadow: 0 8px 22px rgba(35, 91, 183, .2);
}
.form-btn-db:hover, .modal-submit-btn:hover, .auth-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Tables: clean desktop data surface */
.table-responsive-box { overflow-x: auto; border: 1px solid var(--nova-line) !important; border-radius: 14px !important; background: rgba(4, 10, 20, .38) !important; scrollbar-width: thin; }
.deposits-table-list { width: 100%; border-collapse: collapse; }
.deposits-table-list th { padding: .8rem 1rem !important; color: #74839a !important; font-size: .69rem !important; letter-spacing: .045em; text-transform: uppercase; background: rgba(17, 29, 49, .6); }
.deposits-table-list td { padding: .85rem 1rem !important; color: #c7d1df; font-size: .78rem !important; border-bottom-color: rgba(126,156,205,.1) !important; }
.deposits-table-list tbody tr:hover { background: rgba(48, 82, 137, .08); }

/* User tabs */
.user-dashboard-body #panel-withdraw { max-width: 720px; margin-inline: auto; }
.user-dashboard-body #panel-withdraw .deposit-step-box { padding: clamp(1.25rem, 4vw, 2rem); }
.withdraw-summary { margin: 1.2rem 0; padding: .75rem 1rem; border: 1px solid var(--nova-line); border-radius: 13px; background: rgba(4,10,20,.34); }
.withdraw-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; color: #aab5c6; font-size: .82rem; }
.withdraw-summary strong { color: #f5f8fd; }
.withdraw-summary-total { border-top: 1px solid var(--nova-line); margin-top: .25rem; padding-top: .8rem !important; }
.withdraw-action-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.secure-transaction-label { display: flex; align-items: center; gap: .35rem; color: #8795a9; font-size: .78rem; }
.secure-transaction-label .material-symbols-outlined { color: #77a1ee; font-size: 1.1rem; }
.user-dashboard-body #panel-referrals > div,
.user-dashboard-body #panel-support .chat-container { border-radius: var(--nova-radius) !important; }
.user-dashboard-body #panel-referrals input { min-width: 0; }
.custom-file-upload { background: rgba(11,21,38,.72) !important; border-color: rgba(92,139,220,.42) !important; border-radius: 14px !important; }
.custom-file-upload:hover { background: rgba(24,43,75,.55) !important; border-color: #6697ff !important; }

/* Metric and admin overview cards */
.admin-dashboard-body .dashboard-metrics-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
body.dark-theme .metric-card-box { min-width: 0; padding: 1.15rem !important; border-radius: 14px !important; background: linear-gradient(145deg, rgba(14,25,44,.94), rgba(8,17,31,.94)) !important; border-color: var(--nova-line) !important; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.metric-card-label { color: #8492a8; font-size: .72rem; }
.metric-card-value-txt { font-size: clamp(1.25rem, 3vw, 1.7rem); }
.metric-card-icon-box { width: 38px; height: 38px; border-radius: 10px; }
.admin-dashboard-body .dashboard-main-content { max-width: 1180px; }
.admin-dashboard-body .modal-content-box, .user-dashboard-body .modal-content-box, .modal-content {
    width: min(92vw, 520px) !important; max-height: 88vh; overflow-y: auto; padding: 1.35rem !important;
    background: linear-gradient(145deg, #0f1b30, #091322) !important; border: 1px solid var(--nova-line-strong) !important;
    border-radius: 16px !important; box-shadow: 0 30px 75px rgba(0,0,0,.6) !important;
}
.modal-overlay { padding: 1rem; backdrop-filter: blur(8px); }
.modal-header { margin-bottom: 1rem !important; }
.modal-title { font-size: 1.15rem !important; }
.modal-close-btn { width: 34px; height: 34px; border-radius: 50%; color: #b7c2d2; background: rgba(39,56,80,.55); }

/* Auth: compact, cinematic and consistent */
.auth-main-wrapper { min-height: calc(100svh - 64px) !important; padding: 2rem 1rem !important; background: radial-gradient(circle at 50% 0%, rgba(38,90,177,.17), transparent 32rem), #050a14 !important; }
.auth-card { max-width: 460px !important; padding: clamp(1.35rem, 4vw, 2rem) !important; border-radius: 18px !important; color: var(--nova-copy) !important; background: linear-gradient(145deg, rgba(14,25,44,.97), rgba(8,16,30,.97)) !important; border: 1px solid var(--nova-line) !important; box-shadow: 0 28px 70px rgba(0,0,0,.38) !important; }
.auth-card:hover { transform: none !important; }
.auth-logo { margin-bottom: 1.35rem !important; }
.auth-logo img { max-width: 112px; }
.auth-tabs { margin-bottom: 1.35rem !important; padding: .3rem !important; background: rgba(4,10,20,.5) !important; border: 1px solid var(--nova-line); border-radius: 11px !important; }
.auth-tab-btn { padding: .55rem !important; font-size: .8rem !important; color: #7f8da2 !important; }
.auth-tab-btn.active { color: #dfeaff !important; background: rgba(42,82,153,.4) !important; box-shadow: inset 0 0 0 1px rgba(98,145,227,.28) !important; }
.auth-card .step-pane-title { color: #f5f8fd; font-size: 1.3rem; }
.auth-card .step-pane-subtitle { color: #8190a5; font-size: .8rem; margin-bottom: 1.2rem; }
.auth-card .form-group-db { display: flex !important; grid-template-columns: none !important; margin-bottom: .9rem; }
.auth-card .form-input-db { min-height: 44px !important; background: rgba(22,35,55,.82) !important; border-color: rgba(121,148,190,.22) !important; }
.auth-card .auth-btn { width: 100%; }
.landing-body.dark-theme .landing-header { background: rgba(6,13,25,.9); border-color: var(--nova-line); }
.landing-body.dark-theme .landing-footer { background: #050a14; border-color: var(--nova-line); }
.landing-body.dark-theme .footer-bottom { border-color: var(--nova-line); }

/* Public investments/help pages */
.investments-body { display: block; }
.investments-body .browse-hero { padding: 2.2rem 1rem 1.3rem !important; background: radial-gradient(circle at 50% 0%, rgba(38,90,177,.16), transparent 28rem) !important; }
.investments-body .section-container { max-width: 1080px; }
.investment-card, .help-card, .faq-item { background: linear-gradient(145deg, rgba(14,25,44,.95), rgba(8,16,30,.95)) !important; border-color: var(--nova-line) !important; border-radius: 16px !important; }

@media (max-width: 900px) {
    .admin-dashboard-body .dashboard-metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .dashboard-sidebar { width: min(82vw, 280px); left: min(-82vw, -280px); }
    .dashboard-wrapper { margin-left: 0; width: 100%; }
    .dashboard-main-content { padding: 1.25rem .8rem 2.5rem; }
    .panel-title { font-size: 1.45rem; }
    .panel-desc { font-size: .8rem; margin-bottom: 1.15rem; }
    .deposit-step-box { padding: 1rem; }
    .db-grid-half { grid-template-columns: 1fr !important; }
    .user-dashboard-body #panel-referrals [style*="display: flex"] { flex-wrap: wrap; }
    .user-dashboard-body #panel-referrals input + button { width: 100%; }
    .admin-dashboard-body .db-search-filters-bar > div { min-width: 0 !important; width: 100%; }
    .admin-dashboard-body .db-search-filters-bar select { flex: 1; min-width: 120px; }
    .modal-form-group[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .withdraw-action-row { align-items: stretch; flex-direction: column; }
    .secure-transaction-label { justify-content: center; }
}

@media (max-width: 560px) {
    html { font-size: 94%; }
    .dashboard-header { height: 60px; }
    .dashboard-main-content { padding-inline: .7rem; }
    .admin-dashboard-body .dashboard-metrics-row { grid-template-columns: 1fr 1fr; gap: .6rem; }
    body.dark-theme .metric-card-box { padding: .85rem !important; }
    .metric-card-value-txt { font-size: 1.2rem; }
    .metric-card-icon-box { width: 32px; height: 32px; }
    .metric-card-icon-box .material-symbols-outlined { font-size: 1.15rem; }
    .table-responsive-box:not(.active-investments-table-wrap) { margin-inline: -.15rem; }
    .deposits-table-list th { padding: .65rem .7rem !important; font-size: .61rem !important; }
    .deposits-table-list td { padding: .7rem !important; font-size: .71rem !important; }
    .auth-main-wrapper { padding: 1rem .7rem !important; align-items: flex-start !important; }
    .auth-card { padding: 1.15rem !important; border-radius: 15px !important; }
    .auth-logo { margin-bottom: 1rem !important; }
    .auth-logo img { max-width: 92px; }
    .landing-footer { display: none; }
    .withdraw-summary { padding: .65rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body.dark-theme {
    --bg-primary: #050914;
    --bg-card: #0e1526;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --border-color: rgba(56, 189, 248, 0.12);
    --gradient-hero: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 60%), linear-gradient(135deg, #050914 0%, #03060a 100%);
    --gradient-btn: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --gradient-text: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-text-alt: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --accent: #38bdf8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 3px rgba(56, 189, 248, 0.15);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Nova dashboard refresh: reference-led, feature-preserving profile UI */
.dashboard-body {
    background:
        radial-gradient(circle at 50% -10%, rgba(37, 99, 235, .12), transparent 34rem),
        linear-gradient(180deg, #050a15 0%, #070d19 100%);
}

.mobile-header-logo { display: none; }

#panel-dashboard { max-width: 760px; margin-inline: auto; }
.profile-welcome-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.65rem; }
.profile-welcome-title { margin: 0; color: #f8fafc; font-size: clamp(1.65rem, 4vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.profile-account-line { display: flex; align-items: center; gap: .5rem; margin-top: .45rem; color: #71809a; font-size: .9rem; font-weight: 500; }
.profile-account-line #db-account-id { color: #a7b1c3; font-weight: 650; }
.status-separator { width: 4px; height: 4px; border-radius: 50%; background: #3d4a60; }
.account-active { color: #48bd79; font-weight: 650; }

.profile-balance-card,
.referral-share-card,
.active-investments-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(14, 24, 43, .94), rgba(7, 15, 29, .96));
    border: 1px solid rgba(126, 156, 205, .19);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 22px 55px rgba(0,0,0,.25);
}
.profile-balance-card::before {
    content: ''; position: absolute; width: 250px; height: 250px; right: -90px; top: -120px;
    background: radial-gradient(circle, rgba(49, 93, 210, .18), transparent 68%); pointer-events: none;
}
.profile-balance-card { padding: 1.5rem; }
.balance-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.balance-eyebrow { color: #a8b2c4; font-size: 1rem; font-weight: 500; }
.balance-value { color: #f8fafc; font-size: clamp(2.65rem, 5vw, 3.55rem); line-height: 1.08; font-weight: 780; letter-spacing: -.055em; margin-top: .3rem; }
.balance-wallet-icon { width: 64px; height: 64px; border-radius: 17px; display: grid; place-items: center; color: #8fb6ff; background: linear-gradient(145deg, rgba(42,82,177,.4), rgba(24,47,105,.34)); border: 1px solid rgba(87,133,233,.42); box-shadow: inset 0 0 22px rgba(50,94,205,.18); }
.balance-wallet-icon .material-symbols-outlined { font-size: 31px; }
.dashboard-refresh-btn { margin-top: 1.45rem; padding: .78rem 1.15rem; display: inline-flex; align-items: center; gap: .55rem; color: #dbe8ff; font-weight: 650; font-size: .9rem; border: 1px solid rgba(91,139,244,.48); border-radius: 12px; background: linear-gradient(135deg, rgba(38,75,158,.68), rgba(25,50,108,.72)); box-shadow: 0 7px 22px rgba(25,62,148,.17); }
.dashboard-refresh-btn:hover { transform: translateY(-1px); border-color: rgba(126,164,247,.7); background: linear-gradient(135deg, rgba(48,91,188,.78), rgba(30,61,132,.78)); }
.dashboard-refresh-btn .material-symbols-outlined { font-size: 1.25rem; }
.dashboard-refresh-btn.is-loading .material-symbols-outlined { animation: dashboardSpin .8s linear infinite; }
@keyframes dashboardSpin { to { transform: rotate(360deg); } }
.balance-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 1.35rem -1.5rem 0; padding: 1.25rem 1.5rem 0; border-top: 1px solid rgba(126,156,205,.13); }
.balance-stat { min-width: 0; padding-right: 1rem; }
.balance-stat + .balance-stat { padding-left: 1.4rem; border-left: 1px solid rgba(126,156,205,.1); }
.stat-label, .balance-secondary-grid span { display: block; color: #8f9bb0; font-size: .8rem; margin-bottom: .45rem; }
.stat-value { display: block; font-size: clamp(1rem, 3vw, 1.28rem); white-space: nowrap; }
.profit-value { color: #52c986; } .profit-value::after { content: ' ↗'; }
.earned-value { color: #6697ff; } .earned-value::after { content: ' 💰'; font-size: .8em; }
.referral-value { color: #a666f2; } .referral-value::after { content: ' people'; font-size: .7em; color: #7c4bb4; }
.balance-secondary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(126,156,205,.1); }
.balance-secondary-grid div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(2,8,18,.3); padding: .75rem .9rem; border-radius: 10px; }
.balance-secondary-grid span { margin: 0; }
.balance-secondary-grid strong { color: #b9c7de; font-size: .9rem; }

.referral-share-card { margin-top: 1.3rem; padding: 1.35rem 1.65rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.referral-card-label { display: block; color: #93a0b5; font-size: .85rem; margin-bottom: .2rem; }
.referral-share-card #db-referral-code { color: #6c92ff; font: 750 clamp(1.25rem, 4vw, 1.75rem)/1.2 'Inter', sans-serif; letter-spacing: .015em; }
.referral-share-btn { display: flex; align-items: center; gap: .55rem; color: #edf4ff; padding: .78rem 1.15rem; border-radius: 12px; border: 1px solid rgba(91,139,244,.48); background: linear-gradient(135deg, rgba(38,75,158,.68), rgba(25,50,108,.72)); font-weight: 650; }
.referral-share-btn:hover { transform: translateY(-1px); border-color: #6697ff; }
.referral-share-btn .material-symbols-outlined { color: #83a8ff; font-size: 1.3rem; }

.active-investments-card { margin-top: 1.3rem !important; padding: 1.5rem; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title-row .recent-deposits-title { margin: 0 !important; color: #f1f5f9; font-size: 1.2rem !important; }
.section-link-btn { background: transparent; color: #7199ed; display: flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 650; }
.section-link-btn .material-symbols-outlined { font-size: 1rem; }
.active-investments-table-wrap { border: 1px solid rgba(126,156,205,.14) !important; border-radius: 14px !important; background: rgba(3,9,18,.34) !important; }

@media (max-width: 768px) {
    .dashboard-header { height: 64px; padding: 0 .85rem; background: rgba(5,10,21,.88); backdrop-filter: blur(18px); position: relative; }
    .mobile-header-logo { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
    .mobile-header-logo img { display: block; width: 76px; height: auto; }
    .user-card-info { padding: .48rem .65rem !important; border: 1px solid rgba(126,156,205,.25) !important; border-radius: 13px !important; background: rgba(12,20,35,.8) !important; }
    .dashboard-main-content { padding: 1.35rem .85rem 2.5rem; }
    .profile-welcome-row { margin-bottom: 1.1rem; }
    .balance-secondary-grid { grid-template-columns: 1fr; gap: .6rem; }
    .active-investments-card { padding: 1.1rem; }
}

@media (max-width: 520px) {
    .dashboard-main-content { padding-inline: .75rem; }
    .profile-welcome-title { font-size: 1.45rem; letter-spacing: -.025em; }
    .profile-account-line { margin-top: .35rem; font-size: .76rem; }
    .profile-balance-card, .referral-share-card, .active-investments-card { border-radius: 16px; }
    .profile-balance-card { padding: 1rem; }
    .balance-eyebrow { font-size: .85rem; }
    .balance-wallet-icon { width: 46px; height: 46px; border-radius: 13px; }
    .balance-wallet-icon .material-symbols-outlined { font-size: 25px; }
    .balance-value { font-size: clamp(2.25rem, 12vw, 2.75rem); margin-top: .2rem; }
    .dashboard-refresh-btn { margin-top: 1rem; padding: .64rem .85rem; border-radius: 10px; font-size: .78rem; }
    .balance-stats-grid { gap: .35rem; margin: 1rem -1rem 0; padding: 1rem 1rem 0; }
    .balance-stat { padding-right: .25rem; }
    .balance-stat + .balance-stat { padding-left: .45rem; }
    .stat-label { font-size: .64rem; white-space: nowrap; }
    .stat-value { font-size: .82rem; }
    .referral-value::after { content: ''; }
    .balance-secondary-grid { gap: .45rem; margin-top: .85rem; padding-top: .8rem; }
    .balance-secondary-grid div { padding: .62rem .7rem; }
    .balance-secondary-grid span, .balance-secondary-grid strong { font-size: .72rem; }
    .referral-share-card { margin-top: .8rem; padding: .95rem 1rem; }
    .referral-card-label { font-size: .72rem; }
    .referral-share-card #db-referral-code { font-size: 1.1rem; }
    .referral-share-btn { padding: .6rem .75rem; font-size: .78rem; border-radius: 10px; }
    .active-investments-card { margin-top: .8rem !important; padding: .95rem; }
    .section-title-row { margin-bottom: .75rem; }
    .section-title-row .recent-deposits-title { font-size: 1rem !important; }
    .active-investments-table-wrap { overflow: visible !important; border: 0 !important; background: transparent !important; }
    .active-investments-table-wrap::after { display: none !important; }
    .active-investments-table-wrap table { min-width: 0 !important; display: block; }
    .active-investments-table-wrap thead { display: none; }
    .active-investments-table-wrap tbody { display: grid; gap: .65rem; }
    .active-investments-table-wrap tr { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .8rem; padding: .85rem; border: 1px solid rgba(126,156,205,.14) !important; border-radius: 12px; background: rgba(3,9,18,.38); }
    .active-investments-table-wrap td { display: block; padding: 0 !important; min-width: 0; font-size: .76rem !important; }
    .active-investments-table-wrap td:first-child { grid-column: 1 / -1; font-size: .85rem !important; padding-bottom: .55rem !important; border-bottom: 1px solid rgba(126,156,205,.1); }
    .active-investments-table-wrap td:nth-child(2)::before { content: 'Amount'; }
    .active-investments-table-wrap td:nth-child(3)::before { content: 'Daily ROI'; }
    .active-investments-table-wrap td:nth-child(4)::before { content: 'Est. returns'; }
    .active-investments-table-wrap td:nth-child(5)::before { content: 'Status'; }
    .active-investments-table-wrap td:not(:first-child)::before { display: block; color: #71809a; font-size: .61rem; font-weight: 500; margin-bottom: .18rem; }
    .active-investments-table-wrap td[colspan] { grid-column: 1 / -1; text-align: center !important; border: 0; }
}

/* Responsive SMTP administration */
#panel-smtp { max-width: 880px; margin-inline: auto; }
.smtp-settings-card {
    padding: clamp(1rem, 3vw, 1.65rem);
    background: linear-gradient(145deg, rgba(14, 24, 43, .96), rgba(8, 16, 30, .98)) !important;
    border: 1px solid rgba(126, 156, 205, .2) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.smtp-card-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.smtp-card-heading h2 { margin: 0; color: #f5f8fd; font-size: 1.1rem; }
.smtp-card-heading p { margin: .2rem 0 0; color: #8391a6; font-size: .78rem; }
.smtp-heading-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #78a5ff; background: rgba(52, 94, 177, .24); border: 1px solid rgba(100, 149, 239, .3); border-radius: 12px; }
.smtp-status-badge { padding: .36rem .65rem; color: #f2b66d; background: rgba(217, 132, 40, .12); border: 1px solid rgba(227, 154, 70, .24); border-radius: 999px; font-size: .7rem; font-weight: 700; }
.smtp-status-badge.configured { color: #65d394; background: rgba(46, 169, 104, .12); border-color: rgba(63, 191, 123, .28); }
.smtp-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px 180px; gap: .25rem 1rem; }
.smtp-form-grid .form-group-db { min-width: 0; margin-bottom: .85rem; }
.smtp-form-grid .smtp-host-field { grid-column: span 1; }
.notification-settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.25rem 0; }
.notification-setting { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem; border:1px solid #253148; border-radius:12px; background:#0c1220; cursor:pointer; }
.notification-setting.master { border-color:rgba(59,130,246,.45); background:rgba(59,130,246,.08); }
.notification-setting span { display:flex; flex-direction:column; gap:.3rem; color:#f8fafc; }
.notification-setting small { color:#94a3b8; line-height:1.35; }
.notification-setting input { position:absolute; opacity:0; pointer-events:none; }
.notification-setting i { position:relative; width:46px; height:26px; flex:0 0 46px; border-radius:99px; background:#334155; transition:.2s; }
.notification-setting i::after { content:''; position:absolute; width:20px; height:20px; top:3px; left:3px; border-radius:50%; background:#fff; transition:.2s; }
.notification-setting input:checked + i { background:#3b82f6; }
.notification-setting input:checked + i::after { transform:translateX(20px); }
.notification-privacy-note { display:flex; align-items:center; gap:.65rem; margin-top:1rem; padding:.85rem 1rem; color:#93c5fd; background:rgba(59,130,246,.08); border:1px solid rgba(59,130,246,.25); border-radius:10px; font-size:.85rem; }
.smtp-password-wrap { position: relative; }
.smtp-password-wrap .form-input-db { padding-right: 3rem !important; }
.smtp-password-wrap button { position: absolute; top: 50%; right: .45rem; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: #8fa0b8; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.smtp-password-wrap button:hover { color: #fff; background: rgba(255,255,255,.06); }
#smtp-password-help { color: #718096; font-size: .7rem; line-height: 1.4; }
.smtp-security-note { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; padding: .75rem .85rem; color: #91a0b5; background: rgba(4,10,20,.34); border: 1px solid rgba(126,156,205,.12); border-radius: 10px; font-size: .74rem; }
.smtp-security-note .material-symbols-outlined { color: #72a0fa; font-size: 1.05rem; }
.smtp-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }
.smtp-actions button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; }
.smtp-test-btn { padding: .68rem 1.05rem; color: #c9d8f2; background: rgba(28, 48, 78, .65); border: 1px solid rgba(104, 145, 207, .34); border-radius: 10px; font: 650 .82rem/1 inherit; cursor: pointer; }
.smtp-test-btn:hover { color: #fff; border-color: rgba(112,161,237,.65); background: rgba(38,67,110,.72); }
.smtp-test-btn:disabled, #smtp-save-btn:disabled { opacity: .6; cursor: wait; }
.smtp-test-result { display: none; margin-top: .85rem; padding: .7rem .85rem; border-radius: 10px; font-size: .76rem; }
.smtp-test-result.testing, .smtp-test-result.success, .smtp-test-result.error { display: block; }
.smtp-test-result.testing { color: #9eb7dd; background: rgba(53,94,157,.12); border: 1px solid rgba(80,129,203,.2); }
.smtp-test-result.success { color: #67d797; background: rgba(35,155,89,.11); border: 1px solid rgba(52,190,112,.24); }
.smtp-test-result.error { color: #fb8d99; background: rgba(202,57,73,.11); border: 1px solid rgba(235,77,94,.24); }

@media (max-width: 760px) {
    #panel-smtp .panel-desc { margin-bottom: 1rem; }
    .smtp-form-grid { grid-template-columns: 1fr 1fr; gap: .2rem .75rem; }
    .smtp-host-field, .smtp-form-grid .form-group-db:nth-child(4), .smtp-form-grid .form-group-db:nth-child(5), .smtp-form-grid .form-group-db:nth-child(6), .smtp-form-grid .form-group-db:nth-child(7) { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .smtp-settings-card { padding: 1rem; border-radius: 15px !important; }
    .smtp-card-heading { grid-template-columns: auto 1fr; align-items: start; }
    .smtp-status-badge { grid-column: 1 / -1; width: fit-content; }
    .smtp-form-grid { grid-template-columns: 1fr; }
    .smtp-form-grid .form-group-db { grid-column: 1 !important; }
    .smtp-form-grid .form-input-db { min-height: 48px; font-size: 1rem !important; }
    .smtp-security-note { align-items: flex-start; }
    .smtp-actions { flex-direction: column-reverse; }
    .smtp-actions button { width: 100%; }
}

@media (max-width: 380px) {
    .user-name-label { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-header-logo img { width: 68px; }
    .profile-welcome-title { font-size: 1.32rem; }
    .balance-value { font-size: 2.25rem; }
    .stat-label { font-size: .59rem; }
    .stat-value { font-size: .74rem; }
}

/* Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 95%; /* Medium UI scale down */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utility classes for premium gradient highlights */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-alt {
    background: var(--gradient-text-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.font-display {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

input {
    font-family: inherit;
    outline: none;
}

/* --- LIGHT THEME (CineInvest Landing Page) --- */
.landing-body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
}

/* Header */
.landing-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}
.logo-container:hover {
    transform: scale(1.02);
}

.logo-icon-purple {
    color: var(--accent);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-btn);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.profile-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #5046E5, #A855F7);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(80, 70, 229, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
}

.profile-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(80, 70, 229, 0.35);
    color: white;
}

.profile-dropdown-btn.logged-in {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    padding: 0.4rem 0.88rem;
}

.profile-dropdown-btn.logged-in:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.profile-avatar-u {
    width: 24px;
    height: 24px;
    background: var(--gradient-btn);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.hero-banner {
    background: var(--gradient-hero);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    padding: 2.25rem 3.5rem;
    gap: 3rem;
    overflow: visible;
    position: relative;
    transition: all 0.3s ease;
}

.hero-left {
    z-index: 2;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #475569;
    font-weight: 500;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 440px;
    line-height: 1.6;
}

.hero-btn {
    background: #5046E5;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.85rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 14px rgba(80, 70, 229, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 70, 229, 0.4);
    background: #4338CA;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 380px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.12));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1.05); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Category Grid */
.section-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: #f5f3ff;
    color: #4f46e5;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.6rem;
}

.category-card:hover .category-icon-wrapper {
    background-color: #4f46e5;
    color: white;
}

.category-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Featured Investments Grid */
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.featured-header .section-title {
    margin-bottom: 0;
}

.view-all-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all-link:hover {
    color: var(--primary-hover);
}

.investment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .investment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .investment-grid {
        grid-template-columns: 1fr;
    }
}

.investment-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

.investment-img-container {
    width: 100%;
    height: 170px;
    position: relative;
    overflow: hidden;
    background-color: #0b0f19;
}

.investment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.investment-card:hover .investment-img {
    transform: scale(1.06);
}

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

.investment-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.daily-profit-badge {
    background-color: #ECFDF5;
    color: #10B981;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 1.4rem;
    display: inline-block;
    border: none;
}

.investment-meta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.meta-col-left {
    text-align: left;
}

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

.meta-item-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.2rem;
    text-transform: none;
    letter-spacing: 0;
}

.meta-item-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0F172A;
}

.meta-item-value.highlight {
    color: #0F172A;
    font-size: 0.98rem;
    font-weight: 700;
}

.invest-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #5046E5;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: none;
    border: none;
}

.invest-btn:hover {
    background-color: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 70, 229, 0.25);
}

/* Badges / Trust bar */
.trust-bar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.trust-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.trust-item:hover .trust-icon-box {
    transform: scale(1.05);
}

/* Trust Items multi-color light mode highlights */
.trust-item:nth-child(1) .trust-icon-box {
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}
.trust-item:nth-child(2) .trust-icon-box {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981;
}
.trust-item:nth-child(3) .trust-icon-box {
    background-color: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}
.trust-item:nth-child(4) .trust-icon-box {
    background-color: rgba(249, 115, 22, 0.08);
    color: #f97316;
}

.trust-text-box {
    display: flex;
    flex-direction: column;
}

.trust-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    letter-spacing: -0.2px;
}

.trust-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* How It Works Section */
.how-it-works-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
    margin-top: 1rem;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.step-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    border: 1px solid transparent;
}

/* Step cards multi-color light mode highlights */
.step-card:nth-child(1) .step-icon-box {
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.15);
}
.step-card:nth-child(2) .step-icon-box {
    background-color: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.15);
}
.step-card:nth-child(3) .step-icon-box {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.15);
}
.step-card:nth-child(4) .step-icon-box {
    background-color: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.15);
}

.step-number-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.step-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.flow-arrow {
    position: absolute;
    top: 20px;
    right: -24px;
    color: #cbd5e1;
    font-size: 1.2rem;
    pointer-events: none;
}

/* Footer style */
.landing-footer {
    background-color: white;
    border-top: 1px solid #e2e8f0;
    padding: 4rem 0 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-item {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-link-item:hover {
    color: #4f46e5;
}

.footer-newsletter-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-desc {
    font-size: 0.85rem;
    color: #64748b;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex-grow: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    background-color: #f8fafc;
}

.newsletter-btn {
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
}

.newsletter-btn:hover {
    background-color: #4338ca;
}

.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* --- DARK THEME (TRONINVEST Dashboard) --- */
.dashboard-body {
    background-color: #0b0e14;
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Sidebar */
.dashboard-sidebar {
    width: 240px;
    background-color: #111622;
    border-right: 1px solid #1e2538;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: #3b82f6;
    padding: 0 1.5rem 2rem 1.5rem;
    letter-spacing: 0.5px;
}

.logo-icon-blue {
    color: #3b82f6;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 0.75rem;
}

.sidebar-item-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-item-link:hover {
    background-color: #1e2538;
    color: #f1f5f9;
}

.sidebar-item-link.active {
    background-color: #1e2538;
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.sidebar-item-link.logout {
    color: #f87171;
    border-top: 1px solid #1e2538;
    margin-top: 1rem;
    padding-top: 1.25rem;
}

.sidebar-item-link.logout:hover {
    background-color: rgba(248, 113, 113, 0.08);
}

.sidebar-icon {
    font-size: 1.2rem;
}

/* Dashboard Container & Content Panel */
.dashboard-wrapper {
    margin-left: 240px;
    width: calc(100% - 240px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-header {
    background-color: #111622;
    border-bottom: 1px solid #1e2538;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left-toggle {
    background: none;
    color: #94a3b8;
    font-size: 1.4rem;
    display: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.header-right-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.user-card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #1e2538;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    border: 1px solid #2e384e;
}

.user-text-details {
    display: flex;
    flex-direction: column;
}

.user-name-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
}

.user-balance-value {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Dashboard Content */
.dashboard-main-content {
    flex-grow: 1;
    padding: 2.25rem 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.dashboard-panel-view {
    display: none;
}

.dashboard-panel-view.active {
    display: block;
    animation: panelFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.panel-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Sections of Deposit Panel */
.deposit-step-box {
    background-color: #111622;
    border: 1px solid #1e2538;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.step-title-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.25rem;
}

/* Option grids for amounts */
.deposit-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.amount-card-opt {
    background-color: #171d2c;
    border: 1px solid #242e47;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-card-opt:hover {
    border-color: #3b82f6;
    background-color: #1c2336;
}

.amount-card-opt.active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
}

.amount-card-icon {
    font-size: 1.4rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.amount-card-opt:nth-child(2) .amount-card-icon {
    color: #a855f7;
}

.amount-card-opt:nth-child(3) .amount-card-icon {
    color: #10b981;
}

.amount-card-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.amount-card-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.amount-select-btn {
    display: inline-block;
    background-color: #1e2538;
    color: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1.25rem;
    border-radius: 6px;
    border: 1px solid #2e384e;
}

.amount-card-opt.active .amount-select-btn {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.amount-card-opt:nth-child(2).active .amount-select-btn {
    background-color: #a855f7;
    border-color: #a855f7;
}

.amount-card-opt:nth-child(3).active .amount-select-btn {
    background-color: #10b981;
    border-color: #10b981;
}

.amount-checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.amount-card-opt.active .amount-checkmark {
    display: flex;
}

.amount-card-opt:nth-child(2).active .amount-checkmark {
    background-color: #a855f7;
}

.amount-card-opt:nth-child(3).active .amount-checkmark {
    background-color: #10b981;
}

/* Custom amount alert bar */
.custom-amount-alert-bar {
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-alert-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.custom-alert-icon {
    color: #3b82f6;
    font-size: 1.25rem;
}

.custom-amt-btn {
    background: none;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 6px;
}

.custom-amt-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Send payment wrapper */
.wallet-address-wrapper {
    background-color: #171d2c;
    border: 1px solid #242e47;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wallet-tron-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.wallet-address-info-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wallet-address-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.wallet-address-input-group {
    display: flex;
    gap: 0.5rem;
}

.wallet-address-value-txt {
    flex-grow: 1;
    background-color: #0b0e14;
    border: 1px solid #1e2538;
    color: #f1f5f9;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
}

.copy-addr-btn {
    background-color: #3b82f6;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.copy-addr-btn:hover {
    background-color: #2563eb;
}

/* Yellow warning box */
.payment-warning-box {
    background-color: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
}

.warning-box-title {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.warning-list-item {
    font-size: 0.8rem;
    color: #fbbf24;
    position: relative;
    padding-left: 1rem;
}

.warning-list-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fbbf24;
}

/* Section 3 block */
.payment-instruction-msg {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
}

.inst-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.inst-txt-box {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Recent deposits table */
.recent-deposits-section {
    background-color: #111622;
    border: 1px solid #1e2538;
    border-radius: 16px;
    padding: 1.75rem;
}

.recent-deposits-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.25rem;
}

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

.deposits-table-list {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.deposits-table-list th, .deposits-table-list td {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #1e2538;
}

.deposits-table-list th {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.deposits-table-list td {
    color: #cbd5e1;
}

.deposit-tx-hash {
    font-family: monospace;
    color: #94a3b8;
}

/* Status badges */
.status-badge-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.status-badge-lbl.confirmed {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge-lbl.pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge-lbl.failed {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Dashboard footer */
.dashboard-footer {
    background-color: #111622;
    border-top: 1px solid #1e2538;
    padding: 1.5rem 2rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: left;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #1e293b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: #10b981;
}

/* Modal style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content-box {
    background-color: #111622;
    border: 1px solid #1e2538;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
}

.modal-close-btn {
    background: none;
    color: #64748b;
    font-size: 1.25rem;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.modal-input-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.modal-text-input {
    background-color: #0b0e14;
    border: 1px solid #1e2538;
    color: #f1f5f9;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.modal-submit-btn {
    width: 100%;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.modal-submit-btn:hover {
    background-color: #2563eb;
}

/* Material symbol styling helper */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Other simulated dashboard panels */
.dashboard-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card-box {
    background-color: #111622;
    border: 1px solid #1e2538;
    border-radius: 16px;
    padding: 1.5rem;
}

.metric-card-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.metric-card-val-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-card-value-txt {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
}

.metric-card-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-card-box:nth-child(2) .metric-card-icon-box {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-card-box:nth-child(3) .metric-card-icon-box {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Help desk and other simple forms */
.support-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-db {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-label-db {
    font-size: 0.85rem;
    color: #94a3b8;
}

.form-input-db {
    background-color: #171d2c;
    border: 1px solid #242e47;
    border-radius: 8px;
    padding: 0.75rem;
    color: #f1f5f9;
    font-size: 0.9rem;
}

.form-btn-db {
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    align-self: flex-start;
}

.form-btn-db:hover {
    background-color: #2563eb;
}

.db-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.db-list-box {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.db-list-item {
    background-color: #171d2c;
    border: 1px solid #1e2538;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-item-primary {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.9rem;
}

.db-item-sec {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Mobile toggle button (hidden on desktop) */
.nav-toggle-btn {
    display: none;
}

.investment-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* --- MOBILE RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Mobile Layouts */
@media (max-width: 992px) {
    .container-header {
        padding: 0.88rem 1rem;
    }
    
    /* Hero Banner layout */
    .hero-banner {
        grid-template-columns: 1fr;
        padding: 2.25rem 1.75rem;
        gap: 1.75rem;
        text-align: center;
    }
    
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 1.5rem auto;
        font-size: 0.88rem;
    }
    
    .hero-image {
        width: 100%;
        max-width: 340px;
        transform: none;
        animation: none;
    }
    
    /* Category grids */
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    /* Investment grid */
    .investment-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.25rem;
    }
    
    /* Trust bar */
    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    /* How it works */
    .how-it-works-flow {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .flow-arrow {
        display: none;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .notification-settings-grid { grid-template-columns:1fr; }
    /* Responsive Hero Section rules for 768px */
    .hero-section {
        margin: 1.25rem auto;
        padding: 0 1rem;
    }
    
    .hero-banner {
        padding: 1.75rem 1.25rem;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.65rem;
    }
    
    .hero-image {
        max-width: 280px;
    }

    /* Header nav on landing page */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 1.5rem;
        padding: 0.25rem;
        cursor: pointer;
    }
    
    .header-right {
        gap: 0.75rem;
    }
    
    .profile-dropdown-btn.logged-in span:not(.profile-avatar-u):not(.material-symbols-outlined) {
        display: none; /* Hide button text on mobile only when logged in */
    }
    
    /* Client Portal & Admin Dashboards Layouts */
    .dashboard-sidebar {
        left: -240px;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .dashboard-header {
        padding: 0 1rem;
    }
    
    .header-left-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    /* Sidebar overlay functionality */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(11, 14, 20, 0.7);
        backdrop-filter: blur(4px);
        z-index: 95;
        display: none;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Dashboard main content */
    .dashboard-main-content {
        padding: 1.5rem 1rem;
    }
    
    /* Metrics Row */
    .dashboard-metrics-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Half Grid structures */
    .db-grid-half {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Investment plans inside portal */
    .investment-plan-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Deposit panels elements styling */
    .deposit-amount-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Payout address display */
    .wallet-address-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .wallet-address-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copy-addr-btn {
        justify-content: center;
        padding: 0.75rem;
    }
    
    /* Table modifications for swipe scroll message */
    .table-responsive-box {
        position: relative;
    }
    
    .table-responsive-box::after {
        content: "Swipe left/right to view full table";
        display: block;
        font-size: 0.7rem;
        color: var(--text-muted);
        text-align: right;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    .hero-banner {
        grid-template-columns: 1fr;
        padding: 2.25rem 1.25rem;
        gap: 1.75rem;
        text-align: center;
        border-radius: 20px;
        background-color: #F3F2FF;
    }
    
    /* Responsive Hero Section rules for 576px */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        max-width: 240px;
        margin: 0 auto;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    /* Featured Investments Grid */
    .investment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Trust bar */
    .trust-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    /* How it works */
    .how-it-works-flow {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Footer elements collapse fully */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 0.65rem;
    }
}

/* --- GOLD LOGO STYLES --- */
.logo-img-gold {
    height: 42px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.3));
}

.auth-logo-img-gold {
    height: 60px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 3px 8px rgba(212, 175, 55, 0.35));
}

/* --- DARK THEME COLOR OVERRIDES --- */
body.dark-theme {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-secondary);
}

body.dark-theme .landing-header {
    background-color: rgba(6, 8, 15, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-theme .logo-container {
    color: var(--text-primary);
}

body.dark-theme .nav-link {
    color: #94A3B8;
}

body.dark-theme .nav-link:hover, body.dark-theme .nav-link.active {
    color: #F8FAFC;
}

body.dark-theme .profile-dropdown-btn.logged-in {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-theme .profile-dropdown-btn.logged-in:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

body.dark-theme .nav-toggle-btn {
    color: var(--text-secondary);
}

body.dark-theme .hero-banner {
    background: var(--gradient-hero);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-theme .hero-title {
    color: #F8FAFC;
}

body.dark-theme .hero-subtitle {
    color: var(--text-secondary);
}

body.dark-theme .section-title {
    color: var(--text-primary);
}

body.dark-theme .section-subtitle {
    color: var(--text-secondary);
}

body.dark-theme .category-card {
    background-color: rgba(12, 15, 29, 0.65);
    border-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

body.dark-theme .category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

body.dark-theme .category-title {
    color: var(--text-primary);
}

body.dark-theme .category-desc {
    color: var(--text-secondary);
}

body.dark-theme .investment-card {
    background-color: rgba(12, 15, 29, 0.65);
    border-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .investment-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15), 0 0 2px rgba(255, 255, 255, 0.15);
}

body.dark-theme .investment-img-container {
    background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .investment-img {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

body.dark-theme .investment-card:hover .investment-img {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

body.dark-theme .investment-title {
    color: var(--text-primary);
}

body.dark-theme .daily-profit-badge {
    background-color: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
}

body.dark-theme .investment-meta-grid {
    border-top: 1px solid var(--border-color);
}

body.dark-theme .meta-item-label {
    color: var(--text-muted);
}

body.dark-theme .meta-item-value {
    color: var(--text-secondary);
}

body.dark-theme .meta-item-value.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .trust-bar {
    background-color: rgba(12, 15, 29, 0.65);
    border-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

body.dark-theme .trust-title {
    color: var(--text-primary);
}

body.dark-theme .trust-desc {
    color: var(--text-secondary);
}

body.dark-theme .trust-item:nth-child(1) .trust-icon-box {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
body.dark-theme .trust-item:nth-child(2) .trust-icon-box {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
body.dark-theme .trust-item:nth-child(3) .trust-icon-box {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}
body.dark-theme .trust-item:nth-child(4) .trust-icon-box {
    background-color: rgba(249, 115, 22, 0.15);
    color: #ff9800;
}

body.dark-theme .step-card {
    background-color: #111827;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.dark-theme .step-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

body.dark-theme .step-card:nth-child(1) .step-icon-box {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}
body.dark-theme .step-card:nth-child(2) .step-icon-box {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}
body.dark-theme .step-card:nth-child(3) .step-icon-box {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
body.dark-theme .step-card:nth-child(4) .step-icon-box {
    background-color: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.3);
}

body.dark-theme .step-number-title {
    color: #f8fafc;
}

body.dark-theme .step-desc {
    color: #94a3b8;
}

body.dark-theme .flow-arrow {
    color: #475569;
}

body.dark-theme .landing-footer {
    background-color: #0b0f19;
    border-top: 1px solid #1e293b;
}

body.dark-theme .footer-col-title {
    color: #f8fafc;
}

body.dark-theme .footer-link-item {
    color: #94a3b8;
}

body.dark-theme .footer-link-item:hover {
    color: #8b5cf6;
}

body.dark-theme .footer-brand-desc, body.dark-theme .newsletter-desc {
    color: #64748b;
}

body.dark-theme .newsletter-input {
    background-color: #111827;
    border-color: #1f2937;
    color: #f8fafc;
}

body.dark-theme .footer-bottom {
    border-top-color: #1e293b;
    color: #64748b;
}

/* Auth card specific dark overrides (login page) */
body.dark-theme .auth-card {
    background-color: #111827;
    border-color: #1f2937;
}

body.dark-theme .form-label-db {
    color: #cbd5e1;
}

body.dark-theme .form-input-db {
    background-color: #1f2937;
    border-color: #374151;
    color: #f8fafc;
}

body.dark-theme .form-input-db:focus {
    border-color: #3b82f6;
}

body.dark-theme .auth-tab-btn {
    color: #94a3b8;
}

body.dark-theme .auth-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

body.dark-theme .demo-credentials-box {
    background: #1f2937;
    border-color: #374151;
}

body.dark-theme .demo-role {
    color: #94a3b8;
}

body.dark-theme .demo-code {
    background-color: #1e1b4b;
    color: #818cf8;
    border-color: #312e81;
}

body.dark-theme .demo-code:hover {
    background-color: #312e81;
}

/* Theme toggle button styling */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #4b5563;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

body.dark-theme .theme-toggle-btn {
    color: #94a3b8;
}

body.dark-theme .theme-toggle-btn:hover {
    background-color: #1f2937;
    color: #f8fafc;
}

/* Profile Dropdown Show Rule */
.profile-dropdown-menu.show {
    display: block !important;
}

/* Browse Investments Hero Banner Styling */
.browse-hero {
    padding: 8rem 0 4rem 0;
    text-align: center;
    background-image: radial-gradient(circle at 10% 20%, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.3) 90%);
    transition: all 0.3s ease;
}
body.dark-theme .browse-hero {
    background-image: radial-gradient(circle at 10% 20%, rgba(26, 31, 46, 0.8) 0%, rgba(11, 14, 20, 0.3) 90%);
    border-bottom: 1px solid #1e2538;
}

.browse-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}
body.dark-theme .browse-hero-title {
    color: #f8fafc;
}

.browse-hero-desc {
    font-size: 1.15rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
body.dark-theme .browse-hero-desc {
    color: #94a3b8;
}

/* Pagination Control Button Styling */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pagination-btn:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
.pagination-btn:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
}
.pagination-btn.num-btn {
    width: 38px;
    height: 38px;
    padding: 0;
}
.pagination-btn.num-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

body.dark-theme .pagination-btn {
    background-color: #111622;
    border-color: #1e2538;
    color: #94a3b8;
}
body.dark-theme .pagination-btn:hover:not(:disabled) {
    background-color: #1e2538;
    color: #f1f5f9;
    border-color: #3b82f6;
}
body.dark-theme .pagination-btn:disabled {
    background-color: #0b0e14;
    color: #4b5563;
    border-color: #1e2538;
}
body.dark-theme .pagination-btn.num-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Support Chat Styling */
.chat-container {
    background-color: #111622;
    border: 1px solid #1e2538;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 500px;
    max-width: 800px;
    margin: 1.5rem auto;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.chat-header {
    background-color: #171d2c;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #1e2538;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

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

.chat-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.chat-status-text {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #0b0e14;
}

/* Custom Scrollbar for Chat Messages */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #1e2538;
    border-radius: 3px;
}

.chat-bubble-wrapper {
    display: flex;
    width: 100%;
    margin-bottom: 0.25rem;
}

.chat-bubble-wrapper.user {
    justify-content: flex-end;
}

.chat-bubble-wrapper.support {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-bubble-wrapper.user .chat-bubble {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-bubble-wrapper.support .chat-bubble {
    background-color: #171d2c;
    color: #cbd5e1;
    border-bottom-left-radius: 2px;
    border: 1px solid #1e2538;
}

.chat-bubble-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    text-align: right;
    display: block;
}

.chat-bubble-wrapper.support .chat-bubble-time {
    color: #64748b;
}

.chat-input-area {
    padding: 1rem 1.5rem;
    background-color: #171d2c;
    border-top: 1px solid #1e2538;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input {
    flex-grow: 1;
    background-color: #0b0e14;
    border: 1px solid #1e2538;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #f1f5f9;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

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

.chat-send-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background-color: #2563eb;
}

.chat-send-btn:disabled {
    background-color: #1e2538;
    color: #64748b;
    cursor: not-allowed;
}

.chat-send-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.chat-empty-icon {
    font-size: 3rem;
    color: #3b82f6;
    opacity: 0.7;
}

.chat-empty-text {
    font-size: 0.95rem;
    max-width: 320px;
}

/* =========================================================
   NEW PLATFORM CONVERSION FEATURES (ROI CALC, TICKER, VIP)
   ========================================================= */

/* 1. Floating Live Social Proof Ticker */
.live-social-ticker {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
    pointer-events: none;
}

.live-social-ticker.show {
    transform: translateY(0);
    opacity: 1;
}

.ticker-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DFC15D, #8B6508);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F172A;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ticker-content {
    display: flex;
    flex-direction: column;
}

.ticker-text {
    font-size: 0.82rem;
    color: #F8FAFC;
    font-weight: 600;
    line-height: 1.35;
}

.ticker-text strong {
    color: #10B981;
}

.ticker-time {
    font-size: 0.7rem;
    color: #94A3B8;
    margin-top: 0.15rem;
}

/* 2. Interactive 24-Hour ROI Calculator Section */
.roi-calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    max-width: 960px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

body.dark-theme .roi-calculator-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.roi-calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 850px) {
    .roi-calc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.roi-slider-wrapper {
    margin: 1.75rem 0;
}

.roi-amount-display {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

body.dark-theme .roi-amount-display {
    color: var(--primary);
}

.roi-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #E2E8F0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

body.dark-theme .roi-slider {
    background: #334155;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

.roi-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.roi-quick-btn {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #334155;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-theme .roi-quick-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.roi-quick-btn:hover, .roi-quick-btn.active {
    background: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
}

.roi-results-box {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

body.dark-theme .roi-results-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.roi-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.85rem;
}

body.dark-theme .roi-result-row {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.roi-result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.roi-result-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.roi-result-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.roi-result-value.gold {
    color: #10B981;
    font-size: 1.1rem;
}

body.dark-theme .roi-result-value.gold {
    color: #34D399;
}

/* 3. Daily Check-in & VIP Cards */
.daily-checkin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

body.dark-theme .daily-checkin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
}

.checkin-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin: 1.2rem 0;
}

@media (max-width: 600px) {
    .checkin-days-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.checkin-day-pill {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 0.6rem 0.3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

body.dark-theme .checkin-day-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.checkin-day-pill.claimed {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10B981;
}

.checkin-day-pill.today {
    background: rgba(79, 70, 229, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.25);
}

.checkin-day-num {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
}

.checkin-day-reward {
    font-size: 0.78rem;
    color: #10B981;
    font-weight: 800;
}

body.dark-theme .checkin-day-reward {
    color: #34D399;
}

.vip-club-badge-banner {
    background: var(--gradient-btn);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: white;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
    .vip-club-badge-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================
   POPULAR CATEGORIES SECTION (REFERENCE SCREENSHOT DESIGN)
   ========================================================= */
.popular-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
    .popular-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .popular-categories-grid {
        grid-template-columns: 1fr;
    }
}

.pop-cat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
}

.pop-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.15);
    border-color: var(--primary);
}

.pop-cat-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    transition: all 0.3s ease;
}

body.dark-theme .pop-cat-icon-circle {
    background-color: rgba(139, 92, 246, 0.15);
}

.pop-cat-card:hover .pop-cat-icon-circle {
    background-color: var(--primary);
}

.pop-cat-icon {
    font-size: 1.75rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.pop-cat-card:hover .pop-cat-icon {
    color: #FFFFFF;
}

.pop-cat-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
    letter-spacing: -0.2px;
}

.pop-cat-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    max-width: 180px;
}

/* Category Filters and Pagination UI */
.category-filters-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1.5px);
}

.filter-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

body.dark-theme .filter-btn, .dark-theme .filter-btn {
    background-color: #1f2937;
    border-color: #374151;
    color: #cbd5e1;
}

body.dark-theme .filter-btn:hover, .dark-theme .filter-btn:hover {
    background-color: #374151;
    color: #f8fafc;
}

body.dark-theme .filter-btn.active, .dark-theme .filter-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .category-filters-wrapper {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }
}

/* Live Transaction Popups (FOMO Toasts) */
.live-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.live-toast {
    background-color: #111622;
    border: 1px solid #1e2538;
    color: #f8fafc;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.88rem;
    min-width: 280px;
    max-width: 360px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, toastSlideOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) 4.6s forwards;
    pointer-events: auto;
}

body.dark-theme .live-toast {
    background-color: #0c0f1d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.live-toast-icon.withdraw {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.live-toast-content {
    flex-grow: 1;
}

.live-toast-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.live-toast-msg {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.live-toast-msg strong {
    color: #ffffff;
}

@keyframes toastSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

/* Glassmorphism adjustments for metric-card-box in dark-theme & admin dashboard */
body.dark-theme .metric-card-box, body.dashboard-body .metric-card-box {
    background: rgba(12, 15, 29, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

/* --- PREMIUM MOBILE RESPONSIVE OPTIMIZATIONS (320px - 480px) --- */
@media (max-width: 480px) {
    /* Header layout fixes to prevent wrapping */
    .container-header {
        padding: 0.65rem 0.75rem !important;
    }
    
    .header-right {
        gap: 0.4rem !important;
    }
    
    .profile-dropdown-btn {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
        gap: 0.35rem !important;
    }
    
    .profile-avatar-u {
        width: 20px !important;
        height: 20px !important;
    }
    
    .profile-avatar-u svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .logo-text {
        font-size: 1.1rem !important;
    }

    /* Popular categories 2-column grid layout */
    .popular-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.75rem !important;
    }
    
    .pop-cat-card {
        padding: 1.25rem 0.75rem !important;
        border-radius: 12px !important;
    }
    
    .pop-cat-card span.material-symbols-outlined {
        font-size: 1.85rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    .pop-cat-card h3 {
        font-size: 0.85rem !important;
    }
    
    .pop-cat-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    /* Compact featured investments cards */
    .investment-img-container {
        height: 140px !important;
    }
    
    .investment-content {
        padding: 1rem !important;
    }
    
    .investment-title {
        font-size: 1.1rem !important;
    }
    
    .daily-profit-badge {
        font-size: 0.75rem !important;
        padding: 0.2rem 0.6rem !important;
    }
    
    .investment-meta-grid {
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .meta-label {
        font-size: 0.7rem !important;
    }
    
    .meta-val {
        font-size: 0.88rem !important;
    }
    
    .investment-card .invest-btn {
        padding: 0.55rem !important;
        font-size: 0.82rem !important;
    }

    /* Compact ROI Calculator */
    .roi-calculator-card {
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
    }
    
    .roi-amount-display {
        font-size: 1.5rem !important;
    }
    
    .roi-quick-btn {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.75rem !important;
    }
    
    .roi-results-box {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }
    
    .roi-result-row {
        padding-bottom: 0.6rem !important;
    }
    
    .roi-result-label {
        font-size: 0.75rem !important;
    }
    
    .roi-result-value {
        font-size: 0.88rem !important;
    }
    
    .roi-result-value.gold {
        font-size: 1rem !important;
    }
}

/* 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;
}

/* 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;
}

.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-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;
}

@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;
    }
}

@media (max-width: 900px) {
    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -290px !important;
        width: min(82vw, 270px) !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        overflow-y: auto;
        transition: left .25s ease !important;
    }
    .dashboard-sidebar.active, .dashboard-sidebar.mobile-open { left: 0 !important; }
    .dashboard-wrapper { width: 100% !important; margin-left: 0 !important; }
    .header-left-toggle { display: flex !important; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .sidebar-overlay.active { display: block !important; position: fixed; inset: 0; z-index: 9998; background: rgba(1,5,12,.72); backdrop-filter: blur(4px); }
    body:has(.dashboard-sidebar.active) { overflow: hidden; }
}

/* --- MULTI-COLOR PROFESSIONAL AUTH CARD UI/UX --- */
.auth-main-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2.5rem 1rem;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.15), transparent 40rem),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.12), transparent 35rem),
                radial-gradient(circle at 15% 85%, rgba(251, 191, 36, 0.1), transparent 30rem),
                #050a14 !important;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(145deg, rgba(17, 22, 34, 0.95), rgba(13, 17, 27, 0.98)) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: 20px !important;
    padding: 2.25rem 2rem !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(59, 130, 246, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24 0%, #3b82f6 50%, #10b981 100%);
}

.auth-tabs {
    display: flex;
    background: rgba(12, 16, 26, 0.8) !important;
    border: 1px solid #1e2538 !important;
    border-radius: 12px !important;
    padding: 4px !important;
    margin: 1.5rem 0 1.75rem !important;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.65rem 1rem !important;
    border: none !important;
    background: none !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    border-radius: 9px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35) !important;
}

.auth-btn {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #7c3aed 100%) !important;
    border: 1px solid rgba(147, 197, 253, 0.3) !important;
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5) !important;
}

.forgot-link {
    color: #fbbf24 !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-decoration: none !important;
}

.forgot-link:hover {
    text-decoration: underline !important;
    color: #f59e0b !important;
}

/* Reference-matched user dashboard: overview, transactions and withdraw */
.user-dashboard-body .dashboard-main-content {
    max-width: 1040px;
}

.reference-panel-heading {
    position: relative;
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.reference-panel-heading::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -85px;
    right: -45px;
    width: 290px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 126, 196, .22), rgba(24, 73, 132, .08) 43%, transparent 72%);
}

.reference-panel-heading .panel-desc {
    margin-bottom: 0;
}

.reference-panel-art {
    flex: 0 0 auto;
    margin-right: 3.5rem;
    color: rgba(76, 201, 228, .3);
    font-size: 86px !important;
    filter: drop-shadow(0 0 18px rgba(44, 173, 221, .28));
    transform: rotate(-7deg);
}

.withdraw-panel-heading .reference-panel-art {
    color: rgba(72, 184, 225, .34);
    font-size: 76px !important;
}

.transactions-card {
    padding: clamp(1rem, 2.6vw, 1.65rem) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, rgba(14, 24, 43, .95), rgba(7, 15, 29, .97)) !important;
    border-color: rgba(98, 151, 203, .3) !important;
}

.transactions-table-wrap {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

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

.transactions-table-wrap .deposits-table-list th {
    background: transparent !important;
    color: #8592a7 !important;
}

.transactions-table-wrap .deposits-table-list td {
    background: transparent !important;
}

.table-scroll-hint {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    margin: .8rem 0 0;
    color: #68758a;
    font-size: .72rem;
}

.table-scroll-hint .material-symbols-outlined { font-size: 1rem; }

.user-dashboard-body #panel-withdraw .deposit-step-box {
    border-radius: 22px !important;
    border-color: rgba(98, 151, 203, .28) !important;
    background: linear-gradient(145deg, rgba(14, 24, 43, .96), rgba(8, 16, 30, .98)) !important;
}

.user-dashboard-body #panel-withdraw .form-label-db {
    color: #d8deea;
    font-size: .88rem;
}

.user-dashboard-body #panel-withdraw .form-input-db {
    min-height: 54px;
    font-size: 1rem !important;
    border-color: rgba(126, 156, 205, .28) !important;
}

.user-dashboard-body #panel-withdraw .form-btn-db {
    min-width: 210px;
    min-height: 50px;
    background: linear-gradient(135deg, #1598ff, #2d79f4) !important;
    box-shadow: 0 8px 25px rgba(20, 139, 244, .3), 0 0 22px rgba(49, 135, 241, .16);
}

@media (max-width: 768px) {
    .user-dashboard-body .dashboard-header-context { display: none; }
    .reference-panel-heading { min-height: 142px; align-items: flex-start; padding-top: 1.15rem; }
    .reference-panel-heading .panel-title { font-size: 2rem; }
    .reference-panel-heading .panel-desc { max-width: 78%; font-size: .9rem; line-height: 1.5; }
    .reference-panel-art { position: absolute; right: -.8rem; top: .5rem; margin: 0; font-size: 102px !important; opacity: .72; }
    .table-scroll-hint { display: flex; }
    .transactions-card { padding: 1rem !important; }
    .user-dashboard-body #panel-withdraw { max-width: 100%; }
    .user-dashboard-body #panel-withdraw .deposit-step-box { padding: 1.35rem !important; }
}

@media (max-width: 520px) {
    .user-dashboard-body .dashboard-main-content { padding: 1.15rem .8rem 2.5rem; }
    .user-dashboard-body .dashboard-header { padding-inline: .8rem; }
    .user-dashboard-body .user-card-info { max-width: 138px; }
    .user-dashboard-body .user-name-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .reference-panel-heading { min-height: 132px; }
    .reference-panel-heading .panel-title { font-size: 1.9rem; }
    .reference-panel-heading .panel-desc { max-width: 88%; font-size: .84rem; }
    .reference-panel-art { right: -1.4rem; top: .85rem; font-size: 88px !important; opacity: .48; }
    .transactions-card { margin-inline: 0; border-radius: 17px !important; }
    .transactions-table-wrap .deposits-table-list { min-width: 620px; }
    .transactions-table-wrap .deposits-table-list th { padding: .7rem .8rem !important; }
    .transactions-table-wrap .deposits-table-list td { padding: .75rem .8rem !important; }
    .user-dashboard-body #panel-withdraw .deposit-step-box { padding: 1.1rem !important; border-radius: 17px !important; }
    .user-dashboard-body #panel-withdraw .form-input-db { min-height: 50px; font-size: 1rem !important; }
    .user-dashboard-body #panel-withdraw .form-btn-db { width: 100%; min-width: 0; }
}
