/* =====================================================================
   ACADEMIA AL-AHMADIA — PREMIUM ATHLETIC DESIGN SYSTEM v3.0 (2026)
   Identity: "Stadium Night" — deep emerald-black base + dual accent
   system (Electric Lime athletic + Championship Gold prestige).
   Built as a world-class sports technology product.
   ===================================================================== */

/* Web fonts are loaded asynchronously from index.html to keep first paint fast. */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Base — stadium night */
  --bg-primary: #07110f;
  --bg-secondary: #0b1915;
  --bg-elevated: #0d1d16;
  --bg-card: rgba(13, 26, 19, 0.86);
  --bg-card-hover: rgba(19, 38, 28, 0.96);
  --bg-glass: rgba(10, 22, 16, 0.72);

  /* Primary athletic accent — Electric Lime */
  --gold-primary: #b7f34a;
  --gold-light: #d7ff8a;
  --gold-dark: #6fb52e;
  --gold-deep: #4d8a1f;
  --gold-gradient: linear-gradient(120deg, #e3ff9b 0%, #b7f34a 48%, #6fb52e 100%);
  --gold-glow: 0 0 34px rgba(183, 243, 74, 0.22);
  --gold-glow-strong: 0 0 50px rgba(183, 243, 74, 0.4);

  /* Prestige accent — Championship Gold (trophies / star / achievements) */
  --champ: #e8b94a;
  --champ-light: #f5d27a;
  --champ-dark: #b8881f;
  --champ-gradient: linear-gradient(135deg, #fce6a3 0%, #e8b94a 50%, #a87a1c 100%);
  --champ-glow: 0 0 30px rgba(232, 185, 74, 0.35);

  /* Text */
  --text-white: #f5f8f3;
  --text-muted: #9fb0a4;
  --text-dim: #6c7d72;
  --text-gold: #d7ff8a;
  --text-champ: #f5d27a;

  /* Borders */
  --border-gold: rgba(183, 243, 74, 0.2);
  --border-gold-strong: rgba(183, 243, 74, 0.55);
  --border-champ: rgba(232, 185, 74, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-soft: rgba(255, 255, 255, 0.12);

  /* Status */
  --win: #55d98a;
  --draw: #f3c64a;
  --loss: #ff6470;
  --info: #55b8ef;

  /* Radii */
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 16px 42px rgba(0, 0, 0, 0.22);

  /* Motion */
  --transition: all 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.18s ease;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --header-h: 132px;
  --container: 1240px;
  --font-ar: 'Cairo', 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  direction: rtl;
  font-family: var(--font-ar);
  background-color: var(--bg-primary);
  color: var(--text-white);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(31, 112, 72, 0.22), transparent 42%),
    radial-gradient(ellipse at 88% 55%, rgba(111, 181, 46, 0.10), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(232, 185, 74, 0.05), transparent 55%),
    linear-gradient(160deg, #06100d 0%, #0a1712 52%, #07110f 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-white);
  line-height: 1.6;
  padding-bottom: 72px; /* mobile bottom nav */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle pitch-grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(183, 243, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 243, 74, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

@media (min-width: 992px) { body { padding-bottom: 0; } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-dark), var(--gold-deep));
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

::selection { background: rgba(183, 243, 74, 0.3); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

section { isolation: isolate; position: relative; }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.champ-text {
  background: var(--champ-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-badge {
  background: rgba(183, 243, 74, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
}
.champ-badge {
  background: rgba(232, 185, 74, 0.12);
  border: 1px solid var(--border-champ);
  color: var(--champ-light);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-title-wrap::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--gold-primary);
  margin: 14px auto 0;
  border-radius: 4px;
  opacity: 0.6;
  box-shadow: 0 0 14px rgba(183, 243, 74, 0.5);
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}
.gold-divider {
  width: 80px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 14px auto 0;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(183, 243, 74, 0.4);
}

/* ---------- BUTTONS ---------- */
.btn-gold, .btn-outline-gold, .btn-champ, .btn-ghost {
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-gradient);
  color: #08110c;
  padding: 12px 24px;
  font-size: 0.98rem;
  box-shadow: 0 8px 24px rgba(143, 211, 57, 0.22);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(143, 211, 57, 0.34); }
.btn-gold::before {
  content: ""; position: absolute; top: -100%; left: -35%;
  width: 24%; height: 300%; transform: rotate(25deg);
  background: rgba(255, 255, 255, 0.3); transition: left 0.55s ease;
}
.btn-gold:hover::before { left: 125%; }

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-gold-strong);
  padding: 11px 22px;
  font-size: 0.93rem;
}
.btn-outline-gold:hover {
  background: rgba(183, 243, 74, 0.12);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}
.btn-champ {
  background: var(--champ-gradient);
  color: #2a1d05;
  padding: 12px 24px;
  box-shadow: 0 8px 22px rgba(232, 185, 74, 0.25);
}
.btn-champ:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232, 185, 74, 0.38); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1px solid var(--border-soft);
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--gold-primary); }

