/* ============================================================
   Doon Camogie Club — style.css
   Aesthetic: Irish GAA Editorial — bold crimson, clean white,
              gold accents for home fixtures, serif display type
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900;1,9..144,700;1,9..144,900&family=Nunito:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand */
  --red:       #c0111f;
  --red-dark:  #8f0116;
  --red-deeper:#5a000d;
  --red-light: #e84050;
  --red-pale:  #fff0f1;
  --red-tint:  rgba(192,17,31,0.08);

  /* Navy — away jersey accent */
  --navy:      #252955;
  --navy-dark: #1a1d3d;
  --navy-light: #3a3e70;
  --navy-pale: #eeeef6;
  --navy-tint: rgba(37,41,85,0.08);
  --shadow-navy: 0 4px 24px rgba(37,41,85,0.25);

  /* Gold — home fixture accent only */
  --gold:      #f5a623;
  --gold-dark: #d4880a;
  --gold-pale: #fef6e4;

  /* Neutral */
  --white:     #ffffff;
  --off-white: #fafaf8;
  --gray-50:   #f5f5f4;
  --gray-100:  #e7e5e4;
  --gray-200:  #d6d3d1;
  --gray-400:  #a8a29e;
  --gray-500:  #79716b;
  --gray-700:  #44403c;
  --gray-900:  #1c1917;
  --ink:       #111110;

  /* Dark panel for scoreboard/coach */
  --dark:      #12050a;
  --dark-mid:  #1f0a10;
  --dark-card: #2a0d14;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow:    0 4px 16px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.10);
  --shadow-red: 0 4px 24px rgba(192,17,31,0.35);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.2s var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,17,31,0.12);
}
ul, ol { list-style: none; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (min-width: 640px) { .container { padding: 0 var(--space-8); } }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--red);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-4); }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  padding: var(--space-4) 0;
}
.site-nav.scrolled {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--navy-dark) 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: var(--space-3) 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (min-width: 640px) { .nav-inner { padding: 0 var(--space-8); } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-logo-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.4));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.nav-links {
  display: none;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(255,255,255,0.6));
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: white; }
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-admin-link {
  display: none;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
  text-decoration: none;
}
@media (min-width: 768px) { .nav-admin-link { display: flex; } }
.nav-admin-link:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  color: white;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, var(--red-dark) 0%, var(--navy-dark) 100%);
  padding: var(--space-4) var(--space-5);
  gap: var(--space-1);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 600;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
}
.nav-mobile-menu a:last-child { border-bottom: none; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.section-hero {
  min-height: 100svh;
  background: linear-gradient(175deg, var(--navy-dark) 0%, #12040a 20%, #2a0a15 40%, var(--red-dark) 55%, var(--navy) 80%, #080204 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(80px + var(--space-12)) var(--space-5) calc(var(--space-8) + 60px);
}
/* Curved wave at bottom of hero → fixtures */
.section-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 L0,40 Q360,0 720,40 Q1080,80 1440,40 L1440,80 Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 L0,40 Q360,0 720,40 Q1080,80 1440,40 L1440,80 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 3;
}

/* Noise texture overlay */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

/* Central light burst — stadium floodlight effect */
.hero-bg-light {
  position: absolute;
  top: 5%; left: 50%;
  transform: translateX(-50%);
  width: min(950px, 150vw);
  height: 75vh;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(192,17,31,0.45) 0%, transparent 55%),
    radial-gradient(circle at 50% 30%, rgba(245,166,35,0.08) 0%, transparent 40%);
  pointer-events: none;
  animation: lightPulse 8s ease-in-out infinite;
}
@keyframes lightPulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* Edge vignette for cinematic depth */
.hero-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 35%, transparent 35%, rgba(6,1,2,0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

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

/* ── Hero Lockup (horizontal crest + title) ── */
.hero-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .hero-lockup { gap: var(--space-6); }
}

/* ── Crest Composition ── */
.hero-crest-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: heroReveal 0.9s 0.1s var(--ease) both;
}

