
:root {
  /* SPL Rainbow palette — matches soccerstarpremierleague.com */
  --spl-red:    #e03a1e;
  --spl-orange: #f07b20;
  --spl-yellow: #f5c518;
  --spl-green:  #2dab4f;
  --spl-blue:   #3b9fd4;
  --spl-pink:   #d63072;
  --spl-black:  #111111;

  --blue-900: #111111;
  --blue-800: #1a1a1a;
  --blue-700: #2a2a2a;
  --blue-600: #333333;
  --blue-500: #2dab4f;
  --blue-400: #3bc463;
  --blue-300: #6dd98a;
  --blue-200: #b7f0c8;
  --blue-100: #e8faf0;
  --cyan:     #3b9fd4;
  --teal:     #2dab4f;
  --gold:     #f5c518;
  --green:    #2dab4f;
  --red:      #e03a1e;
  --yellow:   #f5c518;
  --white:    #ffffff;
  --gray-50:  #f8f8f6;
  --gray-100: #efefed;
  --gray-200: #e0e0de;
  --gray-300: #c8c8c6;
  --gray-500: #666664;
  --gray-700: #333331;
  --text-primary: #111111;
  --text-secondary: #555553;
  --sidebar-w: 260px;
  --topbar-h: 60px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}


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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-50);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ==================== SIDEBAR ==================== */

.sidebar {
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2dab4f 0%, #1a7a32 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.sidebar-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 4px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
background: #2dab4f;
  transform: scaleY(0);
  transition: transform 0.2s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transform: translateX(2px);
}

.nav-item:hover::before {
  transform: scaleY(1);
}

.nav-item.active {
background: linear-gradient(90deg, rgba(45, 171, 79, 0.2) 0%, rgba(45, 171, 79, 0.05) 100%);
  color: white;
  font-weight: 600;
}

.nav-item.active::before {
  transform: scaleY(1);
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-info:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Responsive */
/* Dashboard responsive */
.dashboard-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .dashboard-row-2col {
    grid-template-columns: 1fr;
  }
  .dashboard-card-header {
    padding: 12px 16px !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  .dashboard-card-body {
    padding: 12px !important;
  }
  /* Points table inside dashboard */
  .dashboard-card .card-body [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Scorer items */
  .scorer-item {
    padding: 8px 12px;
  }
  .scorer-name {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .dashboard-card-title {
    font-size: 14px !important;
  }

  .scorer-goals {
    font-size: 18px;
  }
}

/* Sidebar collapsed state (optional) */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-details {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}

.sidebar.collapsed .nav-icon {
  font-size: 24px;
}

/* ===================== TOPBAR (Mobile) ===================== */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--blue-900);
  z-index: 200;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.topbar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: white;
  letter-spacing: 1px;
  flex: 1;
}

.topbar-actions { margin-left: auto; }

.live-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: rgba(239,68,68,0.15);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(239,68,68,0.3);
}

.pulse {
  animation: pulse 2s infinite;
}

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

/* ===================== MAIN CONTENT ===================== */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  width: calc(100% - 280px);  /* ADD THIS LINE */
  padding: 32px;
  background: #f8fafc;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    width: 100%;  /* ADD THIS LINE */
    padding: 80px 16px 24px;
  }
}


/* ===================== PAGES ===================== */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

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

/* ===================== PAGE HEADER ===================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--blue-900);
  letter-spacing: 1.5px;
  line-height: 1;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.45);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.btn-secondary:hover { background: var(--gray-200); }

.btn-danger {
  background: rgba(239,68,68,0.1);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-success {
  background: rgba(16,185,129,0.1);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}

.btn-success:hover { background: rgba(16,185,129,0.2); }

/* ===================== STATS GRID ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent, var(--blue-500));
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: var(--accent, var(--blue-500));
  opacity: 0.05;
  border-radius: 50%;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon { font-size: 28px; }

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--blue-900);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* ===================== DASHBOARD GRID ===================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===================== CARDS ===================== */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

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

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-900);
}

