/* ═══════════════════════════════════════════════════════════════════════════
   ELITE+ DRAMATIC REVAMP v2.0 - Bold Visual Overhaul
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --revamp-primary: #7c3aed;
  --revamp-primary-light: #a78bfa;
  --revamp-secondary: #06b6d4;
  --revamp-accent: #f43f5e;
  --revamp-success: #10b981;
  --revamp-warning: #f59e0b;
  --revamp-glass: rgba(15, 15, 25, 0.8);
  --revamp-glass-border: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DRAMATIC BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */
.home-ultimate {
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(124, 58, 237, 0.35), transparent),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(6, 182, 212, 0.2), transparent),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(244, 63, 94, 0.15), transparent),
    linear-gradient(180deg, #050508 0%, #0a0a14 50%, #050508 100%) !important;
}

.home-gradient-orb {
  filter: blur(100px) !important;
  opacity: 0.8 !important;
}

.home-orb-1 {
  width: 800px !important;
  height: 800px !important;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5) 0%, transparent 60%) !important;
  animation: megaFloat 25s ease-in-out infinite !important;
}

.home-orb-2 {
  width: 600px !important;
  height: 600px !important;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 60%) !important;
  animation: megaFloat 20s ease-in-out infinite reverse !important;
}

.home-orb-3 {
  width: 500px !important;
  height: 500px !important;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.35) 0%, transparent 60%) !important;
  animation: megaFloat 22s ease-in-out infinite !important;
}

@keyframes megaFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOPBAR - Align with hero padding
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   TOPBAR - Align with hero padding
   ═══════════════════════════════════════════════════════════════════════════ */
.topbar {
  padding: 0 clamp(18px, 3vw, 46px) !important;
}

.content {
  padding: var(--space-6) clamp(18px, 3vw, 46px) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION - FIXED LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.home-hero-ultimate {
  /* True 2-column grid layout */
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px) !important;
  align-items: center !important;
  gap: clamp(16px, 3vw, 48px) !important;

  /* Clamped height - no excessive empty space */
  min-height: clamp(340px, 42vh, 480px) !important;

  /* Consistent padding matching topbar */
  padding: clamp(24px, 3vw, 46px) !important;
  margin-bottom: 2rem !important;

  /* Premium glass styling */
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
    linear-gradient(225deg, rgba(6, 182, 212, 0.08) 0%, transparent 40%), rgba(10, 10, 20, 0.92) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
  border-radius: 22px !important;
  box-shadow:
    0 0 80px rgba(124, 58, 237, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}

/* Top gradient accent line - inset and rounded */
.home-hero-ultimate::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #7c3aed 15%,
    #06b6d4 40%,
    #f43f5e 65%,
    #fbbf24 85%,
    transparent 100%
  );
  border-radius: 2px;
  opacity: 0.8;
  animation: borderGlow 3s ease-in-out infinite;
  z-index: 1;
}

/* Alternative: Full gradient border that follows rounded corners */
.home-hero-ultimate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.5) 0%,
    rgba(6, 182, 212, 0.3) 50%,
    rgba(244, 63, 94, 0.3) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-hero-ultimate:hover::after {
  opacity: 0.6;
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.5;
    filter: blur(0px);
  }
  50% {
    opacity: 1;
    filter: blur(0.5px);
  }
}

.home-hero-badge {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.2)) !important;
  border: 1px solid rgba(124, 58, 237, 0.5) !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 700 !important;
  animation: badgeGlow 2s ease-in-out infinite !important;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3) !important;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow:
      0 0 40px rgba(124, 58, 237, 0.6),
      0 0 60px rgba(6, 182, 212, 0.3);
  }
}

.hero-badge-dot {
  width: 10px !important;
  height: 10px !important;
  background: #10b981 !important;
  box-shadow:
    0 0 15px #10b981,
    0 0 30px #10b981 !important;
  animation: dotPulse 1.5s ease-in-out infinite !important;
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px #10b981;
  }
  50% {
    transform: scale(1.3);
    box-shadow:
      0 0 20px #10b981,
      0 0 40px #10b981;
  }
}

