/* ═══════════════════════════════════════════════════════════
   GOODLIVING XRP DASHBOARD — STYLES (Mobile-First Responsive)
════════════════════════════════════════════════════════════ */

:root {
  /* Vaulton Digital Assets — True Black Premium */
  --bg-base:        #000000;
  --bg-card:        #050505;
  --bg-card2:       #080808;
  --bg-card3:       #020202;
  --border:         #1a1a1a;
  --border-light:   #222222;
  --accent-primary: #00d4ff;
  --accent-glow:    rgba(0,212,255,0.10);
  --green:          #00e676;
  --green-dim:      rgba(0,230,118,0.10);
  --yellow:         #ffb300;
  --yellow-dim:     rgba(255,179,0,0.10);
  --red:            #ff4444;
  --red-dim:        rgba(255,68,68,0.10);
  --purple:         #a855f7;
  --text-primary:   #ffffff;
  --text-secondary: #bbbbbb;
  --text-muted:     #777777;
  --tier1:          #00e676;
  --tier2:          #ffb300;
  --tier3:          #a855f7;
  --radius:         10px;
  --radius-sm:      6px;
  --header-h:       58px;
  --sticky-h:       0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  background: #000;
  border-bottom: 1px solid #1c1c1c;
  position: sticky; top: 0; z-index: 200;
  min-height: var(--header-h);
  height: auto;
}
.header-inner {
  max-width: 1600px; margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand-logo {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, #c9a84c, #f0d080, #8b6914);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 13px; color: #000;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(201,168,76,0.4);
}
.brand-name  { font-weight: 800; font-size: 16px; white-space: nowrap; letter-spacing: 0.3px; color: #f5f5f5; }
.brand-sub   { font-size: 10px; color: #aaa; display: block; white-space: nowrap; letter-spacing: 0.3px; }
.header-live { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.live-dot    { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 1.8s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(0,230,118,0.4); } 50% { opacity:0.7; box-shadow:0 0 0 5px rgba(0,230,118,0); } }
.header-price { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.price-label  { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: none; }
.price-value  { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 500; color: var(--accent-primary); }

@media (max-width: 600px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 6px 12px;
    gap: 4px;
  }
  .brand { flex: 1; min-width: 0; }
  .header-live {
    font-size: 9px;
    order: 3;
    width: 100%;
    padding-top: 2px;
  }
  .header-price {
    flex-shrink: 0;
  }
  .price-label { display: none; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 8px; }
}

/* ── STICKY PRICE BAR ─────────────────────────────────────── */
.sticky-price-bar {
  display: none;
  position: sticky;
  top: var(--header-h);
  z-index: 190;
  background: #0a1628;
  border-bottom: 2px solid var(--accent-primary);
  box-shadow: 0 4px 20px rgba(0,212,255,0.15);
}
.sticky-price-bar.visible { display: block; }
.spb-inner {
  max-width: 1600px; margin: 0 auto;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.spb-label  { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; white-space: nowrap; }
.spb-price  { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 500; color: var(--accent-primary); white-space: nowrap; transition: all 0.3s; }
.spb-range  { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.spb-regime { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; letter-spacing: 0.8px; white-space: nowrap; }
.spb-regime.BULLISH { background: var(--green-dim); color: var(--green); }
.spb-regime.NEUTRAL { background: var(--yellow-dim); color: var(--yellow); }
.spb-regime.BEARISH { background: var(--red-dim); color: var(--red); }
.spb-tiers  { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.spb-tier-pill { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.spb-tier-pill.t1 { background: rgba(0,230,118,0.15); color: var(--tier1); border: 1px solid rgba(0,230,118,0.3); }
.spb-tier-pill.t2 { background: rgba(255,179,0,0.15); color: var(--tier2); border: 1px solid rgba(255,179,0,0.3); }
.spb-tier-pill.t3 { background: rgba(168,85,247,0.15); color: var(--tier3); border: 1px solid rgba(168,85,247,0.3); }

/* ── MODE SWITCHER ────────────────────────────────────────── */
.mode-switcher-wrapper {
  background: #000;
  border-bottom: 1px solid #1c1c1c;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mode-switcher {
  max-width: 1600px; margin: 0 auto;
  display: flex; gap: 4px;
  padding: 8px 16px;
  white-space: nowrap;
}
.mode-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #666; font-size: 12px; font-weight: 600; font-family: 'Montserrat', sans-serif;
  cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.mode-btn:hover  { background: var(--bg-card); border-color: var(--border-light); color: var(--text-primary); }
.mode-btn.active { background: var(--accent-glow); border-color: var(--accent-primary); color: var(--accent-primary); }

/* ── PANELS ──────────────────────────────────────────────── */
.mode-panel { display: none; max-width: 1600px; margin: 0 auto; padding: 16px; }
.mode-panel.active { display: block; }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section {
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.section-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.section-icon { color: var(--accent-primary); font-size: 14px; }
.section-header h2 { font-size: 15px; font-weight: 700; flex: 1; font-family: 'Montserrat', sans-serif; letter-spacing: 0.3px; }
.live-badge { padding: 2px 8px; background: var(--green-dim); border: 1px solid var(--green); border-radius: 4px; font-size: 9px; font-weight: 700; color: var(--green); letter-spacing: 1px; animation: pulse 2s infinite; }
.signal-rule-tag { font-size: 10px; color: var(--text-muted); background: var(--bg-card2); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; }

/* ── SNAPSHOT ──────────────────────────────────────────────── */
.snapshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px)  { .snapshot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .snapshot-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .snapshot-grid { grid-template-columns: repeat(8, 1fr); } }

.snap-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; }
.snap-label { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 6px; }
.snap-value { font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 500; margin-bottom: 3px; }
.snap-sub   { font-size: 10px; color: #999; }
.accent-green  { color: var(--green); }
.accent-yellow { color: var(--yellow); }
.accent-red    { color: var(--red); }

/* ── FVE GRID ──────────────────────────────────────────────── */
.fve-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 800px)  { .fve-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .fve-grid { grid-template-columns: 1fr 1fr 1fr; } }

.fve-formula-card, .fve-blended-card, .fve-gauge-card {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; overflow: hidden;
}
.fve-formula-title { font-size: 11px; font-weight: 600; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.fve-formula { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--yellow); background: rgba(255,179,0,0.06); border: 1px solid rgba(255,179,0,0.15); border-radius: 5px; padding: 8px; margin-bottom: 10px; line-height: 1.5; word-break: break-all; }
.live-data-tag { font-size: 10px; color: var(--green); background: var(--green-dim); border-radius: 4px; padding: 3px 8px; margin-bottom: 12px; display: inline-block; }
.live-src { font-size: 9px; color: var(--text-muted); }
.fve-inputs { display: flex; flex-direction: column; gap: 9px; }
.fve-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fve-row label { font-size: 11px; color: var(--text-secondary); flex: 1; min-width: 140px; }
.fve-input-wrap { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.fve-input-wrap input { width: 74px; padding: 5px 7px; background: #0a0a0a; border: 1px solid #333; border-radius: 5px; color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 400; text-align: right; }
.fve-unit { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.fve-result-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.fve-result-label { font-size: 12px; color: var(--text-secondary); }
.fve-result-value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 500; color: var(--accent-primary); }
.fve-data-note { font-size: 10px; color: #999; margin-top: 10px; line-height: 1.5; font-style: italic; }

.blended-outputs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.blended-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--bg-base); border-radius: 6px; }
.case-label { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.case-label.conservative { background: var(--red-dim); color: var(--red); }
.case-label.base         { background: var(--yellow-dim); color: var(--yellow); }
.case-label.bull         { background: var(--green-dim); color: var(--green); }
.case-range { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; }
.vs-market-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--border); margin-top: 8px; }
.vs-label { font-size: 11px; color: var(--text-muted); }
.vs-price { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 500; }
.vs-verdict { font-size: 10px; padding: 2px 8px; background: var(--yellow-dim); color: var(--yellow); border-radius: 4px; font-weight: 600; }
.composite-score-row { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.score-item { display: flex; align-items: center; gap: 7px; }
.score-bar-label { font-size: 11px; color: #aaa; width: 95px; flex-shrink: 0; }
.score-bar-outer { flex: 1; height: 5px; background: var(--bg-base); border-radius: 3px; overflow: hidden; min-width: 40px; }
.score-bar-inner { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.5s; }
.score-bar-inner.score-yellow { background: var(--yellow); }
.score-bar-inner.score-red    { background: var(--red); }
.score-pct { font-size: 10px; color: var(--text-secondary); width: 22px; text-align: right; font-family: 'JetBrains Mono', monospace; }
.composite-final { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); flex-wrap: wrap; }
.composite-num { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 500; margin-left: auto; }
.regime-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.8px; }
.regime-badge.green  { background: var(--green-dim); color: var(--green); }
.regime-badge.yellow { background: var(--yellow-dim); color: var(--yellow); }
.regime-badge.red    { background: var(--red-dim); color: var(--red); }
.gauge-wrap { display: flex; justify-content: center; }
.gauge-label { text-align: center; font-size: 13px; font-weight: 600; margin-top: 6px; }
.regime-narrative { font-size: 11px; color: var(--text-secondary); line-height: 1.5; margin-top: 10px; padding: 10px; background: var(--bg-base); border-left: 3px solid var(--yellow); border-radius: 0 5px 5px 0; }

/* ── TIER CARDS ──────────────────────────────────────────── */
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px)  { .tier-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }

.tier-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; position: relative; overflow: hidden; }
.tier-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.tier-1::before { background: var(--tier1); }
.tier-2::before { background: var(--tier2); }
.tier-3::before { background: var(--tier3); }
.tier-badge { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; padding: 2px 7px; border-radius: 3px; display: inline-block; margin-bottom: 5px; }
.tier-1 .tier-badge { background: var(--green-dim); color: var(--tier1); }
.tier-2 .tier-badge { background: var(--yellow-dim); color: var(--tier2); }
.tier-3 .tier-badge { background: rgba(168,85,247,0.12); color: var(--tier3); }
.tier-range { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.tier-1 .tier-range { color: var(--tier1); }
.tier-2 .tier-range { color: var(--tier2); }
.tier-3 .tier-range { color: var(--tier3); }
.tier-prob-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tier-prob-outer { flex: 1; height: 10px; background: var(--bg-base); border-radius: 5px; overflow: hidden; }
.tier-prob-inner { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.t1-bar { background: linear-gradient(90deg, #00e676, #00bfa5); }
.t2-bar { background: linear-gradient(90deg, #ffb300, #ff8f00); }
.t3-bar { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.tier-prob-num { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 500; min-width: 44px; text-align: right; }
.tier-1 .tier-prob-num { color: var(--tier1); }
.tier-2 .tier-prob-num { color: var(--tier2); }
.tier-3 .tier-prob-num { color: var(--tier3); }
.tier-confidence { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.conf-label { font-size: 10px; color: var(--text-muted); }
.conf-val   { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.tier-time-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 12px; }
.ttime-block { background: var(--bg-base); border-radius: 5px; padding: 7px 5px; text-align: center; border: 1px solid var(--border); }
.ttime-block.ttime-active { border-color: var(--accent-primary); background: var(--accent-glow); }
.ttime-label { font-size: 9px; color: var(--text-muted); margin-bottom: 3px; }
.ttime-pct   { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; }
.ttime-block.ttime-active .ttime-pct { color: var(--accent-primary); }
.tier-drivers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.driver-block { border-radius: 5px; padding: 8px; }
.green-block { background: var(--green-dim); border: 1px solid rgba(0,230,118,0.2); }
.red-block   { background: var(--red-dim); border: 1px solid rgba(255,68,68,0.2); }
.driver-title { font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 5px; }
.green-block .driver-title { color: var(--green); }
.red-block   .driver-title { color: var(--red); }
.driver-block ul { list-style: none; }
.driver-block li { font-size: 10px; color: var(--text-secondary); padding: 2px 0 2px 10px; position: relative; line-height: 1.4; }
.driver-block li::before { content: '·'; position: absolute; left: 0; color: var(--text-muted); }
.sens-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-muted); margin-bottom: 7px; }
.sens-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sens-row span:first-child { font-size: 10px; color: var(--text-secondary); width: 100px; flex-shrink: 0; }
.sens-row span:last-child  { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; width: 28px; text-align: right; }
.sens-bar-outer { flex: 1; height: 4px; background: var(--bg-base); border-radius: 2px; overflow: hidden; }
.sens-bar-inner { height: 100%; background: var(--accent-primary); border-radius: 2px; }
.sens-bar-inner.sens-red { background: var(--red); }

/* ── SIGNALS ─────────────────────────────────────────────── */
.signals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 600px)  { .signals-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .signals-grid { grid-template-columns: repeat(9, 1fr); } }

.signal-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; position: relative; }
.signal-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.signal-card.sig-green::before  { background: var(--green); }
.signal-card.sig-yellow::before { background: var(--yellow); }
.signal-card.sig-red::before    { background: var(--red); }
.signal-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 7px; gap: 4px; }
.signal-name { font-size: 11px; font-weight: 600; line-height: 1.3; }
.signal-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.sig-green  .signal-dot  { background: var(--green);  box-shadow: 0 0 5px var(--green); }
.sig-yellow .signal-dot  { background: var(--yellow); box-shadow: 0 0 5px var(--yellow); }
.sig-red    .signal-dot  { background: var(--red);    box-shadow: 0 0 5px var(--red); }
.signal-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.sig-green  .signal-value { color: var(--green); }
.sig-yellow .signal-value { color: var(--yellow); }
.sig-red    .signal-value { color: var(--red); }
.signal-state { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.sig-green  .signal-state { color: var(--green); }
.sig-yellow .signal-state { color: var(--yellow); }
.sig-red    .signal-state { color: var(--red); }
.signal-bias { font-size: 10px; color: #999; margin-top: 5px; line-height: 1.4; }
.signal-summary { padding: 12px; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* ── XRPL ACTIVITY ───────────────────────────────────────── */
.xrpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 600px)  { .xrpl-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .xrpl-grid { grid-template-columns: repeat(8, 1fr); } }

.xrpl-stat-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 10px; }
.xstat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 5px; }
.xstat-val   { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 500; margin-bottom: 3px; }
.xstat-trend { font-size: 10px; color: var(--text-muted); }
.xrpl-chart-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .xrpl-chart-row { grid-template-columns: 1fr 1fr; } }
.xrpl-chart-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.chart-title { font-size: 11px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.tornado-wrap { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; overflow-x: auto; }

/* ── MODE 2A ──────────────────────────────────────────────── */
.mode-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.6; }
.tier-selector { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tier-sel-btn { padding: 9px 22px; background: var(--bg-card2); border: 2px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.tier-sel-btn:hover  { border-color: var(--accent-primary); color: var(--text-primary); }
.tier-sel-btn.active { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.tier-infer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 600px)  { .tier-infer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tier-infer-grid { grid-template-columns: repeat(4, 1fr); } }
.infer-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.infer-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 5px; }
.infer-range { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: var(--accent-primary); margin-bottom: 3px; }
.infer-note  { font-size: 10px; color: var(--text-muted); }
.tier-infer-summary { padding: 14px; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-secondary); line-height: 1.7; border-left: 3px solid var(--accent-primary); }

/* ── MODE 2B ──────────────────────────────────────────────── */
.var-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .var-layout { grid-template-columns: 1.3fr 0.7fr; align-items: start; } }

.var-group-title {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--accent-primary); margin-bottom: 10px;
}
.group-note { font-size: 10px; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.mt-24 { margin-top: 22px; }
.slider-panel { display: flex; flex-direction: column; gap: 8px; }

.slider-row { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 6px; }
.slider-label { font-size: 11px; color: var(--text-secondary); flex: 1; }
.slider-val   { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: var(--accent-primary); white-space: nowrap; flex-shrink: 0; }
.slider-range-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-muted); margin-top: 3px; }

input[type="range"] {
  width: 100%; height: 4px; -webkit-appearance: none;
  background: var(--bg-base); border-radius: 2px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent-primary);
  box-shadow: 0 0 6px rgba(0,212,255,0.5); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-primary); border: none; cursor: pointer;
}

/* Output panel (right side / bottom on mobile) */
.var-outputs-col { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .var-outputs-col { position: sticky; top: calc(var(--header-h) + 60px); } }

.var-output-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.vout-main { border-color: var(--accent-primary); }
.vout-title { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 8px; }
.vout-big   { font-family: 'JetBrains Mono', monospace; font-size: 34px; font-weight: 500; color: var(--accent-primary); transition: all 0.3s; }
.vout-range { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.vout-settlement-detail { font-size: 10px; color: var(--text-muted); margin-top: 6px; font-style: italic; line-height: 1.4; }

.vout-tier-bars { display: flex; flex-direction: column; gap: 9px; }
.vout-tier-row { display: flex; align-items: center; gap: 8px; }
.vout-tier-lbl { font-size: 11px; width: 58px; flex-shrink: 0; }
.vout-tier-bar-outer { flex: 1; height: 7px; background: var(--bg-base); border-radius: 4px; overflow: hidden; }
.vout-tier-bar-inner { height: 100%; border-radius: 4px; transition: width 0.4s; }
.vout-tier-pct { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; width: 34px; text-align: right; }

.vout-timing { display: flex; flex-direction: column; gap: 6px; }
.timing-row  { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 8px; background: var(--bg-base); border-radius: 5px; }
.timing-label { color: var(--text-muted); }
.timing-val   { font-family: 'JetBrains Mono', monospace; color: var(--accent-primary); font-weight: 600; }

.vout-scores { display: flex; flex-direction: column; gap: 6px; }

.regime-indicator { text-align: center; padding: 12px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; letter-spacing: 2px; transition: all 0.4s; }
.regime-BULLISH { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.regime-NEUTRAL { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow); }
.regime-BEARISH { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }

/* ── TREASURY ─────────────────────────────────────────────── */
.treasury-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .treasury-layout { grid-template-columns: 1.4fr 1fr; } }

.treas-group-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent-primary); margin-bottom: 10px; }
.table-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.treasury-table { width: 100%; border-collapse: collapse; font-size: 11px; min-width: 520px; }
.treasury-table th { text-align: left; padding: 7px 8px; background: var(--bg-base); color: var(--text-muted); text-transform: uppercase; font-size: 9px; letter-spacing: 0.6px; border-bottom: 1px solid var(--border); }
.treasury-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.treasury-table td input, .treasury-table td select { width: 100%; background: var(--bg-base); border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); padding: 4px 6px; font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.add-asset-btn { padding: 7px 16px; background: var(--accent-glow); border: 1px solid var(--accent-primary); border-radius: var(--radius-sm); color: var(--accent-primary); font-size: 12px; cursor: pointer; transition: all 0.2s; }
.add-asset-btn:hover { background: rgba(0,212,255,0.2); }
.treas-tier-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.treas-tier-btn { padding: 7px 16px; background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 12px; cursor: pointer; transition: all 0.2s; }
.treas-tier-btn.active { border-color: var(--green); background: var(--green-dim); color: var(--green); font-weight: 600; }
.treas-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tsum-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.tsum-label { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.tsum-val   { font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 500; }
.tsum-val.pos { color: var(--green); }
.tsum-val.neg { color: var(--red); }
.tsum-val.neu { color: var(--accent-primary); }
.treas-scenario-table { overflow-x: auto; margin-bottom: 14px; }
.tscen-table { width: 100%; border-collapse: collapse; font-size: 11px; min-width: 560px; }
.tscen-table th { padding: 6px 8px; background: var(--bg-base); color: var(--text-muted); text-transform: uppercase; font-size: 9px; letter-spacing: 0.6px; border-bottom: 1px solid var(--border); }
.tscen-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.tscen-table .tier-t1 { color: var(--tier1); font-weight: 500; }
.tscen-table .tier-t2 { color: var(--tier2); font-weight: 700; }
.tscen-table .tier-t3 { color: var(--tier3); font-weight: 700; }
.treas-chart-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.treas-chart-row canvas { max-width: 100%; height: auto !important; }
.risk-flags { display: flex; flex-direction: column; gap: 7px; }
.risk-flag { padding: 9px 12px; border-radius: var(--radius-sm); font-size: 11px; display: flex; align-items: center; gap: 7px; }
.risk-flag.warn { background: var(--yellow-dim); border: 1px solid rgba(255,179,0,0.3); color: var(--yellow); }
.risk-flag.ok   { background: var(--green-dim); border: 1px solid rgba(0,230,118,0.3); color: var(--green); }
.risk-flag.crit { background: var(--red-dim); border: 1px solid rgba(255,68,68,0.3); color: var(--red); }

/* ── METHODOLOGY ──────────────────────────────────────────── */
.methodology-section { max-width: 1600px; margin: 0 auto 20px; padding: 0 16px; }
.methodology-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px)  { .methodology-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .methodology-grid { grid-template-columns: repeat(4, 1fr); } }
.meth-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.meth-title { font-size: 12px; font-weight: 700; color: var(--accent-primary); margin-bottom: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.meth-card ul { list-style: none; }
.meth-card li { font-size: 11px; color: #bbb; padding: 3px 0 3px 12px; position: relative; line-height: 1.5; }
.meth-card li::before { content: '→'; position: absolute; left: 0; color: var(--text-muted); font-size: 9px; top: 5px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--bg-card3); border-top: 1px solid var(--border); padding: 14px 16px; text-align: center; font-size: 10px; color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; }

/* ── UTILITIES ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
canvas { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════
   V3 ADDITIONS
════════════════════════════════════════════════════════════ */

/* ── FVE NOTE BANNER ──────────────────────────────────────── */
.fve-note-banner {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.fve-note-banner strong { color: var(--accent-primary); }

/* ── FVE ROW ENHANCEMENT ──────────────────────────────────── */
.fve-row { flex-wrap: wrap; }
.fve-row-left { flex: 1; min-width: 160px; }
.fve-corr-bar { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.corr-fill { height: 5px; border-radius: 3px; }
.corr-fill.up   { background: var(--green); }
.corr-fill.down { background: var(--red); }
.corr-label-small { font-size: 9px; font-weight: 600; white-space: nowrap; }
.corr-label-small.up   { color: var(--green); }
.corr-label-small.down { color: var(--red); }

/* ── INFO BUTTON ──────────────────────────────────────────── */
.info-btn {
  width: 20px; height: 20px;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 50%;
  color: var(--accent-primary);
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
}
.info-btn:hover { background: rgba(0,212,255,0.25); }

.slider-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ── CORRELATION BADGES ON SLIDERS ────────────────────────── */
.corr-badge {
  font-size: 9px; font-weight: 700; padding: 1px 6px;
  border-radius: 3px; white-space: nowrap;
}
.corr-badge.up   { background: rgba(0,230,118,0.15); color: var(--green); border: 1px solid rgba(0,230,118,0.3); }
.corr-badge.down { background: rgba(255,68,68,0.15); color: var(--red);   border: 1px solid rgba(255,68,68,0.3); }

/* ── INFO TOOLTIP ─────────────────────────────────────────── */
.info-tooltip {
  position: fixed;
  z-index: 9999;
  width: 300px;
  background: #0e1a2e;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: fadeInTT 0.15s ease;
}
@keyframes fadeInTT { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
.itt-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.itt-header strong { font-size: 13px; color: var(--accent-primary); }
.itt-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.itt-what  { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.corr-arrow { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 5px; margin-bottom: 8px; }
.corr-arrow.up   { background: var(--green-dim); color: var(--green); }
.corr-arrow.down { background: var(--red-dim);   color: var(--red); }
.itt-corr  { font-size: 11px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.itt-example { font-size: 11px; color: var(--text-muted); font-style: italic; line-height: 1.4; border-top: 1px solid var(--border); padding-top: 7px; }

/* ── TREASURY MOBILE CARDS ────────────────────────────────── */
.treas-mobile-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
@media (min-width: 500px) { .treas-mobile-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .treas-mobile-cards { display: none; } }

.treas-asset-card {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
}
.tac-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tac-asset  { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: var(--accent-primary); }
.tac-bucket { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.bucket-short    { background: rgba(0,212,255,0.1); color: var(--accent-primary); }
.bucket-strategic{ background: rgba(255,179,0,0.1); color: var(--yellow); }
.bucket-long     { background: rgba(168,85,247,0.1); color: var(--purple); }
.tac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tac-lbl  { font-size: 9px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.tac-val  { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; }
.tac-val.pos { color: var(--green); }
.tac-val.neg { color: var(--red); }
.tac-scenarios { display: flex; gap: 6px; flex-wrap: wrap; }
.tac-scen { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.tac-scen.t1 { background: rgba(0,230,118,0.12); color: var(--tier1); }
.tac-scen.t2 { background: rgba(255,179,0,0.12); color: var(--tier2); }
.tac-scen.t3 { background: rgba(168,85,247,0.12); color: var(--tier3); }

/* Hide desktop table on mobile */
.treas-scenario-table { display: none; overflow-x: auto; margin-bottom: 14px; }
@media (min-width: 900px) { .treas-scenario-table { display: block; } }

/* Treasury charts — responsive */
.treas-chart-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 600px) { .treas-chart-row { grid-template-columns: 200px 1fr; align-items: center; } }
.treas-chart-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.treas-chart-card.flex1 { flex: 1; }

/* ── LEGAL DISCLAIMER ─────────────────────────────────────── */
.legal-disclaimer {
  background: #080d14;
  border-top: 1px solid #1a2d42;
  border-bottom: 1px solid #1a2d42;
  padding: 24px 16px;
}
.legal-inner {
  max-width: 1600px; margin: 0 auto;
}
.legal-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.legal-icon { font-size: 16px; }
.legal-body {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 800px) { .legal-body { grid-template-columns: 1fr 1fr; } }
.legal-body p {
  font-size: 11px; color: var(--text-muted); line-height: 1.6;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border-left: 2px solid #1e2f48;
}
.legal-body p strong { color: var(--text-secondary); }
.legal-footer {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid #1e2f48;
  font-size: 10px; color: var(--text-muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.legal-sep { color: #2a3f58; }

/* Footer disclaimer line */
.footer-disclaimer {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── TREASURY MT-24 ───────────────────────────────────────── */
.mt-24 { margin-top: 22px; }

/* ═══════════════════════════════════════════════════════════
   V4 ADDITIONS
════════════════════════════════════════════════════════════ */

/* ── PORTFOLIO SUMMARY ────────────────────────────────────── */
#portfolio-summary { margin: 16px 0; }
.port-summary-inner {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.ps-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--accent-primary);
  margin-bottom: 12px;
}
.ps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 500px) { .ps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ps-grid { grid-template-columns: repeat(4, 1fr); } }

.ps-col {
  padding: 12px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ps-col.t1 { border-color: rgba(0,230,118,0.3); }
.ps-col.t2 { border-color: rgba(255,179,0,0.3); }
.ps-col.t3 { border-color: rgba(168,85,247,0.3); }
.ps-label { font-size: 10px; color: var(--text-muted); margin-bottom: 5px; line-height: 1.4; }
.ps-val { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 500; margin-bottom: 3px; }
.ps-val.neu { color: var(--accent-primary); }
.ps-val.pos { color: var(--tier1); }
.ps-val.pur { color: var(--tier3); }
.t2 .ps-val { color: var(--tier2); }
.ps-note { font-size: 10px; color: var(--text-muted); }

/* ── TREASURY TABLE — ASSET DROPDOWN ──────────────────────── */
.treasury-table td select {
  width: 100%; min-width: 140px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 4px 6px;
  font-size: 11px;
  cursor: pointer;
}

/* ── SCENARIO TABLE TOTAL ROW ─────────────────────────────── */
.tscen-total { background: rgba(0,212,255,0.04); }
.tscen-total td { padding: 8px 8px; border-top: 2px solid var(--border-light); }

/* ── INFO TOOLTIP Z-INDEX FIX ─────────────────────────────── */
.info-tooltip {
  z-index: 99999 !important;
  position: fixed !important;
}

/* ── SLIDER ROW OVERFLOW FIX ──────────────────────────────── */
.slider-row { overflow: visible; }

/* ── TVS BREAKDOWN NOTE ───────────────────────────────────── */
.tvs-breakdown {
  background: var(--bg-base);
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.7;
}
.tvs-breakdown strong { color: var(--text-secondary); }
.tvs-breakdown .tvs-row { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid var(--border); }
.tvs-breakdown .tvs-total { display: flex; justify-content: space-between; padding: 4px 0; color: var(--accent-primary); font-weight: 700; font-size: 11px; }

/* ── TREASURY TABLE WIDE COLUMNS ──────────────────────────── */
.tscen-table { min-width: 900px; }

/* ═══════════════════════════════════════════════════════════
   VAULTON DIGITAL ASSETS — BRAND OVERRIDES v5
════════════════════════════════════════════════════════════ */

/* Montserrat everywhere */
body, button, input, select, textarea {
  font-family: 'Montserrat', sans-serif !important;
}
.fve-formula, .snap-value, .tier-range, .tier-prob-num,
.fve-result-value, .price-value, .vout-big, .spb-price,
.slider-val, .composite-num, .tsum-val, .ps-val,
.case-range, .signal-value, .xstat-val, .tac-val,
.infer-range, .timing-val, .score-pct, .vout-tier-pct {
  font-family: 'JetBrains Mono', monospace !important;
}

/* True black sections */
.section {
  background: #050505;
  border-color: #1a1a1a;
}
.snap-card, .fve-formula-card, .fve-blended-card, .fve-gauge-card,
.tier-card, .signal-card, .xrpl-stat-card, .xrpl-chart-card,
.infer-card, .slider-row, .var-output-card, .tsum-card,
.treas-asset-card, .port-summary-inner, .meth-card,
.signal-summary, .tier-infer-summary, .regime-narrative,
.tornado-wrap {
  
  border-color: #1c1c1c !important;
}

/* Gold accent on active elements */
.mode-btn.active {
  background: rgba(201,168,76,0.08) !important;
  border-color: #c9a84c !important;
  color: #f0d080 !important;
}
.live-badge {
  border-color: #00e676 !important;
  background: rgba(0,230,118,0.08) !important;
}

/* Vaulton Pulse header accent line */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a84c40, transparent);
}

/* ── TREASURY INPUT FIELDS — MUCH LARGER & READABLE ───────── */

/* Table layout: use grid card approach on mobile, wider fields on desktop */
.treasury-table {
  min-width: 0;
  width: 100%;
  font-size: 13px;
}

/* Column widths */
.treasury-table th:nth-child(1) { width: 38%; }
.treasury-table th:nth-child(2) { width: 15%; }
.treasury-table th:nth-child(3) { width: 13%; }
.treasury-table th:nth-child(4) { width: 13%; }
.treasury-table th:nth-child(5) { width: 8%; }
.treasury-table th:nth-child(6) { width: 13%; }

.treasury-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #c9a84c;
  background: #050505;
  padding: 12px 10px;
  border-bottom: 1px solid #2a2a2a;
}

.treasury-table td {
  padding: 10px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #1a1a1a;
}

/* Asset dropdown */
.treasury-table td:nth-child(1) select {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  color: #e8e8e8;
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif !important;
  cursor: pointer;
  min-height: 42px;
}

/* Number inputs — QTY, ENTRY, CURRENT, TARGET */
.treasury-table td input[type="number"] {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  color: #e8e8e8;
  padding: 10px 10px;
  font-size: 15px;
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace !important;
  text-align: right;
  min-height: 42px;
  -moz-appearance: textfield;
  letter-spacing: 0.3px;
}
.treasury-table td input[type="number"]::-webkit-inner-spin-button { opacity: 0.4; }
.treasury-table td input[type="number"]:focus {
  outline: none;
  border-color: #c9a84c;
  background: #1e1a0a;
}

/* Bucket dropdown */
.treasury-table td:nth-child(6) select {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  color: #aaa;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  min-height: 42px;
}

/* Add Asset button — Vaulton gold */
.add-asset-btn {
  background: rgba(201,168,76,0.08) !important;
  border-color: #c9a84c !important;
  color: #f0d080 !important;
  font-weight: 700 !important;
  font-family: 'Montserrat', sans-serif !important;
  padding: 10px 20px !important;
  font-size: 12px !important;
}
.add-asset-btn:hover { background: rgba(201,168,76,0.18) !important; }

/* Tier buttons — gold active */
.treas-tier-btn.active {
  border-color: #c9a84c !important;
  background: rgba(201,168,76,0.08) !important;
  color: #f0d080 !important;
}
.tier-sel-btn.active {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
}

/* Treasury table scroll — full width with proper scroll on mobile */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  border: 1px solid #1c1c1c;
  background: #0a0a0a;
}

/* Scenario table wider */
.tscen-table th {
  color: #c9a84c;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: #050505;
  font-size: 10px;
  padding: 8px 10px;
}
.tscen-table td { padding: 8px 10px; font-size: 12px; }

/* Portfolio summary — Vaulton gold accent on current */
.ps-col { border-left: 3px solid #1c1c1c; }
.ps-col.t1 { border-left-color: var(--tier1); }
.ps-col.t2 { border-left-color: var(--tier2); }
.ps-col.t3 { border-left-color: var(--tier3); }
.ps-col:first-child { border-left-color: #c9a84c; }

/* FVE result value — gold on match */
#fve-settlement-price { color: #f0d080 !important; font-size: 22px !important; }

/* Sticky bar — true black */
.sticky-price-bar {
  background: #000 !important;
  border-bottom: 2px solid #c9a84c !important;
  box-shadow: 0 4px 24px rgba(201,168,76,0.12) !important;
}
.spb-price { color: #f0d080 !important; }

/* Snap value for XRP price */
#snap-price { color: #f0d080; }

/* Gauge label gold when neutral */
#gaugeLabel { font-family: 'Montserrat', sans-serif !important; font-weight: 700; }

/* Legal section */
.legal-disclaimer { background: #000 !important; }
.legal-header { color: #c9a84c !important; }
.legal-footer { color: #333 !important; }

/* Footer */
.site-footer {
  background: #000 !important;
  border-top-color: #1c1c1c !important;
}

/* ═══════════════════════════════════════════════════════════
   V5 — TOOLTIP FIX + SWIPE-TO-DELETE + INFO BTN POLISH
════════════════════════════════════════════════════════════ */

/* ── TOOLTIP — complete override, guaranteed on top ─────── */
.info-tooltip {
  position: fixed !important;
  z-index: 999999 !important;
  background: #0d0d0d !important;
  border: 1px solid #c9a84c !important;
  border-radius: 8px !important;
  padding: 14px 14px 12px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,168,76,0.2) !important;
  animation: fadeInTT 0.12s ease !important;
  pointer-events: auto !important;
  /* Prevent click-through */
  -webkit-tap-highlight-color: transparent;
}
@keyframes fadeInTT {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.info-tooltip .itt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}
.info-tooltip .itt-header strong {
  font-size: 13px;
  color: #f0d080;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}
.info-tooltip .itt-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  color: #888;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 3px 7px;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
}
.info-tooltip .itt-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.info-tooltip .itt-what {
  font-size: 12px;
  color: #aaa;
  line-height: 1.55;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}
.info-tooltip .corr-arrow {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
}
.info-tooltip .corr-arrow.up   { background: rgba(0,230,118,0.12); color: #00e676; border: 1px solid rgba(0,230,118,0.25); }
.info-tooltip .corr-arrow.down { background: rgba(255,68,68,0.12);  color: #ff4444; border: 1px solid rgba(255,68,68,0.25); }
.info-tooltip .itt-example {
  font-size: 11px;
  color: #666;
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid #1c1c1c;
  padding-top: 8px;
  font-family: 'Montserrat', sans-serif;
}

/* ── INFO BUTTON — larger tap target on mobile ─────────── */
.info-btn {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: rgba(201,168,76,0.10) !important;
  border: 1px solid rgba(201,168,76,0.3) !important;
  color: #c9a84c !important;
  font-size: 13px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  font-family: serif !important;
  font-weight: 400 !important;
}
.info-btn:hover, .info-btn:active {
  background: rgba(201,168,76,0.25) !important;
  border-color: #c9a84c !important;
}

/* ── TREASURY DELETE COLUMN ─────────────────────────────── */
.td-del {
  width: 36px !important;
  padding: 0 4px !important;
  text-align: center;
}
.del-row-btn {
  width: 28px;
  height: 28px;
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.25);
  border-radius: 5px;
  color: #ff4444;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.del-row-btn:hover, .del-row-btn:active {
  background: rgba(255,68,68,0.25);
  border-color: #ff4444;
}

/* ── SWIPE-TO-DELETE ANIMATION ──────────────────────────── */
.trow-wrap {
  position: relative;
  transition: transform 0.2s ease;
}
.trow-wrap.swipe-reveal {
  transform: translateX(-60px);
}
/* After swipe, show delete hint via background */
.trow-wrap.swipe-reveal .td-del .del-row-btn {
  background: rgba(255,68,68,0.35);
  border-color: #ff4444;
  transform: scale(1.1);
}

/* ── TABLE: add delete column to header ─────────────────── */
.treasury-table th:last-child {
  width: 36px;
  padding: 8px 4px;
}

/* ═══════════════════════════════════════════════════════════
   PROBABILITY ENGINE PANEL — Vaulton Pulse
   Appended styles — DO NOT remove existing styles above
════════════════════════════════════════════════════════════ */

/* Gold accent variable for Probability Engine */
:root {
  --gold:       #c9a84c;
  --gold-dim:   rgba(201,168,76,0.12);
  --gold-glow:  rgba(201,168,76,0.25);
  --tier4:      #ff6b35;
}

/* ── MODE BUTTON: Probability Engine gold accent ─────────── */
.mode-btn-prob {
  border-color: var(--gold-dim) !important;
}
.mode-btn-prob.active,
.mode-btn-prob:hover {
  background: var(--gold-dim) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

/* ── PANEL INTRO NOTE ─────────────────────────────────────── */
.prob-intro-note {
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ── LIVE BADGE: INTEGRATED MODEL ────────────────────────── */
.prob-badge {
  background: var(--gold-dim) !important;
  color: var(--gold) !important;
  border-color: var(--gold) !important;
}

/* ── BLOCK TITLE ──────────────────────────────────────────── */
.prob-block-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── PHASE SELECTOR ───────────────────────────────────────── */
.prob-phase-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 8px;
}
.prob-auto-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.5px;
  text-transform: none;
}
.prob-phase-btns {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.prob-phase-btn {
  flex: 1;
  min-width: 140px;
  background: var(--bg-card2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  text-align: left;
}
.prob-phase-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.prob-phase-btn.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 16px var(--gold-glow);
}
.phase-num {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}
.phase-name {
  font-size: 15px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
}
.phase-weights {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.prob-phase-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(201,168,76,0.06);
  border-radius: 6px;
  padding: 10px 14px;
  border-left: 2px solid var(--gold);
  line-height: 1.5;
}

/* ── COMPONENT SCORE CARDS ────────────────────────────────── */
.prob-component-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .prob-component-grid { grid-template-columns: 1fr; }
}
.prob-comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prob-comp-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prob-comp-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}
.prob-comp-name {
  font-weight: 700;
  font-size: 13px;
  flex: 1;
  color: var(--text-primary);
}
.prob-comp-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.prob-comp-formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-card2);
  border-radius: 4px;
  padding: 6px 10px;
}
.prob-sub-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prob-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prob-sub-label {
  font-size: 10px;
  color: var(--text-secondary);
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prob-sub-bar-wrap {
  width: 80px;
  height: 6px;
  background: var(--bg-card2);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.prob-sub-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.prob-sub-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.prob-comp-note {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

/* ── DECOUPLING FACTOR ────────────────────────────────────── */
.prob-decouple-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prob-decouple-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.prob-decouple-desc {
  flex: 1;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 200px;
}
.prob-decouple-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.prob-decouple-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.prob-decouple-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}
.prob-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prob-slider-end {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  flex-shrink: 0;
  white-space: nowrap;
}
.prob-decouple-phases {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.phase-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ── RANGE INPUT STYLING ──────────────────────────────────── */
.prob-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: linear-gradient(to right, var(--gold) 0%, var(--bg-card2) 0%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.prob-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #000;
  box-shadow: 0 0 6px var(--gold-glow);
  cursor: pointer;
  transition: transform 0.15s;
}
.prob-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.prob-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #000;
  cursor: pointer;
}

/* ── DYNAMIC WEIGHTS CARD ─────────────────────────────────── */
.prob-weights-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.prob-weight-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.prob-weight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  min-width: 90px;
}
.prob-weight-letter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.prob-weight-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}
.prob-weight-name {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.prob-weight-sep {
  font-size: 20px;
  color: var(--text-muted);
}
.prob-weight-formula {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  line-height: 1.8;
  min-width: 220px;
}

/* ── FINAL SCORE GAUGE SECTION ────────────────────────────── */
.prob-gauge-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.prob-gauge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}
.prob-gauge-wrap {
  position: relative;
}
.prob-gauge-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.prob-gauge-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.prob-score-breakdown {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.prob-score-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.prob-score-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.prob-score-final {
  padding-top: 8px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.prob-score-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── TIER PROBABILITY CARDS ───────────────────────────────── */
.prob-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
@media (max-width: 700px) {
  .prob-tier-grid { grid-template-columns: 1fr; }
}
.prob-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.prob-tier-card.prob-tier-active {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}
.prob-tier-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prob-tier-num {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
  flex-shrink: 0;
}
.prob-tier-name {
  font-weight: 800;
  font-size: 14px;
  flex: 1;
}
.prob-tier-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}
.prob-tier-likely {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
/* Tier color schemes */
.prob-tier-t1 .prob-tier-num { color: var(--green); border-color: var(--green); }
.prob-tier-t1 .prob-tier-name { color: var(--green); }
.prob-tier-t2 .prob-tier-num { color: var(--yellow); border-color: var(--yellow); }
.prob-tier-t2 .prob-tier-name { color: var(--yellow); }
.prob-tier-t3 .prob-tier-num { color: var(--purple); border-color: var(--purple); }
.prob-tier-t3 .prob-tier-name { color: var(--purple); }
.prob-tier-t4 .prob-tier-num { color: var(--tier4); border-color: var(--tier4); }
.prob-tier-t4 .prob-tier-name { color: var(--tier4); }

.prob-tier-prob-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prob-tier-bar-outer {
  flex: 1;
  height: 10px;
  background: var(--bg-card2);
  border-radius: 5px;
  overflow: hidden;
}
.prob-tier-bar-inner {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}
.prob-tier-t1 .prob-tier-bar-inner { background: var(--green); }
.prob-tier-t2 .prob-tier-bar-inner { background: var(--yellow); }
.prob-tier-t3 .prob-tier-bar-inner { background: var(--purple); }
.prob-tier-t4 .prob-tier-bar-inner { background: var(--tier4); }

.prob-tier-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 48px;
  text-align: right;
}
.prob-tier-t1 .prob-tier-pct { color: var(--green); }
.prob-tier-t2 .prob-tier-pct { color: var(--yellow); }
.prob-tier-t3 .prob-tier-pct { color: var(--purple); }
.prob-tier-t4 .prob-tier-pct { color: var(--tier4); }

.prob-tier-ranges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prob-tier-range-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 8px;
}
.prob-tier-drivers-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prob-tier-driver-tag {
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-card2);
  border-radius: 3px;
  padding: 2px 6px;
}

/* ── FORWARD PROBABILITY SHIFT CARD ──────────────────────── */
.prob-forward-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.prob-forward-header {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prob-forward-arrow {
  font-size: 18px;
  color: var(--gold);
}
.prob-forward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 700px) {
  .prob-forward-grid { grid-template-columns: repeat(2, 1fr); }
}
.prob-forward-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.prob-forward-tier-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.prob-forward-now {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
}
.prob-forward-next {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
}
.prob-forward-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}
.prob-forward-delta.up   { color: var(--green); background: var(--green-dim); }
.prob-forward-delta.down { color: var(--red); background: var(--red-dim); }
.prob-forward-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── SENSITIVITY SLIDERS ──────────────────────────────────── */
.prob-sensitivity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .prob-sensitivity-grid { grid-template-columns: 1fr; }
}
.prob-sens-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prob-sens-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prob-sens-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prob-sens-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prob-sens-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.prob-sens-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.prob-sens-note {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── METHODOLOGY CARD ─────────────────────────────────────── */
.prob-meth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.prob-meth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .prob-meth-grid { grid-template-columns: 1fr; }
}
.prob-meth-col { display: flex; flex-direction: column; gap: 10px; }
.prob-meth-head {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.prob-meth-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prob-meth-col ul li {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 10px;
  border-left: 2px solid var(--border-light);
}
.prob-meth-col ul li strong {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   VAULTON PULSE — ADDITIONS: News, Live Prob, Mode 2B Prob
   Appended — DO NOT remove existing styles above
════════════════════════════════════════════════════════════ */

/* ── NEWS LINK CARDS ─────────────────────────────────────── */
.news-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9a84c;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1c1c1c;
}
.news-grid {
  display: grid;
  gap: 10px;
}
.news-grid-2  { grid-template-columns: repeat(2, 1fr); }
.news-grid-4  { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .news-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid-2, .news-grid-4 { grid-template-columns: 1fr; } }

.news-card {
  display: block;
  background: #111;
  border: 1px solid #1c1c1c;
  border-radius: 6px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.news-card:hover {
  border-color: #c9a84c;
  background: #0d0d0d;
}
.news-card-title {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
}
.news-card-url {
  font-size: 10px;
  color: #c9a84c;
  margin-bottom: 6px;
  word-break: break-all;
  font-family: 'JetBrains Mono', monospace;
}
.news-card-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

/* ── INTEGRATED PROBABILITY SECTION (Predictive LIVE) ─────── */
.live-prob-intro {
  font-size: 11px;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.6;
}
.live-prob-wrap {
  background: #0a0a0a;
  border: 1px solid #1c1c1c;
  border-radius: 8px;
  padding: 16px;
  max-width: 700px;
}
.live-prob-loading {
  color: #444;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

/* Phase pill row */
.live-prob-phase-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.live-prob-phase-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
}
.live-prob-d-indicator {
  font-size: 10px;
  color: #555;
  font-family: 'JetBrains Mono', monospace;
}

/* Score bars */
.live-prob-scores {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.live-prob-score-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.live-prob-score-lbl {
  font-size: 11px;
  color: #888;
  font-family: 'Montserrat', sans-serif;
}
.live-prob-bar-outer {
  height: 6px;
  background: #0d0d0d;
  border-radius: 3px;
  overflow: hidden;
}
.live-prob-bar-inner {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.live-prob-score-val {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}

/* Final score display */
.live-prob-final {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #111;
  border-radius: 6px;
  border: 1px solid #1c1c1c;
  flex-wrap: wrap;
}
.live-prob-final-lbl {
  font-size: 11px;
  color: #555;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-prob-final-num {
  font-size: 26px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.live-prob-final-sub {
  font-size: 11px;
  font-weight: 600;
}

/* Tier probability bars */
.live-prob-tiers {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.live-prob-tier-row {
  display: grid;
  grid-template-columns: 120px 1fr 42px auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.live-prob-tier-active {
  border-color: #1c1c1c;
  background: #0d0d0d;
}
.live-prob-tier-lbl {
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.live-prob-tier-bar-outer {
  height: 8px;
  background: #0d0d0d;
  border-radius: 4px;
  overflow: hidden;
}
.live-prob-tier-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.live-prob-tier-pct {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-align: right;
}
.live-prob-likely-badge {
  font-size: 9px;
  font-weight: 700;
  color: #c9a84c;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* ── MODE 2B PROBABILITY SCORES OUTPUT CARD ─────────────────── */
.vout-prob-scores-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vout-prob-phase {
  font-size: 10px;
  color: #666;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  padding-bottom: 6px;
  border-bottom: 1px solid #1c1c1c;
}
.vout-prob-row {
  display: grid;
  grid-template-columns: 90px 1fr 30px;
  align-items: center;
  gap: 6px;
}
.vout-prob-lbl {
  font-size: 10px;
  color: #666;
  font-family: 'Montserrat', sans-serif;
}
.vout-prob-bar-outer {
  height: 5px;
  background: #0d0d0d;
  border-radius: 3px;
  overflow: hidden;
}
.vout-prob-bar-inner {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.vout-prob-val {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}
.vout-prob-final {
  font-size: 12px;
  color: #aaa;
  margin: 8px 0 6px;
  padding: 6px 8px;
  background: #111;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.vout-prob-final strong {
  color: #c9a84c;
}
.vout-prob-tiers {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vout-prob-tier-row {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.vout-prob-likely {
  background: #111;
  border-radius: 3px;
  padding: 2px 0;
}

/* ── MOBILE RESPONSIVE (below 700px) ────────────────────────── */
@media (max-width: 700px) {
  .live-prob-score-row {
    grid-template-columns: 80px 1fr 32px;
  }
  .live-prob-tier-row {
    grid-template-columns: 100px 1fr 36px auto;
    gap: 5px;
  }
  .live-prob-final-num { font-size: 20px; }
  .live-prob-wrap { padding: 12px; }
  .vout-prob-row { grid-template-columns: 70px 1fr 28px; }
  .vout-prob-tier-row { grid-template-columns: 70px 1fr 30px; }
}

/* ═══════════════════════════════════════════════════════════
   NEWS FEED — ARTICLE CARDS WITH TAGS
════════════════════════════════════════════════════════════ */
.news-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #c9a84c;
  margin-top: 20px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1c1c1c;
  font-family: 'Montserrat', sans-serif;
}
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
a.news-card {
  display: block;
  background: #111;
  border: 1px solid #1c1c1c;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
a.news-card:hover {
  border-color: #c9a84c;
  background: #0d0d0d;
}
.news-card-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}
.tag-red    { background: rgba(255,68,68,0.12); color: #ff4444; border: 1px solid rgba(255,68,68,0.25); }
.tag-yellow { background: rgba(255,179,0,0.12); color: #ffb300; border: 1px solid rgba(255,179,0,0.25); }
.tag-green  { background: rgba(0,230,118,0.12); color: #00e676; border: 1px solid rgba(0,230,118,0.25); }
.news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
  font-family: 'Montserrat', sans-serif;
}
.news-card-meta {
  font-size: 10px;
  color: #555;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}
.news-card-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.55;
  font-family: 'Montserrat', sans-serif;
}

/* Reference card grid */
.news-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px) { .news-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .news-grid-4 { grid-template-columns: repeat(4, 1fr); } }

a.ref-card {
  padding: 12px;
}
a.ref-card .news-card-title {
  font-size: 12px;
  color: #c9a84c;
  margin-bottom: 4px;
}
a.ref-card .news-card-desc {
  font-size: 10px;
  color: #555;
}

/* ═══ AD CONTAINERS ═══ */
.ad-container {
  max-width: 1600px;
  margin: 8px auto;
  padding: 0 16px;
  min-height: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-container ins {
  max-width: 100%;
}

/* ═══ DESKTOP TYPOGRAPHY FIX — lighter data values ═══ */
@media (min-width: 900px) {
  .treasury-table td input[type="number"] {
    font-size: 16px;
    font-weight: 400;
    padding: 10px 12px;
    min-height: 44px;
  }
  .treasury-table td:nth-child(1) select {
    font-size: 14px;
    font-weight: 400;
    min-height: 44px;
  }
  .treasury-table td:nth-child(6) select {
    font-size: 13px;
    min-height: 44px;
  }
  .treasury-table th {
    font-size: 12px;
    padding: 14px 12px;
  }
  .treasury-table td {
    padding: 10px 10px;
  }
  .tscen-table td {
    font-size: 13px;
    font-weight: 400;
    padding: 10px 12px;
  }
  .tsum-val {
    font-weight: 600;
  }
  .ps-val {
    font-weight: 700;
  }
}

/* ═══════════════════════════════════════════════════════════
   TREASURY CARD-BASED INPUT (replaces table)
════════════════════════════════════════════════════════════ */
#treasury-cards-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.hold-card {
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 14px;
  transition: border-color 0.2s;
}
.hold-card:hover { border-color: #333; }

.hold-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hold-asset-select {
  flex: 1;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 6px;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif !important;
  cursor: pointer;
  -webkit-appearance: none;
}

.hold-del {
  width: 32px;
  height: 32px;
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.2);
  border-radius: 6px;
  color: #ff4444;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.hold-del:hover { background: rgba(255,68,68,0.2); }

.hold-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.hold-field label {
  display: block;
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif !important;
}

.hold-field input {
  width: 100%;
  background: #0d0d0d;
  border: none;
  border-bottom: 1px solid #333;
  border-radius: 0;
  color: #fff;
  padding: 8px 4px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace !important;
  text-align: left;
  -moz-appearance: textfield;
  transition: border-color 0.2s;
}
.hold-field input:focus {
  outline: none;
  border-bottom-color: #c9a84c;
}
.hold-field input::-webkit-inner-spin-button { opacity: 0; }

.hold-live-price {
  color: #00e676 !important;
}

.hold-card-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #1a1a1a;
  flex-wrap: wrap;
}

.hold-stat {
  display: flex;
  flex-direction: column;
  min-width: 70px;
}
.hold-stat-label {
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hold-stat-val {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.hold-stat-val.pos { color: #00e676; }
.hold-stat-val.neg { color: #ff4444; }

.hold-bucket {
  margin-left: auto;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 5px;
  color: #999;
  padding: 6px 10px;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif !important;
  cursor: pointer;
}

/* ═══ SCENARIO TIMELINE ═══ */
.ps-timeline {
  font-size: 10px;
  color: #c9a84c;
  margin-top: 4px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif !important;
}
