/* ancientfit-frontend/css/ancientFitRivalBoard.css*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   DESIGN SYSTEM
   Glass: darker base (0.55–0.75 opacity black), blur reduced to 10px
   Hover: always darkens, never lightens
   Accent colors: all original values restored unchanged
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* Glass base — darker, less blur */
  --glass-bg:             rgba(0, 0, 0, 0.55);
  --glass-border:         rgba(255, 255, 255, 0.09);
  --glass-shadow:         rgba(0, 0, 0, 0.5);
  --blur-intensity:       blur(10px);
  --transition-blur:      all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Accent colors — all original, unchanged */
  --accent-green:         #00b894;
  --accent-teal:          #00d6a8;
  --accent-glow:          rgba(0, 184, 148, 0.3);
  --accent-red:           #ff3b3b;
  --accent-red-glow:      rgba(255, 59, 59, 0.3);
  --accent-gold:          #FFD700;
  --accent-gold-glow:     rgba(255, 215, 0, 0.3);

  --text-white:           rgba(255, 255, 255, 0.95);
  --text-secondary:       rgba(255, 255, 255, 0.7);

  /* Gradient primary — darkened base, original accent hue kept */
  --gradient-primary:     linear-gradient(135deg,
                            rgba(0, 102, 204, 0.15),
                            rgba(0, 201, 183, 0.10));

  /* Glass variants — original accent hues, darker opacities */
  --glass-green:          linear-gradient(135deg,
                            rgba(0, 184, 148, 0.18),
                            rgba(0, 214, 168, 0.25));
  --glass-green-border:   rgba(0, 184, 148, 0.35);
  --glass-green-shadow:   rgba(0, 184, 148, 0.15);

  --glass-red:            linear-gradient(135deg,
                            rgba(255, 59, 59, 0.18),
                            rgba(255, 99, 99, 0.25));
  --glass-red-border:     rgba(255, 59, 59, 0.35);

  --glass-gold:           linear-gradient(135deg,
                            rgba(255, 215, 0, 0.18),
                            rgba(255, 235, 100, 0.25));
  --glass-gold-border:    rgba(255, 215, 0, 0.35);

  /* Championship — unchanged */
  --championship-bg:      rgba(30, 30, 40, 0.8);
  --championship-border:  rgba(122, 0, 0, 0.5);
  --championship-btn-bg:  #7a0000;
  --championship-btn-hover: #a00000;
  --championship-glow:    rgba(122, 0, 0, 0.3);
}

/* ── Reset ──────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background: #0a1a2d;
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: url('../Images/Event/EventHomePage.jpg') no-repeat center center fixed;
  background-size: cover;
  user-select: none;
}

/* Page scrim — darker overlay, reduced blur */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(6, 10, 18, 0.60);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: -1;
  pointer-events: none;
}

/* ── RTL — direction only, no color changes ─────────────────────────── */
body[dir="rtl"] { text-align: right; }
body[dir="rtl"] .language-toggle { right: auto; left: 20px; }
body[dir="rtl"] .filter-group { flex-direction: row-reverse; }
body[dir="rtl"] .header h1::before { transform: translate(-50%, -50%) scaleX(-1); }

/* ── Language Toggle ─────────────────────────────────────────────────── */
.language-toggle {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 100;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn .flag-icon { font-size: 1.2rem; border-radius: 3px; }

.lang-btn.active {
  background: rgba(0, 184, 148, 0.25);
  color: white;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hover darkens slightly — no lightening */
.lang-btn:hover {
  color: white;
  background: rgba(0, 0, 0, 0.4);
}

.glass {
  background: var(--glass-bg);
  /* backdrop-filter REMOVED from here — moved to ::before to fix modal positioning */
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px;
  margin: 40px auto;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 1400px;
  width: 95%;
  transition: var(--transition-blur);
  position: relative;
  overflow: hidden;
  /* isolation: isolate keeps stacking context without affecting fixed children */
  isolation: isolate;
}

.main-container {
  max-width: 1400px;
  width: 95%;
  margin: 80px auto 40px;
  padding: 40px;
  /* No backdrop-filter, transform, or filter on main-container */
}

/* ::before now carries BOTH the blur AND the gradient animation.
   Pseudo-elements never create containing blocks for fixed children. */
.glass::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: var(--gradient-primary);
  opacity: 0.08;
  z-index: -1;
  animation: rotate 20s linear infinite;
  /* Blur lives here — safe for fixed children */
  backdrop-filter: var(--blur-intensity) saturate(160%);
  -webkit-backdrop-filter: var(--blur-intensity) saturate(160%);
}

@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hover — darkens, does not lighten */
.glass:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ── Header ──────────────────────────────────────────────────────────── */
.header {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  border-radius: 2px;
}

.header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #f0f0f0 25%, 
    #ffffff 50%, 
    #f8f8f8 75%, 
    #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 40px rgba(255, 255, 255, 0.3),
    0 0 60px rgba(255, 255, 255, 0.1);
  position: relative;
  display: inline-block;
  background-size: 200% 200%;
  animation: whiteShine 5s infinite;
}

@keyframes whiteShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header h1::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  padding: 0 20px;
}

