@import url(https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap);
/* ============================================================================
   STATUS PANEL STYLES
   ============================================================================ */
.status-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: var(--z-modal-backdrop);
  animation: fadeIn 0.2s ease-out;
}

.status-panel {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  right: 0;
  width: min(380px, 100vw);
  height: calc(100vh - env(safe-area-inset-top, 0));
  background: var(--color-bg-surface);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--color-dark-border);
  box-shadow: var(--shadow-2xl);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease-out;
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.status-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-dark-border);
}

.status-panel-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.close-btn {
  background: var(--color-bg-hover);
  border: none;
  color: var(--color-text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.close-btn:hover {
  background: var(--color-dark-border);
}

.status-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Status Sections */
.status-section {
  background: var(--color-bg-darker);
  border: 1px solid var(--color-dark-border);
  border-radius: 12px;
  padding: 16px;
}

/* Wallet Profile Section - override default styles */
.status-section.wallet-profile-section {
  background: transparent;
  border: none;
  padding: 0;
}

.status-section.wallet-profile-section .wallet-profile {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-dark-border);
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  opacity: 0.7;
}

/* Network Info */
.network-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.network-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.network-row > span:first-child {
  opacity: 0.8;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-accent-success);
}

.status-badge.offline {
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-accent-critical);
}

.status-badge.connected {
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-accent-info);
}

.status-badge.disconnected {
  background: rgba(148, 163, 184, 0.08);
  color: var(--color-text-muted);
}

.chain-name {
  font-weight: 700;
  color: var(--color-brand-primary);
}

.chain-id {
  font-family: var(--font-mono);
  opacity: 0.9;
}

.rpc-status {
  font-weight: 600;
  text-transform: capitalize;
}

.rpc-status.healthy {
  color: var(--color-accent-success);
}

.rpc-status.degraded {
  color: var(--color-accent-warning);
}

.rpc-status.offline {
  color: var(--color-accent-critical);
}

/* Wallet Info */
.wallet-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.wallet-row > span:first-child {
  opacity: 0.8;
}

.address-copy {
  background: var(--color-bg-darker);
  border: 1px solid var(--color-dark-border);
  color: var(--color-text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: all 0.2s;
}

.address-copy:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-dark-border);
}

.address-copy:active {
  transform: scale(0.98);
}

.copy-icon {
  opacity: 0.7;
  font-size: 12px;
}

.balance {
  font-weight: 700;
  color: var(--color-brand-primary);
}

/* Twitch Profile */
.twitch-profile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(29, 78, 216, 0.2);
  object-fit: cover;
}

.profile-details {
  flex: 1;
}

.profile-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-login {
  font-size: 13px;
  opacity: 0.7;
  color: var(--color-brand-secondary);
}

.profile-bio {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
  padding: 10px;
  background: var(--color-bg-darker);
  border-radius: 8px;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--color-bg-darker);
  border-radius: 8px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
}

/* Loading & No Data */
.loading-spinner {
  text-align: center;
  padding: 20px;
  opacity: 0.7;
  font-size: 14px;
}

.no-data {
  text-align: center;
  padding: 20px;
  opacity: 0.5;
  font-size: 14px;
}

/* Token List Styles */
.token-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(29, 78, 216, 0.04);
  border: 1px solid var(--color-dark-border);
  border-radius: 8px;
  transition: all 0.2s;
}

.token-item:hover {
  background: rgba(29, 78, 216, 0.06);
  border-color: rgba(29, 78, 216, 0.15);
}

.token-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.token-symbol {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.token-name {
  font-size: 12px;
  opacity: 0.6;
  text-transform: uppercase;
}

.token-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.balance-amount {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.balance-usd {
  font-size: 12px;
  opacity: 0.6;
  color: var(--color-brand-secondary);
}

/* Compact Token List */
.token-list-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.token-item-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-dark-border);
  border-radius: 6px;
  font-size: 12px;
}

.token-symbol-small {
  font-weight: 700;
  color: var(--color-brand-primary);
}

.token-balance-small {
  font-family: var(--font-mono);
  opacity: 0.8;
}

