/* ─────────────────────────────────────────────────────────
   LANDING PAGE  —  landing.css
   Supplements style.css. All class names prefixed lp-/topnav-.
───────────────────────────────────────────────────────── */

/* ── reset body for landing ── */
.landing-body {
  scroll-behavior: smooth;
}

/* ══════════════════════════════════════════
   TOP NAV
══════════════════════════════════════════ */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 11, 23, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.topnav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.1rem;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.topnav__brand-icon {
  display: flex;
  align-items: center;
}

.topnav__brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e7edff;
  letter-spacing: -0.02em;
}

.topnav__brand-accent {
  background: linear-gradient(90deg, #39d3ff, #8effb0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topnav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1.2rem;
}

.topnav__link {
  color: rgba(231,237,255,0.75);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.topnav__link:hover {
  color: #e7edff;
  background: rgba(255,255,255,0.08);
}

/* Fantasy Team nav button — gold accent */
.topnav__link--fantasy {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.08);
}
.topnav__link--fantasy:hover {
  color: #ffe8a0;
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.6);
}

/* Footer Fantasy Team button reset */
.lp-footer__link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s;
}
.lp-footer__link-btn:hover {
  color: #ffd166;
}

.topnav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topnav__user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
/* `hidden` must win over display:flex (mirrors the fix for .topnav__login-btn). */
.topnav__user[hidden] {
  display: none !important;
}

.topnav__avatar {
  border-radius: 50%;
  border: 2px solid rgba(57,211,255,0.4);
  object-fit: cover;
}

.topnav__username {
  color: #e7edff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav__logout {
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.topnav__logout:hover { color: #ff6b6b; }

.topnav__login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #e7edff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s;
}
/* `hidden` must win over display:inline-flex (otherwise Sign in stays visible after login). */
.topnav__login-btn[hidden] {
  display: none !important;
}
.topnav__login-btn:hover { background: rgba(255,255,255,0.2); }

.topnav__my-teams-link {
  color: #39d3ff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}
.topnav__my-teams-link:hover { color: #8effb0; }
.topnav__my-teams-link--active { text-decoration: underline; }

.topnav__season-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(57,211,255,0.18), rgba(142,255,176,0.18));
  border: 1px solid rgba(57,211,255,0.35);
  color: #c8f7ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.lp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 62px; /* nav height */
}

.lp-hero__img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.lp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 11, 23, 0.55) 0%,
    rgba(7, 11, 23, 0.78) 50%,
    rgba(7, 11, 23, 0.97) 100%
  );
}

/* decorative dot grid */
.lp-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(57,211,255,0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.lp-hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.1rem 5rem;
}

/* eye-row pills */
.lp-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
  font-weight: 700;
  color: #e7edff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lp-pill--live {
  background: rgba(255,59,48,0.18);
  border-color: rgba(255,59,48,0.4);
  color: #ff9f9f;
  animation: lp-pulse 2s ease-in-out infinite;
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

