/* --- متغيرات الألوان والخطوط لسهولة التعديل --- */
:root {
  --primary-color: #2563eb;
  --primary-hover-color: #06b6d4;
  --background-color: #0a192f; /* Reverted to a dark background */
  --card-background: #ffffff;
  --text-color: #333;
  --label-color: #4a5568;
  --border-color: #ddd;
  --font-family: 'Cairo', sans-serif;
}

/* --- تنسيقات أساسية للصفحة --- */
/* 1. RESET BODY */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Arrange items vertically */
  justify-content: space-between; /* Pushes footer to bottom, form to center */
  align-items: center;
  min-height: 100vh;
  background-color: #0d1117; /* Dark background */
  font-family: sans-serif;
  direction: rtl;
}

/* --- دعم الوضع الفاتح --- */
html[data-theme='light'] body {
  background-color: #f8fafc; /* لون أبيض مائل للرمادي للوضع الفاتح */
  color: #1f2937; /* لون نص داكن للوضع الفاتح */
}

/* --- حركة النجوم في الخلفية --- */
@keyframes slowPan {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}

/* --- أنيميشن الأيقونات العائمة --- */
@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
/* --- حاوية الفورم الرئيسية للتوسيط --- */
.password-reset-container {
  width: 100%;
  padding: 20px;
}

/* --- بطاقة الفورم --- */
.form-card {
  max-width: 450px;
  margin: 0 auto;
  background-color: var(--card-background); /* Kept for password reset form */
  padding: 40px; /* Padding remains */
  border-radius: 20px; /* Smoother, more modern radius */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); /* Deeper, softer shadow */
  text-align: center;
}

/* --- رأس الفورم (العنوان والنص التوضيحي) --- */
.form-header h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
}

.form-header p {
  margin-bottom: 30px;
  color: var(--label-color);
  line-height: 1.6;
}

/* --- تنسيق حقول الإدخال --- */
.form-group {
  margin-bottom: 25px;
  text-align: right; /* لجعل الليبل على اليمين */
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--label-color);
}

.form-group input {
  width: 100%;
  padding: 12px 15px; /* Ample padding */
  border: 1px solid #e2e8f0; /* Softer border color */
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-family);
  background: #fff; /* Clean white background */
  box-sizing: border-box; /* لضمان أن padding لا يزيد من العرض */
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6; /* Blue border on focus */
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); /* Soft ring shadow */
}

/* --- زر الإرسال --- */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #2563eb, #00d4ff); /* Rich gradient background */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background-color 0.3s;
}
.submit-btn:hover {
  transform: translateY(-2px); /* Subtle lift on hover */
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); /* Glow effect */
}

/* --- رابط العودة لصفحة تسجيل الدخول --- */
.form-footer {
  margin-top: 25px;
}

.form-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.form-footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* --- تصميم متجاوب للشاشات الصغيرة --- */
@media (max-width: 500px) {
  .form-card {
    padding: 25px;
  }
}

/* إصلاحات أداء لصفحة تسجيل الدخول */
.form-message {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
}
.form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* --- Scoped Dark Mode for Auth Card --- */
/* Main dark card styles */
/* Apply dark theme when the auth-card itself has data-theme="dark" */
.auth-card[data-theme='dark'] {
  background-color: #161b22; /* خلفية داكنة صلبة */
  border: 1px solid #30363d;
  color: #e2e8f0;
}

