@import url('https://fonts.googleapis.com/css2?family=Outfit:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0b192c;
  color: #ffffff;
  overflow-x: hidden;
}

/* Unified sub-page theme (Background + Uniform Text Color) */
body.subpage-body {
  background-color: #0f1c32;
  color: #e2e8f0;
}

/* =========================================================
   GLOBAL UNIFORM TOP NAVIGATION BAR & CYAN GLOW LINE (INNER PAGES)
   ========================================================= */
.top-bar {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 48px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(2, 6, 12, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(0, 210, 255, 0.28) !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 100 !important;
}

.top-bar.home-nav {
  justify-content: flex-end !important;
  border-bottom: none !important;
}

/* Identical glowing cyan line under the top bar across all inner pages */
.top-bar::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -2px !important;
  height: 2px !important;
  background: radial-gradient(circle, #00d2ff 0%, rgba(0, 210, 255, 0.85) 45%, rgba(0, 210, 255, 0.2) 85%, transparent 100%) !important;
  box-shadow: 0 0 20px #00d2ff, 0 0 8px rgba(0, 210, 255, 0.9) !important;
  pointer-events: none !important;
}

/* Remove glowing cyan line on the home page only */
.top-bar.home-nav::after {
  display: none !important;
}

.brand-link {
  font-family: 'Outfit', sans-serif !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.4px !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.brand-link .iq {
  color: #00d2ff !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
}

.nav-links a {
  position: relative !important;
  font-family: 'Inter', sans-serif !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding-bottom: 4px !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  z-index: 101 !important;
  transition: color 0.2s ease !important;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00d2ff !important;
  text-decoration: none !important;
}

.nav-links a.active::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 2px !important;
  background: #00d2ff !important;
  box-shadow: 0 0 8px #00d2ff !important;
}

/* Prevent duplicate line on pages that already have the flare div */
.top-cyan-flare {
  display: none !important;
}

/* Mobile Hamburger Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
  display: none !important;
  background: rgba(6, 16, 32, 0.88) !important;
  border: 1px solid rgba(0, 210, 255, 0.45) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  width: 40px !important;
  height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: border-color 0.2s ease, color 0.2s ease !important;
}

.mobile-menu-toggle:hover {
  border-color: #fbbf24 !important;
  color: #fbbf24 !important;
}

/* =========================================================
   UNIFORM 2X CENTER HERO PILL BADGE (APPS & STORE PAGES)
   ========================================================= */
.hero-center-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 34px;
  border-radius: 50px;
  border: 2px solid #00d2ff;
  background: rgba(2, 10, 24, 0.85);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 auto 6px auto;
  line-height: 1.1;
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.45), inset 0 0 12px rgba(0, 210, 255, 0.25);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-center-pill .cyan-text {
  color: #00d2ff;
}

