/**
 * Career Intelligence Premium Upgrade - Elite+ v6.0
 * Enhanced visual effects, animations, and premium styling
 * V6.0: Position-aware visuals, glass morphism, micro-interactions
 */

/* ═══════════════════════════════════════════════════════════════════════════
   V6.0 CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════════════════ */

.ci {
  --ci-gold: #f59e0b;
  --ci-gold-light: #fcd34d;
  --ci-purple: #8b5cf6;
  --ci-purple-light: #a78bfa;
  --ci-green: #22c55e;
  --ci-green-light: #4ade80;
  --ci-blue: #3b82f6;
  --ci-blue-light: #60a5fa;
  --ci-pink: #ec4899;
  --ci-cyan: #06b6d4;
  --ci-glass-bg: rgba(15, 15, 20, 0.7);
  --ci-glass-border: rgba(255, 255, 255, 0.08);
  --ci-glass-shine: rgba(255, 255, 255, 0.05);
  --ci-transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ci-transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED AMBIENT BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */

.ci {
  position: relative;
  background: linear-gradient(180deg, 
    rgba(10, 10, 15, 1) 0%, 
    rgba(15, 12, 25, 1) 30%,
    rgba(10, 15, 20, 1) 60%,
    rgba(10, 10, 15, 1) 100%
  );
}

.ci-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Animated gradient mesh background */
.ci-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
  animation: ciAmbientPulse 15s ease-in-out infinite;
}

@keyframes ciAmbientPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* Floating particles */
.ci-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.25), transparent);
  background-size: 100% 100%;
  animation: ciStarsTwinkle 10s ease-in-out infinite;
}

@keyframes ciStarsTwinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.ci-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.ci-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(217, 119, 6, 0.2) 40%, transparent 70%);
  top: -250px;
  right: -200px;
  animation: ciOrb1Float 25s ease-in-out infinite;
}

.ci-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(99, 102, 241, 0.15) 40%, transparent 70%);
  bottom: 10%;
  left: -200px;
  animation: ciOrb2Float 30s ease-in-out infinite;
}

.ci-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.1) 40%, transparent 70%);
  top: 40%;
  right: 5%;
  animation: ciOrb3Float 20s ease-in-out infinite;
}

/* Add a 4th orb for more depth */
.ci-ambient .ci-orb-4 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
  top: 60%;
  left: 30%;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: ciOrb4Float 22s ease-in-out infinite;
}

@keyframes ciOrb1Float {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(40px, -30px) scale(1.08) rotate(5deg); }
  50% { transform: translate(-30px, 40px) scale(0.95) rotate(-3deg); }
  75% { transform: translate(30px, 30px) scale(1.03) rotate(2deg); }
}

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

@keyframes ciOrb3Float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -30px) scale(1.15); }
}

@keyframes ciOrb4Float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(0.9); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM HERO HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px 40px;
  margin-bottom: 40px;
}

.ci-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: linear-gradient(135deg, 
    rgba(245, 158, 11, 0.25) 0%, 
    rgba(217, 119, 6, 0.15) 50%,
    rgba(139, 92, 246, 0.15) 100%
  );
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fcd34d;
  margin-bottom: 24px;
  box-shadow: 
    0 0 30px rgba(245, 158, 11, 0.2),
    0 0 60px rgba(245, 158, 11, 0.1),
    inset 0 0 20px rgba(245, 158, 11, 0.1);
  animation: ciBadgeGlow 3s ease-in-out infinite;
}

@keyframes ciBadgeGlow {
  0%, 100% { 
    box-shadow: 
      0 0 30px rgba(245, 158, 11, 0.2),
      0 0 60px rgba(245, 158, 11, 0.1),
      inset 0 0 20px rgba(245, 158, 11, 0.1);
  }
  50% { 
    box-shadow: 
      0 0 40px rgba(245, 158, 11, 0.35),
      0 0 80px rgba(245, 158, 11, 0.2),
      inset 0 0 30px rgba(245, 158, 11, 0.15);
  }
}

