/* ══════════════════════════════════════════════════════════════
   IESA Colombia — Gaming / Competitive UI Redesign
   Space Grotesk Bold Italic · Gradient Backgrounds · Dashboard Style
   ══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Deep gradient base */
  --bg-darkest:     #06050e;
  --bg-deep:        #0a0919;
  --bg-surface:     #100e24;
  --bg-card:        #14112e;
  --bg-card-hover:  #1c1840;

  /* Accent: warm yellow ➜ orange */
  --accent:         #fbbf24;   /* primary yellow */
  --accent-hover:   #f59e0b;   /* deeper amber on hover */
  --accent-glow:    rgba(251,191,36,0.35);
  --accent-orange:  #f97316;   /* orange for secondary highlights */

  /* Purple spectrum (for gradients & secondary accents) */
  --purple-bright:  #a855f7;
  --purple-mid:     #7c3aed;
  --purple-dark:    #4c1d95;
  --purple-dim:     rgba(124,58,237,0.15);

  /* Blues (for gradient depth) */
  --blue-deep:      #1e3a5f;
  --blue-glow:      #3b82f6;

  /* Status colors */
  --red:            #ef4444;
  --red-bg:         rgba(239,68,68,0.12);
  --green:          #22c55e;
  --green-bg:       rgba(34,197,94,0.12);

  /* Text hierarchy */
  --text-white:     #f5f5f7;
  --text-light:     #c4c0d9;
  --text-muted:     #78739a;
  --text-dark:      #0a0918;

  /* Borders */
  --border:         rgba(124,58,237,0.18);
  --border-hover:   rgba(124,58,237,0.35);
  --border-card:    rgba(255,255,255,0.06);

  /* Geometry */
  --radius-sm:      2px;
  --radius-md:      2px;
  --radius-lg:      4px;
  --radius-xl:      6px;

  /* Layout */
  --max-w:          1280px;
  --navbar-h:       64px;
  --livebar-h:      44px;

  /* Motion */
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:         0.2s var(--ease);
  --t-normal:       0.35s var(--ease);

  /* Typography */
  --ff-heading:     'Space Grotesk', 'Inter', sans-serif;
  --ff-body:        'Inter', 'Segoe UI', sans-serif;
}


/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  /* Deep multi-stop gradient background — blues & purples */
  background:
    radial-gradient(ellipse 120% 80% at 10% 0%, rgba(30,58,95,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 100% 90% at 90% 100%, rgba(76,29,149,0.30) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,58,237,0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-darkest) 0%, #090720 40%, #0d0b22 70%, var(--bg-darkest) 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* Performance: GPU-accelerated layers for animated elements */
.tournament-card,
.about-card,
.match-row,
.btn {
  will-change: transform;
  transform: translateZ(0);
}

/* Contain layout paint for sections */
.section,
.about-section,
.stats-bar {
  contain: layout style;
}


/* ══════════════════════════════════════════════════════════════
   LIVE BAR
   ══════════════════════════════════════════════════════════════ */
.live-bar {
  position: fixed; top: 0; left: 0; right: 0;
  min-height: var(--livebar-h);
  /* Glassy dark reddish background */
  background: rgba(45, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(239,68,68,0.6);
  box-shadow: 0 1px 0 rgba(239,68,68,0.4), 0 4px 24px rgba(0,0,0,0.6);
  display: flex; align-items: center;
  z-index: 200;
}

.live-bar__btn {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--ff-heading);
  transition: all var(--t-fast);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.live-bar__btn:hover {
  background: #dc2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
}
.live-bar[hidden] { display: none; }

/* Push body content down when live bar is visible */
body.live-active { padding-top: var(--livebar-h); }

.live-bar__inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  padding: 0 2rem;
  display: flex; justify-content: center; align-items: center; gap: 2rem;
}

.live-bar__status { display: flex; align-items: center; gap: 8px; }

.live-bar__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red), 0 0 20px rgba(239,68,68,0.4);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}

