@import url(https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Orbitron:wght@400;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Orbitron:wght@400;700&display=swap);
/**
 * 🎮 baseLINE Unified CSS Base
 * Matrix + Futurama + Unreal Engine + Retro Gamer
 * Single foundation for all styling - no duplication
 * ════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════
   🌐 FONT IMPORTS (Load Once)
   Load with display=swap for better performance
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 CSS VARIABLES (Design System as Root)
   All colors, sizes, and effects defined once here
   ═══════════════════════════════════════════════════════════ */
:root {
  /* 🎯 BRAND COLORS */
  --color-brand-primary: #0052ff;      /* baseLINE blue */
  --color-brand-accent: #d946ef;       /* Neon purple */
  --color-brand-secondary: #00ffff;    /* Cyan */

  /* 🌈 NEON PALETTE */
  --color-neon-cyan: #00ffff;
  --color-neon-magenta: #ff00ff;
  --color-neon-yellow: #ffff00;
  --color-neon-lime: #00ff00;
  --color-neon-orange: #ff6600;
  --color-neon-pink: #ff1493;
  --color-neon-red: #ff0055;
  --color-neon-green: #00ff88;

  /* 🌑 DARK PALETTE */
  --color-dark-void: #000000;
  --color-dark-darkest: #0a0a0a;
  --color-dark-darker: #121212;
  --color-dark-base: #1a1a1a;
  --color-dark-surface: #2a2a2a;
  --color-dark-overlay: #3a3a3a;

  /* 📝 TEXT COLORS */
  --color-text-primary: #ffffff;
  --color-text-secondary: #e0e0e0;
  --color-text-tertiary: #a0a0a0;
  --color-text-accent: #00ffff;
  --color-text-success: #00ff88;
  --color-text-warning: #ffff00;
  --color-text-error: #ff0055;

  /* 🔤 FONTS */
  --font-display: 'Press Start 2P', cursive;
  --font-mono: 'VT323', 'Courier New', monospace;
  --font-cyber: 'Orbitron', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', sans-serif;

  /* 📏 FONT SIZES (Mobile-First) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 2.5rem;

  /* 📐 SPACING SCALE */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;

  /* 🎨 GRADIENTS */
  --gradient-cyber: linear-gradient(135deg, #d946ef 0%, #0052ff 50%, #00ffff 100%);
  --gradient-neon: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
  --gradient-matrix: linear-gradient(180deg, #000000 0%, #001a00 50%, #003300 100%);
  --gradient-retro: linear-gradient(135deg, #ff6600 0%, #ff00ff 50%, #00ffff 100%);
  --gradient-void: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);

  /* ✨ SHADOW EFFECTS */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.5);
  --shadow-pixel: 4px 4px 0px rgba(0, 0, 0, 0.9);
  --shadow-pixel-lg: 6px 6px 0px rgba(0, 0, 0, 0.9);

  /* 💫 NEON GLOWS (Multi-layer) */
  --glow-cyan: 0 0 10px rgba(0, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4);
  --glow-magenta: 0 0 10px rgba(255, 0, 255, 1), 0 0 20px rgba(255, 0, 255, 0.8), 0 0 30px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4);
  --glow-purple: 0 0 10px rgba(217, 70, 239, 1), 0 0 20px rgba(217, 70, 239, 0.8), 0 0 30px rgba(217, 70, 239, 0.6);
  --glow-blue: 0 0 10px rgba(0, 217, 255, 1), 0 0 20px rgba(0, 217, 255, 0.8), 0 0 30px rgba(0, 217, 255, 0.6);
  --glow-green: 0 0 10px rgba(0, 255, 0, 1), 0 0 20px rgba(0, 255, 0, 0.6);
  --glow-neon: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.6), 0 0 30px rgba(0, 82, 255, 0.4);

  /* ⏱️ TIMING */
  --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;

  /* 🎯 Z-INDEX STACK */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-bg: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  --z-notification: 80;
  --z-topmost: 9999;
}

/* ═══════════════════════════════════════════════════════════
   🔄 UNIVERSAL RESET
   Consistency across browsers
   ═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-dark-void);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   🌌 BODY BACKGROUND (CRT + Cyber Effects)
   Layered backgrounds for depth
   ═══════════════════════════════════════════════════════════ */
