:root {
  --bg-dark: #070a12;
  --bg-card: #0d1424;
  --bg-card-hover: #121c32;
  --bg-card-alt: #0a0f1c;
  --bg-input: #070d18;
  --border-color: #1a2742;
  --border-focus: #00f2fe;
  --border-glow: rgba(0, 242, 254, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --neon-cyan: #00f2fe;
  --neon-cyan-glow: rgba(0, 242, 254, 0.3);
  --neon-green: #00e676;
  --neon-green-glow: rgba(0, 230, 118, 0.25);
  --neon-red: #ff1744;
  --neon-red-glow: rgba(255, 23, 68, 0.25);
  --neon-gold: #f59e0b;
  --neon-gold-glow: rgba(245, 158, 11, 0.25);
  --neon-purple: #a855f7;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-card: 0 4px 24px -2px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(0, 242, 254, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(255, 23, 68, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(0, 230, 118, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Required specifications */
input, select, textarea {
  min-width: 0;
  font-family: inherit;
}

.brand {
  min-width: 0;
}

.brand-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switcher {
  flex-shrink: 0;
}

/* Layout */
.app-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 18px 48px 18px;
}

/* Top Header */
.header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(255, 23, 68, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--neon-cyan-glow);
  flex-shrink: 0;
}

.brand-icon {
  font-size: 22px;
}

.brand-sub-icon {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 13px;
  filter: drop-shadow(0 0 4px var(--neon-cyan));
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 40%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--neon-cyan);
  border-radius: 999px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feed-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--neon-green);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulseBeacon 1.8s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.6); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--text-main);
}

.lang-switcher {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(0, 242, 254, 0.08));
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* VIP Affiliate Quick Bar */
.affiliate-quick-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.affiliate-banner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #0f182c 0%, #15223c 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.affiliate-banner-item:hover {
  transform: translateY(-1px);
  border-color: var(--neon-gold);
}

.affiliate-banner-item.hyperliquid-banner {
  border-color: rgba(0, 242, 254, 0.3);
  background: linear-gradient(90deg, #0c182b 0%, #10243d 100%);
}

.affiliate-banner-item.hyperliquid-banner:hover {
  border-color: var(--neon-cyan);
}

.affiliate-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aff-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--neon-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.aff-badge.hl-badge {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
  border-color: rgba(0, 242, 254, 0.4);
}

.aff-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aff-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bybit-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.bybit-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5);
}