.highlight {
  background: linear-gradient(135deg, #ff3b3b, #ff0000, #cc0000, #ff4d4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 
    0 0 20px rgba(255, 0, 0, 0.4),   /* Reduced from 0.7 to 0.4 */
    0 0 40px rgba(255, 0, 0, 0.2),   /* Reduced from 0.4 to 0.2 */
    0 0 60px rgba(255, 0, 0, 0.1);    /* Reduced from 0.2 to 0.1 */
  animation: shine 5s infinite;        /* Slower animation (5s instead of 3s) */
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ── Section Header ──────────────────────────────────────────────────── */
.section-header { text-align: center; margin: 60px 0 30px; }

.section-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
  padding: 0 20px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  padding: 0 20px;
}

/* ── ID / description helpers ────────────────────────────────────────── */
.id-obtain-section { text-align: center; margin: 40px 0; padding: 0 20px; }
.section-description { color: var(--text-secondary); margin-top: 16px; }

/* ── Apply / Action Button ───────────────────────────────────────────── */
.apply-btn {
  margin-top: 24px;
  padding: 20px 48px;
  border-radius: 20px;
  border: 1px solid var(--glass-green-border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.2rem);
  cursor: pointer;
  background: var(--glass-green);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  box-shadow:
    0 8px 32px rgba(0, 184, 148, 0.18),
    0 4px 16px rgba(0, 184, 148, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: var(--transition-blur);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.apply-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Glow ring — kept, opacity unchanged */
.apply-btn::after {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(0, 184, 148, 0.4),
    rgba(0, 214, 168, 0.6),
    rgba(0, 184, 148, 0.4));
  z-index: -1;
  border-radius: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(15px);
}

.apply-btn:hover::after { opacity: 0.6; }

/* Hover — darkens glass, slight lift kept for usability */
.apply-btn:hover {
  transform: translateY(-3px) scale(1.01);
  background: linear-gradient(135deg,
    rgba(0, 140, 108, 0.35),
    rgba(0, 170, 138, 0.45));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 184, 148, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-color: rgba(0, 184, 148, 0.5);
}

.apply-btn:active {
  transform: translateY(-1px) scale(1.0);
  transition: all 0.1s ease;
}

.apply-btn.small {
  padding: 12px 24px;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Red variant — disabled state */
.apply-btn.red-btn {
  background: var(--glass-red);
  border-color: var(--glass-red-border);
  box-shadow:
    0 8px 32px rgba(255, 59, 59, 0.18),
    0 4px 16px rgba(255, 59, 59, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

.apply-btn.red-btn::after {
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(255, 59, 59, 0.4),
    rgba(255, 99, 99, 0.6),
    rgba(255, 59, 59, 0.4));
}

.apply-btn.red-btn:hover {
  transform: none;
  box-shadow:
    0 8px 32px rgba(255, 59, 59, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ── Stream Counter ──────────────────────────────────────────────────── */
.stream-counter {
  text-align: center;
  margin: 20px auto 40px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-counter p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
}

.stream-counter span {
  font-weight: 700;
  color: #00b894;
  font-size: clamp(1rem, 3vw, 1.3rem);
}

/* .filters — backdrop-filter moved to ::before so fixed modals inside are unaffected */
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(0, 0, 0, 0.50);
  /* backdrop-filter removed — was creating containing block for fixed children */
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  isolation: isolate;
}

.filter-group { display: flex; flex-wrap: wrap; gap: 16px; }

.filter-group button,
.month-nav button,
.kin-filter {
  padding: 16px 32px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.50);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 1rem);
  cursor: pointer;
  border-radius: 16px;
  transition: var(--transition-blur);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Hover — darken */
.filter-group button:hover,
.month-nav button:hover,
.kin-filter:hover {
  background: rgba(0, 0, 0, 0.65);
  color: white;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.filter.active,
.kin-filter.active {
  background: rgba(0, 0, 0, 0.70) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

/* ── Course Cards ────────────────────────────────────────────────────── */
/* ── Course Cards ────────────────────────────────────────────────────── */
.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 16px;
  scrollbar-width: thick;
  scrollbar-color: var(--accent-red) rgba(255, 255, 255, 0.04);
  scrollbar-gutter: stable;
}

.course-cards::-webkit-scrollbar { 
  width: 16px; 
  height: 16px;
}

.course-cards::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
}

.course-cards::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-red), #cc0000);
  border-radius: 20px;
  border: 3px solid rgba(0, 0, 0, 0.7);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.25),
    0 0 12px var(--accent-red-glow);
}

.course-cards::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4d4d, #ff0000);
}

.course-card {
  padding: 25px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.55);
  /* backdrop-filter removed from .course-card — was creating a containing block
     for any position:fixed modals that are DOM children of .course-card.
     The blur effect is preserved via the page-level body::before instead. */
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
  transition: var(--transition-blur);
  cursor: pointer;
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.50),
    0 8px 25px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-blend-mode: overlay;
  isolation: isolate;
}

.course-card .button-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.course-card .register-btn { width: 100%; margin-top: 0; }

.course-card .history-btn {
  width: 100%;
  background: transparent;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  padding: 16px 20px;
  border-radius: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* History btn hover — darken bg */
.course-card .history-btn:hover {
  background: rgba(0, 184, 148, 0.85);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-green);
}

body.arabic-theme .course-card .history-btn {
  border-color: #FFD700;
  color: #FFD700;
}
body.arabic-theme .course-card .history-btn:hover {
  background: #B8A000;
  color: #fff;
  border-color: #B8A000;
}

.course-card .accent-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 10%,
    rgba(0, 184, 148, 0.7) 50%,
    transparent 90%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.course-card:hover .accent-top { transform: scaleX(1); }

/* Card hover — darken */
.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(0, 0, 0, 0.70);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.65),
    0 20px 50px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.course-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
  z-index: 5;
}

.course-card .event-date {
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 6px;
  position: relative;
  z-index: 5;
  font-size: 1rem;
}

.course-card .event-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 5;
}

.course-card .price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: white;
  margin: 15px 0;
  position: relative;
  z-index: 5;
}

.course-card .status {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50px;
  font-size: 0.85rem;
  margin: 10px 0 20px;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Tickets Sold Out ────────────────────────────────────────────────── */
.tickets-sold-out {
  text-align: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  margin: 30px 0;
  border: 2px solid var(--accent-red);
}

.sold-out-badge {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent-red);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 5vw, 2rem);
  border-radius: 50px;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.9; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Affiliate Section ───────────────────────────────────────────────── */