.lp-hero__title {
  margin: 0 0 0.6rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

.lp-hero__title-accent {
  background: linear-gradient(90deg, #39d3ff 0%, #8effb0 60%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero__sub {
  margin: 0 0 2rem;
  color: rgba(231,237,255,0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
  max-width: 580px;
}

/* CTA row */
.lp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.lp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.lp-btn--primary {
  background: linear-gradient(90deg, #39d3ff, #8effb0);
  color: #06112f;
}

.lp-btn--secondary {
  background: rgba(255,255,255,0.12);
  color: #e7edff;
  border: 1px solid rgba(255,255,255,0.3);
}

.lp-btn--secondary:hover {
  background: rgba(255,255,255,0.2);
}

.lp-btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.lp-btn--whatsapp:hover {
  background: #1ebe5d;
}

.lp-btn--create-team {
  background: linear-gradient(90deg, #8effb0, #39d3ff);
  color: #06112f;
  font-weight: 700;
}
.lp-btn--create-team:hover {
  background: linear-gradient(90deg, #a8ffca, #5de0ff);
}

.lp-btn--create-group {
  background: linear-gradient(90deg, #ffd166, #ff9f43);
  color: #1a0a00;
  font-weight: 700;
}
.lp-btn--create-group:hover {
  background: linear-gradient(90deg, #ffe08a, #ffb560);
}

/* stat badges */
.lp-hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lp-stat {
  display: flex;
  flex-direction: column;
}

.lp-stat__num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.lp-stat__label {
  font-size: 0.8rem;
  color: rgba(231,237,255,0.55);
  font-weight: 500;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* scroll hint */
.lp-hero__scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(231,237,255,0.45);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: lp-scroll-bounce 2s ease-in-out infinite;
}

@keyframes lp-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════════
   FEATURE CARDS
══════════════════════════════════════════ */
.lp-features {
  padding: 4rem 1.1rem;
  background: #070b17;
}

.lp-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.lp-feat-card {
  background: linear-gradient(145deg, #10193a, #0d1530);
  border: 1px solid rgba(57,211,255,0.12);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lp-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(57,211,255,0.22);
  border-color: rgba(57,211,255,0.25);
}

.lp-feat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(57,211,255,0.1);
  border: 1px solid rgba(57,211,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #39d3ff;
  flex-shrink: 0;
}

.lp-feat-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.lp-feat-card__body {
  margin: 0;
  color: rgba(231,237,255,0.65);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.lp-feat-card__img {
  display: block;
  width: calc(100% + 3rem);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  height: 155px;
  object-fit: cover;
  margin-top: 1rem;
  filter: brightness(0.82) saturate(1.15);
  transition: filter 0.25s;
}

.lp-feat-card:hover .lp-feat-card__img {
  filter: brightness(0.95) saturate(1.3);
}

/* Highlighted feature cards (Build Team / Play with Friends) */
.lp-feat-card--highlight {
  border-color: rgba(255,209,102,0.2);
  background: linear-gradient(145deg, #16213a, #0d1a30);
}
.lp-feat-card--highlight:hover {
  border-color: rgba(255,209,102,0.45);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,209,102,0.25);
}

.lp-feat-card__icon--gold {
  background: rgba(255,209,102,0.12);
  border-color: rgba(255,209,102,0.25);
  color: #ffd166;
}
.lp-feat-card__icon--teal {
  background: rgba(57,211,255,0.1);
  border-color: rgba(57,211,255,0.22);
  color: #39d3ff;
}

.lp-feat-card__cta-row {
  margin-top: 0.2rem;
}

.lp-feat-card__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: rgba(255,209,102,0.15);
  color: #ffd166;
  border: 1px solid rgba(255,209,102,0.3);
  font-family: inherit;
  transition: background 0.15s, transform 0.12s;
}
.lp-feat-card__cta-btn:hover { background: rgba(255,209,102,0.28); transform: translateY(-1px); }

.lp-feat-card__cta-btn--teal {
  background: rgba(57,211,255,0.12);
  color: #39d3ff;
  border-color: rgba(57,211,255,0.3);
}
.lp-feat-card__cta-btn--teal:hover { background: rgba(57,211,255,0.25); }

/* ══════════════════════════════════════════
   PLAY WITH FRIENDS CTA SECTION
══════════════════════════════════════════ */
.lp-friends-cta {
  padding: 5rem 1.1rem;
  background: linear-gradient(135deg, #06112f 0%, #0d1a38 50%, #06112f 100%);
  border-top: 1px solid rgba(57,211,255,0.1);
  border-bottom: 1px solid rgba(57,211,255,0.1);
  position: relative;
  overflow: hidden;
}

/* Subtle glow behind section */
.lp-friends-cta::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,211,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.lp-friends-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.lp-friends-cta__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #e7edff;
  line-height: 1.2;
  margin: 0.5rem 0 0.8rem;
}

.lp-friends-cta__accent {
  background: linear-gradient(90deg, #ffd166, #ffb300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-friends-cta__body {
  color: rgba(231,237,255,0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 520px;
}

.lp-friends-cta__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lp-friends-cta__steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: rgba(231,237,255,0.75);
}

.lp-friends-cta__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,209,102,0.15);
  border: 1px solid rgba(255,209,102,0.35);
  color: #ffd166;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.lp-friends-cta__steps li strong { color: #e7edff; }

.lp-friends-cta__btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Leaderboard mockup visual */
.lp-friends-cta__visual {
  display: flex;
  justify-content: center;
}

.lp-friends-cta__mockup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(57,211,255,0.2);
  border-radius: 18px;
  padding: 1.2rem 1.4rem 1.4rem;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.lp-mockup__header {
  font-weight: 800;
  font-size: 0.95rem;
  color: #e7edff;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lp-mockup__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.lp-mockup__row--gold   { background: rgba(255,215,0,0.1); }
.lp-mockup__row--silver { background: rgba(192,192,192,0.08); }
.lp-mockup__row--bronze { background: rgba(205,127,50,0.08); }

.lp-mockup__rank  { font-size: 1.1rem; flex-shrink: 0; width: 28px; }
.lp-mockup__name  { flex: 1; color: rgba(231,237,255,0.9); font-weight: 600; }
.lp-mockup__score { font-weight: 700; color: #8effb0; font-size: 0.85rem; }

.lp-mockup__invite {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(231,237,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lp-mockup__invite strong { color: #39d3ff; letter-spacing: 0.1em; }

.lp-mockup__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #25D366;
  font-weight: 600;
  font-size: 0.8rem;
  margin-left: auto;
}

/* Two-column on wider screens */
@media (min-width: 860px) {
  .lp-friends-cta__inner {
    grid-template-columns: 1fr 380px;
  }
}

/* ══════════════════════════════════════════
   SECTION HEADER (teams / matches)
══════════════════════════════════════════ */
.lp-section-header {
  margin-bottom: 1.8rem;
}

.lp-section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #39d3ff;
  margin-bottom: 0.55rem;
}

.lp-section-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.lp-section-sub {
  margin: 0 0 1.1rem;
  color: rgba(231,237,255,0.6);
  font-size: 0.97rem;
  line-height: 1.5;
}

/* ── teams section tweaks ── */
.lp-teams-section {
  padding: 3.5rem 1.1rem 3rem !important;
  background: linear-gradient(180deg, #070b17 0%, #0c1428 100%) !important;
  border-top: 1px solid rgba(35,49,97,0.9);
}

.lp-team-search {
  max-width: 580px !important;
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(57,211,255,0.18) !important;
  border-radius: 14px !important;
  font-size: 0.97rem !important;
  padding: 0.85rem 1.1rem !important;
}

.lp-team-search:focus {
  outline: none;
  border-color: rgba(57,211,255,0.45) !important;
  box-shadow: 0 0 0 3px rgba(57,211,255,0.12);
}

/* ── matches section tweaks ── */
.lp-matches-section {
  padding: 3rem 1.1rem 3.5rem !important;
  background: linear-gradient(180deg, #0c1428 0%, #070b17 100%) !important;
  border-top: 1px solid rgba(35,49,97,0.9);
}

/* ══════════════════════════════════════════
   PHOTO BANNER (auto-scrolling strip)
══════════════════════════════════════════ */
.lp-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lp-banner__track {
  display: flex;
  height: 100%;
  animation: lp-banner-scroll 30s linear infinite;
  width: max-content;
}

@keyframes lp-banner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.lp-banner__img {
  height: 100%;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  min-width: 320px;
  max-width: 600px;
}

.lp-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #070b17 0%,
    transparent 15%,
    transparent 85%,
    #070b17 100%
  );
  pointer-events: none;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.lp-footer {
  background: #050810;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 1.1rem 2.5rem;
}

.lp-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lp-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lp-footer__tagline {
  margin: 0;
  color: rgba(231,237,255,0.45);
  font-size: 0.9rem;
}

.lp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.lp-footer__links a {
  color: rgba(231,237,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.lp-footer__links a:hover {
  color: #e7edff;
}

.lp-footer__copy {
  margin: 0;
  color: rgba(231,237,255,0.3);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (min-width: 780px) {
  .lp-hero__content {
    padding: 4rem 2.2rem 6rem;
  }

  .lp-teams-section,
  .lp-matches-section {
    padding-left: 2.2rem !important;
    padding-right: 2.2rem !important;
  }

  .lp-features {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }

  .lp-footer {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }

  .lp-footer__inner {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .lp-footer__copy {
    flex: 0 0 100%;
  }
}

/* ══════════════════════════════════════════
   NAV — My Teams & Groups desktop links
══════════════════════════════════════════ */
.topnav__link--my-teams,
.topnav__link--groups {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}
.topnav__link--my-teams { color: #39d3ff; }
.topnav__link--my-teams:hover { color: #39d3ff; background: rgba(57,211,255,0.1); }

.topnav__link--groups { color: #8effb0; }
.topnav__link--groups:hover { color: #8effb0; background: rgba(142,255,176,0.1); }

/* Active state (current page) */
.topnav__link--active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════════ */
.topnav__hamburger {
  display: none; /* shown only on mobile via media query below */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s;
}
.topnav__hamburger:hover { background: rgba(255,255,255,0.12); }

.topnav__hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #e7edff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Animate to × when open */
.topnav__hamburger--open .topnav__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topnav__hamburger--open .topnav__hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.topnav__hamburger--open .topnav__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════ */
.topnav__drawer {
  display: none;
  flex-direction: column;
  background: rgba(7,11,23,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.5rem 1rem 0.75rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.topnav__drawer--open {
  display: flex;
  max-height: 400px;
  padding: 0.6rem 1rem 1rem;
}

.topnav__drawer-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.5rem;
  color: rgba(231,237,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.topnav__drawer-link:hover {
  color: #e7edff;
  background: rgba(255,255,255,0.06);
}

/* Highlighted (My Teams / Groups) */
.topnav__drawer-link--accent {
  color: #39d3ff;
  font-weight: 600;
}
.topnav__drawer-link--accent + .topnav__drawer-link--accent {
  color: #8effb0;
}
.topnav__drawer-link--accent:hover {
  background: rgba(57,211,255,0.08);
  color: #e7edff;
}

/* Active page in drawer */
.topnav__drawer-link--active {
  font-weight: 700;
  background: rgba(57,211,255,0.07);
}

.topnav__drawer-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0.3rem 0;
}

/* ── Mobile breakpoint ─────────────────── */
@media (max-width: 860px) {
  .topnav__links { display: none; }
  .topnav__season-pill { display: none; }
  .topnav__hamburger { display: flex; }
  .topnav__brand-text { font-size: 0.95rem; }
  .topnav__actions { gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-pill--live { animation: none; }
  .lp-hero__scroll-hint { animation: none; }
  .lp-banner__track { animation: none; }
}

/* ══════════════════════════════════════════
   FANTASY GROUPS PAGE
══════════════════════════════════════════ */
.groups-page {
  min-height: 80vh;
  padding-bottom: 4rem;
}

.groups-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.groups-login-gate {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(231,237,255,0.7);
}
.groups-login-gate p { margin-bottom: 1.2rem; font-size: 1.05rem; }

.groups-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

/* ── Group Cards ── */
.groups-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.group-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  transition: border-color 0.15s;
}
.group-card:hover { border-color: rgba(57,211,255,0.35); }

.group-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.group-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e7edff;
  margin: 0 0 0.2rem;
}

.group-card__match {
  font-size: 0.85rem;
  color: rgba(231,237,255,0.65);
  display: block;
}

.group-card__date {
  font-size: 0.8rem;
  color: rgba(231,237,255,0.45);
  display: block;
}

.group-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.group-card__members {
  font-size: 0.82rem;
  color: rgba(231,237,255,0.6);
}

.group-card__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}
.group-card__badge--entered { background: rgba(142,255,176,0.15); color: #8effb0; }
.group-card__badge--pending { background: rgba(255,209,102,0.12); color: #ffd166; }
.group-card__badge--owner   { background: rgba(57,211,255,0.12); color: #39d3ff; }

.group-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.7rem;
}

.group-card__code {
  font-size: 0.82rem;
  color: rgba(231,237,255,0.5);
  letter-spacing: 0.04em;
}
.group-card__code strong {
  color: #39d3ff;
  letter-spacing: 0.1em;
}

/* ── Group Detail Panel ── */
.group-detail {
  margin-top: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(57,211,255,0.2);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 2rem;
}

.group-detail__header { margin-bottom: 1.2rem; }

.grp-back-btn {
  background: none;
  border: none;
  color: rgba(231,237,255,0.55);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.8rem;
  transition: color 0.15s;
}
.grp-back-btn:hover { color: #39d3ff; }

.group-detail__name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #e7edff;
  margin: 0 0 0.3rem;
}

.group-detail__match {
  font-size: 0.9rem;
  color: rgba(231,237,255,0.65);
  margin: 0 0 0.15rem;
}

.group-detail__venue {
  font-size: 0.82rem;
  color: rgba(231,237,255,0.4);
  margin: 0 0 0.8rem;
}

.group-detail__invite {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(57,211,255,0.07);
  border: 1px solid rgba(57,211,255,0.2);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: rgba(231,237,255,0.7);
  flex-wrap: wrap;
}

.group-detail__code {
  color: #39d3ff;
  letter-spacing: 0.12em;
  font-size: 1rem;
}

.grp-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1px solid rgba(57,211,255,0.3);
  color: #39d3ff;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.grp-copy-btn:hover { background: rgba(57,211,255,0.1); }

/* WhatsApp invite button — used on group cards and detail panel */
.grp-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.12s;
  line-height: 1.4;
}
.grp-wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }

/* Inline variant inside the invite row (keeps it compact) */
.grp-wa-btn--inline {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
}

/* Footer action row on group card */
.group-card__footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.group-detail__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.group-detail__section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e7edff;
  margin: 0 0 0.8rem;
}

/* ── Leaderboard Table ── */
.grp-leaderboard-wrap {
  overflow-x: auto;
}

.grp-leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.grp-leaderboard th {
  text-align: left;
  color: rgba(231,237,255,0.5);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.grp-leaderboard td {
  padding: 0.6rem 0.75rem;
  color: rgba(231,237,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.grp-leaderboard__me td {
  background: rgba(57,211,255,0.06);
  color: #e7edff;
}

.grp-leaderboard__player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.grp-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(57,211,255,0.15);
  color: #39d3ff;
  font-weight: 700;
  font-size: 0.75rem;
}

.grp-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.82rem;
}
.grp-rank--1 { background: linear-gradient(135deg,#ffd700,#ffb300); color: #1a1a2e; }
.grp-rank--2 { background: linear-gradient(135deg,#c0c0c0,#a0a0a0); color: #1a1a2e; }
.grp-rank--3 { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.grp-rank--other { background: rgba(255,255,255,0.1); color: rgba(231,237,255,0.7); }

.grp-score {
  font-weight: 700;
  color: #8effb0;
}

.grp-link {
  color: #39d3ff;
  text-decoration: underline;
}

/* ── Group Modals ── */
.grp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7,11,23,0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.grp-modal[hidden] { display: none !important; }

.grp-modal__box {
  background: #0f1628;
  border: 1px solid rgba(57,211,255,0.2);
  border-radius: 18px;
  padding: 2rem 2rem 1.8rem;
  max-width: 440px;
  width: 100%;
  position: relative;
}

.grp-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: rgba(231,237,255,0.5);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.grp-modal__close:hover { color: #e7edff; }

.grp-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #e7edff;
  margin: 0 0 0.4rem;
}

.grp-modal__sub {
  font-size: 0.88rem;
  color: rgba(231,237,255,0.55);
  margin: 0 0 1.4rem;
}

.grp-modal__field {
  margin-bottom: 1rem;
}

.grp-modal__field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(231,237,255,0.65);
  margin-bottom: 0.35rem;
}

.grp-modal__field input,
.grp-modal__field select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #e7edff;
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.grp-modal__field input:focus,
.grp-modal__field select:focus { border-color: #39d3ff; }
.grp-modal__field select option { background: #0f1628; }

.grp-modal__error {
  font-size: 0.83rem;
  color: #ff6b6b;
  margin: 0 0 0.8rem;
}
.grp-modal__error[hidden] { display: none; }

.grp-modal__actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* lp-btn--accent for finalize */
.lp-btn--accent {
  background: linear-gradient(90deg, #ffd700, #ffb300);
  color: #1a1a2e;
  border: none;
  font-weight: 700;
}
.lp-btn--accent:hover { opacity: 0.9; }

/* ══════════════════════════════════════════
   GOOGLE LOGIN PROMPT MODAL
══════════════════════════════════════════ */
.login-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 10, 30, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lp-overlay-in 0.18s ease;
}
.login-prompt-overlay[hidden] { display: none !important; }

@keyframes lp-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.login-prompt-card {
  position: relative;
  background: linear-gradient(145deg, #0e1d44 0%, #091228 100%);
  border: 1px solid rgba(87, 157, 255, 0.25);
  border-radius: 24px;
  padding: 2.5rem 2.25rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(66,133,244,0.08);
  animation: lp-card-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lp-card-in {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.login-prompt-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(231,237,255,0.45);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-size: 1rem;
  line-height: 1;
}
.login-prompt-close:hover {
  background: rgba(255,255,255,0.12);
  color: #e7edff;
}

.login-prompt-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a7a 0%, #0f2050 100%);
  border: 1px solid rgba(87,157,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 24px rgba(66,133,244,0.2);
}

.login-prompt-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e7edff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.login-prompt-msg {
  font-size: 0.92rem;
  color: rgba(169, 185, 232, 0.85);
  line-height: 1.55;
  margin: 0 0 1.75rem;
}

/* Benefits list */
.login-prompt-benefits {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}
.login-prompt-benefits li {
  font-size: 0.85rem;
  color: rgba(231,237,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.login-prompt-benefits li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(143,255,176,0.12);
  border: 1px solid rgba(143,255,176,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238effb0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Google Sign-in button */
.login-prompt-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
  background: #fff;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.12s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
  margin-bottom: 0.9rem;
}
.login-prompt-google-btn:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.login-prompt-google-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.login-prompt-google-logo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.login-prompt-divider {
  font-size: 0.78rem;
  color: rgba(169,185,232,0.35);
  margin-bottom: 0.85rem;
}

.login-prompt-cancel {
  background: none;
  border: none;
  color: rgba(169,185,232,0.5);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: color 0.15s;
  font-family: inherit;
}
.login-prompt-cancel:hover { color: rgba(169,185,232,0.85); }

/* ══════════════════════════════════════════
   HERO LIVE MATCHES (in-hero today's matches strip)
══════════════════════════════════════════ */
.hero-live-matches {
  margin: 1.6rem 0 1.2rem;
  padding: 1.1rem 1.25rem 1.15rem;
  background: rgba(10, 16, 40, 0.72);
  border: 1px solid rgba(57, 211, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
  animation: hero-matches-in 0.35s ease both;
}

@keyframes hero-matches-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-live-matches__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.hero-live-matches__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #e7edff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-live-matches__date {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(169, 185, 232, 0.6);
}

.hero-live-matches__strip {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-live-matches__hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(169, 185, 232, 0.55);
}

/* Clickable match cards */
.today-match-card--clickable {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.today-match-card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(57,211,255,0.3), 0 12px 32px rgba(0,0,0,0.35);
}
.today-match-card--clickable:focus-visible {
  outline: 2px solid rgba(57,211,255,0.7);
  outline-offset: 2px;
}

/* Compact match cards inside the hero strip */
.hero-live-matches .today-match-card {
  background: rgba(16, 25, 54, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(42, 63, 138, 0.7);
  padding: 0.75rem 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-live-matches .today-match-card--live {
  border-color: rgba(255, 80, 80, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.14), 0 4px 14px rgba(0, 0, 0, 0.28);
}

@media (min-width: 640px) {
  .hero-live-matches__strip {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .hero-live-matches .today-match-card {
    flex: 1 1 calc(50% - 0.325rem);
    max-width: 480px;
  }
}

@media (min-width: 900px) {
  .hero-live-matches {
    max-width: 720px;
  }
}