.card-link {
  font-size: 12px;
  color: var(--blue-500);
  text-decoration: none;
  font-weight: 600;
}

.card-link:hover { color: var(--blue-700); }

/* ===================== CARD GRID (Teams, Tournaments) ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tournament-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.tournament-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.tournament-card-header {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.tournament-card-header::before {
  content: '🏆';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  opacity: 0.15;
}

.tournament-card-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
}

.tournament-card-header .tc-type {
  font-size: 11px;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 6px;
}

.tournament-card-body {
  padding: 16px;
}

.tc-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tc-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tc-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

/* Team Cards */
.team-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.team-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.team-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.team-name { font-size: 16px; font-weight: 700; color: var(--blue-900); }
.team-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.team-stats {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}

.ts-item { text-align: center; flex: 1; }
.ts-value { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--blue-500); display: block; }
.ts-label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===================== TABLE ===================== */
.table-container {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: rgba(255,255,255,0.85);
  padding: 13px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.data-table tbody tr:hover { background: var(--gray-50); }

.data-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

.empty-row {
  text-align: center !important;
  color: var(--text-secondary) !important;
  padding: 40px !important;
  font-style: italic;
}

.points-table thead th { font-size: 11px; padding: 12px; }
.points-table tbody td { text-align: center; padding: 12px; }
.points-table tbody td:nth-child(2) { text-align: left; font-weight: 600; }

.pos-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin: 0 auto;
}

.pos-1 { background: var(--gold); color: white; }
.pos-2 { background: var(--gray-300); color: var(--gray-700); }
.pos-3 { background: #cd7f32; color: white; }

/* ===================== FIXTURES ===================== */
.fixture-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fixture-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  border-left: 4px solid var(--blue-400);
}

.fixture-card.live { border-left-color: var(--red); }
.fixture-card.completed { border-left-color: var(--green); opacity: 0.85; }

.fixture-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }

.fixture-team {
  display: flex;
  flex-direction: column;
}

.fixture-team.away { align-items: flex-end; }

.fixture-team-name { font-weight: 700; font-size: 15px; color: var(--blue-900); }
.fixture-team-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.fixture-center {
  text-align: center;
  min-width: 100px;
}

.fixture-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--blue-900);
  letter-spacing: 2px;
}

.fixture-vs { font-size: 18px; color: var(--text-secondary); font-weight: 700; }

.fixture-time {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.fixture-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.fixture-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-scheduled { background: var(--blue-100); color: var(--blue-500); }
.badge-live { background: rgba(239,68,68,0.1); color: var(--red); }
.badge-completed { background: rgba(16,185,129,0.1); color: var(--green); }

/* ===================== LIVE SCORING ===================== */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.live-match-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border-top: 4px solid var(--red);
}

.live-match-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-match-header span { color: rgba(255,255,255,0.8); font-size: 12px; }

.live-timer {
  background: var(--red);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
}

.live-scoreboard {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.live-team-name { font-size: 16px; font-weight: 700; color: var(--blue-900); }
.live-score-display {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--blue-900);
  letter-spacing: 4px;
  line-height: 1;
}

.live-score-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-btn {
  width: 36px; height: 36px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: 700;
}

.score-btn-plus { background: rgba(16,185,129,0.15); color: var(--green); }
.score-btn-minus { background: rgba(239,68,68,0.1); color: var(--red); }
.score-btn:hover { transform: scale(1.1); }

.live-match-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.events-log {
  padding: 0 16px 16px;
  max-height: 160px;
  overflow-y: auto;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}

.event-minute {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 1px 5px;
  border-radius: 4px;
  min-width: 36px;
  text-align: center;
}

/* ===================== TOP SCORERS ===================== */
.scorers-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.podium-item {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  min-width: 130px;
  transition: var(--transition);
}

.podium-item:hover { transform: translateY(-4px); }

