@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);
/* 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: 9998;
  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: linear-gradient(180deg, rgba(20, 20, 30, 0.98), rgba(10, 10, 20, 0.98));
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease-out;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@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 rgba(255, 255, 255, 0.08);
}

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

.close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  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: rgba(255, 255, 255, 0.15);
}

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

/* Status Sections */
.status-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.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(0, 200, 120, 0.15);
  color: #8ef0b0;
}

.status-badge.offline {
  background: rgba(255, 50, 50, 0.15);
  color: #ff9b9b;
}

.status-badge.connected {
  background: rgba(100, 150, 255, 0.15);
  color: #9bb3ff;
}

.status-badge.disconnected {
  background: rgba(150, 150, 150, 0.15);
  color: #bbb;
}

.chain-name {
  font-weight: 700;
  color: #7ef0ff;
}

.chain-id {
  font-family: 'Courier New', monospace;
  opacity: 0.9;
}

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

.rpc-status.healthy {
  color: #8ef0b0;
}

.rpc-status.degraded {
  color: #ffcc70;
}

.rpc-status.offline {
  color: #ff9b9b;
}

/* 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: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  transition: all 0.2s;
}

.address-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

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

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

.balance {
  font-weight: 700;
  color: #7ef0ff;
}

/* 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(145, 70, 255, 0.5);
  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: #9146ff;
}

.profile-bio {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  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: rgba(255, 255, 255, 0.03);
  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(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 8px;
  transition: all 0.2s;
}

.token-item:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.25);
}

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

.token-symbol {
  font-size: 16px;
  font-weight: 700;
  color: #0ff;
}

.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: 'Courier New', monospace;
}

.balance-usd {
  font-size: 12px;
  opacity: 0.6;
  color: #9146ff;
}

/* 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: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 12px;
}

.token-symbol-small {
  font-weight: 700;
  color: #0ff;
}

.token-balance-small {
  font-family: 'Courier New', monospace;
  opacity: 0.8;
}

/* Refresh Button */
.refresh-btn {
  background: linear-gradient(135deg, #9146ff, #772ce8);
  border: none;
  color: #fff;
  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: 0 4px 16px rgba(145, 70, 255, 0.4);
}

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

/**
 * 🎮 3D Effects & Enhancement Guide
 * Add to cyberpunk.css or create new effects.css
 * Matrix + Futurama + Unreal Engine Aesthetic
 */

/* ═══════════════════════════════════════════════════════════
   🎬 3D PERSPECTIVE LAYERS
   Create depth and dimension
   ═══════════════════════════════════════════════════════════ */

.perspective-container {
  perspective: 1000px;
  perspective-origin: center center;
  transform-style: preserve-3d;
}

.perspective-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Floating/Hover 3D Effect - Cards Pop Out */
.float-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.float-3d:hover {
  transform: translateZ(20px) rotateX(2deg) rotateY(-2deg);
}

/* Deeper 3D Tilt on Active/Focus */
.float-3d:active,
.float-3d.active {
  transform: translateZ(30px) rotateX(3deg) rotateY(-3deg);
}

/* ═══════════════════════════════════════════════════════════
   💎 HOLOGRAPHIC GLASS EFFECT
   Futuristic transparent panels
   ═══════════════════════════════════════════════════════════ */

.holographic {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(217, 70, 239, 0.1) 0%,
    rgba(0, 217, 255, 0.08) 40%,
    rgba(0, 255, 255, 0.1) 100%
  );
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #d946ef 0%, #00ffff 100%) 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(0, 217, 255, 0.15),
    0 0 30px rgba(217, 70, 239, 0.2);
  transform-style: preserve-3d;
}

.holographic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  opacity: 0;
  animation: hologramShimmer 3s infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes hologramShimmer {
  0% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════════════
   🌠 UNREAL ENGINE LIGHTING
   Volumetric glow with depth
   ═══════════════════════════════════════════════════════════ */

.unreal-lit {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(20, 20, 40, 0.9) 0%,
    rgba(0, 50, 100, 0.7) 50%,
    rgba(20, 20, 50, 0.9) 100%
  );
  box-shadow: 
    0 0 60px rgba(0, 217, 255, 0.4),
    0 0 100px rgba(217, 70, 239, 0.2),
    inset 0 0 60px rgba(0, 255, 255, 0.1),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.unreal-lit::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, transparent 70%);
  border-radius: inherit;
  opacity: 0.6;
  pointer-events: none;
  filter: blur(8px);
}