/* Radial aura — stadium glow (compact for lockup) */
.hero-crest-aura {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(245,166,35,0.3) 0%, rgba(245,166,35,0.1) 25%, transparent 50%),
    radial-gradient(circle, rgba(192,17,31,0.15) 0%, rgba(192,17,31,0.05) 40%, transparent 65%);
  animation: auraPulse 5s ease-in-out infinite;
}
@keyframes auraPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* Decorative ring around crest */
.hero-crest-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(170px, 48vw);
  height: min(170px, 48vw);
  border-radius: 50%;
  border: 1px solid rgba(245,166,35,0.15);
  box-shadow: 0 0 30px rgba(245,166,35,0.05), inset 0 0 30px rgba(245,166,35,0.03);
  animation: ringReveal 1.2s 0.6s var(--ease) both;
}
@keyframes ringReveal {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.hero-crest {
  width: 100px; height: auto;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 50px rgba(245,166,35,0.3))
    drop-shadow(0 0 100px rgba(192,17,31,0.2))
    drop-shadow(0 4px 24px rgba(0,0,0,0.5));
  animation: crestReveal 1s 0.3s var(--ease) both;
}
@keyframes crestReveal {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@media (min-width: 640px) { .hero-crest { width: 140px; } }

/* ── Hero Title ── */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: white;
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 60px rgba(0,0,0,0.4);
  text-align: left;
  animation: heroReveal 0.9s 0.25s var(--ease) both;
}
.hero-title span {
  font-style: italic;
  background: linear-gradient(135deg, #ffffff 20%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-divider {
  width: 72px; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--navy));
  margin: var(--space-5) auto var(--space-4);
  border-radius: 2px;
  animation: heroReveal 0.9s 0.35s var(--ease) both;
}

.hero-countdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-2);
  animation: heroReveal 0.9s 0.5s var(--ease) both;
}
@media (min-width: 600px) {
  .hero-countdown-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}
@media (min-width: 900px) {
  .hero-countdown-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Countdown Card ── */
.countdown-card {
  background: rgba(10, 0, 5, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-4);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-spring);
}
.countdown-card:hover { transform: translateY(-3px); }

.countdown-card.is-home {
  border-color: rgba(245,166,35,0.5);
  background: rgba(10, 0, 5, 0.65);
}

/* Gold shimmer for home card */
.countdown-card.is-home::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.08), transparent);
  animation: shimmer 3s 1.5s ease infinite;
}
@keyframes shimmer { 0%,100% { left: -60%; } 50% { left: 120%; } }

.countdown-age-badge {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
.countdown-card.is-home .countdown-age-badge { background: var(--gold); color: var(--ink); }

.countdown-home-ribbon {
  position: absolute;
  top: var(--space-3); right: var(--space-4);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  display: none;
}
.countdown-card.is-home .countdown-home-ribbon { display: flex; }

.countdown-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.countdown-event {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.countdown-venue {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  margin-top: var(--space-1);
}
.countdown-card.is-home .countdown-venue { color: var(--gold); }

.countdown-digits-row {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-3);
  align-items: flex-end;
}
.countdown-unit { text-align: center; }
.countdown-num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  display: block;
  min-width: 2ch;
  line-height: 1;
  transition: transform 0.15s var(--ease-spring);
}
.countdown-num.tick { transform: translateY(-4px); }
.countdown-unit-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
}
.countdown-sep { color: var(--gold); opacity: 0.4; font-family: var(--font-mono); font-size: 1.8rem; margin-bottom: 0.4rem; }

.countdown-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.countdown-cta:hover { background: rgba(255,255,255,0.18); color: white; }

.countdown-matchday {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 700;
  padding: var(--space-4) 0;
}

/* Sticky mini-bar (mobile, appears after hero scrolled) */
.sticky-mini-bar {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--red-dark), var(--navy-dark));
  border-bottom: 2px solid var(--navy);
  padding: var(--space-2) var(--space-5);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.sticky-mini-bar.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 767px) { .sticky-mini-bar { display: block; } }
.sticky-mini-bar strong { color: white; }
.sticky-mini-bar .mini-bar-home { color: var(--gold); }

/* ══════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════ */
.section-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-heading--light { color: white; }

.section-sub {
  color: var(--gray-500);
  font-size: 1rem;
  margin-top: var(--space-2);
  max-width: 520px;
}
.section-sub--light { color: rgba(255,255,255,0.6); }

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.section-label--light { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════
   FIXTURES SECTION
══════════════════════════════════════ */
.section-fixtures {
  padding: var(--space-20) 0 var(--space-16);
  background: var(--white);
  position: relative;
}
/* Curved wave at bottom of fixtures → teams */
.section-fixtures::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--off-white);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,30 Q720,0 1440,30 L1440,60 Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,30 Q720,0 1440,30 L1440,60 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 1;
}

.fixture-header {
  margin-bottom: var(--space-8);
}

/* Season progress bar */
.season-progress-wrap {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.season-progress-track {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.season-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: 999px;
  transition: width 1s var(--ease);
  width: 0%;
}
.season-progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  white-space: nowrap;
}