/* =====================================================================
   1. HEADER + NAVIGATION
   ===================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 15, 11, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
}
.main-header.scrolled { background: rgba(5, 15, 11, 0.97); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 0 6px rgba(183, 243, 74, 0.07), 0 0 28px rgba(183, 243, 74, 0.2);
  object-fit: cover;
  flex-shrink: 0;
  transition: var(--transition);
}
.brand-wrap:hover .brand-logo { transform: rotate(-4deg) scale(1.04); }
.brand-text { min-width: 0; }
.brand-text h1 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  display: block;
  font-size: 0.74rem;
  color: var(--gold-light);
  letter-spacing: 0.3px;
  margin-top: 2px;
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(3px, 0.6vw, 10px);
  list-style: none;
}
@media (min-width: 992px) { .nav-links { display: flex; } }
.nav-link {
  color: #dce8df;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.78rem, 0.86vw, 0.9rem);
  transition: var(--transition-fast);
  padding: 9px clamp(8px, 0.8vw, 14px);
  border-radius: 10px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(183, 243, 74, 0.08); color: var(--gold-light); transform: translateY(-1px); }
.nav-link.active {
  background: rgba(183, 243, 74, 0.14);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(183, 243, 74, 0.25);
}

.header-actions { display: flex; align-items: center; gap: 9px; }
.header-actions .btn-outline-gold { padding: 9px 15px; font-size: 0.85rem; border-radius: 11px; }

.btn-pwa-install {
  display: none;
  background: rgba(183, 243, 74, 0.14);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
  gap: 6px;
}
.btn-pwa-install:hover { background: var(--gold-primary); color: #08110c; }

/* Desktop two-level header */
@media (min-width: 992px) {
  .main-header { padding: 13px 0 0; }
  .header-container {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 26px;
    row-gap: 11px;
  }
  .brand-wrap { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-links {
    grid-column: 1 / -1; grid-row: 2;
    justify-content: center;
    width: 100%;
    padding: 10px 0 12px;
    border-top: 1px solid rgba(183, 243, 74, 0.1);
  }
}

/* =====================================================================
   2. BREAKING NEWS TICKER
   ===================================================================== */
.ticker-bar {
  background: linear-gradient(90deg, #0c1b14 0%, #122620 50%, #0c1b14 100%);
  border-block: 1px solid var(--border-gold);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  position: relative;
}
.ticker-label {
  background: var(--gold-gradient);
  color: #07110f;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 3px 0 14px rgba(0, 0, 0, 0.5);
  position: relative;
}
.ticker-label::after {
  content: "";
  position: absolute;
  left: -10px; top: 0; bottom: 0;
  width: 10px;
  background: var(--gold-gradient);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.ticker-marquee-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 80s linear infinite;
  padding-left: 100%;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 44px;
  font-size: 0.93rem;
  color: var(--text-white);
  font-weight: 500;
}
.ticker-bullet { color: var(--gold-light); font-size: 1.1rem; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* =====================================================================
   3. HERO SECTION
   ===================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 110px) 0 80px;
  background:
    linear-gradient(115deg, rgba(4, 16, 11, 0.9), rgba(6, 22, 15, 0.55)),
    radial-gradient(ellipse at 80% 45%, rgba(116, 191, 48, 0.18), transparent 42%);
}
.hero-section::before {
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  border: 1px solid rgba(183, 243, 74, 0.14);
  border-radius: 50%;
  left: -180px; top: -270px;
  box-shadow: 0 0 0 48px rgba(183, 243, 74, 0.025), 0 0 0 96px rgba(183, 243, 74, 0.02);
  animation: orbitPulse 9s ease-in-out infinite;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 243, 74, 0.5), transparent);
}
@keyframes orbitPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.55; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.hero-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}
.hero-description {
  color: #c0cec4;
  font-size: 1.12rem;
  line-height: 1.9;
  margin-bottom: 32px;
  max-width: 620px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
}
.stat-item {
  background: rgba(11, 31, 22, 0.58);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.stat-item:hover { transform: translateY(-4px); border-color: var(--gold-primary); box-shadow: var(--gold-glow); }
.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(183, 243, 74, 0.25);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Hero visual */
.hero-visual { text-align: center; position: relative; }
.hero-logo-frame {
  position: relative;
  display: inline-block;
  border-radius: 28px;
  overflow: hidden;
  animation: floatSport 5s ease-in-out infinite;
  border: 1px solid rgba(215, 255, 138, 0.42);
  box-shadow: 0 0 0 8px rgba(183, 243, 74, 0.07), 0 0 50px rgba(183, 243, 74, 0.2);
}
.hero-logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(215, 255, 138, 0.3);
  border-radius: inherit;
  pointer-events: none;
}
.hero-logo-img {
  width: clamp(220px, 32vw, 320px);
  height: clamp(220px, 32vw, 320px);
  object-fit: cover;
}
@keyframes floatSport {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* Floating stat chips around hero visual */
.hero-chip {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-strong);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.hero-chip.chip-1 { top: 8%; left: -4%; animation: floatSport 6s ease-in-out infinite; }
.hero-chip.chip-2 { bottom: 18%; right: -6%; animation: floatSport 7s ease-in-out infinite reverse; }
.hero-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-primary); box-shadow: 0 0 10px var(--gold-primary); }
@media (max-width: 991px) { .hero-chip { display: none; } }