body {
  background: 
    /* CRT Scanlines */
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.15) 0px,
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 2px
    ),
    /* Cyber Grid - Cyan */
    repeating-linear-gradient(
      90deg,
      rgba(0, 255, 255, 0.03) 0px,
      transparent 1px,
      transparent 40px,
      rgba(0, 255, 255, 0.03) 41px
    ),
    /* Cyber Grid - Magenta */
    repeating-linear-gradient(
      0deg,
      rgba(255, 0, 255, 0.03) 0px,
      transparent 1px,
      transparent 40px,
      rgba(255, 0, 255, 0.03) 41px
    ),
    /* Radial Gradients for Depth */
    radial-gradient(ellipse at top, rgba(217, 70, 239, 0.08), transparent),
    radial-gradient(ellipse at bottom, rgba(0, 82, 255, 0.08), transparent),
    var(--color-dark-void);
  
  background-size: 100% 2px, 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  animation: crtFlicker 0.15s infinite alternate;
}

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

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

@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.05em;
  margin-bottom: var(--space-md);
  color: var(--color-brand-accent);
}

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

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

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

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

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

a {
  color: var(--color-brand-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
  border-bottom: 2px solid transparent;
}

a:hover {
  color: var(--color-neon-cyan);
  text-shadow: var(--glow-cyan);
  border-bottom-color: var(--color-brand-secondary);
}

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;
}

/* ═══════════════════════════════════════════════════════════
   📱 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: 768px;
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    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;
  }
}

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

/* Import base styles with variables and animations */

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

.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(0, 82, 255, 0.15);
  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(--accent-gradient);
  border-radius: 2px;
}

.tab-button {
  position: relative;
  padding: 1.25rem 1.75rem;
  background: transparent;
  border: none;
  color: rgba(224, 224, 224, 0.5);
  font-family: 'Inter', sans-serif;
  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-accent-light);
}

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

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

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  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 rgba(0, 82, 255, 0.2);
}

.wallet-header h3 {
  color: var(--color-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: rgba(224, 224, 224, 0.6);
  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(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 0.5rem;
  font-family: 'VT323', monospace;
}

.address-display code {
  flex: 1;
  color: var(--color-accent-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-success);
  border-radius: 0.5rem;
  color: var(--color-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(109, 40, 217, 0.1);
  border: 1px solid var(--color-primary-light);
  border-radius: 0.5rem;
  color: var(--color-primary-light);
  font-weight: 700;
  font-size: 1.125rem;
}

.wallet-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 82, 255, 0.2);
}

/* 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: rgba(224, 224, 224, 0.7);
  margin: 0;
}

.error-banner {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--color-error);
  border-radius: 0.5rem;
  color: var(--color-error);
  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: rgba(26, 26, 46, 0.6);
  border: 2px solid rgba(0, 82, 255, 0.2);
  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-accent-main);
  box-shadow: var(--glow-blue);
  background: rgba(0, 82, 255, 0.1);
  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-neutral-light);
}

.wallet-description {
  font-size: 0.75rem;
  color: rgba(224, 224, 224, 0.5);
}

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

.info-box {
  padding: 1rem;
  background: rgba(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 0.5rem;
  color: rgba(224, 224, 224, 0.8);
  font-size: 0.875rem;
}

.info-box p {
  margin: 0;
}

.info-box strong {
  color: var(--color-accent-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 rgba(0, 82, 255, 0.2);
}

.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: rgba(224, 224, 224, 0.6);
  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: rgba(26, 26, 46, 0.5);
  border: 2px solid rgba(0, 82, 255, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(224, 224, 224, 0.7);
}

.currency-btn:hover {
  border-color: var(--color-accent-light);
  background: rgba(0, 82, 255, 0.1);
}

.currency-btn.active {
  border-color: var(--color-accent-main);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.2), rgba(59, 130, 246, 0.1));
  box-shadow: var(--glow-blue);
  color: var(--color-accent-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: rgba(224, 224, 224, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

.input-helper-text {
  font-size: 0.75rem;
  color: rgba(224, 224, 224, 0.5);
}

.input-error {
  border-color: var(--color-error) !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: rgba(224, 224, 224, 0.6);
  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: rgba(26, 26, 46, 0.5);
  border: 2px solid rgba(109, 40, 217, 0.2);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(224, 224, 224, 0.7);
}

.amount-btn:hover:not(:disabled) {
  border-color: var(--color-primary-light);
  background: rgba(109, 40, 217, 0.1);
  transform: translateY(-2px);
}

.amount-btn.active {
  border-color: var(--color-primary-main);
  background: var(--wallet-gradient);
  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: rgba(224, 224, 224, 0.6);
  font-weight: 600;
}

/* Balance Info */
.balance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.balance-info span {
  color: rgba(224, 224, 224, 0.7);
}

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

/* Processing Indicator */
.processing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--color-accent-light);
  font-weight: 600;
}

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

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