/* Age toggle */
.fixture-toggle {
  display: inline-flex;
  background: var(--navy-pale);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  margin: var(--space-6) 0 var(--space-8);
  border: 1px solid rgba(37,41,85,0.1);
}
.fixture-tab {
  padding: var(--space-2) var(--space-6);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
  transition: all 0.2s var(--ease);
  background: transparent;
}
.fixture-tab.active {
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Fixture panel */
.fixture-panel { display: none; }
.fixture-panel.active { display: block; }

/* Fixture card */
.fixture-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-100);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease-spring);
}
.fixture-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.fixture-card.is-home {
  border-color: var(--gold);
  box-shadow: 0 0 0 0px var(--gold), var(--shadow-sm);
}
.fixture-card.is-home:hover {
  box-shadow: 0 0 0 3px rgba(245,166,35,0.2), var(--shadow);
}
.fixture-card.is-past { opacity: 0.6; }
.fixture-card.is-next { box-shadow: 0 0 0 2px var(--navy), var(--shadow); border-color: var(--navy); }

/* Card date bar */
.fixture-date-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.fixture-card.is-home .fixture-date-bar {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: var(--ink);
}
.fixture-card.is-past .fixture-date-bar { background: var(--gray-700); }
.fixture-card.is-next .fixture-date-bar { background: linear-gradient(135deg, var(--red-dark) 0%, var(--navy) 100%); }

.fixture-round-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.fixture-date-text { font-size: 0.82rem; font-weight: 600; opacity: 0.75; }
.fixture-time-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 999px;
}
.fixture-card.is-home .fixture-time-badge { background: rgba(0,0,0,0.12); }

.fixture-weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.countdown-weather {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  margin-top: var(--space-1);
}

/* Card body */
.fixture-body {
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.fixture-badge-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.fixture-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fixture-badge--home { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid var(--gold); }
.fixture-badge--away { background: var(--navy-pale); color: var(--navy); border: 1px solid rgba(37,41,85,0.2); }
.fixture-badge--done { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.fixture-badge--makeup { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.fixture-badge--next { background: var(--red-pale); color: var(--red); border: 1px solid rgba(192,17,31,0.2); }
.fixture-badge--group { background: var(--navy-pale); color: var(--navy); border: 1px solid rgba(37,41,85,0.15); font-weight: 700; }

.eircode-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.eircode-link:hover { opacity: 0.8; }

.fixture-teams {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.team-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: background 0.15s;
}
.team-chip--doon {
  background: var(--red);
  color: white;
  border-color: var(--red);
  font-weight: 800;
}

.fixture-note {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: var(--space-2);
}
.fixture-card.is-home .fixture-note { color: var(--gold-dark); }

.fixture-card-footer {
  padding: var(--space-2) var(--space-4) var(--space-3);
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
}
.btn-quick-wa {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-quick-wa:hover { background: #bbf7d0; }

/* Makeup card */
.fixture-card--makeup {
  border-style: dashed;
  border-color: var(--gray-200);
}
.fixture-card--makeup .fixture-date-bar {
  background: var(--gray-50);
  color: var(--gray-500);
}

/* Bye card (league format) */
.fixture-card--bye {
  border-style: dashed;
  border-color: var(--gray-200);
  opacity: 0.75;
}
.fixture-card--bye .fixture-date-bar {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ══════════════════════════════════════
   TEAMS SECTION
══════════════════════════════════════ */
.section-teams {
  padding: var(--space-16) 0 calc(var(--space-16) + 40px);
  background: var(--off-white);
  position: relative;
}
/* Curved wave at bottom of teams → coach corner */
.section-teams::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 70px;
  background: var(--dark);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,70 L0,35 Q360,70 720,30 Q1080,0 1440,35 L1440,70 Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,70 L0,35 Q360,70 720,30 Q1080,0 1440,35 L1440,70 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 1;
}

.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (min-width: 640px) { .teams-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .teams-grid { grid-template-columns: 1fr 1fr 1fr; } }

.team-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.team-card-banner {
  height: 110px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--red-dark) 50%, var(--red) 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  overflow: hidden;
}
.team-card-banner::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.team-card-age {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 3rem;
  color: rgba(255,255,255,0.15);
  position: absolute;
  right: var(--space-4); bottom: -8px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.team-card-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
}
.team-card-title em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.team-card-body {
  padding: var(--space-5);
}
.team-stat-row {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}
.team-stat { text-align: center; }
.team-stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.team-stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 2px;
}

.photo-placeholders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.photo-ph {
  aspect-ratio: 1;
  background: var(--gray-50);
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gray-300);
}

/* Announcements */
.announcements-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
  border: 1.5px solid var(--gray-100);
}
.announcements-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.announcement-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  gap: var(--space-4);
}
.announcement-item:last-child { border-bottom: none; padding-bottom: 0; }
.ann-type-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 6px;
}
.ann-type-dot--fixtures { background: var(--gold); }
.ann-type-dot--general  { background: var(--gray-300); }
.ann-body h4 { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.ann-body p  { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; }
.ann-body time { font-size: 0.72rem; color: var(--gray-400); display: block; margin-top: var(--space-1); }

/* ══════════════════════════════════════
   COACH CORNER
══════════════════════════════════════ */
.section-coach {
  padding: var(--space-20) 0 calc(var(--space-16) + 40px);
  background: var(--dark);
  position: relative;
  overflow: visible;
}
.section-coach::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(192,17,31,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(37,41,85,0.15) 0%, transparent 50%);
  pointer-events: none;
}
/* Curved wave at bottom of coach → about */
.section-coach::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 70px;
  background: var(--white);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,70 L0,30 Q720,70 1440,30 L1440,70 Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,70 L0,30 Q720,70 1440,30 L1440,70 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 2;
}

