/* ==========================================================================
   ZEROX PREMIUM BOT — LIGHT BLUE + NEON TRADING TERMINAL DESIGN SYSTEM
   Theme: Light Blue (#38BDF8) + Sky Blue (#0EA5E9) + Neon Cyan (#00F5FF)
   Background: Deep Navy (#07111F) | Cards: (#0B192B) | Border: (#16344D)
   Success: Neon Green (#00E676) | Danger: Neon Red (#FF4566)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* ==================== LIGHT BLUE + NEON (DEFAULT) ==================== */
  --bg-space: #07111F;
  --bg-card: #0B192B;
  --bg-card-hover: #10243C;
  --bg-surface: #0B192B;
  --bg-elevated: #10243C;
  --bg-elevated-hover: #16304E;
  --bg-input: #071221;
  --bg-step: #091524;
  --bg-banner: linear-gradient(135deg, rgba(0, 245, 255, 0.14) 0%, rgba(11, 25, 43, 0.95) 55%, rgba(7, 17, 31, 0.98) 100%);
  --bg-banner-pending: linear-gradient(135deg, rgba(255, 184, 0, 0.14) 0%, rgba(11, 25, 43, 0.95) 55%, rgba(7, 17, 31, 0.98) 100%);
  --bg-dock-fade: linear-gradient(180deg, transparent 0%, rgba(7, 17, 31, 0.80) 30%, rgba(7, 17, 31, 0.98) 100%);
  --bg-dock: rgba(11, 25, 43, 0.92);
  --bg-chart-view: #07111F;
  --bg-ambient-1: rgba(0, 245, 255, 0.08);
  --bg-ambient-2: rgba(0, 163, 255, 0.08);
  --bg-ambient-3: rgba(56, 189, 248, 0.06);
  --modal-backdrop: rgba(4, 10, 18, 0.85);

  /* Primary: Light Blue (#38BDF8) */
  --primary: #38BDF8;
  --primary-glow: rgba(56, 189, 248, 0.40);
  --primary-dark: #0EA5E9;
  --primary-subtle: rgba(56, 189, 248, 0.12);
  --primary-border: rgba(56, 189, 248, 0.30);
  --primary-gradient: linear-gradient(135deg, #00F5FF 0%, #38BDF8 50%, #00A3FF 100%);

  /* Secondary: Sky Blue (#0EA5E9) */
  --secondary: #0EA5E9;
  --secondary-glow: rgba(14, 165, 233, 0.40);

  /* Neon Accent: Neon Cyan (#00F5FF) */
  --neon-cyan: #00F5FF;
  --neon-cyan-glow: rgba(0, 245, 255, 0.45);
  --neon-cyan-subtle: rgba(0, 245, 255, 0.12);
  --neon-cyan-border: rgba(0, 245, 255, 0.35);

  /* Neon Blue (#00A3FF) */
  --neon-blue: #00A3FF;
  --neon-blue-glow: rgba(0, 163, 255, 0.45);

  /* Borders: Subtle Blue (#16344D) */
  --border-subtle: #16344D;
  --border-glass: #16344D;
  --border-glass-bright: rgba(56, 189, 248, 0.32);
  --border-glass-highlight: rgba(0, 245, 255, 0.50);

  /* Typography */
  --text-main: #F0F9FF;
  --text-body: #E0F2FE;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-inverse: #07111F;

  /* Success / Buy: Neon Green (#00E676) */
  --success: #00E676;
  --success-glow: rgba(0, 230, 118, 0.45);
  --success-subtle: rgba(0, 230, 118, 0.12);
  --success-border: rgba(0, 230, 118, 0.35);

  /* Danger / Sell: Neon Red (#FF4566) */
  --sell: #FF4566;
  --danger: #FF4566;
  --sell-glow: rgba(255, 69, 102, 0.45);
  --sell-subtle: rgba(255, 69, 102, 0.12);
  --sell-border: rgba(255, 69, 102, 0.35);
  --sell-gradient: linear-gradient(135deg, #FF4566 0%, #D81B45 100%);

  /* Warning / Pending: Amber */
  --amber: #FFB800;
  --amber-glow: rgba(255, 184, 0, 0.35);
  --amber-subtle: rgba(255, 184, 0, 0.12);
  --amber-border: rgba(255, 184, 0, 0.28);

  /* Directional Signal Styles */
  --dir-buy-bg: linear-gradient(135deg, rgba(0, 230, 118, 0.16) 0%, rgba(0, 245, 255, 0.04) 100%);
  --dir-buy-border: #00E676;
  --dir-buy-text: #00E676;
  --dir-buy-shadow: 0 0 50px -8px rgba(0, 230, 118, 0.45);

  --dir-sell-bg: linear-gradient(135deg, rgba(255, 69, 102, 0.16) 0%, rgba(255, 69, 102, 0.04) 100%);
  --dir-sell-border: #FF4566;
  --dir-sell-text: #FF4566;
  --dir-sell-shadow: 0 0 50px -8px rgba(255, 69, 102, 0.45);

  /* Shadows & Highlights */
  --glass-shadow: 0 16px 40px -10px rgba(4, 10, 18, 0.85), 0 0 1px 1px rgba(22, 52, 77, 0.6);
  --glow-card: 0 0 35px -8px var(--neon-cyan-glow);
  --inner-highlight: inset 0 1px 0 rgba(56, 189, 248, 0.12);

  /* Typography */
  --font-brand: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --bottom-nav-height: 74px;
}

/* ==================== CRYSTAL LIGHT THEME ==================== */
[data-theme="light"] {
  --bg-space: #F0F6FC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFD;
  --bg-surface: #FFFFFF;
  --bg-elevated: #EBF4FC;
  --bg-elevated-hover: #E1EFFB;
  --bg-input: #FFFFFF;
  --bg-step: #FFFFFF;
  --bg-banner: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, #FFFFFF 65%);
  --bg-banner-pending: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, #FFFFFF 65%);
  --bg-dock-fade: linear-gradient(180deg, transparent 0%, rgba(240, 246, 252, 0.85) 30%, rgba(240, 246, 252, 0.98) 100%);
  --bg-dock: rgba(255, 255, 255, 0.95);
  --bg-chart-view: #FAFCFF;
  --bg-ambient-1: rgba(14, 165, 233, 0.08);
  --bg-ambient-2: rgba(0, 163, 255, 0.06);
  --bg-ambient-3: rgba(56, 189, 248, 0.05);
  --modal-backdrop: rgba(7, 17, 31, 0.55);

  --primary: #0284C7;
  --primary-glow: rgba(2, 132, 199, 0.25);
  --primary-dark: #0369A1;
  --primary-subtle: rgba(2, 132, 199, 0.10);
  --primary-border: rgba(2, 132, 199, 0.30);
  --primary-gradient: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);

  --border-subtle: #E2E8F0;
  --border-glass: #E2E8F0;
  --border-glass-bright: #CBD5E1;
  --border-glass-highlight: #94A3B8;

  --text-main: #0B192B;
  --text-body: #1E293B;
  --text-muted: #475569;
  --text-dim: #64748B;
  --text-inverse: #FFFFFF;

  --success: #00B368;
  --sell: #E11D48;
  --danger: #E11D48;

  --dir-buy-bg: linear-gradient(135deg, rgba(0, 179, 104, 0.12) 0%, rgba(0, 179, 104, 0.02) 100%);
  --dir-buy-border: #00B368;
  --dir-buy-text: #008F53;
  --dir-buy-shadow: 0 8px 30px -8px rgba(0, 179, 104, 0.25);

  --dir-sell-bg: linear-gradient(135deg, rgba(225, 29, 72, 0.12) 0%, rgba(225, 29, 72, 0.02) 100%);
  --dir-sell-border: #E11D48;
  --dir-sell-text: #BE123C;
  --dir-sell-shadow: 0 8px 30px -8px rgba(225, 29, 72, 0.25);

  --glass-shadow: 0 10px 30px -5px rgba(11, 25, 43, 0.08), 0 1px 3px rgba(11, 25, 43, 0.04);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-space);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.28s ease, color 0.28s ease;
  position: relative;
}