/* Home Page Hero Section */
.hero {
  flex: 1;
  width: 100%;
  background-image: url('bg.png');
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sub-page Content Layout */
.page-container {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-header {
  text-align: center;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 6px;
  color: #ffffff;
}

.page-header p {
  font-size: 15px;
  color: #cbd5e0;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards & Grids */
.card {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  margin-bottom: 0;
  color: #e2e8f0;
}

.legal-card h2 {
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 8px;
  color: #00d2ff;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p, .legal-card li {
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5e0;
  margin-bottom: 8px;
}

.legal-card ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-card a,
.contact-link {
  color: #00d2ff;
  text-decoration: none;
}

.legal-card a:hover,
.contact-link:hover {
  text-decoration: underline;
}

/* 4-Across Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.apps-grid .card {
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.apps-grid .card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.15);
}

.app-icon {
  display: block;
  width: 170px;
  height: 170px;
  border-radius: 36px;
  object-fit: cover;
  margin: 0 auto 16px auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.apps-grid p {
  font-size: 14px;
  color: #cbd5e0;
  line-height: 1.5;
  margin-bottom: 16px;
}

.store-status {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #a0aec0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: auto;
  text-align: center;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #e2e8f0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 18, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #00d2ff;
}

.btn-primary {
  background: #00d2ff;
  color: #0b192c;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* =========================================================
   GLOBAL UNIFORM BOTTOM FOOTER BAR (ALL PAGES)
   ========================================================= */
.bottom-bar {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 48px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: rgba(2, 6, 12, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-family: 'Inter', sans-serif !important;
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 100 !important;
}

.footer-links {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

.footer-links a {
  position: relative !important;
  font-family: 'Inter', sans-serif !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding-bottom: 2px !important;
  z-index: 101 !important;
  transition: color 0.2s ease !important;
}

.footer-links a:hover,
.footer-links a.active {
  color: #00d2ff !important;
  text-decoration: none !important;
}

.footer-links a.active::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 2px !important;
  background: #00d2ff !important;
  box-shadow: 0 0 8px #00d2ff !important;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1080px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .hero {
    background-image: url('mbg.png');
    background-size: cover;
  }

  /* Inner pages: stacked logo + single-line links (zero 2-line wrapping on Coach Ike) */
  .top-bar {
    height: auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 12px !important;
  }

  .top-bar .nav-links {
    gap: 14px !important;
    flex-wrap: nowrap !important;
  }

  .top-bar .nav-links a {
    font-size: 0.84rem !important;
    white-space: nowrap !important;
  }

  /* Home page: clean top-right hamburger button + dropdown drawer */
  .top-bar.home-nav {
    height: 54px !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 0 20px !important;
    z-index: 200 !important;
  }

  .top-bar.home-nav .mobile-menu-toggle {
    display: flex !important;
  }

  .top-bar.home-nav .nav-links {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: rgba(4, 12, 24, 0.97) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(0, 210, 255, 0.45) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85) !important;
    padding: 10px 20px 16px !important;
    gap: 4px !important;
    z-index: 199 !important;
  }

  .top-bar.home-nav .nav-links.open {
    display: flex !important;
  }

  .top-bar.home-nav .nav-links a {
    padding: 12px 14px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .top-bar.home-nav .nav-links a:last-child {
    border-bottom: none !important;
  }

  .top-bar.home-nav .nav-links a:hover {
    background: rgba(0, 210, 255, 0.12) !important;
  }

  .bottom-bar {
    height: auto !important;
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
    padding: 12px 16px !important;
  }
}

@media screen and (max-width: 560px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   LOCKED UNIFORM HERO HEADER (APPS, STORE, ABOUT, CONTACT, PRIVACY, TERMS)
   ========================================================= */
.hero-center-pill {
  min-width: 340px;
  height: 44px;
  padding: 0 34px !important;
  margin: 0 auto 10px auto !important;
  box-sizing: border-box;
}

@media screen and (min-width: 1151px) {
  .apps-stadium-main,
  .store-stadium-main,
  .about-stadium-main,
  .contact-stadium-main,
  .privacy-stadium-main,
  .terms-stadium-main {
    justify-content: flex-start !important;
    padding-top: 28px !important;
    padding-bottom: 24px !important;
  }

  .apps-container h1,
  .store-container h1,
  .about-container h1,
  .contact-container h1,
  .privacy-container h1,
  .terms-container h1 {
    font-size: 1.85rem !important;
    line-height: 1.15 !important;
    margin: 0 0 6px 0 !important;
  }

  .apps-hero-sub,
  .store-hero-sub,
  .about-hero-sub,
  .contact-hero-sub,
  .privacy-hero-sub,
  .terms-hero-sub {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
  }

  .sport-subnav-tracker,
  .store-subnav-tracker,
  .about-subnav-tracker,
  .contact-subnav-tracker,
  .privacy-subnav-tracker,
  .terms-subnav-tracker {
    margin-bottom: 20px !important;
  }
}

@media screen and (max-width: 480px) {
  .hero-center-pill {
    min-width: unset;
    width: auto;
    max-width: 92%;
    height: auto;
    padding: 8px 20px !important;
    font-size: 1rem !important;
  }
}