/* Right panel background */
.auth-card[data-theme='dark'] .auth-right {
  background: linear-gradient(160deg, #0d1117, #1f2937); /* خلفية القسم الأيمن */
}

/* Sign-in title */
.auth-card[data-theme='dark'] .sign-in-title {
  color: #f0f6ff;
}

/* 1. Fix Input Styling (for Dark Mode) - Refined for dark theme */
.auth-card[data-theme='dark'] .theme-toggle-pro {
  background: #21262d;
  color: #8b949e;
}

.auth-card[data-theme='dark'] .theme-toggle-pro:hover {
  background: #30363d;
}

/* 1. Fix Input Styling (for Dark Mode) */
.auth-card[data-theme='dark'] .input-group-pro input {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

/* Visible placeholder for dark mode */
.auth-card[data-theme='dark'] .input-group-pro input::placeholder {
  color: #a0aec0; /* Light gray */
}

/* --- Standardized Footer Styles --- */
.my-fixed-footer {
  position: relative;
  width: 100%;
  padding: 20px 0;
  /* --- تأثير زجاجي للشريط السفلي --- */
  background: #0d1117; /* 1. خلفية صلبة متناسقة مع الصفحة */
  border-top: 1px solid #30363d; /* 2. حد علوي واضح واحترافي */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* Space between social row and copyright */
}

.my-fixed-footer p {
  margin: 0;
  color: #cccccc; /* لون رمادي فاتح ناعم */
  font-size: 0.9em; /* حجم خط أصغر قليلاً */
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 16px; /* Increased gap for larger icons */
}

.social-btn {
  width: 44px; /* حجم أنسب */
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* أيقونة بيضاء لتبرز على الخلفية الملونة */
  font-size: 1.1rem; /* حجم أيقونة أنسب */
  cursor: pointer;
  transition: all 0.3s ease; /* حركة شاملة وناعمة */
  background: #333; /* لون افتراضي في حال عدم تحديد لون للمنصة */
  border: none; /* إزالة الحدود لمظهر أنظف */
  text-decoration: none; /* إزالة الخط السفلي من الأيقونات */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ظل أكثر وضوحاً */
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.05); /* حركة رفع محسنة */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* تأخير الأنيميشن لكل أيقونة لتبدو الحركة طبيعية */
.social-btn:nth-child(2) {
  animation-delay: 0.3s;
}
.social-btn:nth-child(3) {
  animation-delay: 0.6s;
}
.social-btn:nth-child(4) {
  animation-delay: 0.1s;
}

/* تلوين الأيقونات بشكل دائم */
.social-btn.facebook {
  background: #1877f2;
}
.social-btn.whatsapp {
  background: #25d366;
}
.social-btn.youtube {
  background: #ff0000;
}
.social-btn.instagram {
  background: #e4405f;
}
.social-btn.tiktok {
  background: #000000;
  border: 1px solid #fff; /* إضافة حد أبيض لتمييز أيقونة تيك توك السوداء */
}

/* Added for footer standardization */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.footer-links a {
  position: relative; /* Needed for the animated underline */
  color: #cccccc; /* لون رمادي فاتح ناعم */
  text-decoration: none; /* إزالة الخط السفلي */
  font-size: 0.9em; /* حجم خط أصغر قليلاً */
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0 10px; /* Add some padding for spacing */
}

.footer-links a:hover {
  color: #fff; /* Make text white on hover */
}

/* --- New: Modern Split-Screen Auth Card --- */
/* 2. RESET CARD CONTAINER */
.auth-card,
.auth-card[data-theme='dark'] {
  /* Centered with Flexbox parent */
  margin: auto; /* Perfectly center the card in the available space */
  width: 900px;
  max-width: 95%; /* Slightly more width for smaller desktops */
  display: flex;
  background: #161b22; /* الوضع الداكن هو الافتراضي الآن */
  border-radius: 24px; /* Softer, more modern radius */
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* 4. Professional drop-shadow for depth */
}

.auth-left,
.auth-right {
  flex-basis: 50%; /* Rule 1: Each section is 50% of the width */
  display: flex;
  flex-direction: column;
  /* Ensure content doesn't overflow on smaller screens before column layout */
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.auth-right {
  /* Distinctive background for the welcome section */
  background: linear-gradient(160deg, #1e3a8a, #3b82f6, #1e3a8a); /* الوضع الداكن */
  background-size: 200% 200%;
  color: #ffffff;
  text-align: center;
  animation: gradient-animation 10s ease infinite; /* 1. إضافة حركة للخلفية */
}

.auth-right .welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
/* 2. إضافة حركة للأيقونة */
.auth-right .welcome-icon {
  animation: float-icon 4s ease-in-out infinite;
}

.auth-right .welcome-icon i {
  font-size: 4rem;
  color: #93c5fd; /* Light blue icon */
  text-shadow: 0 0 25px rgba(147, 197, 253, 0.5); /* إضافة توهج للأيقونة */
}

/* 3. إضافة حركة للنصوص */
.auth-right h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  animation: text-fade-in 1s ease-out 0.2s backwards;
}

.auth-right p {
  font-size: 1.1rem;
  max-width: 300px;
  line-height: 1.7;
  color: #dbeafe; /* Lighter text color */
  animation: text-fade-in 1s ease-out 0.4s backwards;
}

/* 4. تحسين زر "ليس لديك حساب" */
.auth-right .signup-cta {
  margin-top: 20px;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  animation: text-fade-in 1s ease-out 0.6s backwards;
}

.auth-right .signup-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sign-in-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(34, 193, 195, 0.2);
}

.sign-in-title {
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #f0f6ff; /* الوضع الداكن */
  margin-bottom: 0;
  flex: 1;
  font-size: 1.8rem;
}

/* Keyframes للحركات المضافة */
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes text-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- Responsive for Auth Card --- */
@media (max-width: 768px) {
  /* 2. Mobile Safety Override */
  .auth-card {
    margin: 50px auto; /* Add vertical margin for mobile */
    width: 95%;
    flex-direction: column-reverse;
    height: auto; /* Allow height to adjust on mobile */
  }
  .auth-left,
  .auth-right {
    flex-basis: auto;
  }
}

/* --- 2. New Professional Theme Switch --- */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Icons inside the slider */
.slider:after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f185'; /* Sun icon */
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #f59e0b;
  opacity: 0;
  transition: opacity 0.4s;
}

input:checked + .slider {
  background-color: #3b82f6;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:checked + .slider:after {
  content: '\f186'; /* Moon icon */
  left: 8px;
  right: auto;
  color: #f1f5f9;
  opacity: 1;
}

.password-strength {
  display: none;
  margin-top: 8px;
}
.strength-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  transition: width 0.3s, background-color 0.3s;
}