.affiliate-section {
  text-align: center;
  padding: 60px 40px;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.55);
  /* backdrop-filter removed from element — safe for fixed children */
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 60px auto;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  width: 95%;
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.affiliate-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ── Championship Cards ──────────────────────────────────────────────── */
.championship-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.championship-card {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--championship-border);
  box-shadow: 0 10px 30px rgba(122, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.championship-card .championship-bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1;
  border-radius: 24px;
}

.championship-card .championship-content {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
}

#spring-campaign-card  { background-image: url('../Images/AncientFitWebLogos/ChampRigConfirm.png'); }
#autumn-campaign-card  { background-image: url('../Images/AncientFitWebLogos/ChampRigConfirm.png'); }

/* Championship hover — darken */
.championship-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-color: #900000;
}

.championship-card h3 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 20px; color: white; }
.championship-date   { font-size: clamp(1rem, 3vw, 1.2rem); margin-bottom: 10px; color: #ccc; }
.championship-location { color: #aaa; margin-bottom: 20px; }
.championship-fee    { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; margin: 20px 0; color: #fff; }

.championship-apply-btn {
  background: var(--championship-btn-bg);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(122, 0, 0, 0.3);
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  display: block;
}

.championship-apply-btn:hover {
  background: var(--championship-btn-hover);
  transform: scale(1.04);
  box-shadow: 0 8px 25px rgba(122, 0, 0, 0.5);
}

/* ============================
   Ticket Card Background Images - 30% Visible
   ADD THIS RIGHT HERE - AFTER championship section
============================ */

.ticket-card {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    isolation: isolate;
}

/* Add a dark overlay to control visibility */
.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* 70% dark overlay = 30% image visible */
    z-index: 0;
    border-radius: 28px;
    pointer-events: none;
}

/* Ensure content stays above the overlay */
.ticket-card > * {
    position: relative;
    z-index: 1;
}

/* Individual ticket card background images */
.ticket-card[data-ticket="general"] {
    background-image: url('../Images/Event/TicketCardBG.png');
}

.ticket-card[data-ticket="reserved"] {
    background-image: url('../Images/Event/TicketCardBG.png');
}

.ticket-card[data-ticket="vip"] {
    background-image: url('../Images/Event/TicketCardBG.png');
}

.ticket-card[data-ticket="family"] {
    background-image: url('../Images/Event/TicketCardBG.png');
}
/* ── Results / Ledger ────────────────────────────────────────────────── */
.results-check-section { text-align: center; margin: 40px 0; padding: 0 20px; }

.ledger-section { margin: 60px 0; text-align: center; padding: 40px 20px; }

.ledger-chain-container {
  position: relative;
  margin-top: 30px;
  overflow-x: auto;
  padding: 20px 0;
}

/* Ledger scrollbar - thick and red */
.ledger-chain-container::-webkit-scrollbar {
  height: 16px !important;  /* Thick scrollbar */
  background: transparent;
}

.ledger-chain-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  margin: 0 20px;
}

.ledger-chain-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-red), #cc0000);
  border-radius: 20px;
  border: 3px solid rgba(0, 0, 0, 0.7);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.25),
    0 0 12px var(--accent-red-glow);
}

.ledger-chain-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4d4d, #ff0000);
}

/* Firefox support */
.ledger-chain-container {
  scrollbar-width: thick;
  scrollbar-color: var(--accent-red) rgba(255, 255, 255, 0.04);
}

.ledger-chain {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  min-width: min-content;
  padding: 0 20px 10px 20px;
}

.ledger-item {
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--accent-green);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 280px;
  transition: all 0.3s ease;
}

.ledger-item.tampered {
  border-color: var(--accent-red);
  color: #ff7675;
  background: rgba(255, 59, 59, 0.15);
}

.ledger-item.tampered .chain-link { color: #ff7675; }

.ledger-item::after {
  content: '→';
  position: absolute;
  right: -20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
  z-index: 10;
}
.ledger-item:last-child::after { display: none; }
body[dir="rtl"] .ledger-item::after { content: '←'; right: auto; left: -20px; }

.ledger-item .dedication {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  font-style: italic;
  font-family: 'Inter', sans-serif;
}

.ledger-item .chain-link {
  font-size: 0.7rem;
  color: rgba(0, 184, 148, 0.6);
  margin-top: 4px;
  cursor: help;
}
.ledger-item:hover .chain-link { color: rgba(0, 184, 148, 1); }

.chain-verification { margin-top: 20px; }

.verification-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}
.verification-badge.verified {
  background: rgba(0, 184, 148, 0.15);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}
.verification-badge.tampered {
  background: rgba(255, 59, 59, 0.15);
  color: #ff7675;
  border: 1px solid var(--accent-red);
}

/* ── Hall of Kin ─────────────────────────────────────────────────────── */
.kin-hall { text-align: center; margin: 60px 0; padding: 40px 20px; }

.kin-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.kin-leaderboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.kin-entry {
  padding: 20px;
  background: rgba(0, 0, 0, 0.50);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}

/* Kin entry hover — darken */
.kin-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-green);
  background: rgba(0, 0, 0, 0.65);
}