::selection {
  background: var(--neon-cyan);
  color: var(--text-inverse);
}

/* Ambient Radial Mesh & High-Tech Subtle Grid */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 18% 12%, var(--bg-ambient-1) 0%, transparent 48%),
    radial-gradient(circle at 82% 65%, var(--bg-ambient-2) 0%, transparent 52%),
    radial-gradient(circle at 45% 95%, var(--bg-ambient-3) 0%, transparent 45%),
    radial-gradient(rgba(0, 245, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  transition: background 0.35s ease;
}

/* Base Glass Panel Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  box-shadow: var(--glass-shadow), var(--inner-highlight);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
  position: relative;
}

.glass-panel:hover {
  border-color: var(--border-glass-bright);
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Layout Containers */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 0.75rem calc(var(--bottom-nav-height) + 1.25rem) 0.75rem;
}

@media (min-width: 640px) {
  .app-container {
    padding: 1rem 1.25rem calc(var(--bottom-nav-height) + 1.5rem) 1.25rem;
  }
}

@media (min-width: 1024px) {
  .app-container {
    padding: 1.25rem 2rem 3rem 2rem;
  }
}

@media (min-width: 1440px) {
  .app-container {
    max-width: 1380px;
    padding: 1.5rem 2.5rem 3.5rem 2.5rem;
  }
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  background: rgba(11, 25, 43, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), var(--inner-highlight);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  display: grid;
  place-items: center;
  color: var(--text-inverse);
  box-shadow: 0 0 24px var(--neon-cyan-glow);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-badge:hover {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 0 32px var(--neon-cyan-glow);
}

.brand-logo-badge::after {
  content: '';
  position: absolute;
  inset: -60%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  animation: shineLogo 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shineLogo {
  0% { transform: translateX(-100%) rotate(25deg); }
  25%, 100% { transform: translateX(100%) rotate(25deg); }
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .brand-title {
    font-size: 1.28rem;
  }
}

.brand-title .mod-tag {
  background: linear-gradient(135deg, var(--neon-cyan), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: 0.78em;
  padding: 0.1em 0.35em;
  border: 1px solid var(--neon-cyan-border);
  border-radius: var(--radius-xs);
  box-shadow: 0 0 10px var(--neon-cyan-subtle);
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

/* User Status Indicator Badge */
.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid var(--border-glass);
}

.user-status-pill:hover {
  transform: translateY(-1px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
}

.status-guest {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.status-guest .status-dot {
  background: var(--text-dim);
}

.status-pending {
  background: var(--amber-subtle);
  color: var(--amber);
  border-color: var(--amber-border);
}

.status-pending .status-dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  animation: pulseAmber 1.6s infinite ease-in-out;
}

.status-verified {
  background: var(--neon-cyan-subtle);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan-border);
  box-shadow: 0 0 14px var(--neon-cyan-glow);
}

.status-verified .status-dot {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulseCyan 1.4s infinite ease-in-out;
}

@keyframes pulseAmber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes pulseCyan {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--neon-cyan); }
  50% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 3px var(--neon-cyan); }
}