/* Refresh Button */
.refresh-btn {
  background: linear-gradient(135deg, var(--color-brand-secondary), var(--color-brand-secondary));
  border: none;
  color: var(--color-text-primary);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.refresh-btn:active {
  transform: translateY(0);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
  .status-panel {
    width: 100vw;
  }

  .token-list-compact {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/**
 * 🎨 baseLINE Design System — Enterprise Tokens v3
 * Single source of truth for all design tokens.
 * ════════════════════════════════════════════════════════════
 *
 * LIGHT-FIRST enterprise palette.  Dark-mode overrides at end.
 * Fonts: Sora (display), Source Sans 3 (body), JetBrains Mono (code).
 *
 * This file merges the old tokens.css + refined-design-system.css
 * into ONE canonical set of variables so nothing conflicts.
 *
 * SECURITY NOTE: Never accept user input into CSS variable values.
 */

:root {
  /* ═══════════════════════════════════════════════════════════
     🎯 BRAND
     ═══════════════════════════════════════════════════════════ */
  --color-brand-primary: #1d4ed8;      /* Enterprise blue */
  --color-brand-secondary: #7c3aed;    /* Purple — guardians, 0x branding */
  --color-brand-accent: #0f766e;       /* Teal accent */
  --color-brand-light: #3b82f6;        /* Lighter blue (links, hover) */

  /* ═══════════════════════════════════════════════════════════
     🌈 SEMANTIC ACCENT COLORS
     ═══════════════════════════════════════════════════════════ */
  --color-accent-primary: #1d4ed8;
  --color-accent-secondary: #7c3aed;
  --color-accent-tertiary: #8b5cf6;
  --color-accent-success: #10b981;
  --color-accent-warning: #f59e0b;
  --color-accent-critical: #ef4444;
  --color-accent-info: #0ea5e9;
  --color-accent-subtle: #6366f1;

  /* ═══════════════════════════════════════════════════════════
     🟦 BACKGROUND HIERARCHY (Light-first)
     ═══════════════════════════════════════════════════════════ */
  --color-bg-darkest: #f8fafc;
  --color-bg-darker: #f1f5f9;
  --color-bg-base: #e2e8f0;
  --color-bg-surface: #ffffff;
  --color-bg-overlay: #f8fafc;
  --color-bg-hover: #e2e8f0;
  --color-bg-selected: #dbeafe;

  /* Legacy dark aliases (consumed by sticky-nav, wallet, etc.) */
  --color-dark-void: #f8fafc;
  --color-dark-darkest: #f1f5f9;
  --color-dark-darker: #e2e8f0;
  --color-dark-base: #e2e8f0;
  --color-dark-surface: #ffffff;
  --color-dark-overlay: #f8fafc;
  --color-dark-border: #e5e7eb;

  /* ═══════════════════════════════════════════════════════════
     📝 TEXT
     ═══════════════════════════════════════════════════════════ */
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-tertiary: #64748b;
  --color-text-muted: #94a3b8;
  --color-text-disabled: #cbd5e1;
  --color-text-accent: #1d4ed8;
  --color-text-success: #059669;
  --color-text-warning: #d97706;
  --color-text-error: #dc2626;
  --color-text-info: #1d4ed8;

  /* ═══════════════════════════════════════════════════════════
     🔗 LINKS
     ═══════════════════════════════════════════════════════════ */
  --color-link-default: #1d4ed8;
  --color-link-hover: #1e40af;
  --color-link-active: #1e3a8a;
  --color-link-visited: #6d28d9;

  /* ═══════════════════════════════════════════════════════════
     ✨ GLASS MORPHISM
     ═══════════════════════════════════════════════════════════ */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-light: rgba(255, 255, 255, 0.6);
  --glass-background: rgba(255, 255, 255, 0.7);
  --glass-background-light: rgba(248, 250, 252, 0.6);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-strong: rgba(15, 23, 42, 0.15);
  --glass-backdrop: blur(12px) saturate(120%);
  --glass-backdrop-blur: 10px;
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);

  /* ═══════════════════════════════════════════════════════════
     🔤 TYPOGRAPHY
     ═══════════════════════════════════════════════════════════ */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-brand: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Legacy alias consumed by old components */
  --font-cyber: 'Sora', sans-serif;

  /* ═══════════════════════════════════════════════════════════
     📏 FONT SIZES (1rem = 16px)
     ═══════════════════════════════════════════════════════════ */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */

  /* ═══════════════════════════════════════════════════════════
     🔢 FONT WEIGHTS
     ═══════════════════════════════════════════════════════════ */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ═══════════════════════════════════════════════════════════
     📐 LINE HEIGHTS
     ═══════════════════════════════════════════════════════════ */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;

  /* ═══════════════════════════════════════════════════════════
     📐 SPACING (8px Grid)
     ═══════════════════════════════════════════════════════════ */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 2.5rem;    /* 40px */
  --space-3xl: 3rem;      /* 48px */
  --space-4xl: 4rem;      /* 64px */
  --space-5xl: 5rem;      /* 80px */
  --space-6xl: 6rem;      /* 96px */

  /* ═══════════════════════════════════════════════════════════
     📦 CONTAINERS
     ═══════════════════════════════════════════════════════════ */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  /* ═══════════════════════════════════════════════════════════
     🔘 BORDER RADIUS
     ═══════════════════════════════════════════════════════════ */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ═══════════════════════════════════════════════════════════
     🔲 BORDERS
     ═══════════════════════════════════════════════════════════ */
  --border-thin: 1px;
  --border-default: 2px;
  --border-thick: 4px;

  /* ═══════════════════════════════════════════════════════════
     ✨ SHADOWS (soft, professional)
     ═══════════════════════════════════════════════════════════ */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 20px rgba(15, 23, 42, 0.08), 0 3px 6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 16px 32px rgba(15, 23, 42, 0.1), 0 5px 15px rgba(15, 23, 42, 0.06);
  --shadow-2xl: 0 24px 48px rgba(15, 23, 42, 0.12);

  /* ═══════════════════════════════════════════════════════════
     🎨 GRADIENTS
     ═══════════════════════════════════════════════════════════ */
  --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-subtle: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-critical: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

  /* Legacy aliases */
  --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 50%, #0f766e 100%);
  --gradient-neon: var(--gradient-primary);
  --gradient-cyber: var(--gradient-primary);
  --gradient-twitch: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  --gradient-void: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.95) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-rainbow: linear-gradient(90deg, #ef4444 0%, #f59e0b 17%, #10b981 33%, #0ea5e9 50%, #3b82f6 67%, #7c3aed 83%, #ec4899 100%);

  /* ═══════════════════════════════════════════════════════════
     ⏱️ ANIMATION & EASING
     ═══════════════════════════════════════════════════════════ */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-in: cubic-bezier(0.4, 0, 1, 1);
  --easing-out: cubic-bezier(0, 0, 0.2, 1);
  --easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ═══════════════════════════════════════════════════════════
     📱 BREAKPOINTS
     ═══════════════════════════════════════════════════════════ */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  --bp-xs: 320px;
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;

  /* ═══════════════════════════════════════════════════════════
     🎮 Z-INDEX SCALE
     ═══════════════════════════════════════════════════════════ */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-notification: 1080;
  --z-max: 9999;

  /* ═══════════════════════════════════════════════════════════
     🌈 NEON LEGACY ALIASES (consumed by overlay / 0x codex)
     Toned-down so they still work but don't scream cyberpunk.
     ═══════════════════════════════════════════════════════════ */
  --color-neon-cyan: #0ea5e9;
  --color-neon-magenta: #ef4444;
  --color-neon-purple: #7c3aed;
  --color-neon-blue: #1d4ed8;
  --color-neon-green: #10b981;
  --color-neon-yellow: #f59e0b;
  --color-neon-red: #ef4444;
  --color-neon-orange: #fb923c;
  --color-neon-lime: #84cc16;
  --color-neon-pink: #f472b6;

  /* Glow aliases (very subtle in light mode) */
  --glow-cyan: 0 0 4px rgba(14, 165, 233, 0.25);
  --glow-magenta: 0 0 4px rgba(239, 68, 68, 0.25);
  --glow-purple: 0 0 4px rgba(124, 58, 237, 0.25);
  --glow-blue: 0 0 4px rgba(29, 78, 216, 0.25);
  --glow-green: 0 0 4px rgba(16, 185, 129, 0.25);
  --glow-yellow: 0 0 4px rgba(245, 158, 11, 0.25);
  --glow-red: 0 0 4px rgba(239, 68, 68, 0.25);
  --glow-neon-mix: 0 0 6px rgba(29, 78, 216, 0.2);

  /* Pixel shadow legacy (maps to normal shadow) */
  --shadow-pixel-sm: var(--shadow-sm);
  --shadow-pixel-md: var(--shadow-md);
  --shadow-pixel-lg: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════
   🌙 DARK MODE OVERRIDE
   Applied when OS prefers dark or [data-theme="dark"]
   ═══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-darkest: #0f172a;
    --color-bg-darker: #1e293b;
    --color-bg-base: #1f2937;
    --color-bg-surface: #2d3748;
    --color-bg-overlay: #374151;
    --color-bg-hover: #4b5563;
    --color-bg-selected: #5a6d7e;

    --color-dark-void: #0f172a;
    --color-dark-darkest: #1e293b;
    --color-dark-darker: #1f2937;
    --color-dark-base: #1f2937;
    --color-dark-surface: #2d3748;
    --color-dark-overlay: #374151;
    --color-dark-border: #4b5563;

    --color-text-primary: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;
    --color-text-muted: #64748b;
    --color-text-disabled: #475569;
    --color-text-accent: #60a5fa;

    --color-link-default: #60a5fa;
    --color-link-hover: #3b82f6;
    --color-link-active: #1d4ed8;

    --glass-bg: rgba(31, 41, 55, 0.75);
    --glass-bg-light: rgba(45, 55, 72, 0.65);
    --glass-background: rgba(31, 41, 55, 0.7);
    --glass-background-light: rgba(45, 55, 72, 0.6);
    --glass-border: rgba(203, 213, 225, 0.12);
    --glass-border-strong: rgba(203, 213, 225, 0.22);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.35), 0 5px 15px rgba(0, 0, 0, 0.15);

    --gradient-subtle: linear-gradient(135deg, #1e293b 0%, #2d3748 100%);
    --gradient-void: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #1f2937 100%);
    --gradient-surface: linear-gradient(180deg, #1f2937 0%, #2d3748 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);

    --glow-cyan: 0 0 5px rgba(14, 165, 233, 0.6), 0 0 10px rgba(14, 165, 233, 0.3);
    --glow-purple: 0 0 5px rgba(124, 58, 237, 0.6), 0 0 10px rgba(124, 58, 237, 0.3);
    --glow-blue: 0 0 5px rgba(29, 78, 216, 0.6), 0 0 10px rgba(29, 78, 216, 0.3);
  }
}

[data-theme="dark"] {
  --color-bg-darkest: #0f172a;
  --color-bg-darker: #1e293b;
  --color-bg-base: #1f2937;
  --color-bg-surface: #2d3748;
  --color-bg-overlay: #374151;
  --color-bg-hover: #4b5563;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-muted: #64748b;
  --color-link-default: #60a5fa;
  --color-link-hover: #3b82f6;
  --glass-bg: rgba(31, 41, 55, 0.75);
  --glass-border: rgba(203, 213, 225, 0.12);
  --glass-border-strong: rgba(203, 213, 225, 0.22);
}

/* ═══════════════════════════════════════════════════════════
   🎬 KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

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

@keyframes slideInLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes scaleOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.95); opacity: 0; }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Rainbow for 0x Codex guardians */
@keyframes rainbow {
  0% { color: #ef4444; }
  17% { color: #f59e0b; }
  33% { color: #10b981; }
  50% { color: #0ea5e9; }
  67% { color: #3b82f6; }
  83% { color: #7c3aed; }
  100% { color: #ec4899; }
}

/* ═══════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --color-text-primary: #000000;
    --color-text-secondary: #1e293b;
    --color-text-tertiary: #334155;
    --color-dark-border: #475569;
    --glass-border: rgba(0, 0, 0, 0.3);
    --glass-border-strong: rgba(0, 0, 0, 0.5);
  }
}

/* CSS Grid fallback */
@supports not (display: grid) {
  .grid-fallback {
    display: flex;
    flex-wrap: wrap;
  }
}

/* backdrop-filter fallback */
@supports not (backdrop-filter: blur(10px)) {
  .glass-fallback {
    background: rgba(255, 255, 255, 0.92) !important;
  }
}

/**
 * 🔄 baseLINE CSS Reset & Normalization
 * Cross-browser consistency & security hardening
 * ════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════
   🛡️ SECURITY: Prevent CSS Injection
   ═══════════════════════════════════════════════════════════ */

/* Never allow user-controlled styles */
[style*="javascript:"],
[style*="expression("],
[style*="behavior:"],
[style*="binding:"],
[style*="@import"],
[style*="url(data:text/html"] {
  display: none !important;
  visibility: hidden !important;
}

/* ═══════════════════════════════════════════════════════════
   📦 BOX MODEL: Border-Box Everything
   ═══════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════
   🌐 HTML & BODY: Base Setup
   ═══════════════════════════════════════════════════════════ */

html {
  font-size: 16px; /* Base font size for rem calculations */
  -webkit-text-size-adjust: 100%; /* Prevent font size adjustment on iOS */
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--color-dark-void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Remove default tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════════════════
   🔤 TYPOGRAPHY: Normalize Text Elements
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

p {
  margin: 0 0 var(--space-md) 0;
}

a {
  color: var(--color-text-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-default);
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

strong, b {
  font-weight: var(--font-weight-bold);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════
   📝 CODE & PREFORMATTED TEXT
   ═══════════════════════════════════════════════════════════ */

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.125em 0.25em;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  color: var(--color-accent-info);
}

pre {
  padding: var(--space-md);
  background: var(--color-bg-darker);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  white-space: pre;
  line-height: var(--line-height-relaxed);
}

pre code {
  padding: 0;
  background: transparent;
  border: none;
}

/* ═══════════════════════════════════════════════════════════
   📋 LISTS
   ═══════════════════════════════════════════════════════════ */

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════
   📸 IMAGES & MEDIA
   ═══════════════════════════════════════════════════════════ */

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border-style: none;
}

svg {
  overflow: hidden;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMS: Normalize Inputs
   ═══════════════════════════════════════════════════════════ */

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

input,
textarea,
select {
  background: var(--color-bg-surface);
  border: 2px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-primary);
  transition: all var(--duration-fast) var(--easing-default);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Remove default styling for file inputs */
[type="file"] {
  background: transparent;
  border: none;
  padding: 0;
}

/* Checkbox and radio */
[type="checkbox"],
[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  cursor: pointer;
  accent-color: var(--color-brand-primary);
}

/* ═══════════════════════════════════════════════════════════
   🔘 BUTTONS: Base Styles
   ═══════════════════════════════════════════════════════════ */

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--duration-normal) var(--easing-default);
  user-select: none;
}

button:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

button:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════
   📊 TABLES
   ═══════════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

thead {
  background: var(--color-bg-darker);
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-dark-border);
}

th {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}

tr:hover {
  background: var(--color-bg-hover);
}

/* ═══════════════════════════════════════════════════════════
   🎨 HORIZONTAL RULES
   ═══════════════════════════════════════════════════════════ */

hr {
  height: 0;
  border: 0;
  border-top: 2px solid var(--color-dark-border);
  margin: var(--space-lg) 0;
}

/* ═══════════════════════════════════════════════════════════
   💬 DETAILS & SUMMARY (Accordion)
   ═══════════════════════════════════════════════════════════ */

details {
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--color-bg-surface);
}

summary {
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  user-select: none;
  padding: var(--space-sm);
  margin: calc(-1 * var(--space-md));
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-dark-border);
  transition: color var(--duration-fast) var(--easing-default);
}

summary:hover {
  color: var(--color-brand-primary);
}

details[open] summary {
  margin-bottom: var(--space-md);
  color: var(--color-brand-primary);
}

/* ═══════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY: Focus Indicators
   ═══════════════════════════════════════════════════════════ */

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════
   🔍 SELECTION HIGHLIGHT
   ═══════════════════════════════════════════════════════════ */

::selection {
  background: var(--color-brand-primary);
  color: #ffffff;
}

::-moz-selection {
  background: var(--color-brand-primary);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   📜 SCROLLBAR STYLING (Webkit)
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-base);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-bg-darker);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-bg-hover);
}

/* ═══════════════════════════════════════════════════════════
   🚫 HIDDEN ELEMENTS
   ═══════════════════════════════════════════════════════════ */

[hidden] {
  display: none !important;
}

[aria-hidden="true"] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Display
   ═══════════════════════════════════════════════════════════ */

.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Flexbox
   ═══════════════════════════════════════════════════════════ */

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Text Alignment
   ═══════════════════════════════════════════════════════════ */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Text Transform
   ═══════════════════════════════════════════════════════════ */

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Font Weights
   ═══════════════════════════════════════════════════════════ */

.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Colors
   ═══════════════════════════════════════════════════════════ */

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-text-accent); }
.text-success { color: var(--color-text-success); }
.text-warning { color: var(--color-text-warning); }
.text-error { color: var(--color-text-error); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Background Colors
   ═══════════════════════════════════════════════════════════ */

.bg-void { background: var(--color-dark-void); }
.bg-darkest { background: var(--color-dark-darkest); }
.bg-darker { background: var(--color-dark-darker); }
.bg-base { background: var(--color-dark-base); }
.bg-surface { background: var(--color-dark-surface); }
.bg-overlay { background: var(--color-dark-overlay); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Spacing (Margin & Padding)
   ═══════════════════════════════════════════════════════════ */

.m-0 { margin: 0; }
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Border Radius
   ═══════════════════════════════════════════════════════════ */

.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Shadows
   ═══════════════════════════════════════════════════════════ */

.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Neon Glows
   ═══════════════════════════════════════════════════════════ */

.glow-cyan { box-shadow: var(--glow-cyan); }
.glow-magenta { box-shadow: var(--glow-magenta); }
.glow-purple { box-shadow: var(--glow-purple); }
.glow-blue { box-shadow: var(--glow-blue); }
.glow-green { box-shadow: var(--glow-green); }
.glow-neon-mix { box-shadow: var(--glow-neon-mix); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Animations
   ═══════════════════════════════════════════════════════════ */

.animate-fade-in { animation: fadeIn var(--duration-normal) var(--easing-default); }
.animate-slide-in-up { animation: slideInUp var(--duration-normal) var(--easing-default); }
.animate-slide-in-down { animation: slideInDown var(--duration-normal) var(--easing-default); }
.animate-pulse { animation: pulse 2s var(--easing-default) infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-bounce { animation: bounce 1s var(--easing-default) infinite; }
.animate-glow { animation: glow 3s var(--easing-default) infinite; }
.animate-glitch { animation: glitchText 3s var(--easing-default) infinite; }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Transitions
   ═══════════════════════════════════════════════════════════ */

.transition-fast { transition: all var(--duration-fast) var(--easing-default); }
.transition-normal { transition: all var(--duration-normal) var(--easing-default); }
.transition-slow { transition: all var(--duration-slow) var(--easing-default); }

/* ═══════════════════════════════════════════════════════════
   🎯 UTILITY CLASSES: Overflow
   ═══════════════════════════════════════════════════════════ */

.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

/**
 * 🎮 baseLINE Unified CSS Base
 * Matrix + Futurama + Unreal Engine + Retro Gamer
 * Single foundation for all styling - no duplication
 * ════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════
   � IMPORT UNIFIED DESIGN SYSTEM
   Import order: tokens → reset → base-specific
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎯 BASE-SPECIFIC ADDITIONS
   Additional tokens not in main design system
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Legacy aliases for backward compatibility */
  --neon-cyan: var(--color-neon-cyan);
  --neon-magenta: var(--color-neon-magenta);
  --neon-yellow: var(--color-neon-yellow);
  --neon-lime: var(--color-neon-lime);
  --neon-orange: var(--color-neon-orange);
  --neon-pink: var(--color-neon-pink);
  --neon-red: var(--color-neon-red);
  --neon-green: var(--color-neon-green);
  
  --darkest: var(--color-dark-darkest);
  --darker: var(--color-dark-darker);
  --dark: var(--color-dark-base);
  --surface: var(--color-dark-surface);
  --overlay: var(--color-dark-overlay);
  
  --gray: var(--color-text-tertiary);
  
  /* Legacy font aliases */
  --font-pixel: var(--font-display);
  --font-terminal: var(--font-mono);
  
  /* Legacy gradient aliases */
  --gradient-matrix: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --gradient-retro: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 50%, #0ea5e9 100%);
  --gradient-void: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  
  /* Legacy shadow aliases */
  --shadow-pixel-sm: var(--shadow-sm);
  
  /* ⏱️ TIMING (base-specific) */
  --transition-fast: 100ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 300ms ease-out;
  --timing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* 📱 MOBILE LAYOUT */
  --mobile-header-height: 60px;
  --mobile-nav-height: 70px;
}

/* ═══════════════════════════════════════════════════════════
   🌌 BODY BACKGROUND (Clean Enterprise)
   ═══════════════════════════════════════════════════════════ */
body {
  background: var(--color-bg-darkest);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   ⚡ GLOBAL ANIMATIONS & EFFECTS
   ═══════════════════════════════════════════════════════════ */

@keyframes crtFlicker {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

/* Demo banner styling */
.demo-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--color-bg-darker);
  border-bottom: 1px solid var(--color-dark-border);
}
.demo-banner .demo-link {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: 700;
}
.demo-banner .demo-text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

@keyframes glitchText {
  0%, 100% { text-shadow: var(--glow-cyan); }
  20% { text-shadow: -2px 0 var(--color-neon-magenta), 2px 0 var(--color-neon-cyan); }
  40% { text-shadow: 2px 0 var(--color-neon-magenta), -2px 0 var(--color-neon-cyan); }
  60% { text-shadow: -1px 0 var(--color-neon-cyan), 1px 0 var(--color-neon-magenta); }
  80% { text-shadow: 1px 0 var(--color-neon-cyan), -1px 0 var(--color-neon-magenta); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideInUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes neonPulse {
  0%, 100% { 
    text-shadow: var(--glow-cyan);
    filter: drop-shadow(0 0 2px rgba(0, 255, 255, 0.8));
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.4);
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.8));
  }
}

@keyframes dataFlow {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   🔤 TYPOGRAPHY DEFAULTS
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
  color: var(--color-text-secondary);
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   🔗 LINKS & INTERACTIVE
   ═══════════════════════════════════════════════════════════ */

a {
  color: var(--color-link-default);
  text-decoration: none;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--color-link-hover);
  border-bottom-color: var(--color-link-hover);
}

a:active {
  transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════
   🎯 TOUCH TARGETS (Accessibility)
   Minimum 44x44px for mobile
   ═══════════════════════════════════════════════════════════ */

button,
a,
input,
textarea,
select {
  min-height: 44px;
  min-width: 44px;
  font-size: var(--text-base); /* Prevents iOS zoom */
}

/* ═══════════════════════════════════════════════════════════
   🎨 UTILITY CLASSES
   Common patterns
   ═══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-md {
  gap: var(--space-md);
}

.mt-md {
  margin-top: var(--space-md);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.p-md {
  padding: var(--space-md);
}

.text-center {
  text-align: center;
}

/* Session popover and pill enhancements for static pages */
#session-popover {
  position: fixed;
  padding: 10px 12px;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-dark-border);
  border-radius: 8px;
  font-size: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  min-width: 160px;
}

/* Confirmation modal */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  z-index: var(--z-modal-bg);
}

.confirm-modal {
  width: 92%;
  max-width: 420px;
  background: var(--color-bg-surface);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-dark-border);
  color: var(--color-text-primary);
}