.live-bar__label {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red);
}

.live-bar__match {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  color: var(--text-light);
}
.live-bar__team-block {
  display: flex; align-items: center; gap: 8px;
}
.live-bar__team-logo {
  width: 22px; height: 22px; object-fit: contain; border-radius: 2px;
}
.live-bar__vs-sep {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px;
}



/* ── Live Toggle Button ────────────────────────────────────── */
#live-toggle-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  padding: 10px 20px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: all var(--t-fast);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
#live-toggle-btn:hover {
  border-color: var(--red); color: var(--red);
  box-shadow: 0 4px 20px rgba(239,68,68,0.2);
}


/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; left: 0; right: 0;
  height: var(--navbar-h); z-index: 100;
  background: rgba(10,9,25,0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: top var(--t-normal);
}
.navbar--live-offset { top: var(--livebar-h); }

.navbar__inner {
  max-width: var(--max-w); height: 100%; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

/* Logo */
.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  transition: opacity var(--t-fast);
}
.navbar__logo:hover { opacity: 0.85; }

.navbar__logo-text {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}
.navbar__logo-accent { color: var(--text-white); }
.navbar__logo-img {
  width: 38px; height: 38px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* Nav links */
.navbar__nav { flex: 1; display: flex; justify-content: center; }
.navbar__list { display: flex; gap: 0.5rem; }

.navbar__link {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-muted);
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar__link:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.04);
}
.navbar__link--active {
  color: var(--accent);
  background: rgba(251,191,36,0.08);
}

