/* ═══════════════════════════════════════════════════════════════════════════
   ELITE+ REVAMPED PAGES - PREMIUM UI STYLES
   Matches, Training, Goals - 10x Better Experience
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.revamp-hero {
  position: relative;
  padding: 40px 24px;
  margin: -20px -24px 24px -24px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(99, 102, 241, 0.1) 50%,
    rgba(16, 16, 20, 0.95) 100%
  );
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.matches-hero-new {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15) 0%,
    rgba(16, 185, 129, 0.1) 50%,
    rgba(16, 16, 20, 0.95) 100%
  );
  border-bottom-color: rgba(34, 197, 94, 0.3);
}

.training-hero-new {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(99, 102, 241, 0.1) 50%,
    rgba(16, 16, 20, 0.95) 100%
  );
  border-bottom-color: rgba(59, 130, 246, 0.3);
}

.goals-hero-new {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15) 0%,
    rgba(249, 115, 22, 0.1) 50%,
    rgba(16, 16, 20, 0.95) 100%
  );
  border-bottom-color: rgba(245, 158, 11, 0.3);
}

/* Hero Background Effects */
.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.5);
  top: -50px;
  right: -50px;
}

.matches-hero-new .hero-orb-1 {
  background: rgba(34, 197, 94, 0.5);
}
.training-hero-new .hero-orb-1 {
  background: rgba(59, 130, 246, 0.5);
}
.goals-hero-new .hero-orb-1 {
  background: rgba(245, 158, 11, 0.5);
}

.hero-orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(99, 102, 241, 0.4);
  bottom: -30px;
  left: 10%;
  animation-delay: -4s;
}

.matches-hero-new .hero-orb-2 {
  background: rgba(16, 185, 129, 0.4);
}
.training-hero-new .hero-orb-2 {
  background: rgba(99, 102, 241, 0.4);
}
.goals-hero-new .hero-orb-2 {
  background: rgba(249, 115, 22, 0.4);
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size:
    100px 100px,
    150px 150px,
    50px 50px;
  animation: particleDrift 20s linear infinite;
}

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

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  font-size: 40px;
  position: relative;
  z-index: 2;
  animation: iconBounce 2s ease-in-out infinite;
}

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

.hero-icon-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  animation: ringPulse 2s ease-in-out infinite;
}

.matches-hero-new .hero-icon-ring {
  border-color: rgba(34, 197, 94, 0.4);
}
.training-hero-new .hero-icon-ring {
  border-color: rgba(59, 130, 246, 0.4);
}
.goals-hero-new .hero-icon-ring {
  border-color: rgba(245, 158, 11, 0.4);
}

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

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(139, 92, 246, 0.3);
}

.matches-hero-new .hero-title {
  text-shadow: 0 2px 20px rgba(34, 197, 94, 0.3);
}
.training-hero-new .hero-title {
  text-shadow: 0 2px 20px rgba(59, 130, 246, 0.3);
}
.goals-hero-new .hero-title {
  text-shadow: 0 2px 20px rgba(245, 158, 11, 0.3);
}

.hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MEGA STATS GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.mega-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mega-stat-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.9) 0%, rgba(20, 20, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mega-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.mega-stat-card.wins:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
}
.mega-stat-card.draws:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
}
.mega-stat-card.losses:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.15);
}
.mega-stat-card.goals:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
}
.mega-stat-card.assists:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}
.mega-stat-card.sessions:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}
.mega-stat-card.hours:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}
.mega-stat-card.intensity:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
}
.mega-stat-card.streak:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
}
.mega-stat-card.active-goals:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
}
.mega-stat-card.completed-goals:hover {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
}

.mega-stat-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  top: -30px;
  right: -30px;
  pointer-events: none;
}

.mega-stat-card.wins .mega-stat-glow {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
}
.mega-stat-card.losses .mega-stat-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
}
.mega-stat-card.draws .mega-stat-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
}
.mega-stat-card.streak .mega-stat-glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
}