/* =====================================================================
   4. PLAYER OF THE DAY (نجم اليوم)
   ===================================================================== */
.player-of-day-section { padding: 70px 0; }

.potd-card {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(232, 185, 74, 0.16) 0%, rgba(13, 26, 19, 0.95) 70%),
    linear-gradient(145deg, rgba(20, 40, 28, 0.95), rgba(10, 22, 16, 0.97));
  border: 2px solid var(--champ);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--champ-glow), var(--shadow-card);
  overflow: hidden;
}
.potd-card::after {
  content: '⭐ نجم اليوم ⭐';
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--champ-gradient);
  color: #2a1d05;
  padding: 5px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(232, 185, 74, 0.4);
}
.potd-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(232, 185, 74, 0.08) 50%, transparent 55%);
  transform: rotate(35deg);
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0% { transform: rotate(35deg) translate(-30%, -30%); }
  100% { transform: rotate(35deg) translate(30%, 30%); }
}

.potd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 860px) { .potd-grid { grid-template-columns: 220px 1fr 220px; } }

.potd-photo-wrap { text-align: center; position: relative; }
.potd-crown {
  font-size: 2.2rem;
  margin-bottom: -12px;
  position: relative;
  z-index: 3;
  animation: crown-float 2.5s ease-in-out infinite;
}
@keyframes crown-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.potd-photo {
  width: 170px;
  height: 170px;
  border-radius: 24px;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--champ-light);
  box-shadow: 0 0 28px rgba(232, 185, 74, 0.5);
}
.potd-info h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}
.potd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.potd-reason {
  background: rgba(255, 255, 255, 0.04);
  border-right: 3px solid var(--champ);
  padding: 12px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.potd-reason strong { color: var(--champ-light); }

.potd-timer-box {
  background: rgba(8, 17, 15, 0.85);
  border: 1px solid var(--border-champ);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
}
.potd-timer-title {
  font-size: 0.84rem;
  color: var(--champ-light);
  margin-bottom: 12px;
  font-weight: 700;
}
.potd-countdown { display: flex; justify-content: center; gap: 8px; direction: ltr; }
.countdown-unit {
  background: rgba(232, 185, 74, 0.12);
  border: 1px solid var(--border-champ);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  min-width: 52px;
}
.countdown-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--champ-light);
  line-height: 1;
}
.countdown-lbl { font-size: 0.68rem; color: var(--text-muted); margin-top: 5px; }

/* Rating meter */
.potd-rating {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--champ-light);
  font-weight: 700;
}
.rating-bar {
  width: 90px; height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}
.rating-bar > span {
  display: block;
  height: 100%;
  background: var(--champ-gradient);
  border-radius: 6px;
}

/* =====================================================================
   5. COACHES (الجهاز الفني)
   ===================================================================== */
.coaches-section { padding: 70px 0; }
.coaches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) { .coaches-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } }

.coach-card {
  background: linear-gradient(145deg, rgba(17, 39, 29, 0.94), rgba(9, 22, 17, 0.96));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.coach-card:hover {
  transform: translateY(-7px);
  border-color: var(--gold-primary);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3), var(--gold-glow);
}
.coach-header {
  position: relative;
  background: linear-gradient(180deg, rgba(183, 243, 74, 0.16) 0%, rgba(15, 19, 26, 0.4) 100%);
  padding: 30px 20px 24px;
  text-align: center;
}
.coach-avatar-wrap {
  position: relative;
  width: 200px; height: 200px;
  max-width: 90%;
  margin: 0 auto 18px;
}
.coach-avatar {
  width: 100%; height: 100%;
  border-radius: 20px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 25px rgba(183, 243, 74, 0.35);
  background: #0d1117;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.coach-card:hover .coach-avatar { transform: scale(1.04); }
.coach-role-badge {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #08110c;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.coach-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.coach-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 8px;
  text-align: center;
}
.coach-meta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--gold-light);
}
.coach-bio-box {
  background: rgba(0, 0, 0, 0.35);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  margin-bottom: 18px;
  flex: 1;
}
.coach-bio-title {
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(183, 243, 74, 0.18);
  padding-bottom: 8px;
}
.coach-bio-list { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.coach-bio-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-white);
  font-size: 0.93rem;
  line-height: 1.6;
}
.bio-num-badge {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #08110c;
  font-weight: 900;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(183, 243, 74, 0.3);
}
.coach-footer {
  font-size: 0.88rem;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(183, 243, 74, 0.08);
  border: 1px solid var(--border-gold);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}
