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

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  color-scheme: dark;
  /* Charcoal Gray & Royal Foxes Orange Theme */
  --bg-primary: #121316;
  --bg-secondary: #16171a;
  --bg-card: rgba(22, 23, 27, 0.94);
  --bg-card-hover: rgba(28, 29, 34, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-input: #17181c;
  
  /* Royal Foxes Orange (#ef3314) */
  --accent: #ef3314;
  --accent-light: #ff5233;
  --accent-dark: #c9250b;
  --accent-glow: rgba(239, 51, 20, 0.2);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(239, 51, 20, 0.4);
  
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f97316;
  --info: #38bdf8;
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(239, 51, 20, 0.14);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body, button, input, select, textarea {
  color-scheme: dark;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

select, option, optgroup {
  background-color: #141620 !important;
  color: #f3f4f6 !important;
  color-scheme: dark !important;
}

option:checked, option:hover {
  background-color: #ef3314 !important;
  color: #ffffff !important;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(18, 19, 22, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(239, 51, 20, 0.35);
  border-radius: 10px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 51, 20, 0.6);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 51, 20, 0.35) rgba(18, 19, 22, 0.6);
}

/* Atmospheric Slate Gray & Orange Glow Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(239, 51, 20, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 85%, rgba(255, 82, 51, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(24, 26, 32, 0.9) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   SVG ICON SIZES
   ============================================ */
.icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-md {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-lg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tier-icon {
  width: 14px;
  height: 14px;
  display: inline;
  vertical-align: middle;
}

.tier-icon-lg {
  width: 20px;
  height: 20px;
  display: inline;
  vertical-align: middle;
}

.tier-display {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.empty-icon-svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.5;
  display: block;
  color: var(--text-muted);
}

.upload-icon-svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: block;
  color: var(--text-muted);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar {
  background: rgba(18, 19, 22, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(239, 51, 20, 0.4));
  transition: transform 0.2s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

body.theme-genesis .brand-title {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  background: transparent !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  line-height: 1 !important;
  position: relative !important;
}

body.theme-genesis .brand-main-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.35);
  line-height: 1.1;
  white-space: nowrap;
}

body.theme-genesis .navbar-logo {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5)) !important;
}

body.theme-genesis .navbar-team-badge,
body.theme-genesis .navbar-team-genesis-text {
  align-self: flex-end;
  background: transparent !important;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem !important;
  font-weight: 950 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7) !important;
  line-height: 1 !important;
  margin-top: 1px;
}

.brand-slogan {
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  white-space: nowrap;
  opacity: 0.85;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .brand-slogan {
    display: none;
  }
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--border-accent);
}

/* Navigation Dropdown (e.g. Gönder ▾) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.active .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--border-accent);
}

.nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: rgba(18, 20, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  z-index: 1050;
  animation: rfDropdownFade 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible hover bridge: covers the space between trigger and menu so mouse transit never drops hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -8px;
  right: -8px;
  height: 16px;
  background: transparent;
  pointer-events: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #cbd5e1;
  transition: all 0.18s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: rgba(239, 51, 20, 0.18);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-dd-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  pointer-events: none;
}

.nav-dd-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: inherit;
  pointer-events: none;
}

.nav-dd-desc {
  font-size: 0.66rem;
  color: #94a3b8;
  pointer-events: none;
}

/* ============================================
   NAVBAR AUTH & USER PROFILE WIDGET
   ============================================ */
.navbar-auth-wrapper {
  display: flex;
  align-items: center;
  margin-left: 12px;
  position: relative;
}

.btn-login-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 51, 20, 0.15), rgba(239, 51, 20, 0.05));
  border: 1px solid rgba(239, 51, 20, 0.4);
  color: #ff5233;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(239, 51, 20, 0.15);
}

.btn-login-nav:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 51, 20, 0.35);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 5px;
  border-radius: 24px;
  background: rgba(26, 28, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
}

.user-pill:hover {
  background: rgba(34, 37, 48, 0.95);
  border-color: rgba(239, 51, 20, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
}

.user-pill-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.user-pill-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-crown {
  font-size: 0.75rem;
  filter: drop-shadow(0 0 4px #eab308);
}

.user-pill-role {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.5px;
}

.user-pill-type-badge {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-pill-type-badge.badge-coach {
  background: linear-gradient(135deg, rgba(239, 51, 20, 0.3), rgba(245, 158, 11, 0.4));
  border: 1px solid rgba(245, 158, 11, 0.7);
  color: #fde047;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.user-pill-type-badge.badge-player {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.user-pill-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 224px;
  min-width: 224px;
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 18px rgba(239, 51, 20, 0.12);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
  backdrop-filter: blur(16px);
  animation: rfDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rfDropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-menu.show {
  display: flex;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.user-dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* ============================================
   AUTH MODAL (Unified Login)
   ============================================ */
.rf-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.rf-auth-modal-backdrop.show {
  display: flex;
  animation: rfModalFade 0.2s ease;
}

@keyframes rfModalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.rf-auth-modal-card {
  background: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 30px 26px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 51, 20, 0.15);
}

.rf-auth-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.rf-auth-close-btn:hover {
  color: #fff;
}

.rf-auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.rf-auth-logo {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(239, 51, 20, 0.5));
}

.rf-auth-header h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.rf-auth-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rf-auth-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.rf-form-group {
  margin-bottom: 16px;
}

.rf-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.rf-form-input {
  width: 100%;
  background: #1a1d28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  outline: none;
}

.rf-form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(239, 51, 20, 0.25);
  background: #1f2230;
}

/* Custom Esports Player Cards Grid */
.rf-player-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding: 2px;
  margin-bottom: 4px;
}

.rf-player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(22, 25, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.rf-player-card:hover {
  background: rgba(30, 34, 48, 0.95);
  border-color: rgba(239, 51, 20, 0.4);
  transform: translateY(-1px);
}

.rf-player-card.active {
  background: rgba(239, 51, 20, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(239, 51, 20, 0.25);
}

.rf-player-card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.rf-player-card.active .rf-player-card-avatar {
  border-color: var(--accent);
}

.rf-admin-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(239, 51, 20, 0.15);
  border: 1.5px solid rgba(239, 51, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.rf-player-card-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  flex: 1;
}

.rf-player-card-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rf-player-card-elo {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: monospace;
}

.rf-player-card-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rf-player-card.active .rf-player-card-check {
  display: flex;
}

.rf-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.rf-toggle-pass:hover {
  color: #fff;
}

.rf-hint-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Logged-in Player Identity Badge (Submit & Demo forms) */
.logged-player-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(22, 25, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.logged-player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
  flex-shrink: 0;
}

.logged-player-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logged-player-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logged-player-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.auth-required-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(239, 51, 20, 0.1);
  border: 1px solid rgba(239, 51, 20, 0.35);
  border-radius: 12px;
  color: #ff8a75;
}

/* ============================================
   TEAM ROLE BADGES (Distinct Esports Colors)
   ============================================ */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.2;
}

/* IGL - Gold / Amber */
.role-badge.role-igl {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
}

/* AWPer - Electric Cyan / Ice Blue */
.role-badge.role-awper,
.role-badge.role-awp {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.15);
}

/* Entry Fragger - Fire Red / Orange */
.role-badge.role-entry-fragger,
.role-badge.role-entry {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}

/* Rifler - Emerald Neon Green */
.role-badge.role-rifler {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
}

/* Lurker - Mystical Violet */
.role-badge.role-lurker {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.15);
}

/* Support - Tactical Sapphire Blue */
.role-badge.role-support {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
}

/* Anchor - Deep Teal */
.role-badge.role-anchor {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.15);
}

/* Yedek - Silver / Slate */
.role-badge.role-yedek,
.role-badge.role-sub {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
}

/* Analist / KoÃ§ - Crimson */
.role-badge.role-analist,
.role-badge.role-koc,
.role-badge.role-coach {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.4);
}

/* ============================================
   CUSTOM ROLE PICKER DROPDOWN (Esports UI)
   ============================================ */
.custom-role-picker {
  position: relative;
  display: inline-block;
  text-align: left;
}

.custom-role-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 25, 34, 0.9);
  transition: all 0.2s ease;
  user-select: none;
}

.custom-role-trigger:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.custom-role-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #141620;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 51, 20, 0.15);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(16px);
  animation: roleMenuFade 0.15s ease;
}