.mega-stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.mega-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.mega-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-stat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.mega-stat-badge.streak-badge {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRO INSIGHTS PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

.pro-insights-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pro-insight-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.9) 0%, rgba(20, 20, 28, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pro-insight-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.pro-insight-card.premium {
  border-color: rgba(245, 158, 11, 0.2);
}

.pro-insight-card.premium:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.pro-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pro-card-icon {
  font-size: 24px;
}

.pro-card-title {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.pro-badge {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.premium-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.pro-card-body {
  position: relative;
}

.pro-card-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.pro-prediction-score {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(139, 92, 246, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.prediction-value {
  font-size: 28px;
  font-weight: 800;
  color: #8b5cf6;
}

.prediction-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.form-trend-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.trend-arrow {
  font-size: 20px;
  color: #22c55e;
}

.trend-text {
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
}

/* Pro Card Lock Overlay */
.pro-card-lock {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 16px;
}

.pro-card-lock:hover {
  background: rgba(10, 10, 15, 0.75);
}

.pro-card-lock .lock-icon {
  font-size: 28px;
}

.pro-card-lock .lock-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Hide lock for Pro users */
[data-user-tier="pro"] .pro-insight-card:not(.premium) .pro-card-lock,
[data-user-tier="premium"] .pro-card-lock {
  display: none;
}

/* Skill Bars */
.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  width: 70px;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* AI Recommendation */
.ai-recommendation {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rec-focus {
  font-size: 14px;
  font-weight: 700;
  color: #818cf8;
}

.rec-reason {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DRILLS LIBRARY SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.drills-library-section {
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.6) 0%, rgba(20, 20, 28, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

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

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.drills-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.drill-card-mini {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drill-card-mini:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.drill-card-mini.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.drill-icon {
  font-size: 24px;
}

.drill-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GOAL TEMPLATES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.goal-templates-section {
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.6) 0%, rgba(20, 20, 28, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.goal-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.goal-template-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: inherit;
}

.goal-template-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.template-icon {
  font-size: 24px;
}

.template-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Suggested Goals */
.suggested-goals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggested-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sg-icon {
  font-size: 18px;
}

.sg-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Milestone Preview */
.milestone-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.milestone-item.locked {
  opacity: 0.6;
}

.milestone-icon {
  font-size: 18px;
}

.milestone-text {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.milestone-status {
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
}

.milestone-item.locked .milestone-status {
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED TOOLBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.revamp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.8) 0%, rgba(20, 20, 28, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 20px;
}

.toolbar-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.toolbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
}

.toolbar-search .search-input {
  width: 100%;
  padding: 12px 12px 12px 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.toolbar-search .search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.toolbar-search .search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.toolbar-filters {
  display: flex;
  gap: 8px;
}

.filter-select {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
}

.filter-select option {
  background: #1a1a24;
  color: #fff;
}

.btn-add-new {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-add-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.btn-icon {
  font-size: 18px;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIST CONTAINERS
   ═══════════════════════════════════════════════════════════════════════════ */

.revamp-list-container {
  background: linear-gradient(145deg, rgba(25, 25, 35, 0.6) 0%, rgba(15, 15, 22, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px;
  min-height: 200px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════════════════════ */

.empty-state-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.empty-icon {
  font-size: 48px;
  position: relative;
  z-index: 2;
}

.empty-icon-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: emptyPulse 2s ease-out infinite;
}

@keyframes emptyPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.empty-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px 0;
  max-width: 300px;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */

.fab-button {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.fab-button:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 10px 35px rgba(139, 92, 246, 0.6);
}

.fab-icon {
  font-weight: 300;
  line-height: 1;
}

.fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.5);
  animation: fabPulse 2s ease-out infinite;
}

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

.matches-fab {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}
.matches-fab .fab-pulse {
  border-color: rgba(34, 197, 94, 0.5);
}
.matches-fab:hover {
  box-shadow: 0 10px 35px rgba(34, 197, 94, 0.6);
}

.training-fab {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}
.training-fab .fab-pulse {
  border-color: rgba(59, 130, 246, 0.5);
}
.training-fab:hover {
  box-shadow: 0 10px 35px rgba(59, 130, 246, 0.6);
}

.goals-fab {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}
.goals-fab .fab-pulse {
  border-color: rgba(245, 158, 11, 0.5);
}
.goals-fab:hover {
  box-shadow: 0 10px 35px rgba(245, 158, 11, 0.6);
}

/* Hide FAB when not on relevant pages */
.fab-button {
  display: none;
}

[data-page="matches"].active ~ .fab-button.matches-fab,
[data-page="training"].active ~ .fab-button.training-fab,
[data-page="goals"].active ~ .fab-button.goals-fab {
  display: flex;
}

/* Alternative: Show FAB based on page section being visible */
section.page[data-page="matches"]:not(.active) .fab-button,
section.page[data-page="training"]:not(.active) .fab-button,
section.page[data-page="goals"]:not(.active) .fab-button {
  display: none;
}

section.page[data-page="matches"].active .fab-button,
section.page[data-page="training"].active .fab-button,
section.page[data-page="goals"].active .fab-button {
  display: flex;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .revamp-hero {
    padding: 30px 16px;
    margin: -16px -20px 20px -20px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-icon-wrap {
    width: 56px;
    height: 56px;
  }

  .hero-icon {
    font-size: 32px;
  }

  .mega-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .mega-stat-card {
    padding: 16px 12px;
  }

  .mega-stat-value {
    font-size: 26px;
  }

  .pro-insights-panel {
    grid-template-columns: 1fr;
  }

  .revamp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-search {
    min-width: 100%;
  }

  .toolbar-filters {
    flex-wrap: wrap;
  }

  .filter-select {
    flex: 1;
    min-width: 120px;
  }

  .btn-add-new {
    justify-content: center;
  }

  .fab-button {
    width: 52px;
    height: 52px;
    font-size: 24px;
    bottom: 80px;
    right: 16px;
  }

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

@media (max-width: 480px) {
  .mega-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

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

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS & MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.mega-stat-card,
.pro-insight-card,
.drill-card-mini,
.goal-template-btn {
  animation: fadeInUp 0.5s ease backwards;
}

.mega-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}
.mega-stat-card:nth-child(2) {
  animation-delay: 0.15s;
}
.mega-stat-card:nth-child(3) {
  animation-delay: 0.2s;
}
.mega-stat-card:nth-child(4) {
  animation-delay: 0.25s;
}
.mega-stat-card:nth-child(5) {
  animation-delay: 0.3s;
}
.mega-stat-card:nth-child(6) {
  animation-delay: 0.35s;
}

.pro-insight-card:nth-child(1) {
  animation-delay: 0.2s;
}
.pro-insight-card:nth-child(2) {
  animation-delay: 0.3s;
}
.pro-insight-card:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* Number counter animation */
.mega-stat-value {
  animation: countUp 0.8s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   PRO FEATURE FULL-PAGE LOCK
   ═══════════════════════════════════════════════════════════════════════════ */

.pro-feature-lock {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.98) 0%, rgba(20, 20, 30, 0.95) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.pro-feature-lock.hidden {
  display: none;
}

.pro-lock-content {
  max-width: 400px;
  text-align: center;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  animation: fadeInUp 0.4s ease-out;
}

.pro-lock-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.pro-lock-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
}

.pro-lock-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.pro-lock-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.pro-lock-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pro-lock-features li:last-child {
  border-bottom: none;
}

.btn-upgrade-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 12px;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-upgrade-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

/* Hide lock for PRO/Premium users */
[data-user-tier="pro"] .pro-feature-lock,
[data-user-tier="premium"] .pro-feature-lock {
  display: none;
}
