:root {
  --bg-dark: #080c16;
  --bg-card: #0e1626;
  --bg-card-hover: #142036;
  --bg-card-alt: #0a101d;
  --bg-input: #070d18;
  --border-color: #1a273f;
  --border-focus: #38bdf8;
  --border-glow: rgba(56, 189, 248, 0.2);

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

  --sol-purple: #9945ff;
  --sol-purple-glow: rgba(153, 69, 255, 0.25);
  --sol-green: #14f195;
  --sol-green-glow: rgba(20, 241, 149, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-rose: #f43f5e;
  --accent-rose-glow: rgba(244, 63, 94, 0.25);

  --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.45);
  --shadow-glow: 0 0 20px -3px rgba(20, 241, 149, 0.15);
}

* {
  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% 12%, rgba(153, 69, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 18%, rgba(20, 241, 149, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Mandatory CSS constraints */
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;
}

.hidden {
  display: none !important;
}

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

/* Top Header */
.header {
  margin-bottom: 20px;
  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: 12px;
}

.brand-icon-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.25), rgba(20, 241, 149, 0.2));
  border: 1px solid rgba(20, 241, 149, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px -2px rgba(20, 241, 149, 0.25);
}

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

.brand-sub-icon {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 14px;
}

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

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 30%, #14f195 70%, #9945ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.stream-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

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

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--sol-green); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.stream-quick-controls {
  display: flex;
  gap: 6px;
}

.control-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--sol-green);
  transform: translateY(-1px);
}

.control-btn.active-muted {
  opacity: 0.6;
}

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

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.lang-btn.active {
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  font-weight: 700;
}

/* Key Metrics HUD Banner */
.hud-banner {
  margin-bottom: 22px;
}

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

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

.hud-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 241, 149, 0.4);
}

.hud-card.glow-green {
  border-left: 3px solid var(--sol-green);
}

.hud-card.glow-purple {
  border-left: 3px solid var(--sol-purple);
}

.hud-card.glow-cyan {
  border-left: 3px solid var(--accent-cyan);
}

.hud-card.glow-gold {
  border-left: 3px solid var(--accent-gold);
}

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

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

.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: 4px;
}

.hud-value {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

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

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

.tag-green {
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.25);
}

.tag-purple {
  background: rgba(153, 69, 255, 0.15);
  color: #c084fc;
  border: 1px solid rgba(153, 69, 255, 0.25);
}

.tag-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

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

/* Nav Tabs Bar */
.nav-tabs-bar {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs-bar::-webkit-scrollbar {
  display: none;
}

.nav-tabs-list {
  display: flex;
  gap: 8px;
  min-width: max-content;
  padding-bottom: 6px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
  position: relative;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
  color: var(--sol-green);
  background: rgba(20, 241, 149, 0.08);
  border-bottom: 2px solid var(--sol-green);
}

.tab-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.badge-live {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  animation: pulse-ring 2s infinite;
}

/* Tab Panels */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.panel-header-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.panel-icon {
  font-size: 22px;
  line-height: 1.2;
}

.pulse-dot-icon {
  color: var(--sol-green);
  text-shadow: 0 0 10px var(--sol-green);
}

.panel-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.panel-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Filters Bar */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--sol-green);
  color: var(--text-main);
}

.filter-pill.active {
  background: rgba(20, 241, 149, 0.12);
  border-color: var(--sol-green);
  color: var(--sol-green);
}

.search-wrap {
  position: relative;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 7px 10px 7px 30px;
  font-size: 12.5px;
  outline: none;
  transition: all 0.2s;
}

.search-wrap input:focus {
  border-color: var(--sol-green);
  box-shadow: 0 0 10px rgba(20, 241, 149, 0.15);
}

/* Whales Leaderboard Table */
.whales-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card-alt);
  margin-bottom: 16px;
}

.whales-table-header {
  display: grid;
  grid-template-columns: 50px 2.2fr 1.3fr 1.4fr 1.3fr 1.1fr 1.8fr;
  padding: 10px 14px;
  background: rgba(14, 22, 38, 0.9);
  border-bottom: 1px solid var(--border-color);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 820px;
}

.whales-list {
  min-width: 820px;
}

.whale-row {
  display: grid;
  grid-template-columns: 50px 2.2fr 1.3fr 1.4fr 1.3fr 1.1fr 1.8fr;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(26, 39, 63, 0.6);
  align-items: center;
  font-size: 13px;
  transition: all 0.15s ease;
}

.whale-row:last-child {
  border-bottom: none;
}

.whale-row:hover {
  background: rgba(20, 241, 149, 0.03);
}

.whale-row.watched {
  border-left: 3px solid var(--accent-gold);
}

