/* styles.css - Custom CSS Design System for Al-Shabab Oman Club */

/* Import Google Fonts: Chakra Petch (Athletic/Industrial EN), Outfit (Modern EN), and Tajawal (Clean Arabic with dots) */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,600;0,700;1,700&family=Outfit:wght@300;400;500;600;700&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
  --bg: #070b19;
  --bg-gradient: linear-gradient(135deg, #070b19 0%, #03050d 100%);
  --card-bg: rgba(13, 22, 47, 0.7);
  --card-bg-solid: #0e162f;
  --card-border: rgba(66, 153, 225, 0.2);
  --primary: #4299e1; /* Sleek Omani brand bright/electric blue */
  --primary-glow: rgba(66, 153, 225, 0.35);
  --primary-hover: #3182ce;
  --primary-bg-light: rgba(66, 153, 225, 0.1);
  --secondary: #17244d;
  --secondary-hover: #21326c;
  --text: #ffffff;
  --text-muted: #a0aec0;
  --gold: #ecc94b;
  --gold-glow: rgba(236, 201, 75, 0.2);
  --red: #f56565;
  --yellow: #ed8936;
  --input-bg: #0c142b;
  --input-border: rgba(66, 153, 225, 0.25);
  --input-focus: #4299e1;
  
  --font-en-head: 'Chakra Petch', sans-serif;
  --font-ar-head: 'Tajawal', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --header-height: 80px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px; /* Sharp, modern athletic corners */
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

/* Set localized headings using :lang or dir attribute */
[dir="rtl"] {
  --font-body: 'Tajawal', sans-serif;
  --font-en-head: 'Tajawal', sans-serif;
  font-family: 'Tajawal', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en-head);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: var(--font-ar-head);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Layout Shell */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-bottom: 60px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Component */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

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

.logo-img {
  width: 48px;
  height: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-en-head);
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 2px;
  margin-top: 6px;
}

[dir="rtl"] .logo-text {
  font-family: var(--font-ar-head);
  letter-spacing: 0;
}
[dir="rtl"] .logo-text span {
  letter-spacing: 0.5px;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-en-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
  cursor: pointer;
}
[dir="rtl"] .nav-link {
  font-family: var(--font-ar-head);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: var(--transition);
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

/* Control Controls (Admin toggle, Lang toggle, Hamburger) */
.controls-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--font-en-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
[dir="rtl"] .btn {
  font-family: var(--font-ar-head);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 25px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text);
  border: 1px solid var(--card-border);
}

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

.btn-danger {
  background-color: var(--red);
  color: #fff;
}
.btn-danger:hover {
  background-color: #e03030;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* Language Toggler */
.lang-toggle {
  background: none;
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg-light);
}

/* Admin Toggle Switch */
.admin-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

.admin-toggle-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #17244d;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

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

[dir="rtl"] input:checked + .slider:before {
  transform: translateX(-18px);
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer Section */
footer {
  background: #03050d;
  border-top: 1px solid var(--card-border);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  margin-top: auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 40px;
  height: auto;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* PAGE 1: HERO & HOME */
.hero-wrapper {
  position: relative;
  background: linear-gradient(rgba(7, 11, 25, 0.9), rgba(3, 5, 13, 0.95)), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'><path d='M0 100 L800 500 M0 300 L800 200 M200 0 L600 600' stroke='rgba(66, 153, 225, 0.08)' stroke-width='4' fill='none'/><circle cx='400' cy='300' r='150' stroke='rgba(66, 153, 225, 0.04)' stroke-width='8' fill='none'/></svg>") center/cover;
  padding: 100px 0 140px 0;
  display: flex;
  align-items: center;
  min-height: 550px;
  border-bottom: 1px solid var(--card-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(to right, var(--text), var(--primary), #63a4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUp 0.8s ease;
}

[dir="rtl"] .hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--primary);
  font-family: var(--font-en-head);
  margin-bottom: 24px;
  text-shadow: 0 0 10px rgba(66, 153, 225, 0.2);
  animation: slideUp 0.8s ease 0.1s both;
}

[dir="rtl"] .hero-subtitle {
  font-family: var(--font-ar-head);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  animation: slideUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  animation: slideUp 0.8s ease 0.3s both;
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-crest-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
  animation: pulseGlow 4s infinite alternate;
}

.hero-logo-img {
  width: 280px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 0 30px var(--primary-glow));
  animation: floatCrest 6s ease-in-out infinite;
}

/* About / Timeline Section */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20%;
  width: 60%;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.about-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
}

