/* ==========================================================================
   CYBERDEX 3D — Solana Concentrated Liquidity DEX
   Cyberpunk / Solana Dark Neon Design System
   ========================================================================== */

:root {
  --bg-primary: #080914;
  --bg-surface: rgba(15, 17, 34, 0.78);
  --bg-surface-heavy: rgba(12, 14, 28, 0.94);
  --bg-card: rgba(22, 26, 51, 0.65);
  --bg-glass: rgba(18, 22, 45, 0.45);
  
  --sol-purple: #9945FF;
  --sol-green: #14F195;
  --sol-cyan: #00F0FF;
  --sol-pink: #FF007A;
  --sol-gold: #FFD026;
  --sol-red: #FF3B30;
  
  --text-primary: #F0F4F8;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-highlight: #FFFFFF;

  --border-subtle: rgba(153, 69, 255, 0.22);
  --border-neon: rgba(20, 241, 149, 0.4);
  --border-cyan: rgba(0, 240, 255, 0.35);

  --shadow-glow-purple: 0 0 20px rgba(153, 69, 255, 0.35);
  --shadow-glow-green: 0 0 20px rgba(20, 241, 149, 0.4);
  --shadow-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.35);

  --font-mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(8, 9, 20, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(153, 69, 255, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 241, 149, 0.6);
}

/* ==========================================================================
   3D Canvas Container
   ========================================================================== */
#webgl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
}
#webgl-container:active {
  cursor: grabbing;
}
#webgl-container.fps-active {
  cursor: crosshair;
}

/* ==========================================================================
   HUD Overlay & Layout System
   ========================================================================== */
#hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.interactive {
  pointer-events: auto !important;
}

/* Glassmorphic Panel Base */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(153, 69, 255, 0.4);
}

/* ==========================================================================
   Header & Top Navigation
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(8, 9, 20, 0.96) 0%, rgba(8, 9, 20, 0.7) 80%, transparent 100%);
  z-index: 20;
}

.logo-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-emblem {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sol-purple) 0%, var(--sol-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(20, 241, 149, 0.4);
  font-size: 20px;
  position: relative;
  overflow: hidden;
}

.logo-emblem::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  animation: shineSweep 4s infinite linear;
}

@keyframes shineSweep {
  0% { transform: translate(-30%, -30%) rotate(45deg); }
  20%, 100% { transform: translate(100%, 100%) rotate(45deg); }
}

.brand-details h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(90deg, #FFFFFF 0%, var(--sol-cyan) 60%, var(--sol-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  background: rgba(153, 69, 255, 0.25);
  color: var(--sol-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  -webkit-text-fill-color: initial;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Nav Center Menu */
.nav-center-menu {
  display: flex;
  gap: 4px;
  background: rgba(15, 17, 34, 0.9);
  backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--text-highlight);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.8) 0%, rgba(20, 241, 149, 0.8) 100%);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(20, 241, 149, 0.35);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.network-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.25);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--sol-green);
  cursor: pointer;
}