.confirm-modal-header h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.confirm-modal-body p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-weight: 700;
}

.btn-cancel {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-dark-border);
}

.btn-confirm {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}



.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-bg-darker);
  border: 1px solid var(--color-dark-border);
  color: var(--color-text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.session-label { font-weight: 600; color: var(--color-text-primary); }
.session-refresh-btn, .session-logout-btn {
  background: transparent;
  border: 1px solid var(--color-dark-border);
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--color-brand-primary);
  cursor: pointer;
  font-size: 12px;
}
.session-refresh-btn:active, .session-logout-btn:active { transform: translateY(1px); }
.session-refresh-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.session-refresh-btn:focus-visible, .session-logout-btn:focus-visible { outline: 2px solid var(--color-brand-primary); box-shadow: 0 0 0 4px rgba(29,78,216,0.12); }
.session-spinner { display: inline-block; font-size: 12px; opacity: 0.9; }
.session-last-updated { color: var(--color-text-muted); font-size: 11px; margin-top: 6px; display: block; }

/* Twitch small avatar */
.session-twitch-avatar { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; margin-left: 8px; }

/* Success animation for refresh */
@keyframes popCheck {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.session-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  background: var(--gradient-success);
  color: white;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: var(--shadow-sm);
  animation: popCheck 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .session-success { animation: none; }
  .session-refresh-btn:focus-visible { box-shadow: none; }
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE MEDIA QUERIES
   Mobile-First Breakpoints
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
  :root {
    --text-base: 1rem;
    --text-lg: 1.125rem;
  }
}