/* ── Coach Split Layout (image left + carousel right) ── */
.coach-split {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-6);
  gap: var(--space-5);
}
@media (min-width: 960px) {
  .coach-split {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-8);
  }
}

/* Left image panel — hidden on mobile, shown on desktop */
.coach-split-image {
  display: none;
}
@media (min-width: 960px) {
  .coach-split-image {
    display: block;
    flex: 0 0 320px;
    position: sticky;
    top: 100px;
  }
}

.coach-intro-image {
  position: relative;
  width: 100%;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 8%, black 55%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 8%, black 55%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.coach-intro-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 40px rgba(192,17,31,0.25));
}

/* Right carousel panel */
.coach-carousel {
  flex: 1;
  min-width: 0;
}

/* Tab navigation */
.coach-carousel-nav {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.coach-carousel-nav::-webkit-scrollbar { display: none; }

.coach-tab {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.coach-tab:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.coach-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* Panels — show one at a time */
.coach-carousel-panels .coach-tool-card {
  display: none;
}
.coach-carousel-panels .coach-tool-card.is-active {
  display: block;
}

.coach-tool-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.3s var(--ease-spring);
}
.coach-tool-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* Next Fixture quick-action panel (above coach carousel tabs) */
.coach-next-fixture {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cnf-label { font-size:0.68rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold); }
.cnf-fixture { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); }
.cnf-age { background:var(--red); color:white; font-size:0.7rem; font-weight:800; padding:2px 8px; border-radius:var(--radius-full); }
.cnf-round { font-size:0.78rem; color:rgba(255,255,255,0.45); }
.cnf-date  { font-size:0.88rem; font-weight:700; color:white; }
.cnf-matchup { font-size:0.82rem; color:rgba(255,255,255,0.6); flex-basis:100%; margin-top:var(--space-1); }
.cnf-actions { display:flex; gap:var(--space-3); flex-wrap:wrap; }
.cnf-actions .btn { flex:1; min-width:130px; font-size:0.8rem; padding:var(--space-2) var(--space-3); margin-top:0; }

.tool-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-3);
}
.tool-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  margin-bottom: var(--space-1);
}
.tool-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

/* Tool selects */
.tool-selects {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.tool-selects label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: var(--space-1);
}
.tool-selects select,
.tool-form label,
.tool-form input,
.tool-form textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: white;
}
.tool-selects select option { background: var(--dark-card); color: white; }
.tool-form { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.tool-form label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: var(--space-1);
}
.tool-form-group { display: flex; flex-direction: column; gap: var(--space-1); }