.home-hero-title {
  font-size: 4.5rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  text-shadow: 0 0 60px rgba(124, 58, 237, 0.3) !important;
}

.home-hero-gradient {
  background: linear-gradient(
    135deg,
    #a78bfa 0%,
    #06b6d4 35%,
    #f43f5e 65%,
    #fbbf24 100%
  ) !important;
  background-size: 300% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: rainbowShift 5s ease infinite !important;
}

@keyframes rainbowShift {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.home-hero-subtitle {
  font-size: 1.35rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.8 !important;
}

/* Hero Buttons - Premium */
.btn-hero-primary {
  padding: 1.1rem 2.25rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #a855f7 100%) !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 40px rgba(124, 58, 237, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 60px rgba(124, 58, 237, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: "";
  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.5s;
}

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

.btn-hero-primary:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow:
    0 20px 60px rgba(124, 58, 237, 0.6),
    0 0 80px rgba(124, 58, 237, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

.btn-hero-secondary {
  padding: 1.1rem 2.25rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(20px) !important;
  transition: all 0.3s ease !important;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(124, 58, 237, 0.5) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Hero Content - left column */
.home-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CTA row - flex wrap with consistent sizing */
.home-hero-actions {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.home-hero-actions .btn-hero-primary,
.home-hero-actions .btn-hero-secondary {
  min-width: 160px !important;
  justify-content: center !important;
}

/* Showcase container - right column viz */
.home-hero-showcase {
  position: relative !important;
  width: min(380px, 36vw) !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  justify-self: end !important;
  flex-shrink: 0 !important;
}

/* Showcase Orbitals */
.showcase-center {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(6, 182, 212, 0.3)), rgba(10, 10, 20, 0.9) !important;
  border: 2px solid rgba(124, 58, 237, 0.4) !important;
  box-shadow:
    0 0 80px rgba(124, 58, 237, 0.5),
    0 0 150px rgba(124, 58, 237, 0.25),
    inset 0 0 50px rgba(124, 58, 237, 0.2) !important;
}

.showcase-value {
  font-size: 2.5rem !important;
  font-weight: 900 !important;
}

.showcase-ring {
  border-width: 2px !important;
}

.showcase-ring-outer {
  border-color: rgba(124, 58, 237, 0.3) !important;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2) !important;
}

.showcase-ring-middle {
  border-color: rgba(6, 182, 212, 0.3) !important;
}

.showcase-ring-inner {
  border-color: rgba(244, 63, 94, 0.25) !important;
}

.showcase-orbital {
  background: rgba(15, 15, 25, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.showcase-orbital:hover {
  transform: scale(1.2) !important;
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIVE STATS BAR - COMPLETELY NEW LOOK
   ═══════════════════════════════════════════════════════════════════════════ */
.live-stats-bar {
  gap: 1.25rem !important;
  margin-bottom: 2.5rem !important;
}

.live-stat-item {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.98), rgba(12, 12, 22, 0.99)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 1.5rem !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.live-stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--revamp-primary), var(--revamp-secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.live-stat-item:hover::before {
  opacity: 1;
}

.live-stat-item:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(124, 58, 237, 0.15) !important;
}

.live-stat-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-stat-icon.purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(124, 58, 237, 0.1)) !important;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.3) !important;
}

.live-stat-icon.blue {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.1)) !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3) !important;
}

.live-stat-icon.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1)) !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3) !important;
}

.live-stat-icon.orange {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1)) !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.3) !important;
}

.live-stat-value {
  font-size: 2rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.live-stat-trend.up {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border-radius: 8px !important;
  padding: 6px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOCUS CARD - DRAMATIC GLOW
   ═══════════════════════════════════════════════════════════════════════════ */
.focus-card-ultimate {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08)),
    rgba(12, 12, 22, 0.98) !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  border-radius: 28px !important;
  padding: 2rem !important;
  margin-bottom: 2.5rem !important;
  box-shadow:
    0 0 80px rgba(124, 58, 237, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.4) !important;
  position: relative;
  overflow: hidden;
}

