/* ============================================================
   LIGA CELEBES TOURNAMENT SYSTEM - DOMINANT WHITE & ROYAL BLUE
   Native Android WebView & Mobile App Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Inter+Tight:wght@600;700;800;900&display=swap');

:root {
  /* Crisp White Canvas & Surfaces */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --border-color: #e2e8f0;
  --border-focus: #2563eb;
  
  /* Dominant Royal Blue Brand */
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e3a8a;

  /* Sports Accent Tones */
  --accent-gold: #d97706;
  --accent-gold-glow: rgba(217, 119, 6, 0.2);
  --accent-blue: #0284c7;
  --accent-blue-glow: rgba(2, 132, 199, 0.2);
  --accent-purple: #7c3aed;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.2);
  --accent-green: #10b981;

  /* High Contrast Deep Slate Typography */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.25);
  
  /* Native Mobile App Typography (Inter Tight & Inter) */
  --font-heading: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base reset & Native Android App Touch Ergonomics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Allow text selection inside inputs and articles */
input, textarea, select, [contenteditable="true"], .article-body, .article-excerpt, p {
  -webkit-user-select: text;
  user-select: text;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  -webkit-user-drag: none;
}

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Header & Native App Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: -3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.active .nav-dropdown-trigger {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1050;
  animation: dropdownFade 0.15s ease;
}

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

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

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  transition: var(--transition);
  text-decoration: none;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: #eff6ff;
  color: #2563eb;
}

.nav-dropdown-item svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  flex-shrink: 0;
}

.nav-dropdown-item:hover svg,
.nav-dropdown-item.active svg {
  stroke: #2563eb;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.season-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: #334155;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-gold {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: #b45309;
  color: #ffffff;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 24px 0 32px;
}

.hero-stats-row {
  display: flex;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.hero-stat-item h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Match Card & Stadium Scoreboard Design */
.match-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.match-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.match-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.match-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.team-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-box.away {
  flex-direction: row-reverse;
  text-align: right;
}

.team-badge-circle {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: 2px solid #bfdbfe;
  border-radius: 10px 10px 14px 14px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
  letter-spacing: -0.02em;
}

.team-badge-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.25;
}

.team-school-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.score-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.score-digits {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  background: #f1f5f9;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  letter-spacing: 1px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.score-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-scheduled {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border-color);
}

.status-live {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.status-finished {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Category Filter Tabs (App Segmented Bar) */
.category-tabs {
  display: inline-flex;
  background: #e2e8f0;
  border: none;
  padding: 3px;
  border-radius: var(--radius-full);
}

.cat-tab-btn {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: var(--transition);
  user-select: none;
}

.cat-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  font-weight: 700;
}

/* Standings Table Design */
.standings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.standings-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.standings-header h3 {
  color: #0f172a;
  font-size: 1rem;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.custom-table th {
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.custom-table tr:hover td {
  background: #f8fafc;
}

.pos-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.rank-top {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.rank-normal {
  background: #f1f5f9;
  color: #64748b;
}

/* Tournament Knockout Bracket */
.bracket-wrapper {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 24px 8px;
  align-items: center;
  min-height: 480px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 230px;
  height: 100%;
  gap: 24px;
}

.bracket-round-title {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-color);
}

.bracket-match {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.bracket-match:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.bracket-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.bracket-team-row.winner {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.bracket-score {
  font-weight: 800;
  font-family: var(--font-heading);
}

/* News & Articles Cards */
.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.article-thumb-wrapper {
  height: 140px;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb-img {
  transform: scale(1.05);
}

.article-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #2563eb;
  color: #fff;
}

.article-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-date {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.article-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #0f172a;
}

.article-title a {
  color: #0f172a;
}

.article-title a:hover {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

/* Portal & Admin Sidebar Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 60px);
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}

.sidebar-menu-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0 10px;
  margin: 14px 0 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 3px;
  transition: var(--transition);
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-nav-item.active {
  border-left: 3px solid var(--primary);
}

.dashboard-content {
  padding: 28px;
  background: var(--bg-main);
  overflow-y: auto;
}

/* Stat KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.kpi-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--font-heading);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 2px;
  font-weight: 600;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 16px; /* Prevents auto-zoom in mobile webviews */
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-primary {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-info {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.badge-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-gold {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

/* Alerts System */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Off-Canvas Navigation Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 340px);
  max-width: 100vw;
  background: #ffffff;
  border-left: 1px solid var(--border-color);
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.15);
  z-index: 1100;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:active {
  transform: scale(0.92);
  background: #fee2e2;
  color: #dc2626;
}

.drawer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-season-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.drawer-nav-item:active, .drawer-nav-item.active {
  background: #eff6ff;
  color: #2563eb;
}

.drawer-nav-item svg {
  width: 18px;
  height: 18px;
  stroke: #64748b;
  flex-shrink: 0;
}

.drawer-nav-item.active svg {
  stroke: #2563eb;
}

.drawer-footer {
  margin-top: auto;
  padding: 16px 18px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

.drawer-divider {
  height: 1px;
  background: var(--border-color);
  margin: 12px 0;
}

.drawer-auth-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.drawer-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================
   SPONSORS & FOOTER (Desktop View Only)
   ========================================== */
.sponsor-section {
  margin-top: 64px;
  padding: 48px 0 32px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.sponsor-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ==========================================
   MOBILE BOTTOM APP BAR NAVIGATION (Native Android Style)
   ========================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 992px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.05);
  }

  .mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 0;
    transition: var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    user-select: none;
  }

  .mobile-bottom-nav-item .nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .mobile-bottom-nav-item svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
    stroke: #64748b;
    transition: var(--transition);
  }

  .mobile-bottom-nav-item:active,
  .mobile-bottom-nav-item.active {
    color: #2563eb;
  }

  .mobile-bottom-nav-item.active svg {
    stroke: #2563eb;
    transform: translateY(-1px);
  }

  .mobile-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 3px;
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: #2563eb;
  }

  .mobile-bottom-nav-item.live-tab {
    color: #dc2626;
  }

  .mobile-bottom-nav-item.live-tab svg {
    stroke: #dc2626;
  }

  .mobile-bottom-nav-item.live-tab.active svg {
    stroke: #dc2626;
  }

  .nav-live-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 6px;
    height: 6px;
  }
}

/* ==========================================
   RESPONSIVE GRIDS & LAYOUT ENGINE
   ========================================== */
.matches-grid, .groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 16px;
}

.grid-2-cols, .form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hide-on-mobile {
  display: flex;
}

footer.hide-on-mobile {
  display: block;
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: #334155;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle-btn svg {
  width: 24px;
  height: 24px;
  stroke: #334155;
  pointer-events: none;
}

@media (max-width: 992px) {
  .hide-on-mobile,
  .sponsor-section,
  footer.sponsor-section,
  footer {
    display: none !important;
  }

  .mobile-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(85vw, 300px);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.15);
    z-index: 1100;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.active {
    display: flex;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .dashboard-content {
    padding: 16px;
  }

  .matches-grid, .groups-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .grid-2-cols, .form-row-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-control {
    font-size: 16px;
    padding: 11px 14px;
  }

  .btn {
    min-height: 44px;
  }

  .custom-table th, .custom-table td {
    padding: 9px 8px;
    font-size: 0.8rem;
  }
}