@media (min-width: 768px) {
  :root {
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
  }

  .container {
    max-width: 1400px;
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1400px;
    padding: 0 var(--space-2xl);
  }
}

/* ═══════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY
   Respects user preferences
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* Already dark by default, no change needed */
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
}

/**
 * 🔐 Wallet Profile Styles
 * Inspired by OnchainKit Identity component aesthetic
 * 
 * Features:
 * - Clean, minimal design
 * - Glass morphism backdrop
 * - Responsive layout
 * - Copy-to-clipboard affordance
 * - Loading states
 */

.wallet-profile {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  transition: all var(--duration-normal) var(--ease-smooth);
  
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.wallet-profile.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   Header: Avatar + Identity
   ════════════════════════════════════════════════════════════════════════════ */
.wallet-profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-dark-border);
}

.wallet-profile-avatar,
.wallet-profile-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-dark-border);
  flex-shrink: 0;
  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  
  background: var(--color-bg-darker);
}

.wallet-profile-avatar {
  object-fit: cover;
}

.wallet-profile-avatar-placeholder {
  background: var(--color-bg-base);
}

.wallet-profile-identity {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.wallet-profile-name {
  font-size: var(--text-lg);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-all;
}

.wallet-profile-address {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  
  background: var(--color-bg-darker);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  
  white-space: nowrap;
  overflow: hidden;
}

.wallet-profile-address:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-brand-primary);
  color: var(--color-text-primary);
}

.wallet-profile-address:active {
  transform: scale(0.98);
}

.copy-indicator {
  opacity: 0.6;
  font-size: var(--text-xs);
  transition: all var(--duration-fast);
}

.wallet-profile-address:hover .copy-indicator {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   Network Badge
   ════════════════════════════════════════════════════════════════════════════ */
.wallet-profile-network {
  display: flex;
  justify-content: flex-start;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  
  background: var(--color-dark-border);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-full);
  
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.network-icon {
  animation: pulse 2s ease-in-out infinite;
}

.chain-id {
  opacity: 0.6;
  font-size: var(--text-xs);
  margin-left: var(--space-xs);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   Token Balances Section
   ════════════════════════════════════════════════════════════════════════════ */
.wallet-profile-balances {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.balances-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-tertiary);
  margin: 0;
}

.balance-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  
  background: var(--color-bg-darker);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
}