.password-toggle-pro {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-top: -12px;
  margin-bottom: 8px;
}

.forgot-password-link {
  font-size: 0.9rem;
  color: #58a6ff; /* الوضع الداكن */
  text-decoration: none;
}

.login-btn-pro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.login-btn-pro:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(59, 130, 246, 0.4);
}

.social-login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9ca3af;
  margin: 24px 0;
  font-size: 0.9rem;
}

.social-login-divider::before,
.social-login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}
.social-login-divider:not(:empty)::before {
  margin-left: 0.5em;
}
.social-login-divider:not(:empty)::after {
  margin-right: 0.5em;
}

.social-login-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn-pro {
  display: flex;
  align-items: center;
  justify-content: center; /* توسيط المحتوى */
  gap: 12px; /* 3. Increased gap */
  width: 100%; /* اجعل الزر يأخذ العرض الكامل */
  padding: 12px;
  border: 1px solid #dadce0; /* لون حدود جوجل الرسمي */
  border-radius: 12px; /* 3. Match input border-radius */
  background: #ffffff; /* 3. White background */
  color: #3c4043; /* لون نص جوجل الرسمي */
  font-weight: 500; /* وزن خط جوجل الرسمي */
  cursor: pointer;
  transition: all 0.3s;
}

.social-btn-pro:hover {
  border-color: #c6c6c6; /* لون حدود أغمق عند المرور */
  background: #f8f9fa; /* خلفية رمادية فاتحة جداً عند المرور */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* ظل خفيف */
  transform: translateY(-2px);
}

.social-btn-pro i {
  font-size: 1.2rem;
}

/* أيقونة جوجل الملونة */
.social-btn-pro.google i {
  background: conic-gradient(
    from -45deg,
    #ea4335 110deg,
    #4285f4 110deg 220deg,
    #34a853 220deg 330deg,
    #fbbc05 330deg
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-card-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: #6b7280;
}

.login-card-footer a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
}

.field-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

/* --- Professional Forgot Password Modal --- */
.forgot-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.4); /* NEW: Darker overlay for better contrast */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.forgot-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.forgot-modal-content {
  /* NEW: Elegant Glassmorphism Effect */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 32px 40px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Soft, diffused shadow */
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}
.forgot-modal-overlay.show .forgot-modal-content {
  transform: scale(1) translateY(0);
}

.forgot-close-btn {
  position: absolute;
  top: 16px;
  left: 16px; /* FIX: Moved to the left for RTL consistency */
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.forgot-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotate(90deg);
}