/* ═══════════════════════════════════════════════════════════
   🌀 PARALLAX DEPTH LAYERS
   Multiple z-axis layers for 3D depth
   ═══════════════════════════════════════════════════════════ */

.parallax-container {
  perspective: 800px;
  perspective-origin: center;
  height: 100%;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.parallax-layer--1 { transform: translateZ(10px) scale(1.02); }
.parallax-layer--2 { transform: translateZ(20px) scale(1.04); }
.parallax-layer--3 { transform: translateZ(30px) scale(1.06); }
.parallax-layer--4 { transform: translateZ(40px) scale(1.08); }

.parallax-container:hover .parallax-layer {
  animation: parallaxFloat 6s ease-in-out infinite;
}

@keyframes parallaxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

/* ═══════════════════════════════════════════════════════════
   🎪 FUTURAMA NEON RINGS
   Pulsing circular effects
   ═══════════════════════════════════════════════════════════ */

.neon-ring {
  border-radius: 50%;
  border: 3px solid currentColor;
  box-shadow: 
    0 0 15px currentColor,
    inset 0 0 15px rgba(255, 255, 255, 0.2),
    0 0 30px rgba(255, 255, 255, 0.1);
  animation: neonPulse 2s infinite ease-in-out;
}

.neon-ring--sm { width: 40px; height: 40px; }
.neon-ring--md { width: 80px; height: 80px; }
.neon-ring--lg { width: 120px; height: 120px; }

.neon-ring--cyan { color: #00ffff; }
.neon-ring--magenta { color: #ff00ff; }
.neon-ring--purple { color: #d946ef; }

@keyframes neonPulse {
  0%, 100% { 
    box-shadow: 
      0 0 15px currentColor,
      inset 0 0 15px rgba(255, 255, 255, 0.2),
      0 0 30px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 0 30px currentColor,
      inset 0 0 30px rgba(255, 255, 255, 0.3),
      0 0 60px rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
  }
}

/* ═══════════════════════════════════════════════════════════
   🔤 MATRIX RAIN/CASCADE
   Falling text/data effect
   ═══════════════════════════════════════════════════════════ */

.matrix-rain {
  position: relative;
  overflow: hidden;
}

.matrix-rain::before {
  content: attr(data-text);
  position: absolute;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  color: rgba(0, 255, 0, 0.3);
  font-size: 0.7em;
  line-height: 1.8;
  white-space: pre;
  animation: matrixFlow 8s linear infinite;
  pointer-events: none;
}

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

/* ═══════════════════════════════════════════════════════════
   ✨ GLITCH EFFECT
   Retro CRT distortion
   ═══════════════════════════════════════════════════════════ */

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  animation: glitchLeft 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  color: #ff00ff;
  z-index: -1;
}

.glitch::after {
  animation: glitchRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  color: #00ffff;
  z-index: -2;
}

@keyframes glitchLeft {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(-2px); }
  60% { transform: translateX(0); }
  80% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

@keyframes glitchRight {
  0% { transform: translateX(0); }
  20% { transform: translateX(4px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(0); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════════
   🌈 NEON TEXT STROKE
   Glowing multi-layer text
   ═══════════════════════════════════════════════════════════ */

.neon-text {
  color: #fff;
  text-shadow: 
    0 0 10px rgba(0, 217, 255, 0.8),
    0 0 20px rgba(217, 70, 239, 0.6),
    0 0 30px rgba(0, 217, 255, 0.4),
    0 0 40px rgba(0, 255, 255, 0.2);
  filter: drop-shadow(0 0 2px rgba(217, 70, 239, 0.8));
  animation: neonTextGlow 2s ease-in-out infinite;
}

.neon-text--cyan {
  text-shadow: 
    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);
}

.neon-text--magenta {
  text-shadow: 
    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);
}

@keyframes neonTextGlow {
  0%, 100% { 
    text-shadow: 
      0 0 10px rgba(0, 217, 255, 0.8),
      0 0 20px rgba(217, 70, 239, 0.6),
      0 0 30px rgba(0, 217, 255, 0.4),
      0 0 40px rgba(0, 255, 255, 0.2);
  }
  50% {
    text-shadow: 
      0 0 20px rgba(0, 217, 255, 1),
      0 0 40px rgba(217, 70, 239, 0.8),
      0 0 60px rgba(0, 217, 255, 0.6),
      0 0 80px rgba(0, 255, 255, 0.4);
  }
}

/* ═══════════════════════════════════════════════════════════
   🎯 DATA STREAM EFFECT
   Flowing visualization
   ═══════════════════════════════════════════════════════════ */

.data-stream {
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.data-stream::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 255, 255, 0.3),
    transparent
  );
  animation: dataFlow 3s linear infinite;
  pointer-events: none;
}

@keyframes dataFlow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════
   💫 INTERACTIVE BUTTON EFFECTS
   Enhanced click/hover states
   ═══════════════════════════════════════════════════════════ */

.btn-cyber {
  position: relative;
  border: 2px solid var(--color-brand-secondary);
  background: linear-gradient(135deg, 
    rgba(0, 217, 255, 0.1) 0%,
    rgba(217, 70, 239, 0.1) 100%
  );
  color: var(--color-brand-secondary);
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
}

.btn-cyber::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(0, 217, 255, 0.3),
    rgba(217, 70, 239, 0.3)
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.btn-cyber:hover {
  box-shadow: 
    0 0 20px rgba(0, 217, 255, 0.6),
    inset 0 0 20px rgba(0, 217, 255, 0.2);
  transform: translateZ(2px);
}

.btn-cyber:hover::before {
  opacity: 1;
}

.btn-cyber:active {
  transform: translateZ(1px) scale(0.98);
}

/* ═══════════════════════════════════════════════════════════
   🎪 CHROMATIC ABERRATION
   Color separation effect
   ═══════════════════════════════════════════════════════════ */

.chromatic {
  position: relative;
}

.chromatic::before,
.chromatic::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.8;
}

.chromatic::before {
  color: #ff0055;
  clip-path: polygon(0 0, 66% 0, 66% 100%, 0% 100%);
  animation: chromaticShift 0.15s ease-in-out infinite;
}

.chromatic::after {
  color: #00d9ff;
  clip-path: polygon(33% 0, 100% 0, 100% 100%, 33% 100%);
  animation: chromaticShiftReverse 0.15s ease-in-out infinite;
}

@keyframes chromaticShift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@keyframes chromaticShiftReverse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2px); }
}

