/* FXDPRO QUANT – Dark premium UI */
.quant-body { background: #0a0a0c; }

/* シンプルコントロール（上部） */
.quant-simple-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 12px;
}
.quant-simple-controls select {
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  background: #111114;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
}
.quant-refresh-btn {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  background: #10b981;
  color: #0a0a0c;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.quant-refresh-btn:hover { background: #34d399; }

/* 相関ランキング（メイン表示） */
.quant-ranking-section {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.quant-ranking-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.quant-ranking-desc {
  font-size: 14px;
  color: #aaa;
  margin: 0 0 20px;
}
.quant-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quant-ranking-card {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.quant-ranking-card:hover {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.4);
}
.quant-ranking-rank {
  font-weight: 700;
  color: #10b981;
  font-size: 1.1rem;
}
.quant-ranking-pair {
  font-weight: 600;
  color: #fff;
}
.quant-ranking-corr {
  color: #34d399;
  font-weight: 600;
}
.quant-ranking-lag {
  font-size: 14px;
  color: #888;
}

/* 詳細表示トグル */
.quant-toggle-advanced {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #aaa;
  cursor: pointer;
}
.quant-toggle-advanced:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* 詳細セクション（初期非表示） */
.quant-section-advanced { display: none !important; }
.quant-section-advanced.quant-advanced-visible { display: block !important; }
.quant-section-advanced.quant-advanced-visible.quant-grid { display: grid !important; }
.quant-section-advanced.quant-advanced-visible.quant-charts { display: grid !important; }
.quant-section-advanced.quant-advanced-visible.quant-pinned { display: flex !important; }
.quant-section-advanced.quant-advanced-visible.quant-timeline { display: flex !important; }
.quant-main { max-width: 1400px; margin: 0 auto; padding: 90px 20px 100px; }
.quant-header { margin-bottom: 24px; }
.quant-header h1 { font-size: 1.5rem; margin: 0 0 16px; }
.quant-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.quant-controls select, .quant-controls input { padding: 8px 12px; background: #111114; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 13px; }
.quant-controls label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #aaa; cursor: pointer; }
.quant-meta { font-size: 12px; color: #666; }

/* 相関の見方ガイド */
.quant-guide { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.quant-guide h3 { margin: 0; font-size: 0.95rem; color: #10b981; cursor: pointer; }
.quant-guide-body { margin-top: 12px; }
.quant-guide-grid { display: grid; gap: 10px; font-size: 13px; color: #aaa; line-height: 1.5; }
.quant-guide-item strong { color: #fff; }

/* Market Regime */
.quant-regime-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.quant-regime-label { color: #888; }
.quant-regime-badge { padding: 4px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; }
.quant-regime-badge.TRENDING { background: rgba(16,185,129,0.25); color: #10b981; }
.quant-regime-badge.MEAN_REVERTING { background: rgba(245,158,11,0.25); color: #f59e0b; }
.quant-regime-badge.NEUTRAL { background: rgba(255,255,255,0.1); color: #888; }
.quant-regime-conf { color: #666; font-size: 12px; }

/* TOP OPPORTUNITY */
.quant-top-opportunity { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04)); border: 1px solid rgba(16,185,129,0.3); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.quant-top-opportunity h3 { margin: 0 0 12px; font-size: 0.85rem; color: #10b981; letter-spacing: 0.05em; }
.quant-top-opportunity .top-opp-symbol { font-size: 1.4rem; font-weight: 700; color: #fff; }
.quant-top-opportunity .top-opp-clickable { cursor: pointer; }
.quant-top-opportunity .top-opp-clickable:hover { color: #10b981; }
.quant-top-opportunity .top-opp-meta { font-size: 13px; color: #aaa; margin-top: 8px; }
.quant-top-opportunity .top-opp-reason { font-size: 12px; color: #888; margin-top: 8px; line-height: 1.4; }
.quant-top-opportunity .top-opp-summary { font-size: 14px; color: #ddd; margin: 8px 0; line-height: 1.5; }
.detail-interp { background: rgba(16,185,129,0.1); border-left: 3px solid #10b981; padding: 12px; margin-bottom: 16px; font-size: 14px; color: #ddd; line-height: 1.5; border-radius: 0 8px 8px 0; }

/* Cross Asset Flow – flow-card */
.quant-cross-asset-flows { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.quant-cross-asset-flows h3 { margin: 0 0 12px; font-size: 0.85rem; color: #3b82f6; letter-spacing: 0.05em; }
.quant-flows-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.flow-card { padding: 12px 16px; background: rgba(0,0,0,0.25); border: 1px solid rgba(59,130,246,0.15); border-radius: 10px; font-size: 12px; cursor: pointer; transition: background 0.15s, border-color 0.15s; min-width: 160px; }
.flow-card:hover { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.3); }
.flow-card .flow-direction { display: block; color: #3b82f6; font-weight: 600; font-size: 11px; letter-spacing: 0.03em; margin-bottom: 6px; }
.flow-card .flow-pair { color: #fff; font-weight: 500; margin-bottom: 4px; }
.flow-card .flow-lag { color: #888; font-size: 11px; }
.flow-card .flow-strength { color: #10b981; font-size: 11px; font-weight: 600; margin-top: 2px; }

/* Flow Heatmap */
.quant-flow-heatmap { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.quant-flow-heatmap h3 { margin: 0 0 12px; font-size: 0.85rem; color: #888; letter-spacing: 0.05em; }
.heatmap-matrix { display: grid; grid-template-columns: auto repeat(4, 1fr); grid-template-rows: auto repeat(4, 1fr); gap: 4px; max-width: 420px; margin-bottom: 12px; }
.heatmap-cell { padding: 8px; border-radius: 6px; font-size: 11px; text-align: center; cursor: pointer; min-height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.heatmap-cell:hover { opacity: 0.9; }
.heatmap-cell.heat-0 { background: rgba(255,255,255,0.04); color: #555; }
.heatmap-cell.heat-1 { background: rgba(59,130,246,0.15); color: #7eb8ff; }
.heatmap-cell.heat-2 { background: rgba(245,158,11,0.2); color: #fbbf24; }
.heatmap-cell.heat-3 { background: rgba(16,185,129,0.25); color: #34d399; }
.heatmap-cell.heat-4 { background: rgba(16,185,129,0.45); color: #10b981; }
.heatmap-cell.diagonal { background: rgba(255,255,255,0.02); color: #444; cursor: default; pointer-events: none; opacity: 0.6; }
.heatmap-cell.axis { background: transparent; color: #666; font-weight: 600; font-size: 10px; cursor: default; }
.heatmap-flow-detail { font-size: 12px; color: #888; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.04); }

/* Liquidity Shocks */
.quant-liquidity-shocks { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.quant-liquidity-shocks h3 { margin: 0 0 12px; font-size: 0.85rem; color: #f87171; letter-spacing: 0.05em; }
.shocks-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.shock-card { padding: 12px 16px; border-radius: 10px; font-size: 12px; cursor: pointer; min-width: 160px; }
.shock-card.upward { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.3); }
.shock-card.downward { background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.3); }
.shock-card.elevated { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.2); }
.shock-card .shock-symbol { font-weight: 700; font-size: 1rem; }
.shock-card .shock-state { font-size: 11px; margin-top: 4px; }
.shock-card .shock-z { font-size: 11px; color: #888; margin-top: 2px; }
.shock-card .shock-hint { font-size: 11px; color: #666; margin-top: 6px; line-height: 1.3; }

/* Smart Money Tracker */
.quant-smart-money { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.15); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.quant-smart-money h3 { margin: 0 0 8px; font-size: 0.85rem; color: #10b981; letter-spacing: 0.05em; }
.quant-smart-disclaimer { font-size: 11px; color: #666; margin: 0 0 12px; }
.smart-money-list { display: flex; flex-wrap: wrap; gap: 10px; }
.smart-money-card { padding: 12px 16px; border-radius: 10px; font-size: 12px; cursor: pointer; min-width: 200px; }
.smart-money-card.institutional { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.3); }
.smart-money-card.strong { background: rgba(59,130,246,0.2); border: 1px solid rgba(59,130,246,0.3); }
.smart-money-card.possible { background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.3); }
.smart-money-card.weak { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.smart-money-card .sm-symbol { font-weight: 700; }
.smart-money-card .sm-meta { font-size: 11px; color: #888; margin-top: 4px; }
.smart-money-card .sm-label { font-size: 11px; font-weight: 600; margin-top: 4px; }
.smart-money-card .sm-reason { font-size: 11px; color: #666; margin-top: 4px; line-height: 1.3; }
.quant-disclaimer-advanced { margin-top: 8px; font-size: 10px; }

/* Timeline Selector */
.quant-timeline { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; }
.timeline-label { color: #666; }
.timeline-btn { padding: 6px 12px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #888; border-radius: 6px; cursor: pointer; font-size: 11px; }
.timeline-btn:hover { color: #fff; }
.timeline-btn.active { background: rgba(16,185,129,0.2); color: #10b981; border-color: #10b981; }
.timeline-btn.active#timeline-live { background: rgba(16,185,129,0.2); }
#timeline-snapshot-select { padding: 6px 10px; background: #111114; border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 6px; font-size: 12px; }

/* Change Feed */
.quant-change-feed { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.quant-change-feed h3 { margin: 0 0 12px; font-size: 0.85rem; color: #888; letter-spacing: 0.05em; }
.change-feed-item { padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 12px; }
.change-feed-item.high { background: rgba(239,68,68,0.15); border-left: 3px solid #ef4444; }
.change-feed-item.medium { background: rgba(59,130,246,0.12); border-left: 3px solid #3b82f6; }
.change-feed-item.low { background: rgba(255,255,255,0.04); border-left: 3px solid #666; }

/* Mini History */
.quant-mini-history { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.quant-mini-history h4 { margin: 0 0 12px; font-size: 0.8rem; color: #666; }
.mini-history-sparklines { font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.mini-history-row { margin-bottom: 8px; }
.mini-history-row span { display: inline-block; width: 80px; color: #888; }
.mini-history-spark { letter-spacing: 1px; color: #10b981; }

/* Alerts Bell */
.quant-alerts-bell { position: relative; cursor: pointer; padding: 8px 12px; margin-right: 16px; display: inline-flex; align-items: center; }
.quant-alerts-icon { font-size: 18px; }
.quant-alerts-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.quant-alerts-count.zero { display: none; }
.quant-alerts-panel { display: none; position: fixed; top: 80px; right: 20px; width: 320px; max-height: 400px; background: #111114; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 9990; overflow: hidden; }
.quant-alerts-panel.open { display: block; }
.quant-alerts-panel h4 { margin: 0; padding: 16px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.quant-alerts-panel #quant-alerts-list { padding: 12px; max-height: 300px; overflow-y: auto; }
.quant-alerts-panel .quant-alert-item { padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 8px; font-size: 12px; }
.quant-alerts-panel .quant-alert-item:last-child { margin-bottom: 0; }
.quant-alerts-panel .quant-alert-symbol { font-weight: 700; color: #10b981; }
.quant-alerts-panel #quant-alerts-empty { color: #666; font-size: 12px; padding: 16px; margin: 0; }

.quant-grid { display: grid; grid-template-columns: 56% 44%; gap: 20px; margin-bottom: 32px; }
@media (max-width: 900px) { .quant-grid { grid-template-columns: 1fr; } }

/* スマホ: ランキングカードを大きく、見やすく */
@media (max-width: 600px) {
  .quant-simple-controls { padding: 14px 18px; }
  .quant-simple-controls select { font-size: 18px; }
  .quant-refresh-btn { font-size: 16px; padding: 12px 24px; }
  .quant-ranking-section { padding: 18px 20px; }
  .quant-ranking-title { font-size: 1.3rem; }
  .quant-ranking-card {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 18px 20px;
    font-size: 18px;
  }
  .quant-ranking-rank { font-size: 1.2rem; grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .quant-ranking-pair { font-size: 1.1rem; grid-column: 2; grid-row: 1; }
  .quant-ranking-corr, .quant-ranking-lag { grid-column: 2; grid-row: 2; font-size: 15px; }
  .quant-ranking-corr { margin-right: 12px; }
  .quant-top-opportunity .top-opp-symbol { font-size: 1.3rem; }
  .quant-top-opportunity .top-opp-summary { font-size: 15px; }
}
@media (max-width: 400px) {
  .quant-ranking-card { font-size: 16px; padding: 16px 18px; }
  .quant-ranking-pair { font-size: 1rem; }
}

/* スマホ: 詳細セクション（表・チャート等） */
@media (max-width: 600px) {
  .quant-table .quant-col-pin,
  .quant-table .quant-col-leader,
  .quant-table .quant-col-lag,
  .quant-table .quant-col-corr,
  .quant-table .quant-col-zscore,
  .quant-table .quant-col-state { display: none !important; }
  .quant-table th, .quant-table td { padding: 10px 12px; font-size: 14px; }
  .quant-table-wrap { overflow-x: visible; }
  .quant-detail { display: none; }
  .quant-grid { grid-template-columns: 1fr; }
  .quant-cross-asset-flows,
  .quant-flow-heatmap,
  .quant-liquidity-shocks,
  .quant-smart-money,
  .quant-change-feed { margin-bottom: 12px; }
  .quant-charts { grid-template-columns: 1fr; gap: 12px; }
  .quant-chart-panel canvas { max-height: 160px; }
}

.quant-table-wrap { background: #111114; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow-x: auto; }
.quant-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.quant-table th, .quant-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.04); }
.quant-table th { color: #666; font-weight: 600; }
.quant-table tbody tr { cursor: pointer; transition: background 0.15s; }
.quant-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.quant-table tbody tr.selected { background: rgba(16,185,129,0.1); }

.quant-state { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.quant-state.HIGH_CONVICTION { background: rgba(16,185,129,0.25); color: #10b981; }
.quant-state.GOOD_SETUP { background: rgba(59,130,246,0.25); color: #3b82f6; }
.quant-state.WATCHLIST { background: rgba(245,158,11,0.25); color: #f59e0b; }
.quant-state.LOW_QUALITY { background: rgba(255,255,255,0.08); color: #888; }

.quant-detail { background: #111114; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 20px; }
.quant-detail h3 { margin: 0 0 16px; font-size: 1.1rem; }
.quant-detail p { margin: 8px 0; font-size: 13px; color: #aaa; }
.quant-detail .detail-summary { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 8px; margin-top: 12px; font-size: 12px; line-height: 1.5; }
.quant-hint { color: #666 !important; }
.quant-interpretation { margin-top: 16px; padding: 12px; background: rgba(16,185,129,0.08); border-left: 3px solid #10b981; border-radius: 4px; font-size: 12px; color: #ccc; }

.quant-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 1100px) { .quant-charts { grid-template-columns: 1fr; } }
.quant-chart-panel { background: #111114; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; }
.quant-chart-panel h4 { margin: 0 0 12px; font-size: 0.9rem; color: #888; }
.quant-chart-panel canvas { max-height: 200px; }

.quant-disclaimer { font-size: 11px; color: #555; text-align: center; margin: 0; padding: 16px; border-top: 1px solid rgba(255,255,255,0.04); }
.quant-disclaimer-advanced { margin-top: 8px; font-size: 10px; }

/* User Workspace & Watchlist */
.quant-control-label { font-size: 11px; color: #666; margin-right: 4px; }
.quant-watchlists-wrap, .quant-views-wrap { display: flex; align-items: center; gap: 6px; }
.quant-btn-icon { width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: #888; border-radius: 6px; cursor: pointer; font-size: 14px; }
.quant-btn-icon:hover { color: #fff; background: rgba(255,255,255,0.1); }
.quant-btn-sm { padding: 6px 12px; border: 1px solid rgba(16,185,129,0.5); background: rgba(16,185,129,0.15); color: #10b981; border-radius: 6px; cursor: pointer; font-size: 12px; }
.quant-btn-sm:hover { background: rgba(16,185,129,0.25); }
.quant-btn-ghost { border-color: rgba(255,255,255,0.2); background: transparent; color: #888; }
.quant-btn-ghost:hover { color: #fff; }
.quant-pinned { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 14px; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); border-radius: 10px; }
.quant-pinned-label { font-size: 12px; color: #666; font-weight: 600; }
.quant-pinned-symbols { display: flex; flex-wrap: wrap; gap: 8px; }
.quant-pinned-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.quant-pinned-chip:hover { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); }
.quant-pin-remove { background: none; border: none; color: #666; cursor: pointer; font-size: 14px; padding: 0 2px; }
.quant-pin-remove:hover { color: #ef4444; }
.quant-pin-cell { width: 36px; padding: 6px !important; }
.quant-pin-btn { background: none; border: none; cursor: pointer; font-size: 14px; opacity: 0.5; }
.quant-pin-btn:hover { opacity: 1; }
.quant-pin-btn.pinned { opacity: 1; }
.quant-notes { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.quant-notes h4 { margin: 0 0 12px; font-size: 0.8rem; color: #666; }
.quant-note-text { font-size: 13px; color: #aaa; margin-bottom: 10px; line-height: 1.5; }
.quant-notes-edit textarea { width: 100%; padding: 10px; background: #111114; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 13px; margin-bottom: 8px; resize: vertical; }
.quant-alert-presets { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 8px; }
.quant-alert-presets select { padding: 6px 10px; background: #111114; border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 6px; font-size: 12px; }
.flow-fav-btn { cursor: pointer; font-size: 14px; margin-right: 6px; }
.flow-fav-btn:hover { color: #f59e0b; }
.flow-card.flow-favorite { border-color: rgba(245,158,11,0.4); }
.flow-card.flow-favorite .flow-direction { color: #f59e0b; }
.quant-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.quant-modal-inner { background: #111114; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 24px; min-width: 320px; }
.quant-modal-inner h4 { margin: 0 0 16px; font-size: 1rem; }
.quant-modal-inner input { width: 100%; padding: 10px 12px; background: #0a0a0c; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 13px; margin-bottom: 12px; }
.quant-modal-actions { display: flex; gap: 10px; margin-top: 16px; }

/* Collapsible sections */
.quant-section-collapsible .quant-section-toggle { cursor: pointer; user-select: none; }
.quant-section-collapsible .quant-section-toggle .toggle-icon { font-size: 10px; transition: transform 0.2s; margin-left: 8px; }
.quant-section-collapsible.collapsed .quant-section-toggle .toggle-icon { transform: rotate(-90deg); }
.quant-section-collapsible .quant-section-body { display: block; }
.quant-section-collapsible.collapsed .quant-section-body { display: none; }

/* Upgrade overlay */
.quant-upgrade-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.quant-upgrade-content { background: #111114; border: 1px solid rgba(16,185,129,0.3); border-radius: 16px; padding: 40px; max-width: 400px; text-align: center; }
.quant-upgrade-content h2 { margin: 0 0 16px; font-size: 1.4rem; color: #10b981; }
.quant-upgrade-content p { color: #aaa; margin: 0 0 24px; line-height: 1.5; }
.quant-upgrade-btn { display: inline-block; padding: 12px 24px; background: #10b981; color: #0a0a0c; font-weight: 600; border-radius: 8px; text-decoration: none; }
.quant-upgrade-btn:hover { background: #34d399; }