.kin-entry .rank {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.kin-entry .id { font-family: monospace; margin: 8px 0; color: var(--text-secondary); word-break: break-all; }
.kin-entry .score { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }

.kin-entry .messenger-badge {
  background: var(--glass-gold);
  color: #000;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #FFD700;
}

.kin-entry .messenger-message {
  margin: 10px 0;
  padding: 10px;
  background: rgba(255, 215, 0, 0.08);
  border-radius: 12px;
  font-size: 0.9rem;
  font-style: italic;
  border-left: 3px solid #FFD700;
}
body[dir="rtl"] .kin-entry .messenger-message { border-left: none; border-right: 3px solid #FFD700; }

.kin-entry .find-kin-btn {
  background: transparent;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  width: 100%;
}
.kin-entry .find-kin-btn:hover {
  background: rgba(0, 184, 148, 0.85);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL SYSTEM — positioning logic fully preserved from original
   Only visual glass values updated
   ═══════════════════════════════════════════════════════════════════ */
.modal {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  width: 100vw !important; height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 999999;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box;
  overflow: hidden;
  transform: none !important;
  -webkit-transform: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: auto;
}

.modal:not(.hidden) { display: flex !important; }

.modal-content {
  width: 90%;
  max-width: 600px;
  max-height: 85vh !important;
  background: rgba(12, 16, 22, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  color: white;
  position: relative !important;
  margin: 0 auto !important;
  animation: modalFadeIn 0.3s ease;
  overflow-y: auto !important;
  overflow-x: hidden;
  transform: none !important;
  -webkit-transform: none !important;
  top: auto !important; left: auto !important;
  right: auto !important; bottom: auto !important;
}

.modal-content.results-display-content { max-width: 900px; }

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

/* Prevent body scrolling when modal open */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
}

/* Modal scrollbar */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Close button */
.close {
  position: sticky;
  top: 0;
  float: right;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10;
  margin-bottom: 10px;
  border: none;
  flex-shrink: 0;
}

/* Close hover — darken */
.close:hover {
  background: rgba(0, 0, 0, 0.70);
  color: white;
  transform: rotate(90deg);
}

/* ── Modal Form Inputs ───────────────────────────────────────────────── */
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.40);
  color: white;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
}

.modal input::placeholder,
.modal textarea::placeholder { color: rgba(255, 255, 255, 0.45); }

.modal input:read-only {
  background: rgba(0, 0, 0, 0.50);
  cursor: not-allowed;
  opacity: 0.75;
}

.modal label { display: block; margin-bottom: 8px; color: var(--text-secondary); }

/* Validation */
.input-with-validation { position: relative; margin-bottom: 24px; }
.validation-hint {
  position: absolute;
  bottom: -20px; left: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Phone input */
.phone-input-container { position: relative; }
.iti { width: 100%; margin-bottom: 24px; }
.iti__country-list {
  background: rgba(8, 12, 20, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  max-height: 300px;
}
.iti__country { color: white; padding: 10px; }
.iti__country:hover { background: rgba(255, 255, 255, 0.08); }
.iti__country.iti__highlight { background: rgba(0, 184, 148, 0.25); }
.iti__country-name, .iti__dial-code { color: black; }
.iti__divider { border-bottom-color: rgba(255, 255, 255, 0.08); }

/* Date input */
.date-input { color-scheme: dark; }
.date-input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.65; cursor: pointer; }
.date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.help-text { margin-top: -16px; margin-bottom: 24px; }
.help-text a { color: var(--accent-green); text-decoration: none; }
.help-text a:hover { text-decoration: underline; }

/* ── Nationality Selector ────────────────────────────────────────────── */
.nationality-selector {
  margin: 20px 0 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.40);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nationality-selector label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.nationality-select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nationality-select:hover {
  background-color: rgba(0, 0, 0, 0.68);
  border-color: rgba(0, 184, 148, 0.25);
}

.nationality-select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.15);
  background-color: rgba(0, 0, 0, 0.65);
}

.nationality-select option { background: #0c1420; color: white; padding: 12px; font-size: 0.95rem; }
.nationality-select option:checked { background: var(--accent-green); color: white; }

/* Nationality flag */
.nationality-flag {
  font-size: 2em;
  margin-right: 12px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  animation: slideInFlag 0.5s ease-out;
}

@keyframes slideInFlag {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes flagPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

body[dir="rtl"] .nationality-flag { margin-right: 0; margin-left: 12px; animation: slideInFlag 0.5s ease-out; }

#resultsDisplayId {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(0, 184, 148, 0.10);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(0, 184, 148, 0.18);
  margin-left: 4px;
}
body[dir="rtl"] #resultsDisplayId { margin-left: 0; margin-right: 4px; }

.kin-entry .nationality-flag { font-size: 1.2em; margin-right: 6px; vertical-align: middle; }
body[dir="rtl"] .kin-entry .nationality-flag { margin-right: 0; margin-left: 6px; }

.results-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.40);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.athlete-name-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 10px;
  padding: 8px 20px;
  background: linear-gradient(135deg,
    rgba(0, 184, 148, 0.15),
    rgba(0, 214, 168, 0.08));
  border-radius: 50px;
  display: inline-block;
  border: 1px solid rgba(0, 184, 148, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
body[dir="rtl"] .athlete-name-badge { letter-spacing: 0; }

/* ── Template / Wrist / ID / Barcode ────────────────────────────────── */
.template-assessment { margin: 20px 0; }
.wrist-guide { margin: 30px 0; }

.wrist-image-placeholder {
  height: 200px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
}

.wrist-demo { text-align: center; padding: 20px; }

.wrist-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.wrist-result {
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  text-align: center;
}
.wrist-result h4 { color: var(--accent-green); margin-bottom: 10px; }

.id-display {
  text-align: center;
  margin: 30px 0;
  padding: 30px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.id-label { color: var(--text-secondary); margin-bottom: 10px; }
.id-value {
  font-family: monospace;
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 2px;
  word-break: break-all;
}

.barcode-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  padding: 30px;
  background: white;
  border-radius: 16px;
}
.barcode-container canvas { max-width: 100%; height: auto; }

.barcode-download {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
.id-email-note { text-align: center; color: var(--text-secondary); font-style: italic; }

/* ── Dedication ──────────────────────────────────────────────────────── */
.dedication-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 184, 148, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(0, 184, 148, 0.18);
}
.dedication-section h3 { margin-bottom: 8px; color: var(--accent-green); }
.dedication-subtitle { margin-bottom: 20px; font-size: 0.9rem; color: var(--text-secondary); }
.dedication-options { display: grid; gap: 12px; margin-bottom: 16px; }
.dedication-option { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dedication-option input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-green); }
.dedication-option label { margin: 0; font-size: 0.95rem; }
.dedication-name-field { margin-top: 16px; }