.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 8px var(--sol-green);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.tps-counter {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tps-val {
  color: var(--sol-cyan);
  font-weight: 700;
}

/* Wallet Connect Button */
.btn-wallet {
  background: linear-gradient(135deg, #AB57FF 0%, #5C24FF 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 16px rgba(171, 87, 255, 0.4);
  transition: all var(--transition-fast);
}

.btn-wallet:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(171, 87, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-wallet.connected {
  background: rgba(20, 241, 149, 0.12);
  border: 1px solid var(--sol-green);
  color: var(--sol-green);
  box-shadow: 0 0 14px rgba(20, 241, 149, 0.3);
}

.btn-wallet .wallet-balance {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(20, 241, 149, 0.2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}

/* Icon Buttons */
.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--sol-cyan);
  border-color: var(--sol-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   Live Price Ticker Bar (Top Horizontal)
   ========================================================================== */
.ticker-container {
  display: flex;
  align-items: center;
  background: rgba(10, 12, 25, 0.88);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(153, 69, 255, 0.15);
  border-bottom: 1px solid rgba(153, 69, 255, 0.15);
  padding: 5px 16px;
  overflow-x: auto;
  gap: 12px;
  scrollbar-width: none;
}
.ticker-container::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.ticker-item:hover, .ticker-item.active {
  background: rgba(153, 69, 255, 0.18);
  border-color: rgba(153, 69, 255, 0.5);
  transform: translateY(-1px);
}

.ticker-token-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.ticker-symbol {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-highlight);
}

.ticker-price {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #F8FAFC;
  transition: color 0.3s;
}

.ticker-price.flash-green {
  color: var(--sol-green) !important;
  text-shadow: 0 0 8px var(--sol-green);
}
.ticker-price.flash-red {
  color: var(--sol-red) !important;
  text-shadow: 0 0 8px var(--sol-red);
}

.ticker-change {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
}

.ticker-change.pos {
  color: var(--sol-green);
  background: rgba(20, 241, 149, 0.12);
}
.ticker-change.neg {
  color: var(--sol-red);
  background: rgba(255, 59, 48, 0.12);
}

/* ==========================================================================
   Main HUD Working Zone (3-Column Layout: Left Controls / Center View / Right DEX)
   ========================================================================== */
.hud-middle {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  flex: 1;
  overflow: hidden;
  gap: 16px;
}

/* Left Sidebar — 3D Navigation, Camera Mode & Vault Directory */
.hud-left-col {
  width: 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

/* Center HUD — Minimalist Target Reticle & 3D Info Pill */
.hud-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
  flex: 1;
}

/* Right Sidebar — Swap Terminal & Live Chart & Orderbook */
.hud-right-col {
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

/* Panel Header */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.15);
  color: var(--sol-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.panel-body {
  padding: 12px;
}

/* 3D World Camera Controller Card */
.camera-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.cam-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.cam-btn:hover {
  background: rgba(153, 69, 255, 0.15);
  border-color: var(--sol-purple);
  color: #FFF;
}

.cam-btn.active {
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.4) 0%, rgba(0, 240, 255, 0.3) 100%);
  border-color: var(--sol-cyan);
  color: #FFF;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

/* 3D Visual Filters / FX Controls */
.world-fx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fx-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 3px 7px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fx-chip.active {
  background: rgba(20, 241, 149, 0.15);
  border-color: var(--sol-green);
  color: var(--sol-green);
}

/* Concentrated Liquidity Vault List in Left Column */
.vault-mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.vault-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vault-mini-card:hover, .vault-mini-card.selected {
  background: rgba(153, 69, 255, 0.15);
  border-color: var(--sol-purple);
  transform: translateX(3px);
}

.vault-pair-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pair-icons {
  display: flex;
  position: relative;
  width: 28px;
}
.pair-icon-a, .pair-icon-b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  border: 1px solid #080914;
}
.pair-icon-b {
  position: absolute;
  left: 10px;
}

.pair-name {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-highlight);
}
.fee-tier {
  font-size: 9px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.vault-metrics {
  text-align: right;
}
.apr-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--sol-green);
}
.tvl-val {
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Center 3D HUD Tooltips & Prompts
   ========================================================================== */
.target-hud-badge {
  background: var(--bg-surface-heavy);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow-cyan);
  animation: floatBounce 3s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.target-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sol-cyan);
  box-shadow: 0 0 8px var(--sol-cyan);
}

.target-text {
  font-size: 11px;
  font-weight: 600;
  color: #FFF;
}
.target-text span {
  color: var(--sol-green);
  font-family: var(--font-mono);
}

.controls-hint {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* 3D Hover Tooltip (Raycaster Projector) */
#scene-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(12, 14, 28, 0.95);
  border: 1px solid var(--sol-cyan);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  pointer-events: none;
  z-index: 50;
  display: none;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  transform: translate(-50%, -120%);
}

#scene-tooltip .tooltip-title {
  font-weight: 700;
  font-size: 11px;
  color: var(--sol-cyan);
}
#scene-tooltip .tooltip-desc {
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* ==========================================================================
   Swap Terminal (Right Column)
   ========================================================================== */
.swap-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.swap-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.swap-tab.active {
  background: var(--bg-card);
  color: #FFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Token Input Box */
.token-input-box {
  background: rgba(10, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 4px;
  transition: border-color var(--transition-fast);
}

.token-input-box:focus-within {
  border-color: var(--sol-purple);
  box-shadow: 0 0 10px rgba(153, 69, 255, 0.25);
}

.input-top-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.balance-quick {
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--sol-cyan);
}
.balance-quick:hover {
  text-decoration: underline;
}

.input-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.token-amount-input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  outline: none;
  width: 100%;
}
.token-amount-input::placeholder {
  color: var(--text-muted);
}

.token-selector-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.token-selector-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--sol-cyan);
}

.input-usd-estimate {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Swap Flip Button */
.swap-flip-btn {
  width: 28px;
  height: 28px;
  margin: -6px auto;
  position: relative;
  z-index: 5;
  background: #181B34;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--sol-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  font-size: 12px;
}

.swap-flip-btn:hover {
  transform: rotate(180deg) scale(1.1);
  border-color: var(--sol-green);
  color: var(--sol-green);
}

/* Swap Details & Route Box */
.swap-details-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.detail-row .val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
}

.route-pill {
  background: rgba(20, 241, 149, 0.1);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.2);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-family: var(--font-mono);
}