.balance-label {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.balance-amount {
  color: #ffffff;
  font-size: var(--text-lg);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.balances-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  
  background: var(--color-bg-darkest);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  
  transition: all var(--duration-fast) var(--ease-smooth);
}

.balance-item:hover {
  background: var(--color-bg-darker);
  border-color: var(--color-dark-border);
}

.balance-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.balance-symbol {
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.balance-currency {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.balance-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.balance-usd {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* ════════════════════════════════════════════════════════════════════════════
   Empty States
   ════════════════════════════════════════════════════════════════════════════ */
.wallet-profile-empty,
.wallet-profile-empty-balances {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  
  background: var(--color-bg-darker);
  border: 1px dashed var(--color-dark-border);
  border-radius: var(--radius-lg);
  
  min-height: 200px;
}

.wallet-profile-empty {
  border-radius: var(--radius-2xl);
}

.wallet-profile-content {
  text-align: center;
}

.wallet-profile-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.wallet-profile-empty h3,
.wallet-profile-empty p {
  margin: 0;
}

.wallet-profile-empty h3 {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.wallet-profile-empty p {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

.wallet-profile-empty-balances {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  min-height: 100px;
}

/* ════════════════════════════════════════════════════════════════════════════
   Loading State
   ════════════════════════════════════════════════════════════════════════════ */
.wallet-profile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  
  min-height: 150px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-dark-border);
  border-top-color: var(--color-brand-primary);
  border-radius: 50%;
  
  animation: spin 0.8s linear infinite;
}

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

.wallet-profile-loading p {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .wallet-profile {
    padding: var(--space-md);
    gap: var(--space-md);
  }
  
  .wallet-profile-header {
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
  }
  
  .wallet-profile-avatar,
  .wallet-profile-avatar-placeholder {
    width: 48px;
    height: 48px;
  }
  
  .wallet-profile-name {
    font-size: var(--text-base);
  }
  
  .balance-item {
    padding: var(--space-sm);
  }
  
  .balance-symbol {
    font-size: var(--text-xs);
  }
}

/**
 * 🧭 Sticky Navigation Bar
 * Elegant, minimal, intelligent
 * 
 * Features:
 * - Auto-hides icon when scrolling down
 * - Expands to full nav on hover
 * - Shows full nav on scroll up
 * - Smooth quantum-inspired animations
 * - Battery icon for wallet connect (not power icon)
 * - All main app pages: Home, Connect/Wallet, Dashboard, NFT, Docs
 */

/* ════════════════════════════════════════════════════════════════════════════
   🧭 STICKY NAV CONTAINER - Bottom Center Position
   ════════════════════════════════════════════════════════════════════════════ */
.sticky-nav {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-sticky);
  
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  
  transition: all var(--duration-normal) var(--ease-smooth);
  
  /* Horizontal layout - compact by default */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xs);
  
  width: auto;
  max-width: 90vw;
  padding: var(--space-sm) var(--space-md);
}

/* ════════════════════════════════════════════════════════════════════════════
   🎯 NAV HOVER STATE - Scale up and show labels
   ════════════════════════════════════════════════════════════════════════════ */
.sticky-nav:hover {
  max-width: calc(100vw - var(--space-xl));
  gap: var(--space-sm);
  
  .nav-label {
    opacity: 1;
    visibility: visible;
    max-width: 120px;
  }
  
  .nav-icon {
    margin-right: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   📍 NAV VISIBILITY STATES (via data attributes)
   ════════════════════════════════════════════════════════════════════════════ */

/* Scrolling down - slide nav down (hide) */
.sticky-nav[data-scroll="down"] {
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
  pointer-events: none;
}

/* Scrolling up - slide nav up (show) */
.sticky-nav[data-scroll="up"] {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ════════════════════════════════════════════════════════════════════════════
   🔗 NAV ITEMS - Horizontal layout
   ════════════════════════════════════════════════════════════════════════════ */
.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  margin: 0 var(--space-xs);
  
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  
  cursor: pointer;
  position: relative;
  overflow: hidden;
  
  transition: all var(--duration-fast) var(--ease-in-out);
  text-decoration: none;
  white-space: nowrap;
  
  &:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
    animation: quantumWave 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  }
  
  &.active {
    color: var(--color-brand-primary);
    background: rgba(79, 70, 229, 0.1);
    border-bottom: 3px solid var(--color-brand-primary);
    padding-bottom: calc(var(--space-sm) - 3px);
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   🎨 NAV ICON
   ════════════════════════════════════════════════════════════════════════════ */
.nav-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  
  transition: all var(--duration-fast) var(--ease-smooth);
  
  /* Icon stays same size, label appears on hover */
  margin-right: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   📝 NAV LABEL (Hidden by default, visible on hover)
   ════════════════════════════════════════════════════════════════════════════ */
.nav-label {
  white-space: nowrap;
  font-size: var(--text-sm);
  
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  
  transition: all var(--duration-normal) var(--ease-smooth);
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════════════════
   🎮 NAV SECTION DIVIDER - Vertical for horizontal layout
   ════════════════════════════════════════════════════════════════════════════ */
.nav-divider {
  width: 1px;
  height: 32px;
  background: var(--glass-border);
  margin: 0 var(--space-sm);
  opacity: 0;
  
  transition: opacity var(--duration-normal);
}

.sticky-nav:hover .nav-divider {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   🔌 BATTERY/WALLET ICON INDICATOR
   ════════════════════════════════════════════════════════════════════════════ */
.battery-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-bg-overlay);
  border: 1px solid var(--glass-border);
  
  font-size: 1.25rem;
  
  transition: all var(--duration-fast) var(--ease-smooth);
  
  &.connected {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-accent-success);
    color: var(--color-accent-success);
    
    &::after {
      content: '';
      position: absolute;
      width: 8px;
      height: 8px;
      background: var(--color-accent-success);
      border-radius: 50%;
      bottom: 2px;
      right: 2px;
      animation: pulse 2s ease-in-out infinite;
    }
  }
  
  &.disconnected {
    background: var(--color-bg-overlay);
    border-color: var(--glass-border);
    color: var(--color-text-tertiary);
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   🌐 DEEP LINKS SUBMENU - Above the nav bar
   ════════════════════════════════════════════════════════════════════════════ */
.nav-submenu {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 100%;
  transform: translateX(-50%);
  
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  
  min-width: 180px;
  max-width: 280px;
  padding: var(--space-sm);
  margin: 0 0 var(--space-sm) 0;
  
  list-style: none;
  
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  
  transition: all var(--duration-normal) var(--ease-smooth);
  
  z-index: var(--z-popover);
}

.nav-item:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu .nav-item {
  padding: var(--space-sm) var(--space-md);
  margin: 0;
  font-size: var(--text-xs);
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
}

/* ════════════════════════════════════════════════════════════════════════════
   📱 MOBILE/TABLET RESPONSIVE - Full width at bottom
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sticky-nav {
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateX(0);
    width: 100%;
    max-width: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    border: 1px solid var(--glass-border);
    border-bottom: none;
    margin: 0;
    
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .sticky-nav:hover {
    max-width: 100%;
  }
  
  .nav-label {
    display: none;
  }
  
  .nav-item {
    gap: 0;
  }
  
  .sticky-nav[data-scroll="down"] {
    transform: translateY(100%);
  }
  
  .sticky-nav[data-scroll="up"] {
    transform: translateY(0);
  }
  
  .nav-divider {
    display: none;
  }
  
  .nav-submenu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 100%;
    top: auto;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    max-height: 50vh;
    overflow-y: auto;
    transform: translateX(0) translateY(10px);
  }
  
  .nav-item:hover .nav-submenu {
    transform: translateX(0) translateY(0);
  }
  
  .nav-submenu .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   ⌨️ KEYBOARD NAVIGATION
   ════════════════════════════════════════════════════════════════════════════ */
.nav-item:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY
   ════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .sticky-nav,
  .nav-item,
  .nav-label,
  .nav-submenu {
    transition: none;
    animation: none;
  }
}

/**
 * ⚛️ Quantum Computational Animations
 * Futuristic, smooth, performant
 * 
 * Inspired by:
 * - Quantum superposition (multiple states)
 * - Wave function collapse (transition effects)  
 * - Entanglement (synchronized animations)
 * - Phase coherence (smooth, flowing motion)
 */

/* ════════════════════════════════════════════════════════════════════════════
   💫 QUANTUM PULSE (Superposition animation)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumPulse {
  0% {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: brightness(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02) translateZ(0);
    filter: brightness(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: brightness(1);
  }
}

.pulse-quantum {
  animation: quantumPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   🌀 QUANTUM WAVE (Phase transition animation)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumWave {
  0% {
    transform: translateX(0) translateZ(0);
    opacity: 1;
  }
  50% {
    transform: translateX(8px) translateZ(0);
    opacity: 0.92;
  }
  100% {
    transform: translateX(0) translateZ(0);
    opacity: 1;
  }
}

.wave-quantum {
  animation: quantumWave 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   ✨ QUANTUM GLOW (Entanglement effect - coherent light)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(79, 70, 229, 0);
  }
}

.glow-quantum {
  animation: quantumGlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   🔄 QUANTUM ROTATE (Spin state superposition)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumRotate {
  0% {
    transform: rotate(0deg) translateZ(0);
    opacity: 1;
  }
  25% {
    opacity: 0.95;
  }
  50% {
    transform: rotate(180deg) translateZ(0);
    opacity: 0.9;
  }
  75% {
    opacity: 0.95;
  }
  100% {
    transform: rotate(360deg) translateZ(0);
    opacity: 1;
  }
}

.rotate-quantum {
  animation: quantumRotate 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   💎 QUANTUM SHIMMER (Light interference pattern)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumShimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer-quantum {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 200px 100%;
  animation: quantumShimmer 3s infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   🎯 QUANTUM FOCUS (Schrödinger's button - collapse animation)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5);
  }
  50% {
    box-shadow: 0 0 40px 20px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

button:focus-visible,
a:focus-visible {
  animation: quantumFocus 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ════════════════════════════════════════════════════════════════════════════
   🌌 QUANTUM DRIFT (Smooth positional uncertainty)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumDrift {
  0%, 100% {
    transform: translateY(0) translateX(0) translateZ(0);
  }
  25% {
    transform: translateY(-4px) translateX(2px) translateZ(0);
  }
  50% {
    transform: translateY(0) translateX(4px) translateZ(0);
  }
  75% {
    transform: translateY(4px) translateX(0) translateZ(0);
  }
}

.drift-quantum {
  animation: quantumDrift 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   ⚡ QUANTUM ENERGY (Pulsing energy field)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumEnergy {
  0%, 100% {
    opacity: 0.6;
    filter: brightness(1) blur(0px);
  }
  50% {
    opacity: 1;
    filter: brightness(1.15) blur(0.5px);
  }
}

.energy-quantum {
  animation: quantumEnergy 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   🔀 QUANTUM PHASE SHIFT (Color/opacity cascade)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumPhaseShift {
  0% {
    opacity: 1;
    filter: hue-rotate(0deg) saturate(100%);
  }
  25% {
    opacity: 0.96;
    filter: hue-rotate(4deg) saturate(105%);
  }
  50% {
    opacity: 0.92;
    filter: hue-rotate(0deg) saturate(100%);
  }
  75% {
    opacity: 0.96;
    filter: hue-rotate(-4deg) saturate(95%);
  }
  100% {
    opacity: 1;
    filter: hue-rotate(0deg) saturate(100%);
  }
}

.phase-shift-quantum {
  animation: quantumPhaseShift 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   📡 QUANTUM FIELD (Expansion ripple effect)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumField {
  0% {
    transform: scale(1) translateZ(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.05) translateZ(0);
    opacity: 0.85;
  }
  100% {
    transform: scale(1) translateZ(0);
    opacity: 1;
  }
}

.field-quantum {
  animation: quantumField 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   🌀 QUANTUM DOUBLE SLIT (Split-screen transition)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumDoubleSlit {
  0% {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    opacity: 1;
  }
  50% {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    opacity: 0.8;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

.double-slit-quantum {
  animation: quantumDoubleSlit 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   💫 QUANTUM COHERENCE (Synchronized entrances)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumCoherence {
  0% {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.coherence-quantum {
  animation: quantumCoherence 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) ease-out 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   🎨 GRADIENT QUANTUM ANIMATION (Flowing gradients)
   ════════════════════════════════════════════════════════════════════════════ */
@keyframes quantumGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-quantum {
  background-size: 200% 200%;
  animation: quantumGradientFlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ════════════════════════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY - Respect prefers-reduced-motion
   ════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .pulse-quantum,
  .wave-quantum,
  .glow-quantum,
  .rotate-quantum,
  .shimmer-quantum,
  .drift-quantum,
  .energy-quantum,
  .phase-shift-quantum,
  .field-quantum,
  .double-slit-quantum,
  .coherence-quantum,
  .gradient-quantum {
    animation: none;
  }
  
  button:focus-visible,
  a:focus-visible {
    animation: none;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   🖥️ HARDWARE ACCELERATION (Use transforms and opacity only)
   ════════════════════════════════════════════════════════════════════════════ */
.quantum-acceleration {
  will-change: transform, opacity;
  transform: translateZ(0) translateY(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .nav-item,
  .card {
    &.quantum-acceleration {
      will-change: auto;
    }
  }
}

/**
 * Modern UI Components Styles
 * Crypto Wallet-Style Design System
 */

/* ===== TABS COMPONENT ===== */
.tabs-container {
  width: 100%;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(29, 78, 216, 0.08);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding: 0 0rem;
  scroll-behavior: smooth;
}

.tabs::-webkit-scrollbar {
  height: 4px;
}

.tabs::-webkit-scrollbar-track {
  background: rgba(0, 82, 255, 0.05);
  border-radius: 2px;
}

.tabs::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 2px;
}

.tab-button {
  position: relative;
  padding: 1.25rem 1.75rem;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tab-button:hover {
  color: var(--color-brand-light);
}

.tab-button.active {
  color: var(--color-brand-light);
}

.tab-icon {
  font-size: 1.25rem;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-blue);
}

/* Command Panel helpers (migrated from inline styles) */
.cmd-container { max-width: 1200px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.cmd-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; padding-bottom:15px; border-bottom:2px solid #e5e7eb; }
.cmd-status { display:flex; align-items:center; gap:8px; font-size:14px; color:#6b7280; }
.status-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.status-dot.connected { background-color: #10b981; }
.status-dot.disconnected { background-color: #ef4444; }
.cmd-tabs { display:flex; border-bottom:1px solid #e5e7eb; margin-bottom:20px; }
.cmd-tab { padding:12px 24px; border:none; background:none; cursor:pointer; font-size:14px; font-weight:500; color:#6b7280; border-bottom:2px solid transparent; }
.cmd-tab.active { color:#3b82f6; border-bottom-color:#3b82f6; }
.commands-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.input-section { display:flex; flex-direction:column; gap:20px; }
.quick-button-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.quick-button { padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; background:#f9fafb; cursor:pointer; font-size:12px; transition:all 0.2s; }
.command-input { display:flex; gap:8px; }
.command-input .input { flex:1; padding:12px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; }
.send-button { padding:12px 24px; background-color:#3b82f6; color:white; border:none; border-radius:6px; cursor:pointer; font-size:14px; font-weight:500; }
.command-help .section-title { font-size:16px; font-weight:600; margin-bottom:12px; color:#111827; }
.help-grid { display:flex; flex-direction:column; gap:4px; font-size:12px; color:#6b7280; }
.history-list { max-height:400px; overflow-y:auto; display:flex; flex-direction:column; gap:12px; }
.history-item { padding:12px; border:1px solid #e5e7eb; border-radius:6px; background-color:#f9fafb; }
.history-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.command-text { font-size:12px; background-color:#e5e7eb; padding:2px 6px; border-radius:3px; }
.timestamp { font-size:11px; color:#6b7280; }
.history-result { font-size:12px; margin-bottom:6px; }
.transaction-hash { font-size:11px; }
.hash-link { color:#3b82f6; text-decoration:none; }
.log-item { padding:12px; border:1px solid #e5e7eb; border-radius:6px; }
.log-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.status-badge { padding:2px 8px; border-radius:12px; font-size:11px; color:white; font-weight:500; }
.log-details { display:flex; gap:16px; font-size:12px; color:#6b7280; }
.time-button { padding:6px 12px; border:1px solid #d1d5db; border-radius:4px; background:#f9fafb; cursor:pointer; font-size:12px; }
.stat-card { padding:16px; border:1px solid #e5e7eb; border-radius:8px; text-align:center; }
.stat-title { font-size:12px; color:#6b7280; margin-bottom:8px; }
.stat-value { font-size:24px; font-weight:700; color:#111827; }
.cmd-message { text-align:center; padding:40px; color:#6b7280; }

/* Loading spinner helpers */
.loading-spinner {
  display:inline-block;
  border: 4px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-spinner .spinner-inner { display:block; width:100%; height:100%; }
.w-4 { width: 1rem; height: 1rem; }
.w-8 { width: 2rem; height: 2rem; }
.w-12 { width: 3rem; height: 3rem; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Additional helpers referenced by CommandPanel */
.logs-list { display:flex; flex-direction:column; gap:12px; }
.analytics-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.time-range-buttons { display:flex; gap:8px; }
.analytics-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }

.tab-content {
  display: none;
  opacity: 0;
  animation: fadeIn 200ms ease-in-out forwards;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* ===== WALLET CONNECTION COMPONENT ===== */
.wallet-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.wallet-connected-card {
  animation: slideIn 300ms ease-out;
}

.wallet-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-dark-border);
}

.wallet-header h3 {
  color: var(--color-accent-success);
  margin: 0;
}

.wallet-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-item label {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.address-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--color-dark-border);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
}

.address-display code {
  flex: 1;
  color: var(--color-brand-light);
  font-size: 0.95rem;
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  border: 1px solid var(--color-accent-success);
  border-radius: 0.5rem;
  color: var(--color-accent-success);
  font-weight: 600;
  width: fit-content;
}

.network-indicator {
  font-size: 1.25rem;
  animation: pulse 2s infinite;
}

.balance-display {
  padding: 0.75rem 1rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid var(--color-brand-secondary);
  border-radius: 0.5rem;
  color: var(--color-brand-secondary);
  font-weight: 700;
  font-size: 1.125rem;
}

.wallet-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-dark-border);
}

/* Connect Wallet Container */
.wallet-connect-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.connect-header {
  margin-bottom: 2rem;
  text-align: center;
}

.connect-header h2 {
  margin-bottom: 0.5rem;
  font-size: 1.875rem;
}

.connect-header p {
  color: var(--color-text-secondary);
  margin: 0;
}

.error-banner {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid var(--color-accent-critical);
  border-radius: 0.5rem;
  color: var(--color-accent-critical);
  font-weight: 500;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.wallet-option {
  position: relative;
  padding: 1.5rem 1rem;
  background: var(--color-bg-surface);
  border: 2px solid var(--color-dark-border);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.wallet-option:hover:not(:disabled) {
  border-color: var(--color-brand-primary);
  box-shadow: var(--glow-blue, 0 0 20px rgba(0, 82, 255, 0.5));
  background: rgba(29, 78, 216, 0.06);
  transform: translateY(-4px);
}

.wallet-option:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.wallet-icon {
  font-size: 2.5rem;
}

.wallet-name {
  font-weight: 700;
  color: var(--color-text-primary);
}

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

.wallet-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 1rem;
}

.info-box {
  padding: 1rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--color-dark-border);
  border-radius: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.info-box p {
  margin: 0;
}

.info-box strong {
  color: var(--color-brand-light);
}

/* ===== TIP SENDER COMPONENT ===== */
.tip-sender-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.quick-tip-section,
.custom-tip-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-dark-border);
}

.section-header h3 {
  margin: 0;
}

/* Currency Selector */
.currency-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.currency-selector label {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}

.currency-btn {
  padding: 0.75rem;
  background: var(--color-bg-surface);
  border: 2px solid var(--color-dark-border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
}

.currency-btn:hover {
  border-color: var(--color-brand-light);
  background: rgba(29, 78, 216, 0.06);
}

.currency-btn.active {
  border-color: var(--color-brand-primary);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(59, 130, 246, 0.06));
  box-shadow: var(--glow-blue);
  color: var(--color-brand-light);
}

.currency-icon {
  font-size: 1.5rem;
}

.currency-name {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Input Groups */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-label {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.input-error-text {
  font-size: 0.75rem;
  color: var(--color-accent-critical);
}

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

.input-error {
  border-color: var(--color-accent-critical) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Recipient Input */
.recipient-input {
  margin: 1rem 0;
}

/* Quick Amounts */
.quick-amounts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-amounts label {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.amounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.amount-btn {
  padding: 1rem;
  background: var(--color-bg-surface);
  border: 2px solid rgba(124, 58, 237, 0.1);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
}

.amount-btn:hover:not(:disabled) {
  border-color: var(--color-brand-secondary);
  background: rgba(124, 58, 237, 0.06);
  transform: translateY(-2px);
}

.amount-btn.active {
  border-color: var(--color-brand-primary);
  background: var(--gradient-primary);
  box-shadow: var(--glow-purple);
  color: white;
}

.amount-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.amount-icon {
  font-size: 1.75rem;
}

.amount-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Amount Input */
.amount-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.amount-input {
  flex: 1;
  padding: 0.75rem 1rem !important;
  padding-right: 3rem !important;
}

.currency-suffix {
  position: absolute;
  right: 1rem;
  color: var(--color-text-tertiary);
  font-weight: 600;
}

/* Balance Info */
.balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--color-dark-border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.balance-info span {
  color: var(--color-text-secondary);
}

.balance-info strong {
  color: var(--color-brand-light);
}

/* Processing Indicator */
.processing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--color-dark-border);
  border-radius: 0.5rem;
  color: var(--color-brand-light);
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--color-brand-light);
}

.empty-state p {
  color: var(--color-text-tertiary);
}

/* Manage Wallet */
.wallet-manage {
  animation: fadeIn 200ms ease-out;
}

.manage-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.manage-item {
  padding: 0.75rem 1rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--color-dark-border);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.manage-item strong {
  color: var(--color-brand-light);
  margin-right: 1rem;
}

.manage-item code {
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .tab-button {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .wallet-grid {
    grid-template-columns: 1fr;
  }

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

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

  .manage-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============================================================================
   IMPORT UNIFIED DESIGN SYSTEM
   ============================================================================ */

/* ============================================================================
   TOAST SYSTEM STYLES
   Professional Enterprise Notifications
   ============================================================================ */

.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-notification);
  pointer-events: none;
  max-width: 400px;
  font-family: var(--font-body);
}

.toast {
  pointer-events: auto;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid;
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-xl);
}

/* Success Toast */
.toast-success {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.08) 0%, 
    rgba(5, 150, 105, 0.05) 100%);
  border-color: var(--color-accent-success);
  color: var(--color-text-success);
}

.toast-success .toast-icon {
  color: var(--color-accent-success);
}

/* Error Toast */
.toast-error {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.08) 0%, 
    rgba(220, 38, 38, 0.05) 100%);
  border-color: var(--color-accent-critical);
  color: var(--color-text-error);
}

.toast-error .toast-icon {
  color: var(--color-accent-critical);
}

/* Warning Toast */
.toast-warning {
  background: linear-gradient(135deg, 
    rgba(245, 158, 11, 0.08) 0%, 
    rgba(217, 119, 6, 0.05) 100%);
  border-color: var(--color-accent-warning);
  color: var(--color-text-warning);
}

.toast-warning .toast-icon {
  color: var(--color-accent-warning);
}

/* Info Toast */
.toast-info {
  background: linear-gradient(135deg, 
    rgba(14, 165, 233, 0.08) 0%, 
    rgba(14, 165, 233, 0.04) 100%);
  border-color: var(--color-accent-info);
  color: var(--color-text-info);
}

.toast-info .toast-icon {
  color: var(--color-accent-info);
}

.toast-content {
  padding: 16px;
  position: relative;
}

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

.toast-icon {
  font-size: 18px;
  font-weight: bold;
  min-width: 20px;
  animation: iconGlow 2s ease-in-out infinite alternate;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  flex: 1;
}

.toast-message {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
  margin-left: 32px;
  margin-top: 4px;
}

.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: all 0.2s ease;
  border-radius: 4px;
  line-height: 1;
}

.toast-close:hover {
  opacity: 1;
  background: var(--color-bg-hover);
  transform: scale(1.1);
}

.toast-action {
  margin-top: 12px;
  margin-left: 32px;
}

.toast-action .btn {
  background: var(--color-bg-hover);
  border: 1px solid var(--color-dark-border);
  color: inherit;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.toast-action .btn:hover {
  background: var(--color-bg-selected);
  border-color: var(--color-brand-primary);
  transform: translateY(-1px);
}

/* Animations */
@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes iconGlow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.3);
  }
}

/* Exit animation */
.toast-exit {
  animation: toastSlideOut 0.3s ease-in-out forwards;
}

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

/* Mobile responsive */
@media (max-width: 480px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .toast {
    margin-bottom: 8px;
  }
  
  .toast-content {
    padding: 12px;
  }
  
  .toast-title {
    font-size: 13px;
  }
  
  .toast-message {
    font-size: 12px;
    margin-left: 28px;
  }
  
  .toast-action {
    margin-left: 28px;
    margin-top: 8px;
  }
}

/* Progress bar for timed toasts */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
  animation: progressBar linear;
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/**
 * Mobile OS Dashboard Styles - Modern Crypto Wallet Interface
 */

/* ===== MOBILE DASHBOARD CONTAINER ===== */
.mobile-dashboard {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gradient-void);
  color: var(--color-text-primary);
  overflow: hidden;
  font-family: var(--font-body);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ===== STATUS BAR (iOS/Android style) ===== */
.status-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: 44px;
  padding: 0 var(--spacing-md);
  padding-top: env(safe-area-inset-top, 0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--color-dark-border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.status-time {
  letter-spacing: 0.02em;
}

.status-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.status-icon {
  font-size: 0.75rem;
}

.status-icon.interactive {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s, opacity 0.2s;
}

.status-icon.interactive:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.status-icon.interactive:active {
  transform: scale(0.95);
}

/* ===== MAIN CONTENT AREA ===== */
.dashboard-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.page-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.indicator-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.15);
}

.content-wrapper {
  flex: 1;
  padding: 0 1rem;
  animation: fadeSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: var(--color-bg-surface);
  backdrop-filter: blur(40px) saturate(180%);
  border-top: 0.5px solid var(--color-dark-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: var(--shadow-md);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand-primary), var(--color-brand-secondary));
  border-radius: 0 0 3px 3px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active::before {
  width: 60%;
}

.nav-item:active {
  transform: scale(0.95);
}

.nav-item.active {
  color: var(--color-text-primary);
}

.nav-icon {
  font-size: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(100%);
}

.nav-item.active .nav-icon {
  filter: grayscale(0%) drop-shadow(0 2px 8px rgba(29, 78, 216, 0.2));
  transform: scale(1.1);
}

.nav-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===== DASHBOARD CARDS (Crypto Wallet Style) ===== */
.wallet-card {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.06), rgba(124, 58, 237, 0.06));
  border: 1px solid var(--color-dark-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wallet-card:hover {
  animation: quantumPulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform: translateY(-2px);
}

.wallet-card:active {
  transform: scale(0.98);
}

.wallet-balance {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wallet-label {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ===== APP GRID (iOS Home Screen Style) ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-icon:active {
  transform: scale(0.9);
}

.app-icon-image {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-dark-border);
}

.app-icon-label {
  font-size: 0.75rem;
  color: var(--color-text-primary);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar {
  display: none;
}

.quick-action-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(145, 70, 255, 0.08));
  border: 1px solid var(--color-dark-border);
  border-radius: 16px;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.quick-action-btn:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.15), rgba(145, 70, 255, 0.15));
}

/* ===== RESPONSIVE DESKTOP VIEW ===== */
@media (min-width: 768px) {
  .mobile-dashboard {
    max-width: none;
    width: 100%;
    margin: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .app-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .content-wrapper {
    padding: 0 2rem;
  }
}

/* ===== LEGACY STYLES (keeping for compatibility) ===== */
.modern-dashboard {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-darkest);
  color: var(--color-text-primary);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-dark-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.user-name {
  color: var(--color-text-primary);
  font-weight: 600;
}

.wallet-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  border-radius: 9999px;
  color: var(--color-success);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== MAIN CONTENT ===== */
.dashboard-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  height: 100%;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-sidebar .card {
  position: sticky;
  top: 120px;
}

.dashboard-sidebar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

.stat-card {
  padding: 0.75rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--color-dark-border);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-card label {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-unit {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.dashboard-content {
  grid-column: 2;
}

/* ===== TABS CONTENT SECTIONS ===== */
.history-section,
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.history-section h3,
.profile-section h3 {
  margin-top: 0;
}

/* Tips List */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 500px;
  overflow-y: auto;
}

.tips-list::-webkit-scrollbar {
  width: 8px;
}

.tips-list::-webkit-scrollbar-track {
  background: rgba(0, 82, 255, 0.05);
  border-radius: 4px;
}

.tips-list::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

.tips-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #a855f7, #d8b4fe);
}

.tip-item {
  padding: 1rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--color-dark-border);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 200ms ease-in-out;
}

.tip-item:hover {
  border-color: rgba(29, 78, 216, 0.2);
  background: rgba(29, 78, 216, 0.08);
}

.tip-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tip-amount {
  font-weight: 700;
  color: var(--color-brand-light);
  font-size: 1.125rem;
}

.tip-recipient {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
}

.tip-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* Profile Section */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-item label {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.profile-value {
  padding: 0.75rem 1rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--color-dark-border);
  border-radius: 0.5rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

.profile-value code {
  font-family: var(--font-mono);
  color: var(--color-brand-light);
  word-break: break-all;
}

/* ===== FOOTER ===== */
.dashboard-footer {
  border-top: 1px solid var(--color-dark-border);
  padding: 2rem;
  text-align: center;
  background: var(--color-bg-surface);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: auto;
}

.dashboard-footer p {
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dashboard-content {
    grid-column: 1;
  }

  .dashboard-sidebar .card {
    position: static;
  }

  .dashboard-main {
    padding: 1.5rem;
  }

  .header-content {
    padding: 0;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

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

@media (max-width: 768px) {
  .dashboard-main {
    padding: 1rem 0.75rem;
  }

  .dashboard-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

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

  .dashboard-sidebar .card {
    padding: 0.75rem;
  }

  .header-content {
    padding: 0;
  }

  .brand-name {
    font-size: 1rem;
    line-height: 1.2;
  }

  .header-info {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .user-info {
    align-items: flex-start;
    width: 100%;
  }

  .dashboard-header {
    padding: 0.75rem 1rem;
  }

  .dashboard-footer {
    padding: 1.25rem;
  }
  
  /* Mobile tabs */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tabs::-webkit-scrollbar {
    height: 3px;
  }
  
  .tab-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .dashboard-sidebar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .dashboard-main {
    padding: 0.5rem;
  }

  .dashboard-footer {
    font-size: 0.7rem;
    padding: 0.75rem;
  }

  .tab-button {
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
  }

  .stat-card {
    padding: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .stat-value {
    font-size: 0.875rem;
  }

  .tabs {
    padding: 0;
  }
  
  .dashboard-header {
    padding: 0.5rem 0.75rem;
  }
  
  .brand-name {
    font-size: 0.875rem;
  }
  
  .header-brand {
    gap: 0.5rem;
  }
  
  /* Compact cards for mini-app */
  .card {
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  /* Better touch targets */
  button, .btn {
    min-height: 44px;
    padding: 0.625rem 1rem;
  }
}

/* Utility Classes */
.mt-4 {
  margin-top: 1.5rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.gap-4 {
  gap: 1.5rem;
}

/* Small utility spacing classes (used for refactoring inline styles) */
.mr-8 { margin-right: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.logo-lg { height: 90px; width: auto; max-width: 150px; }

/* ===== LEGACY DASHBOARD COMPONENT ===== */
.dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--color-bg-darkest);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--color-bg-darker);
  border-bottom: 1px solid var(--color-dark-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-primary);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.user-status {
  font-size: 0.75rem;
  line-height: 1.2;
}

.status-connected {
  color: var(--color-accent-success);
}

.status-disconnected {
  color: var(--color-accent-warning);
}

.dashboard-nav {
  display: flex;
  background: var(--color-bg-base);
  border-bottom: 1px solid var(--color-dark-border);
  overflow-x: auto;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-btn:hover {
  color: var(--color-text-primary);
  background: rgba(145, 70, 255, 0.1);
}

.nav-btn.active {
  color: var(--color-brand-primary);
  border-bottom-color: var(--color-brand-primary);
  background: rgba(145, 70, 255, 0.1);
}

.nav-icon {
  font-size: 1rem;
}

.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

@media (max-width: 768px) {
  .dashboard-header {
    padding: 0.75rem;
  }
  
  .header-left {
    gap: 0.75rem;
  }
  
  .logo h1 {
    font-size: 1.25rem;
  }
  
  .user-info {
    gap: 0.5rem;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
  }
  
  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .dashboard-content {
    padding: 0.75rem;
  }
}

/* Mobile-first styles extracted from index/landing templates */

/* ===== MOBILE OS CONTAINER ===== */
.mobile-app {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg-darkest);
  overflow-x: hidden;
}

/* ===== STATUS BAR (iOS/Android Style) ===== */
.status-bar {
  height: 44px;
  padding: 0 var(--space-md);
  padding-top: env(safe-area-inset-top, 0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-surface);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--color-dark-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  z-index: 200;
}

.status-time { 
  letter-spacing: 0.02em; 
  font-variant-numeric: tabular-nums;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.status-right {
  justify-content: flex-end;
}

.status-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--color-dark-border);
}

.status-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-dark-border);
  background: var(--color-bg-darker);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.125rem;
}

.status-icon-button:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-dark-border);
}

.status-icon-button:active {
  transform: scale(0.92);
}

/* Main Content */
.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
}

/* Header Section / Hero */
.header-section,
.hero-section {
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-dark-border);
}

.app-logo,
.app-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.app-logo-image {
  height: 45px;
  width: auto;
  max-width: 150px;
}

.app-tagline,
.app-subtitle { font-size: 0.85rem; color: var(--color-text-secondary); }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem 1rem;
}

.feature-item,
.feature-card {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.04), rgba(124, 58, 237, 0.04));
  border: 1px solid var(--color-dark-border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
  transform: translateZ(0);
  transform-style: preserve-3d;
  backdrop-filter: blur(12px);
}

.feature-item:active,
.feature-card:active { transform: scale(0.95); }
.feature-item:hover,
.feature-card:hover { background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(124, 58, 237, 0.08)); }
.feature-icon { font-size: 2rem; }
.feature-name { font-size: 0.85rem; font-weight: 700; color: var(--color-text-primary); }
@media (max-width: 640px) {
  .features-grid.swipe-row::-webkit-scrollbar {
    display: none;
  }
  .features-grid.swipe-row {
    scrollbar-width: none;
  }
}

/* Info sections */
.info-sections,
.info-section { padding: 0 1rem 2rem; }
.info-card {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.04), rgba(124, 58, 237, 0.04));
  border: 1px solid var(--color-dark-border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}
.info-card h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--color-text-primary); }
.info-card p { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.5; }

/* Generic mini-app layout */
.page-header {
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-dark-border);
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-subtitle {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.page-section {
  padding: 1rem;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.card {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.04), rgba(124, 58, 237, 0.04));
  border: 1px solid var(--color-dark-border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.card + .card {
  margin-top: 0.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .card-grid.swipe-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .card-grid.swipe-row > .card {
    min-width: 160px;
    scroll-snap-align: start;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--color-dark-border);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.button-primary {
  background: var(--gradient-primary);
  color: var(--color-text-primary);
  box-shadow: 0 16px 24px rgba(79, 70, 229, 0.25);
}

.button-primary:hover {
  animation: quantumWave 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.button-secondary {
  background: var(--color-bg-darker);
  color: var(--color-text-primary);
  border: 1px solid var(--color-dark-border);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.chip {
  padding: 0.6rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-dark-border);
  background: var(--color-bg-darker);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.chip.active {
  background: rgba(29, 78, 216, 0.12);
  border-color: var(--color-brand-primary);
}

.feed-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.feed-line {
  color: var(--color-text-secondary);
}

.feed-line strong {
  color: var(--color-text-primary);
}

.pixel-art {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  border: 2px solid var(--color-dark-border);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(124, 58, 237, 0.08));
  margin: 0 auto 0.75rem;
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.12);
  border: 1px solid var(--color-brand-primary);
  font-weight: 700;
}

.spacer-sm {
  height: 0.75rem;
}

.mt-md {
  margin-top: 1rem;
}

.cta-link { display: inline-block; margin-top: 0.75rem; padding: 0.5rem 1rem; background: var(--gradient-primary); color: var(--color-text-primary); border-radius: 8px; font-size: 0.8rem; font-weight:600; text-decoration:none; }
.cta-link:hover { animation: quantumWave 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite; }
.cta-link:active{ transform: scale(0.95); }

/* Bottom Navigation */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-around; align-items: stretch;
  background: var(--color-bg-surface); backdrop-filter: blur(40px);
  border-top: 0.5px solid var(--color-dark-border); padding-bottom: env(safe-area-inset-bottom,0);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}
.nav-item { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.25rem; padding:0.75rem 0.5rem; border:none; background:transparent; color:var(--color-text-muted); cursor:pointer; text-decoration:none; min-height:64px; -webkit-tap-highlight-color:transparent; transition: all 0.3s ease; }
.nav-item.active { color:var(--color-text-primary); }
.nav-icon { font-size:1.5rem; transition: transform 0.3s, font-size 0.3s; }
.nav-item.active .nav-icon { transform: scale(1.1); filter: drop-shadow(0 2px 8px rgba(29, 78, 216, 0.2)); }
.nav-label { font-size:0.625rem; font-weight:600; letter-spacing:0.02em; text-transform:uppercase; transition: opacity 0.3s ease, height 0.3s ease; }

/* Scrolled state - hide labels except active */
.bottom-nav.scrolled .nav-item:not(.active) .nav-label {
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.bottom-nav.scrolled .nav-item:not(.active) {
  padding: 0.6rem 0.5rem;
  min-height: 56px;
}
.bottom-nav.scrolled .nav-item.active .nav-icon {
  font-size: 1.75rem;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.3s ease;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.2);
}

.scroll-to-top:active {
  transform: scale(0.95);
}

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

/* Notifications */
.notifications-container {
  padding-bottom: 2rem;
}

.notifications-header {
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1rem;
}

.notification-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.notification-card:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-dark-border);
  transform: translateY(-2px);
}

.notification-card:active {
  transform: scale(0.98);
}

.notification-card.unread {
  background: rgba(29, 78, 216, 0.06);
  border-color: rgba(29, 78, 216, 0.1);
}

.notification-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-primary);
}

.notification-message {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.notification-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: 500;
}

.notification-link:hover {
  color: #0066ff;
  text-decoration: underline;
}

.notification-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.notification-badge {
  width: 8px;
  height: 8px;
  background: var(--color-brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(29, 78, 216, 0.2);
}

.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-inline img {
  height: 1em;
  width: auto;
}

/* Responsive */
@media (max-width: 640px) {
  .features-grid.swipe-row {
    display: flex;
    overflow-x: auto;
    padding: 1rem 1rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .features-grid.swipe-row .feature-item {
    min-width: 140px;
    scroll-snap-align: start;
  }
}

@media (min-width: 768px) {
  .mobile-app { max-width: none; width: 100%; margin: 0; border-left: none; border-right: none; box-shadow: none; }
  .features-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 480px) {
  .app-logo, .app-title { font-size:2rem; }
  .features-grid { gap:0.75rem; padding:1rem; }
  .feature-item, .feature-card { padding:1rem; }
  .feature-icon { font-size:2rem; }
}

@media (max-width: 420px) {
  .nav-label { display: none; }
  .nav-item { min-height: 56px; padding: 0.65rem 0.5rem; }
}

/* ============================================================================
   IMPORT UNIFIED DESIGN SYSTEM
   ============================================================================ */

/* ============================================================================
   PANEL-SPECIFIC OVERRIDES
   ============================================================================ */
body {
  font-family: var(--font-body);
  background: var(--color-dark-darker);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

/* App container */
.app {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Loading states */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--color-dark-darker);
}

.loading-container p {
  margin-top: var(--spacing-md);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

/* Common button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  min-height: 44px;
  gap: var(--spacing-xs);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-text-primary);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #8441e8 0%, #6b26d1 100%);
  transform: translateY(-1px);
  box-shadow: var(--glow-purple);
}

.btn-secondary {
  background: var(--color-dark-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-dark-overlay);
}

.btn-secondary:hover:not(:disabled) {
  background: #383848;
  border-color: #505060;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4757 0%, #e84393 100%);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff3838 0%, #d63384 100%);
}

.btn-success {
  background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #26c165 0%, #1c7fd4 100%);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 52px;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #ffffff;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1a1a2e;
  border: 1px solid #2d2d3d;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
  color: #666;
}

.form-error {
  color: #ff4757;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Card styles */
.card {
  background: #16213e;
  border: 1px solid #2d2d3d;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2d2d3d;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.card-body {
  flex: 1;
}

/* Grid system */
.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* Color utilities */
.text-white {
  color: #ffffff;
}

.text-gray {
  color: #a0a0a0;
}

.text-success {
  color: #2ed573;
}

.text-danger {
  color: #ff4757;
}

.text-warning {
  color: #ffa502;
}

.text-primary {
  color: #7c3aed;
}

/* Spacing utilities */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #16213e;
  border: 1px solid #2d2d3d;
  border-radius: 8px;
  padding: 1rem;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.toast-success {
  border-left: 4px solid #2ed573;
}

.toast-error {
  border-left: 4px solid #ff4757;
}

.toast-warning {
  border-left: 4px solid #ffa502;
}

.toast-info {
  border-left: 4px solid #3742fa;
}

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

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #16213e;
  border: 1px solid #2d2d3d;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: scaleIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #404050;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #505060;
}

/* Hide scrollbar for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #404050 #1a1a2e;
}

/* Dashboard Styles */
.dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0e0e23;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #16213e;
  border-bottom: 1px solid #2d2d3d;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #7c3aed;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.user-status {
  font-size: 0.75rem;
  line-height: 1.2;
}

.status-connected {
  color: #2ed573;
}

.status-disconnected {
  color: #ffa502;
}

.dashboard-nav {
  display: flex;
  background: #1a1a2e;
  border-bottom: 1px solid #2d2d3d;
  overflow-x: auto;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-btn:hover {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.08);
}

.nav-btn.active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}

.nav-icon {
  font-size: 1rem;
}

.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* LoginScreen Styles */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0e0e23 0%, #1a1a2e 50%, #16213e 100%);
  padding: 1rem;
}

.login-container {
  background: rgba(22, 33, 62, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.login-header .logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.login-header .logo p {
  color: #a0a0a0;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.welcome-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.welcome-text p {
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.feature-icon {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.feature h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.feature p {
  font-size: 0.8rem;
  color: #a0a0a0;
  margin: 0;
}

.login-actions {
  margin-bottom: 2rem;
}

.login-actions .btn {
  width: 100%;
  margin-bottom: 1rem;
}

.twitch-notice {
  color: #ffa502;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.error-message {
  color: #ff4757;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: 6px;
}

.login-footer .disclaimer {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .login-container {
    padding: 1.5rem;
  }
  
  .login-header .logo h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    padding: 0.75rem;
  }
  
  .header-left {
    gap: 0.75rem;
  }
  
  .logo h1 {
    font-size: 1.25rem;
  }
  
  .user-info {
    gap: 0.5rem;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
  }
  
  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .dashboard-content {
    padding: 0.75rem;
  }
}