@keyframes roleMenuFade {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.custom-role-menu.show {
  display: block;
}

.custom-role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.custom-role-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.custom-role-item.active {
  background: rgba(239, 51, 20, 0.12);
}

.role-check-icon {
  color: var(--accent);
  margin-left: 8px;
}


/* ============================================
   HERO / SEASON INFO (Compact & Sleek)
   ============================================ */
.hero {
  padding: 14px 0 10px;
}

.hero-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.page-main-heading {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-bottom: 0;
  line-height: 1.2;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.season-badge .countdown {
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================
   SCORING SUMMARY BAR (Compact)
   ============================================ */
.scoring-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 12px;
  flex-wrap: wrap;
}

.scoring-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.scoring-chip .chip-value {
  color: var(--accent);
  font-weight: 700;
}

.wide-container {
  max-width: 1480px;
  width: 96%;
  margin: 0 auto;
  padding: 0 12px;
}

/* ============================================
   LEADERBOARD (Clean Esports Horizontal Rows)
   ============================================ */
.leaderboard-clean-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.lb-row {
  display: grid;
  grid-template-columns: 44px 1fr 105px 105px 105px 1px 88px;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: rowSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rowSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.lb-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(239, 51, 20, 0.15);
}

/* Rank 1 special styling (Pulsing Glow & Gold Accent) */
.lb-row.rank-1 {
  border-color: rgba(239, 51, 20, 0.55);
  background: linear-gradient(90deg, rgba(239, 51, 20, 0.16) 0%, rgba(25, 27, 36, 0.95) 100%);
  box-shadow: 0 4px 26px rgba(239, 51, 20, 0.22), inset 0 0 15px rgba(239, 51, 20, 0.06);
  position: relative;
}

.lb-row.rank-1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff8c00, var(--accent));
  border-radius: 12px 0 0 12px;
}

.lb-row.rank-1:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(239, 51, 20, 0.35), inset 0 0 20px rgba(239, 51, 20, 0.1);
}

.leader-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(239, 51, 20, 0.2));
  border: 1px solid rgba(255, 140, 0, 0.5);
  color: #ffaa33;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Rank Number Badge */
.lb-cell-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-badge-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  background: #1e2029;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: monospace;
}

.rank-badge-num.rank-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(239, 51, 20, 0.55);
}

/* Player Identity Cell */
.lb-cell-player {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.lb-player-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lb-player-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.badge.lvl {
  background: var(--accent);
  color: #fff;
}

.rank-pos-badge {
  background: rgba(14, 116, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(14, 116, 233, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.country-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rank-badge-flag {
  width: 19px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.badge.elo {
  background: #1c1e27;
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.kd-badge {
  background: #161821;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.kd-badge.stat-good {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.kd-badge.stat-mid {
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.08);
}

.kd-badge.stat-bad {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

/* Challenge Columns (Prominent & Large) */
.lb-cell-challenge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
}

.lb-ch-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lb-ch-points {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
}

.lb-ch-p-unit {
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 1px;
  opacity: 0.85;
}

.lb-ch-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Vertical Divider */
.lb-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Total Points Cell */
.lb-cell-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.lb-total-pts {
  font-size: 1.65rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 40%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  line-height: 1;
}

.lb-total-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Win Rate Bar (from ornek tracker) */
.winbar-wrap {
  margin-bottom: 14px;
}

.winbar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.wb-pct {
  font-size: 0.84rem;
  font-weight: 900;
  font-family: monospace;
}

.winbar {
  position: relative;
  height: 22px;
  background: rgba(239, 68, 68, 0.16);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.winbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d, #22c55e);
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
}

.winbar-numbers {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 900;
  font-family: monospace;
}

.wn-w, .wn-l {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .lb-row {
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    padding: 10px 14px;
  }
  .lb-cell-challenge, .lb-divider {
    display: none;
  }
}

/* Points bar */
.points-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 140px;
}

.points-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-glass);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.points-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.points-bar-fill.faceit {
  background: linear-gradient(90deg, var(--info), #60a5fa);
}

.points-bar-fill.dm {
  background: linear-gradient(90deg, var(--success), #4ade80);
}

/* ============================================
   CARDS / PANELS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-glass);
  color: var(--text-primary);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(239, 51, 20, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 6px 20px rgba(239, 51, 20, 0.4);
  color: #ffffff;
}

.btn-success {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.btn-success:hover {
  background: rgba(34, 197, 94, 0.25);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  color-scheme: dark;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* ============================================
   CUSTOM SELECT DROPDOWN COMPONENT
   ============================================ */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.custom-select-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-select-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  object-fit: cover;
}

.custom-select-name {
  font-weight: 600;
  color: var(--text-primary);
}

.custom-select-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.custom-select-arrow {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #181a22;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 51, 20, 0.15);
  z-index: 200;
  display: none;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(20px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.custom-select-wrapper.open .custom-select-dropdown {
  display: block;
  animation: dropdownSlide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.custom-select-item:hover {
  background: rgba(239, 51, 20, 0.12);
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}

.custom-select-item.selected {
  background: rgba(239, 51, 20, 0.18);
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}

.custom-select-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-select-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.custom-select-level-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}

/* ============================================
   CUSTOM DATEPICKER CALENDAR COMPONENT
   ============================================ */
.custom-datepicker-wrapper {
  position: relative;
  width: 100%;
  z-index: 10;
}

.custom-datepicker-wrapper:has(.custom-calendar-popup.open) {
  z-index: 99999;
}

#tab-season .card:first-of-type {
  position: relative;
  z-index: 50;
}

.date-input-modern {
  cursor: pointer;
  color-scheme: dark;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

.date-input-modern::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(35%) sepia(85%) saturate(3000%) hue-rotate(345deg) brightness(98%) contrast(95%);
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
  padding: 4px;
}

.date-input-modern::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.2);
  opacity: 1;
}

.custom-datepicker-input {
  cursor: pointer;
  padding-right: 42px;
}

.datepicker-calendar-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--accent);
  pointer-events: none;
}

.custom-calendar-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 295px;
  background: #14161f;
  border: 1px solid rgba(239, 51, 20, 0.45);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(239, 51, 20, 0.25);
  z-index: 99999;
  display: none;
  backdrop-filter: blur(24px);
}

.custom-calendar-popup.open {
  display: block;
  animation: dropdownSlide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.calendar-month-year {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.calendar-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #1e2029;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.calendar-weekday {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 4px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s;
  border: 1px solid transparent;
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border);
}

.calendar-day.other-month {
  color: #4b5563;
  opacity: 0.5;
}

.calendar-day.today {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(239, 51, 20, 0.4);
}

.calendar-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.calendar-footer button {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* ============================================
   SCREENSHOT UPLOAD
   ============================================ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.015);
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.08);
}

.upload-zone.has-file {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.05);
}

.upload-zone .upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.upload-zone .upload-text {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
}

.upload-zone .upload-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 8px;
}

.upload-preview {
  max-width: 100%;
  max-height: 220px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  display: none;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.upload-preview.visible {
  display: inline-block;
}

/* ============================================
   SUBMISSION CARDS (Admin)
   ============================================ */
.submission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.submission-card.pending {
  border-left: 3px solid var(--warning);
}

.submission-card.approved {
  border-left: 3px solid var(--success);
}

.submission-card.rejected {
  border-left: 3px solid var(--danger);
  opacity: 0.6;
}

.submission-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

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

.submission-player img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.submission-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.submission-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.submission-stat .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.submission-stat .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.submission-screenshot {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--bg-glass);
}

.submission-screenshot:hover {
  transform: scale(1.02);
}

.submission-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-approved {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-count {
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--danger);
  color: white;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
}

.tabs::-webkit-scrollbar {
  display: none !important;
}

.tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 10px;
  background: #141620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.tab svg {
  color: #64748b;
  transition: color 0.2s ease;
}

.tab:hover {
  color: #ffffff;
  background: #1c1f2e;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.tab:hover svg {
  color: #fff;
}

.tab.active {
  color: #ffffff;
  background: #1a1d2c;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(239, 51, 20, 0.22), inset 0 0 0 1px rgba(239, 51, 20, 0.25);
  font-weight: 800;
}

.tab.active svg {
  color: var(--accent);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ef3314;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(239, 51, 20, 0.65);
  margin-left: 4px;
}