/* WhatsApp preview */
.wa-preview-wrap {
  background: #0b141a;
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  max-height: 220px;
  overflow-y: auto;
  min-height: 80px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.wa-bubble {
  background: #1f2c34;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: var(--space-3) var(--space-4);
  font-size: 0.82rem;
  color: #e9edef;
  white-space: pre-wrap;
  line-height: 1.55;
  font-family: var(--font-body);
  animation: fadeIn 0.3s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.wa-bubble-placeholder {
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: var(--space-4) 0;
}
/* Send-timing hint strip (Feature 4) */
.wa-send-hint {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
  background: rgba(245,166,35,0.08);
  border-left: 2px solid rgba(245,166,35,0.35);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

/* Availability tracker */
.avail-roster {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.avail-empty {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
  padding: var(--space-5) 0;
}
.avail-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}
.avail-player-name {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}
.avail-toggle-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.15s;
  min-width: 90px;
  text-align: center;
}
.avail-toggle-btn[data-state="unknown"]     { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
.avail-toggle-btn[data-state="available"]   { background: rgba(34,197,94,0.2);    color: #4ade80; }
.avail-toggle-btn[data-state="unavailable"] { background: rgba(239,68,68,0.2);    color: #f87171; }

.avail-summary {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}
.avail-summary strong { color: #4ade80; }
.avail-summary .cnt-out { color: #f87171; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-full { width: 100%; }
.btn--red { background: var(--red); color: white; }
.btn--red:hover { background: var(--red-light); box-shadow: var(--shadow-red); }
.btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn--outline-white:hover { border-color: rgba(255,255,255,0.4); color: white; }
.btn--green { background: #16a34a; color: white; }
.btn--green:hover { background: #15803d; }
.btn--copy { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.1); }
.btn--copy:hover { background: rgba(255,255,255,0.12); color: white; }
.btn--copy.copied { background: rgba(34,197,94,0.15); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.btn--whatsapp { background: #25D366; color: white; border: none; margin-top: var(--space-2); }
.btn--whatsapp:hover { background: #1da851; }

/* Calendar export text-button (fixtures section) */
.btn-calendar {
  background: none;
  border: 1px solid rgba(192,17,31,0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  opacity: 0.8;
  transition: opacity 0.2s, border-color 0.2s;
}
.btn-calendar:hover { opacity: 1; border-color: var(--red); }

/* Export reminder banner (admin panel) */
.export-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  background: #fef3c7;
  color: #92400e;
  border-left: 4px solid #f59e0b;
  padding: var(--space-3) var(--space-5);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.export-reminder-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.export-reminder-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: #92400e;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.export-reminder-dismiss:hover { opacity: 1; }

/* ══════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════ */
.section-about {
  padding: var(--space-16) 0 var(--space-16);
  background: var(--white);
  position: relative;
  z-index: 1;
}
/* White wave that overlaps the footer — the footer's gradient shows
   through the curved cutout, so there's only ONE gradient = no seam */
.section-about::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,60 Q360,0 720,40 Q1080,60 1440,30 L1440,0 Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,60 Q360,0 720,40 Q1080,60 1440,30 L1440,0 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-top: var(--space-8);
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-text p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
}
.about-text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.contact-links { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-100);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: all 0.2s;
  text-decoration: none;
}
.contact-link:hover { border-color: var(--red); color: var(--red); background: var(--red-pale); }
.contact-link-icon { font-size: 1rem; }

.about-admin-note {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--navy-pale);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--navy);
  font-size: 0.82rem;
  color: var(--gray-600);
}
.about-admin-note a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, var(--red-deeper) 100%);
  color: rgba(255,255,255,0.5);
  padding: calc(var(--space-16) + 60px) 0 0;
  position: relative;
  margin-top: -60px;
}
/* Noise texture — matches hero atmosphere */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.2;
  pointer-events: none;
}

/* 3-column layout */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
}

/* Brand column */
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.footer-crest {
  width: 56px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  flex-shrink: 0;
}
.footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.3rem;
  color: white;
  line-height: 1.2;
}
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-1);
  line-height: 1.4;
}

/* Nav column */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-nav-heading {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-1);
}
.footer-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.footer-nav a:hover {
  color: white;
  transform: translateX(3px);
}

/* Connect column */
.footer-connect {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: white;
  transform: translateY(-2px);
}
.footer-connect-placeholder {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  line-height: 1.5;
}
.footer-connect-placeholder a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-connect-placeholder a:hover { color: white; }

/* Bottom bar — full-width separator */
.footer-bottom {
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.footer-credit span { color: var(--red-light); }

/* Mobile: stack bottom bar */
@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-5);
  width: 44px; height: 44px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
  z-index: 80;
  border: none;
  cursor: pointer;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { background: var(--navy); box-shadow: var(--shadow-navy); }