/* ── Payment Options ─────────────────────────────────────────────────── */
.payment-options { margin: 40px 0 32px; }
.payment-header { text-align: center; margin-bottom: 30px; }
.payment-header h3 { font-size: 1.5rem; margin-bottom: 8px; }
.fee-description { color: var(--accent-green); font-weight: 600; }

.pay-btn {
  position: relative;
  padding: 20px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  color: white;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  margin-bottom: 16px;
}

.pay-btn.stripe {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.20), rgba(75, 68, 255, 0.12));
  border-color: rgba(99, 91, 255, 0.25);
}
.pay-btn.paypal {
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.20), rgba(0, 156, 222, 0.12));
  border-color: rgba(0, 48, 135, 0.25);
}
.pay-btn.egypt {
  background: linear-gradient(135deg, rgba(10, 124, 255, 0.20), rgba(0, 75, 189, 0.12));
  border-color: rgba(10, 124, 255, 0.25);
}

/* Pay btn hover — darken */
.pay-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  filter: brightness(0.88);
}

.payment-note {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.40);
  border-radius: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Agreement ───────────────────────────────────────────────────────── */
.agreement-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.agreement-section h4 { margin-bottom: 16px; color: white; }

.agreement-content {
  max-height: 200px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.40);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.agreement-content ul { margin-left: 20px; margin-top: 10px; }
.agreement-content li { margin-bottom: 8px; }

.agreement-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 20px 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  flex-wrap: wrap;
}
.agreement-checkbox input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-green); }
.agreement-checkbox label { flex: 1; font-size: 0.95rem; line-height: 1.5; }

/* ── Qualification Badge ─────────────────────────────────────────────── */
.qualification-badge {
  padding: 16px;
  background: rgba(0, 184, 148, 0.15);
  border: 1px solid var(--accent-green);
  border-radius: 12px;
  margin: 20px 0;
  text-align: center;
  font-weight: 600;
  color: var(--accent-green);
}

/* ── Results Table ───────────────────────────────────────────────────── */
.results-table-container { overflow-x: auto; margin: 30px 0; }

.results-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  min-width: 600px;
}
.results-table th {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-weight: 600;
}
body[dir="rtl"] .results-table th { text-align: right; }
.results-table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.results-table tr:hover { background: rgba(0, 0, 0, 0.30); }
.qualified-yes { color: var(--accent-green); font-weight: 600; }
.qualified-no  { color: #ff7675; }

/* ── Stream Timeline ─────────────────────────────────────────────────── */
.stream-timeline-container {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  text-align: center;
  overflow-x: auto;
}
.stream-timeline-container h3 { margin-bottom: 20px; color: var(--accent-green); }
#streamTimelineCanvas {
  width: 100%; height: auto;
  max-width: 800px; min-width: 600px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.30);
  margin: 0 auto;
  display: block;
}
.timeline-caption { margin-top: 12px; font-size: 0.9rem; color: var(--text-secondary); }

/* ── Summary Stats ───────────────────────────────────────────────────── */
.summary-stats {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.stat-item { text-align: center; }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 4px; }
.stat-value { font-size: 1.3rem; font-weight: 700; color: var(--accent-green); }

/* ── Template Insights ───────────────────────────────────────────────── */
.template-insights {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 184, 148, 0.08);
  border-radius: 16px;
  border-left: 4px solid var(--accent-green);
}
body[dir="rtl"] .template-insights { border-left: none; border-right: 4px solid var(--accent-green); }
.template-insights h4 { margin-bottom: 16px; color: white; }

/* ── Ticket Summary ──────────────────────────────────────────────────── */
.ticket-summary {
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  margin-bottom: 24px;
  text-align: center;
}
.ticket-summary h3 { color: var(--accent-green); margin-bottom: 8px; }

/* ── Digital Collectible ─────────────────────────────────────────────── */
.collectible-preview { margin: 20px 0; text-align: center; }

