/* Theme switch used in the signed-in panels and on small screens. */
.theme-fab{position:fixed;right:16px;bottom:16px;z-index:1060;width:46px;height:46px;border-radius:50%;border:1px solid rgba(148,163,184,.45);background:#fff;color:#0f172a;box-shadow:0 12px 28px -12px rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center}
[data-theme="dark"] .theme-fab{background:#131e36;color:#f3f4f6}

/* Light mode for the signed-in panels. */
[data-theme="light"]{--bull-green:var(--t1x,#047857);--bear-red:#b91c1c;--gold-accent:var(--t3x,#92400e);--cyan-accent:#0e7490}
[data-theme="light"] .member-sidebar{background:#fff!important;border-right-color:#e2e8f0!important}
[data-theme="light"] .member-topbar{background:rgba(255,255,255,.95)!important;border-bottom-color:#e2e8f0!important}
[data-theme="light"] .member-content{background:#f8fafc!important}
[data-theme="light"] .member-nav-item{color:#475569!important}
[data-theme="light"] .member-nav-item:hover,[data-theme="light"] .member-nav-item.active{color:#0f172a!important;background:#f1f5f9!important}
[data-theme="light"] #workspace-navigation .btn-close-white,[data-theme="light"] main .btn-close-white{filter:none}
[data-theme="light"] #workspace-navigation .sidebar-section-title{color:#64748b!important}
[data-theme="light"] #workspace-navigation .btn-outline-light,[data-theme="light"] .workspace-topbar .btn-outline-light{color:#0f172a!important;border-color:#cbd5e1!important}
[data-theme="light"] #workspace-navigation .brand-tagline-sub,[data-theme="light"] .workspace-topbar+main .text-warning,[data-theme="light"] .workspace-topbar .text-warning{color:#92400e!important}
[data-theme="light"] #workspace-navigation .text-info,[data-theme="light"] .workspace-topbar+main .text-info{color:#0e7490!important}
[data-theme="light"] .workspace-topbar+main .text-cyan,[data-theme="light"] .workspace-topbar .text-cyan{color:#0e7490!important}
[data-theme="light"] .workspace-topbar+main .text-bull,[data-theme="light"] .workspace-topbar .text-bull{color:var(--t1x,#047857)!important}
[data-theme="light"] .workspace-topbar+main .text-gold,[data-theme="light"] .workspace-topbar .text-gold{color:var(--t3x,#92400e)!important}
[data-theme="light"] .workspace-topbar+main .text-bear,[data-theme="light"] .workspace-topbar+main .text-danger{color:#b91c1c!important}
[data-theme="light"] .workspace-topbar+main .text-success{color:#047857!important}
[data-theme="light"] .workspace-topbar+main .text-muted-custom,[data-theme="light"] #workspace-navigation .text-muted-custom{color:#475569!important}
[data-theme="light"] .workspace-topbar+main .bg-dark.text-white,[data-theme="light"] .workspace-topbar+main .form-control.bg-dark,[data-theme="light"] .workspace-topbar+main .form-select.bg-dark{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}
[data-theme="light"] .portal-warning{background:#fffbeb;color:#374151}
[data-theme="light"] .portal-warning strong{color:#92400e}
[data-theme="light"] .portal-warning a{color:#1d4ed8}

/* ---------------------------------------------------------------------------
   StockEd Brand theme: the logo's sky blue, navy and orange. Only colours
   change; content, layout and component design stay the same as Classic.
   --------------------------------------------------------------------------- */
html[data-skin="stocked"]{--t1:#1e9be6;--t1l:#4fbaf5;--t1d:#0b74c4;--t1x:#0a5c9c;--t1bg:#dbeefc;--r1:30,155,230;--t2:#4a62d6;--t2l:#8ea2f6;--t2d:#1e2a78;--t2e:#0b5f9e;--r2:74,98,214;--t3:#ee7f3c;--t3l:#ff9d63;--t3s:#ffc6a1;--t3d:#cf5f1c;--t3x:#963e0b;--t3bg:#ffe7d8;--t3bg2:#fff4ec;--r3:238,127,60;--bs-success-rgb:30,155,230;--bs-warning-rgb:238,127,60}
html[data-skin="stocked"][data-theme="dark"]{--tink:#070b22;--tink2:#050819;--bg-body:#070b22;--bg-surface:#0e153b;--bg-surface-elevated:#172156;--bg-card:rgba(23,33,86,.7);--bg-card-hover:rgba(33,46,112,.85);--border-subtle:rgba(160,185,255,.14);--px-card:#141d4c;--px-card2:#0b1130;--px-input:#101944;--px-line:rgba(160,185,255,.18);--px-line-strong:rgba(160,185,255,.32);--px-muted:#b4c0e4;--px-faint:#93a0c9}
html[data-skin="stocked"][data-theme="light"]{--tink:#f4f7fd;--bg-body:#f4f7fd;--bg-surface:#ffffff;--bg-surface-elevated:#e9effb;--text-main:#111a47;--text-muted:#44517a;--px-text:#111a47;--px-body:#1c2656;--px-muted:#44517a;--px-line:#dbe3f4;--px-line-strong:#c3cfea;--px-soft:#eaf0fb;--bull-green:#0a5c9c;--gold-accent:#963e0b}
html[data-skin="stocked"] body.public-site{--brand:#4fbaf5;--brand-2:#4a62d6;--accent:#ee7f3c}
html[data-skin="stocked"][data-theme="light"] body.public-site{--ink:#f4f7fd;--hairline:#dbe3f4}
html[data-skin="stocked"][data-theme="dark"] .market-ticker-bar,html[data-skin="stocked"][data-theme="dark"] .navbar-custom,html[data-skin="stocked"][data-theme="dark"] .footer-custom{background-color:#070b22}
html[data-skin="stocked"][data-theme="dark"] .regulatory-bar{background:linear-gradient(90deg,#0b1236,#111b4e)}
html[data-skin="stocked"][data-theme="dark"] .workspace-topbar{background:rgba(7,11,34,.95)}

/* Gradient controls need light text on the blue-to-navy gradient. */
html[data-skin="stocked"] .btn-fintech-primary,html[data-skin="stocked"] .signup-primary,html[data-skin="stocked"] .plan-buy,html[data-skin="stocked"] .plan-tenures .nav-link.active,html[data-skin="stocked"] .hero-stats i,html[data-skin="stocked"] .plan-icon{background:linear-gradient(135deg,#0b74c4,#1e2a78)!important;color:#fff!important}
html[data-skin="stocked"] .btn-fintech-primary *,html[data-skin="stocked"] .hero-stats i::before{color:#fff!important}
html[data-skin="stocked"] .btn-fintech-gold,html[data-skin="stocked"] .plan-card.tone-gold .plan-buy,html[data-skin="stocked"] .plan-card.tone-gold .plan-tenures .nav-link.active,html[data-skin="stocked"] .plan-card.tone-gold .plan-icon{background:linear-gradient(135deg,#ffab75,#ee7f3c)!important;color:#111a47!important}
html[data-skin="stocked"] .btn-fintech-gold *{color:#111a47!important}
html[data-skin="stocked"] .plan-card{--tone:#1e9be6;--tone2:#4a62d6}
html[data-skin="stocked"] .plan-card.tone-violet{--tone:#4a62d6;--tone2:#1e9be6}
html[data-skin="stocked"] .plan-card.tone-gold{--tone:#ee7f3c;--tone2:#ffab75}
html[data-skin="stocked"] .signup-rail{background:linear-gradient(165deg,#1e2a78 0%,#173f8f 52%,#0b5f9e 100%)}
html[data-skin="stocked"] .text-gradient-emerald{background-image:linear-gradient(135deg,#4fbaf5,#1e9be6 50%,#4a62d6)}
html[data-skin="stocked"][data-theme="light"] .text-gradient-emerald,html[data-skin="stocked"][data-theme="light"] .public-site .hero-pro h1 .text-gradient-emerald{background-image:linear-gradient(100deg,#0a5c9c,#1e2a78 60%,#963e0b)}

/* Light mode: outline buttons and status badges need darker text. */
[data-theme="light"] .btn-outline-warning{--bs-btn-color:var(--t3x,#92400e);--bs-btn-border-color:var(--t3x,#92400e);--bs-btn-hover-bg:var(--t3x,#92400e);--bs-btn-hover-border-color:var(--t3x,#92400e);--bs-btn-hover-color:#fff;--bs-btn-active-bg:var(--t3x,#92400e);--bs-btn-active-color:#fff}
[data-theme="light"] .btn-outline-info{--bs-btn-color:#0e7490;--bs-btn-border-color:#0e7490;--bs-btn-hover-bg:#0e7490;--bs-btn-hover-border-color:#0e7490;--bs-btn-hover-color:#fff;--bs-btn-active-bg:#0e7490;--bs-btn-active-color:#fff}
[data-theme="light"] .btn-outline-success{--bs-btn-color:var(--t1x,#047857);--bs-btn-border-color:var(--t1x,#047857);--bs-btn-hover-bg:var(--t1x,#047857);--bs-btn-hover-border-color:var(--t1x,#047857);--bs-btn-hover-color:#fff}
[data-theme="light"] .badge-status-bull{color:var(--t1x,#065f46)!important;background:var(--t1bg,#d1fae5)!important}
[data-theme="light"] .badge-status-gold{color:var(--t3x,#78350f)!important;background:var(--t3bg,#fef3c7)!important}
[data-theme="light"] .badge-status-bear{color:#991b1b!important;background:#fee2e2!important}
[data-theme="light"] .workspace-topbar{background:rgba(255,255,255,.95)!important}
[data-theme="light"] #workspace-navigation .text-warning{color:var(--t3x,#92400e)!important}
[data-theme="light"] .btn-outline-secondary.text-white{color:#0f172a!important;border-color:#94a3b8}
[data-theme="light"] .btn-outline-secondary.text-white:hover{background:#334155;color:#fff!important}

/* Side menu of the signed-in dashboards: titled groups, current page highlighted. */
.portal-nav{display:flex;flex-direction:column;gap:6px}
.portal-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.portal-nav-title{font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7c8aa5;padding:10px 12px 4px}
.portal-nav-section+.portal-nav-section{border-top:1px solid var(--border-subtle);padding-top:2px}
.portal-nav-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;border-left:3px solid transparent;color:var(--text-muted);text-decoration:none;font-size:.87rem;font-weight:500}
.portal-nav-item i{color:var(--t1,#10b981);width:18px;text-align:center}
.portal-nav-item:hover,.portal-nav-item:focus-visible{color:#fff;background:rgba(255,255,255,.06)}
.portal-nav-item.active{color:#fff;background:rgba(var(--r1,16,185,129),.16);border-left-color:var(--bull-green);font-weight:600}
[data-theme="light"] .portal-nav-title{color:#64748b}
[data-theme="light"] .portal-nav-section+.portal-nav-section{border-top-color:#e2e8f0}
[data-theme="light"] .portal-nav-item{color:#475569}
[data-theme="light"] .portal-nav-item i{color:var(--t1x,#047857)}
[data-theme="light"] .portal-nav-item:hover,[data-theme="light"] .portal-nav-item:focus-visible{color:#0f172a;background:#f1f5f9}
[data-theme="light"] .portal-nav-item.active{color:#0f172a;background:rgba(var(--r1,16,185,129),.16)}
@media (min-width:992px){#workspace-navigation{height:100vh;height:100dvh;overflow-y:auto}}
#workspace-navigation>*{flex-shrink:0}

/* An empty error summary takes no space. */
.validation-summary-valid,.alert[role="alert"]:empty{display:none!important}

/* Readability fixes found by the panel contrast check (both themes, light and dark). */
[data-theme="light"] .form-control::placeholder{color:#64748b!important;opacity:1}
[data-theme="light"] body .badge.bg-opacity-25.text-white{color:#0f172a!important}
[data-theme="light"] body .bg-success.bg-opacity-25.text-bull.bg-success{color:var(--t1x,#065f46)!important}
[data-theme="light"] .alert a,[data-theme="light"] dd>a{color:#0a4bab}
[data-theme="dark"] body .badge.bg-danger.bg-opacity-25.text-danger{color:#ffa3ab!important}
[data-theme="dark"] .btn-outline-danger{--bs-btn-color:#ff8a94;--bs-btn-border-color:#ff8a94}
[data-theme="dark"] .workspace-topbar+main .btn-outline-secondary{--bs-btn-color:#b6c2d6;--bs-btn-border-color:#7c8aa5}
[data-theme="dark"] .workspace-topbar+main .btn-outline-success{--bs-btn-color:var(--t1l,#34d399);--bs-btn-border-color:var(--t1l,#34d399)}
html[data-skin="stocked"] .badge.bg-success:not(.bg-opacity-25){background-color:#0b74c4!important;color:#fff!important}
html[data-skin="stocked"][data-theme="dark"] body .badge.bg-opacity-25.text-bull.bg-success{color:var(--t1l,#4fbaf5)!important}

/* StockEd Brand, dark: panel menus, tables and fields use the navy surfaces too. */
html[data-skin="stocked"][data-theme="dark"] #workspace-navigation{background:#050819!important}
html[data-skin="stocked"][data-theme="dark"] .table-dark{--bs-table-bg:#101847;--bs-table-color:#e8ecfb;--bs-table-border-color:rgba(160,185,255,.18);--bs-table-hover-bg:#1a2560;--bs-table-hover-color:#fff;--bs-table-striped-bg:#141e50}
html[data-skin="stocked"][data-theme="dark"] .workspace-topbar+main .form-control.bg-dark,html[data-skin="stocked"][data-theme="dark"] .workspace-topbar+main .form-select.bg-dark,html[data-skin="stocked"][data-theme="dark"] .workspace-topbar+main .badge.bg-dark{background-color:#101944!important}
/* StockEd Brand: green action buttons and black panel cards follow the brand colours. */
html[data-skin="stocked"] .btn-success{--bs-btn-bg:#0b74c4;--bs-btn-border-color:#0b74c4;--bs-btn-hover-bg:#0a5c9c;--bs-btn-hover-border-color:#0a5c9c;--bs-btn-active-bg:#0a5c9c;--bs-btn-active-border-color:#0a5c9c;--bs-btn-disabled-bg:#0b74c4;--bs-btn-disabled-border-color:#0b74c4;--bs-btn-color:#fff;--bs-btn-hover-color:#fff}
html[data-skin="stocked"][data-theme="dark"] .workspace-topbar+main .bg-black{background-color:#0b1236!important}
/* Readable developer note under the disabled Google button. */
[data-theme="light"] .google-button+p.text-warning{color:#92400e!important}

/* Classic theme, dashboards: a deeper green so white button text is easy to read.
   The public website keeps its bright buttons, which use dark text. */
html[data-skin="classic"] body:not(.public-site) .btn-fintech-primary{background:linear-gradient(135deg,#047857,#065f46)!important;color:#fff!important}
html[data-skin="classic"] body:not(.public-site) .btn-fintech-primary:hover{background:linear-gradient(135deg,#065f46,#047857)!important}