.tab.active .badge-count {
  background: #ef3314;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 51, 20, 0.85);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Filter buttons */
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.filter-btn.active {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* ============================================
   LOGIN FORM
   ============================================ */
.login-container {
  max-width: 400px;
  margin: 80px auto;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.login-card h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.login-card .login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

/* ============================================
   ALERTS / TOAST
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(20px);
  animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 3s forwards;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}

.toast-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.toast-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.toast-info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--info);
}

/* ============================================
   LIGHTBOX (Screenshot full view)
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.loading-overlay.active {
  display: flex;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
  50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(245, 158, 11, 0.05); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .player-card {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .player-scores {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .score-breakdown {
    gap: 10px;
  }

  .scoring-bar {
    flex-direction: column;
    align-items: center;
  }

  .navbar .container {
    flex-direction: column;
    gap: 12px;
  }

  .navbar-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .submission-stats {
    flex-wrap: wrap;
  }

  .points-bar-container {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .player-info {
    gap: 10px;
  }

  .player-avatar {
    width: 36px;
    height: 36px;
  }

  .total-score .points {
    font-size: 1.3rem;
  }
}

/* ============================================
   MAP PERFORMANCE GRID
   ============================================ */
/* ============================================
   MAP PERFORMANCE GRID
   ============================================ */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.map-card {
  background: #14161f;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 108px;
}

.map-card:hover {
  border-color: rgba(239, 51, 20, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 20px rgba(239, 51, 20, 0.25);
}

.map-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  filter: saturate(1.2) contrast(1.1);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.map-card:hover .map-bg {
  transform: scale(1.08);
  opacity: 0.62;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 15, 22, 0.85) 0%, rgba(20, 22, 30, 0.68) 100%);
  pointer-events: none;
}

.map-content {
  position: relative;
  z-index: 2;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-card-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.map-card-matches {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.map-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-card-stat-item {
  display: flex;
  flex-direction: column;
}

.map-card-stat-lbl {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.map-card-stat-val {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text-primary);
}

/* ============================================
   MATCH FILTER TOOLBAR
   ============================================ */
.match-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #161822;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================
   HISTORY TABS (FACEIT / DM Toggle)
   ============================================ */
.history-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.history-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  bottom: -1px;
}

.history-tab:hover {
  color: var(--text-secondary);
}

.history-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.history-tab-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}

.history-tab.active .history-tab-count {
  background: rgba(239, 51, 20, 0.2);
  color: var(--accent-light);
}

/* ============================================
   DM SUBMISSIONS GRID (Thumbnails)
   ============================================ */
.dm-submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.dm-sub-card {
  background: #14161f;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.dm-sub-card:hover {
  border-color: rgba(239, 51, 20, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.dm-sub-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: #0e0f14;
}

.dm-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.dm-sub-thumb:hover img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.dm-sub-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dm-sub-thumb:hover .dm-sub-zoom {
  opacity: 1;
}

.dm-sub-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(18, 19, 26, 0.8);
}

.dm-sub-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dm-sub-kills {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}

.dm-sub-time {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
}

.map-select-filter {
  background: #161822;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 6px 32px 6px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  min-width: 140px;
}

.map-select-filter:hover {
  border-color: rgba(239, 51, 20, 0.5);
  background-color: #1a1d2a;
}

.map-select-filter:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(239, 51, 20, 0.15);
}

.map-select-filter option {
  background: #161822;
  color: var(--text-primary);
  font-weight: 600;
  padding: 8px 12px;
}

/* ============================================
   CUSTOM MAP DROPDOWN (Dark Glassmorphism)
   ============================================ */
.custom-map-dropdown-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
}