/* Actions */
.navbar__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.navbar__user {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.navbar__user:hover {
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.navbar__burger { display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; width: 36px; height: 36px; }
.navbar__burger span { display: block; width: 20px; height: 2px; background: var(--text-light); border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }
.navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Notifications Bell */
.nav-notif {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  color: var(--text-light);
}
.nav-notif:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
}
/* Bell ring animation triggered by JS on new notification */
@keyframes bell-ring {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(12deg); }
  30%  { transform: rotate(-10deg); }
  45%  { transform: rotate(8deg); }
  60%  { transform: rotate(-6deg); }
  75%  { transform: rotate(4deg); }
  90%  { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}
.nav-notif.bell-ring {
  animation: bell-ring 0.8s ease;
  color: var(--accent);
}
/* Pulse glow on badge update */
@keyframes badge-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); box-shadow: 0 0 10px var(--red); }
  100% { transform: scale(1); }
}
.nav-notif__badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  animation: badge-pop 0.4s ease;
}
.nav-notif__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -10px;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.04);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}
.nav-notif.is-open .nav-notif__dropdown {
  display: flex;
  animation: dropdownIn 0.2s var(--ease);
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-notif__header {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}
.nav-notif__header span { color: var(--text-white); }
.nav-notif__body {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.notif-item {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--t-fast);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.notif-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.notif-mark-btn {
  opacity: 0.6;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}
.notif-mark-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
  color: var(--text-white) !important;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item:last-child { border-bottom: none; }
/* Unread state — accent left border + subtle bg */
.notif-item--unread {
  background: rgba(251,191,36,0.04);
  border-left-color: var(--accent);
}
/* Per-type left-border colors */
.notif-item[data-type="invite_received"]  { border-left-color: #a855f7; }
.notif-item[data-type="invite_accepted"]  { border-left-color: var(--green); }
.notif-item[data-type="invite_rejected"]  { border-left-color: var(--red); }
.notif-item[data-type="payment_update"]   { border-left-color: #3b82f6; }
.notif-item[data-type="match_reported"]   { border-left-color: #f97316; }
.notif-item[data-type="match_confirmed"]  { border-left-color: var(--accent); }
.notif-item[data-type="result_pending"]   { border-left-color: var(--text-muted); }
.notif-item__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-item__desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.notif-item__meta { font-size: 0.68rem; color: var(--accent); align-self: flex-start; margin-top: 0.1rem; opacity: 0.8; }



/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-heading); font-weight: 800; font-style: italic;
  font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all var(--t-fast);
  position: relative; overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, #FFDF73 0%, #E5A93C 50%, #B37D26 100%);
  color: #000; border-color: transparent;
  box-shadow: 0 4px 15px rgba(229,169,60,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(229,169,60,0.5), 0 0 15px rgba(255,223,115,0.3);
  background: linear-gradient(135deg, #FFEAB3 0%, #FFDF73 50%, #E5A93C 100%);
  filter: brightness(1.05);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--accent); border-color: var(--accent);
}
.btn--ghost:hover {
  background: rgba(251,191,36,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}


/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════ */
.main-content {
  flex: 1; max-width: var(--max-w); width: 100%;
  margin: 0 auto; padding: 0 2rem;
  position: relative; z-index: 1;
}


/* ══════════════════════════════════════════════════════════════
   HERO SECTION — Full-bleed background
   ══════════════════════════════════════════════════════════════ */
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 4rem;
  min-height: 100vh;
  padding: 6rem 0 5rem;
  position: relative;
  /* Full-bleed bg: EA FC image + layered dark overlays */
  background:
    linear-gradient(135deg, rgba(6,5,14,0.92) 0%, rgba(10,9,25,0.75) 45%, rgba(6,5,14,0.88) 100%),
    url('../img/iesa_fc_hero_bg.png') center center / cover no-repeat;
  /* Allow the section to span full viewport width, breaking out of max-w */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50% + 2rem);
  padding-right: calc(50vw - 50% + 2rem);
}
/* Purple glow accent in the lower-right */
.hero::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 55%; height: 70%;
  background: radial-gradient(ellipse at bottom right, rgba(124,58,237,0.14) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

.hero__content { max-width: 640px; z-index: 2; position: relative; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.badge--glow {
  background: var(--purple-dim); color: var(--purple-bright);
  border: 1px solid rgba(168,85,247,0.3);
  box-shadow: 0 0 20px rgba(168,85,247,0.1);
}
.badge--live {
  background: var(--red-bg); color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239,68,68,0); }
  50%      { box-shadow: 0 0 12px rgba(239,68,68,0.2); }
}
.badge--upcoming {
  background: rgba(251,191,36,0.1); color: var(--accent);
  border: 1px solid rgba(251,191,36,0.3);
}

.live-dot-sm {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse-dot 1.4s ease-in-out infinite;
}

/* Hero Title */
.hero__title {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.05; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}
.hero__title-accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero__subtitle {
  font-size: 1rem; font-weight: 400;
  color: var(--text-light); line-height: 1.75;
  margin-bottom: 2.5rem; max-width: 480px;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Visual */
.hero__visual { 
  display: block; 
  flex: 1; 
  max-width: 550px; 
  z-index: 2; 
  position: relative; 
  animation: float-badge 6s ease-in-out infinite;
}

.hero__badge-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(251,191,36,0.5));
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 7rem;
  }
  .hero__content { margin: 0 auto; }
  .hero__visual { max-width: 300px; margin: 0 auto 2rem; }
}


/* ══════════════════════════════════════════════════════════════
   ABOUT SECTION — Full-bleed two-column
   ══════════════════════════════════════════════════════════════ */
.about-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 6rem calc(50vw - 50% + 2rem);
  margin-bottom: 5rem;
  background:
    linear-gradient(160deg, rgba(16,14,36,0.95) 0%, rgba(10,9,25,0.9) 50%, rgba(16,14,36,0.95) 100%),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(124,58,237,0.1) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
/* Accent lines top & bottom */
.about-section::before,
.about-section::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple-bright), transparent);
}
.about-section::before { top: -1px; }
.about-section::after  { bottom: -1px; }