[dir="rtl"] .about-box::before {
  left: auto;
  right: 0;
}

/* Timeline Components */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 20px 0;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--secondary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

[dir="rtl"] .timeline-container::after {
  left: auto;
  right: 50%;
  margin-right: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: var(--transition);
}

[dir="rtl"] .timeline-item::after {
  right: auto;
  left: -10px;
}

.timeline-left {
  left: 0;
}
[dir="rtl"] .timeline-left {
  left: auto;
  right: 0;
}

.timeline-right {
  left: 50%;
}
[dir="rtl"] .timeline-right {
  left: auto;
  right: 50%;
}

[dir="rtl"] .timeline-left::after {
  left: auto;
  right: -10px;
}

[dir="rtl"] .timeline-right::after {
  right: auto;
  left: -10px;
}

.timeline-left::after {
  right: -10px;
}

.timeline-right::after {
  left: -10px;
}

.timeline-content {
  padding: 24px;
  background-color: var(--card-bg);
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--card-border);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(66, 153, 225, 0.05);
}

.timeline-content:hover::after {
  background-color: var(--primary);
}

.timeline-year {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-en-head);
}

.timeline-milestone {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* Trophy Room Showcase */
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.trophy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.trophy-card::after {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.trophy-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.1);
}

.trophy-card:hover::after {
  opacity: 1;
  top: -100%;
  left: -100%;
}

.trophy-icon-wrapper {
  position: relative;
  z-index: 10;
  font-size: 3.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
  transition: var(--transition);
}

.trophy-card:hover .trophy-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.trophy-year-badge {
  display: inline-block;
  background-color: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-en-head);
  z-index: 10;
  position: relative;
}

.trophy-title {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
}

.trophy-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}

/* Trophy Lightbox Overlay */
.trophy-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 9, 14, 0.92);
  backdrop-filter: blur(15px);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInTrophy 0.3s ease-out;
}

/* Lightbox Content Card */
.trophy-lightbox-content {
  background: radial-gradient(circle at top left, rgba(20, 24, 33, 0.95), rgba(10, 12, 18, 0.98));
  border: 1.5px solid var(--gold);
  border-radius: var(--border-radius);
  max-width: 680px;
  width: 100%;
  padding: 36px 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.15);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  animation: scaleUpTrophy 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

/* Close Button */
.trophy-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.trophy-lightbox-close:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  transform: rotate(90deg);
}

/* Left side: image showcase */
.trophy-lightbox-image-side {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 24px;
  height: 240px;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.25));
}
.trophy-lightbox-image-side img,
.trophy-lightbox-image-side svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: floatTrophy 4s ease-in-out infinite;
}

/* Right side: info */
.trophy-lightbox-info-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Right side RTL check */
[dir="rtl"] .trophy-lightbox-info-side {
  align-items: flex-start;
  text-align: right;
}
[dir="rtl"] .trophy-lightbox-close {
  right: auto;
  left: 16px;
}

.trophy-lightbox-year {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: var(--font-en-head);
}