/* ═══════════════════════════════════════════════════════════
   🔮 SCIFI SCANNER EFFECT
   Circular scanning animation
   ═══════════════════════════════════════════════════════════ */

.scifi-scanner {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.5),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.scifi-scanner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #00ffff;
  animation: scannerRotate 3s linear infinite;
}

.scifi-scanner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff;
}

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

/* ═══════════════════════════════════════════════════════════
   🎬 CINEMATIC TRANSITIONS
   Page/section transitions
   ═══════════════════════════════════════════════════════════ */

.cinematic-enter {
  animation: cinematicIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-exit {
  animation: cinematicOut 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cinematicIn {
  0% {
    opacity: 0;
    transform: scaleY(0.8) translateY(20px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes cinematicOut {
  0% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.8) translateY(-20px);
    filter: blur(10px);
  }
}

/**
 * 🎮 CRYPTIC FUTURISTIC RETRO PIXEL CSS
 * Mobile-First Design with Bottom Navigation
 * ████████████████████████████████████████████
 */

/* ═══════════════════════════════════════════
   🌑 IMPORT UNIFIED BASE STYLES
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   🎯 CYBERPUNK-SPECIFIC VARIABLES & OVERRIDES
   ═══════════════════════════════════════════ */
:root {
  /* 📱 MOBILE LAYOUT */
  --mobile-header-height: 60px;
  --mobile-nav-height: 70px;
  --mobile-content-height: calc(100vh - var(--mobile-header-height) - var(--mobile-nav-height));
}

/* ═══════════════════════════════════════════
   📱 MOBILE-FIRST LAYOUT CONTAINER
   ═══════════════════════════════════════════ */
#root {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cyber-app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   🎯 MOBILE HEADER (Fixed Top)
   ═══════════════════════════════════════════ */
.cyber-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-header-height);
  background: linear-gradient(180deg, rgba(217, 70, 239, 0.2) 0%, rgba(0, 0, 0, 0.95) 100%);
  border-bottom: 2px solid var(--neon-cyan);
  box-shadow: 
    var(--shadow-pixel),
    0 0 20px rgba(0, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  z-index: 100;
  backdrop-filter: blur(10px);
}

.cyber-header__logo {
  font-family: var(--font-pixel);
  font-size: var(--text-md);
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 2px;
  animation: glitchText 3s infinite;
}

.cyber-header__status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cyber-header__wallet {
  font-family: var(--font-terminal);
  font-size: var(--text-sm);
  color: var(--neon-magenta);
  text-shadow: var(--glow-magenta);
  background: rgba(255, 0, 255, 0.1);
  border: 2px solid var(--neon-magenta);
  padding: var(--space-xs) var(--space-sm);
  box-shadow: var(--shadow-pixel-sm);
}

.cyber-header__balance {
  font-family: var(--font-cyber);
  font-size: var(--text-sm);
  color: var(--neon-lime);
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

/* ═══════════════════════════════════════════
   📜 SCROLLABLE CONTENT AREA
   ═══════════════════════════════════════════ */
.cyber-content {
  flex: 1;
  margin-top: var(--mobile-header-height);
  margin-bottom: var(--mobile-nav-height);
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-md);
  position: relative;
}

/* Custom Scrollbar - CYBER STYLE */
.cyber-content::-webkit-scrollbar {
  width: 8px;
}

.cyber-content::-webkit-scrollbar-track {
  background: var(--darkest);
  border-left: 1px solid var(--neon-cyan);
}

.cyber-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.cyber-content::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════
   🎮 BOTTOM NAVIGATION (Fixed Bottom)
   ═══════════════════════════════════════════ */
.cyber-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(217, 70, 239, 0.2) 100%);
  border-top: 2px solid var(--neon-magenta);
  box-shadow: 
    var(--shadow-pixel),
    0 0 20px rgba(255, 0, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.cyber-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-xs);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  color: var(--gray);
  text-decoration: none;
}