/* ══════════════════════════════════════
   PRINT OVERLAY
══════════════════════════════════════ */
.print-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  overflow-y: auto;
}
.print-overlay[hidden] { display: none; }
.print-sheet {
  background: white;
  border-radius: var(--radius);
  padding: var(--space-10) var(--space-8);
  max-width: 680px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.print-sheet h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--red);
  border-bottom: 3px solid var(--red);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
}
.print-sheet .ps-meta { font-size: 0.9rem; color: var(--gray-600); margin-bottom: var(--space-5); }
.print-sheet .ps-meta strong { color: var(--ink); }
.print-sheet ol { padding-left: var(--space-5); }
.print-sheet ol li { padding: var(--space-2) 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; color: var(--gray-700); }
.print-sheet .ps-totals { margin-top: var(--space-5); font-size: 0.85rem; color: var(--gray-500); display: flex; gap: var(--space-4); flex-wrap: wrap; }
.print-sheet .ps-totals strong { color: var(--ink); }
.print-overlay-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* ══════════════════════════════════════
   ADMIN STYLES
══════════════════════════════════════ */
.admin-page {
  min-height: 100vh;
  background: var(--gray-50);
}

/* PIN Gate */
.pin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--red-deeper) 40%, var(--red-dark) 100%);
  padding: var(--space-5);
}
.pin-gate[hidden] { display: none; }

.pin-gate-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.pin-gate-logo {
  width: 80px; height: auto;
  margin: 0 auto var(--space-5);
  object-fit: contain;
}
.pin-gate-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.pin-gate-sub { color: var(--gray-500); font-size: 0.875rem; margin-bottom: var(--space-6); }
.pin-input-wrap {
  position: relative;
  margin-bottom: var(--space-4);
}
.pin-input {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 1.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: var(--space-4) var(--space-5);
  width: 100%;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--ink);
}
.pin-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,17,31,0.12); }
.pin-error {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.2em;
  margin-bottom: var(--space-3);
}

/* Admin layout */
.admin-layout[hidden] { display: none; }
.admin-header {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--navy) 100%);
  color: white;
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.admin-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
}
.admin-brand em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.6;
  display: block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: var(--space-2);
}
.admin-tab {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-500);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.admin-tab:hover { color: var(--gray-700); }
.admin-tab.active { color: var(--navy); border-bottom-color: var(--navy); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1.5px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Admin form card */
.admin-card {
  background: white;
  border-radius: var(--radius);
  padding: var(--space-6);
  border: 1.5px solid var(--gray-100);
  margin-bottom: var(--space-5);
}
.admin-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.admin-field {
  margin-bottom: var(--space-4);
}
.admin-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
}
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
}
.admin-field textarea { resize: vertical; min-height: 80px; }

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 600px) { .admin-form-grid { grid-template-columns: 1fr 1fr; } }

/* Save button + feedback */
.save-row { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.save-feedback {
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  opacity: 0;
  transition: opacity 0.3s;
}
.save-feedback.visible { opacity: 1; }

/* Fixture admin table */
.fixture-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.fixture-admin-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--gray-100);
}
.fixture-admin-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.fixture-admin-table tr:last-child td { border-bottom: none; }
.fixture-admin-table input, .fixture-admin-table select { padding: var(--space-1) var(--space-2); font-size: 0.8rem; }
.fat-round { font-weight: 700; color: var(--gray-700); white-space: nowrap; }
.fat-date  { color: var(--gray-500); font-size: 0.8rem; white-space: nowrap; }
.fat-doon-home { color: var(--gold-dark); font-size: 0.8rem; font-weight: 700; }

/* Roster management */
.roster-add-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.roster-add-row input { flex: 1; }
.roster-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
}
.roster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}
.roster-item-name { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); }
.roster-item-num { font-size: 0.75rem; color: var(--gray-400); margin-right: auto; padding-left: var(--space-3); }
.btn-remove { color: var(--gray-400); font-size: 0.85rem; padding: var(--space-1); transition: color 0.2s; background: none; border: none; cursor: pointer; }
.btn-remove:hover { color: var(--red); }

/* Announcement admin */
.ann-add-form {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: var(--space-5);
  border: 1.5px solid var(--gray-100);
  margin-bottom: var(--space-6);
}
.ann-list-item {
  background: white;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}
