@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-dark: #0A0A0A;
  --bg-surface: #141414;
  --bg-card: #1A1A1A;
  --primary: #CCFF00;
  --primary-hover: #B3E600;
  --secondary: #007AFF;
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  --border-color: rgba(255,255,255,0.1);
  --error: #FF3B30;
  --success: #34C759;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body,
body *,
.navbar,
.navbar a,
.nav-brand,
.nav-brand span,
.card,
.division-card,
.player-card,
.match-card,
.notification-card,
.profile-section,
.profile-section h3,
.profile-section p,
.profile-section p span,
.filter-panel,
.chart-box,
.chart-box h3,
.stat-card,
.stat-card .stat-value,
.stat-card .stat-label,
.eligibility-checker,
#eligibilityResult,
input,
select,
textarea,
button,
.btn,
.btn-secondary,
.btn-danger,
.small-btn,
.auth-form-container,
.theme-toggle,
.toggle-circle,
h1, h2, h3, h4,
p, a, span, label {
  transition: all 0.4s ease !important;
}

body.light-mode {
  --bg-dark: #F9FBF7;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --primary: #2E7D32;
  --primary-hover: #1B5E20;
  --secondary: #F57C00;
  --text-main: #1A1A1A;
  --text-muted: #5D6651;
  --border-color: rgba(46, 125, 50, 0.15);
  --error: #D32F2F;
  --success: #388E3C;
}

body.light-mode {
  background-color: #F9FBF7;
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(46, 125, 50, 0.1);
  backdrop-filter: blur(20px);
}

body.light-mode .navbar .nav-brand {
  color: #1A1A1A;
}

body.light-mode .navbar .nav-brand span {
  color: #2E7D32;
}

body.light-mode .navbar a {
  color: #5D6651;
}

body.light-mode .navbar a:hover {
  color: #1A1A1A;
  background: rgba(46, 125, 50, 0.08);
}

body.light-mode .navbar a.active {
  color: #2E7D32;
}

body.light-mode .navbar .nav-cta {
  background: #2E7D32;
  color: #FFFFFF !important;
}

body.light-mode .navbar .nav-cta:hover {
  background: #1B5E20;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
  color: #1A1A1A;
}

body.light-mode h1 span,
body.light-mode h2 {
  color: #2E7D32;
}

body.light-mode p {
  color: #5D6651;
}

body.light-mode a {
  color: #2E7D32;
}

body.light-mode a:hover {
  color: #1B5E20;
}

body.light-mode label {
  color: #5D6651;
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
  border-bottom-color: rgba(46, 125, 50, 0.25);
  color: #1A1A1A;
  background: transparent;
}

body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
  border-bottom-color: #2E7D32;
  background: rgba(46, 125, 50, 0.03);
}

body.light-mode input::placeholder {
  color: rgba(0,0,0,0.35);
}

body.light-mode select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235D6651' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

body.light-mode select option {
  background: #FFFFFF;
  color: #1A1A1A;
}

body.light-mode select[multiple] option:checked {
  background: #2E7D32;
  color: #FFFFFF;
}

body.light-mode input[type="file"] {
  border: 1px dashed rgba(46, 125, 50, 0.3);
}

body.light-mode input[type="file"]:hover {
  border-color: #2E7D32;
}

body.light-mode .card,
body.light-mode .division-card,
body.light-mode .player-card,
body.light-mode .match-card,
body.light-mode .notification-card,
body.light-mode .profile-section,
body.light-mode .filter-panel,
body.light-mode .chart-box,
body.light-mode .stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(46, 125, 50, 0.12);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.06);
}

body.light-mode .card:hover,
body.light-mode .division-card:hover,
body.light-mode .player-card:hover,
body.light-mode .notification-card:hover {
  border-color: #2E7D32;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.12);
}

body.light-mode .division-card h3 {
  color: #2E7D32;
}

body.light-mode button,
body.light-mode .btn,
body.light-mode .btn-primary {
  background: #2E7D32;
  color: #FFFFFF;
}

body.light-mode button:hover,
body.light-mode .btn:hover,
body.light-mode .btn-primary:hover {
  background: #1B5E20;
}