.podium-item.p1 { border-top: 4px solid var(--gold); }
.podium-item.p2 { border-top: 4px solid var(--gray-300); }
.podium-item.p3 { border-top: 4px solid #cd7f32; }

.podium-medal { font-size: 32px; display: block; margin-bottom: 8px; }
.podium-name { font-weight: 700; font-size: 15px; color: var(--blue-900); }
.podium-team { font-size: 12px; color: var(--text-secondary); margin: 2px 0; }
.podium-goals {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--blue-500);
  line-height: 1;
  margin-top: 6px;
}
.podium-goals-label { font-size: 11px; color: var(--text-secondary); }

/* ===================== CARDS & DISCIPLINE ===================== */
.cards-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.card-stat-box {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.card-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  display: block;
  line-height: 1;
}

.yellow-stat { color: var(--yellow); }
.red-stat { color: var(--red); }
.suspended-stat { color: var(--gray-500); }

.card-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ===================== MODALS ===================== */
/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999; /* CRITICAL: Must be very high */
  overflow-y: auto;
}

/* When modal is active */
.modal-overlay.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Modal Content */
.modal-content {
  background: white;
  border-radius: 16px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 10000; /* Even higher than overlay */
}

.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
}

.modal-close {
  background: var(--gray-100);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.modal-close:hover { background: var(--gray-200); }

.modal-body { padding: 24px; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ===================== FORMS ===================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: span 2; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: white;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.form-select {
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: white;
  transition: var(--transition);
  outline: none;
  cursor: pointer;
}

.form-select:focus { border-color: var(--blue-400); }

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

.empty-state span { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 14px; }
.full-width { grid-column: 1 / -1; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blue-900);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--blue-400); }

/* ===================== MISC ===================== */
.yellow-card { background: var(--yellow); color: white; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.red-card { background: var(--red); color: white; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }

.potm-badge {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .cards-summary { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 80px 16px 24px; }
  .topbar { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .fixture-card { grid-template-columns: 1fr; gap: 8px; }
  .fixture-team.away { align-items: flex-start; }
  .scorers-podium { flex-direction: column; align-items: center; }
  .cards-summary { grid-template-columns: 1fr; }
  .modal { max-width: 100%; border-radius: 16px 16px 0 0; margin-top: auto; }
  .live-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 28px; }
}

.bulk-edit-item {
  transition: all 0.2s;
}

.bulk-edit-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Auto Fixtures Modal Fixes */
#modalAutoFixtures .modal-content {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

#modalAutoFixtures .form-group {
  margin-bottom: 20px;
}

#modalAutoFixtures .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
}

#modalAutoFixtures .form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
}

#modalAutoFixtures .form-input:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Tabs */
.tabs-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.tabs-header {
  display: flex;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  padding: 0;
}