/* Slippage Selection */
.slippage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 10px;
  color: var(--text-secondary);
}

.slippage-chips {
  display: flex;
  gap: 4px;
}

.slip-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slip-chip.active {
  background: rgba(153, 69, 255, 0.3);
  border-color: var(--sol-purple);
  color: #FFF;
}

/* Swap Execute Button */
.btn-execute-swap {
  width: 100%;
  background: linear-gradient(135deg, var(--sol-purple) 0%, var(--sol-green) 100%);
  border: none;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 11px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 16px rgba(20, 241, 149, 0.35);
  transition: all var(--transition-fast);
}

.btn-execute-swap:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(20, 241, 149, 0.6);
  filter: brightness(1.1);
}

.btn-execute-swap:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Live Chart Card */
.chart-card {
  height: 180px;
  display: flex;
  flex-direction: column;
}

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

.chart-pair-title {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-highlight);
}

.chart-timeframes {
  display: flex;
  gap: 4px;
}

.tf-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 2px 5px;
  border-radius: 3px;
  cursor: pointer;
}

.tf-btn.active {
  background: var(--sol-cyan);
  color: #080914;
  font-weight: 700;
}

.chart-canvas-container {
  flex: 1;
  width: 100%;
  position: relative;
}

#dex-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Bottom Action Bar & Status Strip
   ========================================================================== */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: linear-gradient(0deg, rgba(8, 9, 20, 0.96) 0%, rgba(8, 9, 20, 0.7) 80%, transparent 100%);
  z-index: 20;
}

.system-status-pills {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.status-indicator .indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 6px var(--sol-green);
}

.quick-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-sm {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-action-sm:hover {
  border-color: var(--sol-purple);
  background: rgba(153, 69, 255, 0.2);
  color: #FFF;
}

/* ==========================================================================
   Modals & Popups (CLMM Vault Terminal, Wallet, Token Selector)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: auto;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: var(--bg-surface-heavy);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(20, 241, 149, 0.25);
  width: 92%;
  max-width: 580px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
  padding: 20px;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 59, 48, 0.25);
  color: var(--sol-red);
}

/* Concentrated Range Interactive Visualizer inside Vault Modal */
.clmm-range-box {
  background: rgba(10, 12, 24, 0.7);
  border: 1px solid rgba(153, 69, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 12px 0;
}

.clmm-chart-canvas-wrap {
  width: 100%;
  height: 120px;
  position: relative;
  margin-bottom: 10px;
}

.clmm-chart-canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
}

.range-presets-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.preset-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  padding: 5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover, .preset-btn.active {
  background: rgba(20, 241, 149, 0.15);
  border-color: var(--sol-green);
  color: var(--sol-green);
}

.range-inputs-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.range-input-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}

.range-input-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.range-input-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-highlight);
  background: transparent;
  border: none;
  text-align: center;
  width: 100%;
  outline: none;
  margin: 3px 0;
}

/* Multiplier Badge */
.multiplier-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255, 208, 38, 0.2) 0%, rgba(255, 0, 122, 0.2) 100%);
  border: 1px solid rgba(255, 208, 38, 0.4);
  color: var(--sol-gold);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Token List Modal */
.token-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  margin-bottom: 12px;
}

.token-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.token-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.token-list-item:hover {
  background: rgba(153, 69, 255, 0.15);
  border-color: var(--sol-purple);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: rgba(15, 18, 38, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--sol-purple);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(153, 69, 255, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all var(--transition-normal);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-item.success {
  border-color: var(--sol-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(20, 241, 149, 0.3);
}

.toast-icon {
  font-size: 18px;
}

.toast-content h4 {
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
}

.toast-content p {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.toast-tx-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sol-cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  margin-top: 3px;
  text-decoration: none;
}
.toast-tx-link:hover {
  text-decoration: underline;
}

/* User Positions Tab */
.position-card {
  background: rgba(10, 12, 24, 0.7);
  border: 1px solid rgba(20, 241, 149, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
}

.position-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.in-range-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--sol-green);
  background: rgba(20, 241, 149, 0.12);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.position-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.btn-pos-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  font-size: 10px;
  font-weight: 600;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pos-action:hover {
  background: rgba(153, 69, 255, 0.25);
  border-color: var(--sol-purple);
}

.btn-pos-action.claim {
  background: rgba(20, 241, 149, 0.15);
  border-color: var(--sol-green);
  color: var(--sol-green);
}

/* Responsive */
@media (max-width: 1024px) {
  .hud-middle {
    flex-direction: column;
    overflow-y: auto;
  }
  .hud-left-col, .hud-right-col {
    width: 100%;
    max-height: none;
  }
  .nav-center-menu {
    display: none;
  }
}