body.light-mode .btn-secondary {
  background: transparent;
  color: #1A1A1A;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

body.light-mode .btn-secondary:hover {
  background: rgba(46, 125, 50, 0.08);
  border-color: #2E7D32;
}

body.light-mode .btn-danger {
  background: transparent;
  color: #D32F2F;
  border: 1px solid #D32F2F;
}

body.light-mode .btn-danger:hover {
  background: #D32F2F;
  color: #FFFFFF;
}

body.light-mode .small-btn {
  background: transparent !important;
  color: #D32F2F !important;
  border: 1px solid #D32F2F !important;
}

body.light-mode .small-btn:hover {
  background: #D32F2F !important;
  color: #FFFFFF !important;
}

body.light-mode .profile-section h3 {
  color: #2E7D32;
  border-bottom-color: rgba(46, 125, 50, 0.15);
}

body.light-mode .profile-section p {
  border-bottom-color: rgba(46, 125, 50, 0.08);
}

body.light-mode .profile-section p strong {
  color: #5D6651;
}

body.light-mode .profile-section p span {
  color: #1A1A1A;
}

body.light-mode .profile-pic {
  border-color: #2E7D32;
}

body.light-mode .profile-header {
  border-bottom-color: rgba(46, 125, 50, 0.15);
}

body.light-mode .profile-header-info p {
  color: #5D6651;
}

body.light-mode .eligibility-checker {
  background: #FFFFFF;
  border: 2px solid #2E7D32;
}

body.light-mode .eligibility-checker h3 {
  color: #2E7D32;
}

body.light-mode #eligibilityResult {
  background: #F9FBF7;
  border-color: rgba(46, 125, 50, 0.15);
  color: #1A1A1A;
}

body.light-mode .chart-box h3 {
  color: #1A1A1A;
}

body.light-mode .stat-card .stat-value {
  color: #2E7D32;
}

body.light-mode .stat-card .stat-label {
  color: #5D6651;
}

body.light-mode .notification-card h4 {
  color: #2E7D32;
}

body.light-mode .notification-card p strong {
  color: #5D6651;
}

body.light-mode .notification-actions {
  border-top-color: rgba(46, 125, 50, 0.15);
}

body.light-mode .player-card p {
  color: #1A1A1A;
}

body.light-mode .player-card .player-stats {
  color: #5D6651;
}

body.light-mode .match-card p {
  color: #1A1A1A;
}

body.light-mode .filter-panel h3 {
  color: #2E7D32;
}

body.light-mode .theme-toggle {
  background: #E8F5E9;
  border-color: rgba(46, 125, 50, 0.2);
}

body.light-mode .toggle-circle {
  background: #F57C00;
}

body.light-mode .auth-form-container {
  background: #F9FBF7;
}

body.light-mode .auth-form-container h1 {
  color: #1A1A1A;
}

body.light-mode .auth-form-container .subtitle {
  color: #5D6651;
}

body.light-mode .auth-switch {
  color: #5D6651;
}

body.light-mode .auth-side-image::after {
  background: rgba(0,0,0,0.4);
}

body.light-mode .auth-side-image .vertical-text {
  color: #F57C00;
}

body.light-mode .page-header {
  border-bottom-color: rgba(46, 125, 50, 0.15);
}

body.light-mode .hub-content h2,
body.light-mode .rules-content h2 {
  color: #2E7D32;
  border-top-color: rgba(46, 125, 50, 0.15);
}

@media (max-width: 768px) {
  body.light-mode .navbar .nav-links {
    background: #FFFFFF;
    border-bottom-color: rgba(46, 125, 50, 0.1);
  }
}

body.light-mode .text-primary {
  color: #2E7D32 !important;
}

body.light-mode .text-muted {
  color: #5D6651 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.5s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar .nav-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
}

.navbar .nav-brand span {
  color: var(--primary);
}

.navbar .nav-links {
  display: flex;
  gap: 8px;
}

.navbar a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: 2px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar a:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

.navbar a.active {
  color: var(--primary);
}

.navbar .nav-cta {
  background: var(--primary);
  color: #000 !important;
  font-weight: 700;
}

.navbar .nav-cta:hover {
  background: var(--primary-hover);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .navbar .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
  animation: fadeInUp 0.6s ease;
}

.container-wide {
  max-width: 1200px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 32px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(204, 255, 0, 0.3);
  transform: translateY(-2px);
}

.card-glass {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
}

h1 span {
  color: var(--primary);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  color: var(--primary);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.text-mono {
  font-family: var(--font-mono);
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  border-radius: 0;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
  background: rgba(204, 255, 0, 0.03);
}

input::placeholder {
  color: rgba(255,255,255,0.3);
}

select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A1A1AA' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

select option {
  background: var(--bg-dark);
  color: var(--text-main);
}

select[multiple] {
  height: auto;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--border-color);
  background-image: none;
}

select[multiple] option {
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 2px;
}

select[multiple] option:checked {
  background: var(--primary);
  color: #000;
}

input[type="file"] {
  padding: 12px;
  border: 1px dashed var(--border-color);
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: var(--primary);
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button, .btn-primary {
  background: var(--primary);
  color: #000;
}

button:hover, .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary);
}

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid var(--error);
}

.btn-danger:hover {
  background: var(--error);
  color: #fff;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.4) 100%);
}

.hero-content {
  max-width: 600px;
  padding: 60px 24px;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header {
  text-align: left;
  padding: 80px 24px 40px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.125rem;
  max-width: 600px;
}

.index-page .hero {
  min-height: 80vh;
}

.index-page .hero-bg {
  background-image: url('images/tennis.jpg');
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.division-card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.division-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.division-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  
  .auth-side-image {
    display: none;
  }
}

.auth-side-image {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.auth-side-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.auth-side-image .vertical-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--primary);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 1;
}