.cyber-nav__item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transition: width var(--transition-normal);
}

.cyber-nav__item:active {
  transform: translateY(2px);
}

.cyber-nav__item--active {
  color: var(--neon-cyan);
}

.cyber-nav__item--active::before {
  width: 80%;
}

.cyber-nav__icon {
  font-size: var(--text-xl);
  filter: drop-shadow(0 0 4px currentColor);
  transition: var(--transition-fast);
}

.cyber-nav__item--active .cyber-nav__icon {
  filter: drop-shadow(0 0 10px var(--neon-cyan));
  animation: pulseGlow 2s infinite;
}

.cyber-nav__label {
  font-family: var(--font-terminal);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 4px currentColor;
}

.cyber-nav__item--active .cyber-nav__label {
  text-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════
   🎴 PIXEL CARDS
   ═══════════════════════════════════════════ */
.pixel-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
  border: 2px solid var(--neon-cyan);
  box-shadow: 
    var(--shadow-pixel),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.pixel-card::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.pixel-card--purple {
  border-color: var(--cyber-purple);
  box-shadow: 
    var(--shadow-pixel),
    inset 0 0 20px rgba(217, 70, 239, 0.1);
}

.pixel-card--purple::before {
  background: var(--cyber-purple);
  box-shadow: var(--glow-purple);
}

.pixel-card__title {
  font-family: var(--font-pixel);
  font-size: var(--text-sm);
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Utilities & component helpers for Cyberpunk dashboard refactor */
.text-xxl { font-size: var(--text-xxl); }
.text-xl { font-size: var(--text-xl); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-gray { color: var(--gray); }
.mb-md { margin-bottom: var(--space-md); }
.mt-sm { margin-top: var(--space-sm); }
.mb-4 { margin-bottom: 4px; }
.mt-16 { margin-top: 16px; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-4 { gap: 4px; }
.text-center { text-align: center; }

/* Empty history placeholder */
.empty-history {
  text-align: center;
  padding: var(--space-xl);
  color: var(--gray);
  font-family: var(--font-terminal);
}

/* Tip history row */
.tip-row {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--medium);
  padding: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-terminal);
  font-size: var(--text-sm);
}

.tip-row-meta { display: flex; flex-direction: column; gap: 4px; }
.tip-id-badge {
  background: var(--darkest);
  border: 1px solid var(--medium);
  padding: 4px 8px;
  color: var(--neon-cyan);
  font-size: var(--text-xs);
}

/* Profile helper classes */
.title-cyber { color: var(--cyber-purple); text-shadow: var(--glow-purple); }
.profile-section { display:flex; flex-direction:column; gap:var(--space-md); }
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(217, 70, 239, 0.05);
  border: 2px solid var(--cyber-purple);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--cyber-purple), var(--neon-magenta));
  border: 2px solid var(--neon-magenta);
  box-shadow: var(--glow-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}