.coach-footer-item { display: flex; align-items: center; gap: 8px; }
.coach-contact {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.coach-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border-gold);
  background: rgba(183, 243, 74, 0.08);
  color: var(--gold-light);
  transition: var(--transition);
}
.coach-contact a:hover { background: var(--gold-primary); color: #08110c; }

/* =====================================================================
   6. TROPHY CABINET (دولاب البطولات)
   ===================================================================== */
.trophy-section {
  padding: 70px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(232, 185, 74, 0.04) 50%, transparent 100%);
}
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.trophy-card {
  position: relative;
  background: linear-gradient(145deg, rgba(24, 28, 14, 0.94), rgba(14, 18, 8, 0.96));
  border: 1px solid var(--border-champ);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.trophy-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(232, 185, 74, 0.1) 50%, transparent 55%);
  transform: rotate(35deg);
  transition: transform 0.7s;
}
.trophy-card:hover::before { transform: rotate(35deg) translate(50px, 50px); }
.trophy-card:hover {
  transform: translateY(-8px);
  border-color: var(--champ);
  box-shadow: 0 12px 30px rgba(232, 185, 74, 0.2), var(--champ-glow);
}
.trophy-image-wrap {
  width: 110px; height: 110px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 185, 74, 0.2), rgba(0,0,0,0.4));
  border: 2px solid var(--champ);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--champ-glow);
}
.trophy-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.trophy-icon { font-size: 3.4rem; margin-bottom: 14px; display: inline-block; line-height: 1; }
.trophy-year {
  background: rgba(232, 185, 74, 0.15);
  color: var(--champ-light);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 13px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}
.trophy-title { font-size: 1.2rem; font-weight: 800; color: var(--text-white); margin-bottom: 10px; }
.trophy-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* =====================================================================
   7. TRAINING SCHEDULE
   ===================================================================== */
.schedule-section { padding: 70px 0; }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.schedule-card {
  background: linear-gradient(145deg, rgba(17, 39, 29, 0.94), rgba(9, 22, 17, 0.96));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.schedule-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.schedule-cat {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-white);
  font-size: 0.93rem;
}
.schedule-icon-pill {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(183, 243, 74, 0.14);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* =====================================================================
   8. MATCHES & RESULTS (scoreboard)
   ===================================================================== */
.matches-section { padding: 70px 0; }
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--gold-gradient);
  color: #08110c;
  border-color: transparent;
  box-shadow: 0 7px 22px rgba(183, 243, 74, 0.2);
}

.match-card {
  background: linear-gradient(145deg, rgba(17, 39, 29, 0.94), rgba(9, 22, 17, 0.96));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.match-card:hover { border-color: var(--gold-primary); transform: translateY(-3px); }

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* Scoreboard */
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 12px;
  background: radial-gradient(ellipse at center, rgba(183, 243, 74, 0.06), transparent 70%);
  border-radius: var(--radius-md);
}
.team-block { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.team-crest {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(183, 243, 74, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.team-crest.home { background: var(--gold-gradient); border-color: transparent; }
.team-name { font-size: 1.05rem; font-weight: 800; color: var(--text-white); line-height: 1.3; }
.team-side { font-size: 0.72rem; color: var(--gold-light); font-weight: 700; }

.match-score-badge {
  background: rgba(8, 17, 15, 0.92);
  border: 2px solid var(--gold-primary);
  padding: 8px 22px;
  border-radius: var(--radius-md);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 3px;
  min-width: 90px;
  box-shadow: var(--gold-glow);
}
.match-vs-badge {
  background: rgba(183, 243, 74, 0.14);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.88rem;
}
.match-scoreboard-time {
  background: rgba(232, 185, 74, 0.12);
  border: 1px solid var(--border-champ);
  color: var(--champ-light);
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
}

.match-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  gap: 10px;
}
.match-report {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-right: 3px solid var(--gold-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.badge-win, .badge-draw, .badge-loss, .badge-status {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-block;
  border: 1px solid;
}
.badge-win { background: rgba(85, 217, 138, 0.18); color: var(--win); border-color: var(--win); }
.badge-draw { background: rgba(243, 198, 74, 0.18); color: var(--draw); border-color: var(--draw); }
.badge-loss { background: rgba(255, 100, 112, 0.18); color: var(--loss); border-color: var(--loss); }
.badge-status.pending { background: rgba(243, 198, 74, 0.18); color: var(--draw); border-color: var(--draw); }
.badge-status.approved { background: rgba(85, 217, 138, 0.18); color: var(--win); border-color: var(--win); }
.badge-status.rejected { background: rgba(255, 100, 112, 0.18); color: var(--loss); border-color: var(--loss); }

/* =====================================================================
   9. PLAYERS DIRECTORY
   ===================================================================== */
.players-section { padding: 70px 0; }

.players-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
}
.players-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.players-search input {
  width: 100%;
  background: rgba(8, 17, 15, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  padding: 10px 38px 10px 14px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}
.players-search input:focus { border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(183, 243, 74, 0.1); }
.players-search::before {
  content: "🔍";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.players-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn, .filter-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gold-gradient);
  color: #08110c;
  font-weight: 700;
  border-color: transparent;
}
.filter-select {
  border-radius: 10px;
  padding: 8px 12px;
}
.filter-select option { background: var(--bg-secondary); }

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.player-card {
  position: relative;
  background: linear-gradient(145deg, rgba(17, 39, 29, 0.94), rgba(9, 22, 17, 0.96));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  padding: 22px 16px 18px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.player-card:hover {
  transform: translateY(-7px);
  border-color: var(--gold-light);
  box-shadow: 0 10px 28px rgba(183, 243, 74, 0.22);
}
.player-card-num {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold-gradient);
  color: #08110c;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.player-img-wrap {
  width: 100px; height: 100px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  overflow: hidden;
  box-shadow: 0 0 16px rgba(183, 243, 74, 0.3);
}
.player-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1); }
.player-card:hover .player-img { transform: scale(1.06); }
.player-name { font-size: 1.02rem; font-weight: 800; color: var(--text-white); margin-bottom: 6px; line-height: 1.3; }
.player-pos-badge {
  background: rgba(183, 243, 74, 0.1);
  color: var(--gold-light);
  font-size: 0.76rem;
  padding: 3px 11px;
  border-radius: 15px;
  display: inline-block;
  margin-bottom: 10px;
  border: 1px solid var(--border-gold);
}
.player-age-badge { font-size: 0.82rem; color: var(--text-muted); display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.player-stats-mini {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.player-stats-mini strong { color: var(--gold-light); font-size: 0.92rem; display: block; }

/* Player detail modal */
.player-detail-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.player-detail-overlay.open { display: flex; }
.player-detail-card {
  background: linear-gradient(145deg, rgba(17, 39, 29, 0.98), rgba(9, 22, 17, 0.98));
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg), var(--gold-glow);
  animation: modalScale 0.3s var(--ease-bounce);
}
@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =====================================================================
   10. NEWS
   ===================================================================== */
.news-section { padding: 70px 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.news-card {
  background: linear-gradient(145deg, rgba(17, 39, 29, 0.94), rgba(9, 22, 17, 0.96));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.news-card:hover { transform: translateY(-6px); border-color: var(--gold-light); }
.news-img-wrap { position: relative; overflow: hidden; height: 180px; }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1); }
.news-card:hover .news-img { transform: scale(1.05); }
.news-cat-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-gradient);
  color: #08110c;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.news-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; color: var(--text-white); line-height: 1.4; }
.news-excerpt { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 16px; flex: 1; }
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}
.news-read-more:hover { gap: 10px; color: var(--gold-primary); }