.trophy-lightbox-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.trophy-lightbox-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Floating animation */
@keyframes floatTrophy {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeInTrophy {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpTrophy {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive constraints */
@media (max-width: 640px) {
  .trophy-lightbox-content {
    flex-direction: column;
    padding: 32px 20px 24px 20px;
    gap: 20px;
  }
  .trophy-lightbox-image-side {
    flex: 0 0 180px;
    width: 100%;
    height: 180px;
  }
  .trophy-lightbox-info-side {
    align-items: center;
    text-align: center;
  }
  [dir="rtl"] .trophy-lightbox-info-side {
    align-items: center;
    text-align: center;
  }
}

/* PAGE 2: TOURNAMENTS */
.page-header-box {
  background: linear-gradient(rgba(20, 24, 32, 0.9), rgba(20, 24, 32, 0.95)), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><rect width='100' height='100' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/></svg>");
  border-bottom: 1px solid var(--card-border);
  padding: 60px 0;
  text-align: center;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 30px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.tab-group {
  display: flex;
  background: var(--card-bg-solid);
  border: 1px solid var(--card-border);
  padding: 4px;
  border-radius: 6px;
  gap: 4px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-family: var(--font-en-head);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
[dir="rtl"] .tab-btn {
  font-family: var(--font-ar-head);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  background-color: var(--secondary);
  color: var(--primary);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(66, 153, 225, 0.15);
}

/* Tournament Cards */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.tour-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tour-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(11, 44, 102, 0.06);
}

.tour-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
[dir="rtl"] .tour-badge {
  right: auto;
  left: 16px;
}

.tour-badge.active {
  background-color: rgba(66, 153, 225, 0.15);
  color: var(--primary);
  border: 1px solid rgba(66, 153, 225, 0.3);
}

.tour-badge.upcoming {
  background-color: rgba(255, 208, 0, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 208, 0, 0.3);
}

.tour-badge.archived {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tour-title {
  font-size: 1.4rem;
  margin: 16px 0 12px 0;
  color: var(--text);
  padding-right: 80px; /* Leave space for badge */
}

[dir="rtl"] .tour-title {
  padding-right: 0;
  padding-left: 80px;
}

.tour-info-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.tour-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-info-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Admin Dashboard panels */
.admin-card {
  background: var(--card-bg-solid);
  border: 1px dashed var(--primary);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(11, 44, 102, 0.04);
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(66, 153, 225, 0.2);
  padding-bottom: 12px;
}

.admin-badge {
  background: var(--primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
[dir="rtl"] label {
  font-family: var(--font-ar-head);
  font-size: 0.9rem;
}

input, select, textarea {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(66, 153, 225, 0.25);
  background-color: rgba(255, 255, 255, 0.02);
}

/* PAGE 3: MATCH CENTER */

/* Layout Grid System */
.match-center-layout {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 32px;
  margin-top: 30px;
  align-items: start;
}

.match-center-layout.no-sidebar {
  grid-template-columns: 1fr;
}

.match-center-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.match-center-right {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
  padding-inline-end: 4px;
}

/* Scrollbar styling for sticky right sidebar standings widget */
.match-center-right::-webkit-scrollbar {
  width: 6px;
}
.match-center-right::-webkit-scrollbar-track {
  background: transparent;
}
.match-center-right::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 3px;
}
.match-center-right::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

@media (max-width: 992px) {
  .match-center-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .match-center-right {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* Premium Live Toggle Switch */
.live-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(245, 101, 101, 0.04);
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid rgba(245, 101, 101, 0.2);
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.live-toggle-wrapper .switch {
  margin-inline-start: 16px;
}

.live-toggle-wrapper:hover {
  border-color: rgba(245, 101, 101, 0.45);
  background: rgba(245, 101, 101, 0.08);
}

.live-toggle-wrapper.active {
  background: rgba(245, 101, 101, 0.1);
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(245, 101, 101, 0.2);
}

.live-toggle-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.live-dot-static {
  width: 8px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.live-toggle-wrapper.active .live-dot-static {
  background-color: var(--red);
  animation: pulse-live 1.2s infinite;
}

.live-toggle-wrapper.active .switch input:checked + .slider {
  background-color: var(--red);
}

.match-filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--card-bg-solid);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 10px 36px 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-family: var(--font-en-head);
  outline: none;
  cursor: pointer;
  min-width: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300ff66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: var(--transition);
}

.match-filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

[dir="rtl"] .match-filter-select {
  font-family: var(--font-ar-head);
  padding: 10px 20px 10px 36px;
  background-position: left 12px center;
  text-align: right;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.match-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.match-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.match-card.live-border {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(11, 44, 102, 0.15);
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.match-tour-name {
  font-weight: 600;
}

.match-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 62, 62, 0.15);
  color: var(--red);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 62, 62, 0.3);
}

.match-live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--red);
  border-radius: 50%;
  animation: pulse-live 1.2s infinite;
}

@keyframes pulse-live {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

.match-scoreboard-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 30px 24px;
  position: relative;
}

.match-team-col {
  display: flex;
  align-items: center;
  gap: 20px;
}

.match-team-col.home {
  justify-content: flex-end;
  text-align: right;
}
.match-team-col.away {
  justify-content: flex-start;
  text-align: left;
}

[dir="rtl"] .match-team-col.home {
  justify-content: flex-start;
  text-align: left;
  flex-direction: row-reverse;
}
[dir="rtl"] .match-team-col.away {
  justify-content: flex-end;
  text-align: right;
  flex-direction: row-reverse;
}

.match-crest {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.match-team-name {
  font-size: 1.4rem;
  font-weight: 700;
}

.match-score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: var(--secondary);
  padding: 10px 24px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
}

.match-score-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-en-head);
  min-width: 36px;
  text-align: center;
}

.match-score-num.live-pulse {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.match-score-divider {
  color: var(--text-muted);
  font-weight: 700;
}

.match-time-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-en-head);
  text-transform: uppercase;
}

.match-time-badge.countdown-active,
.bracket-match-minute.countdown-active {
  color: var(--gold) !important;
  text-shadow: 0 0 5px rgba(236, 201, 75, 0.4) !important;
}

/* Match events display timeline */
.match-events-box {
  background-color: rgba(11, 44, 102, 0.03);
  border-top: 1px solid var(--card-border);
  padding: 16px 24px;
}

.match-events-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-events-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.match-event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.match-event-item.home-event {
  justify-content: flex-end;
  text-align: right;
  grid-column: 1;
}

.match-event-item.away-event {
  justify-content: flex-start;
  text-align: left;
  grid-column: 2;
}

[dir="rtl"] .match-event-item.home-event {
  justify-content: flex-start;
  text-align: left;
  flex-direction: row-reverse;
}
[dir="rtl"] .match-event-item.away-event {
  justify-content: flex-end;
  text-align: right;
  flex-direction: row-reverse;
}

.event-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 2px;
}

