:root {
  --primary: #FF6B35;
  --primary-light: #FF8F5E;
  --primary-dark: #E8551E;
  --secondary: #FFB347;
  --accent: #00D4FF;
  --accent-purple: #A855F7;
  --accent-pink: #FF3DB8;
  --success: #00E676;
  --warning: #FFD600;
  --danger: #FF5252;

  --bg-dark: #06060D;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 107, 53, 0.35);

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);

  --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 20px 60px rgba(255, 107, 53, 0.18);

  --font-display: 'Orbitron', monospace;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

#matrixRain, #particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
#matrixRain { opacity: 0.3; will-change: contents; }
#particles { opacity: 0.8; will-change: contents; }

.aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  animation: auroraDrift 40s ease-in-out infinite;
}
.aurora-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px; left: -200px;
}
.aurora-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  animation-delay: -15s;
}
.aurora-3 { display: none; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 32px;
  background: transparent;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  animation: logoGlow 3s ease-in-out infinite;
}
.logo-text .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-status {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 999px);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--success);
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 32px 60px;
  position: relative;
  z-index: 1;
}

/* Hero */
.hero-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 26px;
  background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(168,85,247,0.12));
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease-out;
}
.badge-pulse {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
.badge-text {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--primary-light);
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}
.title-word {
  display: inline-block;
  margin-right: 6px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}
.flicker { animation: gradientShift 5s ease infinite, flicker 3s ease-in-out infinite; }

.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.7;
  min-height: 1.8em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.typing-cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  animation: blink 1s step-end infinite;
}

/* Search */
.search-box {
  margin-bottom: 56px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.search-neon-border {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-purple), var(--primary));
  background-size: 300% 300%;
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.4s;
  pointer-events: none;
  animation: neonFlow 6s linear infinite;
}
.search-box:focus-within .search-neon-border,
.search-inner:focus-within ~ .search-neon-border {
  opacity: 0.6;
}
.search-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-inner:focus-within {
  border-color: rgba(255,107,53,0.4);
  box-shadow: 0 0 50px rgba(255,107,53,0.15);
  transform: translateY(-2px);
}
.search-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--primary-light);
}
.search-inner input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  padding: 12px 0;
  min-width: 0;
}
.search-inner input::placeholder { color: var(--text-muted); }

.search-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 999px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}
.search-btn .btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.search-btn:hover .btn-shine { left: 100%; }
.search-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}
.search-btn:active { transform: translateY(0) scale(0.98); }
.btn-arrow {
  transition: transform 0.3s;
}
.search-btn:hover .btn-arrow { transform: translateX(4px); }

.search-hint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
}
.hero-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Result section */
.result-section { animation: fadeIn 0.6s ease-out; padding-bottom: 80px; }

/* User card */
.user-card {
  position: relative;
  margin-bottom: 0;
  padding: 32px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}
.user-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,53,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,53,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 30% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, black 30%, transparent 70%);
}
.user-info {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.avatar-ring {
  position: relative;
  width: 90px; height: 90px;
  flex-shrink: 0;
}
.avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--accent-purple), var(--primary));
  animation: spin 6s linear infinite;
  filter: blur(2px);
  opacity: 0.9;
}
.avatar {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--bg-dark);
}
.level-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
}
.user-meta { flex: 1; min-width: 200px; }
.user-name { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.user-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
}
.user-update {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pulse-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Earning grid */
/* earning-grid — generic fallback */
.earning-grid {
  display: grid;
  gap: 0;
  margin-bottom: 32px;
}

/* Single featured hero card */
.earning-grid-single {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 24px auto 32px;
}
.earning-grid-single .card-wrapper {
  width: 100%;
}
.earning-grid-single .card-wrapper.featured {
  grid-column: auto;
  margin-right: 0 !important;
}

.card-wrapper {
  animation: fadeInUp 0.6s ease-out both;
}

.earning-card {
  position: relative;
  width: 100%;
  height: 320px;
  cursor: default;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(255,107,53,0.07), rgba(168,85,247,0.05));
  border: 1px solid rgba(255,107,53,0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.earning-card:hover .card-face {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(255,107,53,0.15);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.card-icon-wrap.big {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(255,107,53,0.22), rgba(168,85,247,0.18));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 18px rgba(255,107,53,0.22);
}
.card-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-value.big {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 4px 0;
}
.card-value.big .currency {
  font-size: 28px;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
  margin-right: 6px;
}
.card-value.big .number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -1px;
  filter: drop-shadow(0 0 24px rgba(255,107,53,0.35));
}

/* Sparkles on featured card */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sparkle {
  position: absolute;
  font-size: 16px;
  color: var(--secondary);
  animation: sparkle 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0.7;
}
.sparkle:nth-child(1) { top: 24px; right: 40px; }
.sparkle:nth-child(2) { top: 45%; right: 28px; font-size: 12px; opacity: 0.5; }
.sparkle:nth-child(3) { bottom: 34px; right: 52px; font-size: 14px; opacity: 0.6; }

/* Back of card */
.back-quote {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.7;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}
.back-quote.big-quote {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.back-glow {
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,107,53,0.2), transparent 70%);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}

/* Chart grid */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.chart-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.4s;
  animation: fadeInUp 0.6s ease-out both;
}
.chart-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.chart-header h3 { font-size: 16px; font-weight: 600; }
.chart-badge {
  padding: 4px 10px;
  background: rgba(255,107,53,0.15);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--primary-light);
}
canvas { width: 100%; height: 220px; display: block; }