/* Desktop Header Navigation */
.header-nav-desktop {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
}

@media (min-width: 840px) {
  .header-nav-desktop {
    display: flex;
  }
}

.header-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.header-nav-tab:hover {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.08);
}

.header-nav-tab.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: var(--text-inverse);
  box-shadow: 0 2px 14px var(--neon-cyan-glow);
}

/* Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glass-bright);
  transform: translateY(-1px);
  background: var(--bg-card-hover);
}

.icon-btn.active {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan-border);
  background: var(--neon-cyan-subtle);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

/* ==========================================================================
   BANNER HERO / ACCESS PROMPTS
   ========================================================================== */
.hero-banner {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.4rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  background: var(--bg-banner);
  border: 1px solid var(--neon-cyan-border);
  box-shadow: 0 12px 35px -10px var(--neon-cyan-glow);
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .hero-banner {
    padding: 1.6rem 2rem;
  }
}

.hero-banner.banner-pending {
  background: var(--bg-banner-pending);
  border-color: var(--amber-border);
  box-shadow: 0 12px 35px -10px var(--amber-glow);
}

.banner-ambient {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--neon-cyan);
  filter: blur(70px);
  opacity: 0.20;
  pointer-events: none;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--neon-cyan-subtle);
  border: 1px solid var(--neon-cyan-border);
}

.banner-title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .banner-title {
    font-size: 1.5rem;
  }
}

.banner-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  max-width: 620px;
  line-height: 1.55;
}

.banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--primary) 50%, var(--neon-blue) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px var(--neon-cyan-glow);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px var(--neon-cyan-glow);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-main);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-glass-bright);
}

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--neon-cyan-border);
}

.btn-danger {
  background: var(--sell-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--sell-glow);
}

