.dashboard4-page { width: 100%; color: var(--premium-text-primary, #f8f7ff); }
.dashboard4-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.dashboard4-heading span { color: #a78bfa; font-size: .66rem; font-weight: 900; letter-spacing: .11em; }
.dashboard4-heading h1 { margin: .12rem 0; font-size: clamp(1.65rem, 4vw, 2.3rem); font-weight: 900; }
.dashboard4-heading p { margin: 0; color: var(--premium-text-secondary, #9992ad); font-size: .78rem; }
.dashboard4-rate-pills { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
.dashboard4-rate-pills span { padding: .45rem .65rem; border: 1px solid rgba(167, 139, 250, .3); border-radius: .5rem; background: rgba(124, 58, 237, .09); letter-spacing: 0; }
.dashboard4-card { margin-bottom: 1rem; overflow: hidden; border: 1px solid rgba(139, 92, 246, .25); border-radius: .78rem; background: rgba(5, 7, 30, .8); box-shadow: 0 .65rem 1.7rem rgba(0, 0, 0, .13); }
.dashboard4-card > h2 { margin: 0; padding: .7rem 1rem; color: #fff !important; background: linear-gradient(105deg, #31105c, #11163f); font-size: .96rem; font-weight: 850; }
.dashboard6-collapse-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; margin: 0; padding: .7rem 1rem; border: 0; color: #fff; background: linear-gradient(105deg, #31105c, #11163f); font: inherit; font-size: .96rem; font-weight: 850; text-align: left; cursor: pointer; }
.dashboard6-collapse-toggle:hover { filter: brightness(1.08); }
.dashboard6-collapse-toggle:focus-visible { outline: 2px solid #a78bfa; outline-offset: -3px; }
.dashboard6-collapse-icon::before { content: "+"; display: inline-flex; width: 1.35rem; height: 1.35rem; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; font-size: 1rem; line-height: 1; }
.dashboard6-collapse-toggle[aria-expanded="true"] .dashboard6-collapse-icon::before { content: "−"; }
.dashboard4-summary-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dashboard4-summary-table td { padding: .75rem 1rem; border-top: 1px solid rgba(139, 92, 246, .16); font-size: .8rem; font-weight: 720; }
.dashboard4-summary-table td:first-child { width: 55%; border-right: 1px solid rgba(139, 92, 246, .16); }
.dashboard4-summary-table td:last-child { text-align: right; font-size: .96rem; font-weight: 900; }
.dashboard6-settled-flow td,
.dashboard4-summary-table tr.dashboard6-settled-flow td:last-child,
.dashboard6-settled-flow td span { font-size: .8rem; font-weight: 700; }
.dashboard6-settled-flow td { border-bottom: none; padding: .3rem .5rem; }
.dashboard4-help { width: 1.35rem; height: 1.35rem; margin-left: .65rem; padding: 0; border: 1px solid rgba(167, 139, 250, .48); border-radius: 50%; color: #c4b5fd; background: transparent; font-size: .68rem; font-weight: 900; line-height: 1; vertical-align: middle; }
.dashboard4-help:hover, .dashboard4-help:focus { color: #fff; background: #7c3aed; outline: 0; }
.dashboard4-total { background: rgba(124, 58, 237, .09); }
.dashboard4-total td { font-size: .9rem; font-weight: 900; }
.dashboard4-page .positive { color: #22c55e; }
.dashboard4-page .negative { color: #fb7185; }
.dashboard4-formula-card { padding-bottom: .8rem; }
.dashboard4-equation { margin: .85rem 1rem .35rem; padding: .72rem .8rem; border: 1px dashed rgba(167, 139, 250, .4); border-radius: .5rem; color: #ddd6fe; background: rgba(124, 58, 237, .07); font-size: .82rem; font-weight: 850; }
.dashboard4-formula-card p, .dashboard4-win-card > p { margin: .45rem 1rem 0; color: var(--premium-text-secondary, #9992ad); font-size: .72rem; line-height: 1.5; }
.dashboard4-share-wrap { width: 100%; overflow: hidden; }
.dashboard4-share-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dashboard4-share-table th, .dashboard4-share-table td { padding: .72rem .75rem; border: 1px solid rgba(139, 92, 246, .2); text-align: right; font-size: .75rem; vertical-align: middle; }
.dashboard4-share-table th { color: #ddd6fe; background: rgba(124, 58, 237, .16); font-size: .67rem; font-weight: 850; }
.dashboard4-share-table tbody tr:nth-child(even) td { background: rgba(124, 58, 237, .035); }
.dashboard4-share-table tbody tr:hover td { background: rgba(124, 58, 237, .075); }
.dashboard4-share-table th:first-child, .dashboard4-share-table td:first-child { text-align: left; }
.dashboard4-share-table td:first-child { width: 55%; font-weight: 750; }
.dashboard4-share-table td:last-child .dashboard4-help { float: right; }
.dashboard4-share-table small { display: block; color: var(--premium-text-secondary, #8f87a3); font-size: .62rem; }
.dashboard4-empty { padding: 1.25rem !important; color: var(--premium-text-secondary, #8f87a3); text-align: center !important; }
.dashboard4-help-modal { overflow: hidden; border: 1px solid rgba(139, 92, 246, .32); border-radius: .8rem; color: #17152b; }
.dashboard4-help-modal .modal-header { color: #fff; background: linear-gradient(105deg, #31105c, #11163f); }
.dashboard4-help-modal .btn-close { filter: invert(1); }
.dashboard4-help-modal .modal-body p { margin: 0; color: #4b4658; font-size: .86rem; line-height: 1.6; }
.dashboard4-breakdown { margin-top: .85rem; overflow: hidden; border: 1px solid #e4dfec; border-radius: .55rem; }
.dashboard4-breakdown table { width: 100%; border-collapse: collapse; }
.dashboard4-breakdown td { padding: .62rem .72rem; border-top: 1px solid #ece8f2; color: #3f3a4b; font-size: .78rem; font-weight: 700; }
.dashboard4-breakdown tr:first-child td { border-top: 0; }
.dashboard4-breakdown td:last-child { text-align: right; font-size: .86rem; font-weight: 900; }
.dashboard4-breakdown td small { display: block; margin-top: .16rem; color: #777184; font-size: .68rem; font-weight: 650; }
.dashboard4-breakdown th { padding: .55rem .72rem; color: #fff; background: linear-gradient(105deg, #4c1d95, #312e81); font-size: .76rem; font-weight: 850; text-align: left; }
.dashboard4-breakdown .group:not(:first-child) th { border-top: .7rem solid #fff; }
.dashboard4-breakdown .positive { color: #15803d; }
.dashboard4-breakdown .negative { color: #dc2626; }
.dashboard4-breakdown .total td { border-top: 2px solid #8b5cf6; background: #f5f3ff; font-size: .86rem; font-weight: 900; }
.dashboard4-win-card { padding-bottom: .9rem; }
.dashboard4-win-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding: .9rem 1rem .25rem; }
.dashboard4-win-grid > div { padding: .7rem; border: 1px solid rgba(139, 92, 246, .2); border-radius: .5rem; background: rgba(124, 58, 237, .05); }
.dashboard4-win-grid strong, .dashboard4-win-grid span { display: block; }
.dashboard4-win-grid strong { margin-bottom: .25rem; color: #c4b5fd; font-size: .74rem; }
.dashboard4-win-grid span { color: var(--premium-text-secondary, #aaa3b9); font-size: .7rem; line-height: 1.4; }
body.light-theme .dashboard4-page, body.forest-theme .dashboard4-page { color: var(--premium-text, #172033); }
body.light-theme .dashboard4-card, body.forest-theme .dashboard4-card { border-color: var(--premium-border, #dce3e8); background: var(--premium-panel, #fff); box-shadow: 0 .5rem 1.3rem rgba(20, 30, 50, .07); }
body.light-theme .dashboard4-card > h2 { background: linear-gradient(105deg, #087fa9, #24a9d5); }
body.forest-theme .dashboard4-card > h2 { background: linear-gradient(105deg, #064e3b, #047857); }
body.light-theme .dashboard6-collapse-toggle { background: linear-gradient(105deg, #087fa9, #24a9d5); }
body.forest-theme .dashboard6-collapse-toggle { background: linear-gradient(105deg, #064e3b, #047857); }
body.light-theme .dashboard4-heading h1 { color: #082f49 !important; }
body.forest-theme .dashboard4-heading h1 { color: #064e3b !important; }
body.light-theme .dashboard4-summary-table td, body.light-theme .dashboard4-share-table th, body.light-theme .dashboard4-share-table td,
body.forest-theme .dashboard4-summary-table td, body.forest-theme .dashboard4-share-table th, body.forest-theme .dashboard4-share-table td { border-color: var(--premium-border, #dce3e8); }
body.light-theme .dashboard4-share-table th { color: #075985; background: #e0f2fe; }
body.forest-theme .dashboard4-share-table th { color: #fff; background: #047857; }
body.light-theme .dashboard4-equation, body.forest-theme .dashboard4-equation { color: inherit; background: rgba(var(--bs-primary-rgb), .05); }
body.light-theme .dashboard4-help, body.forest-theme .dashboard4-help { color: var(--bs-primary); }
@media (max-width: 575.98px) {
    .dashboard4-heading { align-items: flex-start; flex-direction: column; }
    .dashboard4-rate-pills { justify-content: flex-start; }
    .dashboard4-summary-table td { padding: .68rem .75rem; }
    .dashboard4-win-grid { grid-template-columns: 1fr; }
}