.ci-crown {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
  animation: ciCrownFloat 2.5s ease-in-out infinite;
}

@keyframes ciCrownFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
}

.ci-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #e4e4e7 30%,
    #fcd34d 60%,
    #f59e0b 80%,
    #ffffff 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
  animation: ciTitleShimmer 8s ease-in-out infinite;
  text-shadow: 0 0 60px rgba(245, 158, 11, 0.3);
}

@keyframes ciTitleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ci-subtitle {
  font-size: 17px;
  color: rgba(161, 161, 170, 0.9);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Version badge in hero */
.ci-hero-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ci-version-tag {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a5b4fc;
}

.ci-version-features {
  font-size: 12px;
  color: rgba(161, 161, 170, 0.7);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED SCORE CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-score-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, 
    rgba(24, 24, 27, 0.95) 0%, 
    rgba(15, 15, 18, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 48px;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 100px rgba(245, 158, 11, 0.05);
  position: relative;
  overflow: hidden;
}

/* Animated border gradient */
.ci-score-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(245, 158, 11, 0.3) 0%, 
    transparent 30%,
    transparent 70%,
    rgba(139, 92, 246, 0.2) 100%
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: 28px;
  pointer-events: none;
}

.ci-score-ring-container {
  position: relative;
  width: 220px;
  height: 220px;
}

/* Glow behind the ring */
.ci-score-ring-container::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: ciRingGlow 3s ease-in-out infinite;
}

@keyframes ciRingGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.ci-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 14;
}

.ci-ring-progress {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.5));
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ci-score-value {
  display: block;
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -3px;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
}

.ci-score-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(161, 161, 170, 0.8);
  margin-top: 8px;
}

.ci-level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ci-level-tier {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--level-color, #ffd700);
  text-shadow: 0 0 25px var(--level-color);
  filter: drop-shadow(0 0 8px var(--level-color));
}

.ci-level-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARCHETYPE CARD ENHANCEMENT
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-archetype {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.ci-archetype-icon {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  border-radius: 22px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(139, 92, 246, 0.2);
  animation: ciArchetypeFloat 4s ease-in-out infinite;
}

.ci-archetype-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

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

.ci-archetype-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.ci-archetype-desc {
  font-size: 15px;
  color: rgba(161, 161, 170, 0.9);
  line-height: 1.65;
  margin-bottom: 18px;
}

.ci-pro-name {
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #c4b5fd;
  transition: all 0.3s ease;
}

.ci-pro-name:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.25) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS GRID PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.ci-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 18px;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(15, 15, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ci-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stat-color, rgba(99, 102, 241, 0.5)), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ci-stat-card:hover::before {
  opacity: 1;
}

.ci-stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 16px 50px rgba(0, 0, 0, 0.5),
    0 0 40px var(--stat-glow, rgba(99, 102, 241, 0.1));
}

.ci-stat-matches { --stat-color: rgba(99, 102, 241, 0.6); --stat-glow: rgba(99, 102, 241, 0.15); }
.ci-stat-goals { --stat-color: rgba(34, 197, 94, 0.6); --stat-glow: rgba(34, 197, 94, 0.15); }
.ci-stat-assists { --stat-color: rgba(139, 92, 246, 0.6); --stat-glow: rgba(139, 92, 246, 0.15); }
.ci-stat-winrate { --stat-color: rgba(245, 158, 11, 0.6); --stat-glow: rgba(245, 158, 11, 0.15); }
.ci-stat-rating { --stat-color: rgba(236, 72, 153, 0.6); --stat-glow: rgba(236, 72, 153, 0.15); }
.ci-stat-training { --stat-color: rgba(6, 182, 212, 0.6); --stat-glow: rgba(6, 182, 212, 0.15); }

.ci-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.ci-stat-card:hover .ci-stat-icon {
  transform: scale(1.1);
}