.btn-danger:hover {
  box-shadow: 0 6px 26px var(--sell-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.btn-block {
  width: 100%;
}

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

/* ==========================================================================
   TERMINAL WORKSPACE (2-COLUMN RESPONSIVE LAYOUT)
   ========================================================================== */
.terminal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .terminal-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   LEFT COLUMN: LIVE CHART & MARKET TELEMETRY
   ========================================================================== */
.chart-panel {
  padding: 1.15rem;
}

@media (min-width: 640px) {
  .chart-panel {
    padding: 1.35rem;
  }
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chart-pair-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.chart-flag {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: var(--glass-shadow);
  flex-shrink: 0;
}

.chart-symbol-title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.chart-symbol-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-price-box {
  text-align: right;
}

.live-price-ticker {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--neon-cyan);
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .live-price-ticker {
    font-size: 1.8rem;
  }
}

.price-change-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.2rem;
}

.price-change-pill.up {
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.price-change-pill.down {
  background: var(--sell-subtle);
  color: var(--sell);
  border: 1px solid var(--sell-border);
}

/* Chart Canvas Area */
.chart-view-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  background: var(--bg-chart-view);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .chart-view-wrapper {
    height: 310px;
  }
}

@media (min-width: 1024px) {
  .chart-view-wrapper {
    height: 350px;
  }
}

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

/* Chart Switcher Controls */
.chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toggle-group {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--border-glass);
}

.toggle-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-brand);
}

.toggle-btn.active {
  background: var(--bg-surface);
  color: var(--neon-cyan);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Market Telemetry Gauges */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.15rem;
}

@media (min-width: 640px) {
  .telemetry-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.telemetry-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.telemetry-item:hover {
  border-color: var(--border-glass-bright);
  transform: translateY(-2px);
}

.telemetry-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.telemetry-sub {
  font-size: 0.7rem;
  color: var(--neon-cyan);
  margin-top: 0.2rem;
  font-weight: 600;
}

/* ==========================================================================
   RIGHT COLUMN: ASSET PICKER & SIGNAL GENERATOR
   ========================================================================== */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Asset Selector Button */
.asset-selector-card {
  padding: 1.15rem;
}

.card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.card-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.asset-active-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glass-shadow);
}

.asset-active-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan-border);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px var(--neon-cyan-glow);
}

.asset-btn-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.asset-flag-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.asset-title-block {
  text-align: left;
}

.asset-symbol-text {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.asset-name-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.payout-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--neon-cyan);
  background: var(--neon-cyan-subtle);
  border: 1px solid var(--neon-cyan-border);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
}

/* Timeframe Selector Pills */
.timeframe-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tf-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 0.2rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  display: grid;
  place-items: center;
}

.tf-pill:hover {
  color: var(--text-main);
  background: var(--bg-elevated);
  border-color: var(--border-glass-bright);
}

.tf-pill.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: 0 0 18px var(--neon-cyan-glow);
  transform: translateY(-1px);
  font-weight: 800;
}

/* ==========================================================================
   AI SIGNAL GENERATOR CORE CARD
   ========================================================================== */
.signal-box-card {
  padding: 1.6rem 1.4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.signal-box-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--primary), transparent);
}

/* Idle State */
.signal-state-idle {
  padding: 1.6rem 0.5rem;
}

.idle-icon-sphere {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  margin: 0 auto 1.15rem auto;
  background: var(--neon-cyan-subtle);
  border: 1.5px solid var(--neon-cyan-border);
  display: grid;
  place-items: center;
  color: var(--neon-cyan);
  box-shadow: 0 0 35px var(--neon-cyan-glow);
  animation: pulseSphere 3s infinite ease-in-out;
}

@keyframes pulseSphere {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--neon-cyan-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 45px var(--neon-cyan-glow); }
}

.idle-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.idle-sub strong {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 800;
}

/* Analyzing State */
.signal-state-analyzing {
  padding: 1.6rem 0.5rem;
}

.scanner-orbit {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 1.35rem auto;
}

.orbit-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--neon-cyan);
  border-right-color: var(--neon-cyan);
  animation: spinRing 0.9s linear infinite;
  box-shadow: 0 0 16px var(--neon-cyan-glow);
}

.orbit-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed var(--primary);
  animation: spinRingBack 1.3s linear infinite;
}