.col-rank {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-muted);
}

.rank-top1 {
  color: #facc15;
}

.rank-top2 {
  color: #cbd5e1;
}

.rank-top3 {
  color: #f97316;
}

.col-wallet {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.whale-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.whale-name {
  font-weight: 700;
  color: var(--text-main);
}

.whale-addr-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.whale-addr {
  letter-spacing: -0.01em;
}

.btn-mini-copy {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-dim);
  padding: 1px 3px;
  border-radius: 3px;
  transition: all 0.15s;
}

.btn-mini-copy:hover {
  color: var(--sol-green);
  background: rgba(20, 241, 149, 0.1);
}

.col-winrate {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.winrate-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--sol-green);
}

.winrate-bar-bg {
  width: 90px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.winrate-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #14f195);
  border-radius: 999px;
}

.col-pnl {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.5px;
}

.text-green {
  color: var(--sol-green);
}

.text-gold {
  color: var(--accent-gold);
}

.text-rose {
  color: var(--accent-rose);
}

.col-trades {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trades-count {
  font-family: var(--font-mono);
  font-weight: 600;
}

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

.col-dex .dex-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.dex-pump {
  background: rgba(20, 241, 149, 0.12);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.25);
}

.dex-raydium {
  background: rgba(153, 69, 255, 0.12);
  color: #c084fc;
  border: 1px solid rgba(153, 69, 255, 0.25);
}

.dex-meteora {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.col-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-act-inspect {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-act-inspect:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

.btn-act-watch {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-act-watch:hover, .btn-act-watch.active {
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
}

.btn-act-copy {
  background: linear-gradient(135deg, #10b981, #14f195);
  color: #052e16;
  border: none;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-act-copy:hover {
  box-shadow: 0 0 12px rgba(20, 241, 149, 0.4);
  transform: translateY(-1px);
}

/* Info Tip Box */
.info-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(14, 22, 38, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tip-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* TAB 2: Live Stream Styles */
.stream-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.stream-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stream-pill {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.stream-pill:hover {
  color: var(--text-main);
  border-color: var(--sol-green);
}

.stream-pill.active {
  background: rgba(20, 241, 149, 0.12);
  border-color: var(--sol-green);
  color: var(--sol-green);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  color: var(--accent-rose);
  border-color: var(--accent-rose);
}

.stream-speed-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(20, 241, 149, 0.05);
  border: 1px solid rgba(20, 241, 149, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 12px;
}

.speed-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sol-green);
  font-family: var(--font-mono);
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 8px var(--sol-green);
  animation: pulse-ring 1.5s infinite;
}

.stream-stats-right {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11.5px;
}

/* Stream Feed List */
.stream-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 720px;
  overflow-y: auto;
  padding-right: 4px;
}

.stream-feed-list::-webkit-scrollbar {
  width: 5px;
}

.stream-feed-list::-webkit-scrollbar-track {
  background: var(--bg-card-alt);
}

.stream-feed-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.stream-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stream-card.new-arrival {
  animation: flashHighlight 1.5s ease-out;
}

@keyframes flashHighlight {
  0% {
    border-color: var(--sol-green);
    background: rgba(20, 241, 149, 0.12);
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.3);
  }
  100% {
    border-color: var(--border-color);
    background: var(--bg-card-alt);
    box-shadow: none;
  }
}

.stream-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--bg-card-hover);
}

.stream-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.stream-whale-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.whale-avatar-badge {
  font-size: 14px;
}

.stream-whale-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
}

.stream-whale-addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.stream-tags-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.pill-buy {
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.3);
}

.pill-sell {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

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

.stream-card-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 13, 24, 0.6);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 39, 63, 0.5);
  gap: 12px;
  flex-wrap: wrap;
}

.token-meta-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.token-symbol-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.token-symbol {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

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

.token-ca-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.token-metrics-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.metric-block-label {
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.metric-block-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.stream-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-buttons-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-trade-trojan {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-trade-trojan:hover {
  box-shadow: 0 0 14px rgba(20, 241, 149, 0.45);
  transform: translateY(-1px);
}

.btn-trade-photon {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.25);
}

.btn-trade-photon:hover {
  box-shadow: 0 0 14px rgba(153, 69, 255, 0.45);
  transform: translateY(-1px);
}

.btn-trade-solscan {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-trade-solscan:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
}

.btn-copy-quick-ca {
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.2);
  color: var(--sol-green);
  font-size: 11px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-quick-ca:hover {
  background: rgba(20, 241, 149, 0.18);
}

/* TAB 3: Inspector Styles */
.inspector-input-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.inspector-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-action-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.input-action-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}

.input-action-row input:focus {
  border-color: var(--sol-green);
  box-shadow: 0 0 12px rgba(20, 241, 149, 0.2);
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #14f195);
  color: #032311;
  box-shadow: 0 4px 14px rgba(20, 241, 149, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(20, 241, 149, 0.5);
  transform: translateY(-1px);
}

.quick-preset-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-preset-label {
  font-size: 11.5px;
  color: var(--text-dim);
}

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.chip-btn:hover {
  border-color: var(--sol-green);
  color: var(--text-main);
}

/* Inspector Results Layout */
.inspector-result-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.3s ease;
}

.inspector-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(153, 69, 255, 0.15);
  border: 1px solid rgba(153, 69, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-grade-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.3);
}