.event-icon.goal {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><circle cx='12' cy='12' r='10' fill='none' stroke='white' stroke-width='2'/><path d='M12 2 A10 10 0 0 0 2 12 M22 12 A10 10 0 0 0 12 22' stroke='white' stroke-width='1.5'/></svg>") center/contain no-repeat;
}

.event-icon.yellow_card {
  background-color: var(--yellow);
  box-shadow: 0 0 6px rgba(255, 208, 0, 0.4);
}

.event-icon.red_card {
  background-color: var(--red);
  box-shadow: 0 0 6px rgba(255, 62, 62, 0.4);
}

.event-details {
  color: var(--text);
}

.event-minute {
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-en-head);
}

/* Match Admin Controls panel */
.match-admin-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.admin-sub-card {
  background: var(--secondary);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: var(--border-radius);
}

.admin-sub-title {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.admin-score-adjuster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--input-bg);
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid var(--input-border);
}

.admin-score-count {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-en-head);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: 90%;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

.toast {
  background-color: var(--card-bg-solid);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(11, 44, 102, 0.08), 0 0 15px var(--primary-glow);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.toast-goal {
  border-color: var(--primary);
}

.toast.toast-card {
  border-color: var(--yellow);
}

.toast.toast-card-red {
  border-color: var(--red);
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-family: var(--font-en-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

[dir="rtl"] .toast-title {
  font-family: var(--font-ar-head);
}

.toast-desc {
  font-size: 0.88rem;
  color: var(--text);
}

@keyframes slide-in {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* PAGE 4: TEAMS & CROPPER */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(11, 44, 102, 0.05);
}

.team-logo-wrapper {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  border-radius: 50%;
  padding: 8px;
  border: 2px solid var(--card-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.team-card:hover .team-logo-wrapper {
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.team-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

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

/* Canvas Logo Cropper Component */
.logo-upload-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cropper-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.cropper-modal-content {
  background-color: var(--card-bg-solid);
  border: 1px solid var(--primary);
  border-radius: var(--border-radius);
  max-width: 550px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 15px 40px rgba(11, 44, 102, 0.12), 0 0 20px var(--primary-glow);
  max-height: 85vh;
  overflow-y: auto;
}

.cropper-canvas-area {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: var(--secondary);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
}

.cropper-canvas {
  max-width: 100%;
  max-height: 100%;
  cursor: crosshair;
}

.crop-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.crop-preview-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background-color: var(--secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.custom-file-upload {
  border: 1px dashed var(--input-border);
  display: inline-block;
  padding: 24px;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-muted);
  transition: var(--transition);
}

.custom-file-upload:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg-light);
}

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

@keyframes pulseGlow {
  from {
    opacity: 0.1;
    transform: scale(0.9);
  }
  to {
    opacity: 0.2;
    transform: scale(1.1);
  }
}

@keyframes floatCrest {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .hero-logo-container {
    order: -1;
  }
  .hero-logo-img {
    width: 200px;
    height: auto;
  }
  .hero-crest-glow {
    width: 180px;
    height: 180px;
    filter: blur(60px);
  }
  .hero-content {
    order: 1;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .timeline-container::after {
    left: 31px;
  }
  [dir="rtl"] .timeline-container::after {
    right: 31px;
    left: auto;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  [dir="rtl"] .timeline-item {
    padding-right: 70px;
    padding-left: 20px;
  }
  .timeline-right {
    left: 0%;
  }
  [dir="rtl"] .timeline-right {
    right: 0%;
  }
  .timeline-item::after {
    left: 21px;
    right: auto;
  }
  [dir="rtl"] .timeline-item::after {
    right: 21px;
    left: auto;
  }
  [dir="rtl"] .timeline-left::after, [dir="rtl"] .timeline-right::after {
    right: 21px;
    left: auto;
  }
  .timeline-left::after, .timeline-right::after {
    left: 21px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
  .nav-links {
    display: none; /* Mobile menu can toggle */
  }
  .nav-links.mobile-show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--card-bg-solid);
    border-bottom: 1px solid var(--card-border);
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }
  .mobile-menu-btn {
    display: block;
  }
  .match-scoreboard-row {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center !important;
  }
  .match-team-col {
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .match-scoreboard-row [dir="rtl"] .match-team-col {
    flex-direction: column !important;
  }
  .match-events-list {
    grid-template-columns: 1fr;
  }
  .match-event-item {
    justify-content: center !important;
    text-align: center !important;
  }
  .match-admin-subgrid {
    grid-template-columns: 1fr;
  }
}

/* Standings Table Styles */
.standings-table-container {
  overflow-x: auto;
  background: var(--card-bg-solid);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.standings-group-title {
  font-family: var(--font-en-head);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
[dir="rtl"] .standings-group-title {
  font-family: var(--font-ar-head);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
}

.standings-table th {
  font-family: var(--font-en-head);
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid var(--card-border);
  padding: 12px 10px;
  text-transform: uppercase;
}
[dir="rtl"] .standings-table th {
  font-family: var(--font-ar-head);
}

.standings-table th.rank-cell,
.standings-table td.rank-cell {
  color: var(--gold) !important;
  font-weight: 700;
}

.standings-table th.points-cell,
.standings-table td.points-cell {
  color: var(--gold) !important;
  font-weight: 700;
}

.standings-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.standings-table tr:hover {
  background: rgba(66, 153, 225, 0.04);
}

.standings-table th.align-left,
.standings-table td.align-left {
  text-align: left;
}
[dir="rtl"] .standings-table th.align-left,
[dir="rtl"] .standings-table td.align-left {
  text-align: right;
}

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

.standings-team-name {
  font-weight: 600;
  color: var(--text);
}

.standings-badge-qualify {
  background-color: rgba(66, 153, 225, 0.15);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 2px 6px;
  margin-inline-start: 8px;
}

.standings-table tr.qualify-row td {
  border-left: 3px solid var(--primary);
}
[dir="rtl"] .standings-table tr.qualify-row td {
  border-left: none;
  border-right: 3px solid var(--primary);
}

/* Redesigned Match Cards */
.match-card {
  background: #0d1221 !important; /* deep navy/black card background */
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  transition: var(--transition) !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
}

.match-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 12px 35px rgba(0, 255, 102, 0.06), 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-2px);
}

.match-card.live-border {
  border-color: var(--primary) !important;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.08), 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.match-card-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 8px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.match-header-date {
  font-weight: 600;
  font-family: var(--font-en-head);
  white-space: nowrap;
  min-width: 100px;
  display: inline-block;
}
[dir="rtl"] .match-header-date {
  font-family: var(--font-ar-head);
}

.match-header-stage-badge {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-en-head);
}
[dir="rtl"] .match-header-stage-badge {
  font-family: var(--font-ar-head);
}

.match-header-status-badge {
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-en-head);
}
[dir="rtl"] .match-header-status-badge {
  font-family: var(--font-ar-head);
}

.match-scoreboard-row-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 12px 32px;
  position: relative;
  gap: 16px;
}

.match-team-container-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: auto;
  gap: 4px;
}

.match-team-identity-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.match-team-logo-new {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0;
}

.match-team-name-new {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-en-head);
  line-height: 1.2;
  text-align: center;
}
[dir="rtl"] .match-team-name-new {
  font-family: var(--font-ar-head);
}

.match-team-events-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}