.orbit-center-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--neon-cyan);
  animation: pulseSphere 1.2s infinite ease-in-out;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

@keyframes spinRingBack {
  to { transform: rotate(-360deg); }
}

.scan-step-text {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  min-height: 1.5em;
  letter-spacing: -0.01em;
}

.scan-progress-bar-bg {
  width: 200px;
  height: 5px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  margin: 0.85rem auto 0.6rem auto;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.scan-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--primary), var(--neon-blue));
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Generated Signal Display */
.signal-state-active {
  animation: scaleIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.90) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.signal-meta-line {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.signal-direction-card {
  margin: 1.15rem auto;
  padding: 1.25rem 2.25rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  font-family: var(--font-brand);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  user-select: none;
}

.signal-direction-card.is-buy {
  background: var(--dir-buy-bg);
  border: 2px solid var(--dir-buy-border);
  color: var(--dir-buy-text);
  box-shadow: var(--dir-buy-shadow);
}

.signal-direction-card.is-sell {
  background: var(--dir-sell-bg);
  border: 2px solid var(--dir-sell-border);
  color: var(--dir-sell-text);
  box-shadow: var(--dir-sell-shadow);
}

.signal-direction-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  animation: bounceArrow 1.2s infinite ease-in-out;
}

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

/* Confidence Gauge */
.confidence-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.confidence-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.confidence-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.confidence-bar-bg {
  width: 230px;
  height: 7px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.confidence-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.confidence-bar-fill.is-buy {
  background: linear-gradient(90deg, #00C853, var(--success));
  box-shadow: 0 0 12px var(--success-glow);
}

.confidence-bar-fill.is-sell {
  background: linear-gradient(90deg, #D50000, var(--sell));
  box-shadow: 0 0 12px var(--sell-glow);
}

/* Expiry Countdown Timer */
.signal-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* ==========================================================================
   RECENT SIGNALS HISTORY FEED
   ========================================================================== */
.history-section {
  margin-top: 1.35rem;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.section-title {
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glass-shadow);
}

.history-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
  transform: translateY(-1px);
}

.history-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.history-dir-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.history-dir-badge.is-buy {
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.history-dir-badge.is-sell {
  background: var(--sell-subtle);
  color: var(--sell);
  border: 1px solid var(--sell-border);
}

.history-pair-title {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
}

.history-timestamp {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.history-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.history-conf {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--neon-cyan);
  background: var(--neon-cyan-subtle);
  border: 1px solid var(--neon-cyan-border);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   HOW IT WORKS (3 SIMPLE STEPS)
   ========================================================================== */
.steps-section {
  margin-top: 2.5rem;
  padding: 1.5rem 0;
}

.steps-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.steps-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
}

.steps-main-title {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .steps-main-title {
    font-size: 1.85rem;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: radial-gradient(circle at 95% 95%, var(--neon-cyan-subtle) 0%, transparent 60%), var(--bg-step);
  border: 1px solid var(--border-glass);
  box-shadow: var(--glass-shadow);
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  border-color: var(--neon-cyan-border);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), 0 0 24px var(--neon-cyan-glow);
}

.step-num-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--neon-cyan-subtle);
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan-border);
  box-shadow: 0 0 16px var(--neon-cyan-glow);
}

.step-card-title {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 1rem;
  line-height: 1.3;
}

.step-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.5;
}

/* ==========================================================================
   PROFILE & SUPPORT VIEWS
   ========================================================================== */
.view-container {
  display: none;
  animation: fadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-container.active {
  display: block;
}

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

.profile-card {
  padding: 1.6rem;
  margin-bottom: 1.25rem;
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.profile-avatar-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  display: grid;
  place-items: center;
  color: var(--text-inverse);
  box-shadow: 0 0 28px var(--neon-cyan-glow);
  flex-shrink: 0;
}

.profile-id-box {
  margin-top: 1.35rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--glass-shadow);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.profile-stat-card {
  padding: 1.25rem;
  text-align: center;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-glass-bright);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
  max-height: 350px;
  padding: 0.2rem 1.25rem 1.15rem 1.25rem;
}

.faq-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   BOTTOM DOCK NAVIGATION (MOBILE)
   ========================================================================== */
.bottom-dock-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.6rem 1rem max(env(safe-area-inset-bottom), 0.75rem) 1rem;
  background: var(--bg-dock-fade);
  pointer-events: none;
}