.ann-list-title { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.ann-list-body  { font-size: 0.8rem; color: var(--gray-500); margin-top: 3px; line-height: 1.4; }
.ann-list-meta  { font-size: 0.7rem; color: var(--gray-400); margin-top: var(--space-2); }

/* Data panel */
.data-actions { display: flex; flex-direction: column; gap: var(--space-4); }
.data-action-card {
  background: white;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
}
.data-action-title { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: var(--space-1); }
.data-action-desc  { font-size: 0.85rem; color: var(--gray-500); margin-bottom: var(--space-4); }

/* ══════════════════════════════════════
   UTILITY
══════════════════════════════════════ */
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   MEDIA QUERIES
══════════════════════════════════════ */
@media (min-width: 640px) {
  .section-fixtures, .section-teams, .section-about { padding-left: 0; padding-right: 0; }
}

@media (max-width: 599px) {
  .fixture-admin-table { display: block; overflow-x: auto; }
  .coach-tool-card { padding: var(--space-5); }
  .about-grid { gap: var(--space-8); }
}

/* ══════════════════════════════════════════════════
   NOTIFICATION BELL
   ══════════════════════════════════════════════════ */
.nav-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.nav-bell:hover { background: rgba(255,255,255,0.2); color: white; }
.nav-bell--mobile { display: flex; }
@media (min-width: 768px) {
  .nav-bell--mobile { display: none; }
}
@media (max-width: 767px) {
  .nav-bell:not(.nav-bell--mobile) { display: none; }
}

.nav-bell-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 2px var(--dark);
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ══════════════════════════════════════════════════
   TEAM LINEUP REVEAL
   ══════════════════════════════════════════════════ */
.team-card-banner { position: relative; overflow: hidden; }
.team-card-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,5,10,0.85) 0%, rgba(18,5,10,0.2) 100%);
  z-index: 1;
}
.team-card-banner .team-card-title,
.team-card-banner .team-card-age { position: relative; z-index: 2; }

.team-lineup-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
  background: var(--red-tint);
  border: 1.5px dashed rgba(192,17,31,0.4);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.team-lineup-toggle:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}
.team-lineup-toggle[aria-expanded="true"] {
  background: var(--red);
  color: white;
  border-style: solid;
  border-color: var(--red);
}
.team-lineup-toggle[disabled] {
  opacity: 0.5;
  cursor: default;
  border-style: dashed;
}
.team-lineup-toggle[disabled]:hover {
  background: var(--red-tint);
  color: var(--red);
  box-shadow: none;
}

.lineup-toggle-icon {
  font-size: 0.6rem;
  transition: transform 0.3s var(--ease);
}
.team-lineup-toggle[aria-expanded="true"] .lineup-toggle-icon {
  transform: rotate(180deg);
}

.team-lineup-panel {
  margin-top: var(--space-4);
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}

.team-lineup-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lineup-player {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  opacity: 0;
  transform: translateX(-16px) scale(0.96);
}
.lineup-player--visible {
  animation: lineupReveal 0.4s var(--ease-spring) both;
}

@keyframes lineupReveal {
  from { opacity: 0; transform: translateX(-16px) scale(0.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.lineup-jersey {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 2.2em;
  text-align: right;
}

.lineup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.lineup-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.lineup-empty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  color: var(--gray-400);
  font-style: italic;
  font-size: 0.875rem;
  justify-content: center;
}
.lineup-empty-icon {
  font-size: 1.4rem;
  animation: gentleBounce 2s ease-in-out infinite;
}
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ══════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 380px;
  width: calc(100% - 2 * var(--space-5));
}
@media (max-width: 599px) {
  .toast-container {
    right: var(--space-3);
    bottom: var(--space-3);
    left: var(--space-3);
    max-width: none;
    width: auto;
  }
}

.toast {
  display: flex;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,41,85,0.08);
  overflow: hidden;
  transform: translateY(24px) scale(0.95);
  opacity: 0;
  transition: transform 0.45s var(--ease-spring), opacity 0.4s var(--ease);
}
.toast--visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.toast--exit {
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

.toast-accent { width: 5px; flex-shrink: 0; border-radius: 3px 0 0 3px; }
.toast-content { padding: var(--space-3) var(--space-4); flex: 1; min-width: 0; }
.toast-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  flex: 1;
}
.toast-dismiss {
  font-size: 1.3rem;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 0 0 var(--space-2);
  line-height: 1;
  transition: color 0.15s;
}
.toast-dismiss:hover { color: var(--gray-700); }
.toast-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}
.toast-body {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.toast-read-more {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}
.toast-read-more:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   NEWS PANEL (SLIDE-IN)
   ══════════════════════════════════════════════════ */
.news-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  backdrop-filter: blur(3px);
  transition: opacity 0.3s;
}
.news-panel-overlay[hidden] { display: none; }

.news-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 92vw);
  background: var(--off-white);
  z-index: 310;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 48px rgba(37,41,85,0.25), -2px 0 8px rgba(0,0,0,0.1);
}
.news-panel[hidden] { display: none; }
.news-panel--open { transform: translateX(0); }