.collectible-card {
  background: linear-gradient(135deg, #111a24, #080f18);
  border: 2px solid var(--accent-green);
  border-radius: 16px;
  padding: 20px;
  max-width: 300px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 184, 148, 0.2);
  position: relative;
  overflow: hidden;
}
.collectible-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.07), transparent 70%);
  animation: rotate 20s linear infinite;
}
.collectible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.collectible-title  { color: var(--accent-green); font-size: 1.2rem; }
.collectible-year   { color: white; font-size: 1.2rem; }
.collectible-body {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.collectible-icon { font-size: 3rem; }
.collectible-details  { text-align: left; }
body[dir="rtl"] .collectible-details { text-align: right; }
.collectible-campaign { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.collectible-witness  { color: var(--text-secondary); font-size: 0.9rem; }
.collectible-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}
.collectible-note    { margin-top: 12px; font-size: 0.85rem; color: var(--text-secondary); }
.collectible-card-receipt {
  background: linear-gradient(135deg, #111a24, #080f18);
  border: 2px solid var(--accent-green);
  border-radius: 16px;
  padding: 20px;
  max-width: 300px;
  margin: 20px auto;
}
.collectible-download { margin-top: 16px; }

/* ── Matchmaking ─────────────────────────────────────────────────────── */
.matchmaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.matchmaking-card {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.matchmaking-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-green);
  background: rgba(0, 0, 0, 0.60);
}
.matchmaking-card .athlete-id { font-family: monospace; color: var(--accent-green); margin-bottom: 10px; word-break: break-all; }
.matchmaking-card .athlete-score { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.matchmaking-card .athlete-details { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; }
.matchmaking-card .connect-btn {
  background: transparent;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
.matchmaking-card .connect-btn:hover {
  background: rgba(0, 184, 148, 0.85);
  color: white;
}

/* ── Payment Success ─────────────────────────────────────────────────── */
.payment-success-icon {
  width: 80px; height: 80px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 30px auto;
  color: white;
}
.payment-details { margin: 30px 0; padding: 20px; background: rgba(0, 0, 0, 0.45); border-radius: 16px; }

/* ── Error Modal ─────────────────────────────────────────────────────── */
.error-content { border-left: 4px solid #ff7675; }
body[dir="rtl"] .error-content { border-left: none; border-right: 4px solid #ff7675; }
.error-message { padding: 20px; text-align: center; font-size: 1.1rem; margin: 20px 0; }

/* ── Not Qualified ───────────────────────────────────────────────────── */
.not-qualified-icon { font-size: 80px; text-align: center; margin: 20px 0; opacity: 0.5; }
.current-scores { margin: 20px 0; padding: 20px; background: rgba(0, 0, 0, 0.45); border-radius: 16px; }
.current-scores h4 { margin-bottom: 12px; color: var(--accent-green); }
.current-scores ul { list-style: none; padding: 0; }
.current-scores li {
  padding: 8px; margin: 4px 0;
  background: rgba(0, 0, 0, 0.30);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.suggested-events { margin: 30px 0; padding: 20px; background: rgba(0, 184, 148, 0.08); border-radius: 16px; }
.suggested-events h4 { margin-bottom: 16px; color: var(--accent-green); }
.suggested-list { display: grid; gap: 12px; }
.suggested-event-item {
  padding: 12px;
  background: rgba(0, 0, 0, 0.40);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.suggested-event-info h5 { margin-bottom: 4px; }
.suggested-event-info p { font-size: 0.85rem; color: var(--text-secondary); }
.suggested-event-btn {
  background: transparent;
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.suggested-event-btn:hover { background: rgba(0, 184, 148, 0.85); color: white; }

.not-qualified-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ── Confirmation ────────────────────────────────────────────────────── */
.confirmation-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}
.confirmation-buttons .apply-btn { min-width: 120px; }

/* ── Living History ──────────────────────────────────────────────────── */
.living-history-content { margin: 20px 0; line-height: 1.8; }
.living-history-content h3 { color: var(--accent-green); margin: 20px 0 10px; }
.living-history-content .historical-fact {
  background: rgba(0, 0, 0, 0.40);
  padding: 16px;
  border-radius: 12px;
  margin: 10px 0;
  border-left: 3px solid var(--accent-green);
}
body[dir="rtl"] .living-history-content .historical-fact { border-left: none; border-right: 3px solid var(--accent-green); }

/* ── Utilities ───────────────────────────────────────────────────────── */
.hidden { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .glass { padding: 30px; }
  .main-container { padding: 30px; }
}

@media (max-width: 992px) {
  .filters { flex-direction: column; align-items: stretch; }
  .filter-group { justify-content: center; }
}

@media (max-width: 768px) {
  .glass { padding: 20px; margin: 15px auto; border-radius: 24px; }
  .main-container { padding: 20px; margin: 60px auto 20px; }
  .header { padding: 30px 0 20px; }
  .header h1 { font-size: 2.2rem; }
  .course-cards { 
    grid-template-columns: 1fr; 
    max-height: 60vh; 
    overflow-y: auto; 
    overflow-x: hidden;
    padding-right: 12px; 
    margin: 20px 0; 
    -webkit-overflow-scrolling: touch;
  }
    /* Ticket cards mobile scrolling */
  #ticketCards.course-cards {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 12px;
    margin-top: 20px;
  }
  .ledger-section, .kin-hall, .affiliate-section { margin: 30px 0; padding: 30px 15px; width: 100%; }
  .ledger-chain { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .ledger-item { min-width: 250px; width: 100%; margin-bottom: 10px; }
  .ledger-item::after { display: none; }
  .kin-leaderboard { grid-template-columns: 1fr; gap: 15px; }
  .kin-entry { padding: 15px; }
  .championship-cards { grid-template-columns: 1fr; gap: 20px; }
  .championship-card { min-height: 350px; }
  .championship-content { padding: 20px 15px !important; }
  .championship-apply-btn { max-width: 200px; padding: 12px 20px; }
  .filters { padding: 20px; margin-bottom: 30px; }
  .filter-group { width: 100%; }
  .filter-group button { flex: 1 1 auto; padding: 12px 16px; font-size: 0.85rem; }
  .modal-content { padding: 30px 20px; max-width: 95%; }
  .barcode-download { flex-direction: column; gap: 10px; }
  .barcode-download .apply-btn { width: 100%; margin: 0; }
  .language-toggle { top: 10px; right: 10px; }
  .lang-btn { padding: 6px 10px; font-size: 0.75rem; }
  .results-table-container { margin: 20px -10px; padding: 0 10px; }
  .results-table { min-width: 500px; }
  .suggested-event-item { flex-direction: column; align-items: flex-start; padding: 15px; }
  .suggested-event-btn { width: 100%; margin-top: 10px; }
  .not-qualified-buttons { flex-direction: column; gap: 10px; }
  .not-qualified-buttons .apply-btn { width: 100%; margin: 0; }
  .collectible-card { max-width: 100%; padding: 15px; }
  .collectible-body { flex-direction: column; text-align: center; gap: 10px; }
  .collectible-details { text-align: center; }
  .dedication-options { grid-template-columns: 1fr; }
  .agreement-checkbox { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nationality-flag { font-size: 1.6em; margin-right: 8px; }
  #resultsDisplayId { font-size: 1.1rem; padding: 6px 12px; }
  .nationality-selector { padding: 15px; }
  .nationality-select { padding: 14px 16px; font-size: 0.95rem; background-position: right 12px center; }
}

@media (max-width: 480px) {
  .glass { padding: 15px; margin: 10px auto; }
  .header h1 { font-size: 1.8rem; }
  .tagline { font-size: 0.9rem; padding: 0 10px; }
  .apply-btn { padding: 12px 20px; font-size: 0.9rem; white-space: normal; }
  .filter-group { flex-direction: column; gap: 8px; }
  .filter-group button { width: 100%; padding: 10px; }
  .course-card { padding: 15px; min-height: 350px; }
  .course-card h3 { font-size: 1.2rem; }
  .course-card .price { font-size: 1.5rem; }
  .course-card .button-container { gap: 8px; }
  .course-card .register-btn, .course-card .history-btn { padding: 12px 15px; font-size: 0.9rem; }
  .championship-card { min-height: 300px; }
  .championship-card h3 { font-size: 1.3rem; }
  .championship-fee { font-size: 1.5rem; }
  .championship-apply-btn { max-width: 180px; padding: 10px 15px; font-size: 0.8rem; }
  .ledger-item { min-width: 200px; padding: 15px; font-size: 0.8rem; }
  .kin-entry .rank { font-size: 1rem; }
  .kin-entry .score { font-size: 1.2rem; }
  .modal-content { padding: 20px 15px; }
  .modal h2 { font-size: 1.3rem; }
  .modal input, .modal select { padding: 12px; font-size: 0.9rem; }
  .pay-btn { padding: 15px 20px; font-size: 0.9rem; }
  .summary-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value { font-size: 1.1rem; }
  .stream-timeline-container { padding: 10px; }
  #streamTimelineCanvas { min-width: 400px; }
  .verification-badge { font-size: 0.8rem; padding: 6px 12px; }
  .nationality-flag { font-size: 1.4em; display: block; margin: 0 auto 8px; text-align: center; }
  #resultsDisplayId { display: block; text-align: center; margin: 0 auto; font-size: 1rem; }
  .nationality-selector { padding: 12px; }
  .nationality-selector label { font-size: 0.85rem; margin-bottom: 8px; }
  .nationality-select { padding: 12px; font-size: 0.9rem; }
}

/* ── Feature detection / hardware ───────────────────────────────────── */
/*
   IMPORTANT: .glass and .course-card are intentionally excluded here.
   Adding backdrop-filter back to them (even via @supports) would
   re-introduce the modal positioning bug described above.
   Only elements that can NEVER be ancestors of modals in the DOM
   should have backdrop-filter applied directly.
*/
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .modal-content,
  .apply-btn,
  .filter-group button {
    -webkit-backdrop-filter: var(--blur-intensity) saturate(160%);
    backdrop-filter: var(--blur-intensity) saturate(160%);
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .modal-content { max-height: 85vh; }
  .course-cards  { max-height: 50vh; }
}

/* ── Firefox dropdown arrow fix ─────────────────────────────────────── */
@-moz-document url-prefix() {
  .nationality-select { background-image: none; padding-right: 40px; }
  .nationality-select::-moz-focus-inner { border: none; }
}

/* ── iOS fix ─────────────────────────────────────────────────────────── */
@supports (-webkit-touch-callout: none) {
  body.modal-open { position: fixed !important; width: 100% !important; height: 100% !important; }
  .modal-content  { max-height: -webkit-fill-available !important; }
}

/* ============================
   SHARE MODAL - Dark Glassy Style
   Add this after your share button CSS
============================ */

/* Modal backdrop */
.share-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    animation: modalFadeIn 0.3s ease !important;
}

/* Modal content container - glassy dark red theme */
.share-modal .share-modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--blur-intensity) saturate(160%) !important;
    -webkit-backdrop-filter: var(--blur-intensity) saturate(160%) !important;
    border: 1px solid var(--glass-red-border) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    max-width: 600px !important;
    width: 90% !important;
    text-align: center !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 59, 59, 0.1) inset !important;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 1000000 !important;
}

/* Modal header */
.share-modal .share-modal-content h3 {
    margin-top: 0 !important;
    color: var(--accent-red) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    letter-spacing: 1px !important;
    text-shadow: 0 2px 10px var(--accent-red-glow) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.share-modal .share-modal-content h3 i {
    color: var(--accent-red) !important;
    filter: drop-shadow(0 2px 5px var(--accent-red-glow)) !important;
}

/* Modal paragraph text */
.share-modal .share-modal-content p {
    color: var(--text-white) !important;
    margin-bottom: 25px !important;
    font-size: 16px !important;
}

.share-modal .share-modal-content p small {
    color: var(--text-secondary) !important;
    font-size: 14px !important;
}

/* Share platforms grid */
.share-platforms {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
}

/* Platform buttons - glassy style */
.share-platform-btn {
    background: rgba(255, 59, 59, 0.15) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 59, 59, 0.3) !important;
    color: white !important;
    padding: 12px 8px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    min-height: 90px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Individual platform colors (preserved but with glassy overlay) */
.share-platform-btn.whatsapp { background: rgba(37, 211, 102, 0.25) !important; border-color: rgba(37, 211, 102, 0.5) !important; }
.share-platform-btn.telegram { background: rgba(0, 136, 204, 0.25) !important; border-color: rgba(0, 136, 204, 0.5) !important; }
.share-platform-btn.facebook { background: rgba(24, 119, 242, 0.25) !important; border-color: rgba(24, 119, 242, 0.5) !important; }
.share-platform-btn.twitter { background: rgba(0, 0, 0, 0.4) !important; border-color: rgba(255, 255, 255, 0.3) !important; }
.share-platform-btn.threads { background: rgba(0, 0, 0, 0.4) !important; border-color: rgba(255, 255, 255, 0.3) !important; }
.share-platform-btn.bluesky { background: rgba(0, 133, 255, 0.25) !important; border-color: rgba(0, 133, 255, 0.5) !important; }
.share-platform-btn.reddit { background: rgba(255, 87, 0, 0.25) !important; border-color: rgba(255, 87, 0, 0.5) !important; }
.share-platform-btn.linkedin { background: rgba(0, 119, 181, 0.25) !important; border-color: rgba(0, 119, 181, 0.5) !important; }
.share-platform-btn.email { background: rgba(234, 67, 53, 0.25) !important; border-color: rgba(234, 67, 53, 0.5) !important; }

/* Shine effect on platform buttons */
.share-platform-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    ) !important;
    transition: left 0.5s ease !important;
    z-index: 0 !important;
}

.share-platform-btn:hover::before {
    left: 100% !important;
}

.share-platform-btn span,
.share-platform-btn i,
.share-platform-btn svg {
    position: relative !important;
    z-index: 1 !important;
}

.share-platform-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    filter: brightness(1.2) !important;
    box-shadow: 0 8px 20px rgba(255, 59, 59, 0.4) !important;
}

.share-platform-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Copy link section */
.copy-link-section {
    margin-bottom: 25px !important;
}

.copy-link-section > div {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

#shareLinkInput {
    flex: 1 !important;
    padding: 12px 15px !important;
    border: 1px solid rgba(255, 59, 59, 0.3) !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: var(--text-white) !important;
    font-size: 14px !important;
    font-family: 'Inter', monospace !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    transition: all 0.3s ease !important;
}

#shareLinkInput:focus {
    outline: none !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 2px var(--accent-red-glow) !important;
}

/* Copy button */
#copyLinkBtn {
    background: var(--glass-red) !important;
    border: 1px solid var(--glass-red-border) !important;
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    position: relative !important;
    overflow: hidden !important;
}