/* =====================================================================
   11. REGISTRATION FORM
   ===================================================================== */
.registration-section { padding: 70px 0; }
.reg-card {
  background: linear-gradient(145deg, rgba(17, 39, 29, 0.94), rgba(9, 22, 17, 0.96));
  border: 2px solid var(--border-gold-strong);
  border-radius: var(--radius-2xl);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
}
.reg-form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .reg-form-grid { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label { font-size: 0.88rem; font-weight: 700; color: var(--text-white); }
.form-label .req { color: var(--loss); }
.form-input, .form-select, .form-textarea {
  background: rgba(4, 15, 9, 0.72);
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  padding: 12px 16px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(183, 243, 74, 0.12);
}
.form-select option { background: var(--bg-secondary); color: #fff; }
.form-textarea { resize: vertical; min-height: 80px; }

/* =====================================================================
   12. FOOTER
   ===================================================================== */
.main-footer {
  background: #040c08;
  border-top: 1px solid var(--border-gold);
  padding: 54px 0 30px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 36px; margin-bottom: 38px; }
.footer-col h4 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 18px; font-weight: 800; }
.footer-col p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.75; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: var(--text-muted); transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.footer-col ul a:hover { color: var(--gold-light); transform: translateX(-4px); }
.footer-social-links { display: flex; gap: 11px; margin-top: 15px; }
.social-icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(183, 243, 74, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
  transition: var(--transition);
}
.social-icon-btn:hover { background: var(--gold-primary); color: #08110c; transform: translateY(-3px); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* =====================================================================
   13. MOBILE BOTTOM NAVIGATION
   ===================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(5, 16, 11, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 66px;
  z-index: 9999;
  padding: 0 8px;
}
@media (min-width: 992px) { .mobile-bottom-nav { display: none; } }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  transition: var(--transition);
  padding: 6px;
  flex: 1;
  gap: 2px;
}
.mobile-nav-item .icon { font-size: 1.22rem; }
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--gold-light); }
.mobile-nav-item.highlight-nav .icon {
  background: var(--gold-gradient);
  color: #08110c;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: 0 0 14px rgba(183, 243, 74, 0.55);
}

/* =====================================================================
   14. TOAST, SKELETONS, REVEAL ANIMATIONS
   ===================================================================== */
.toast-msg {
  position: fixed;
  top: 22px;
  right: 22px;
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  color: var(--text-white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--gold-glow), var(--shadow-md);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-80px);
  opacity: 0;
  transition: all 0.4s var(--ease-bounce);
  max-width: 90vw;
  font-weight: 600;
  font-size: 0.92rem;
}
.toast-msg.show { transform: translateY(0); opacity: 1; }
.toast-msg.success { border-color: var(--win); }
.toast-msg.error { border-color: var(--loss); }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 37%, rgba(255,255,255,0.04) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }
.skeleton-circle { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px; }