.focus-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1), transparent 50%);
  animation: rotateGlow 10s linear infinite;
  pointer-events: none;
}

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

.focus-title-ultimate {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
}

.focus-ai-badge {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(139, 92, 246, 0.2)) !important;
  border: 1px solid rgba(124, 58, 237, 0.4) !important;
  padding: 0.4rem 1rem !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

.ai-badge-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: aiPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px #10b981;
}

@keyframes aiPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.focus-message-ultimate {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.focus-progress-bar {
  height: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  overflow: hidden;
  margin-top: 1.5rem !important;
}

.focus-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #06b6d4, #f43f5e) !important;
  background-size: 200% auto;
  animation: progressShimmer 2s linear infinite;
  border-radius: 10px;
}

@keyframes progressShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME CARDS - GLASS MORPHISM
   ═══════════════════════════════════════════════════════════════════════════ */
.home-card {
  background: rgba(15, 15, 25, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 1.75rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.home-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(124, 58, 237, 0.1) !important;
}

.home-card-icon {
  font-size: 1.5rem !important;
}

.home-card-title h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

.home-card-action {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.1)) !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  border-radius: 12px !important;
  padding: 0.6rem 1.25rem !important;
  font-weight: 600 !important;
  color: var(--revamp-primary-light) !important;
  transition: all 0.3s ease !important;
}

.home-card-action:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(124, 58, 237, 0.2)) !important;
  border-color: rgba(124, 58, 237, 0.5) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.25) !important;
}

/* Quick Actions Grid */
.quick-actions-grid {
  gap: 1rem !important;
}

.quick-action-btn {
  background: rgba(20, 20, 32, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 1.25rem !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.quick-action-btn:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(124, 58, 237, 0.15) !important;
}

.quick-action-icon-wrap {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem !important;
  transition: all 0.3s ease !important;
}

.quick-action-btn:hover .quick-action-icon-wrap {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4) !important;
  transform: scale(1.1) !important;
}

.quick-action-icon {
  font-size: 1.75rem !important;
}

.quick-action-label {
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

/* Streaks */
.streak-showcase-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 16px !important;
  padding: 1rem !important;
  transition: all 0.3s ease !important;
}

.streak-showcase-item:hover {
  background: rgba(249, 115, 22, 0.1) !important;
  transform: translateY(-4px) !important;
}

.streak-count {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #f97316, #fbbf24) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.streak-fire-icon {
  font-size: 1.5rem !important;
}

/* AI Insight Card */
.home-card-ai-insight {
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.06)),
    rgba(12, 12, 22, 0.98) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
}

.home-card-ai-insight:hover {
  border-color: rgba(139, 92, 246, 0.5) !important;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(139, 92, 246, 0.15) !important;
}

.ai-insight-action {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1)) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 14px !important;
  padding: 0.9rem 1.5rem !important;
  font-weight: 600 !important;
  color: var(--revamp-primary-light) !important;
  width: 100% !important;
  margin-top: 1rem !important;
  transition: all 0.3s ease !important;
}

.ai-insight-action:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(124, 58, 237, 0.2)) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25) !important;
}

/* Weekly Stats */
.weekly-stat-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 16px !important;
  padding: 1.25rem !important;
  transition: all 0.3s ease !important;
}

.weekly-stat-box:hover {
  background: rgba(124, 58, 237, 0.08) !important;
  transform: translateY(-4px) !important;
}