#copyLinkBtn:hover {
    background: rgba(255, 59, 59, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px var(--accent-red-glow) !important;
}

#copyLinkBtn:active {
    transform: translateY(0) !important;
}

#copyLinkBtn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Copy link small text */
.copy-link-section small {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
}

.copy-link-section small i {
    color: var(--accent-red) !important;
}

/* Close button */
#closeShareModal {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 59, 59, 0.3) !important;
    color: var(--text-white) !important;
    padding: 12px 35px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

#closeShareModal:hover {
    background: rgba(255, 59, 59, 0.2) !important;
    border-color: var(--accent-red) !important;
    transform: translateY(-2px) !important;
}

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .share-platforms {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .share-modal .share-modal-content {
        padding: 20px !important;
        width: 95% !important;
    }
    
    .copy-link-section > div {
        flex-direction: column !important;
    }
    
    #copyLinkBtn {
        width: 100% !important;
    }
}

/* Dark mode enhancement */
@media (prefers-color-scheme: dark) {
    .share-modal {
        background: rgba(0, 0, 0, 0.85) !important;
    }
}

/* ============================
   SHARE BUTTON - Force red for parade cards
   Add this after your existing share button CSS
============================ */

/* Force override the inline styles on parade cards */
.course-card .share-btn {
    background: rgba(255, 42, 42, 0.15) !important;
    border: 1px solid rgba(255, 42, 42, 0.4) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: 0 4px 15px rgba(255, 42, 42, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-left: 10px !important;
}

/* Override the inline styles on hover */
.course-card .share-btn:hover {
    background: rgba(255, 42, 42, 0.3) !important;
    border-color: rgba(255, 42, 42, 0.8) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 42, 42, 0.5) !important;
}