.username-pixel { font-family: var(--font-pixel); font-size: var(--text-sm); color: var(--neon-magenta); text-shadow: var(--glow-magenta); margin-bottom: 4px; }
.terminal-xs { font-family: var(--font-terminal); font-size: var(--text-xs); color: var(--gray); }
.wallet-info-card { padding: var(--space-md); background: rgba(0,0,0,0.5); border: 2px solid var(--neon-cyan); }
.wallet-address { font-family: var(--font-terminal); font-size: var(--text-sm); color: var(--neon-cyan); text-shadow: var(--glow-cyan); word-break: break-all; }
.wallet-balance { font-family: var(--font-cyber); font-size: var(--text-lg); color: var(--neon-lime); margin-top: var(--space-md); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.stat-cell { padding: var(--space-sm); background: rgba(0,255,255,0.05); border: 2px solid var(--neon-cyan); text-align: center; }
.stat-value { font-family: var(--font-cyber); font-size: var(--text-xl); color: var(--neon-cyan); text-shadow: var(--glow-cyan); }
.stat-label { font-family: var(--font-terminal); font-size: var(--text-xs); color: var(--gray); margin-top: 4px; }

.btn-danger { border-color: var(--neon-red); color: var(--neon-red); }

/* Generic panel block for wallet & info sections */
.panel-block {
  padding: var(--space-md);
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--medium);
  text-align: left;
}

.wallet-required { text-align: center; padding: var(--space-xl); font-family: var(--font-terminal); color: var(--gray); }
.wallet-required .icon { font-size: var(--text-xxl); margin-bottom: var(--space-md); }
.wallet-required .title { font-family: var(--font-pixel); font-size: var(--text-sm); color: var(--neon-cyan); text-shadow: var(--glow-cyan); margin-bottom: var(--space-sm); }

.balance-row { display:flex; justify-content:space-between; align-items:center; padding:var(--space-sm); border:2px solid var(--neon-cyan); background: linear-gradient(135deg, rgba(0,255,255,0.05), rgba(0,217,255,0.05)); }

.currency-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); }
.quick-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }
.pixel-btn--md { padding: var(--space-md); }

.pixel-input-wrap { position: relative; }
.pixel-input-right { position: absolute; right: var(--space-md); top: 50%; transform: translateY(-50%); font-family: var(--font-terminal); font-size: var(--text-sm); color: var(--neon-cyan); pointer-events: none; }

.info-block { padding: var(--space-sm); background: rgba(0,255,255,0.05); border: 1px solid var(--neon-cyan); text-align:center; }

/* ═══════════════════════════════════════════
   🔘 PIXEL BUTTONS
   ═══════════════════════════════════════════ */
.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-terminal);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--darkest);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--shadow-pixel);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.pixel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
  transition: left var(--transition-normal);
}

.pixel-btn:hover::before {
  left: 100%;
}

.pixel-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 
    var(--shadow-pixel),
    var(--glow-cyan);
  text-shadow: var(--glow-cyan);
}

.pixel-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.9);
}

.pixel-btn--primary {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2), rgba(0, 217, 255, 0.2));
  border-color: var(--cyber-purple);
  color: var(--cyber-purple);
}

.pixel-btn--primary:hover {
  background: rgba(217, 70, 239, 0.3);
  box-shadow: 
    var(--shadow-pixel),
    var(--glow-purple);
  text-shadow: var(--glow-purple);
}

.pixel-btn--full {
  width: 100%;
}

.pixel-btn--large {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-md);
}

/* ═══════════════════════════════════════════
   🔲 PIXEL INPUTS
   ═══════════════════════════════════════════ */