.hl-btn {
  background: linear-gradient(135deg, #00f2fe, #0284c7);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.hl-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #00f2fe);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
}

/* Top HUD Grid */
.hud-banner {
  margin-bottom: 20px;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hud-card:hover {
  transform: translateY(-2px);
}

.hud-card.glow-cyan:hover { border-color: var(--neon-cyan); box-shadow: 0 6px 20px var(--neon-cyan-glow); }
.hud-card.glow-red:hover { border-color: var(--neon-red); box-shadow: 0 6px 20px var(--neon-red-glow); }
.hud-card.glow-green:hover { border-color: var(--neon-green); box-shadow: 0 6px 20px var(--neon-green-glow); }
.hud-card.glow-gold:hover { border-color: var(--neon-gold); box-shadow: 0 6px 20px var(--neon-gold-glow); }

.hud-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hud-icon {
  font-size: 16px;
}

.hud-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hud-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hud-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.text-cyan { color: var(--neon-cyan); }
.text-green { color: var(--neon-green); }
.text-red { color: var(--neon-red); }
.text-gold { color: var(--neon-gold); }
.text-yellow { color: #facc15; }

.hud-unit {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.hud-score-max {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.hud-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.tag-danger {
  background: rgba(255, 23, 68, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(255, 23, 68, 0.35);
  animation: dangerBlink 2s infinite;
}

@keyframes dangerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.tag-green {
  background: rgba(0, 230, 118, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.tag-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.hud-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Ratio Bar */
.ratio-progress-wrap {
  margin-top: 4px;
}

.ratio-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: #1e293b;
  margin-bottom: 6px;
}

.ratio-long {
  background: linear-gradient(90deg, #10b981, #00e676);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
  transition: width 0.3s ease;
}

.ratio-short {
  background: linear-gradient(90deg, #f43f5e, #ff1744);
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.4);
  transition: width 0.3s ease;
}

.ratio-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.ratio-long-text { color: var(--neon-green); }
.ratio-short-text { color: var(--neon-red); }

/* Score Meter */
.score-meter {
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ff1744);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
  transition: width 0.4s ease;
}

/* Main Workspace Grid (Left 65% / Right 35%) */
.main-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  align-items: start;
}

/* Asset Selector Bar */
.asset-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.asset-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.asset-tab:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--text-main);
}

.asset-tab.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(15, 23, 42, 0.8));
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.coin-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.btc-icon { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.eth-icon { background: rgba(168, 85, 247, 0.2); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.4); }
.sol-icon { background: rgba(20, 241, 149, 0.2); color: #14f195; border: 1px solid rgba(20, 241, 149, 0.4); }

.coin-symbol {
  font-weight: 800;
  font-size: 13px;
  font-family: var(--font-mono);
}

.coin-name {
  font-size: 11px;
  color: var(--text-dim);
}

.coin-price {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-cyan);
  margin-left: 4px;
}

.heatmap-depth-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-legend-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.depth-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s ease;
}

.depth-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.depth-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* Selected Asset Status Card */
.asset-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.asset-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.asset-title-block h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.current-price-badge {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  background: #111a2e;
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.2);
  transition: background-color 0.3s ease;
}

.current-price-badge.tick-up {
  background: rgba(0, 230, 118, 0.25);
  border-color: var(--neon-green);
}

.current-price-badge.tick-down {
  background: rgba(255, 23, 68, 0.25);
  border-color: var(--neon-red);
}

.price-change-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.price-change-pill.positive {
  background: rgba(0, 230, 118, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.price-change-pill.negative {
  background: rgba(255, 23, 68, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.asset-stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.stat-label {
  color: var(--text-dim);
}

.stat-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

/* Heatmap Panel */
.heatmap-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-title-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.panel-title-wrap p {
  font-size: 12px;
  color: var(--text-muted);
}

.panel-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.red-dot { background: var(--neon-red); box-shadow: 0 0 6px var(--neon-red); }
.green-dot { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.yellow-dot { background: #facc15; box-shadow: 0 0 6px #facc15; }

/* Heatmap Ladder Container */
.heatmap-ladder-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #080d19;
  border: 1px solid #142036;
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
}

/* Cluster Tier Rows */
.cluster-row {
  display: grid;
  grid-template-columns: 90px 1fr 110px 130px;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.cluster-row:hover {
  background: rgba(0, 242, 254, 0.06);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateX(2px);
}

.cluster-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.cluster-bar-track {
  position: relative;
  height: 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cluster-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
  position: relative;
}

.short-cluster .cluster-bar-fill {
  background: linear-gradient(90deg, rgba(255, 23, 68, 0.2) 0%, rgba(255, 23, 68, 0.85) 100%);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
}

.long-cluster .cluster-bar-fill {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 230, 118, 0.85) 100%);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

/* Major Magnet Highlighting */
.cluster-row.is-magnet {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.1);
}

.cluster-row.is-magnet.short-magnet {
  border-color: rgba(255, 23, 68, 0.6);
  background: rgba(255, 23, 68, 0.08);
}

.cluster-row.is-magnet.long-magnet {
  border-color: rgba(0, 230, 118, 0.6);
  background: rgba(0, 230, 118, 0.08);
}

.magnet-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 3px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  margin-left: 6px;
  animation: pulseMagnet 2s infinite;
}

@keyframes pulseMagnet {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.cluster-vol {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.short-cluster .cluster-vol { color: var(--neon-red); }
.long-cluster .cluster-vol { color: var(--neon-green); }

.cluster-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.cluster-dist {
  font-weight: 600;
}

.btn-test-level {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--neon-cyan);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cluster-row:hover .btn-test-level {
  opacity: 1;
}

/* Current Price Divider */
.current-price-divider {
  padding: 10px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #facc15 25%, #facc15 75%, transparent 100%);
  box-shadow: 0 0 10px #facc15;
}

.divider-tag {
  position: relative;
  z-index: 2;
  background: #0b111e;
  border: 1px solid #facc15;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
  color: #facc15;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
  animation: pulseBeacon 1.5s infinite;
}

.divider-sub {
  font-size: 9px;
  opacity: 0.8;
  font-weight: 600;
}

/* Heatmap Summary Matrix */
.heatmap-summary-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 18px;
  background: #0a0f1d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  gap: 16px;
}

.summary-col {
  flex: 1;
}

.summary-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.summary-amount {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.summary-detail {
  font-size: 11px;
  color: var(--text-muted);
}

.summary-divider {
  width: 1px;
  height: 44px;
  background: var(--border-color);
}

/* Educational Guide Panel */
.guide-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.guide-panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.guide-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.guide-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.guide-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--neon-cyan);
}

.guide-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Right Sidebar: Leverage Calculator & Live Stream */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Feature 3: Leverage Calculator Panel */
.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.calc-header {
  margin-bottom: 16px;
}

.calc-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-icon {
  font-size: 24px;
}

.calc-title-wrap h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.calc-title-wrap p {
  font-size: 11px;
  color: var(--text-muted);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-text-action:hover {
  text-decoration: underline;
}

.side-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-btn {
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.side-btn.long.active {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.25);
}

.side-btn.short.active {
  background: rgba(255, 23, 68, 0.15);
  border-color: var(--neon-red);
  color: var(--neon-red);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.25);
}

.input-with-symbol {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-symbol:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 12px var(--border-glow);
}

.input-symbol {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  margin-right: 6px;
}

.input-with-symbol input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

.leverage-display {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--neon-cyan);
  font-size: 13px;
}

.leverage-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.lev-preset-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lev-preset-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.lev-preset-btn.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.lev-slider {
  width: 100%;
  accent-color: var(--neon-cyan);
  cursor: pointer;
}

.notional-display, .mmr-hint {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Calculation Result Card */
.calc-results-card {
  background: #080d1a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.result-highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item.primary {
  grid-column: span 1;
}

.result-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 4px;
}

.result-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.result-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.sub-item {
  display: flex;
  flex-direction: column;
}

.sub-label {
  font-size: 10px;
  color: var(--text-dim);
}

.sub-val {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}

/* Dynamic Magnet Proximity Alert */
.proximity-alert-box {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}

.proximity-alert-box.danger {
  background: rgba(255, 23, 68, 0.1);
  border-color: rgba(255, 23, 68, 0.45);
}

.proximity-alert-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.45);
}

.proximity-alert-box.safe {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.45);
}