.weekly-stat-value {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #fff, var(--revamp-primary-light)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.weekly-bar-fill {
  background: linear-gradient(90deg, #7c3aed, #a78bfa) !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5) !important;
  border-radius: 10px !important;
}

.weekly-bar-fill.goals {
  background: linear-gradient(90deg, #10b981, #34d399) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important;
}

.weekly-bar-fill.assists {
  background: linear-gradient(90deg, #06b6d4, #22d3ee) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5) !important;
}

.weekly-bar-fill.training {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa) !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5) !important;
}

/* Milestone Cards */
.milestone-section {
  margin-top: 2.5rem !important;
}

.milestone-card {
  background: rgba(15, 15, 25, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 1.5rem !important;
  transition: all 0.35s ease !important;
}

.milestone-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(124, 58, 237, 0.1) !important;
}

.milestone-card-icon {
  font-size: 2rem !important;
}

.milestone-card-fill {
  background: linear-gradient(90deg, #7c3aed, #a78bfa) !important;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5) !important;
  border-radius: 10px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.dash-hero {
  margin-bottom: 2rem !important;
}

.hero-stat {
  background: rgba(15, 15, 25, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 2rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--revamp-primary), var(--revamp-secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-stat:hover::before {
  opacity: 1;
}

.hero-stat:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(124, 58, 237, 0.15) !important;
}

.hero-stat-primary {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.2), transparent 60%), rgba(15, 15, 25, 0.98) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
}

.hero-stat-primary:hover {
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(124, 58, 237, 0.2) !important;
}

.hero-stat-value {
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, #fff 0%, var(--revamp-primary-light) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-stat-label {
  font-size: 0.95rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 500 !important;
}

.hero-stat-icon {
  font-size: 2.5rem !important;
  opacity: 0.8 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD PAGE - COMPLETE REVAMP
   ═══════════════════════════════════════════════════════════════════════════ */

/* Dashboard Hero Section */
.dash-hero {
  margin-bottom: 2rem !important;
  position: relative;
}

.dash-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dash-hero-main {
  display: grid !important;
  grid-template-columns: 2fr repeat(3, 1fr) !important;
  gap: 1.25rem !important;
  position: relative;
  z-index: 1;
}

.hero-stat {
  background: linear-gradient(145deg, rgba(20, 20, 32, 0.98), rgba(12, 12, 22, 0.99)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 1.75rem !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--revamp-primary), var(--revamp-secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-stat:hover::before {
  opacity: 1;
}

.hero-stat:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(124, 58, 237, 0.15) !important;
}

.hero-stat-primary {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.15), transparent 60%),
    linear-gradient(145deg, rgba(20, 20, 35, 0.98), rgba(12, 12, 25, 0.99)) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
}

.hero-stat-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1), transparent 50%);
  pointer-events: none;
}

.hero-stat-primary:hover {
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(124, 58, 237, 0.2) !important;
}

.hero-stat-value {
  font-size: 2.75rem !important;
  font-weight: 800 !important;
  font-family: var(--font-mono) !important;
  background: linear-gradient(135deg, #fff 0%, var(--revamp-primary-light) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  line-height: 1.1 !important;
}

.hero-stat-primary .hero-stat-value {
  font-size: 3.5rem !important;
}

.hero-stat-label {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 500 !important;
  margin-top: 0.5rem !important;
}

.hero-stat-icon {
  position: absolute !important;
  right: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 2.25rem !important;
  opacity: 0.5 !important;
  transition: all 0.3s ease !important;
}

.hero-stat:hover .hero-stat-icon {
  opacity: 0.8 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.hero-stat-primary .hero-stat-icon {
  font-size: 3rem !important;
}

/* Dashboard Grid - Premium Layout */
.dashboard-grid-premium {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 1.25rem !important;
}

.dashboard-grid-premium .card,
.card-chart,
.card-stats,
.card-radar,
.card-matches,
.card-actions {
  background: linear-gradient(145deg, rgba(18, 18, 28, 0.98), rgba(12, 12, 20, 0.99)) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 22px !important;
  padding: 1.5rem !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard-grid-premium .card::before,
.card-chart::before,
.card-stats::before,
.card-radar::before,
.card-matches::before,
.card-actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.dashboard-grid-premium .card:hover,
.card-chart:hover,
.card-stats:hover,
.card-radar:hover,
.card-matches:hover,
.card-actions:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(124, 58, 237, 0.08) !important;
}

/* Card Header */
.card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.card-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.card-icon {
  font-size: 1.35rem !important;
}

.card-title-group h3 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
}

/* Stats Grid Premium */
.stats-grid-premium {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}

.stat-item-premium {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1.25rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
}

.stat-item-premium:hover {
  background: rgba(124, 58, 237, 0.08) !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
  transform: translateY(-3px) !important;
}

.stat-item-icon {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  font-size: 1.35rem !important;
}

.stat-item-icon.purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(124, 58, 237, 0.1)) !important;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2) !important;
}