.empty-state p {
  color: rgba(224, 224, 224, 0.6);
}

/* 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(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.manage-item code {
  font-family: 'VT323', monospace;
  color: rgba(224, 224, 224, 0.8);
  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;
  }
}

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

/* ═══════════════════════════════════════════════════════════
   🌐 FONT IMPORTS (Load Once)
   Load with display=swap for better performance
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 CSS VARIABLES (Design System as Root)
   All colors, sizes, and effects defined once here
   ═══════════════════════════════════════════════════════════ */
:root {
  /* 🎯 BRAND COLORS */
  --color-brand-primary: #0052ff;      /* baseLINE blue */
  --color-brand-accent: #d946ef;       /* Neon purple */
  --color-brand-secondary: #00ffff;    /* Cyan */

  /* 🌈 NEON PALETTE */
  --color-neon-cyan: #00ffff;
  --color-neon-magenta: #ff00ff;
  --color-neon-yellow: #ffff00;
  --color-neon-lime: #00ff00;
  --color-neon-orange: #ff6600;
  --color-neon-pink: #ff1493;
  --color-neon-red: #ff0055;
  --color-neon-green: #00ff88;

  /* 🌑 DARK PALETTE */
  --color-dark-void: #000000;
  --color-dark-darkest: #0a0a0a;
  --color-dark-darker: #121212;
  --color-dark-base: #1a1a1a;
  --color-dark-surface: #2a2a2a;
  --color-dark-overlay: #3a3a3a;

  /* 📝 TEXT COLORS */
  --color-text-primary: #ffffff;
  --color-text-secondary: #e0e0e0;
  --color-text-tertiary: #a0a0a0;
  --color-text-accent: #00ffff;
  --color-text-success: #00ff88;
  --color-text-warning: #ffff00;
  --color-text-error: #ff0055;

  /* 🔤 FONTS */
  --font-display: 'Press Start 2P', cursive;
  --font-mono: 'VT323', 'Courier New', monospace;
  --font-cyber: 'Orbitron', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', sans-serif;

  /* 📏 FONT SIZES (Mobile-First) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 2.5rem;

  /* 📐 SPACING SCALE */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;

  /* 🎨 GRADIENTS */
  --gradient-cyber: linear-gradient(135deg, #d946ef 0%, #0052ff 50%, #00ffff 100%);
  --gradient-neon: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
  --gradient-matrix: linear-gradient(180deg, #000000 0%, #001a00 50%, #003300 100%);
  --gradient-retro: linear-gradient(135deg, #ff6600 0%, #ff00ff 50%, #00ffff 100%);
  --gradient-void: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);

  /* ✨ SHADOW EFFECTS */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.5);
  --shadow-pixel: 4px 4px 0px rgba(0, 0, 0, 0.9);
  --shadow-pixel-lg: 6px 6px 0px rgba(0, 0, 0, 0.9);

  /* 💫 NEON GLOWS (Multi-layer) */
  --glow-cyan: 0 0 10px rgba(0, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4);
  --glow-magenta: 0 0 10px rgba(255, 0, 255, 1), 0 0 20px rgba(255, 0, 255, 0.8), 0 0 30px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4);
  --glow-purple: 0 0 10px rgba(217, 70, 239, 1), 0 0 20px rgba(217, 70, 239, 0.8), 0 0 30px rgba(217, 70, 239, 0.6);
  --glow-blue: 0 0 10px rgba(0, 217, 255, 1), 0 0 20px rgba(0, 217, 255, 0.8), 0 0 30px rgba(0, 217, 255, 0.6);
  --glow-green: 0 0 10px rgba(0, 255, 0, 1), 0 0 20px rgba(0, 255, 0, 0.6);
  --glow-neon: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.6), 0 0 30px rgba(0, 82, 255, 0.4);

  /* ⏱️ TIMING */
  --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;

  /* 🎯 Z-INDEX STACK */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-bg: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  --z-notification: 80;
  --z-topmost: 9999;
}

/* ═══════════════════════════════════════════════════════════
   🔄 UNIVERSAL RESET
   Consistency across browsers
   ═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-dark-void);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   🌌 BODY BACKGROUND (CRT + Cyber Effects)
   Layered backgrounds for depth
   ═══════════════════════════════════════════════════════════ */