/* Empty state */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 50px 20px;
  grid-column: 1 / -1;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.5; }
.empty-state h4 { color: var(--text-white); font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-bounce);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Card stagger entrance */
.stagger > * { opacity: 0; transform: translateY(22px); animation: cardIn 0.55s var(--ease-bounce) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.22s; }
.stagger > *:nth-child(5) { animation-delay: 0.28s; }
.stagger > *:nth-child(6) { animation-delay: 0.34s; }
.stagger > *:nth-child(7) { animation-delay: 0.40s; }
.stagger > *:nth-child(8) { animation-delay: 0.46s; }
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

/* Announcement banner */
.announcement-banner {
  background: linear-gradient(90deg, rgba(232, 185, 74, 0.15), rgba(183, 243, 74, 0.1));
  border: 1px solid var(--border-champ);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
  color: var(--champ-light);
  display: none;
}
.announcement-banner.show { display: block; }

/* Update available banner */
.update-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  border-radius: 50px;
  padding: 10px 22px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 10002;
  box-shadow: var(--shadow-md);
}
.update-banner.show { display: flex; }
@media (min-width: 992px) { .update-banner { bottom: 24px; } }

/* =====================================================================
   15. RESPONSIVE
   ===================================================================== */
@media (max-width: 767px) {
  .hero-section { padding: 50px 0 60px; }
  .hero-stats { gap: 8px; }
  .stat-item { padding: 12px 6px; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }
  .section-title { font-size: 1.5rem; }
  .potd-grid { gap: 20px; }
  .potd-photo { width: 140px; height: 140px; }
  .main-header { padding: 9px 0; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-text h1 { font-size: 0.92rem; }
  .brand-text span { font-size: 0.68rem; }
  .reg-card { padding: 22px 16px; }
  .scoreboard { padding: 12px 6px; gap: 8px; }
  .team-crest { width: 44px; height: 44px; font-size: 1.2rem; }
  .team-name { font-size: 0.9rem; }
  .match-score-badge { font-size: 1.4rem; padding: 6px 14px; min-width: 70px; }
  .players-toolbar { flex-direction: column; align-items: stretch; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .stagger > * { opacity: 1; transform: none; animation: none; }
}


/* =====================================================================
   RESPONSIVE HARDENING — fluid layouts, no page-level horizontal scroll
   ===================================================================== */
html, body { width: 100%; max-width: 100%; }
body { overflow-x: clip; }
main, header, footer, section, nav, .container, .header-container,
.hero-grid, .players-toolbar, .reg-card, .article-card-main {
  min-width: 0;
}
.container { padding-inline: clamp(12px, 3vw, 22px); }
img, video, iframe, canvas, svg { max-width: 100%; }
input, select, textarea, button { max-width: 100%; min-width: 0; }
p, h1, h2, h3, h4, a, label, td, th, li {
  overflow-wrap: anywhere;
}
button, a, input, select, textarea { touch-action: manipulation; }

@media (max-width: 991px) {
  .nav-links { display: none !important; }
  .main-header { position: sticky; }
  .header-container { flex-wrap: wrap; gap: 10px; }
  .header-actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
  .header-actions > * { min-height: 40px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 76px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container { padding-inline: 12px; }
  .main-header { padding-block: 8px; }
  .header-container { align-items: center; }
  .brand-wrap { min-width: 0; flex: 1 1 100%; }
  .brand-text { min-width: 0; }
  .brand-text h1 { line-height: 1.25; overflow-wrap: anywhere; }
  .header-actions { width: 100%; margin: 0; }
  .header-actions > a, .header-actions > button { flex: 1 1 0; justify-content: center; }
  .ticker-bar { min-width: 0; }
  .ticker-label { flex: 0 0 auto; }
  .hero-grid, .coaches-grid, .trophy-grid, .schedule-grid,
  .players-grid, .news-grid, .footer-grid, .overview-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hero-content, .hero-visual { min-width: 0; width: 100%; }
  .hero-buttons { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-buttons > * { width: 100%; white-space: normal; text-align: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-item { min-width: 0; }
  .stat-label { overflow-wrap: anywhere; }
  .section-title-wrap { margin-bottom: 30px; padding-inline: 4px; }
  .section-title { font-size: clamp(1.25rem, 6vw, 1.6rem); }
  .section-desc { font-size: .9rem; }
  .players-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .players-search, .players-search input, .filter-select { width: 100%; min-width: 0; }
  .players-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .players-filters .filter-btn { min-width: 0; white-space: normal; padding: 8px 6px; }
  .reg-card { padding: 18px 12px; }
  .reg-form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .reg-form-grid > * { min-width: 0; grid-column: auto !important; }
  .scoreboard { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .team-name { overflow-wrap: anywhere; }
  .announcement-banner { padding: 12px; overflow-wrap: anywhere; }
  .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); height: calc(66px + env(safe-area-inset-bottom)); }
  .mobile-nav-item { min-width: 0; font-size: clamp(.58rem, 2.5vw, .7rem); padding-inline: 2px; }
  .toast-msg { left: 12px; right: 12px; max-width: none; width: auto; }
  .update-banner { width: calc(100% - 24px); max-width: 420px; justify-content: center; border-radius: 16px; }
  .article-page-wrap { padding: 22px 0 48px; }
  .article-card-main { padding: 18px 12px; border-radius: 16px; }
  .article-body-text { font-size: 1rem; }
  .article-share-bar { justify-content: center; padding: 14px 10px; }
  .article-share-bar > * { max-width: 100%; }
}
@media (max-width: 380px) {
  .brand-logo { width: 38px; height: 38px; }
  .brand-text h1 { font-size: .82rem; }
  .brand-text span { font-size: .62rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .players-filters { grid-template-columns: 1fr; }
  .header-actions { flex-direction: column; }
  .header-actions > * { width: 100%; }
}

/* Avoid CSS grid min-content overflow and long unbroken values. */
[class*="-grid"] > *, .grid > *, .card, .admin-content-card,
.admin-topbar, .admin-actions, .card-header-flex { min-width: 0; }


/* =====================================================================
   CINEMATIC PLAYERS CAROUSEL
   ===================================================================== */
.players-showcase-section { overflow: hidden; }
.players-carousel {
  --carousel-card-width: clamp(210px, 27vw, 360px);
  position: relative;
  width: 100%;
  min-height: clamp(390px, 48vw, 590px);
  margin: 8px auto 0;
  padding: 18px 0 68px;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}
.players-carousel::before {
  content: "";
  position: absolute;
  inset: 7% 10% 16%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(183,243,74,.13), transparent 58%),
    linear-gradient(90deg, transparent, rgba(183,243,74,.035), transparent);
  filter: blur(16px);
}
.players-carousel-track {
  position: relative;
  width: 100%;
  height: clamp(330px, 42vw, 510px);
  perspective: 1300px;
  transform-style: preserve-3d;
}
.players-carousel-loading {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-muted);
}
.players-carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--carousel-card-width);
  height: 100%;
  padding: 0;
  border: 1px solid rgba(183,243,74,.22);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #080d0b;
  box-shadow: 0 18px 55px rgba(0,0,0,.48);
  transform: translateX(-50%) scale(.72);
  opacity: 0;
  filter: blur(5px) saturate(.65);
  pointer-events: none;
  transition:
    transform 850ms cubic-bezier(.2,.78,.18,1),
    opacity 700ms ease,
    filter 700ms ease,
    box-shadow 700ms ease,
    border-color 700ms ease;
  will-change: transform, opacity, filter;
}
.players-carousel-image-frame,
.players-carousel-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
}
.players-carousel-image-frame img {
  object-fit: cover;
  object-position: center top;
  user-select: none;
  -webkit-user-drag: none;
}
.players-carousel-slide::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.12) 56%, rgba(0,0,0,.78));
}
.players-carousel-slide-number {
  position: absolute;
  z-index: 2;
  inset: auto 14px 14px;
  color: rgba(255,255,255,.88);
  text-align: center;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-shadow: 0 2px 8px #000;
}
.players-carousel-slide.is-active {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  z-index: 5;
  transform: translateX(-50%) scale(1);
  border-color: rgba(205,245,111,.9);
  box-shadow: 0 0 0 1px rgba(183,243,74,.24), 0 24px 75px rgba(0,0,0,.62), 0 0 42px rgba(183,243,74,.17);
}
.players-carousel-slide.is-prev {
  opacity: .52;
  filter: blur(1.5px) saturate(.62) brightness(.72);
  pointer-events: auto;
  z-index: 3;
  transform: translateX(calc(-50% - var(--carousel-card-width) * .88)) scale(.77) rotateY(9deg);
}
.players-carousel-slide.is-next {
  opacity: .52;
  filter: blur(1.5px) saturate(.62) brightness(.72);
  pointer-events: auto;
  z-index: 3;
  transform: translateX(calc(-50% + var(--carousel-card-width) * .88)) scale(.77) rotateY(-9deg);
}
.players-carousel-slide.is-far {
  opacity: .13;
  filter: blur(4px) saturate(.35) brightness(.5);
  z-index: 1;
  transform: translateX(calc(-50% + var(--carousel-card-width) * var(--side, 1) * 1.62)) scale(.58);
}
.players-carousel-slide[data-position="-2"] { --side: -1; }
.players-carousel-slide[data-position="2"] { --side: 1; }
.players-carousel-slide.is-hidden { opacity: 0; z-index: 0; transform: translateX(-50%) scale(.48); }
.players-carousel-slide.image-missing .players-carousel-image-frame {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg,#101b14,#101b14 12px,#17251b 12px,#17251b 24px);
}
.players-carousel-slide.image-missing .players-carousel-image-frame::after {
  content: "الصورة غير متاحة";
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}
.players-carousel-slide.image-missing img { display: none; }
.players-carousel-arrow {
  position: absolute;
  z-index: 8;
  top: 43%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183,243,74,.45);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(4,12,8,.78);
  backdrop-filter: blur(12px);
  font: 400 2rem/1 inherit;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.players-carousel-arrow:hover {
  transform: scale(1.09);
  color: #07110b;
  background: var(--gold-primary);
}
.players-carousel-prev { left: clamp(8px, 4vw, 54px); }
.players-carousel-next { right: clamp(8px, 4vw, 54px); }
.players-carousel-bottom {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 42px;
}
.players-carousel-counter {
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.players-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 5px; }
.players-carousel-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.players-carousel-dot.active { width: 21px; background: var(--gold-primary); }
.players-carousel-pause {
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  padding: 7px 12px;
  background: rgba(255,255,255,.035);
  color: var(--text-muted);
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}
.players-carousel-pause:hover,
.players-carousel-pause[aria-pressed="true"] { color: var(--gold-light); border-color: var(--gold-primary); }

