:root{
  --apex-bg:#0b1220; --apex-panel:#121c2e; --apex-panel-2:#16233a;
  --apex-line:#22304a; --apex-cyan:#22d3ee; --apex-cyan-2:#0ea5b7;
  --apex-text:#e6edf6; --apex-muted:#93a4bf;
}
*{box-sizing:border-box}
body{
  background:var(--apex-bg); color:var(--apex-text);
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  margin:0;
}
a{color:var(--apex-cyan);text-decoration:none}
a:hover{color:#67e8f9}

/* nav */
.apex-nav{background:rgba(11,18,32,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--apex-line)}
.apex-nav .nav-link{color:var(--apex-muted)!important;font-weight:500}
.apex-nav .nav-link:hover{color:#fff!important}
.apex-balance{background:var(--apex-panel-2);border:1px solid var(--apex-line);
  color:var(--apex-cyan);font-weight:600;padding:.45rem .7rem}

/* hero */
.apex-hero{
  background:
    radial-gradient(900px 400px at 80% -10%,rgba(34,211,238,.18),transparent),
    linear-gradient(180deg,#0b1220,#0e1830);
  border-bottom:1px solid var(--apex-line); padding:5.5rem 0 4.5rem;
}
.apex-hero h1{font-size:clamp(2rem,5vw,3.4rem);font-weight:800;line-height:1.1}
.apex-hero .lead{color:var(--apex-muted);max-width:560px}
.apex-grad{background:linear-gradient(90deg,#22d3ee,#818cf8);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.apex-stat{background:var(--apex-panel);border:1px solid var(--apex-line);
  border-radius:14px;padding:1.1rem 1.25rem}
.apex-stat b{font-size:1.5rem;display:block;color:#fff}
.apex-stat span{color:var(--apex-muted);font-size:.85rem}

/* buttons */
.btn-info{background:var(--apex-cyan);border-color:var(--apex-cyan);color:#04212a}
.btn-info:hover{background:#67e8f9;border-color:#67e8f9;color:#04212a}
.btn-outline-info{color:var(--apex-cyan);border-color:var(--apex-cyan)}

/* cards / panels */
.apex-card{background:var(--apex-panel);border:1px solid var(--apex-line);
  border-radius:16px}
.apex-card .card-body{padding:1.5rem}
.pkg{transition:.18s;position:relative;overflow:hidden}
.pkg:hover{transform:translateY(-6px);border-color:var(--apex-cyan)}
.pkg .roi{font-size:2.4rem;font-weight:800;color:var(--apex-cyan)}
.pkg.featured{border-color:var(--apex-cyan);
  box-shadow:0 0 0 1px var(--apex-cyan),0 18px 50px -20px rgba(34,211,238,.5)}
.pkg .ribbon{position:absolute;top:14px;right:-34px;transform:rotate(45deg);
  background:var(--apex-cyan);color:#04212a;font-size:.65rem;
  line-height:1;font-weight:700;
  padding:.25rem 2.5rem}

/* tables / forms */
.table{
  --bs-table-bg:transparent;            /* fix: was white on dark theme */
  --bs-table-color:var(--apex-text);
  --bs-table-border-color:var(--apex-line);
  --bs-table-striped-bg:rgba(255,255,255,.03);
  --bs-table-striped-color:var(--apex-text);
  --bs-table-hover-bg:rgba(34,211,238,.06);
  --bs-table-hover-color:#fff;
  color:var(--apex-text)}
.table thead th{color:var(--apex-muted);border-color:var(--apex-line);
  text-transform:uppercase;font-size:.75rem;letter-spacing:.04em}
.table td,.table th{border-color:var(--apex-line)}
/* hard override Bootstrap's white cell bg on the dark theme */
.table>:not(caption)>*>*{background-color:transparent!important;
  color:var(--apex-text);box-shadow:none!important}
.form-control,.form-select{background:var(--apex-panel-2);
  border:1px solid var(--apex-line);color:#fff}
.form-control:focus,.form-select:focus{background:var(--apex-panel-2);
  color:#fff;border-color:var(--apex-cyan);box-shadow:0 0 0 .2rem rgba(34,211,238,.18)}
.form-control::placeholder{color:#5f7186}
label{color:var(--apex-muted);font-size:.88rem;font-weight:500}

/* misc */
.section{padding:4.5rem 0}
.eyebrow{color:var(--apex-cyan);font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;font-size:.78rem}
.kpi{background:var(--apex-panel);border:1px solid var(--apex-line);
  border-radius:14px;padding:1.25rem}
.kpi .n{font-size:1.7rem;font-weight:800;color:#fff}
.kpi .l{color:var(--apex-muted);font-size:.85rem}
.apex-footer{background:#0a0f1c;border-top:1px solid var(--apex-line);
  color:var(--apex-muted)}
.apex-footer a{color:var(--apex-muted)}.apex-footer a:hover{color:var(--apex-cyan)}
.badge-soft{background:var(--apex-panel-2);border:1px solid var(--apex-line);
  color:var(--apex-cyan);font-weight:600}

/* market ticker */
.ticker-wrap{
  overflow:hidden;
  background:#0a0f1c;
  border-bottom:1px solid var(--apex-line);
}
.tv-ticker-container{width:100%;height:38px!important;background:#0a0f1c}
.tv-ticker-container .tradingview-widget-container__widget{width:100%;height:38px}
.tv-ticker-container > iframe{
  display:block!important;
  width:119.048%!important;
  height:72px!important;
  margin-bottom:-34px;
  transform:scale(.84);
  transform-origin:top left;
}
.market-feed-caption{
  height:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0a0f1c;
  border-top:1px solid rgba(147,164,191,.12);
  color:#c8d5e6;
  font-size:.58rem;
  line-height:12px;
  font-weight:700;
  letter-spacing:0;
  text-align:center;
  text-transform:uppercase;
}
.tv-ticker-container .tv-ticker-credit{
  height:19px;
  min-height:19px;
  justify-content:center;
  background:#0a0f1c;
  border-top:1px solid rgba(147,164,191,.08);
  font-size:10px!important;
  line-height:19px!important;
}

/* how-it-works steps */
.step{position:relative;text-align:center}
.step-n{position:absolute;top:-14px;left:50%;transform:translateX(-50%);
  width:30px;height:30px;border-radius:50%;background:var(--apex-cyan);
  color:#04212a;font-weight:800;display:grid;place-items:center;font-size:.9rem}
.step-ic{font-size:2rem;color:var(--apex-cyan);margin-top:1rem;display:block}

/* feature icons */
.feat-ic{flex:0 0 48px;width:48px;height:48px;border-radius:12px;
  background:var(--apex-panel-2);border:1px solid var(--apex-line);
  display:grid;place-items:center;color:var(--apex-cyan);font-size:1.3rem}

/* dashboard bits */
.avatar{width:52px;height:52px;border-radius:14px;flex:0 0 52px;
  background:linear-gradient(135deg,#22d3ee,#818cf8);color:#04212a;
  font-weight:800;display:grid;place-items:center;font-size:1.1rem}
.kpi{position:relative}
.kpi-ic{position:absolute;top:1rem;right:1rem;color:var(--apex-line);font-size:1.3rem}
.kpi .l{font-size:.78rem}.kpi .n{font-size:1.35rem}
.inv-row{padding:.85rem 0;border-bottom:1px solid var(--apex-line)}
.inv-row:last-child{border-bottom:0;padding-bottom:0}
.act-row{padding:.6rem 0;border-bottom:1px solid var(--apex-line)}
.act-row:last-child{border-bottom:0}
.apex-progress{height:7px;background:var(--apex-panel-2);border-radius:6px}
.apex-progress .progress-bar{background:linear-gradient(90deg,#22d3ee,#818cf8)}

/* accordion dark */
.apex-acc .accordion-item{background:var(--apex-panel);
  border:1px solid var(--apex-line);margin-bottom:.6rem;border-radius:12px;overflow:hidden}
.apex-acc .accordion-button{background:var(--apex-panel);color:#fff;font-weight:600}
.apex-acc .accordion-button:not(.collapsed){background:var(--apex-panel-2);
  color:var(--apex-cyan);box-shadow:none}
.apex-acc .accordion-button:focus{box-shadow:none;border-color:var(--apex-line)}
.apex-acc .accordion-button::after{filter:invert(.7)}
.apex-acc .accordion-body{background:var(--apex-panel)}

/* CTA band */
.cta-band{padding:4rem 0;background:
  radial-gradient(700px 300px at 50% 120%,rgba(34,211,238,.18),transparent),
  var(--apex-panel);border-top:1px solid var(--apex-line)}

/* investment analytics */
.portfolio-brief,
.analytics-panel{
  background:#111b2d;
  border:1px solid #2a3a55;
  border-radius:8px;
}
.portfolio-brief{
  padding:1.5rem;
  box-shadow:0 24px 55px rgba(0,0,0,.24);
}
.panel-kicker{
  color:var(--apex-muted);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.strategy-status,
.analytics-label{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  color:#9ae6b4;
  background:rgba(52,211,153,.08);
  border:1px solid rgba(52,211,153,.24);
  border-radius:4px;
  padding:.4rem .6rem;
  font-size:.72rem;
  font-weight:700;
  white-space:nowrap;
}
.strategy-status i{font-size:.45rem;color:#34d399}
.allocation-row{margin-bottom:1.15rem}
.allocation-row .d-flex{font-size:.82rem;color:var(--apex-muted);margin-bottom:.45rem}
.allocation-row b{color:#fff;font-weight:700}
.allocation-track{height:6px;background:#1b2940;border-radius:2px;overflow:hidden}
.allocation-track span{display:block;height:100%;background:#22d3ee}
.allocation-track.crypto span{background:#818cf8}
.allocation-track.equities span{background:#34d399}
.brief-footer{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  border-top:1px solid var(--apex-line);
  margin-top:1.5rem;
  padding-top:1.25rem;
}
.brief-footer b{display:block;color:#fff;font-size:1.05rem}
.brief-footer span{display:block;color:var(--apex-muted);font-size:.68rem;margin-top:.1rem}
.model-note{color:#71839e;font-size:.68rem;margin-top:1.15rem}

.market-intelligence{
  background:#0a101d;
  border-bottom:1px solid var(--apex-line);
}
.section-heading{max-width:900px}
.section-heading h2{font-size:clamp(1.75rem,3vw,2.4rem)}
.section-heading .text-secondary{max-width:670px}
.analytics-label{color:#b8c4d6;background:#121c2e;border-color:#2a3a55}
.analytics-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr);
  gap:1rem;
}
.analytics-panel{padding:1.4rem;min-width:0}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1.1rem;
}
.panel-head h3{font-size:1.05rem;margin:.25rem 0 0;font-weight:700}
.trend-value{text-align:right}
.trend-value span{display:block;color:var(--apex-muted);font-size:.7rem}
.trend-value b{display:block;color:#34d399;font-size:1.25rem}
.chart-frame{position:relative;width:100%}
.chart-frame-line{height:285px}
.chart-frame-donut{height:205px;width:205px;flex:0 0 205px}
.chart-legend{display:flex;gap:1.25rem;flex-wrap:wrap;margin-top:1rem;color:var(--apex-muted);font-size:.75rem}
.legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:.4rem}
.strategy-dot{background:#22d3ee}
.benchmark-dot{background:#596b86}
.allocation-chart-wrap{display:flex;align-items:center;gap:1.2rem}
.donut-center{
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  text-align:center;
  pointer-events:none;
}
.donut-center b{font-size:1.65rem;line-height:1;color:#fff}
.donut-center span{font-size:.7rem;color:var(--apex-muted);margin-top:.2rem}
.allocation-key{flex:1;min-width:110px}
.allocation-key div{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:.65rem 0;
  border-bottom:1px solid var(--apex-line);
  color:var(--apex-muted);
  font-size:.8rem;
}
.allocation-key div:last-child{border-bottom:0}
.allocation-key i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:.45rem}
.allocation-key b{color:#fff}
.risk-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--apex-line);
  border-radius:8px;
  margin-top:1rem;
  background:#0f1828;
}
.risk-strip>div{padding:1rem 1.1rem;border-right:1px solid var(--apex-line);min-width:0}
.risk-strip>div:last-child{border-right:0}
.risk-strip i{color:var(--apex-cyan);margin-right:.4rem}
.risk-strip span{color:var(--apex-muted);font-size:.72rem}
.risk-strip b{display:block;color:#fff;font-size:.82rem;margin-top:.25rem}
.analytics-disclaimer{color:#657791;font-size:.68rem;margin-top:.85rem}

@media (max-width:991.98px){
  .analytics-grid{grid-template-columns:1fr}
  .allocation-chart-wrap{justify-content:center}
  .risk-strip{grid-template-columns:repeat(2,1fr)}
  .risk-strip>div:nth-child(2){border-right:0}
  .risk-strip>div:nth-child(-n+2){border-bottom:1px solid var(--apex-line)}
}
@media (max-width:575.98px){
  .apex-hero{padding:3.6rem 0 3rem}
  .apex-hero .d-flex.gap-2{flex-direction:column}
  .apex-hero .btn-lg{width:100%}
  .portfolio-brief{padding:1.15rem}
  .brief-footer{gap:.55rem}
  .brief-footer span{font-size:.62rem}
  .analytics-panel{padding:1rem}
  .panel-head{align-items:flex-start}
  .trend-value b{font-size:1rem}
  .chart-frame-line{height:230px}
  .allocation-chart-wrap{flex-direction:column}
  .allocation-key{width:100%}
  .risk-strip{grid-template-columns:1fr}
  .risk-strip>div{border-right:0!important;border-bottom:1px solid var(--apex-line)}
  .risk-strip>div:last-child{border-bottom:0}
}
/* live trading terminal */
.trading-desk{
  background-color:#080e19;
  background-image:
    linear-gradient(rgba(34,48,74,.16) 1px,transparent 1px),
    linear-gradient(90deg,rgba(34,48,74,.16) 1px,transparent 1px);
  background-size:36px 36px;
}
.terminal-heading{max-width:none}
.live-market-label{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  color:#9ae6b4;
  background:#0f211f;
  border:1px solid rgba(52,211,153,.35);
  border-radius:4px;
  padding:.48rem .7rem;
  font-size:.72rem;
  font-weight:700;
  white-space:nowrap;
}
.live-market-label i{color:#34d399}
.terminal-shell{
  background:#090f1b;
  border:1px solid #2a3a55;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 28px 70px rgba(0,0,0,.32);
}
.terminal-bar{
  min-height:48px;
  padding:.65rem 1rem;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  background:#101a2b;
  border-bottom:1px solid #2a3a55;
  color:#a9b7ca;
  font-size:.76rem;
}
.terminal-brand,.terminal-meta{display:flex;align-items:center;gap:1rem}
.terminal-brand b{color:#fff}
.terminal-lights{display:flex;gap:5px}
.terminal-lights i{display:block;width:8px;height:8px;border-radius:50%;background:#f87171}
.terminal-lights i:nth-child(2){background:#fbbf24}
.terminal-lights i:nth-child(3){background:#34d399}
.terminal-meta{color:#71839e}
.feed-online{color:#86efac}
.feed-online i{font-size:.45rem;margin-right:.25rem}
.terminal-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  min-height:650px;
}
.live-chart-panel{min-width:0;border-right:1px solid #2a3a55;background:#0b1220}
.tv-chart-container{height:650px;width:100%}
.tv-chart-container .tradingview-widget-container__widget{height:calc(100% - 28px);width:100%}
.tradingview-widget-copyright{
  height:28px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:0 .75rem;
  background:#0b1220;
  color:#657791;
  font-size:.66rem;
}
.terminal-sidebar{
  display:flex;
  flex-direction:column;
  background:#0d1524;
}
.desk-panel{padding:1.15rem;border-bottom:1px solid #2a3a55}
.desk-panel:last-child{border-bottom:0}
.panel-head-icon{color:#526681;font-size:1.1rem}
.compact-allocation{display:flex;flex-direction:column;align-items:center}
.compact-allocation .chart-frame-donut{width:180px;height:180px;flex-basis:180px}
.compact-allocation .allocation-key{width:100%;margin-top:.5rem}
.market-coverage{flex:1}
.coverage-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.78rem 0;
  border-bottom:1px solid var(--apex-line);
  color:var(--apex-muted);
  font-size:.78rem;
}
.coverage-row:last-child{border-bottom:0}
.coverage-row span{display:flex;align-items:center;gap:.55rem}
.coverage-row i{color:var(--apex-cyan);font-size:.9rem}
.coverage-row b{color:#dfe7f2;font-size:.72rem}
.terminal-risk-strip{margin-top:1rem;background:#0d1524}

@media (max-width:1199.98px){
  .terminal-grid{grid-template-columns:minmax(0,1fr) 285px}
}
@media (max-width:991.98px){
  .terminal-grid{grid-template-columns:1fr}
  .live-chart-panel{border-right:0;border-bottom:1px solid #2a3a55}
  .tv-chart-container{height:560px}
  .terminal-sidebar{display:grid;grid-template-columns:1fr 1fr}
  .desk-panel{border-bottom:0}
  .desk-panel:first-child{border-right:1px solid #2a3a55}
}
@media (max-width:575.98px){
  .terminal-bar{align-items:flex-start}
  .terminal-meta{display:none}
  .terminal-brand{gap:.65rem}
  .terminal-grid{min-height:0}
  .tv-chart-container{height:500px}
  .terminal-sidebar{display:block}
  .desk-panel:first-child{border-right:0;border-bottom:1px solid #2a3a55}
  .compact-allocation .chart-frame-donut{width:170px;height:170px;flex-basis:170px}
}
/* TradingView replaces its mount node and forces height:100% inline. */
.live-chart-panel{height:650px}
.tv-chart-container{height:100%!important}
@media (max-width:991.98px){
  .live-chart-panel{height:560px}
}
@media (max-width:575.98px){
  .live-chart-panel{height:500px}
}
/* authenticated portfolio workspace */
.dashboard-workspace{padding:2.5rem 0 4.5rem;background:#0a101d;min-height:calc(100vh - 64px)}
.dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem}
.dashboard-identity{display:flex;align-items:center;gap:1rem}
.dashboard-identity .avatar{border-radius:8px}
.workspace-label{color:var(--apex-cyan);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.workspace-label i{margin-right:.3rem}
.dashboard-identity h1{font-size:1.6rem;margin:0 0 .2rem;font-weight:750}
.dashboard-identity>div>p:last-child{color:var(--apex-muted);font-size:.82rem}
.dashboard-actions{display:flex;gap:.55rem}
.dashboard-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr);gap:1rem}
.portfolio-overview,.quick-access-panel,.dashboard-panel{
  background:#111b2d;border:1px solid #2a3a55;border-radius:8px;
}
.portfolio-overview{padding:1.5rem;min-width:0}
.portfolio-overview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.portfolio-total{font-size:2.25rem;font-weight:800;color:#fff;line-height:1.15;margin-top:.35rem}
.portfolio-overview-head p{color:var(--apex-muted);font-size:.75rem;margin:.2rem 0 0}
.account-status{display:inline-flex;align-items:center;gap:.4rem;color:#9ae6b4;background:#0f211f;border:1px solid rgba(52,211,153,.3);border-radius:4px;padding:.4rem .55rem;font-size:.68rem;font-weight:700;white-space:nowrap}
.portfolio-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;padding:1rem 0;margin:1.2rem 0;border-top:1px solid var(--apex-line);border-bottom:1px solid var(--apex-line)}
.portfolio-breakdown span{display:block;color:var(--apex-muted);font-size:.68rem;margin-bottom:.2rem}
.portfolio-breakdown b{display:block;color:#fff;font-size:.95rem}
.dashboard-chart-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.65rem}
.dashboard-chart-head h2,.quick-access-head h2,.dashboard-panel-head h2{font-size:.95rem;margin:.15rem 0 0;font-weight:700}
.dashboard-chart-head span{color:var(--apex-muted);font-size:.68rem}
.chart-total{background:#17243a;border:1px solid #2a3a55;border-radius:4px;padding:.35rem .5rem}
.dashboard-chart-frame{height:215px;position:relative}
.quick-access-panel{padding:1.25rem;display:flex;flex-direction:column}
.quick-access-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:1rem}
.quick-access-head>i{color:#526681;font-size:1.1rem}
.quick-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
.quick-action-grid a{display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;column-gap:.35rem;align-items:center;background:#0d1626;border:1px solid var(--apex-line);border-radius:6px;padding:.72rem;color:#fff}
.quick-action-grid a:hover{border-color:#3a7b8c;background:#111e31}
.quick-action-grid i{grid-row:1/3;color:var(--apex-cyan);font-size:1rem}
.quick-action-grid span{font-size:.78rem;font-weight:700}
.quick-action-grid small{font-size:.61rem;color:var(--apex-muted)}
.account-reference{margin-top:auto;padding-top:1rem;border-top:1px solid var(--apex-line);display:grid;grid-template-columns:1fr auto;align-items:center}
.account-reference span{color:var(--apex-muted);font-size:.68rem}
.account-reference b{color:#fff;font-size:.78rem}
.account-reference small{grid-column:1/3;color:#78a58e;font-size:.62rem;margin-top:.25rem}
.account-reference small i{font-size:.4rem;margin-right:.3rem;color:#34d399}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,1fr);margin:1rem 0;border:1px solid #2a3a55;border-radius:8px;background:#0f1828}
.dashboard-metrics>div{position:relative;padding:1rem 1.1rem;border-right:1px solid var(--apex-line)}
.dashboard-metrics>div:last-child{border-right:0}
.dashboard-metrics i{position:absolute;right:1rem;top:1rem;color:#3d506b}
.dashboard-metrics span{display:block;color:var(--apex-muted);font-size:.68rem}
.dashboard-metrics b{display:block;color:#fff;font-size:1.05rem;margin-top:.2rem}
.dashboard-content-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:1rem}
.dashboard-main-column,.dashboard-side-column{display:flex;flex-direction:column;gap:1rem;min-width:0}
.dashboard-panel{padding:1.25rem}
.dashboard-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.panel-link{font-size:.7rem;font-weight:700;white-space:nowrap}
.dashboard-empty-state{text-align:center;padding:2rem 1rem;border:1px dashed #2a3a55;border-radius:6px;background:#0d1626}
.empty-state-icon{width:44px;height:44px;display:grid;place-items:center;margin:0 auto .75rem;background:#16243a;border:1px solid #2a3a55;border-radius:6px;color:var(--apex-cyan);font-size:1.15rem}
.dashboard-empty-state h3{font-size:.9rem;margin-bottom:.25rem}
.dashboard-empty-state p{color:var(--apex-muted);font-size:.72rem;margin-bottom:.8rem}
.investment-record{padding:1rem 0;border-bottom:1px solid var(--apex-line)}
.investment-record:last-child{border-bottom:0;padding-bottom:0}
.investment-record-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.65rem}
.investment-record-top>div{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.investment-plan{color:var(--apex-cyan);background:#16243a;border:1px solid #2a3a55;border-radius:4px;padding:.25rem .4rem;font-size:.66rem;font-weight:700}
.investment-record-top small,.investment-meta,.investment-notice{color:var(--apex-muted);font-size:.68rem}
.investment-meta{display:flex;justify-content:space-between;gap:1rem;margin-top:.4rem}
.investment-meta b{color:#fff}
.investment-notice{margin:.5rem 0 0}
.compact-empty-state{display:flex;align-items:center;gap:.55rem;color:var(--apex-muted);font-size:.72rem;padding:1rem 0}
.compact-empty-state i{color:#526681;font-size:1.1rem}
.compact-empty-state.vertical{min-height:155px;flex-direction:column;justify-content:center;text-align:center}
.activity-record{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--apex-line)}
.activity-record:last-child{border-bottom:0}
.activity-record>div{display:flex;align-items:center;gap:.65rem;min-width:0}
.activity-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:5px;flex:0 0 30px}
.activity-record b,.activity-record small{display:block}
.activity-record b{font-size:.75rem;color:#fff}
.activity-record small{font-size:.65rem;color:var(--apex-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}
.activity-record strong{font-size:.78rem;white-space:nowrap}
.mix-chart-frame{height:220px;position:relative}
.referral-panel>p{color:var(--apex-muted);font-size:.72rem}
.referral-link-box{display:grid;grid-template-columns:minmax(0,1fr) 38px;background:#0c1524;border:1px solid var(--apex-line);border-radius:6px;overflow:hidden}
.referral-link-box input{min-width:0;background:transparent;border:0;color:#a9b7ca;padding:.65rem;font-size:.68rem;outline:0}
.referral-link-box button{border:0;border-left:1px solid var(--apex-line);background:#16243a;color:var(--apex-cyan)}
.referral-link-box button:hover,.referral-link-box button.copied{background:#1b3242;color:#fff}
.referral-meta{display:flex;justify-content:space-between;margin-top:.7rem;color:var(--apex-muted);font-size:.68rem}
.referral-meta b{color:#fff}
.network-summary{display:flex;align-items:center;justify-content:space-between;background:#111b2d;border:1px solid #2a3a55;border-radius:8px;padding:1.15rem}
.network-summary span,.network-summary small{display:block;color:var(--apex-muted);font-size:.66rem}
.network-summary b{display:block;color:#fff;font-size:1.75rem;line-height:1.1;margin:.25rem 0}
.network-summary a{width:38px;height:38px;display:grid;place-items:center;border:1px solid #2a3a55;border-radius:6px;color:var(--apex-cyan)}

@media (max-width:991.98px){
  .dashboard-overview-grid,.dashboard-content-grid{grid-template-columns:1fr}
  .quick-access-panel{min-height:290px}
  .dashboard-metrics{grid-template-columns:repeat(2,1fr)}
  .dashboard-metrics>div:nth-child(2){border-right:0}
  .dashboard-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--apex-line)}
}
@media (max-width:575.98px){
  .dashboard-workspace{padding:1.5rem 0 3rem}
  .dashboard-header{align-items:flex-start;flex-direction:column}
  .dashboard-identity{align-items:flex-start}
  .dashboard-identity h1{font-size:1.25rem}
  .dashboard-actions{width:100%}
  .dashboard-actions .btn{flex:1;font-size:.75rem;padding:.6rem .45rem}
  .portfolio-overview{padding:1rem}
  .portfolio-overview-head{display:block}
  .account-status{margin-top:.75rem}
  .portfolio-total{font-size:1.85rem}
  .portfolio-breakdown{grid-template-columns:1fr;gap:.7rem}
  .dashboard-chart-frame{height:190px}
  .dashboard-metrics{grid-template-columns:1fr 1fr}
  .dashboard-metrics>div{padding:.85rem}
  .dashboard-metrics i{display:none}
  .dashboard-panel{padding:1rem}
  .panel-link{font-size:.65rem}
  .investment-record-top{align-items:flex-start}
  .investment-meta{display:block}
  .investment-meta b{display:block;margin-top:.2rem}
  .activity-record small{max-width:170px}
}
/* operational UI refinements */
.apex-card,.kpi,.apex-stat{border-radius:8px}
.section-intro{max-width:720px}
.btn,.form-control,.form-select{min-height:42px}
.btn-sm{min-height:34px}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid #67e8f9;
  outline-offset:2px;
}
.support-channel{display:flex;gap:.9rem;padding:1rem 0;border-bottom:1px solid var(--apex-line)}
.support-channel:first-child{padding-top:0}
.support-channel>i{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;
  color:var(--apex-cyan);background:var(--apex-panel-2);border:1px solid var(--apex-line);border-radius:6px}
.support-channel b,.support-channel span,.support-channel a{display:block}
.support-channel span{color:var(--apex-muted);font-size:.74rem;margin:.15rem 0 .25rem}
.support-channel a{font-size:.78rem;overflow-wrap:anywhere}
.support-notice{display:flex;gap:.65rem;margin-top:1rem;padding:.8rem;background:#0d1626;
  border:1px solid var(--apex-line);border-radius:6px;color:var(--apex-muted);font-size:.75rem}
.support-notice i{color:#fbbf24}
.support-message-cell{min-width:280px;max-width:520px;white-space:normal}
.balance-callout{display:flex;justify-content:space-between;align-items:center;padding:1rem;
  background:#0d1626;border:1px solid var(--apex-line);border-radius:6px}
.balance-callout span{color:var(--apex-muted);font-size:.78rem}
.balance-callout b{font-size:1.25rem;color:var(--apex-cyan)}
.network-field{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:.55rem;
  min-height:44px;padding:.45rem .75rem;background:var(--apex-panel-2);border:1px solid var(--apex-line);border-radius:6px}
.network-field i{color:var(--apex-cyan)}
.network-field span{font-weight:700}
.network-field small{color:var(--apex-muted)}
.fee-summary{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--apex-line);border-radius:6px;overflow:hidden}
.fee-summary>div{padding:.8rem 1rem;background:#0d1626}
.fee-summary>div+div{border-left:1px solid var(--apex-line)}
.fee-summary span,.fee-summary b{display:block}
.fee-summary span{color:var(--apex-muted);font-size:.7rem;margin-bottom:.2rem}
.fee-summary b{color:#fff;font-size:.9rem}
.legal p{line-height:1.75}
@media (max-width:575.98px){
  .section{padding:3rem 0}
  .apex-card .card-body{padding:1.15rem}
  .navbar-collapse{padding:1rem 0}
  .apex-nav .navbar-nav{align-items:stretch!important}
  .apex-nav .btn{width:100%;margin-top:.35rem}
  .fee-summary{grid-template-columns:1fr}
  .fee-summary>div+div{border-left:0;border-top:1px solid var(--apex-line)}
}

.payout-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:.5rem;min-width:360px}
.payout-complete-form{display:flex;align-items:center;justify-content:flex-end;gap:.4rem}
.payout-complete-form .form-control{width:220px;min-height:34px;font-size:.68rem}
@media (max-width:767.98px){
  .payout-actions,.payout-complete-form{align-items:stretch;flex-direction:column;min-width:260px}
  .payout-complete-form .form-control{width:100%}
}
