/**
 * ===================================
 * CitadelVest Pro - Index / Dashboard Extras
 * File: public/css/index-extras.css
 * Extracted from inline <style> in index.html
 *
 * Contains:
 *   - Email Verification Banner
 * ===================================
 */
 


 /* ── Promo Code Floating Tab + Modal ────────────────────── */

#promoFloatingTab:hover > div {
    transform: translateX(4px);
    box-shadow: 5px 0 20px rgba(var(--primary-rgb), .1);
}

#promoModal {
    display: none;
}

#promoModal.show {
    display: flex;
}

@keyframes promoSlideIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 480px) {
    #promoFloatingTab > div {
        padding: 8px 5px;
    }
}





/* ── Email Verification Banner (Task 3c) ────────────────── */

/* ✅ Task 3c — Email Verification Banner */
#emailVerifyBanner {
    display: none; /* shown by JS when needed */
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #ff9800, #f57c00);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

#emailVerifyBanner .banner-text {
    flex: 1;
    min-width: 200px;
}

#emailVerifyBanner .resend-btn {
    background: white;
    color: #f57c00;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

#emailVerifyBanner .resend-btn:hover:not(:disabled) {
    background: #fff3e0;
    transform: scale(1.03);
}

#emailVerifyBanner .resend-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#emailVerifyBanner .dismiss-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

#emailVerifyBanner .dismiss-btn:hover {
    background: rgba(255,255,255,0.15);
}

@media (max-width: 480px) {
    #emailVerifyBanner { font-size: 0.8rem; padding: 10px 12px; }
}

/* EXTRACTED CSS */

/**
 * ===================================
 * CitadelVest Pro — Index Page Extras
 * File: public/css/index-extras.css
 *
 * Page-specific styles for index.html (Dashboard).
 * Extracted from inline <style> blocks and inline style
 * attributes — keeping index.html clean for marketplace submission.
 *
 * Load order: after all shared CSS, before modal-redesign.css
 * ===================================
 */


/* ══════════════════════════════════════════
   1. INVEST STATS ROW
   (extracted from inline <style> block)
══════════════════════════════════════════ */
.invest-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .invest-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .invest-stats-row > div {
        padding: 0.25rem 0;
    }
    .invest-stats-row > div:last-child {
        grid-column: 1 / 2;
    }
    .invest-stats-row h1 {
        font-size: 1.3rem !important;
    }
    .invest-stats-row > div:nth-child(2) {
        border-left: none !important;
        border-right: none !important;
    }
}


/* ══════════════════════════════════════════
   2. ACTIVE INVESTMENT CARD
   Replaces all inline styles on the component.
   Note: display:none on #activeInvestmentCard
   stays inline — JS toggles it.
══════════════════════════════════════════ */
#activeInvestmentCard {
    margin-bottom: 2rem;
}

/* Gradient card shell */
.invest-card-inner {
    background: var(--brand-gradient);
    padding: 2rem;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Decorative background circle */
.invest-card-decor {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

/* Content layer above decor */
.invest-card-content {
    position: relative;
    z-index: 1;
}

.invest-card-content h2 {
    margin-bottom: 1.5rem;
}

/* Stat columns */
.invest-stat-col {
    text-align: center;
}

.invest-stat-col--middle {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.invest-stat-label {
    opacity: 0.8;
    font-size: 0.9rem;
    display: block;
}

.invest-stat-value {
    margin: 0.5rem 0;
    font-size: 2rem;
}

.invest-stat-note {
    opacity: 0.7;
}

/* Profit colouring */
#profitMade {
    color: #4CAF50;
}

#profitPercent {
    display: inline-block;
    opacity: 0.9;
    background: rgba(76, 175, 80, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Progress bar */
.invest-progress-track {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

#investmentProgress {
    background: #4CAF50;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Status / timer row */
.invest-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#investmentStatus {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

#investmentTimer {
    opacity: 0.7;
}

/* Withdraw button — CSS :hover replaces onmouseover/onmouseout */
#withdrawBtn {
    background: var(--brand-gradient) !important;
    color: var(--card-bg);
    padding: 12px 32px;     
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-main, 'Poppins', sans-serif);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#withdrawBtn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* ══════════════════════════════════════════
   3. CURRENCY PICKER ROW
══════════════════════════════════════════ */
.currency-picker-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
    align-items: center;
    gap: 0.5rem;
}

.currency-picker-label {
    font-size: 0.82rem;
    color: var(--text-muted, #888);
}


/* ══════════════════════════════════════════
   4. PROMO CODE FLOATING TAB
   Replaces all inline styles on #promoFloatingTab
   and its children. Hover rule already exists in
   new-dashboard.css — only base styles added here.
══════════════════════════════════════════ */
#promoFloatingTab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8888;
    cursor: pointer;
}

#promoFloatingTab > div {
    background: var(--brand-gradient);
    color: white;
    padding: 10px 6px;
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 3px 0 16px rgba(var(--primary-rgb), 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.promo-tab-icon {
    font-size: 1.1rem;
    writing-mode: initial;
}

.promo-tab-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    #promoFloatingTab > div {
        padding: 8px 5px;
    }
}