.custom-map-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(20, 22, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 155px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.custom-map-dropdown-btn:hover {
  background: rgba(28, 30, 40, 0.95);
  border-color: rgba(239, 51, 20, 0.5);
  box-shadow: 0 0 16px rgba(239, 51, 20, 0.15);
}

.custom-map-dropdown-wrap.open .custom-map-dropdown-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(239, 51, 20, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.custom-map-dropdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-map-arrow {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.custom-map-dropdown-wrap.open .custom-map-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.custom-map-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 185px;
  max-height: 270px;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(22, 24, 33, 0.98) 0%, rgba(13, 14, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.custom-map-dropdown-wrap.open .custom-map-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-map-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.custom-map-dropdown-item:hover {
  background: rgba(239, 51, 20, 0.12);
  color: #ffffff;
  transform: translateX(2px);
}

.custom-map-dropdown-item.active {
  background: rgba(239, 51, 20, 0.18);
  color: #ff6b4a;
  font-weight: 800;
}

.map-item-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.custom-map-dropdown-item:hover .map-dot,
.custom-map-dropdown-item.active .map-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.map-item-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.custom-map-dropdown-item.active .map-item-badge {
  background: rgba(239, 51, 20, 0.3);
  color: #fff;
}

@media (max-width: 768px) {
  .match-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .custom-map-dropdown-wrap {
    width: 100%;
  }
  .custom-map-dropdown-btn {
    width: 100%;
  }
  .custom-map-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* ============================================
   SEASON SWITCHER & TOOLBAR (Multi-Season UX)
   ============================================ */
.player-season-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.season-pills-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.season-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(20, 22, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0 16px;
  height: 38px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  backdrop-filter: blur(14px);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: none !important;
}

.season-pill-btn:hover {
  background: rgba(28, 30, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.season-pill-btn.selected {
  color: #ffffff;
  font-weight: 800;
  cursor: default;
  transform: none !important;
}

.season-pill-btn.selected.season-active-mode {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(18, 20, 28, 0.98) 100%);
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.25), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.season-pill-btn.selected.season-archived-mode {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(18, 20, 28, 0.98) 100%);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.25), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.season-pill-btn:not(.selected) {
  opacity: 0.75;
}

.season-pill-btn:not(.selected):hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.3);
}

.season-pill-btn .countdown {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.season-pill-btn.selected .countdown {
  color: #4ade80;
  font-weight: 600;
}

.season-pill-title {
  white-space: nowrap;
}

.custom-season-dropdown-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
}

.custom-season-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 22, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.custom-season-dropdown-btn:hover {
  background: rgba(28, 30, 42, 0.98);
  border-color: rgba(239, 51, 20, 0.5);
  box-shadow: 0 0 20px rgba(239, 51, 20, 0.2);
}

.custom-season-dropdown-wrap.open .custom-season-dropdown-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(239, 51, 20, 0.25), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.custom-season-dropdown-wrap.open .custom-map-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.season-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.season-dot.active {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.season-dot.archived {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.season-badge-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
}

.season-badge-tag.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.season-badge-tag.archived {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.custom-season-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 290px;
  max-height: 320px;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(20, 22, 30, 0.98) 0%, rgba(12, 13, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.custom-season-dropdown-wrap.open .custom-season-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-season-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 3px;
  gap: 10px;
}

.custom-season-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.custom-season-dropdown-item.active {
  background: rgba(239, 51, 20, 0.16);
  border-left: 2px solid var(--accent);
}

.season-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.season-item-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-item-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Archive Alert Banner */
.archive-view-banner {
  width: 100%;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(20, 22, 30, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.av-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.av-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.av-title {
  font-size: 0.84rem;
  color: #fbbf24;
  font-weight: 700;
}

.av-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.av-return-btn {
  font-size: 0.74rem;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   LIVE SCORE CALCULATOR PREVIEW (Submit page)
   ============================================ */
.live-calc-box {
  background: rgba(239, 51, 20, 0.06);
  border: 1px solid rgba(239, 51, 20, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.live-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.84rem;
}

.live-calc-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.live-calc-val {
  font-weight: 800;
  color: var(--text-primary);
  font-family: monospace;
}

.live-calc-val.highlight {
  color: var(--accent);
  font-size: 1rem;
}

.live-calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 8px 0;
}

/* ============================================
   LIGHTBOX MODAL (Image Zoom)
   ============================================ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(239, 51, 20, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: contain;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-modal.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

/* ============================================
   MVP HIGHLIGHTS GRID
   ============================================ */
.mvp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .mvp-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .mvp-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.mvp-card {
  background: linear-gradient(135deg, rgba(25, 27, 36, 0.95) 0%, rgba(18, 19, 26, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.mvp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}

.mvp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 51, 20, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 51, 20, 0.15);
  background: #191b26;
}

.mvp-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.mvp-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mvp-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mvp-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mvp-stat {
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  font-family: monospace;
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

/* ============================================
   MODALS (Centered Dialogs)
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.visible, .modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: #181a24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(239, 51, 20, 0.18);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.visible .modal-content, .modal.open .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--accent);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(30, 32, 42, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-row {
  height: 68px;
  margin-bottom: 8px;
}

.skeleton-mvp {
  height: 62px;
}

.skeleton-hero {
  height: 110px;
  margin-bottom: 20px;
}

.skeleton-card {
  height: 180px;
  margin-bottom: 20px;
}

/* ============================================
   FLOATING PARTICLES (Pure CSS)
   ============================================ */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(239, 51, 20, 0.25);
  animation: floatUp linear infinite;
  opacity: 0;
}

.particle:nth-child(odd) {
  background: rgba(255, 255, 255, 0.12);
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* ============================================
   ANIMATED COUNTER
   ============================================ */
.counter-anim {
  display: inline-block;
  transition: opacity 0.3s;
}

/* ============================================
   PLAYER HERO BANNER (Cinematic)
   ============================================ */
.player-hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #12131a 0%, #181a24 100%);
  min-height: 160px;
}

.player-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(239, 51, 20, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 120, 50, 0.08) 0%, transparent 50%);
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.player-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  gap: 24px;
}

.hero-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}

.hero-back-btn:hover {
  background: rgba(239, 51, 20, 0.15);
  border-color: rgba(239, 51, 20, 0.5);
  color: #fff;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(239, 51, 20, 0.15);
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-avatar {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  border: 2px solid var(--accent);
  object-fit: cover;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 51, 20, 0.2);
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-nickname {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-score-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: rgba(239, 51, 20, 0.1);
  border: 1px solid rgba(239, 51, 20, 0.35);
  border-radius: var(--radius-md);
  min-width: 95px;
}

.hero-score-val {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.hero-score-lbl {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Hero banner separator line */
.player-hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 51, 20, 0.3), transparent);
}

@media (max-width: 640px) {
  .player-hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }

  .hero-avatar {
    width: 64px;
    height: 64px;
  }

  .hero-nickname {
    font-size: 1.3rem;
  }

  .hero-right {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CUSTOM NUMBER STEPPER CONTROLS
   ============================================ */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.stepper-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.stepper-input {
  text-align: center;
  padding: 10px 42px !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: #fff !important;
  letter-spacing: 0.5px;
}

.stepper-btn {
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  z-index: 2;
}

.stepper-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(239, 51, 20, 0.4);
}

.stepper-btn:active {
  transform: scale(0.92);
}

/* ============================================
   ADMIN LIVE SYSTEM & API STATUS CARDS
   ============================================ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: linear-gradient(145deg, rgba(25, 26, 30, 0.92), rgba(18, 19, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 51, 20, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 51, 20, 0.15);
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  opacity: 0.9;
}

.admin-stat-card.stat-green::before {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.admin-stat-card.stat-orange::before {
  background: #ef3314;
  box-shadow: 0 0 10px rgba(239, 51, 20, 0.5);
}

.admin-stat-card.stat-blue::before {
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.admin-stat-card.stat-purple::before {
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.admin-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-stat-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.admin-stat-val {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-stat-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 1.8s infinite;
  display: inline-block;
}

/* ============================================
   ADMIN PLAYER MANAGEMENT ROSTER
   ============================================ */
.admin-players-roster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.admin-player-header-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.3fr 1.1fr 1.1fr 1.5fr;
  padding: 10px 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2px;
}

.admin-player-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.3fr 1.1fr 1.1fr 1.5fr;
  align-items: center;
  background: rgba(22, 24, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 14px;
}

.admin-player-row:hover {
  background: rgba(28, 30, 42, 0.95);
  border-color: rgba(239, 51, 20, 0.35);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.admin-player-row.is-passive {
  opacity: 0.55;
  filter: grayscale(0.5);
  background: rgba(18, 19, 24, 0.5);
}

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

.admin-player-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: #0d0e12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.admin-player-nick-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.admin-player-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-player-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-player-score {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent);
}

.admin-player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-roster-action {
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-delete-demo {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  flex-shrink: 0 !important;
}

.btn-delete-demo svg {
  width: 13px !important;
  height: 13px !important;
  stroke: currentColor !important;
  flex-shrink: 0 !important;
}

.btn-delete-demo:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45) !important;
}

.btn-delete-demo:active {
  transform: translateY(0) !important;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-chip.active {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.status-chip.passive {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* ============================================
   CUSTOM CONFIRMATION MODAL
   ============================================ */
.confirm-modal-content {
  max-width: 440px !important;
  text-align: center;
  padding: 32px 28px !important;
  border: 1px solid rgba(239, 51, 20, 0.45) !important;
  background: linear-gradient(145deg, #181a24 0%, #101117 100%) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(239, 51, 20, 0.25) !important;
  animation: modalPop 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-modal-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(239, 51, 20, 0.12);
  border: 1px solid rgba(239, 51, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(239, 51, 20, 0.25);
}

.confirm-modal-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.confirm-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.confirm-modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-modal-actions .btn {
  min-width: 120px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ============================================
   EXPANDABLE SEASON ARCHIVE CARDS
   ============================================ */
.archive-card {
  background: linear-gradient(145deg, rgba(28, 29, 34, 0.95), rgba(22, 23, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-card:hover {
  border-color: rgba(239, 51, 20, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.archive-card.open {
  border-color: var(--accent);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 51, 20, 0.15);
}

.archive-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.015);
  transition: background 0.2s ease;
}

.archive-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.archive-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.archive-badge-pill {
  background: rgba(239, 51, 20, 0.15);
  border: 1px solid rgba(239, 51, 20, 0.4);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.2px;
}

.archive-dates {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.archive-winner-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(239, 51, 20, 0.15), rgba(255, 170, 51, 0.08));
  border: 1px solid rgba(239, 51, 20, 0.4);
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(239, 51, 20, 0.15);
}

.archive-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.archive-card.open .archive-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.archive-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(14, 15, 20, 0.7);
  animation: fadeIn 0.2s ease;
}

.archive-card.open .archive-body {
  display: block;
}

.archive-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 14px;
}

.archive-roster-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-header-row,
.archive-player-row {
  display: grid;
  grid-template-columns: 48px 2fr 1fr 1.3fr 1.3fr 1.3fr 1.1fr;
  align-items: center;
  gap: 12px;
}

.archive-header-row {
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.archive-player-row {
  background: rgba(22, 24, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: all 0.15s ease;
}

.archive-player-row:hover {
  background: rgba(30, 32, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.archive-player-row.rank-1 {
  background: linear-gradient(90deg, rgba(239, 51, 20, 0.15), rgba(22, 24, 32, 0.8));
  border-color: rgba(239, 51, 20, 0.45);
  box-shadow: 0 0 15px rgba(239, 51, 20, 0.1);
}

.archive-rank-num {
  font-weight: 900;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-muted);
}

.archive-player-row.rank-1 .archive-rank-num {
  color: #ffaa33;
}

@media (max-width: 992px) {
  .archive-header-row,
  .archive-player-row {
    grid-template-columns: 36px 1.8fr 0.9fr 1.1fr 1.1fr 1.1fr 0.9fr;
    gap: 8px;
    font-size: 0.76rem;
  }
}

@media (max-width: 768px) {
  .archive-header-row {
    display: none;
  }
  .archive-player-row {
    grid-template-columns: 36px 1fr 1fr;
    gap: 8px;
  }
}

/* ============================================
   TOAST & LOADING OVERLAY NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 440px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
  backdrop-filter: blur(16px);
}

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

.toast-success {
  background: rgba(16, 185, 129, 0.95);
  border: 1px solid #10b981;
  color: #ffffff;
}

.toast-error {
  background: rgba(239, 68, 68, 0.95);
  border: 1px solid #ef4444;
  color: #ffffff;
}

.toast-info {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loading-overlay.visible {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.loading-overlay .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent, #ef3314);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.spin {
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   ADMIN PLAYERS ROSTER GRID (PERFECT ALIGNMENT)
   ============================================ */
.admin-players-roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.admin-player-header-row,
.admin-player-row {
  display: grid;
  grid-template-columns: minmax(190px, 2fr) 130px 140px 120px 110px 240px;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
}

.admin-player-header-row {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted, #7e879b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.admin-player-row {
  background: rgba(22, 24, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.admin-player-row:hover {
  background: rgba(30, 34, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.admin-player-row.is-passive {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.admin-player-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.admin-player-nick-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-player-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-player-meta {
  font-size: 0.75rem;
  color: var(--text-muted, #7e879b);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-player-score {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent, #ef3314);
}

.admin-player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-roster-action {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .admin-players-roster {
    overflow-x: auto;
  }
  .admin-player-header-row,
  .admin-player-row {
    min-width: 840px;
  }
}

/* ============================================
   ğŸ† 3D CINEMATIC CHAMPIONSHIP PODIUM STAGE
   ============================================ */
.podium-stage-container {
  margin-bottom: 24px;
}

.podium-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: flex-end;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 10px auto;
}

.podium-card {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 29, 34, 0.92) 0%, rgba(22, 23, 27, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 16px 0 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(16px);
}

.podium-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* #1 Champion Special Stylings */
.podium-card.podium-rank-1 {
  background: linear-gradient(180deg, rgba(38, 30, 20, 0.9) 0%, rgba(20, 16, 12, 0.96) 100%);
  border: 1.5px solid rgba(255, 180, 50, 0.4);
  box-shadow: 0 10px 30px rgba(255, 170, 51, 0.12), inset 0 1px 0 rgba(255, 215, 0, 0.3);
  padding-top: 26px;
}

.podium-card.podium-rank-1:hover {
  border-color: rgba(255, 180, 50, 0.7);
  box-shadow: 0 24px 50px rgba(255, 170, 51, 0.25);
}

.podium-crown {
  position: absolute;
  top: -22px;
  font-size: 2rem;
  filter: drop-shadow(0 4px 12px rgba(255, 180, 0, 0.6));
  animation: crownBob 2.5s ease-in-out infinite alternate;
}

@keyframes crownBob {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-4px) scale(1.08); }
}

.podium-rank-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.podium-rank-badge.gold {
  background: linear-gradient(135deg, rgba(255, 170, 51, 0.25), rgba(255, 215, 0, 0.1));
  color: #ffc83b;
  border: 1px solid rgba(255, 200, 59, 0.4);
}

.podium-rank-badge.silver {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.podium-rank-badge.bronze {
  background: rgba(205, 127, 50, 0.15);
  color: #e2a76f;
  border: 1px solid rgba(205, 127, 50, 0.3);
}

/* Avatars */
.podium-avatar-wrap {
  position: relative;
  margin-bottom: 10px;
}

.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.podium-card:hover .podium-avatar {
  transform: scale(1.06);
}

.podium-avatar.gold-avatar {
  width: 78px;
  height: 78px;
  border: 3.5px solid #ffc83b;
  box-shadow: 0 0 25px rgba(255, 180, 0, 0.4);
}

.podium-avatar-wrap.silver-glow .podium-avatar {
  border-color: #cbd5e1;
  box-shadow: 0 0 15px rgba(203, 213, 225, 0.3);
}

.podium-avatar-wrap.bronze-glow .podium-avatar {
  border-color: #cd7f32;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

.podium-star {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 1rem;
  background: #1a1500;
  border-radius: 50%;
  padding: 1px;
}

.podium-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.podium-name.gold-name {
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 180, 0, 0.3);
}

.podium-points {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.podium-points.gold-pts {
  font-size: 1.65rem;
  color: #ffaa33;
}

.podium-pts-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.podium-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.podium-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* 3D Pedestal Step Base */
.podium-step {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.step-number {
  font-size: 1.8rem;
  font-weight: 900;
  opacity: 0.85;
}

.step-gold {
  height: 52px;
  background: linear-gradient(180deg, rgba(255, 180, 50, 0.25) 0%, rgba(200, 130, 20, 0.1) 100%);
  border-top: 2px solid #ffaa33;
}

.step-gold .step-number {
  color: #ffc83b;
  text-shadow: 0 0 15px rgba(255, 180, 50, 0.6);
}

.step-silver {
  height: 40px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.2) 0%, rgba(100, 116, 139, 0.08) 100%);
  border-top: 2px solid #cbd5e1;
}

.step-silver .step-number {
  color: #cbd5e1;
}

.step-bronze {
  height: 32px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.2) 0%, rgba(150, 80, 20, 0.08) 100%);
  border-top: 2px solid #cd7f32;
}

.step-bronze .step-number {
  color: #e2a76f;
}

@media (max-width: 680px) {
  .podium-wrapper {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .podium-card.podium-rank-1 {
    order: -1;
  }
}

/* ============================================
   ğŸ“ˆ INTERACTIVE PERFORMANCE & ELO TRENDS
   ============================================ */
.trends-form-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-momentum-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(22, 23, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 12px;
}

.form-momentum-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-chips-list {
  display: flex;
  gap: 6px;
}

.form-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.trend-summary-box {
  background: rgba(22, 23, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tsb-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted, #7e879b);
  text-transform: uppercase;
}

.tsb-val {
  font-size: 1.25rem;
  font-weight: 900;
}

.tsb-sub {
  font-size: 0.72rem;
  color: var(--text-secondary, #94a3b8);
  font-weight: 600;
}

.trend-chart-box {
  position: relative;
  width: 100%;
  padding: 8px 4px 0 0;
}

.trend-legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.trend-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary, #cbd5e1);
}

.leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.leg-dot.green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.leg-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@media (max-width: 680px) {
  .trend-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   STEPPER INPUT WRAPPER & SCORING SECTIONS
   ============================================ */
.scoring-section-block {
  margin-bottom: 20px;
  background: rgba(20, 21, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 20px;
}

.scoring-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.stepper-input-wrap .form-input.stepper-input {
  text-align: center;
  padding: 10px 48px;
  font-size: 1.15rem;
  font-weight: 800;
  width: 100%;
}

.stepper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  z-index: 2;
}

.stepper-btn:hover {
  background: rgba(239, 51, 20, 0.25);
  border-color: rgba(239, 51, 20, 0.5);
  color: #ffaa33;
  transform: translateY(-50%) scale(1.05);
}

.stepper-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.stepper-btn-dec {
  left: 6px;
}

.stepper-btn-inc {
  right: 6px;
}

/* ============================================
   ADMIN PLAYERS TABLE (SEMANTIC & ALIGNED)
   ============================================ */
.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  font-size: 0.9rem;
}

.admin-table thead th {
  padding: 10px 16px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted, #7e879b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.admin-table tbody tr {
  background: var(--bg-card, rgba(25, 27, 34, 0.90));
  border-radius: 12px;
  transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
  background: var(--bg-card-hover, rgba(34, 37, 46, 0.96));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-table tbody tr.is-passive {
  opacity: 0.5;
  filter: grayscale(0.6);
}

.admin-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table tbody td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.admin-table tbody td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

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

.admin-player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.admin-player-nick-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-player-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}

.admin-player-meta {
  font-size: 0.76rem;
  color: var(--text-muted, #7e879b);
  font-weight: 600;
}

.admin-player-score {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent, #ef3314);
}

/* ============================================
   ROSTER CARDS GRID (Admin Player Management)
   ============================================ */
.roster-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.roster-card {
  background: rgba(22, 23, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.roster-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #ef3314), rgba(239, 51, 20, 0.3));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.roster-card:hover {
  border-color: rgba(239, 51, 20, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 51, 20, 0.06);
  transform: translateY(-2px);
}

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

.roster-card--passive {
  opacity: 0.5;
  filter: grayscale(0.4);
}

.roster-card--passive:hover {
  opacity: 0.75;
}

/* Card Header */
.roster-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.roster-card__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.roster-card__avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: block;
}

.roster-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.roster-card__name {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-card__country {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}



/* Stats Row */
.roster-card__stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.roster-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  gap: 2px;
}

.roster-stat + .roster-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.roster-stat__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.roster-stat__value small {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.7;
}

.roster-stat__value--accent {
  color: var(--accent, #ef3314);
}

.roster-stat__label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Points Breakdown */
.roster-card__breakdown {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.roster-breakdown-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.roster-bc-val {
  font-weight: 800;
}

/* Role Picker Section */
.roster-card__role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.roster-card__role-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Actions Row */
.roster-card__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.roster-action-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.roster-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.roster-action-btn--warning {
  color: var(--accent, #ef3314);
  border-color: rgba(239, 51, 20, 0.2);
  background: rgba(239, 51, 20, 0.06);
}

.roster-action-btn--warning:hover {
  background: rgba(239, 51, 20, 0.15);
  border-color: rgba(239, 51, 20, 0.4);
  color: var(--accent-light, #ff6b4a);
}

.roster-action-btn--danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.2);
  background: rgba(248, 113, 113, 0.06);
}

.roster-action-btn--danger:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

@media (max-width: 700px) {
  .roster-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* DM Submission Note Chip */
.dm-sub-note {
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

/* ============================================
   STEPPER NUMBER INPUT (+ / - Controls)
   ============================================ */
.stepper-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(18, 19, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 48px;
}

.stepper-input-wrap:focus-within {
  border-color: var(--accent, #ef3314);
  box-shadow: 0 0 0 3px rgba(239, 51, 20, 0.2);
}

.stepper-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.stepper-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent, #ef3314);
}

.stepper-btn:active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0.95);
}

.stepper-btn-dec {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stepper-btn-inc {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stepper-input {
  flex: 1;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff !important;
  padding: 0 12px !important;
  height: 48px !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -moz-appearance: textfield;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==========================================================================
   GLOBAL LIGHTBOX MODAL (Image Fullscreen Preview)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.open,
.lightbox-modal.visible {
  display: flex !important;
  opacity: 1 !important;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 94vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(239, 51, 20, 0.2);
  overflow: hidden;
  animation: zoomInLight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInLight {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #181a24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Floating Pure Red X Close Button (Top-Right) */
.lightbox-pure-close-btn {
  position: fixed !important;
  top: 20px !important;
  right: 26px !important;
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(8px) !important;
}

.lightbox-pure-close-btn svg {
  width: 24px !important;
  height: 24px !important;
  stroke: #ef4444 !important;
  stroke-width: 2.8 !important;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8)) !important;
  transition: all 0.25s ease !important;
  display: block !important;
}

.lightbox-pure-close-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  transform: scale(1.15) rotate(90deg) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5) !important;
}

.lightbox-pure-close-btn:hover svg {
  stroke: #ff3311 !important;
  filter: drop-shadow(0 0 14px rgba(239, 51, 20, 1)) !important;
}

.lightbox-pure-close-btn:active {
  transform: scale(0.92) !important;
}

button.lightbox-close-btn:active,
.lightbox-close-btn:active {
  transform: scale(0.92) !important;
}

.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #090a0e;
  overflow: auto;
  max-height: calc(94vh - 60px);
  cursor: zoom-out;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 75px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: block;
  cursor: default;
}

/* ============================================
   DUAL-TEAM PORTAL: GATEWAY & NAVBAR SWITCHER
   ============================================ */

/* Fullscreen Cinematic Gateway Modal */
.team-gateway-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at 50% 25%, #181c2c 0%, #08090e 75%, #040507 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  visibility: hidden;
}

.team-gateway-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.team-gateway-header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeInDown 0.5s ease-out;
}

.team-gateway-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  margin-bottom: 12px;
}

.team-gateway-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.team-gateway-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.team-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 860px;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

/* Base Team Gateway Card */
.team-gateway-card {
  position: relative;
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.team-gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

/* Card 1: Main Team (Royal Foxes Orange) */
.card-rf-main::before {
  background: linear-gradient(90deg, #ef3314, #ff6b3d);
}

.card-rf-main:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #ef3314;
  box-shadow: 0 20px 45px rgba(239, 51, 20, 0.3), 0 0 30px rgba(239, 51, 20, 0.2);
}

.card-rf-main .team-card-logo-wrap {
  background: radial-gradient(circle, rgba(239, 51, 20, 0.18) 0%, transparent 70%);
}

.card-rf-main .team-card-btn {
  background: linear-gradient(135deg, #ef3314, #d3280c);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(239, 51, 20, 0.4);
}

.card-rf-main .team-card-btn:hover {
  background: linear-gradient(135deg, #ff4526, #ef3314);
  box-shadow: 0 6px 25px rgba(239, 51, 20, 0.6);
  transform: translateY(-2px);
}

/* Card 2: Genesis Team (Royal Foxes White / Silver / Ice) */
.card-rf-genesis::before {
  background: linear-gradient(90deg, #ffffff, #38bdf8, #94a3b8);
}

.card-rf-genesis:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #38bdf8;
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.25), 0 0 30px rgba(255, 255, 255, 0.15);
}

.card-rf-genesis .team-card-logo-wrap {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 70%);
}

.card-rf-genesis .team-card-btn {
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #090a10;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.35);
}

.card-rf-genesis .team-card-btn:hover {
  background: linear-gradient(135deg, #ffffff, #38bdf8);
  color: #040508;
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

/* Inner elements */
.team-card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-main-roster {
  background: rgba(239, 51, 20, 0.15);
  border: 1px solid rgba(239, 51, 20, 0.35);
  color: #ff5533;
}

.badge-genesis-roster {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

/* Dual-Team Switcher Toggle */
.team-switcher-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  padding: 3px;
  gap: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.team-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-toggle-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.team-toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.dot-main {
  background: #ef3314;
  box-shadow: 0 0 8px rgba(239, 51, 20, 0.8);
}

.dot-stars {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.team-toggle-btn.team-toggle-main.active {
  background: rgba(239, 51, 20, 0.18);
  border-color: rgba(239, 51, 20, 0.45);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(239, 51, 20, 0.25);
}

.team-toggle-btn.team-toggle-stars.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

.team-toggle-btn.active .team-toggle-dot {
  opacity: 1;
  transform: scale(1.25);
}

/* Navbar & Dropdown Coach Team Switcher */
.user-dropdown-team-box {
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-dropdown-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.user-dropdown-team-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.user-dropdown-team-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.user-dropdown-team-badge.badge-main {
  background: rgba(239, 51, 20, 0.18);
  color: #ff6b4a;
  border: 1px solid rgba(239, 51, 20, 0.45);
}

.user-dropdown-team-badge.badge-stars {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.dropdown-team-toggle {
  display: flex !important;
  width: 100%;
  background: rgba(10, 12, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3px;
  gap: 4px;
  box-sizing: border-box;
}

.dropdown-team-toggle .team-toggle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 16px;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.dropdown-team-toggle .team-toggle-btn.active.team-toggle-main {
  background: rgba(239, 51, 20, 0.24);
  border-color: rgba(239, 51, 20, 0.55);
  color: #ff6b4a;
  box-shadow: 0 0 12px rgba(239, 51, 20, 0.35);
}

.dropdown-team-toggle .team-toggle-btn.active.team-toggle-stars {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.navbar-team-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 20, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 2px 3px;
  gap: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  margin-right: 4px;
}

.navbar-team-toggle .team-toggle-btn {
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 18px;
  gap: 6px;
}

.navbar-team-toggle .team-toggle-btn.active.team-toggle-main {
  background: rgba(239, 51, 20, 0.2);
  border-color: rgba(239, 51, 20, 0.5);
  color: #ff6b4a;
  box-shadow: 0 0 12px rgba(239, 51, 20, 0.3);
}

.navbar-team-toggle .team-toggle-btn.active.team-toggle-stars {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

@media (max-width: 820px) {
  .navbar-team-toggle .team-toggle-btn span:not(.team-toggle-dot) {
    display: none;
  }
  .navbar-team-toggle .team-toggle-btn {
    padding: 6px 8px;
  }
}

/* Hide all team switchers for players */
html.is-player .team-switcher-toggle,
body.is-player .team-switcher-toggle,
.is-player .team-switcher-toggle {
  display: none !important;
}

.team-card-logo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.35s ease;
}

.team-gateway-card:hover .team-card-logo-wrap {
  transform: scale(1.1) rotate(2deg);
}

.team-card-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.team-card-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.team-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.team-card-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   NAVBAR TEAM SWITCHER & GENESIS BADGE
   ============================================ */
.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  vertical-align: middle;
}

/* Segmented Quick Switcher in Navbar */
.team-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 3px;
  gap: 2px;
  backdrop-filter: blur(12px);
  margin-right: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.team-pill-btn img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.team-pill-btn:hover {
  color: #ffffff;
}

.team-pill-btn.active.pill-main {
  background: linear-gradient(135deg, #ef3314, #c92408);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(239, 51, 20, 0.5);
}

.team-pill-btn.active.pill-genesis {
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #0a0b12;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
}

/* ============================================
   STARS ROSTER BRANDING (Electric Blue & Cyan Theme)
   Tasarım dili Ana Kadro ile birebir aynı, renkler ise MAVİ (#0ea5e9 / #38bdf8)
   ============================================ */
body.theme-genesis {
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.22);
  --border-accent: rgba(56, 189, 248, 0.45);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.2);
}

body.theme-genesis .brand-title {
  color: #ffffff !important;
}

body.theme-genesis .navbar-logo {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5)) !important;
}

body.theme-genesis .navbar-team-genesis-text {
  align-self: flex-end;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 950 !important;
  font-size: 0.65rem !important;
  letter-spacing: 2px !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.7) !important;
  line-height: 1 !important;
  margin-top: 1px;
}

body.theme-genesis .badge-genesis-roster {
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
}

body.theme-genesis .nav-link:hover,
body.theme-genesis .nav-link.active {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

body.theme-genesis .lb-row.rank-1 {
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(18, 22, 34, 0.95) 100%) !important;
  box-shadow: 0 4px 26px rgba(56, 189, 248, 0.22), inset 0 0 15px rgba(56, 189, 248, 0.06) !important;
}

body.theme-genesis .lb-row.rank-1::after {
  background: linear-gradient(180deg, #38bdf8, #0284c7) !important;
}

body.theme-genesis .lb-row.rank-1:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.35), inset 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

body.theme-genesis .rank-badge-num.rank-gold {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6) !important;
}

body.theme-genesis .leader-tag {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0.2)) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
}

body.theme-genesis .lb-row:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(56, 189, 248, 0.15);
}

body.theme-genesis .mvp-card::before {
  background: #38bdf8 !important;
}

body.theme-genesis .mvp-card:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2) !important;
}

body.theme-genesis .mvp-badge {
  color: #38bdf8 !important;
}

body.theme-genesis .user-pill-avatar {
  border-color: #38bdf8 !important;
}

body.theme-genesis .user-pill-role {
  color: #38bdf8 !important;
}

body.theme-genesis .user-pill:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
}

body.theme-genesis .btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3) !important;
}

body.theme-genesis .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45) !important;
}

body.theme-genesis .active-map-card.selected {
  border: 2px solid #38bdf8 !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18) 0%, rgba(14, 18, 28, 0.98) 100%) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45), 0 6px 18px rgba(0, 0, 0, 0.55) !important;
}

body.theme-genesis .map-card-check {
  background: #38bdf8 !important;
}

body.theme-genesis .custom-season-option.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.06) 100%) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: inset 3px 0 0 #38bdf8 !important;
}

body.theme-genesis .season-opt-check {
  color: #38bdf8 !important;
}

body.theme-genesis .weekly-selector-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

body.theme-genesis .weekly-selector-btn.active .week-pill-badge.badge-live {
  color: #0284c7 !important;
}

body.theme-genesis .weekly-progress-bar-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
}

body.theme-genesis .archive-player-row.rank-1 {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2) !important;
}

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

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

/* ==========================================================================
   ULTRA-PREMIUM ESPORTS GATEWAY (TEAM SELECTION PORTAL)
   ========================================================================== */
#team-gateway-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999999 !important;
  background: radial-gradient(circle at 50% 30%, #111422 0%, #08090f 65%, #030406 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  overflow-y: auto !important;
}

html.gateway-dismissed #team-gateway-overlay {
  display: none !important;
}

/* Ambient Dual-Glow Background */
.gateway-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.gateway-glow-left {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(239, 51, 20, 0.22) 0%, rgba(239, 51, 20, 0.05) 45%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.gateway-glow-right {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.05) 45%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite alternate-reverse;
}

.gateway-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(20px, -20px); opacity: 1; }
}