.alert-icon-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.alert-symbol {
  font-size: 14px;
}

.alert-icon-title h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.proximity-alert-box.danger h4 { color: var(--neon-red); }
.proximity-alert-box.warning h4 { color: var(--neon-gold); }
.proximity-alert-box.safe h4 { color: var(--neon-green); }

.proximity-alert-box p {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 10px;
}

.proximity-alert-box strong {
  color: #fff;
}

.btn-auto-fix {
  width: 100%;
  padding: 7px;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--neon-cyan);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auto-fix:hover {
  background: rgba(0, 242, 254, 0.25);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* Feature 2: Live Liquidation Stream Panel */
.stream-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.stream-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.stream-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
  animation: pulseBeacon 1.2s infinite;
}

.stream-counter {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
}

.stream-filter-row {
  display: flex;
  gap: 6px;
}

.stream-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  outline: none;
  cursor: pointer;
}

.stream-select:focus {
  border-color: var(--border-focus);
}

.stream-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar */
.stream-list::-webkit-scrollbar {
  width: 5px;
}

.stream-list::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

.stream-card {
  background: #080d19;
  border: 1px solid #142036;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stream-card.long-reck {
  border-left: 3px solid var(--neon-red);
}

.stream-card.short-squeeze {
  border-left: 3px solid var(--neon-green);
}

.stream-card.whale-reck {
  background: rgba(255, 23, 68, 0.06);
  border-color: rgba(255, 23, 68, 0.4);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.15);
}

.stream-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stream-exchange-badge {
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.stream-pair {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}

.stream-side-tag {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.long-reck .stream-side-tag { color: var(--neon-red); }
.short-squeeze .stream-side-tag { color: var(--neon-green); }

.stream-time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.stream-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stream-amount {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.long-reck .stream-amount { color: var(--neon-red); }
.short-squeeze .stream-amount { color: var(--neon-green); }

.stream-price-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.stream-magnet-cluster {
  font-size: 9px;
  color: var(--neon-gold);
  font-family: var(--font-mono);
}

/* Feature 4: Full Exchange Affiliate Cards Hub */
.affiliate-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.aff-hub-header {
  margin-bottom: 16px;
}

.aff-hub-badge {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.aff-hub-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.aff-hub-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aff-hub-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.aff-hub-item.bybit-hub:hover {
  border-color: var(--neon-gold);
  box-shadow: 0 4px 18px var(--neon-gold-glow);
}

.aff-hub-item.hl-hub:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 18px var(--neon-cyan-glow);
}

.aff-hub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.partner-logo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  color: var(--neon-gold);
}

.hl-logo {
  color: var(--neon-cyan);
}

.partner-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-gold);
}

.hl-tag {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
}

.partner-body h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.partner-body p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.partner-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.partner-btn {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.bybit-partner-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
}

.bybit-partner-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.hl-partner-btn {
  background: linear-gradient(135deg, #00f2fe, #0284c7);
  color: #000;
}

.hl-partner-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #00f2fe);
}

/* Portal Footer */
.portal-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.portal-backlink-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.portal-backlink {
  color: var(--neon-cyan);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.portal-backlink:hover {
  color: #fff;
  text-decoration: underline;
}

.portal-divider {
  color: var(--text-dim);
}

.portal-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.portal-disclaimer {
  max-width: 900px;
  margin: 0 auto;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .main-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-layout {
    padding: 12px 12px 36px 12px;
  }

  .affiliate-quick-bar {
    grid-template-columns: 1fr;
  }

  .hud-grid {
    grid-template-columns: 1fr;
  }

  .cluster-row {
    grid-template-columns: 75px 1fr 80px 80px;
    gap: 8px;
    font-size: 11px;
  }

  .cluster-price {
    font-size: 11px;
  }

  .cluster-vol {
    font-size: 11px;
  }

  .cluster-meta {
    font-size: 10px;
  }

  .btn-test-level {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}