/* ══════════════════════════════════════════
   5. PROMO CODE MODAL INTERNALS
══════════════════════════════════════════ */

/* Pink icon background in header */
.promo-modal-icon {
    background: rgba(233, 30, 99, 0.1) !important;
}

.promo-modal-icon .material-icons-sharp {
    color: #e91e63 !important;
}

/* Mono-spaced promo input */
#promoCodeInput {
    font-family: 'DM Mono', monospace;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Result message base styles
   display:none stays inline — JS also sets background/color dynamically */
#promoResultMsg {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
}

/* Bonus history toggle button */
#myBonusesToggleBtn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

#myBonusesArrow {
    font-size: 1rem;
}

/* Bonus history list — display:none stays inline (JS-controlled) */
#myBonusesList {
    margin-top: 0.75rem;
}


/* ══════════════════════════════════════════
   6. ROI WARNING STRIP
   display:none stays inline — JS shows/hides it
   and also writes dynamic text content.
══════════════════════════════════════════ */
#roiWarning {
    background: rgba(255, 200, 0, 0.12);
    border-left: 3px solid #f0b429;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #b8860b;
    margin-bottom: 0.75rem;
}


/* ══════════════════════════════════════════
   7. CHART CANVAS WRAPPERS
   The fixed-height wrappers for Chart.js canvases.
   Canvas inline pixel dimensions (width/height !important)
   stay inline — Chart.js requires them on the element.
══════════════════════════════════════════ */
.chart-canvas-wrap {
    position: relative;
    overflow: hidden;
}

.chart-canvas-wrap--300 {
    height: 300px;
    max-height: 300px;
}

.chart-canvas-wrap--280 {
    height: 280px;
    max-height: 280px;
}


/* ══════════════════════════════════════════
   8. ANALYTICS TWO-COLUMN GRID
   The Asset Allocation + ROI Calculator row.
══════════════════════════════════════════ */
.analytics-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .analytics-two-col {
        grid-template-columns: 1fr;
    }
}


/* ══════════════════════════════════════════
   9. MARKET SECTION
══════════════════════════════════════════ */
.market-section h2 {
    margin-bottom: 1rem;
}

/* Default coin change colour — JS overrides per-coin dynamically.
   This removes 6 identical style="color: var(--success);" inline attrs. */
.coin-change {
    color: var(--success);
}


/* ══════════════════════════════════════════
   10. PROMO CODE SHOW/HIDE
   (kept here alongside other promo styles;
   also present in new-dashboard.css — either
   location works, no conflict)
══════════════════════════════════════════ */
#promoModal {
    display: none;
}

#promoModal.show {
    display: flex;
}

@keyframes promoSlideIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}


/* ══════════════════════════════════════════
   11. EMAIL VERIFICATION BANNER
══════════════════════════════════════════ */
#emailVerifyBanner {
    display: none; /* shown by JS when needed */
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #ff9800, #f57c00);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

#emailVerifyBanner .banner-text {
    flex: 1;
    min-width: 200px;
}

#emailVerifyBanner .resend-btn {
    background: white;
    color: #f57c00;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

#emailVerifyBanner .resend-btn:hover:not(:disabled) {
    background: #fff3e0;
    transform: scale(1.03);
}

#emailVerifyBanner .resend-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#emailVerifyBanner .dismiss-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

#emailVerifyBanner .dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
    #emailVerifyBanner {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
}

/* OBSIDIAN THEME */
/* ════════════════════════════════════════════════════════════
   Obsidian — index.html extras
   ════════════════════════════════════════════════════════════ */

/* Sidebar — logout icon size + colour */
.obs-sidebar-logout-icon {
    font-size: 0.9rem;
    color: var(--obs-text-3);
}