.ci-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.ci-section-title svg {
  color: rgba(161, 161, 170, 0.7);
  filter: drop-shadow(0 0 8px currentColor);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM SECTION PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-form-section {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.7) 0%, rgba(15, 15, 18, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
}

.ci-form-track {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.ci-form-item {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  animation: ciFormPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: var(--delay);
  transition: all 0.3s ease;
}

.ci-form-item:hover {
  transform: scale(1.1) rotate(3deg);
}

.ci-form-empty {
  padding: 20px 40px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  text-align: center;
}

.ci-form-w {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  animation: ciFormPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: var(--delay);
  transition: all 0.3s ease;
}

.ci-form-item:hover {
  transform: scale(1.1) rotate(3deg);
}

.ci-form-w {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.35) 100%);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.ci-form-d {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(202, 138, 4, 0.35) 100%);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #facc15;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
}

.ci-form-l {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.35) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSIGHTS CARDS PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ci-insight-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(15, 15, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  animation: ciSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: var(--delay);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay on hover */
.ci-insight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ci-insight-card:hover::before {
  opacity: 0.03;
}

.ci-insight-card:hover {
  transform: translateX(8px);
  border-left-width: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ci-insight-icon {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 0 10px var(--accent, rgba(99, 102, 241, 0.5)));
}

.ci-insight-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ci-insight-message {
  font-size: 14px;
  color: rgba(161, 161, 170, 0.9);
  line-height: 1.6;
}

.ci-insight-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCOUT REPORT PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-scout-card {
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.95) 0%, rgba(15, 15, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(99, 102, 241, 0.05);
  position: relative;
  overflow: hidden;
}

/* Confidential watermark */
.ci-scout-card::after {
  content: 'CONFIDENTIAL';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 120px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  letter-spacing: 20px;
  white-space: nowrap;
  pointer-events: none;
}

.ci-scout-position {
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
  color: white;
  text-transform: capitalize;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ci-scout-confidential {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ef4444;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  animation: ciConfidentialPulse 2s ease-in-out infinite;
}

@keyframes ciConfidentialPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Scout Content Grid */
.ci-scout-content-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.ci-scout-radar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-radar-svg {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.2));
}

.ci-rating-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.ci-rating-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color), var(--color));
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--color);
}

.ci-rating-value {
  flex: 0 0 32px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: right;
}

.ci-top-attr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(22, 163, 74, 0.18) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.ci-top-attr:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

.ci-top-attr-value {
  font-size: 28px;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STREAKS SECTION PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-streaks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ci-streak-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(15, 15, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.ci-streak-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--streak-glow, rgba(245, 158, 11, 0.1)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ci-streak-card:hover::before {
  opacity: 1;
}

.ci-streak-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
}

.ci-streak-wins { --streak-glow: rgba(245, 158, 11, 0.15); }
.ci-streak-unbeaten { --streak-glow: rgba(99, 102, 241, 0.15); }
.ci-streak-goals { --streak-glow: rgba(34, 197, 94, 0.15); }
.ci-streak-clean { --streak-glow: rgba(6, 182, 212, 0.15); }

.ci-streak-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 12px currentColor);
}

.ci-streak-value {
  font-size: 42px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -2px;
}

.ci-streak-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ci-streak-best {
  font-size: 11px;
  color: rgba(161, 161, 170, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GPT SECTION PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-gpt-section {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.95) 0%, rgba(15, 15, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(139, 92, 246, 0.05);
}

.ci-gpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.ci-gpt-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: #c4b5fd;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.ci-gpt-badge-icon {
  font-size: 18px;
  animation: ciRobotPulse 2s ease-in-out infinite;
}

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

.ci-gpt-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: ciGptSpin 1s linear infinite;
}

@keyframes ciGptSpin {
  to { transform: rotate(360deg); }
}

.ci-gpt-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.ci-gpt-refresh-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(99, 102, 241, 0.2) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLAYER PROFILE RADAR
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-radar-fallback,
.ci-player-radar-container {
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.95) 0%, rgba(15, 15, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 32px;
}

.ci-radar-header {
  margin-bottom: 24px;
}

.ci-radar-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ci-radar-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ci-footer p {
  font-size: 14px;
  color: rgba(161, 161, 170, 0.7);
  margin-bottom: 10px;
}