/* Gateway Content Container */
.gateway-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.gateway-header {
  text-align: center;
  margin-bottom: 38px;
}

.gateway-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  margin-bottom: 14px;
}

.gateway-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.gateway-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards Grid */
.gateway-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
}

/* Base Card */
.gateway-card {
  position: relative;
  background: rgba(13, 16, 26, 0.85);
  border-radius: 24px;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gateway-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Card Specific Themes */
/* --- MAIN CARD --- */
.gateway-card-main {
  border-top: 4px solid #ef3314;
}

.gateway-card-main:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(239, 51, 20, 0.6);
  box-shadow: 0 30px 60px rgba(239, 51, 20, 0.25), 0 0 40px rgba(239, 51, 20, 0.15);
  background: rgba(18, 20, 32, 0.95);
}

.gateway-card-main .gateway-card-badge {
  background: rgba(239, 51, 20, 0.12);
  border: 1px solid rgba(239, 51, 20, 0.35);
  color: #ff5722;
}

.gateway-card-main .gateway-logo-halo {
  background: radial-gradient(circle, rgba(239, 51, 20, 0.25) 0%, rgba(239, 51, 20, 0.05) 55%, transparent 70%);
}

.gateway-card-main:hover .gateway-logo-halo {
  background: radial-gradient(circle, rgba(239, 51, 20, 0.4) 0%, rgba(239, 51, 20, 0.1) 60%, transparent 75%);
  transform: scale(1.15);
}