/* Currency picker wrapper in topbar */
.obs-currency-picker-wrap {
    display: flex;
    align-items: center;
}

/* Profile name truncation */
.profile-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown arrow icon */
.obs-profile-btn .dropdown-arrow {
    font-size: 0.9rem;
    color: var(--obs-text-2);
}

/* Page header — date/status right column */
.obs-page-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

/* Date pill */
#obsDateText {
    font-size: 0.75rem;
    color: var(--obs-text-2);
    font-family: var(--font-mono);
    background: var(--obs-card-2);
    border: 1px solid var(--obs-border);
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ROI Calculator — input row (2-col grid) */
.obs-roi-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ROI Calculator — result grid (2-col) */
.obs-roi-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

/* ROI result box */
.obs-roi-result-box {
    background: var(--obs-card-2);
    border: 1px solid var(--obs-border);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
}
.obs-roi-result-box .obs-label {
    margin-bottom: 4px;
}

/* ROI result value */
.obs-roi-val {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
}
.obs-roi-val--gold  { color: var(--obs-gold); }
.obs-roi-val--text  { color: var(--obs-text); }
.obs-roi-val--green { color: var(--obs-green); }

/* ROI reset button */
.obs-btn-reset {
    background: transparent;
    border: 1px solid var(--obs-border);
    color: var(--obs-text-2);
    border-radius: 9px;
    padding: 10px 14px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.82rem;
    transition: all 0.15s;
    flex-shrink: 0;
}
.obs-btn-reset .material-icons-sharp {
    font-size: 1rem;
    vertical-align: middle;
}

/* Portfolio panel — right-aligned text block */
.obs-portfolio-right {
    text-align: right;
}

/* Asset allocation dot colours (crypto asset brand colours) */
.obs-alloc-dot--usdt { background: #26a17b; }
.obs-alloc-dot--btc  { background: #f7931a; }
.obs-alloc-dot--eth  { background: #627eea; }

/* Promo card — redeem icon colour */
.obs-promo-card .obs-card-title .material-icons-sharp {
    color: var(--primary);
}

/* Promo card — description paragraph */
.obs-promo-card .obs-card-head + p {
    font-size: 0.78rem;
    color: var(--obs-text-2);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

/* Promo code input (card + modal share same ID) */
#promoCodeInput {
    flex: 1;
    font-family: var(--font-mono);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
}

/* Promo apply button */
#promoApplyBtn {
    padding: 8px 14px;
    white-space: nowrap;
    border-radius: 9px;
}

/* Promo result message */
#promoResultMsg {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* My bonuses toggle button */
#myBonusesToggleBtn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
#myBonusesArrow { font-size: 0.95rem; }
#myBonusesList  { margin-top: 0.75rem; }

/* Live Market — "Full Charts" link */
.obs-market-charts-link {
    font-size: 0.72rem;
    color: var(--obs-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
}
.obs-market-charts-link .material-icons-sharp {
    font-size: 0.85rem;
}

/* Promo modal — branded header icon */
#promoModal .cvp-header-icon {
    background: rgba(var(--primary-rgb), .1);
}
#promoModal .cvp-header-icon .material-icons-sharp {
    color: var(--primary);
}

/* Investment / Withdraw modal — footer disclaimer */
.cvp-footer-disclaimer {
    margin: 0;
    text-align: center;
    font-size: 0.76rem;
    color: #94a3b8;
}

/* Preview row — strong label variant */
.cvp-preview-row-label--strong {
    font-weight: 600;
}

/* Deposit MEMO — emphasis */
#depositInfoMemo {
    font-weight: 700;
    font-size: 1rem;
}

/* Field label modifiers */
.cvp-label-optional { font-weight: 400; color: #94a3b8; }
.cvp-label-required { color: #ef4444; }

/* Coming soon icon size */
.cvp-coming-soon-icon {
    font-size: 2.5rem;
}

/* VERDANT THEME */
/* =============================================================
   Verdant Theme — index-extras.css additions
   Append this block to public/css/index-extras.css
   ============================================================= */

/* ── Email verify banner emoji icon ── */
#emailVerifyBanner > span:first-child {
    font-size: 1.1rem;
}

/* ── Promo inline card — uses brand vars so buyers only edit brand.css ── */
.sv-promo-card {
    border: 1.5px solid var(--border-light);
    border-top: 3px solid var(--primary);
    padding: 1rem 1.1rem;
}
body.dark-theme .sv-promo-card {
    background: var(--bg-card);
    border-color: var(--border-light);
    border-top-color: var(--primary);
}
body.dark-theme .sv-promo-card input {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

/* ── Promo inline card inner layout ── */
.sv-promo-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.sv-promo-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sv-promo-card-text {
    flex: 1;
    min-width: 0;
}
.sv-promo-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.sv-promo-card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.sv-promo-card-input-row {
    display: flex;
    gap: 8px;
    margin-top: 0.9rem;
}
#promoInlineInput {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
}
#promoInlineInput:focus {
    border-color: var(--primary);
}
#promoInlineBtn {
    padding: 9px 18px;
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.83rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: opacity 0.2s;
}
#promoInlineBtn:hover {
    opacity: 0.88;
}
#promoInlineMsg {
    margin-top: 0.6rem;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Profit/Loss chart canvas wrapper ── */