.match-upcoming-time-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.match-team-event-item-new {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-en-head);
  white-space: nowrap;
}
[dir="rtl"] .match-team-event-item-new {
  font-family: var(--font-ar-head);
}

.match-score-display-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.match-score-num-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.match-score-num-new {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-en-head);
  text-shadow: 0 0 10px rgba(236, 201, 75, 0.2);
  transition: var(--transition);
}

.match-score-num-new.live-pulse {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.match-score-divider-new {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-en-head);
}

.match-stadium-info-new {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 24px 20px 24px;
  font-family: var(--font-en-head);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
[dir="rtl"] .match-stadium-info-new {
  font-family: var(--font-ar-head);
}

@media (max-width: 576px) {
  .match-scoreboard-row-new {
    padding: 16px;
    gap: 12px;
  }
  
  .match-team-container-new {
    width: auto !important;
    gap: 6px !important;
  }
  
  .match-team-logo-new {
    width: 48px !important;
    height: 48px !important;
  }
  
  .match-team-name-new {
    font-size: 0.95rem;
  }
  
  .match-score-num-new {
    font-size: 1.8rem;
  }
  
  .match-score-divider-new {
    font-size: 1.5rem;
  }
  
  .match-team-event-item-new {
    font-size: 0.72rem;
  }
}

/* Match Center Tab Switcher Styling */
.match-tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 6px;
  border-radius: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.match-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-tab-btn:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.03);
}

