/* ══════════════════════════════════════════════════════════════
   PVPCore Public Website — Design System
   Dark theme with violet accents, glassmorphism, animations
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --bg:          #0a0a0f;
  --bg-alt:      #0e0e16;
  --surface:     #12121a;
  --surface-2:   #1a1a28;
  --card:        rgba(20, 20, 35, 0.7);
  --card-border: rgba(139, 92, 246, 0.15);
  --card-hover:  rgba(139, 92, 246, 0.08);

  --primary:     #8b5cf6;
  --primary-dim: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --accent:      #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.15);

  --green:       #10b981;
  --green-dim:   rgba(16, 185, 129, 0.15);
  --yellow:      #f59e0b;
  --yellow-dim:  rgba(245, 158, 11, 0.15);
  --red:         #ef4444;
  --red-dim:     rgba(239, 68, 68, 0.15);
  --blue:        #3b82f6;

  --text:        #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim:    #64748b;
  --text-muted:  #475569;

  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --shadow:      0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--primary-glow);

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce:      0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dim); }

/* ══════════════════════════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-brand .brand-pvp { color: var(--primary); }
.nav-brand .brand-core { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-server-ip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}

.nav-server-ip:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.nav-server-ip .copy-icon { font-size: 1rem; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
  animation: heroGlow 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

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

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
  color: #fff;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text);
}

.btn-copy {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 14px 32px;
}

.btn-copy:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--accent);
}

.btn-copy.copied {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

/* ══════════════════════════════════════════════════════════════
   Stats Bar (below hero)
   ══════════════════════════════════════════════════════════════ */

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 2rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stats-bar .stat-item {
  text-align: center;
}

.stats-bar .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stats-bar .stat-value.green { color: var(--green); }
.stats-bar .stat-value.purple { color: var(--primary); }

.stats-bar .stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   Sections
   ══════════════════════════════════════════════════════════════ */

.section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════════════════════
   Game Modes Grid
   ══════════════════════════════════════════════════════════════ */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.mode-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.mode-card:hover::before { opacity: 1; }

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.mode-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mode-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════════════════════════════
   Top Players (Podium)
   ══════════════════════════════════════════════════════════════ */

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 40px 0;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px 24px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  min-width: 180px;
}

.podium-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.podium-item.first {
  border-color: #f59e0b;
  order: 2;
  padding-top: 40px;
  min-height: 280px;
}

.podium-item.second {
  order: 1;
  min-height: 240px;
}

.podium-item.third {
  order: 3;
  min-height: 220px;
}

.podium-badge {
  position: absolute;
  top: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.podium-item.first .podium-badge { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
.podium-item.second .podium-badge { background: linear-gradient(135deg, #94a3b8, #64748b); }
.podium-item.third .podium-badge { background: linear-gradient(135deg, #b45309, #92400e); }

.podium-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  margin-bottom: 12px;
  image-rendering: pixelated;
}

.podium-item.first .podium-avatar {
  width: 88px;
  height: 88px;
  border-color: rgba(245, 158, 11, 0.4);
}

.podium-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.podium-elo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.podium-rank {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 50px;
  background: var(--accent-soft);
}

/* ══════════════════════════════════════════════════════════════
   Leaderboard Page
   ══════════════════════════════════════════════════════════════ */

.page-hero {
  padding: 120px 2rem 40px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  position: relative;
}

.page-hero p {
  color: var(--text-secondary);
  margin-top: 8px;
  position: relative;
}

/* Kit Filter Tabs */
.kit-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.kit-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  background: var(--card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.kit-tab:hover {
  border-color: var(--primary);
  color: var(--text);
  background: var(--card-hover);
}

.kit-tab.active {
  background: var(--accent-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.kit-tab .kit-emoji { font-size: 1rem; }

.kit-svg-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
  display: inline-block;
  image-rendering: optimizeQuality;
}

/* Search Bar */
.search-bar {
  max-width: 400px;
  margin: 20px auto 0;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
}

.search-bar input::placeholder { color: var(--text-dim); }

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
}

/* Leaderboard Table */
.lb-container {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 0 2rem;
}

.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.lb-table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.lb-table th:last-child { text-align: right; }

.lb-row {
  background: var(--card);
  transition: all var(--transition);
  cursor: pointer;
}

.lb-row:hover {
  background: var(--card-hover);
  transform: scale(1.01);
}

.lb-row td {
  padding: 14px 16px;
  font-size: 0.9rem;
  vertical-align: middle;
}

.lb-row td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.lb-row td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; text-align: right; }

.lb-pos {
  font-weight: 800;
  font-size: 0.85rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-dim);
}

.lb-pos.gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.lb-pos.silver { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.lb-pos.bronze { background: rgba(180, 83, 9, 0.15); color: #d97706; }

.lb-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.lb-name {
  font-weight: 600;
}

.lb-rank-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  display: inline-block;
}

.lb-elo {
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════════════════════
   Player Profile Page
   ══════════════════════════════════════════════════════════════ */

.profile-header {
  padding: 120px 2rem 40px;
  text-align: center;
  position: relative;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 350px;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--card-border);
  margin: 0 auto 16px;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.profile-name {
  font-size: 2rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.profile-rank {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.profile-global-rank {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* Stats Grid */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 32px auto;
  padding: 0 2rem;
}

.profile-stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.profile-stat:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.profile-stat .stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.profile-stat .stat-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ELO Per Kit */
.elo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.elo-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.elo-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.elo-kit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.elo-kit-icon { font-size: 1.3rem; }
.elo-kit-name { font-weight: 600; font-size: 0.9rem; }

.elo-value {
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

/* Match History */
.match-history {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 2rem;
}

.match-history h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.match-item:hover {
  background: var(--card-hover);
}

.match-item.win { border-left-color: var(--green); }
.match-item.loss { border-left-color: var(--red); }

.match-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.match-result {
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-item.win .match-result { background: var(--green-dim); color: var(--green); }
.match-item.loss .match-result { background: var(--red-dim); color: var(--red); }

.match-info { display: flex; flex-direction: column; }
.match-opponent { font-weight: 600; font-size: 0.9rem; }
.match-kit { font-size: 0.75rem; color: var(--text-dim); }

.match-right { text-align: right; }

.match-elo {
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.match-elo.positive { color: var(--green); }
.match-elo.negative { color: var(--red); }

.match-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer a { color: var(--primary); }

/* ══════════════════════════════════════════════════════════════
   Loading States
   ══════════════════════════════════════════════════════════════ */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-dim);
}

.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--surface-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin-left: 12px;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 1rem; }

/* ══════════════════════════════════════════════════════════════
   Player Search (Homepage)
   ══════════════════════════════════════════════════════════════ */

.player-search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.player-search-form input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.player-search-form input:focus {
  border-color: var(--primary);
}

.player-search-form button {
  padding: 12px 24px;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════════════════════════
   Toast Notification
   ══════════════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--card-border);
  }

  .nav-server-ip { display: none; }

  .hero { padding: 100px 1.5rem 60px; }

  .stats-bar { gap: 24px; flex-wrap: wrap; }
  .stats-bar .stat-value { font-size: 1.5rem; }

  .podium { flex-direction: column; align-items: center; }
  .podium-item { order: unset !important; min-width: 220px; min-height: auto !important; }

  .modes-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

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

  .elo-grid { grid-template-columns: 1fr; }

  .kit-tabs { gap: 6px; }
  .kit-tab { padding: 6px 12px; font-size: 0.8rem; }

  .lb-table th:nth-child(3),
  .lb-table td:nth-child(3) { display: none; }
}

@media (max-width: 480px) {
  .modes-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