.news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: linear-gradient(135deg, var(--navy) 0%, var(--red-dark) 100%);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
/* Decorative circle in header */
.news-panel-header::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.news-panel-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}
.news-panel-crest {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.news-panel-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
}
.news-panel-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.4rem;
  color: white;
  line-height: 1.1;
}
.news-panel-close {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s var(--ease);
  position: relative;
  z-index: 1;
}
.news-panel-close:hover { background: rgba(255,255,255,0.2); color: white; }

.news-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  scrollbar-width: thin;
  scrollbar-color: rgba(37,41,85,0.15) transparent;
}

.news-item {
  display: flex;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-100);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease-spring);
  background: white;
}
.news-item:hover { box-shadow: var(--shadow), 0 0 0 1px rgba(37,41,85,0.06); transform: translateY(-2px); }
.news-item-accent { width: 5px; flex-shrink: 0; }
.news-item-content { padding: var(--space-4) var(--space-5); flex: 1; min-width: 0; }
.news-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.news-item-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy-pale);
  color: var(--navy);
  border: 1px solid rgba(37,41,85,0.12);
}
.news-item-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.03em;
}
.news-item-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
}
.news-item-content p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: var(--space-2);
  line-height: 1.6;
}

/* ── Emoji Reactions ── */
.news-item-reactions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
}
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-100);
  background: var(--gray-50);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  user-select: none;
}
.reaction-btn span { font-size: 0.68rem; font-weight: 700; color: var(--gray-500); }
.reaction-btn:hover { border-color: var(--navy-light); background: var(--navy-pale); transform: scale(1.08); }
.reaction-btn--active {
  border-color: var(--navy);
  background: var(--navy-pale);
}
.reaction-btn--active span { color: var(--navy); }

/* ── Announcements Preview Button ── */
.announcements-preview { margin-top: var(--space-8); }
.announcements-preview-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: white;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font-body);
}
.announcements-preview-btn:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  background: var(--navy-pale);
}
.announcements-preview-btn svg { color: var(--navy); flex-shrink: 0; }
.announcements-preview-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   CONFETTI
   ══════════════════════════════════════════════════ */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.6);
  background: var(--color);
  border-radius: 2px;
  animation: confettiFall 3s var(--delay) ease-out forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(var(--rotation)); opacity: 0; }
}

/* ══════════════════════════════════════════════════
   MATCH DAY HYPE
   ══════════════════════════════════════════════════ */
.countdown-card.countdown-hype {
  animation: hypePulse 2.5s ease-in-out infinite;
  border-color: var(--gold) !important;
}
.countdown-card.countdown-hype .countdown-label::after {
  content: ' · MATCH DAY 🔥';
  color: var(--gold);
  font-weight: 900;
  animation: matchDayFlicker 1.5s ease-in-out infinite;
}
@keyframes hypePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0), var(--shadow); }
  50% { box-shadow: 0 0 24px 6px rgba(245,166,35,0.18), var(--shadow); }
}
@keyframes matchDayFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ══════════════════════════════════════════════════
   PLAYER SPOTLIGHT
   ══════════════════════════════════════════════════ */
.player-spotlight {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(10,0,5,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-3);
  margin-top: var(--space-5);
  animation: heroReveal 0.9s 0.7s var(--ease) both;
}
.spotlight-star { font-size: 1.1rem; }
.spotlight-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.spotlight-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.spotlight-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.spotlight-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: white;
}
.spotlight-age {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
}

/* ══════════════════════════════════════════════════
   HERO PARTICLES
   ══════════════════════════════════════════════════ */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  bottom: -20px;
  left: var(--x);
  font-size: var(--size);
  opacity: 0;
  animation: particleFloat var(--duration) var(--delay) linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.1; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ══════════════════════════════════════════════════
   TEAM PHOTO UPLOAD (ADMIN)
   ══════════════════════════════════════════════════ */
.team-photo-upload {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--gray-100);
}
.photo-upload-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: 2px dashed var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--space-3);
  background: var(--gray-50);
}
.photo-upload-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-upload-placeholder {
  color: var(--gray-400);
  font-size: 0.82rem;
  font-style: italic;
}
.photo-upload-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.photo-upload-or {
  color: var(--gray-400);
  font-size: 0.75rem;
}

/* ══════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════ */
@media print {
  body > *:not(.print-overlay) { display: none !important; }
  .print-overlay {
    position: static !important;
    background: none !important;
    display: block !important;
    padding: 0 !important;
  }
  .print-overlay-actions { display: none !important; }
  .print-sheet {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