body {
  background: 
    /* CRT Scanlines */
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.15) 0px,
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 2px
    ),
    /* Cyber Grid - Cyan */
    repeating-linear-gradient(
      90deg,
      rgba(0, 255, 255, 0.03) 0px,
      transparent 1px,
      transparent 40px,
      rgba(0, 255, 255, 0.03) 41px
    ),
    /* Cyber Grid - Magenta */
    repeating-linear-gradient(
      0deg,
      rgba(255, 0, 255, 0.03) 0px,
      transparent 1px,
      transparent 40px,
      rgba(255, 0, 255, 0.03) 41px
    ),
    /* Radial Gradients for Depth */
    radial-gradient(ellipse at top, rgba(217, 70, 239, 0.08), transparent),
    radial-gradient(ellipse at bottom, rgba(0, 82, 255, 0.08), transparent),
    var(--color-dark-void);
  
  background-size: 100% 2px, 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  animation: crtFlicker 0.15s infinite alternate;
}

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

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

@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.05em;
  margin-bottom: var(--space-md);
  color: var(--color-brand-accent);
}

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

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

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

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

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

a {
  color: var(--color-brand-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
  border-bottom: 2px solid transparent;
}

a:hover {
  color: var(--color-neon-cyan);
  text-shadow: var(--glow-cyan);
  border-bottom-color: var(--color-brand-secondary);
}

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;
}

/* ═══════════════════════════════════════════════════════════
   📱 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: 768px;
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    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;
  }
}

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

/* ===== MOBILE DASHBOARD CONTAINER ===== */
.mobile-dashboard {
  position: relative;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ===== STATUS BAR (iOS/Android style) ===== */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 44px;
  padding: 0 1rem;
  padding-top: env(safe-area-inset-top, 0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.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;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.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: rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.indicator-dot.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0052ff, #9146ff);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.5);
}

.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: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(40px) saturate(180%);
  border-top: 0.5px solid rgba(255, 255, 255, 0.15);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.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: rgba(255, 255, 255, 0.5);
  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, #0052ff, #9146ff);
  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: #ffffff;
}

.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(0, 82, 255, 0.6));
  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(0, 82, 255, 0.1), rgba(145, 70, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.wallet-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  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, rgba(0, 82, 255, 0.8), rgba(145, 70, 255, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-icon-label {
  font-size: 0.75rem;
  color: #ffffff;
  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(0, 82, 255, 0.15), rgba(145, 70, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #ffffff;
  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(0, 82, 255, 0.3), rgba(145, 70, 255, 0.3));
}

/* ===== RESPONSIVE DESKTOP VIEW ===== */
@media (min-width: 768px) {
  .mobile-dashboard {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.5);
  }

  .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-neutral-black);
  color: var(--color-neutral-light);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(26, 26, 46, 0.85) 100%
  );
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 82, 255, 0.2);
  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: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  margin: 0;
  background: linear-gradient(135deg, #6d28d9, #a855f7, #0052ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(109, 40, 217, 0.5);
}

.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-neutral-light);
  font-weight: 600;
}

.wallet-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  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(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  -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: rgba(224, 224, 224, 0.6);
  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: linear-gradient(135deg, #6d28d9, #a855f7);
  border-radius: 4px;
}

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

.tip-item {
  padding: 1rem;
  background: rgba(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  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(0, 82, 255, 0.4);
  background: rgba(0, 82, 255, 0.15);
}

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

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

.tip-recipient {
  font-size: 0.875rem;
  color: rgba(224, 224, 224, 0.6);
  font-family: 'VT323', monospace;
}

.tip-time {
  font-size: 0.75rem;
  color: rgba(224, 224, 224, 0.5);
  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: rgba(224, 224, 224, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.profile-value {
  padding: 0.75rem 1rem;
  background: rgba(0, 82, 255, 0.1);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--color-neutral-light);
  font-weight: 500;
}

.profile-value code {
  font-family: 'VT323', monospace;
  color: var(--color-accent-light);
  word-break: break-all;
}

/* ===== FOOTER ===== */
.dashboard-footer {
  border-top: 1px solid rgba(0, 82, 255, 0.2);
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(224, 224, 224, 0.5);
  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(--bg-primary);
}

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

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-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(--accent-primary);
}

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

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

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

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

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

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

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--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(--text-primary);
  background: rgba(145, 70, 255, 0.1);
}

.nav-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-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;
  }
}