.about-section__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Left column: text ── */
.about-section__left {
  display: flex; flex-direction: column; gap: 0;
}
.about-section__left .badge { margin-bottom: 1.25rem; align-self: flex-start; }

.about-section__title {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-white); line-height: 1.05;
  margin-bottom: 2rem;
}
.about-section__title-accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.about-section__desc {
  font-size: 1.05rem; color: var(--text-light);
  line-height: 1.85; margin-bottom: 1.25rem;
}
.about-section__desc:last-of-type { margin-bottom: 0; }
.about-section__desc strong { color: var(--accent); }

/* Bullet list */
.about-section__bullets {
  list-style: none; padding: 0; margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.about-section__bullets li {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 1rem; color: var(--text-light);
  line-height: 1.6;
  padding: 0.7rem 1.1rem;
  background: rgba(251,191,36,0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all var(--t-fast);
}
.about-section__bullets li:hover {
  background: rgba(251,191,36,0.08);
  transform: translateX(4px);
}
.about-bullet__icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.85;
}

/* ── Right column: stat cards ── */
.about-section__right {
  display: flex; flex-direction: column; gap: 1.25rem;
}

.about-card {
  background: linear-gradient(145deg, rgba(20,17,46,0.7), rgba(12,10,28,0.85));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex; align-items: flex-start; gap: 1.5rem;
  position: relative; overflow: hidden;
  transition: all var(--t-normal);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.about-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple-bright), transparent);
  opacity: 0; transition: opacity var(--t-normal);
}
.about-card:hover {
  border-color: rgba(251,191,36,0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 20px rgba(251,191,36,0.06);
}
.about-card:hover::before { opacity: 1; }

.about-card__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(251,191,36,0.04));
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.about-card__content {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}

.about-card__number {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 2.2rem; color: var(--accent); line-height: 1;
  text-shadow: 0 0 25px var(--accent-glow);
}
.about-card__label {
  font-family: var(--ff-heading); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-white); margin-top: 4px;
}
.about-card__sub {
  font-size: 0.82rem; color: var(--text-muted);
  line-height: 1.5; margin-top: 6px;
}



/* ══════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════ */
.stats-bar {
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: wrap; gap: 2rem;
  max-width: var(--max-w); margin: 0 auto 5rem;
  padding: 2.5rem 3rem;
  background:
    linear-gradient(135deg, rgba(20,17,46,0.9), rgba(16,14,36,0.95)),
    radial-gradient(ellipse at top left, rgba(124,58,237,0.1), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
/* Decorative line across top */
.stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple-bright), transparent);
}

.stats-bar__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stats-bar__number {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 4rem; color: var(--accent); line-height: 1;
  text-shadow: 0 0 50px var(--accent-glow), 0 0 100px rgba(251,191,36,0.15);
}
.stats-bar__label {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-light);
  margin-top: 2px;
}
.stats-bar__divider {
  width: 1px; height: 56px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}


/* ══════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════ */
.section {
  max-width: var(--max-w); margin: 0 auto 5rem; padding: 0 2rem;
}
.section__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
/* Gold accent line under header */
.section__header::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-white); line-height: 1;
}

.section__see-all {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
  transition: all var(--t-fast);
}
.section__see-all:hover {
  text-shadow: 0 0 12px var(--accent-glow);
}

/* Section CTA row — platform action buttons */
.section__cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  justify-content: center;
}


/* ══════════════════════════════════════════════════════════════
   TOURNAMENT CARDS
   ══════════════════════════════════════════════════════════════ */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.tournament-card {
  background:
    linear-gradient(160deg, rgba(20,17,46,0.95), rgba(14,12,30,0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
  transition: all var(--t-normal);
}
/* Top accent bar on card */
.tournament-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple-mid), var(--accent));
  opacity: 0;
  transition: opacity var(--t-normal);
}
.tournament-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.4),
    0 0 30px rgba(124,58,237,0.08);
}
.tournament-card:hover::before { opacity: 1; }