.grade-s {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.grade-a {
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  border-color: rgba(20, 241, 149, 0.3);
}

.grade-b {
  background: rgba(153, 69, 255, 0.15);
  color: #c084fc;
  border-color: rgba(153, 69, 255, 0.3);
}

.profile-address-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.inspector-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ins-stat-box {
  background: rgba(14, 22, 38, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.ins-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ins-stat-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.ins-stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.inspector-table-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trades-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.trades-history-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
}

.trades-history-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(26, 39, 63, 0.5);
  font-family: var(--font-mono);
}

.trades-history-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* TAB 4: Simulator Styles */
.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.sim-inputs-col {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.sim-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sim-input-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.sim-input-wrap input:focus {
  border-color: var(--sol-green);
}

.input-suffix {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  pointer-events: none;
}

.sim-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.sim-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.sim-range-row input[type="range"] {
  flex: 1;
  accent-color: var(--sol-green);
  cursor: pointer;
}

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

.btn-block {
  width: 100%;
}

.sim-output-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-stat-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.sim-stat-card.glow-green {
  border-color: rgba(20, 241, 149, 0.4);
  box-shadow: 0 0 20px rgba(20, 241, 149, 0.1);
}

.sim-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sim-stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.sim-stat-sub {
  font-size: 13px;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.sim-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.breakdown-item {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.breakdown-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.breakdown-value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.sim-cta-box {
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.12), rgba(20, 241, 149, 0.08));
  border: 1px solid rgba(20, 241, 149, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.cta-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-trojan {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}

.btn-trojan:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(20, 241, 149, 0.5);
}

.btn-photon {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
  transition: all 0.2s;
}

.btn-photon:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(153, 69, 255, 0.5);
}

/* TAB 5: Guide Styles */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.guide-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  transition: all 0.2s;
}

.guide-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.guide-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--sol-green);
  background: rgba(20, 241, 149, 0.1);
  border: 1px solid rgba(20, 241, 149, 0.25);
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 10px;
}

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

.guide-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-card-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Modal Backdrop & Box */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-dim);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(20, 241, 149, 0.15);
  border: 1px solid rgba(20, 241, 149, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sol-green);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

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

.target-token-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.token-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.token-name {
  font-size: 15px;
  font-weight: 800;
}

.dex-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
}

.ca-copy-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.ca-text {
  color: var(--text-muted);
}

.btn-copy-ca {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
}

.bot-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-card-alt);
  transition: all 0.2s;
}

.bot-option-item:hover {
  transform: translateY(-1px);
  border-color: var(--sol-green);
  background: var(--bg-card-hover);
}

.bot-option-item.trojan:hover {
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.bot-option-item.photon:hover {
  border-color: #9333ea;
  box-shadow: 0 0 14px rgba(147, 51, 234, 0.25);
}

.bot-icon {
  font-size: 20px;
}

.bot-info {
  flex: 1;
}

.bot-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.tag-rec {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(20, 241, 149, 0.15);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.3);
}

.bot-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

.bot-arrow {
  color: var(--text-dim);
  font-size: 14px;
}

/* Toast Box */
.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 22, 38, 0.95);
  border: 1px solid var(--sol-green);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(20, 241, 149, 0.3);
  z-index: 10000;
  display: none;
  animation: fadeIn 0.2s ease;
}

.toast-box.show {
  display: block;
}

/* Footer */
.portal-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-backlink-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.portal-backlink {
  color: var(--sol-green);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.portal-backlink:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px var(--sol-green);
}

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

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

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

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-layout {
    padding: 12px 12px 36px 12px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .hud-grid {
    grid-template-columns: 1fr;
  }
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrap {
    min-width: 100%;
  }
  .inspector-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .input-action-row {
    flex-direction: column;
  }
  .stream-card-middle {
    flex-direction: column;
    align-items: flex-start;
  }
  .token-metrics-right {
    width: 100%;
    justify-content: space-between;
  }
}