.dock-inner {
  pointer-events: auto;
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.38rem;
  border-radius: var(--radius-full);
  background: var(--bg-dock);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px -5px var(--neon-cyan-glow);
}

.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 0.6rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.dock-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: var(--text-inverse);
  box-shadow: 0 2px 16px var(--neon-cyan-glow);
}

.dock-btn:hover:not(.active) {
  color: var(--text-main);
  background: rgba(0, 245, 255, 0.08);
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--modal-backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: end center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

@media (min-width: 640px) {
  .modal-overlay {
    place-items: center;
    padding: 1.25rem;
  }
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 1.85rem;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .modal-card {
    border-radius: var(--radius-xl);
    transform: scale(0.94);
  }
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.modal-title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.modal-close-btn:hover {
  color: var(--neon-cyan);
  background: var(--border-glass);
  transform: rotate(90deg);
}

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

.form-input {
  width: 100%;
  padding: 0.88rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1.5px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.98rem;
  outline: none;
  transition: all 0.22s ease;
}

.form-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  background: var(--bg-elevated);
}

/* ==========================================================================
   ASSET SEARCH POPUP MODAL & CATEGORY CHIPS
   ========================================================================== */
.category-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.65rem 0;
  scrollbar-width: none;
}

.category-filter-chips::-webkit-scrollbar {
  display: none;
}

.category-chip {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-brand);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-chip:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
  border-color: var(--border-glass-bright);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.asset-modal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  max-height: 370px;
  overflow-y: auto;
  padding-right: 0.35rem;
  margin-top: 0.75rem;
}

@media (min-width: 460px) {
  .asset-modal-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.asset-item-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.asset-item-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan-border);
  transform: translateY(-1px);
}

.asset-item-btn.selected {
  border-color: var(--neon-cyan);
  background: var(--neon-cyan-subtle);
  box-shadow: 0 0 14px var(--neon-cyan-subtle);
}

/* ==========================================================================
   FOOTER (INSTITUTIONAL GRADE)
   ========================================================================== */
.site-footer {
  margin-top: 3.5rem;
  padding: 2rem 1rem 1rem 1rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.6;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--neon-cyan);
}

.footer-status-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  right: 1.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: calc(100vw - 2.5rem);
}