.sv-chart-canvas-wrap {
    position: relative;
    height: 240px;
    max-height: 240px;
    overflow: hidden;
}

/* ── Quick Actions panel section title spacing ── */
.sv-actions-panel .sv-sect-title {
    margin-bottom: 0.9rem;
}

/* ── Balance panel portfolio row alignment ── */
.sv-balance-portfolio-row > div:last-child {
    text-align: right;
}

/* ── Asset allocation chart canvas ── */
#assetAllocationChart {
    max-height: 200px;
}

/* ── Asset allocation dot colors ── */
.sv-alloc-item:nth-child(1) .sv-alloc-dot { background: #26a17b; }
.sv-alloc-item:nth-child(2) .sv-alloc-dot { background: #f7931a; }
.sv-alloc-item:nth-child(3) .sv-alloc-dot { background: #627eea; }

/* ── ROI warning margin ── */
#roiWarning {
    margin-bottom: 0.75rem;
}

/* ── Live market — Full Charts link ── */
.sv-market-section .sv-sect-head a {
    font-size: 0.7rem;
    color: var(--sv-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ── Promo modal header icon ── */
#promoModal .cvp-header-icon {
    background: rgba(233, 30, 99, 0.1);
}
#promoModal .cvp-header-icon .material-icons-sharp {
    color: #e91e63;
}

/* ── Promo code input (modal) ── */
#promoCodeInput {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ── Promo result message ── */
#promoResultMsg {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
}

/* ── My bonuses toggle button ── */
#myBonusesToggleBtn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── My bonuses list spacing ── */
#myBonusesList {
    margin-top: 0.75rem;
}

/* ── Deposit claim modal — coming-soon icon size ── */
.cvp-coming-soon-icon {
    font-size: 2.5rem;
}

/* ── Manage addresses modal footer layout ── */
#manageAddressesModal .cvp-footer {
    justify-content: space-between;
}


/* ── All themes: Active Investment stats — 2+1 on mobile ── */
@media (max-width: 768px) {
    .invest-stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    /* Target the third .invest-stat-col directly */
    .invest-stats-row .invest-stat-col:nth-child(3) {
        grid-column: 1 / 2 !important;
    }
    /* Optional: remove borders on middle column for mobile */
    .invest-stat-col--middle {
        border-left: none !important;
        border-right: none !important;
    }
    /* Adjust font sizes for mobile */
    .invest-stat-value {
        font-size: 1.2rem !important;
    }
    .invest-stat-value,
    .sv-invest-stat-val,
    .obs-invest-stat-val {
        font-size: 1.1rem !important;
        word-break: break-word;
    }
    .invest-stat-col--middle {
        border-left: none !important;
        border-right: none !important;
    }
}


/* ── Obsidian theme: Active Investment stats — 2+1 on mobile ── */
@media (max-width: 600px) {
    .obs-invest-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    .obs-invest-stats > div:last-child {
        grid-column: 1 / 2;
    }
    .obs-invest-stat-val {
        font-size: 1.1rem;
        word-break: break-word;
    }
}

/* Override responsive.css stacking rule for Sovereign mobile stats */
@media (max-width: 768px) {
    /* More specific than #activeInvestmentCard > div > div > div */
    #activeInvestmentCard .invest-stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    /* Third stat spans first column only */
    #activeInvestmentCard .invest-stats-row .invest-stat-col:nth-child(3) {
        grid-column: 1 / 2 !important;
    }
    /* Remove side borders on middle column for cleaner mobile */
    #activeInvestmentCard .invest-stat-col--middle {
        border-left: none !important;
        border-right: none !important;
    }
}