.match-tab-btn.active {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

/* Force Match Center layout to be single-column for the tab view */
.match-center-layout {
  grid-template-columns: 1fr !important;
}

.match-center-right {
  position: static !important;
  max-height: none !important;
  overflow-y: visible !important;
  padding-inline-end: 0 !important;
}

/* Live Penalties styles and micro-animations */
.match-pk-container-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 64px);
  margin: 0 auto 20px auto;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-sizing: border-box;
  gap: 6px;
  animation: slideUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}

.match-pk-sequence-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.match-pk-seq {
  display: flex;
  gap: 6px;
}

.match-pk-seq span {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: scaleIn-pk 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.match-pk-score-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-en-head);
  text-align: center;
  width: 100%;
}
[dir="rtl"] .match-pk-score-text {
  font-family: var(--font-ar-head);
}

@keyframes scaleIn-pk {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .match-pk-container-new {
    width: calc(100% - 32px);
    padding: 8px 16px;
    margin-bottom: 12px;
  }
  .match-pk-seq span {
    font-size: 1.1rem;
  }
  .match-pk-score-text {
    font-size: 0.85rem;
  }
}

/* News Page Styling */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 255, 102, 0.15);
}

.news-card-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-card-image {
  transform: scale(1.08);
}

.news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-en-head);
}

[dir="rtl"] .news-card-date {
  font-family: var(--font-ar-head);
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-en-head);
}

[dir="rtl"] .news-card-title {
  font-family: var(--font-ar-head);
}

.news-card-readmore {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-en-head);
}

[dir="rtl"] .news-card-readmore {
  font-family: var(--font-ar-head);
}

.news-card:hover .news-card-readmore span {
  transform: translateX(6px) !important;
}

[dir="rtl"] .news-card:hover .news-card-readmore span {
  transform: translateX(-6px) !important;
}

/* News Details Page Styling */
.news-details-container {
  animation: fadeIn 0.5s ease-out;
  padding: 16px 0;
}

.news-back-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-weight: 600;
  font-family: var(--font-en-head);
  transition: var(--transition);
}

[dir="rtl"] .news-back-btn {
  font-family: var(--font-ar-head);
}

.news-back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.news-details-banner {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 32px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
}

.news-details-banner img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.news-details-meta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  font-family: var(--font-en-head);
}

[dir="rtl"] .news-details-meta {
  font-family: var(--font-ar-head);
}

.news-details-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 24px;
  font-family: var(--font-en-head);
}

[dir="rtl"] .news-details-title {
  font-family: var(--font-ar-head);
}

.news-details-content {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .news-details-title {
    font-size: 1.6rem;
  }
  .news-details-banner {
    max-height: 300px;
  }
}

/* Lineup Columns Layout */
.lineup-columns {
  display: flex;
  gap: 24px;
}

.lineup-column {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .lineup-columns {
    flex-direction: column;
    gap: 20px;
  }
}