@media (min-width: 840px) {
  #toast-container {
    bottom: 2rem;
    right: 2rem;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  animation: slideToast 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.toast.toast-success {
  border-color: var(--success);
  box-shadow: 0 0 20px var(--success-glow);
}

.toast.toast-error {
  border-color: var(--sell);
  box-shadow: 0 0 20px var(--sell-glow);
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* 1. Small mobile phones (320px to 374px) */
@media (max-width: 374px) {
  html {
    font-size: 13.5px;
  }

  .app-container {
    padding: 0.5rem 0.5rem calc(var(--bottom-nav-height) + 1rem) 0.5rem;
  }

  .site-header {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-lg);
  }

  .brand-logo-badge {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .chart-panel {
    padding: 0.85rem;
  }

  .chart-view-wrapper {
    height: 220px;
  }

  .live-price-ticker {
    font-size: 1.35rem;
  }

  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .telemetry-item {
    padding: 0.65rem 0.45rem;
  }

  .timeframe-grid {
    gap: 0.25rem;
  }

  .tf-pill {
    font-size: 0.72rem;
    padding: 0.5rem 0.1rem;
    min-height: 38px;
  }

  .signal-box-card {
    padding: 1.25rem 0.75rem;
  }

  .signal-direction-card {
    font-size: 2rem;
    padding: 0.9rem 1.4rem;
    gap: 0.75rem;
    width: 100%;
  }

  .signal-direction-arrow {
    width: 36px;
    height: 36px;
  }

  .confidence-bar-bg {
    width: 100%;
    max-width: 180px;
  }

  .dock-inner {
    max-width: 100%;
    padding: 0.25rem;
  }

  .dock-btn {
    font-size: 0.72rem;
    padding: 0.6rem 0.25rem;
    gap: 0.25rem;
  }

  .modal-card {
    padding: 1.25rem 0.85rem;
  }
}

/* 2. Standard mobile phones (375px to 429px) */
@media (min-width: 375px) and (max-width: 429px) {
  html {
    font-size: 14.5px;
  }

  .app-container {
    padding: 0.65rem 0.65rem calc(var(--bottom-nav-height) + 1.15rem) 0.65rem;
  }

  .chart-view-wrapper {
    height: 260px;
  }

  .signal-direction-card {
    font-size: 2.3rem;
    padding: 1.1rem 1.8rem;
  }
}

/* 3. Large mobile phones (430px to 599px) */
@media (min-width: 430px) and (max-width: 599px) {
  .chart-view-wrapper {
    height: 280px;
  }

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

/* 4. Tablets (600px to 1023px) */
@media (min-width: 600px) and (max-width: 1023px) {
  .telemetry-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .chart-view-wrapper {
    height: 330px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 5. Laptops & Desktops (1024px to 1439px) */
@media (min-width: 1024px) {
  .terminal-layout {
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .chart-view-wrapper {
    height: 360px;
  }

  .bottom-dock-nav {
    display: none;
  }

  .app-container {
    padding-bottom: 2rem;
  }

  #toast-container {
    bottom: 2rem;
  }
}

/* 6. Ultrawide & large screens (1440px+) */
@media (min-width: 1440px) {
  .app-container {
    max-width: 1400px;
    padding: 1.75rem 2.5rem 3.5rem 2.5rem;
  }

  .chart-view-wrapper {
    height: 400px;
  }

  .live-price-ticker {
    font-size: 2rem;
  }
}

/* ==========================================================================
   STANDALONE ADMIN SUITE
   ========================================================================== */
.admin-shell { padding: 0.5rem 0 2rem 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.admin-brand { display: flex; align-items: center; gap: 0.85rem; }
.admin-logo-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--neon-cyan-subtle); border: 1px solid var(--neon-cyan-border); display: grid; place-items: center; color: var(--neon-cyan); }
.admin-title { font-family: var(--font-brand); font-size: 1.35rem; font-weight: 800; color: var(--text-main); }
.admin-subtitle { font-size: 0.78rem; color: var(--text-muted); }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .admin-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi-card { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-glass); box-shadow: var(--glass-shadow); }
.kpi-card.highlight-green { border-color: var(--neon-cyan-border); box-shadow: 0 0 20px -8px var(--neon-cyan-glow); }
.kpi-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-dim); }
.kpi-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 800; color: var(--text-main); margin-top: 0.25rem; }
.kpi-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }
.admin-subtabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.subtab-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--border-glass); background: var(--bg-surface); color: var(--text-muted); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease; box-shadow: var(--glass-shadow); }
.subtab-btn.active { background: var(--neon-cyan); color: var(--text-inverse); border-color: var(--neon-cyan); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.search-input-wrapper { position: relative; display: flex; align-items: center; }
.search-input-wrapper svg { position: absolute; left: 0.85rem; color: var(--text-dim); }
.search-input-wrapper input { padding-left: 2.35rem; min-width: 220px; }
.status-filter-group { display: flex; gap: 0.35rem; }
.filter-pill { padding: 0.35rem 0.85rem; border-radius: var(--radius-full); background: var(--bg-surface); border: 1px solid var(--border-glass); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.filter-pill.active { background: var(--bg-elevated); color: var(--text-main); border-color: var(--border-glass-bright); }
.table-responsive { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--border-glass); }
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-glass); vertical-align: middle; color: var(--text-main); }
.mono-badge { font-family: var(--font-mono); font-weight: 700; color: var(--neon-cyan); }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; }
.badge-verified { background: var(--neon-cyan-subtle); color: var(--neon-cyan); border: 1px solid var(--neon-cyan-border); }
.badge-pending { background: var(--amber-subtle); color: var(--amber); border: 1px solid rgba(255, 184, 0, 0.3); }
.action-btn-group { display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.72rem; }
.admin-login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 1rem; }
.admin-login-card { width: 100%; max-width: 440px; padding: 2.25rem 2rem; text-align: center; }
.admin-login-icon { width: 64px; height: 64px; margin: 0 auto 1.25rem auto; border-radius: 20px; background: var(--neon-cyan-subtle); color: var(--neon-cyan); border: 1px solid var(--neon-cyan-border); display: grid; place-items: center; box-shadow: 0 0 24px var(--neon-cyan-glow); }
.admin-login-title { font-family: var(--font-brand); font-size: 1.45rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.4rem; }
.admin-login-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.45; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