.auth-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: var(--bg-dark);
}

.auth-form-container h1 {
  margin-bottom: 8px;
}

.auth-form-container .subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.auth-form-container form {
  max-width: 400px;
}

.auth-switch {
  margin-top: 24px;
  color: var(--text-muted);
}

.login-page .auth-side-image {
  background-image: url('images/login.jpg');
}

.signup-page .auth-side-image {
  background-image: url('images/signup.jpg');
}

.hub-page .page-header {
  position: relative;
  background-image: url('images/transfer.jpg');
  background-size: cover;
  background-position: center center;
  padding: 60px 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hub-page .page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5), rgba(10,10,10,0.8));
  z-index: 0;
}

.hub-page .page-header * {
  position: relative;
  z-index: 1;
}

.hub-content {
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.hub-content h2 {
  margin-top: 48px;
}

.eligibility-checker {
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  padding: 32px;
  margin-top: 32px;
}

.eligibility-checker h3 {
  font-family: var(--font-mono);
  color: var(--primary);
  margin-bottom: 24px;
}

#eligibilityResult {
  margin-top: 24px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
}

.hub-page .page-header {
  position: relative;
  background-image: url('images/transfer.jpg');
  background-size: cover;
  background-position: center center;
  padding: 60px 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hub-page .page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5), rgba(10,10,10,0.8));
  z-index: 0;
}

.hub-page .page-header * {
  position: relative;
  z-index: 1;
}

.rules-page .page-header {
  position: relative;
  background-image: url('images/rules.jpg');
  background-size: cover;
  background-position: center center;
  padding: 60px 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rules-page .page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5), rgba(10,10,10,0.8));
  z-index: 0;
}

.rules-page .page-header * {
  position: relative;
  z-index: 1;
}

.rules-content {
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.rules-content h2 {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.rules-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.onboarding-page {
  padding-top: 40px;
}

.onboarding-page .container {
  max-width: 700px;
}

.onboarding-page h1 {
  text-align: center;
  margin-bottom: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-grid .full-width {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .form-grid .full-width {
    grid-column: span 1;
  }
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.profile-page {
  padding: 40px 24px;
}

.profile-page .container {
  max-width: 800px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 2px;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.profile-header-info h1 {
  margin-bottom: 8px;
}

.profile-header-info p {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.profile-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.profile-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.profile-section h3 {
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.profile-section p {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.profile-section p:last-child {
  border-bottom: none;
}

.profile-section p strong {
  color: var(--text-muted);
  font-weight: 500;
}

.profile-section p span {
  color: var(--text-main);
  font-family: var(--font-mono);
}

#downloadPDFBtn {
  margin-bottom: 32px;
}

.dashboard-page {
  padding: 40px 24px;
}

.dashboard-page .container {
  max-width: 1200px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-panel h3 {
  color: var(--primary);
  margin-bottom: 24px;
}

.results-panel h2 {
  margin-bottom: 24px;
}

#searchResults {
  display: grid;
  gap: 16px;
}

.player-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  transition: all 0.3s ease;
}

.player-card:hover {
  border-color: var(--primary);
}

.player-card p {
  margin: 0;
  color: var(--text-main);
}

.player-card .player-stats {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

#coachMatchesList {
  margin-bottom: 32px;
}

.match-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-card p {
  margin: 0;
}

.notifications-page {
  padding: 40px 24px;
}

.notifications-page .container {
  max-width: 800px;
}

#notificationsList {
  display: grid;
  gap: 16px;
}

.notification-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  transition: all 0.3s ease;
}

.notification-card:hover {
  border-color: var(--primary);
}

.notification-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.notification-card p {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.notification-card p strong {
  color: var(--text-muted);
}

.notification-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.notification-actions button {
  flex: 1;
}

.small-btn {
  padding: 8px 12px !important;
  font-size: 0.75rem !important;
  background: transparent !important;
  color: var(--error) !important;
  border: 1px solid var(--error) !important;
}

.small-btn:hover {
  background: var(--error) !important;
  color: #fff !important;
}

.statistics-page {
  padding: 40px 24px;
}

.statistics-page .container {
  max-width: 1100px;
}

.stats-header {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px 32px;
  flex: 1;
  min-width: 200px;
}

.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.chart-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.chart-box h3 {
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: 1rem;
}

.chart-box canvas {
  width: 100% !important;
  max-height: 280px;
}

.pie-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pie-box canvas {
  max-width: 250px;
  max-height: 250px;
}

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

@media (max-width: 480px) {
  .container {
    padding: 40px 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-content {
    padding: 40px 16px;
  }
  
  .auth-form-container {
    padding: 40px 24px;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
}

.theme-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  transition: all 0.3s ease;
}

.theme-toggle .toggle-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

body.light-mode .theme-toggle .toggle-circle {
  transform: translateX(24px);
}

.toggle-icon {
  pointer-events: none;
}