.pixel-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-terminal);
  font-size: var(--text-base);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--medium);
  color: var(--neon-cyan);
  box-shadow: inset var(--shadow-pixel-sm);
  transition: var(--transition-fast);
}

.pixel-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 
    inset var(--shadow-pixel-sm),
    0 0 10px rgba(0, 255, 255, 0.5);
  background: rgba(0, 255, 255, 0.05);
}

.pixel-input::placeholder {
  color: var(--gray);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════

/* ═══════════════════════════════════════════

   📱 RESPONSIVE - TABLET & DESKTOP
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --mobile-header-height: 70px;
    --mobile-nav-height: 0px;
  }
  
  .cyber-header {
    height: var(--mobile-header-height);
    padding: 0 var(--space-lg);
  }
  
  .cyber-header__logo {
    font-size: var(--text-lg);
  }
  
  .cyber-content {
    margin-bottom: 0;
    padding: var(--space-lg);
  }
  
  /* SIDE NAVIGATION FOR DESKTOP */
  .cyber-nav {
    top: var(--mobile-header-height);
    bottom: auto;
    left: 0;
    width: 80px;
    height: calc(100vh - var(--mobile-header-height));
    flex-direction: column;
    border-top: none;
    border-right: 2px solid var(--neon-magenta);
    box-shadow: 
      var(--shadow-pixel),
      0 0 20px rgba(255, 0, 255, 0.5);
  }
  
  .cyber-nav__item::before {
    top: 50%;
    left: auto;
    right: -2px;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    transition: height var(--transition-normal);
  }
  
  .cyber-nav__item--active::before {
    height: 80%;
  }
  
  .cyber-content {
    margin-left: 80px;
  }
}