/* Icon styling */
.course-card .share-btn i {
    font-size: 16px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transition: transform 0.3s ease !important;
}

.course-card .share-btn:hover i {
    transform: rotate(10deg) !important;
}

/* Shine effect */
.course-card .share-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    ) !important;
    transition: left 0.5s ease !important;
    z-index: -1 !important;
}

.course-card .share-btn:hover::before {
    left: 100% !important;
}

/* Glowing effect */
.course-card .share-btn::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, 
        rgba(255, 42, 42, 0.5), 
        rgba(255, 100, 100, 0.3), 
        rgba(255, 42, 42, 0.5)
    ) !important;
    border-radius: 50% !important;
    z-index: -2 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.course-card .share-btn:hover::after {
    opacity: 1 !important;
    animation: rotate 2s linear infinite !important;
}

/* Animation for the glowing effect */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================
   SHARE BUTTON - Championship & Ticket Specific
   Add this after your existing share-btn styles
============================ */

/* Ensure championship share buttons get the same styles */
.championship-card .share-btn,
.ticket-card .share-btn {
    background: rgba(255, 42, 42, 0.15) !important;
    border: 1px solid rgba(255, 42, 42, 0.4) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: white !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: 0 4px 15px rgba(255, 42, 42, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 10 !important;
    margin-left: 10px !important;
}

/* Hover effects for championship and ticket share buttons */
.championship-card .share-btn:hover,
.ticket-card .share-btn:hover {
    background: rgba(255, 42, 42, 0.3) !important;
    border-color: rgba(255, 42, 42, 0.8) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 42, 42, 0.5) !important;
}

/* Icon styling */
.championship-card .share-btn i,
.ticket-card .share-btn i {
    font-size: 18px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transition: transform 0.3s ease !important;
}

.championship-card .share-btn:hover i,
.ticket-card .share-btn:hover i {
    transform: rotate(10deg) !important;
}

/* Shine effect */
.championship-card .share-btn::before,
.ticket-card .share-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    ) !important;
    transition: left 0.5s ease !important;
    z-index: -1 !important;
}

.championship-card .share-btn:hover::before,
.ticket-card .share-btn:hover::before {
    left: 100% !important;
}

/* Glowing effect */
.championship-card .share-btn::after,
.ticket-card .share-btn::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, 
        rgba(255, 42, 42, 0.5), 
        rgba(255, 100, 100, 0.3), 
        rgba(255, 42, 42, 0.5)
    ) !important;
    border-radius: 50% !important;
    z-index: -2 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.championship-card .share-btn:hover::after,
.ticket-card .share-btn:hover::after {
    opacity: 1 !important;
    animation: rotate 2s linear infinite !important;
}

/* Make sure the buttons are positioned correctly in their containers */
.championship-card .championship-content > div:first-child,
.ticket-card > div:first-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* Ensure the title doesn't get pushed */
.championship-card h3,
.ticket-card h3 {
    margin: 0 !important;
    flex: 1 !important;
}