.forgot-header {
  text-align: center;
  margin-bottom: 24px;
}
.forgot-icon {
  font-size: 3rem;
  color: #ffffff; /* White to match the glass background */
  margin-bottom: 16px;
  display: block;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Soft glow */
}
.forgot-header h2 {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 8px;
}
.forgot-header p {
  color: #e2e8f0; /* Lighter text color */
  font-size: 1rem;
  line-height: 1.5;
}

/* NEW: Input field styling for the glass design */
.forgot-modal-content .input-group-pro input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.forgot-modal-content .input-group-pro input::placeholder {
  color: #a0aec0;
}
.forgot-modal-content .input-group-pro input:focus {
  background: rgba(255, 255, 255, 0.15); /* Clearer background on focus */
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); /* Soft white glow */
}

.forgot-submit-btn {
  width: 100%;
  padding: 14px; /* FIX: Consistent padding */
  background: linear-gradient(135deg, #3b82f6, #60a5fa); /* Consistent gradient */
  color: white;
  border: none;
  border-radius: 12px; /* FIX: Consistent radius */
  font-size: 1.1rem; /* FIX: Consistent font size */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease; /* Use the same transition as the main button */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.forgot-submit-btn:hover {
  transform: translateY(-3px); /* FIX: Consistent hover effect */
  box-shadow: 0 7px 20px rgba(59, 130, 246, 0.4);
}

.forgot-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}

/* Dark Mode for Modal */
.forgot-modal-content.auth-card-dark {
  background: #161b22;
  border-color: #30363d;
}
.forgot-modal-content.auth-card-dark .forgot-header h2,
.forgot-modal-content.auth-card-dark .forgot-header p {
  color: #c9d1d9;
}
.forgot-modal-content.auth-card-dark .forgot-close-btn {
  background: #21262d;
  color: #8b949e;
}

/* --- Professional Animated Welcome Text --- */
.animated-welcome-text {
  font-size: 2.5rem; /* حجم أكبر قليلاً */
  font-weight: 900; /* أكثر سماكة */
  line-height: 1.2;
  margin: 0;

  /* 1. تأثير التدرج اللوني للنص */
  background: linear-gradient(120deg, #ffffff, #aed6f1, #ffffff, #aed6f1);
  background-size: 300% 300%; /* حجم أكبر لحركة ناعمة */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* 2. تطبيق الأنيميشن */
  animation: gradient-flow 8s ease-in-out infinite,
    /* حركة التدرج اللوني */ text-reveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; /* حركة الظهور */

  /* الحالة الأولية قبل حركة الظهور */
  opacity: 0;
  transform: translateY(20px);
}

/* Keyframes لحركة التدرج اللوني */
@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Keyframes لحركة ظهور النص */
@keyframes text-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- تثبيت زر تبديل الوضع في أعلى اليسار --- */
/* NEW: A dedicated class to fix the theme toggle to the top-left */
.fixed-top-left {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1002; /* لضمان ظهوره فوق المحتوى */
}

/* --- Professional Leaderboard Page --- */
.leaderboard-page {
  padding-top: 60px;
  padding-bottom: 60px;
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 40px;
}

.leaderboard-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffd700; /* Gold color for the title */
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  margin-bottom: 12px;
}

.leaderboard-header p {
  font-size: 1.1rem;
  color: #a0aec0;
  max-width: 600px;
  margin: 0 auto;
}

.leaderboard-card {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

.leaderboard-table th {
  text-align: right;
  padding: 16px;
  font-size: 0.9rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table td {
  padding: 16px;
  vertical-align: middle;
  font-size: 1.1rem;
  font-weight: 500;
  color: #e2e8f0;
}

.leaderboard-table tbody tr {
  transition: background-color 0.2s ease;
}

.leaderboard-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Special styles for top 3 */
.rank-badge {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  color: #0d1117;
}

.rank-1 .rank-badge {
  background: #ffd700; /* Gold */
  box-shadow: 0 0 10px #ffd700;
}
.rank-2 .rank-badge {
  background: #c0c0c0; /* Silver */
  box-shadow: 0 0 10px #c0c0c0;
}
.rank-3 .rank-badge {
  background: #cd7f32; /* Bronze */
  box-shadow: 0 0 10px #cd7f32;
}

.rank-1 td,
.rank-2 td,
.rank-3 td {
  font-weight: 700;
}