/* Insight grid */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.insight-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  gap: 16px;
  transition: all 0.4s;
  animation: fadeInUp 0.6s ease-out both;
}
.insight-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.insight-icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(168,85,247,0.15));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.insight-body { flex: 1; min-width: 0; }
.insight-body h4 { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.insight-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.insight-desc { font-size: 12px; color: var(--text-muted); }

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* Skeleton */
.skeleton-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 13, 0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.sk-box { text-align: center; }
.sk-ring {
  width: 60px; height: 60px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}
.sk-text {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 80px; left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 24px;
  background: rgba(30, 30, 40, 0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  min-width: 240px;
}
.toast.error { border-color: rgba(255,82,82,0.3); }
.toast.success { border-color: rgba(0,230,118,0.3); }
.toast-icon { font-size: 18px; }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.35);
  border-radius: 999px;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  margin-right: 12px;
}
.back-btn:hover {
  background: rgba(255,107,53,0.25);
  transform: translateX(-4px);
  box-shadow: 0 0 20px rgba(255,107,53,0.3);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,107,53,0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Card tilt glow */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  filter: blur(12px);
}
.card-wrapper:hover .card-glow { opacity: 0.5; }

/* Number pop animation */
@keyframes numberPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.number-pop { animation: numberPop 0.5s ease-out; }

/* Return home animation */
.result-section.hide {
  animation: fadeOut 0.4s ease-out forwards;
}
.hero-section.show {
  animation: fadeIn 0.6s ease-out forwards;
  display: flex !important;
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-20px); }
}

/* Scroll indicator */
.scroll-hint {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--primary-light);
  font-size: 18px;
}
.scroll-hint:hover {
  background: rgba(255,107,53,0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,107,53,0.3);
}

/* Number glow (static, no animation) */
.card-value .number {
  text-shadow: 0 0 12px rgba(255,107,53,0.35);
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
@keyframes auroraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,53,0.4); }
  50% { box-shadow: 0 0 35px rgba(255,107,53,0.7), 0 0 70px rgba(0,212,255,0.3); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.6; }
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,230,118,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0,230,118,0); }
}
@keyframes neonFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.9); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Card stagger animation */
.earning-grid > .card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.earning-grid > .card-wrapper:nth-child(2) { animation-delay: 0.1s; }
.earning-grid > .card-wrapper:nth-child(3) { animation-delay: 0.15s; }
.earning-grid > .card-wrapper:nth-child(4) { animation-delay: 0.2s; }

.chart-grid .chart-card { animation-delay: 0.2s; }

.insight-grid .insight-card { animation-delay: 0.25s; }

/* Card hover float */
.card-wrapper {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-wrapper:hover {
  transform: translateY(-6px);
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
  .aurora { opacity: 0.2; }
  .earning-card { height: 300px; }
  .earning-grid-single .card-value.big .number { font-size: 60px; }
}

/* Responsive — Mobile (≤640px) */
@media (max-width: 640px) {
  .container { padding: 60px 16px 40px; }

  /* Navbar squeeze */
  .navbar { padding: 10px 14px; }
  .logo { gap: 8px; font-size: 16px; }
  .logo-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
  .nav-status { padding: 4px 10px; font-size: 11px; letter-spacing: 0; }
  .status-dot { width: 6px; height: 6px; }
  .back-btn { font-size: 12px; padding: 6px 12px; }

  /* Hero */
  .hero-section { min-height: calc(100vh - 60px); padding: 20px 0; }
  .hero-content { padding: 0 8px; }
  .badge { padding: 6px 14px; font-size: 10px; letter-spacing: 1px; gap: 10px; }
  .badge-text { font-size: 10px; }
  .hero-title { font-size: 32px; line-height: 1.35; margin-bottom: 14px; }
  .title-word { padding: 0 2px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 24px; }

  /* Search box */
  .search-box { padding: 4px; }
  .search-inner { padding: 12px 14px; gap: 10px; }
  .search-icon { width: 18px; height: 18px; }
  .search-inner input { font-size: 16px; height: 24px; }
  .search-btn { padding: 12px 18px; font-size: 14px; border-radius: 14px; }
  .search-hint { font-size: 11px; margin-top: 14px; }

  /* User card */
  .user-card { padding: 20px 18px; border-radius: 18px; }
  .user-info { flex-direction: column; text-align: center; gap: 14px; }
  .user-avatar { width: 64px; height: 64px; font-size: 22px; }
  .user-name { font-size: 20px; margin-bottom: 6px; }
  .user-tags { justify-content: center; flex-wrap: wrap; }
  .user-level { font-size: 11px; padding: 3px 10px; }
  .user-update { margin-top: 8px; font-size: 11px; }

  /* Single featured card */
  .earning-grid-single { max-width: 100%; margin: 16px auto 24px; }
  .earning-card { height: 240px; }
  .card-face { padding: 28px 22px; border-radius: 20px; }
  .card-top { margin-bottom: 14px; gap: 10px; }
  .card-icon-wrap.big { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
  .card-label { font-size: 13px; letter-spacing: 0.5px; }
  .card-value.big { margin: 2px 0; }
  .card-value.big .currency { font-size: 22px; }
  .card-value.big .number { font-size: 52px; filter: drop-shadow(0 0 18px rgba(255,107,53,0.3)); }
  .sparkle:nth-child(1) { top: 18px; right: 24px; }
  .sparkle:nth-child(2) { top: 45%; right: 16px; }
  .sparkle:nth-child(3) { bottom: 22px; right: 28px; }

  /* Footer */
  .footer { padding: 32px 20px 24px; font-size: 11px; }
}

/* Ultra narrow phones (≤380px) */
@media (max-width: 380px) {
  .container { padding: 56px 12px 32px; }
  .hero-title { font-size: 28px; }
  .logo-text .highlight { display: none; }
  .earning-card { height: 220px; }
  .card-value.big .currency { font-size: 18px; }
  .card-value.big .number { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #matrixRain, #particles { display: none; }
}