.tournament-card__header {
  display: flex; justify-content: space-between; align-items: center;
}
.tournament-card__format {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}

.tournament-card__title {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-white); line-height: 1.15;
}

.tournament-card__desc {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.65;
}

.tournament-card__meta {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.tournament-card__meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-light); font-weight: 500;
}
.tournament-card__meta-item svg { color: var(--accent); }

/* Card CTA Button override */
.tournament-card .btn { font-size: 0.75rem; padding: 10px 20px; }


/* ══════════════════════════════════════════════════════════════
   MATCH ROWS
   ══════════════════════════════════════════════════════════════ */
.matches-list { display: flex; flex-direction: column; gap: 1rem; }

.match-row {
  background: linear-gradient(135deg, rgba(20,17,46,0.9), rgba(14,12,30,0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: all var(--t-normal);
}
/* Left accent bar */
.match-row::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px;
  background: var(--purple-mid);
  opacity: 0;
  transition: opacity var(--t-normal);
}
.match-row:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.match-row:hover::before { opacity: 1; }

.match-row__time {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 90px;
}
.match-row__day {
  font-family: var(--ff-heading); font-weight: 500;
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px;
}
.match-row__hour {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 2rem; color: var(--accent); line-height: 1;
  text-shadow: 0 0 25px var(--accent-glow);
}

.match-row__teams {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.5rem;
}
.match-row__team {
  display: flex; align-items: center; gap: 12px; width: 220px;
}
.match-row__team:first-child { justify-content: flex-end; text-align: right; }
.match-row__team span {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-white);
}

.match-row__avatar {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.match-row__avatar img { max-width: 30px; max-height: 30px; }

.match-row__vs {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 1.2rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent);
  padding: 8px 18px;
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25);
  border-radius: var(--radius-sm);
  text-shadow: 0 0 15px var(--accent-glow);
}

/* Featured team highlight — avatar only, not text */
.match-row__team--featured .match-row__avatar {
  border-color: rgba(251,191,36,0.35);
  box-shadow: 0 0 12px rgba(251,191,36,0.15);
}

/* Live match row glow */
.match-row--live {
  border-color: rgba(239,68,68,0.3);
  box-shadow: 0 0 20px rgba(239,68,68,0.08);
}
.match-row--live::before {
  background: var(--red) !important;
  opacity: 1 !important;
}

.match-row__info {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; min-width: 130px;
}
.match-row__league {
  font-family: var(--ff-heading); font-weight: 500;
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  margin-top: 4rem;
  background:
    linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-darkest) 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple-bright), transparent);
}

.footer__inner { max-width: var(--max-w); margin: 0 auto; }

.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 4rem; margin-bottom: 3rem;
}

.footer__brand { max-width: 320px; }
.footer__logo-text {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); line-height: 1; margin-bottom: 0; display: inline-block;
  text-shadow: 0 0 30px var(--accent-glow);
}

.footer__tagline { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.5rem; }

.footer__socials { display: flex; gap: 10px; }
.footer__social {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-light);
  transition: all var(--t-fast);
}
.footer__social:hover {
  background: var(--accent); color: var(--text-dark); border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.footer__columns { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col-title {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-white); margin-bottom: 0.5rem;
}
.footer__col a {
  font-size: 0.88rem; color: var(--text-muted);
  transition: color var(--t-fast), transform var(--t-fast);
  display: inline-block;
}
.footer__col a:hover { color: var(--accent); transform: translateX(4px); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; margin-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted);
  flex-wrap: wrap; gap: 1rem;
}
.footer__credits strong { color: var(--accent); }

/* ── Mobile Overlay (hidden by default) ────────────────────── */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(6,5,14,0.97);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}
.mobile-overlay.is-open { display: flex; }
.mobile-overlay a {
  font-family: var(--ff-heading); font-weight: 700; font-style: italic;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-light);
  transition: color var(--t-fast);
}
.mobile-overlay a:hover { color: var(--accent); }