.stat-item-icon.green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1)) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2) !important;
}

.stat-item-icon.blue {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.1)) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2) !important;
}

.stat-item-icon.orange {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1)) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2) !important;
}

.stat-item-value {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  font-family: var(--font-mono) !important;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.stat-item-label {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 0.25rem !important;
}

/* Chart Containers */
.chart-container {
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 16px !important;
  padding: 1rem !important;
  position: relative;
  height: 400px !important;
}

.chart-empty {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3rem !important;
  text-align: center !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 16px !important;
  border: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.chart-empty .empty-icon {
  font-size: 2.5rem !important;
  margin-bottom: 1rem !important;
  opacity: 0.6 !important;
  animation: floatEmoji 3s ease-in-out infinite !important;
}

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

.chart-empty p {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9rem !important;
}

/* Quick Actions in Dashboard */
.card-actions .quick-actions-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
}

.card-actions .quick-action-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 1.25rem 1rem !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.card-actions .quick-action-btn:hover {
  background: rgba(124, 58, 237, 0.1) !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.card-actions .qa-icon {
  font-size: 1.5rem !important;
}

.card-actions .qa-text {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Mini Matches List */
.mini-matches-premium {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.mini-match-card {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1rem !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 14px !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.mini-match-card:hover {
  background: rgba(124, 58, 237, 0.08) !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
  transform: translateX(4px) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD & ANALYTICS RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .dash-hero-main {
    grid-template-columns: 1fr 1fr !important;
  }

  .hero-stat-primary {
    grid-column: span 2 !important;
  }

  .dashboard-grid-premium .card-chart {
    grid-column: span 12 !important;
  }

  .dashboard-grid-premium .card-stats {
    grid-column: span 6 !important;
  }

  .dashboard-grid-premium .card-radar {
    grid-column: span 6 !important;
  }

  .dashboard-grid-premium .card-matches {
    grid-column: span 7 !important;
  }

  .dashboard-grid-premium .card-actions {
    grid-column: span 5 !important;
  }
}

@media (max-width: 768px) {
  .dash-hero-main {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .hero-stat-primary {
    grid-column: span 1 !important;
  }

  .hero-stat-value {
    font-size: 2rem !important;
  }

  .hero-stat-primary .hero-stat-value {
    font-size: 2.5rem !important;
  }

  .dashboard-grid-premium {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .dashboard-grid-premium .card-chart,
  .dashboard-grid-premium .card-stats,
  .dashboard-grid-premium .card-radar,
  .dashboard-grid-premium .card-matches,
  .dashboard-grid-premium .card-actions {
    grid-column: span 1 !important;
  }

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

  .analytics-grid {
    grid-template-columns: 1fr !important;
  }

  .analytics-card-wide {
    grid-column: span 1 !important;
  }

  .page-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .toolbar-right {
    width: 100% !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 480px) {
  .card-actions .quick-actions-grid {
    grid-template-columns: 1fr !important;
  }

  .kpi-value {
    font-size: 1.75rem !important;
  }

  .analytics-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE - Home Hero Layout
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet/smaller desktop - 980px breakpoint */
@media (max-width: 980px) {
  .home-hero-ultimate {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    text-align: center !important;
    gap: clamp(20px, 4vw, 32px) !important;
    padding: clamp(24px, 4vw, 40px) !important;
  }

  .home-hero-content {
    order: 2 !important;
  }

  .home-hero-showcase {
    order: 1 !important;
    justify-self: center !important;
    width: min(320px, 70vw) !important;
  }

  .home-hero-subtitle {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home-hero-actions {
    justify-content: center !important;
  }

  .home-hero-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
  }
}

/* Mobile - 768px */
@media (max-width: 768px) {
  .home-hero-ultimate {
    padding: clamp(20px, 5vw, 32px) !important;
    border-radius: 18px !important;
  }

  .home-hero-title {
    font-size: 2rem !important;
  }

  .home-hero-subtitle {
    font-size: 1rem !important;
  }

  .home-hero-showcase {
    width: min(280px, 75vw) !important;
  }

  .showcase-value {
    font-size: 2rem !important;
  }

  .showcase-center {
    width: 110px !important;
    height: 110px !important;
  }

  .showcase-orbital {
    width: 55px !important;
    height: 55px !important;
  }

  .orbital-value {
    font-size: 1rem !important;
  }

  .orbital-label {
    font-size: 0.55rem !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.9rem 1.5rem !important;
    font-size: 0.95rem !important;
    min-width: 140px !important;
  }

  .hero-stat-value {
    font-size: 2.5rem !important;
  }
}

/* Small mobile - 480px */
@media (max-width: 480px) {
  .home-hero-ultimate {
    padding: 20px 16px !important;
    margin-bottom: 1.5rem !important;
  }

  .home-hero-title {
    font-size: 1.75rem !important;
  }

  .home-hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }

  .home-hero-showcase {
    width: 240px !important;
  }

  .home-hero-actions {
    flex-direction: column !important;
    width: 100% !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    min-width: unset !important;
  }

  .home-hero-badge {
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   CRITICAL FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix Season Overview clipping - ensure proper overflow */
.card-stats,
.stats-grid-premium {
  overflow: visible !important;
}

.stat-item-premium {
  overflow: hidden !important;
}

/* Move floating emojis so they don't collide with text */
.chart-empty .empty-icon {
  animation: none !important; /* Remove float animation that causes collision */
  opacity: 0.4 !important;
  margin-bottom: 0.75rem !important;
  font-size: 2rem !important;
}

/* Remove animation from empty icons globally */
.empty-icon {
  animation: none !important;
}

/* STOP hero stat numbers from shaking on hover - use transform on parent only */
.hero-stat {
  transform: translateY(0) !important;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

.hero-stat:hover {
  transform: translateY(-4px) !important;
}

/* Ensure child elements don't have their own transforms that cause shaking */
.hero-stat-value,
.hero-stat-label,
.hero-stat-content {
  transform: none !important;
  transition: color 0.3s ease !important;
}

.hero-stat-icon {
  transform: translateY(-50%) !important;
  transition: opacity 0.3s ease !important;
}

.hero-stat:hover .hero-stat-icon {
  transform: translateY(-50%) !important;
  opacity: 0.7 !important;
}

/* Remove any scale transforms that cause shaking */
.hero-stat:hover {
  transform: translateY(-4px) !important;
  /* Removed scale(1.02) which causes text jitter */
}

/* Ensure stat values are stable */
.hero-stat-value {
  will-change: auto !important;
  backface-visibility: hidden !important;
  -webkit-font-smoothing: antialiased !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ZOOM CONTROL
   ═══════════════════════════════════════════════════════════════════════════ */

/* Applied via JS when zoom is enabled */
body.zoom-out-enabled {
  zoom: 0.9;
  -moz-transform: scale(0.9);
  -moz-transform-origin: top left;
}

body.zoom-out-enabled .main-app {
  width: 111.11%; /* Compensate for zoom to fill viewport */
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAB BUTTONS FIX
   ═══════════════════════════════════════════════════════════════════════════ */

.fab-button {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #7c3aed, #9333ea) !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow:
    0 8px 30px rgba(124, 58, 237, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.3) !important;
  z-index: 1000 !important;
  transition: all 0.3s ease !important;
}

.fab-button:hover {
  transform: scale(1.1) !important;
  box-shadow:
    0 12px 40px rgba(124, 58, 237, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.fab-icon {
  font-size: 2rem !important;
  color: #fff !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

.fab-pulse {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;
  background: rgba(124, 58, 237, 0.4) !important;
  animation: fabPulse 2s ease-out infinite !important;
  pointer-events: none !important;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@media (min-width: 769px) {
  .fab-button {
    display: none !important;
  }
}