.tab-btn {
  flex: 1;
  padding: 16px 24px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.tab-btn.active {
  color: #2dab4f;
  background: white;
  border-bottom-color: #2dab4f;
}

.tab-content {
  display: none;
  padding: 24px;
}

.tab-content.active {
  display: block;
}

/* League Group Tables */
.group-tables-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.group-table-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.group-table-header {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.group-standings-table {
  width: 100%;
  font-size: 13px;
}

.group-standings-table th {
  text-align: left;
  padding: 8px 4px;
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
}

.group-standings-table td {
  padding: 10px 4px;
  border-bottom: 1px solid #f1f5f9;
}

.group-standings-table tr:hover {
  background: #f8fafc;
}

.qualified-badge {
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 8px;
}

/* Knockout Bracket */
.knockout-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.knockout-header {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.bracket {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 20px 0;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 200px;
}

.round-title {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.bracket-match {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
  transition: all 0.2s;
}

.bracket-match:hover {
  border-color: #1a56db;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.15);
}

.bracket-match.completed {
  border-color: #10b981;
}

.bracket-team {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.bracket-team:last-child {
  border-bottom: none;
}

.bracket-team.winner {
  background: #f0fdf4;
  font-weight: 700;
  color: #166534;
}

.bracket-team-name {
  flex: 1;
}

.bracket-team.tbd .bracket-team-name {
  color: #94a3b8;
  font-style: italic;
}

.bracket-score {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-left: 12px;
}

.match-date-badge {
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
  margin-top: 8px;
}

/* Empty States */
.empty-state-inline {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.empty-state-inline span {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

/* ==================== AUTO GENERATE MODAL STYLES ==================== */

.auto-form-group {
  margin-bottom: 22px;
}

.auto-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.auto-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #1e293b;
  background: white;
  transition: all 0.2s;
  outline: none;
}

.auto-input:focus {
  border-color: #1a56db;
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.08);
}

.auto-input:hover {
  border-color: #cbd5e1;
}

.auto-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.auto-info-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 24px;
}

.auto-info-label {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.auto-info-content {
  font-size: 14px;
  color: #0c4a6e;
  line-height: 1.7;
}

.auto-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.auto-checkbox-label:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.auto-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #1a56db;
}

.auto-checkbox-label span {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}

.auto-nested-card {
  margin-top: 16px;
  padding: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.auto-info-pill {
  background: #dbeafe;
  color: #1e40af;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}

.auto-note {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 18px;
  border-radius: 10px;
  color: #78350f;
}

/* Scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==================== TOURNAMENT TABS ==================== */
.tournament-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.tournament-tab {
  padding: 12px 24px;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tournament-tab:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.tournament-tab.active {
background: linear-gradient(135deg, #2dab4f, #3bc463);
color: white;
border-color: #2dab4f;
}

/* ==================== DASHBOARD CARDS ==================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.dashboard-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card-icon {
  font-size: 20px;
}

.dashboard-card-body {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.dashboard-card-body::-webkit-scrollbar {
  width: 6px;
}

.dashboard-card-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.dashboard-card-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Top Scorers Card */
.scorer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.scorer-item:hover {
  background: #f8fafc;
}

.scorer-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

.scorer-rank.gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.scorer-rank.silver { background: linear-gradient(135deg, #94a3b8, #cbd5e1); color: #1e293b; }
.scorer-rank.bronze { background: linear-gradient(135deg, #c2410c, #ea580c); }

.scorer-info {
  flex: 1;
  min-width: 0;
}

.scorer-name {
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorer-team {
  font-size: 12px;
  color: #64748b;
}

.scorer-goals {
  font-size: 20px;
  font-weight: 700;
  color: #1a56db;
  flex-shrink: 0;
}

/* Live Matches Card */
.live-match-item {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.live-match-badge {
  display: inline-block;
  background: #dc2626;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: pulse 2s infinite;
}

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

.live-match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.live-match-team {
  text-align: center;
  flex: 1;
}

.live-match-team-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 15px;
}

.live-match-score {
  font-size: 28px;
  font-weight: 700;
  color: #1a56db;
  padding: 0 20px;
}

.live-match-info {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
}

/* Teams Card */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.team-card-mini {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.team-card-mini:hover {
  background: white;
  border-color: #1a56db;
  transform: translateY(-2px);
}

.team-card-mini-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.team-card-mini-name {
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card-mini-players {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Cards Discipline */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
}

.card-item-player {
  flex: 1;
  font-weight: 600;
  color: #1e293b;
}

.card-item-team {
  font-size: 12px;
  color: #64748b;
}

.card-item-count {
  display: flex;
  gap: 6px;
  align-items: center;
}

.card-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.card-badge.yellow {
  background: #fef3c7;
  color: #92400e;
}

.card-badge.red {
  background: #fee2e2;
  color: #991b1b;
}

/* Empty State */
.dashboard-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}

.dashboard-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.dashboard-empty-text {
  font-size: 14px;
}

/* ==================== FORM INDICATORS (LAST 5) ==================== */
.form-indicators {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.form-badge {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  transition: transform 0.2s;
}

.form-badge:hover {
  transform: scale(1.1);
}

.form-badge.win {
  background: #10b981;
  color: white;
}

.form-badge.draw {
  background: #f59e0b;
  color: white;
}

.form-badge.loss {
  background: #ef4444;
  color: white;
}

.form-badge.empty {
  background: #f1f5f9;
  color: #cbd5e1;
}

.standings-form {
  padding: 8px !important;
}

/* Position badges */
.position-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  text-align: center;
  line-height: 28px;
}

.position-badge.first {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
}

.position-badge.qualify {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: white;
}

.qualify-zone {
  background: linear-gradient(to right, rgba(26, 86, 219, 0.03), transparent);
}

.standings-stat.positive {
  color: #10b981;
  font-weight: 700;
}

.standings-stat.negative {
  color: #ef4444;
  font-weight: 700;
}

/* ==================== TOP SCORERS GRID ==================== */
.scorers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.scorer-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.scorer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2e8f0;
}

.scorer-card.gold::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.scorer-card.silver::before { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.scorer-card.bronze::before { background: linear-gradient(90deg, #c2410c, #ea580c); }

.scorer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-color: #1a56db;
}

.scorer-card-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.scorer-card-rank-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.scorer-card.gold .scorer-card-rank-number {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
}

.scorer-card.silver .scorer-card-rank-number {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  color: #1e293b;
}

.scorer-card.bronze .scorer-card-rank-number {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: white;
}

.scorer-card-medal {
  font-size: 32px;
}

.scorer-card-body {
  margin-bottom: 16px;
}

.scorer-card-player {
  margin-bottom: 12px;
}

.scorer-card-name {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.scorer-card-position {
  font-size: 13px;
  color: #64748b;
  background: #f1f5f9;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
}

.scorer-card-team,
.scorer-card-tournament {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.scorer-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 2px solid #f1f5f9;
}

.scorer-card-stat-main {
  text-align: center;
}

.scorer-card-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #1a56db;
  line-height: 1;
}

.scorer-card-stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 4px;
}

.scorer-card-stat-secondary {
  text-align: center;
}

.scorer-card-stat-value-sm {
  font-size: 24px;
  font-weight: 700;
  color: #0ea5e9;
}

.scorer-card-stat-label-sm {
  font-size: 11px;
  color: #64748b;
}

/* ==================== GLOBAL TOURNAMENT SELECTOR ==================== */
/* ✨ ADD THIS ENTIRE SECTION - PASTE AT END OF FILE */

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.tournament-selector {
  display: flex;
  align-items: center;
  gap: 12px;
background: linear-gradient(135deg, rgba(45, 171, 79, 0.1), rgba(59, 180, 99, 0.1));
border: 2px solid rgba(45, 171, 79, 0.3);
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 300px;
  max-width: 500px;
}

.tournament-selector:hover {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.15), rgba(59, 130, 246, 0.15));
  transform: translateY(-1px);
  border-color: #2dab4f;
  box-shadow: 0 4px 12px rgba(45, 171, 79, 0.2);
}

.tournament-selector-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.tournament-selector-content {
  flex: 1;
  min-width: 0;
}

.tournament-selector-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tournament-selector-name {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tournament-selector-arrow {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.tournament-selector:hover .tournament-selector-arrow {
  transform: translateY(2px);
}

/* Tournament Selector Modal List */
.tournament-select-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tournament-select-item:hover {
  background: white;
  border-color: #1a56db;
  transform: translateX(4px);
}

.tournament-select-item.active {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #1a56db;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
}

.tournament-select-item-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.tournament-select-item-content {
  flex: 1;
  min-width: 0;
}

.tournament-select-item-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.tournament-select-item-meta {
  font-size: 13px;
  color: #64748b;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tournament-select-item-badge {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.tournament-select-item.active .tournament-select-item-badge {
  background: rgba(255, 255, 255, 0.5);
  color: #1e40af;
}

.tournament-select-item-check {
  font-size: 24px;
  color: #10b981;
  flex-shrink: 0;
}

/* Dashboard Cards Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.dashboard-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card-icon {
  font-size: 20px;
}

.dashboard-card-body {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.dashboard-card-body::-webkit-scrollbar {
  width: 6px;
}

.dashboard-card-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.dashboard-card-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Top Scorers Card */
.scorer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.2s;
  cursor: pointer;
}

.scorer-item:hover {
  background: #f8fafc;
}

.scorer-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}

.scorer-rank.gold { 
  background: linear-gradient(135deg, #f59e0b, #fbbf24); 
}

.scorer-rank.silver { 
  background: linear-gradient(135deg, #94a3b8, #cbd5e1); 
  color: #1e293b; 
}

.scorer-rank.bronze { 
  background: linear-gradient(135deg, #c2410c, #ea580c); 
}

.scorer-info {
  flex: 1;
  min-width: 0;
}

.scorer-name {
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorer-team {
  font-size: 12px;
  color: #64748b;
}

.scorer-goals {
  font-size: 20px;
  font-weight: 700;
  color: #1a56db;
  flex-shrink: 0;
}

/* Form Indicators (Last 5 Matches) */
.form-indicators {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.form-badge {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  transition: transform 0.2s;
}

.form-badge:hover {
  transform: scale(1.1);
}

.form-badge.win {
  background: #10b981;
  color: white;
}

.form-badge.draw {
  background: #f59e0b;
  color: white;
}

.form-badge.loss {
  background: #ef4444;
  color: white;
}

.form-badge.empty {
  background: #f1f5f9;
  color: #cbd5e1;
}

.standings-form {
  padding: 8px !important;
}

/* Position badges */
.position-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  text-align: center;
  line-height: 28px;
}

.position-badge.first {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
}

.position-badge.qualify {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: white;
}

.qualify-zone {
  background: linear-gradient(to right, rgba(26, 86, 219, 0.03), transparent);
}

.standings-stat.positive {
  color: #10b981;
  font-weight: 700;
}

.standings-stat.negative {
  color: #ef4444;
  font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-center {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    z-index: 999;
    justify-content: flex-start;
  }
  
  .tournament-selector {
    min-width: auto;
    width: 100%;
  }
  
  .main-content {
    padding-top: 140px !important;
  }
}

@media (max-width: 480px) {
  .tournament-selector-label {
    font-size: 9px;
  }
  
  .tournament-selector-name {
    font-size: 14px;
  }
}
/* ==================== DESKTOP HEADER ==================== */
.desktop-header {
  display: none; /* Hidden on mobile */
  position: fixed;
  top: 0;
  left: 280px; /* Width of sidebar */
  right: 0;
  height: 70px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  z-index: 999;
  padding: 0 32px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 769px) {
  .desktop-header {
    display: flex; /* Show on desktop */
  }
  
  .main-content {
    padding-top: 90px; /* Add space for header */
  }
}

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

.desktop-header-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.desktop-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 40px;
  max-width: 600px;
}

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

.header-btn {
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn:hover {
  background: #e2e8f0;
}

/* Form badges in points table */
.form-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  text-align: center;
  line-height: 24px;
  margin: 0 2px;
  font-weight: 700;
  font-size: 12px;
  transition: transform 0.2s;
}

.form-badge:hover {
  transform: scale(1.15);
}

.form-badge.win {
  background: #10b981;
  color: white;
}

.form-badge.draw {
  background: #f59e0b;
  color: white;
}

.form-badge.loss {
  background: #ef4444;
  color: white;
}

.form-badge.empty {
  background: #e2e8f0;
  color: #94a3b8;
}


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

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Player Avatar */
.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }


/* =====================================================
   COMPREHENSIVE MOBILE RESPONSIVE - ALL PAGES
   ===================================================== */

/* ---- Shared utility classes for responsive grids ---- */
.resp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.resp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===================== 768px BREAKPOINT ===================== */
@media (max-width: 768px) {

  /* Page header */
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-header-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .page-header-actions .btn-primary,
  .page-header-actions .btn-secondary { flex: 1; min-width: 120px; }
  .page-title { font-size: 26px; }

  /* Filter bars — stack to single column */
  .page > div[style*="grid-template-columns: 1fr 1fr"],
  .page > div > div[style*="grid-template-columns: 1fr 1fr 1fr"],
  .page > div > div[style*="grid-template-columns: 1fr 1fr 1fr auto"],
  .page > div > div[style*="grid-template-columns: 1fr 1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  /* Tables — make scrollable */
  .table-container, .data-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }

  /* Points table — horizontal scroll */
  #pointsTableContainer, #pointsTableWrapper { overflow-x: auto; }

  /* Team card — stack logo and info */
  div[style*="grid-template-columns: 200px 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="width: 200px; height: 200px"] {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto !important;
  }

  /* Team management 2-col grid */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Player card stats - 5 col → 3 col */
  div[style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Player card stats - 4 col → 2 col */
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 3-col stat grids → 2-col */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Fixture VS layout — keep but shrink */
  div[style*="grid-template-columns: 2fr auto 2fr"] {
    gap: 8px !important;
  }

  /* Live scoring action buttons */
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 12px"] {
    grid-template-columns: 1fr !important;
  }

  /* Player view header — stack */
  div[style*="grid-template-columns: 1fr 1fr"][style*="background"][style*="color: white"] {
    grid-template-columns: 1fr !important;
  }

  /* Group access grid */
  div[style*="grid-template-columns: 2fr repeat(4,1fr)"],
  div[style*="grid-template-columns:2fr repeat(4,1fr)"] {
    overflow-x: auto;
  }

  /* Dashboard row 2-col already handled by .dashboard-row-2col */
  .dashboard-row-2col { grid-template-columns: 1fr !important; }

  /* Modal full screen on mobile */
  .modal {
    max-width: 100% !important;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    overflow-y: auto;
  }
  .modal-overlay { align-items: flex-end !important; }

  /* Form grid */
  .form-grid { grid-template-columns: 1fr !important; }
  .form-group.full { grid-column: span 1 !important; }

  /* Topbar title */
  .topbar-title { font-size: 18px; }

  /* User groups / users card grid */
  div[style*="grid-template-columns:repeat(auto-fill,minmax(320px"] {
    grid-template-columns: 1fr !important;
  }

  /* Top scorers / cards table */
  #topScorersContent table,
  #cardsContent table { min-width: 480px; font-size: 13px; }
  #topScorersContent th,
  #topScorersContent td,
  #cardsContent th,
  #cardsContent td { padding: 10px 8px !important; }

  /* Player table */
  #playerTableBody tr td:nth-child(5),
  #playerTableBody tr td:nth-child(6) { display: none; }

  /* Event timeline — make narrower cards */
  div[style*="grid-template-columns:1fr 40px 1fr"] {
    grid-template-columns: 1fr 32px 1fr !important;
    gap: 4px !important;
  }

  /* Live match card score */
  .live-score-display { font-size: 36px !important; }
  .live-team-name { font-size: 14px !important; }

  /* Points table min-width scroll */
  #pointsTableBody { display: block; overflow-x: auto; }

  /* Group Access grid — horizontal scroll on mobile */
  #groupAccessContent { overflow-x: auto; }
  #groupAccessContent > div { min-width: 520px; }
}

/* ===================== 480px BREAKPOINT ===================== */
@media (max-width: 480px) {

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

  /* Single column everything */
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats grids stay 2-col minimum */
  div[style*="grid-template-columns: repeat(5, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Fixture card VS row — smaller text */
  div[style*="grid-template-columns: 2fr auto 2fr"] {
    font-size: 13px !important;
  }

  /* Player photo size */
  div[style*="width: 50px; height: 50px"] {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  /* Buttons full width in action rows */
  .btn-primary, .btn-secondary, .btn-danger {
    font-size: 13px;
    padding: 10px 16px;
  }

  /* Hide less important table columns */
  #playerTableBody tr td:nth-child(4),
  #playerTableBody tr td:nth-child(5),
  #playerTableBody tr td:nth-child(6) { display: none; }

  /* Top scorers — hide jersey and position cols on tiny screens */
  #topScorersContent table th:nth-child(3),
  #topScorersContent table td:nth-child(3),
  #topScorersContent table th:nth-child(4),
  #topScorersContent table td:nth-child(4) { display: none; }

  /* Match result card font sizes */
  div[style*="font-size: 48px"][style*="font-weight: 700"] { font-size: 32px !important; }
  div[style*="font-size: 36px"][style*="font-weight: 700"] { font-size: 26px !important; }

  /* Event timeline cards */
  div[style*="grid-template-columns:1fr 40px 1fr"],
  div[style*="grid-template-columns: 1fr 40px 1fr"] {
    grid-template-columns: 1fr 28px 1fr !important;
  }

  /* Login screen padding */
  #loginScreen > div { padding: 16px !important; }
  #loginScreen .modal,
  #loginScreen > div > div:nth-child(2) { padding: 24px 20px !important; }
}

/* SPL Rainbow top stripe */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #e03a1e 0%, #f07b20 20%, #f5c518 40%, #2dab4f 60%, #3b9fd4 80%, #d63072 100%);
  z-index: 99999;
  pointer-events: none;
}

/* =====================================================
   MOBILE FIXES FOR INLINE STYLES IN APP.JS
   ===================================================== */

/* Teams page — group grid */
@media (max-width: 768px) {

  /* Teams page Group A/B grid → single column */
  #teamsGroupsContainer > div {
    grid-template-columns: 1fr !important;
  }

  /* Team card — logo + info horizontal → vertical */
  #teamsGroupsContainer [style*="grid-template-columns: 200px 1fr"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Team logo — shrink from 200px */
  #teamsGroupsContainer [style*="width: 200px; height: 200px"] {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto;
  }
  #teamsGroupsContainer [style*="width: 200px; height: 200px"] + div {
    align-items: center !important;
  }

  /* Points table groups grid → single column */
  #pointsTableContent > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* League 1/2 group cards grid */
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Match result score row — keep but shrink text */
  [style*="grid-template-columns: 2fr auto 2fr"] {
    font-size: 12px !important;
    gap: 6px !important;
  }

  /* Live scoring card score number */
  [style*="font-size: 52px"] {
    font-size: 36px !important;
  }

  /* Dashboard live match score */
  [style*="font-size: 28px; font-weight: 800; color: #10b981"] {
    font-size: 22px !important;
  }

  /* Tournament summary card grid */
  [style*="grid-template-columns:repeat(auto-fit,minmax(280px,1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Fixture filter bar */
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  /* Progression modal groups */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Player stats in team view */
  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Branding page image slots */
  [style*="grid-template-columns: repeat(3, 1fr)"][style*="branding"],
  #page-branding [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Audit log filters */
  #page-auditlog [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Desktop header hidden on mobile — already handled */
  .desktop-header { display: none !important; }

  /* Page padding reduction */
  .main-content { padding: 80px 12px 24px !important; }

  /* Modal wider on mobile */
  .modal { width: 96% !important; }

  /* Overflow scroll for wide tables */
  #resultsContent, #standingsContent,
  #fixturesContent, #topScorersContent,
  #cardsContent, #auditLogContent {
    overflow-x: auto;
  }

  /* Tournament selector in header */
  .tournament-selector { min-width: auto !important; width: 100% !important; }

  /* Stats grid — 2 col max */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Last 5 matches in team card — stack score */
  #teamsGroupsContainer [style*="Last 5 Matches"] + div {
    font-size: 12px;
  }
}

@media (max-width: 480px) {

  /* Team card owner badge full width */
  #teamsGroupsContainer [style*="min-width: 250px"] {
    min-width: auto !important;
    width: 100% !important;
  }

  /* Reduce page title font */
  .page-title { font-size: 22px !important; }

  /* Single column for all grids */
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Score numbers in match results */
  [style*="font-size: 28px; font-weight: 700; color"][style*="min-width: 35px"] {
    font-size: 20px !important;
    min-width: 24px !important;
  }

  /* Button text size */
  button[style*="font-size: 16px"] { font-size: 13px !important; }
  button[style*="padding: 12px 28px"] { padding: 10px 16px !important; }

  /* Stat cards in dashboard */
  .stat-card { padding: 14px !important; }
  .stat-value { font-size: 24px !important; }

  /* Hide less important columns in player table on tiny screens */
  #playerTableBody tr td:nth-child(5),
  #playerTableBody tr td:nth-child(6) { display: none; }
}