/* ══════════════════════════════════════════════════════════════
   UTILITIES & ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet / Small Desktop ─────────────────────────────────── */
@media (max-width: 1024px) {
  .navbar__nav { display: none; }
  .navbar__burger { display: flex; }

  .main-content { padding: 0 1.5rem; }

  .tournaments-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

  .section { padding: 0 1.5rem; }

  /* About: stack columns earlier on tablet */
  .about-section__inner { gap: 3rem; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --navbar-h: 60px;
    --livebar-h: 40px;
  }

  /* Navbar */
  .navbar__inner { padding: 0 1rem; }
  .navbar__logo-text { font-size: 1.2rem; letter-spacing: 1px; }
  .navbar__logo-img { width: 32px; height: 32px; }
  .navbar__actions .btn { display: none; }

  /* Live bar */
  .live-bar { height: var(--livebar-h); min-height: var(--livebar-h); padding: 0; }
  .live-bar__inner { padding: 0 0.75rem; gap: 0.5rem; flex-wrap: nowrap; height: 100%; }
  .live-bar__status { gap: 5px; flex-shrink: 0; }
  .live-bar__dot { width: 6px; height: 6px; }
  .live-bar__label { font-size: 0.6rem; letter-spacing: 1px; }
  .live-bar__match { gap: 0.5rem; font-size: 0.7rem; flex-shrink: 1; min-width: 0; }
  .live-bar__team-logo { width: 16px; height: 16px; }
  .live-bar__team-block { gap: 4px; }
  .live-bar__team-block span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
  .live-bar__vs-sep { font-size: 0.6rem; }
  .live-bar__btn { font-size: 0.6rem; padding: 4px 10px; flex-shrink: 0; white-space: nowrap; }

  /* Hero */
  .hero {
    text-align: center;
    padding: 5rem 1rem 3rem;
    min-height: 90vh;
    /* Keep BG but give more contrast for small screens */
    background:
      linear-gradient(160deg, rgba(6,5,14,0.96) 0%, rgba(10,9,25,0.88) 50%, rgba(6,5,14,0.96) 100%),
      url('../img/iesa_fc_hero_bg.png') center center / cover no-repeat;
    align-items: center;
    width: 100%; margin-left: 0;
    padding-left: 1.5rem; padding-right: 1.5rem;
  }
  .hero__content { max-width: 100%; }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 1rem; }
  .hero__subtitle {
    font-size: 0.9rem; margin-left: auto; margin-right: auto;
    max-width: 340px;
  }
  .hero__actions { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
  .hero__actions .btn { flex: 1; min-width: 140px; justify-content: center; }

  /* Main content */
  .main-content { padding: 0; }

  /* Stats bar: clean 2x2 grid */
  .stats-bar {
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    gap: 0;
    margin: 0 1rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 1.5rem;
  }
  .stats-bar__divider { display: none; }
  .stats-bar__number { font-size: 2.2rem; }
  .stats-bar__item {
    display: flex; flex-direction: column; align-items: center;
    padding: 0.5rem;
  }
  .stats-bar__label { font-size: 0.7rem; }

  /* Sections */
  .section { padding: 0 1rem; margin-bottom: 3rem; }
  .section__header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .section-title { font-size: 1.6rem; }

  /* About section */
  .about-section {
    padding: 3.5rem 1.5rem;
    margin-bottom: 3rem;
    width: 100%; margin-left: 0;
  }
  .about-section__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }
  .about-section__left .badge { align-self: flex-start; }
  .about-section__title { font-size: 2rem; }
  .about-section__desc { font-size: 0.95rem; }
  .about-card { padding: 1.25rem; gap: 1rem; border-radius: var(--radius-lg); }
  .about-card__icon { width: 42px; height: 42px; }
  .about-card__number { font-size: 1.8rem; }
  .about-card__label { font-size: 0.72rem; }
  .about-card__sub { font-size: 0.78rem; }
  .about-section__bullets { gap: 0.5rem; }
  .about-section__bullets li { font-size: 0.9rem; padding: 0.5rem 0.75rem; gap: 0.6rem; }
  .about-bullet__icon { width: 18px; height: 18px; }
  .section__cta-row { flex-direction: column; align-items: stretch; }
  .section__cta-row .btn { width: 100%; justify-content: center; }

  /* Tournament grid */
  .tournaments-grid { grid-template-columns: 1fr; gap: 1rem; }
  .tournament-card { padding: 1.25rem; }
  .tournament-card__title { font-size: 1.2rem; }

  /* Match rows — mobile card layout */
  .match-row {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    align-items: center;
    text-align: center;
  }
  .match-row:hover { transform: none; }
  .match-row::before { display: none; }
  .match-row--live::before { display: none; }
  .match-row--live { border-top: 3px solid var(--red); }

  /* Time: day and hour centered inline */
  .match-row__time {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }
  .match-row__day { margin-bottom: 0; font-size: 0.65rem; }
  .match-row__hour { font-size: 1.6rem; }

  /* Teams row: [Team1] [VS] [Team2] horizontally centered */
  .match-row__teams {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }

  /* Each team: stack vertically with avatar on top, name below — USE ORDER to normalize */
  .match-row__team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;
    width: auto;
    min-width: 0;
  }
  /* Force avatar FIRST (order 1), name SECOND (order 2) regardless of HTML order */
  .match-row__team .match-row__avatar { order: 1; }
  .match-row__team span { order: 2; }

  .match-row__team:first-child {
    align-items: center;
  }
  .match-row__team span {
    font-size: 0.75rem;
    line-height: 1.25;
    word-break: break-word;
    max-width: 100%;
  }
  .match-row__avatar {
    width: 44px; height: 44px;
    flex-shrink: 0;
  }

  /* VS badge centered between teams */
  .match-row__vs {
    font-size: 0.85rem;
    padding: 6px 14px;
    flex-shrink: 0;
    align-self: center;
  }

  /* Info: badge + league centered, full width, separated */
  .match-row__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-width: unset;
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  /* Footer */
  .footer { padding: 2.5rem 1.25rem 2rem; }
  .footer__top { flex-direction: column; gap: 2rem; }
  .footer__brand { max-width: 100%; }
  .footer__columns { flex-direction: row; gap: 1.5rem; flex-wrap: wrap; }
  .footer__col { min-width: 100px; flex: 1; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer__logo-text { font-size: 1.2rem; }

  /* Toggle btn */
  #live-toggle-btn { bottom: 16px; right: 16px; padding: 8px 14px; font-size: 0.65rem; }
}