.gateway-card-main .gateway-btn {
  background: linear-gradient(135deg, #ef3314, #c9250b);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(239, 51, 20, 0.4);
}

.gateway-card-main:hover .gateway-btn {
  box-shadow: 0 8px 28px rgba(239, 51, 20, 0.6);
  transform: translateY(-2px);
}

/* --- GENESIS CARD --- */
.gateway-card-genesis {
  border-top: 4px solid #38bdf8;
}

.gateway-card-genesis:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 30px 60px rgba(56, 189, 248, 0.25), 0 0 40px rgba(56, 189, 248, 0.15);
  background: rgba(14, 22, 36, 0.95);
}

.gateway-card-genesis .gateway-card-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.gateway-card-genesis .gateway-logo-halo {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(255, 255, 255, 0.08) 55%, transparent 70%);
}

.gateway-card-genesis:hover .gateway-logo-halo {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(56, 189, 248, 0.15) 60%, transparent 75%);
  transform: scale(1.15);
}

.gateway-card-genesis .gateway-btn {
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #070913;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.gateway-card-genesis:hover .gateway-btn {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Card Elements */
.gateway-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.gateway-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.gateway-logo-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.gateway-logo-img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s ease;
}

.gateway-card:hover .gateway-logo-img {
  transform: scale(1.08);
}