.ci-footer-disclaimer {
  font-size: 12px !important;
  color: rgba(161, 161, 170, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODEL BADGE (v5.2.1)
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ci-model-version {
  color: #a5b4fc;
}

.ci-model-mode {
  color: #fbbf24;
  padding: 2px 6px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 4px;
}

.ci-model-calibrated {
  color: #34d399;
  padding: 2px 6px;
  background: rgba(52, 211, 153, 0.15);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOW-CONFIDENCE WARNINGS BANNER (v5.2.1)
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-warnings-banner {
  position: relative;
  z-index: 2;
  margin: 0 24px 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ci-warnings-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ci-warnings-header svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.ci-warnings-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ci-warnings-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 20px;
  position: relative;
}

.ci-warnings-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  font-size: 11px;
}

.ci-improve-accuracy {
  border-top: 1px solid rgba(251, 146, 60, 0.2);
  padding-top: 12px;
}

.ci-improve-accuracy summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  list-style: none;
}

.ci-improve-accuracy summary::-webkit-details-marker {
  display: none;
}

.ci-improve-accuracy summary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.ci-improve-accuracy[open] summary svg {
  transform: rotate(180deg);
}

.ci-tips-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ci-tips-list li {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.ci-tips-list li::before {
  content: '💡';
  position: absolute;
  left: 0;
  font-size: 12px;
}

/* Footer stats row */
.ci-footer-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ci-footer-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.ci-footer-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .ci-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .ci-top-attrs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .ci-streaks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ci-score-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .ci-archetype {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .ci-archetype-pros {
    justify-content: center;
  }
  
  .ci-insights-grid {
    grid-template-columns: 1fr;
  }
  
  .ci-scout-content-grid {
    grid-template-columns: 1fr;
  }
  
  .ci-scout-radar {
    order: -1;
  }
  
  .ci-scout-ratings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ci-title {
    font-size: 32px;
  }
  
  .ci-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ci-top-attrs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ci-streaks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ci-score-card {
    padding: 28px;
  }
  
  .ci-score-ring-container {
    width: 180px;
    height: 180px;
  }
  
  .ci-score-value {
    font-size: 52px;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   V2.0 ENHANCEMENTS - Confidence Badges & Explanations
   ═══════════════════════════════════════════════════════════════════════════ */

/* Confidence Badge */
.ci-confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Score Meta Section */
.ci-score-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* Explanation Drawer */
.ci-explanation-drawer {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.ci-explanation-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  list-style: none;
}

.ci-explanation-toggle::-webkit-details-marker {
  display: none;
}

.ci-explanation-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.02);
}

.ci-explanation-toggle svg {
  transition: transform 0.3s ease;
}

.ci-explanation-drawer[open] .ci-explanation-toggle svg {
  transform: rotate(180deg);
}

.ci-explanation-content {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ci-explanation-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 12px;
  border-left: 2px solid rgba(245, 158, 11, 0.4);
  line-height: 1.5;
}

/* Archetype Enhancements */
.ci-archetype-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ci-archetype-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 13px;
}

.ci-secondary-label {
  color: rgba(255, 255, 255, 0.5);
}

.ci-secondary-name {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.ci-secondary-sim {
  color: rgba(139, 92, 246, 0.8);
  font-size: 12px;
}

/* Trajectory Enhancements */
.ci-traj-range {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.ci-development-velocity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin: 16px 0;
}

.ci-velocity-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.ci-velocity-value {
  font-size: 14px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.ci-velocity-value.positive {
  color: #22c55e;
}

.ci-velocity-value.negative {
  color: #ef4444;
}

.ci-velocity-value.neutral {
  color: rgba(255, 255, 255, 0.6);
}

.ci-trajectory-breakdown {
  margin-top: 16px;
}

/* Scout Ratings Legend */
.ci-ratings-legend {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ci-legend-item {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.ci-legend-measured {
  color: #22c55e;
}

.ci-legend-inferred {
  color: #f59e0b;
}

.ci-legend-unmeasured {
  color: rgba(255, 255, 255, 0.4);
}

/* Rating Row Types */
.ci-rating-type-icon {
  width: 16px;
  font-size: 10px;
  text-align: center;
  flex-shrink: 0;
}

.ci-rating-measured .ci-rating-type-icon {
  color: #22c55e;
}

.ci-rating-inferred .ci-rating-type-icon {
  color: #f59e0b;
}

.ci-rating-unmeasured .ci-rating-type-icon {
  color: rgba(255, 255, 255, 0.3);
}

.ci-rating-unmeasured .ci-rating-fill {
  opacity: 0.5;
}

.ci-rating-unmeasured .ci-rating-value {
  color: rgba(255, 255, 255, 0.4);
}

/* Fix rating row layout for new icon */
.ci-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ci-rating-name {
  flex: 1;
  min-width: 0;
}

/* Section title with confidence badge */
.ci-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ci-section-title .ci-confidence-badge {
  font-size: 10px;
  padding: 3px 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MILESTONE PROGRESS SLIDERS
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-milestone-progress {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  animation: fadeInUp 0.4s ease calc(var(--delay, 0) + 0.2s) backwards;
}

.ci-mp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ci-mp-icon {
  font-size: 18px;
}

.ci-mp-title {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.ci-mp-count {
  font-size: 13px;
  font-weight: 700;
  color: #a78bfa;
}

.ci-mp-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ci-mp-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.ci-mp-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEASON GOALS SLIDERS
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-season-goals-section {
  margin-bottom: 32px;
}

.ci-season-goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ci-season-goal {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 18px;
  animation: fadeInUp 0.4s ease calc(var(--delay, 0) + 0.2s) backwards;
}

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

.ci-sg-icon {
  font-size: 20px;
}

.ci-sg-title {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.ci-sg-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ci-sg-badge.on-track {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.ci-sg-badge.behind {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.ci-sg-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ci-sg-bar {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
}

.ci-sg-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent, #6366f1), color-mix(in srgb, var(--accent, #6366f1) 70%, white));
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, #6366f1) 50%, transparent);
}

.ci-sg-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 60px;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPETITIVE INDEX SLIDERS
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-competitive-section {
  margin-bottom: 32px;
}

.ci-competitive-card {
  display: flex;
  gap: 32px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 16px;
  padding: 24px;
}

.ci-ci-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.ci-ci-score {
  font-size: 48px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
  line-height: 1;
}

.ci-ci-rank {
  font-size: 14px;
  font-weight: 600;
  color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.ci-ci-factors {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ci-ci-factor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ci-ci-label {
  flex: 0 0 140px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.ci-ci-bar {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
}

.ci-ci-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.ci-ci-value {
  flex: 0 0 36px;
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MILESTONES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-milestones-section {
  margin-bottom: 32px;
}

.ci-milestones-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.ci-milestones-achieved {
  margin-bottom: 20px;
}

.ci-milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.ci-milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  animation: fadeInUp 0.3s ease calc(var(--delay, 0) + 0.1s) backwards;
  transition: all 0.3s ease;
}

.ci-milestone:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.ci-milestone-achieved {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
  border-color: rgba(34, 197, 94, 0.25);
}

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

.ci-milestone-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.ci-milestone-check {
  font-size: 14px;
  color: #4ade80;
  font-weight: 700;
}

.ci-milestones-upcoming {
  margin-top: 16px;
}

.ci-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PERFORMANCE HEATMAP SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.ci-heatmap-section {
  margin-bottom: 32px;
}

.ci-heatmap-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 24px;
}

.ci-heatmap-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.ci-heatmap-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: rgba(255, 255, 255, calc(0.02 + var(--intensity, 0) * 0.002));
  border: 1px solid rgba(99, 102, 241, calc(0.1 + var(--intensity, 0) * 0.005));
  border-radius: 10px;
  transition: all 0.3s ease;
}

.ci-heatmap-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.ci-hd-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ci-hd-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.ci-hd-count {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

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

.ci-hm-insight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

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

.ci-hm-value {
  font-size: 15px;
  font-weight: 700;
  color: #a78bfa;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .ci-competitive-card {
    flex-direction: column;
    gap: 20px;
  }
  
  .ci-ci-score-container {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }
  
  .ci-ci-label {
    flex: 0 0 100px;
    font-size: 12px;
  }
  
  .ci-heatmap-days {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .ci-milestones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   V6.0 ENHANCED VISUAL UPGRADES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Position Badge - V6.0 Position-Aware */
.ci-position-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a5b4fc;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.ci-position-badge .pos-icon {
  font-size: 16px;
}

/* Enhanced Glass Card Effect */
.ci-glass-card {
  background: linear-gradient(135deg, 
    rgba(20, 20, 25, 0.8) 0%, 
    rgba(15, 15, 20, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.ci-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 100%
  );
}

/* Shimmer Effect on Cards */
.ci-shimmer {
  position: relative;
  overflow: hidden;
}

.ci-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  animation: ciShimmerSlide 3s ease-in-out infinite;
}

@keyframes ciShimmerSlide {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Pulse Ring Animation */
.ci-pulse-ring {
  position: relative;
}

.ci-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ring-color, rgba(245, 158, 11, 0.5));
  animation: ciPulseRing 2s ease-out infinite;
}

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

/* Enhanced Score Display */
.ci-mega-score {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ci-mega-score-value {
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -6px;
  background: linear-gradient(135deg, 
    #fcd34d 0%, 
    #f59e0b 30%,
    #d97706 60%,
    #fcd34d 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ciScoreShine 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.3));
  line-height: 1;
}

@keyframes ciScoreShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Floating Badge Animation */
.ci-floating-badge {
  animation: ciFloatBadge 3s ease-in-out infinite;
}

@keyframes ciFloatBadge {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* Glow Dot Indicator */
.ci-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color, #22c55e);
  box-shadow: 
    0 0 8px var(--dot-color, #22c55e),
    0 0 16px var(--dot-color, #22c55e),
    0 0 24px color-mix(in srgb, var(--dot-color, #22c55e) 50%, transparent);
  animation: ciDotPulse 2s ease-in-out infinite;
}

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

/* Enhanced Progress Bars */
.ci-progress-glow {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.ci-progress-glow-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--progress-color, #6366f1), color-mix(in srgb, var(--progress-color, #6366f1) 80%, white));
  box-shadow: 
    0 0 20px var(--progress-color, #6366f1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: width 1s var(--ci-transition-smooth);
  position: relative;
}

.ci-progress-glow-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 100px 100px 0 0;
}

/* Neon Text Effect */
.ci-neon-text {
  color: var(--neon-color, #c084fc);
  text-shadow: 
    0 0 5px var(--neon-color, #c084fc),
    0 0 10px var(--neon-color, #c084fc),
    0 0 20px color-mix(in srgb, var(--neon-color, #c084fc) 70%, transparent),
    0 0 40px color-mix(in srgb, var(--neon-color, #c084fc) 50%, transparent);
}

/* Card Hover Lift Effect */
.ci-lift-hover {
  transition: all 0.4s var(--ci-transition-smooth);
}

.ci-lift-hover:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(99, 102, 241, 0.1);
}

/* Animated Border Gradient */
.ci-animated-border {
  position: relative;
  background: var(--ci-glass-bg);
  border-radius: 16px;
  z-index: 1;
}

.ci-animated-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(
    var(--border-angle, 0deg),
    rgba(245, 158, 11, 0.5),
    rgba(139, 92, 246, 0.5),
    rgba(34, 197, 94, 0.5),
    rgba(245, 158, 11, 0.5)
  );
  z-index: -1;
  animation: ciRotateBorder 4s linear infinite;
}

.ci-animated-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: inherit;
  z-index: -1;
}

@keyframes ciRotateBorder {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Micro-interaction: Button Press */
.ci-press-effect {
  transition: transform 0.15s ease;
}

.ci-press-effect:active {
  transform: scale(0.96);
}

/* Score Tier Badges */
.ci-tier-elite {
  --tier-color: #c084fc;
  --tier-glow: rgba(192, 132, 252, 0.4);
}

.ci-tier-pro {
  --tier-color: #34d399;
  --tier-glow: rgba(52, 211, 153, 0.4);
}

.ci-tier-semipro {
  --tier-color: #fbbf24;
  --tier-glow: rgba(251, 191, 36, 0.4);
}

.ci-tier-amateur {
  --tier-color: #60a5fa;
  --tier-glow: rgba(96, 165, 250, 0.4);
}

.ci-tier-developing {
  --tier-color: #a78bfa;
  --tier-glow: rgba(167, 139, 250, 0.4);
}

.ci-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--tier-color) 20%, transparent),
    color-mix(in srgb, var(--tier-color) 10%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--tier-color) 50%, transparent);
  border-radius: 100px;
  color: var(--tier-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 20px var(--tier-glow);
}

/* Gradient Dividers */
.ci-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  margin: 24px 0;
}

/* Metric Pill */
.ci-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.ci-metric-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.ci-metric-pill .value {
  font-weight: 700;
  color: var(--metric-color, #a5b4fc);
}

/* Stagger Animation Delays */
.ci-stagger-1 { --delay: 0.05s; }
.ci-stagger-2 { --delay: 0.1s; }
.ci-stagger-3 { --delay: 0.15s; }
.ci-stagger-4 { --delay: 0.2s; }
.ci-stagger-5 { --delay: 0.25s; }
.ci-stagger-6 { --delay: 0.3s; }
.ci-stagger-7 { --delay: 0.35s; }
.ci-stagger-8 { --delay: 0.4s; }

/* Fade In Up Animation */
@keyframes ciFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ci-fade-in-up {
  animation: ciFadeInUp 0.5s var(--ci-transition-smooth) calc(var(--delay, 0s)) backwards;
}

/* Scale In Animation */
@keyframes ciScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ci-scale-in {
  animation: ciScaleIn 0.4s var(--ci-transition-bounce) calc(var(--delay, 0s)) backwards;
}

/* Skeleton Loading */
.ci-skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: ciSkeletonPulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   V6.0 RADAR CHART ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.crg-position-aware {
  position: relative;
}

.crg-position-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a5b4fc;
}

/* Enhanced Radar Point Hover */
.crg-point {
  transition: all 0.2s ease;
  cursor: pointer;
}

.crg-point:hover {
  r: 8;
  filter: drop-shadow(0 0 12px currentColor);
}

/* Radar Tooltip */
.crg-tooltip {
  position: absolute;
  padding: 8px 12px;
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.crg-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   V6.0 BUG FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fix z-index stacking in CI sections */
.ci section {
  position: relative;
  z-index: 1;
}

/* Fix overflow issues on mobile */
.ci-score-card,
.ci-archetype,
.ci-scout-card {
  overflow: visible;
}

/* Ensure proper text contrast */
.ci-subtitle,
.ci-section-subtitle {
  color: rgba(161, 161, 170, 0.85);
}

/* Fix radar chart clipping */
.ci-radar-glass .crg-svg,
.ci-player-radar-container svg {
  overflow: visible;
}

/* Fix glass card backdrop on Safari */
@supports not (backdrop-filter: blur(20px)) {
  .ci-glass-card {
    background: rgba(15, 15, 20, 0.95);
  }
}

/* Fix animation jank on low-end devices */
@media (prefers-reduced-motion: reduce) {
  .ci-shimmer::after,
  .ci-animated-border::before,
  .ci-pulse-ring::after,
  .ci-glow-dot,
  .ci-floating-badge {
    animation: none;
  }
}

/* Responsive text sizing fix */
@media (max-width: 480px) {
  .ci-mega-score-value {
    font-size: 64px;
    letter-spacing: -4px;
  }
  
  .ci-title {
    font-size: 28px;
  }
  
  .ci-archetype-name {
    font-size: 22px;
  }
}