/* ── Small Phone ────────────────────────────────────────────── */
@media (max-width: 420px) {
  .hero__title { font-size: 1.8rem; }
  .hero__actions .btn { font-size: 0.72rem; padding: 10px 16px; }
  .stats-bar__number { font-size: 1.7rem; }
  .stats-bar { margin: 0 0.75rem 2.5rem; padding: 1.25rem 0.75rem; }
  .match-row__team span { font-size: 0.72rem; }
  .match-row__team { max-width: 100px; }
  .match-row__vs { font-size: 0.8rem; padding: 5px 10px; }
  .footer__columns { flex-direction: column; gap: 1.5rem; }
  .footer__col { min-width: unset; }

  /* Live bar: even tighter */
  .live-bar__team-logo { display: none; }
  .live-bar__team-block span { max-width: 70px; font-size: 0.65rem; }
  .live-bar__btn { font-size: 0.55rem; padding: 3px 8px; }

  /* About section */
  .about-section { padding: 2.5rem 1rem; }
  .about-section__title { font-size: 1.7rem; }
  .about-card { padding: 1rem; }
  .about-card__number { font-size: 1.5rem; }
}
/* ══════════════════════════════════════════════════════════
   LOGIN SPLIT SCREEN (login.html)
   ══════════════════════════════════════════════════════════ */