.gateway-card-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.gateway-card-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
  max-width: 320px;
}

.gateway-features-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.gateway-feature-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.gateway-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gateway-footer-note {
  margin-top: 32px;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .gateway-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gateway-title {
    font-size: 1.8rem;
  }
  .gateway-card {
    padding: 30px 20px;
  }
}

/* ============================================
   ACTIVE DUTY MAP POOL PICKER (HLTV / Demo)
   ============================================ */
.active-map-pool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .active-map-pool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.active-map-card {
  background: rgba(18, 20, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.active-map-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(26, 29, 40, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.active-map-card.selected {
  border: 2px solid var(--accent, #ef3314);
  background: linear-gradient(180deg, rgba(239, 51, 20, 0.18) 0%, rgba(18, 20, 28, 0.98) 100%);
  box-shadow: 0 0 18px rgba(239, 51, 20, 0.45), 0 6px 18px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}

.map-card-thumb {
  width: 100%;
  height: 60px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.map-card-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: var(--accent, #ef3314);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.map-card-check svg {
  width: 12px;
  height: 12px;
}

.active-map-card.selected .map-card-check {
  opacity: 1;
  transform: scale(1);
}

.map-card-footer {
  padding: 7px 2px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.map-card-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.map-card-tag {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-map-card.selected .map-card-tag {
  color: #ff5533;
  font-weight: 800;
}

/* FACEIT Logo and Profile Link Buttons */
.faceit-logo-img {
  width: 15px !important;
  height: 12px !important;
  max-width: 15px !important;
  max-height: 12px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}


.faceit-profile-badge-btn {
  background: rgba(255, 85, 0, 0.12) !important;
  color: #ff7033 !important;
  border: 1px solid rgba(255, 85, 0, 0.4) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 0.76rem !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  padding: 3px 9px !important;
}

.faceit-profile-badge-btn:hover {
  background: #ff5500 !important;
  color: #fff !important;
  border-color: #ff5500 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.45) !important;
}

/* =========================================================================
   COACH FLOATING QUICK-ACTION NOTIFICATION WIDGET (Bottom Right)
   ========================================================================= */
.coach-quick-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(135deg, rgba(22, 24, 30, 0.98) 0%, rgba(14, 16, 20, 0.98) 100%);
  border: 1px solid rgba(239, 51, 20, 0.5);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 24px rgba(239, 51, 20, 0.25);
  backdrop-filter: blur(20px);
  padding: 16px;
  color: #fff;
  animation: coachWidgetSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}

@keyframes coachWidgetSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.coach-quick-widget.dismissing {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.coach-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.coach-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
}

.coach-widget-pulsing-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef3314;
  box-shadow: 0 0 8px #ef3314;
  animation: coachPulseDot 1.4s infinite alternate;
}

@keyframes coachPulseDot {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px #ef3314); }
}

.coach-widget-count {
  background: rgba(239, 51, 20, 0.18);
  color: #ff6b4a;
  border: 1px solid rgba(239, 51, 20, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.coach-widget-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.coach-widget-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.coach-widget-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.coach-widget-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ef3314;
  flex-shrink: 0;
  background: #111;
}

.coach-widget-info {
  flex: 1;
  min-width: 0;
}

.coach-widget-player-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coach-widget-team-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.coach-widget-stat-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #facc15;
}

.coach-widget-meta {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 2px;
}

.coach-widget-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coach-widget-approve-btn {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.6);
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.coach-widget-approve-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.coach-widget-approve-btn:active {
  transform: translateY(0);
}

.coach-widget-approve-btn.success {
  background: #059669;
  pointer-events: none;
}

.coach-widget-sub-actions {
  display: flex;
  gap: 8px;
}

.coach-widget-secondary-btn {
  flex: 1;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d1d5db;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.coach-widget-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================================================
   WEEKLY SUMMARY REPORT STYLES (Admin Dashboard)
   ========================================================================= */
.weekly-report-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.weekly-report-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(135deg, rgba(26, 28, 36, 0.7) 0%, rgba(18, 19, 24, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 22px;
  position: relative;
  z-index: 60;
  overflow: visible !important;
}

.weekly-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.weekly-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.2px;
}

.weekly-header-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  color: #94a3b8;
  font-weight: 500;
}

.weekly-header-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  position: relative;
  z-index: 100;
  padding-bottom: 2px;
}

.weekly-controls-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Custom Esports Season Picker ── */
.custom-season-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  z-index: 200;
  flex-shrink: 0;
}

.custom-season-picker.open {
  z-index: 99999;
}

.custom-season-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(28, 31, 42, 0.95) 0%, rgba(18, 20, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
  outline: none;
  font-family: 'Outfit', sans-serif;
}

.custom-season-trigger:hover {
  background: linear-gradient(135deg, rgba(38, 42, 60, 0.98) 0%, rgba(24, 27, 38, 1) 100%);
  border-color: rgba(239, 51, 20, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(239, 51, 20, 0.2);
  transform: translateY(-1px);
}

.custom-season-trigger.open,
.custom-season-picker.open .custom-season-trigger {
  border-color: #ef3314;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 51, 20, 0.35);
}

.season-trigger-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.season-trophy-icon {
  width: 16px;
  height: 16px;
  color: #ff6b4a;
  filter: drop-shadow(0 0 6px rgba(255, 107, 74, 0.45));
  flex-shrink: 0;
}

.season-prefix-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  color: #ff6b4a;
  background: rgba(239, 51, 20, 0.16);
  border: 1px solid rgba(239, 51, 20, 0.38);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.season-current-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.season-status-chip {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.season-status-chip.chip-active {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.season-status-chip.chip-active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.season-status-chip.chip-archive {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.season-arrow-icon {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.custom-season-trigger.open .season-arrow-icon,
.custom-season-picker.open .season-arrow-icon {
  transform: rotate(180deg);
  color: #ff6b4a;
}

/* Dropdown Menu */
.custom-season-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: #10121a !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(239, 51, 20, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 8px;
  z-index: 999999 !important;
  animation: seasonMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-season-menu.show {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

@keyframes seasonMenuFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-season-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border: 1px solid transparent;
  position: relative;
}

.custom-season-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.custom-season-option.active {
  background: linear-gradient(90deg, rgba(239, 51, 20, 0.22) 0%, rgba(239, 51, 20, 0.06) 100%);
  border-color: rgba(239, 51, 20, 0.5);
  box-shadow: inset 3px 0 0 #ef3314;
}

.season-opt-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.season-opt-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-opt-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.season-opt-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.season-opt-badge.badge-active {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.season-opt-badge.badge-active::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
}

.season-opt-badge.badge-archive {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.season-opt-dates {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.season-opt-check {
  width: 16px;
  height: 16px;
  color: #ff6b4a;
  display: none;
  flex-shrink: 0;
}

.custom-season-option.active .season-opt-check {
  display: block;
}

/* ── Dynamic Season Weeks Segmented Buttons (Tek Satırda) ── */
.weekly-week-selector {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap !important;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.weekly-week-selector::-webkit-scrollbar {
  display: none;
}

.weekly-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Outfit', sans-serif;
  outline: none;
}

.weekly-selector-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.weekly-selector-btn.active {
  background: linear-gradient(135deg, #ef3314 0%, #ff5233 100%);
  color: #fff;
  border-color: #ef3314;
  box-shadow: 0 4px 18px rgba(239, 51, 20, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.week-btn-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.week-btn-dates {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.38);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0px;
}

.weekly-selector-btn.active .week-btn-dates {
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.week-pill-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.week-pill-badge.badge-live {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.weekly-selector-btn.active .week-pill-badge.badge-live {
  background: #ffffff;
  color: #ef3314;
  border: 1px solid #ffffff;
  font-weight: 950;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.week-pill-badge.badge-done {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.weekly-selector-btn.active .week-pill-badge.badge-done {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.week-pill-badge.badge-future {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.weekly-selector-btn.active .week-pill-badge.badge-future {
  background: rgba(0, 0, 0, 0.28);
  color: #fde047;
  border-color: rgba(253, 224, 71, 0.4);
}

.weekly-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.weekly-kpi-card {
  background: linear-gradient(135deg, rgba(28, 30, 38, 0.85) 0%, rgba(18, 20, 26, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.weekly-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.weekly-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-color, #ef3314), transparent);
}

.weekly-kpi-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
}

.weekly-kpi-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.weekly-kpi-sub {
  font-size: 0.78rem;
  color: #6b7280;
}

.weekly-player-table-wrap {
  background: linear-gradient(135deg, rgba(26, 28, 36, 0.85) 0%, rgba(18, 19, 24, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow-x: auto;
}

.weekly-player-table {
  width: 100%;
  border-collapse: collapse;
}

.weekly-player-table th {
  padding: 14px 18px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
}

.weekly-player-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: #e5e7eb;
}

.weekly-player-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.weekly-progress-bar-wrap {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.weekly-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef3314, #ff6b4a);
  transition: width 0.4s ease;
}

.discord-report-box {
  background: rgba(14, 16, 20, 0.85);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 14px;
  padding: 18px;
}

/* ── 5v5 Comparison Arena Roster ELO Badges ── */
.compare-roster-elo {
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.1;
  text-align: center !important;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-block;
}

.card-main .compare-roster-elo,
.compare-roster-elo.elo-main {
  background: rgba(239, 51, 20, 0.2);
  border: 1px solid rgba(239, 51, 20, 0.5);
  color: #ff6b4a;
  box-shadow: 0 0 8px rgba(239, 51, 20, 0.25);
}

.card-stars .compare-roster-elo,
.compare-roster-elo.elo-stars {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.card-main .compare-roster-pill:hover .compare-roster-elo {
  background: rgba(239, 51, 20, 0.35);
  border-color: rgba(239, 51, 20, 0.85);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 51, 20, 0.5);
}

.card-stars .compare-roster-pill:hover .compare-roster-elo {
  background: rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.85);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

/* ── Weekly Report Esports Role Badges ── */
.weekly-role-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.weekly-role-badge.role-igl {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.weekly-role-badge.role-awp {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.weekly-role-badge.role-entry {
  background: rgba(239, 51, 20, 0.16);
  color: #ff6b4a;
  border: 1px solid rgba(239, 51, 20, 0.4);
}

.weekly-role-badge.role-rifler {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.weekly-role-badge.role-support {
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.weekly-role-badge.role-coach {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.weekly-role-badge.role-default {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Custom Esports Role Picker (Duel Filter) ── */
.compare-duels-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

.compare-duels-actions.dropdown-open {
  z-index: 999999 !important;
}

.custom-role-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
  z-index: 1000;
  flex-shrink: 0;
}

.custom-role-picker.open {
  z-index: 999999 !important;
}

.custom-role-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(28, 31, 42, 0.95) 0%, rgba(18, 20, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 7px 13px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
  outline: none;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.custom-role-trigger:hover {
  background: linear-gradient(135deg, rgba(38, 42, 60, 0.98) 0%, rgba(24, 27, 38, 1) 100%);
  border-color: rgba(239, 51, 20, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(239, 51, 20, 0.2);
  transform: translateY(-1px);
}

.custom-role-trigger.open,
.custom-role-picker.open .custom-role-trigger {
  border-color: #ef3314;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 51, 20, 0.35);
}

.role-trigger-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-crosshair-icon {
  width: 15px;
  height: 15px;
  color: #ff6b4a;
  filter: drop-shadow(0 0 6px rgba(255, 107, 74, 0.45));
  flex-shrink: 0;
}

.role-prefix-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  color: #ff6b4a;
  background: rgba(239, 51, 20, 0.16);
  border: 1px solid rgba(239, 51, 20, 0.38);
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.role-current-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.role-count-chip {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.role-arrow-icon {
  width: 13px;
  height: 13px;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.custom-role-trigger.open .role-arrow-icon,
.custom-role-picker.open .role-arrow-icon {
  transform: rotate(180deg);
  color: #ff6b4a;
}

/* Dropdown Menu */
.custom-role-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 320px;
  max-width: 380px;
  background: #10121a !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.98), 0 0 25px rgba(239, 51, 20, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 8px;
  z-index: 9999999 !important;
  animation: roleMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto !important;
}

.custom-role-menu.show {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}

@keyframes roleMenuFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-role-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border: 1px solid transparent;
  position: relative;
}

.custom-role-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.custom-role-option.active {
  background: linear-gradient(90deg, rgba(239, 51, 20, 0.22) 0%, rgba(239, 51, 20, 0.06) 100%);
  border-color: rgba(239, 51, 20, 0.5);
  box-shadow: inset 3px 0 0 #ef3314;
}

.role-opt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.role-opt-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b4a;
  flex-shrink: 0;
}

.custom-role-option.active .role-opt-icon-box {
  background: rgba(239, 51, 20, 0.2);
  border-color: rgba(239, 51, 20, 0.4);
  color: #ff6b4a;
}

.role-opt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.role-opt-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-role-option.active .role-opt-title {
  color: #ffffff;
  font-weight: 800;
}

.role-opt-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.5px;
}

.custom-role-option.active .role-opt-tag {
  background: rgba(239, 51, 20, 0.25);
  color: #ff8a65;
  border-color: rgba(239, 51, 20, 0.5);
}

.role-opt-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.70rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-opt-count-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.role-opt-check {
  color: #4ade80;
  display: none;
  flex-shrink: 0;
}

.custom-role-option.active .role-opt-check {
  display: inline-flex;
}