@media (min-width: 1024px) {
  .cyber-content {
    padding: var(--space-xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

/* Toast System Styles */
/* CRT Retro Aesthetic with Modern UX */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
  max-width: 400px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.toast {
  pointer-events: auto;
  margin-bottom: 12px;
  border-radius: 8px;
  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: 
    0 4px 20px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.toast:hover {
  transform: translateX(-4px);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Success Toast - Retro Green */
.toast-success {
  background: linear-gradient(135deg, 
    rgba(0, 255, 0, 0.15) 0%, 
    rgba(0, 200, 0, 0.1) 100%);
  border-color: #00ff00;
  color: #00ff88;
}

.toast-success .toast-icon {
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

/* Error Toast - Retro Red */
.toast-error {
  background: linear-gradient(135deg, 
    rgba(255, 0, 0, 0.15) 0%, 
    rgba(200, 0, 0, 0.1) 100%);
  border-color: #ff0044;
  color: #ff6b88;
}

.toast-error .toast-icon {
  color: #ff0044;
  text-shadow: 0 0 10px rgba(255, 0, 68, 0.8);
}

/* Warning Toast - Retro Yellow */
.toast-warning {
  background: linear-gradient(135deg, 
    rgba(255, 255, 0, 0.15) 0%, 
    rgba(255, 200, 0, 0.1) 100%);
  border-color: #ffff00;
  color: #ffff88;
}

.toast-warning .toast-icon {
  color: #ffff00;
  text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

/* Info Toast - Retro Cyan */
.toast-info {
  background: linear-gradient(135deg, 
    rgba(0, 255, 255, 0.15) 0%, 
    rgba(0, 200, 255, 0.1) 100%);
  border-color: #00ffff;
  color: #88ffff;
}

.toast-info .toast-icon {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.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;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  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: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

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

.toast-action .btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toast-action .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  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%;
  }
}

/**
 * 🎮 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;
  }
}

/* Helper styles for CyberpunkTipSender component */
.wallet-required.panel-block {
  padding: var(--space-xl);
  background: rgba(0, 0, 0, 0.5);
  border: 2px dashed var(--medium);
  text-align: center;
  border-radius: 6px;
}
.wallet-required .icon {
  font-size: var(--text-xxl);
  margin-bottom: var(--space-md);
}
.wallet-required .title {
  font-family: var(--font-pixel);
  font-size: var(--text-sm);
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: var(--space-sm);
}
.wallet-required > div:last-child {
  font-family: var(--font-terminal);
  font-size: var(--text-sm);
  color: var(--gray);
}

.holographic { }
.flex-col { display: flex; flex-direction: column; }
.gap-md { gap: var(--space-md); }

.float-3d {
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(0,255,255,0.03), rgba(0,217,255,0.03));
  border: 2px solid var(--neon-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px;
}
.balance-row { display: flex; justify-content: space-between; align-items: center; }

.terminal-xs { font-family: var(--font-terminal); font-size: var(--text-xs); color: var(--gray); }

.currency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }

.pixel-input-wrap { position: relative; }
.pixel-input-right {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-terminal);
  font-size: var(--text-sm);
  color: var(--neon-cyan);
  pointer-events: none;
}

.info-block {
  padding: var(--space-sm);
  background: rgba(0,255,255,0.05);
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
}

/* Small helpers for pixel-styled buttons inside grids */
.currency-grid .pixel-btn,
.quick-grid .pixel-btn { width: 100%; }

/* 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: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  overflow-x: hidden;
}

/* Status Bar */
.status-bar {
  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);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 200;
}

.status-time { letter-spacing: 0.02em; }
.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.status-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.2;
}

.status-pill-action {
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.status-pill-action:active {
  transform: scale(0.96);
}

.status-pill-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

/* 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 rgba(255, 255, 255, 0.1);
}

.app-logo,
.app-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0052ff, #9146ff);
  -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: rgba(255,255,255,0.7); }

/* 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(0, 82, 255, 0.1), rgba(145, 70, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  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(0, 0, 0, 0.25);
  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(0, 82, 255, 0.2), rgba(145, 70, 255, 0.2)); }
.feature-icon { font-size: 2rem; }
.feature-name { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.9); }
@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(0, 82, 255, 0.1), rgba(145, 70, 255, 0.1));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}
.info-card h3 { font-size: 1rem; margin-bottom: 0.75rem; color: #ffffff; }
.info-card p { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* Generic mini-app layout */
.page-header {
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-subtitle {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-section {
  padding: 1rem;
}

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

.card {
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.1), rgba(145, 70, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
  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 rgba(255, 255, 255, 0.2);
  background: rgba(10, 12, 24, 0.7);
  color: #ffffff;
  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: linear-gradient(135deg, #0052ff, #9146ff);
  color: #fff;
  box-shadow: 0 16px 24px rgba(0, 82, 255, 0.35);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.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 rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.chip.active {
  background: rgba(0, 82, 255, 0.3);
  border-color: rgba(0, 82, 255, 0.8);
}

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

.feed-line {
  color: rgba(255, 255, 255, 0.75);
}

.feed-line strong {
  color: #ffffff;
}

.pixel-art {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.2), rgba(145, 70, 255, 0.2));
  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(0, 82, 255, 0.3);
  border: 1px solid rgba(0, 82, 255, 0.7);
  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: linear-gradient(135deg, #0052ff, #9146ff); color: #fff; border-radius: 8px; font-size: 0.8rem; font-weight:600; text-decoration:none; }
.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: rgba(10,10,10,0.98); backdrop-filter: blur(40px);
  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; text-decoration:none; min-height:64px; -webkit-tap-highlight-color:transparent; }
.nav-item.active { color:#fff; }
.nav-icon { font-size:1.5rem; transition: transform 0.3s; }
.nav-item.active .nav-icon { transform: scale(1.1); filter: drop-shadow(0 2px 8px rgba(0,82,255,0.6)); }
.nav-label { font-size:0.625rem; font-weight:600; letter-spacing:0.02em; text-transform:uppercase; }

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

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0e0e23;
  color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 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: #0e0e23;
}

.loading-container p {
  margin-top: 1rem;
  color: #a0a0a0;
  font-size: 0.9rem;
}

/* Common button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  gap: 0.5rem;
}

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

.btn-primary {
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #8441e8 0%, #6b26d1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(145, 70, 255, 0.3);
}

.btn-secondary {
  background: #2d2d3d;
  color: #ffffff;
  border: 1px solid #404050;
}

.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: #9146ff;
  box-shadow: 0 0 0 3px rgba(145, 70, 255, 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: #9146ff;
}

/* 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: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  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 #9146ff;
}

.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(145, 70, 255, 0.1);
}

.nav-btn.active {
  color: #9146ff;
  border-bottom-color: #9146ff;
  background: rgba(145, 70, 255, 0.1);
}

.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: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  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;
  }
}