.login-body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-darkest);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left Panel */
.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 4rem;
  background-color: var(--bg-darkest);
  overflow-y: auto;
}

.login-panel__header {
  margin-bottom: auto;
}

.login-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.login-panel__back:hover {
  color: var(--text-white);
}

.login-panel__content {
  max-width: 400px;
  width: 100%;
  margin: auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
}

.login-panel__brand {
  display: inline-block;
  margin-bottom: 2.5rem;
}

.login-panel__brand img {
  height: 36px;
}

.login-panel__titles h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
}

.login-panel__titles p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

/* Auth Buttons */
.btn--google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem;
  background-color: #ffffff;
  color: #1a1a1a;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--t-fast);
}

.btn--google:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.login-panel__divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.login-panel__divider::before,
.login-panel__divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.login-panel__divider span {
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Form Styles Override */
.login-panel__form .form-group {
  margin-bottom: 1.25rem;
}

.login-panel__form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.login-panel__form .form-input {
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  height: 48px;
  width: 100%;
  padding: 0 1rem;
  font-size: 0.95rem;
  color: var(--text-white);
  transition: all var(--t-fast);
}

.login-panel__form .form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-panel__form .form-input:focus {
  background: rgba(30, 30, 45, 0.95);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
  outline: none;
}

.login-panel__forgot {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--t-fast);
}

.login-panel__forgot:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Right Panel Visual */
.visual-panel {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
}

.visual-panel__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/iesa_3d_enviroment.png');
  background-size: cover;
  background-position: center;
}

.visual-panel__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(88, 28, 135, 0.3) 100%);
  mix-blend-mode: multiply;
}

/* Responsive */
@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
  
  .visual-panel {
    display: none;
  }
  
  .login-panel {
    padding: 2rem;
  }
  
  .login-panel__content {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 1.5rem;
  }
}
/* ── Bracket / Knockout Styles ──────────────────────────────── */
.bracket-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 2rem;
  min-width: 220px;
}
.bracket-round h4 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--ff-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.bracket-match {
  background: linear-gradient(135deg, rgba(20,17,46,0.9), rgba(14,12,30,0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
}
.bracket-team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
}
.bracket-team.winner {
  background: rgba(251,191,36,0.1);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid rgba(251,191,36,0.2);
}
.bracket-team img {
  width: 18px; height: 18px; object-fit: contain; margin-right: 8px;
}
.bracket-team span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.bracket-score {
  font-family: var(--ff-heading);
  font-weight: 700;
  margin-left: 10px;
  color: var(--text-white);
}

/* ── Group Titles ─────────────────────────────────────────── */
.group-title {
  margin: 3rem 0 1rem;
  font-family: var(--ff-heading);
  color: var(--accent);
  text-transform: uppercase;
  font-style: italic;
  font-size: 1.4rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  letter-spacing: 1px;
}

/* ── Skeleton Loaders ───────────────────────────────────────── */
.skeleton {
  background: var(--bg-surface);
  background-image: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 0.8rem; margin-bottom: 0.5rem; width: 100%; border-radius: 4px; }
.skeleton-text--short { width: 40%; }
.skeleton-text--mid { width: 70%; }
.skeleton-title { height: 2rem; margin-bottom: 1rem; width: 60%; border-radius: var(--radius-sm); }
.skeleton-circle { border-radius: 50% !important; }

.skeleton-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-row {
  height: 48px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1px;
  width: 100%;
}

.skeleton-notif {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.skeleton-notif .skeleton-circle { width: 40px; height: 40px; flex-shrink: 0; }
.skeleton-notif .skeleton-content { flex: 1; }

@media (max-width: 1300px) {
  .bracket-container { justify-content: flex-start; padding: 2rem 1rem; }
}


/* ══════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ══════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