@media (max-width: 767px) {
  .players-carousel {
    --carousel-card-width: min(61vw, 270px);
    min-height: 390px;
    padding-top: 8px;
  }
  .players-carousel-track { height: 330px; }
  .players-carousel-slide { border-radius: 14px; }
  .players-carousel-slide.is-prev { transform: translateX(calc(-50% - var(--carousel-card-width) * .76)) scale(.74); }
  .players-carousel-slide.is-next { transform: translateX(calc(-50% + var(--carousel-card-width) * .76)) scale(.74); }
  .players-carousel-arrow { width: 38px; height: 38px; top: 42%; font-size: 1.7rem; }
  .players-carousel-prev { left: 4px; }
  .players-carousel-next { right: 4px; }
  .players-carousel-bottom { gap: 10px; flex-wrap: wrap; }
  .players-carousel-dots { gap: 3px; max-width: 115px; overflow: hidden; }
  .players-carousel-dot { width: 4px; height: 4px; }
  .players-carousel-dot.active { width: 14px; }
}
@media (max-width: 390px) {
  .players-carousel { --carousel-card-width: 58vw; min-height: 355px; }
  .players-carousel-track { height: 300px; }
  .players-carousel-bottom { gap: 7px; }
  .players-carousel-counter, .players-carousel-pause { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .players-carousel-slide { transition: none !important; }
}

/* Star of the day — larger portrait and centered animated crown */
.potd-grid { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(220px, 250px); gap: clamp(22px, 3vw, 48px); }
.potd-photo-wrap { display:flex; flex-direction:column; align-items:center; justify-content:center; padding-top:34px; }
.potd-photo-wrap .potd-crown {
  position:absolute;
  top:-20px;
  left:50%;
  transform:translateX(-50%);
  margin:0;
  font-size:4.6rem;
  line-height:1;
  filter:drop-shadow(0 0 14px rgba(255,205,64,.8));
  transform-origin:50% 80%;
  animation:crown-royal-float 2.2s ease-in-out infinite;
}
.potd-photo {
  width:clamp(230px, 20vw, 310px);
  height:clamp(270px, 25vw, 360px);
  border-radius:30px;
  border-width:5px;
  object-fit:cover;
  object-position:top center;
  box-shadow:0 0 34px rgba(232,185,74,.58), 0 12px 36px rgba(0,0,0,.35);
}
@keyframes crown-royal-float {
  0%,100% { transform:translate(-50%,0) rotate(-3deg) scale(1); }
  50% { transform:translate(-50%,-13px) rotate(3deg) scale(1.12); }
}
.potd-info h3 { font-size:clamp(1.7rem, 2.4vw, 2.35rem); }
.potd-meta .champ-badge { font-size:1rem; padding:9px 15px; }
.potd-rating { font-size:1.05rem; }
@media (max-width: 859px) {
  .potd-grid { grid-template-columns:1fr; }
  .potd-photo-wrap { padding-top:42px; }
  .potd-photo { width:min(78vw, 320px); height:min(92vw, 390px); }
  .potd-photo-wrap .potd-crown { top:-22px; font-size:4.8rem; }
  .potd-card { padding:28px 18px; }
}



/* Clear return-to-center link */
.center-home-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;padding:9px 13px;border:1px solid rgba(183,243,74,.48);border-radius:12px;background:linear-gradient(135deg,rgba(183,243,74,.16),rgba(183,243,74,.06));color:#d9ff8c;text-decoration:none;font-size:.82rem;font-weight:900;box-shadow:0 6px 22px rgba(0,0,0,.2);transition:transform .2s ease,border-color .2s ease,background .2s ease}
.center-home-link:hover{transform:translateY(-2px);border-color:#b7f34a;background:rgba(183,243,74,.2)}
.main-header .header-container{gap:10px}
@media(max-width:760px){.center-home-link{padding:7px 9px;font-size:.72rem;gap:4px}.center-home-link span{white-space:nowrap}.main-header .header-container{gap:7px}}
 