/* Site-wide night electric theme (body.sp-theme) */

body.sp-theme {
  --sp-void: #020b18;
  --sp-navy: #071a33;
  --sp-depth: #0b2748;
  --sp-blue: #2f8fff;
  --sp-cyan: #4ee3ff;
  --sp-ice: #dce9ff;
  --sp-muted: rgba(215, 232, 255, 0.78);
  --sp-line: rgba(78, 227, 255, 0.22);
  --sp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sp-display: 'Syne', 'Outfit', system-ui, sans-serif;
  --sp-body: 'Outfit', 'Manrope', 'Poppins', system-ui, sans-serif;

  background: var(--sp-void) !important;
  color: #e8f1ff;
  -webkit-font-smoothing: antialiased;
}

/* —— Shared dark header —— */
body.sp-theme .spAppHeader,
body.sp-theme .spAppHeader__bar {
  background: linear-gradient(180deg, #041628 0%, #061a32 100%) !important;
  background-color: #061a32 !important;
  box-shadow: 0 1px 0 rgba(78, 227, 255, 0.12) !important;
  border-bottom: 1px solid rgba(47, 143, 255, 0.2) !important;
}

body.sp-theme .spAppHeader__bar a,
body.sp-theme .spAppHeader__bar span,
body.sp-theme .spAppHeader__bar button,
body.sp-theme .spAppHeader__bar p,
body.sp-theme .spAppHeader__bar div {
  color: rgba(232, 241, 255, 0.92) !important;
}

body.sp-theme .spAppHeader__bar a:hover,
body.sp-theme .spAppHeader__bar a:focus-visible {
  color: #4ee3ff !important;
}

body.sp-theme .spAppHeader__bar a.spNavLink,
body.sp-theme .spAppHeader__bar a.spNavLink:visited,
body.sp-theme .spAppHeader__bar a.spNavLink:hover,
body.sp-theme .spAppHeader__bar a.spNavLink:focus,
body.sp-theme .spAppHeader__bar a.spNavLink:active {
  text-decoration: none !important;
  color: rgba(232, 241, 255, 0.92) !important;
}

body.sp-theme .spAppHeader__bar a.spNavLink--active,
body.sp-theme .spAppHeader__bar a.spNavLink--active:visited,
body.sp-theme .spAppHeader__bar a.spNavLink--active:hover,
body.sp-theme .spAppHeader__bar a.spNavLink--active:focus {
  color: #4ee3ff !important;
}

body.sp-theme .spNavLink--active {
  background: rgba(47, 143, 255, 0.22) !important;
  background-color: rgba(47, 143, 255, 0.22) !important;
  color: #4ee3ff !important;
  border: 1px solid rgba(78, 227, 255, 0.45) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 18px rgba(47, 143, 255, 0.25) !important;
}

/* My Center / sport centers dropdown — navy panel, readable labels */
body.sp-theme .sport-centers-dropdown {
  background: linear-gradient(180deg, #0b2748 0%, #071a33 100%) !important;
  border: 1px solid rgba(78, 227, 255, 0.28) !important;
  box-shadow: 0 18px 48px rgba(2, 11, 24, 0.55) !important;
}

body.sp-theme .sport-center-title {
  color: #dce9ff !important;
}

body.sp-theme .sport-center-link:hover {
  background-color: rgba(47, 143, 255, 0.14) !important;
}

body.sp-theme .sport-center-link:hover .sport-center-title {
  color: #4ee3ff !important;
}

body.sp-theme .sport-center-link:hover .image-container {
  border-color: #4ee3ff !important;
}

body.sp-theme .header-link {
  color: rgba(232, 241, 255, 0.92) !important;
  text-decoration: none !important;
}

body.sp-theme .header-link.active {
  color: #4ee3ff !important;
}

/* My Center — must not depend on body.sp-theme (Helmet clears it off home) */
.spAppHeader__bar .header-link,
.spAppHeader__bar .header-link:visited,
.spAppHeader__bar .header-link:hover,
.spAppHeader__bar .header-link:focus {
  color: rgba(232, 241, 255, 0.92) !important;
  text-decoration: none !important;
}

.spAppHeader__bar .header-link.active,
.spAppHeader__bar .header-link.active:visited,
.spAppHeader__bar .header-link.active:hover,
.spAppHeader__bar .header-link.active:focus {
  color: #4ee3ff !important;
}

.spAppHeader__bar .dropdown-icon-wrapper,
.spAppHeader__bar .dropdown-icon-wrapper svg {
  color: inherit !important;
}

/* —— Page shell —— */
body.sp-theme .spPage {
  min-height: 40vh;
  background: var(--sp-void);
  color: #e8f1ff;
  font-family: var(--sp-body);
}

body.sp-theme .spPage h1,
body.sp-theme .spPage h2,
body.sp-theme .spPage h3 {
  color: #ffffff;
}

body.sp-theme .spPage > p,
body.sp-theme .spPage .spPage__copy {
  color: var(--sp-ice);
}

body.sp-theme .spPage .spBand--navy {
  background: var(--sp-navy) !important;
  color: #e8f1ff !important;
}

/* Dark cards (blog / feature tiles) */
body.sp-theme .spCardDark,
body.sp-theme a.spCardDark {
  background: #0b2748 !important;
  border: 1px solid rgba(78, 227, 255, 0.22) !important;
  color: #dce9ff !important;
  box-shadow: 0 12px 28px rgba(2, 11, 24, 0.35) !important;
}

body.sp-theme .spCardDark h1,
body.sp-theme .spCardDark h2,
body.sp-theme .spCardDark h3,
body.sp-theme .spCardDark p,
body.sp-theme .spCardDark span {
  color: #dce9ff !important;
}

body.sp-theme .spCardDark h1,
body.sp-theme .spCardDark h2,
body.sp-theme .spCardDark h3 {
  color: #ffffff !important;
}

/* Keep true white cards readable (forms / booking) */
body.sp-theme .spCard,
body.sp-theme .spCard h1,
body.sp-theme .spCard h2,
body.sp-theme .spCard h3,
body.sp-theme .spCard p,
body.sp-theme .spCard span,
body.sp-theme .spCard a,
body.sp-theme .spCard li {
  color: #1a2332 !important;
}

body.sp-theme .spCard a {
  color: #1a7ad4 !important;
}

body.sp-theme input,
body.sp-theme textarea,
body.sp-theme select {
  color: #1a2332;
}

body.sp-theme input::placeholder,
body.sp-theme textarea::placeholder {
  color: rgba(26, 35, 50, 0.55);
}

body.sp-theme .spFeatures {
  background: var(--sp-navy);
  padding: 2rem 1rem 3rem;
}

body.sp-theme .spFeatures h3 {
  color: #ffffff !important;
}

body.sp-theme .spFeatures p {
  color: var(--sp-ice) !important;
}

/* Facility sub-nav under header */
body.sp-theme .spFacilitySubnav,
body.sp-theme .spFacilitySubnavWrap {
  background: #061a32 !important;
  border-bottom: 1px solid rgba(78, 227, 255, 0.22) !important;
  box-shadow: none !important;
  color: #dce9ff !important;
}

body.sp-theme .spFacilitySubnav a,
body.sp-theme .spFacilitySubnav a:hover,
body.sp-theme .spFacilitySubnav a:focus,
body.sp-theme .spFacilitySubnav a:visited,
body.sp-theme .spFacilitySubnavWrap a,
body.sp-theme .spFacilitySubnavWrap a:hover {
  text-decoration: none !important;
}

/* Even nav gaps — My Center shares same padding as peer links */
body.sp-theme .venue-menu-container {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

body.sp-theme .venue-menu-container .header-link {
  padding: 8px 12px !important;
  margin: 0 !important;
}

body.sp-theme .spAppHeader__bar .spNavLink,
body.sp-theme .spAppHeader__bar a.spNavLink {
  margin: 0 !important;
}

/* Venue header tabs — keep FR labels on one row */
body.sp-theme .venue-nav-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body.sp-theme .venue-nav-tabs .spNavLink {
  font-size: 13px;
  padding: 8px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  body.sp-theme .venue-nav-tabs .spNavLink {
    font-size: 12px;
    padding: 8px 8px;
  }
}

@media (max-width: 1000px) {
  body.sp-theme .venue-nav-tabs {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
  }

  body.sp-theme .venue-nav-tabs .spNavLink {
    width: 100%;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 16px !important;
    padding: 10px 12px !important;
  }

  body.sp-theme .venue-menu-container,
  body.sp-theme .venue-menu-container .header-link {
    width: 100%;
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* Venue hero info strip (HeaderBottom) stays above content, never translucent white */
body.sp-theme .spVenueInfoBar {
  background: #071a33 !important;
  color: #dce9ff !important;
}

/* Loading / splash — night void, never white flash */
body.sp-theme .spLoading {
  background: #020b18 !important;
}

body.sp-theme .spLoading--transparent {
  background: rgba(2, 11, 24, 0.72) !important;
}

/* Activity filter chips spacing (Fallback if inline gap unsupported) */
body.sp-theme .spFilterChip {
  margin: 0 !important;
}

/* Subtle hover lift for night cards */
body.sp-theme .spHoverCard,
body.sp-theme .spCardDark.spHoverCard,
body.sp-theme a.spCardDark.spHoverCard {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.sp-theme .spHoverCard:hover,
body.sp-theme .spCardDark.spHoverCard:hover,
body.sp-theme a.spCardDark.spHoverCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(2, 11, 24, 0.5) !important;
  border-color: rgba(78, 227, 255, 0.4) !important;
}

/* Fixed Contact FAB */
body.sp-theme .spContactFab {
  background: linear-gradient(180deg, #2f8fff 0%, #1a6fd4 100%) !important;
  border: 1px solid rgba(78, 227, 255, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(2, 11, 24, 0.45) !important;
}

body.sp-theme .spContactFab:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 11, 24, 0.55) !important;
}

/* ————————————————————————————————————————————————————————
   Header actions — notification / chat icons, badges, account panel
   ———————————————————————————————————————————————————————— */

body.sp-theme .spHdrIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(47, 143, 255, 0.1);
  border: 1px solid rgba(78, 227, 255, 0.2);
  color: rgba(232, 241, 255, 0.92) !important;
  transition: background-color 0.22s ease, border-color 0.22s ease,
    color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

body.sp-theme .spHdrIcon svg {
  width: 20px;
  height: 20px;
  display: block;
}

body.sp-theme .spHdrIcon:hover {
  background: rgba(47, 143, 255, 0.2);
  border-color: rgba(78, 227, 255, 0.45);
  color: #4ee3ff !important;
  transform: translateY(-1px);
}

body.sp-theme .spHdrIcon--active {
  background: rgba(47, 143, 255, 0.24);
  border-color: rgba(78, 227, 255, 0.55);
  color: #4ee3ff !important;
  box-shadow: 0 0 18px rgba(47, 143, 255, 0.28);
}

/* Unread counter — pill so 99+ never clips, ring keeps it legible on navy.
   Element selector needed to outrank the blanket header text colour. */
body.sp-theme span.spUnreadBadge {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5b45 0%, #e02f1c 100%);
  border: 2px solid #061a32;
  box-shadow: 0 2px 8px rgba(224, 47, 28, 0.45);
  font-family: 'Poppins', 'Outfit', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #fff !important;
  pointer-events: none;
}

/* Avatar badges sit on a circle, so they hug the top-right corner tighter */
body.sp-theme span.spUnreadBadge--avatar {
  top: -4px;
  right: -4px;
}

/* Account switcher trigger */
body.sp-theme .spHdrUser {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

/* The nav can give up room; the actions never squash into each other */
body.sp-theme .spHdrActions {
  flex: 0 0 auto;
}

body.sp-theme .spHdrActions img {
  flex: 0 0 auto;
}

body.sp-theme .spHdrUser:hover,
body.sp-theme .spHdrUser--active {
  background: rgba(47, 143, 255, 0.16);
  border-color: rgba(78, 227, 255, 0.32);
}

body.sp-theme .spHdrUser__chevron {
  color: rgba(169, 220, 255, 0.85) !important;
  transition: color 0.22s ease;
}

body.sp-theme .spHdrUser:hover .spHdrUser__chevron,
body.sp-theme .spHdrUser--active .spHdrUser__chevron {
  color: #4ee3ff !important;
}

/* Account / menu panel */
body.sp-theme .spHdrPanel {
  background: linear-gradient(180deg, #0b2748 0%, #061a32 100%) !important;
  border: 1px solid rgba(78, 227, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 54px rgba(1, 8, 18, 0.68) !important;
  overflow: hidden;
}

/* Scroll lives inside the panel so the wheel never falls through to the page */
body.sp-theme .spHdrPanel__scroll {
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 227, 255, 0.4) transparent;
}

body.sp-theme .spHdrPanel__scroll::-webkit-scrollbar {
  width: 10px;
}

body.sp-theme .spHdrPanel__scroll::-webkit-scrollbar-track {
  background: transparent;
}

body.sp-theme .spHdrPanel__scroll::-webkit-scrollbar-thumb {
  background: rgba(78, 227, 255, 0.32);
  background-clip: content-box;
  border: 3px solid transparent;
  border-radius: 999px;
}

body.sp-theme .spHdrPanel__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 227, 255, 0.6);
  background-clip: content-box;
}

body.sp-theme .spHdrPanel__item {
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.sp-theme .spHdrPanel__item:hover {
  background: rgba(47, 143, 255, 0.16);
}

body.sp-theme .spHdrPanel__item:hover span,
body.sp-theme .spHdrPanel__item:hover {
  color: #4ee3ff !important;
}

/* Menu glyphs are dark-on-light PNGs — flip them for the navy panel */
body.sp-theme .spHdrPanel__glyph {
  filter: brightness(0) invert(1) opacity(0.78);
  transition: filter 0.2s ease;
}

body.sp-theme .spHdrPanel__item:hover .spHdrPanel__glyph {
  filter: brightness(0) invert(1) opacity(1);
}

/* Account rows inside the switcher */
body.sp-theme .spHdrAccount {
  border-radius: 10px;
  margin: 2px 6px;
  transition: background-color 0.2s ease;
}

body.sp-theme .spHdrAccount:hover {
  background: rgba(47, 143, 255, 0.14);
}

body.sp-theme .spHdrAccount--active {
  background: rgba(47, 143, 255, 0.22);
  box-shadow: inset 3px 0 0 #4ee3ff;
}

body.sp-theme .spHdrAccount--active span {
  color: #4ee3ff !important;
}

body.sp-theme .spHdrAddAccount:hover span {
  color: #4ee3ff !important;
}

/* ————————————————————————————————————————————————————————
   Login / auth — floodlit night pitch + glass credential card
   ———————————————————————————————————————————————————————— */

.spLogin {
  --spl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spl-ice: #e9f2ff;
  --spl-muted: rgba(215, 232, 255, 0.72);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px clamp(1rem, 4vw, 3.5rem) 72px;
  background: #020b18;
  color: var(--spl-ice);
  font-family: var(--sp-body, 'Outfit', system-ui, sans-serif);
  isolation: isolate;
  overflow: hidden;
}

.spLogin__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(0.6) contrast(1.06) brightness(0.6) hue-rotate(-8deg);
  transform: scale(1.06);
  animation: spLoginDrift 28s ease-in-out infinite alternate;
  z-index: 0;
}

.spLogin__veil,
.spLogin__grid,
.spLogin__orb {
  position: absolute;
  pointer-events: none;
}

.spLogin__veil {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 22% 26%, rgba(47, 143, 255, 0.3), transparent 66%),
    radial-gradient(ellipse 50% 45% at 84% 18%, rgba(78, 227, 255, 0.16), transparent 68%),
    linear-gradient(
      100deg,
      rgba(2, 11, 24, 0.95) 0%,
      rgba(3, 15, 32, 0.82) 42%,
      rgba(4, 20, 40, 0.62) 72%,
      rgba(7, 26, 51, 0.72) 100%
    ),
    linear-gradient(180deg, rgba(2, 11, 24, 0.9) 0%, transparent 26%, rgba(2, 11, 24, 0.82) 100%);
}

/* Perspective pitch lines fading into the void */
.spLogin__grid {
  left: -25%;
  right: -25%;
  bottom: -6%;
  height: 58%;
  z-index: 1;
  opacity: 0.32;
  transform: perspective(680px) rotateX(74deg);
  transform-origin: bottom center;
  background-image:
    repeating-linear-gradient(90deg, rgba(78, 227, 255, 0.24) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(78, 227, 255, 0.18) 0 1px, transparent 1px 92px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%, transparent 100%);
}

.spLogin__orb {
  border-radius: 50%;
  filter: blur(6px);
  z-index: 1;
}

.spLogin__orb--a {
  top: 8%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: radial-gradient(circle, rgba(47, 143, 255, 0.24), transparent 66%);
  animation: spLoginFloat 9s ease-in-out infinite alternate;
}

.spLogin__orb--b {
  right: -12%;
  bottom: -14%;
  width: 40vw;
  height: 40vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, rgba(78, 227, 255, 0.2), transparent 68%);
  animation: spLoginFloat 11s ease-in-out infinite alternate-reverse;
}

.spLogin__inner {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

/* —— Left: brand story —— */
.spLogin__intro {
  animation: spLoginRise 0.8s var(--spl-ease) both;
}

.spLogin__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(78, 227, 255, 0.32);
  background: rgba(47, 143, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a9dcff;
}

.spLogin__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ee3ff;
  box-shadow: 0 0 12px rgba(78, 227, 255, 0.9);
  animation: spLoginBlink 2.4s ease-in-out infinite;
}

.spLogin__brand {
  display: block;
  margin: 0 0 0.9rem;
  font-family: var(--sp-display, 'Syne', system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow: 0 0 46px rgba(47, 143, 255, 0.38);
}

.spLogin__brand::after {
  content: '';
  display: block;
  margin-top: 0.85rem;
  width: 148px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4ee3ff, #2f8fff, transparent);
}

.spLogin__headline {
  margin: 0 0 0.7rem;
  font-family: var(--sp-display, 'Syne', system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f3f9ff;
  max-width: 22ch;
}

.spLogin__sub {
  margin: 0 0 2rem;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.55;
  color: var(--spl-muted);
  max-width: 38ch;
}

.spLogin__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.spLogin__point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(224, 238, 255, 0.86);
}

.spLogin__tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 143, 255, 0.16);
  border: 1px solid rgba(78, 227, 255, 0.42);
  color: #4ee3ff;
}

.spLogin__tick svg {
  width: 12px;
  height: 12px;
}

/* —— Right: credential card —— */
.spLogin__cardWrap {
  display: flex;
  justify-content: center;
}

.spLoginCard {
  position: relative;
  width: min(450px, 100%);
  padding: clamp(1.75rem, 2.6vw, 2.5rem);
  border-radius: 26px;
  border: 1px solid rgba(78, 227, 255, 0.24);
  background:
    linear-gradient(168deg, rgba(13, 43, 79, 0.88) 0%, rgba(4, 16, 33, 0.92) 100%);
  box-shadow:
    0 34px 80px rgba(1, 8, 18, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  overflow: hidden;
  animation: spLoginRise 0.8s var(--spl-ease) 0.1s both;
}

.spLoginCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78, 227, 255, 0.85), transparent);
}

.spLoginCard::after {
  content: '';
  position: absolute;
  top: -35%;
  right: -30%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 143, 255, 0.28), transparent 68%);
  pointer-events: none;
}

.spLoginCard__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.9rem;
}

.spLoginCard__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(47, 143, 255, 0.24), rgba(78, 227, 255, 0.08));
  border: 1px solid rgba(78, 227, 255, 0.34);
  box-shadow: 0 12px 30px rgba(2, 11, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.spLoginCard__mark img {
  width: 44px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(78, 227, 255, 0.55));
}

.spLoginCard__title {
  margin: 1.05rem 0 0;
  font-family: var(--sp-display, 'Syne', system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.spLoginCard__rule {
  margin-top: 0.9rem;
  width: 54px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4ee3ff, #2f8fff);
}

.spLoginCard__body {
  position: relative;
  z-index: 1;
}

/* Fields */
.spLoginFields {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.65rem;
}

.spLoginField__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.spLoginField__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(169, 220, 255, 0.9);
}

body.sp-theme .spLogin .spLoginField__link {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  color: rgba(215, 232, 255, 0.62) !important;
  transition: color 0.2s ease;
}

body.sp-theme .spLogin .spLoginField__link:hover {
  color: #4ee3ff !important;
}

.spLoginField__box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 54px;
  padding: 0 1.05rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(122, 173, 236, 0.24);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.spLoginField__box:focus-within {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(78, 227, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 143, 255, 0.16);
}

.spLoginField__icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: rgba(169, 220, 255, 0.62);
  transition: color 0.25s ease;
}

.spLoginField__box:focus-within .spLoginField__icon {
  color: #4ee3ff;
}

.spLoginField__icon svg {
  width: 18px;
  height: 18px;
}

body.sp-theme .spLogin .spLoginInput {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #edf5ff !important;
}

body.sp-theme .spLogin .spLoginInput::placeholder {
  color: rgba(215, 232, 255, 0.34) !important;
}

body.sp-theme .spLogin .spLoginInput:-webkit-autofill,
body.sp-theme .spLogin .spLoginInput:-webkit-autofill:hover,
body.sp-theme .spLogin .spLoginInput:-webkit-autofill:focus {
  -webkit-text-fill-color: #edf5ff;
  -webkit-box-shadow: 0 0 0 1000px rgba(9, 30, 56, 0.98) inset;
  caret-color: #edf5ff;
  transition: background-color 9999s ease-in-out 0s;
}

/* Primary action */
.spLoginBtn {
  position: relative;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #02131f;
  background: linear-gradient(100deg, #4ee3ff 0%, #2f8fff 58%, #1a6fd4 100%);
  box-shadow: 0 16px 34px rgba(47, 143, 255, 0.32);
  transition: transform 0.25s var(--spl-ease), box-shadow 0.25s var(--spl-ease),
    filter 0.25s ease;
}

.spLoginBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--spl-ease);
}

.spLoginBtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 44px rgba(47, 143, 255, 0.48);
}

.spLoginBtn:hover::after {
  left: 115%;
}

.spLoginBtn:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(47, 143, 255, 0.34);
}

.spLoginBtn:focus-visible {
  outline: 2px solid #4ee3ff;
  outline-offset: 3px;
}

.spLoginBtn--ghost {
  color: #dce9ff;
  background: rgba(47, 143, 255, 0.14);
  border: 1px solid rgba(78, 227, 255, 0.38);
  box-shadow: none;
}

.spLoginBtn--ghost:hover {
  background: rgba(47, 143, 255, 0.22);
  box-shadow: 0 14px 30px rgba(2, 11, 24, 0.45);
}

.spLoginLoader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

/* Inline notices */
.spLoginNotice {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(230, 103, 91, 0.42);
  background: rgba(230, 65, 49, 0.12);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #ffd6d0;
}

body.sp-theme .spLogin .spLoginNotice__link {
  color: #ffb3a8 !important;
  text-decoration: underline;
  cursor: pointer;
}

.spLoginMessage {
  position: relative;
  z-index: 1;
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
  color: var(--spl-muted);
}

/* Mobile store prompt above the card */
.spLoginApps {
  display: none;
}

.spLogin__lang {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vh, 2rem);
  z-index: 3;
}

body.sp-theme .spLogin__lang select {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(78, 227, 255, 0.28);
  background: rgba(6, 26, 50, 0.85);
  color: rgba(215, 232, 255, 0.85);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

@media (max-width: 980px) {
  .spLogin__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 2.25rem;
  }

  .spLogin__intro {
    display: none;
  }

  .spLogin__grid {
    height: 44%;
  }
}

@media (max-width: 560px) {
  .spLogin {
    padding: 84px 1rem 56px;
    align-items: flex-start;
  }

  .spLoginCard {
    padding: 1.6rem 1.25rem;
    border-radius: 22px;
  }

  .spLoginApps {
    display: block;
    width: min(450px, 100%);
    margin-bottom: 1.1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(78, 227, 255, 0.2);
    background: rgba(7, 26, 51, 0.7);
    text-align: center;
  }

  .spLoginApps__text {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--spl-muted);
  }

  .spLoginApps__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .spLoginApps__row img {
    width: 44%;
    max-width: 150px;
    height: auto;
  }

  .spLogin__lang {
    position: static;
    margin: 1.5rem auto 0;
    text-align: center;
  }
}

@keyframes spLoginRise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes spLoginDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1.5%, 0);
  }
}

@keyframes spLoginFloat {
  from {
    opacity: 0.55;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0.95;
    transform: translate3d(3%, -4%, 0) scale(1.08);
  }
}

@keyframes spLoginBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spLogin__photo,
  .spLogin__orb,
  .spLogin__eyebrow::before,
  .spLoginCard,
  .spLogin__intro {
    animation: none !important;
  }
}

/* ————————————————————————————————————————————————————————
   Logged-in app screens — third party widgets ship their own
   white chrome, which has to be repainted here
   ———————————————————————————————————————————————————————— */

body.sp-theme .react-datepicker,
body.sp-theme .react-datepicker__time-container,
body.sp-theme .react-datepicker__time,
body.sp-theme .react-datepicker__time-box {
  background-color: #0b2748 !important;
  border-color: rgba(78, 227, 255, 0.22) !important;
  color: #dce9ff !important;
}

body.sp-theme .react-datepicker__header {
  background-color: #0e2f55 !important;
  border-bottom-color: rgba(78, 227, 255, 0.12) !important;
}

body.sp-theme .react-datepicker__current-month,
body.sp-theme .react-datepicker-time__header,
body.sp-theme .react-datepicker__day-name,
body.sp-theme .react-datepicker__day,
body.sp-theme .react-datepicker__time-name,
body.sp-theme .react-datepicker__time-list-item {
  color: #dce9ff !important;
}

body.sp-theme .react-datepicker__day:hover,
body.sp-theme .react-datepicker__month-text:hover,
body.sp-theme .react-datepicker__time-list-item:hover {
  background-color: rgba(47, 143, 255, 0.24) !important;
}

body.sp-theme .react-datepicker__day--selected,
body.sp-theme .react-datepicker__day--keyboard-selected,
body.sp-theme .react-datepicker__time-list-item--selected {
  background-color: #2f8fff !important;
  color: #ffffff !important;
}

body.sp-theme .react-datepicker__day--disabled {
  color: rgba(215, 232, 255, 0.35) !important;
}

body.sp-theme .react-datepicker__triangle::before,
body.sp-theme .react-datepicker__triangle::after {
  border-bottom-color: #0e2f55 !important;
}

/* Manage-venue: keep the mini calendar and weekly grid inside the page */
body.sp-theme .week-calendar,
body.sp-theme .week-calendar .react-datepicker,
body.sp-theme .week-calendar .react-datepicker__month-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

body.sp-theme .week-calendar .react-datepicker__week-number {
  color: rgba(215, 232, 255, 0.55) !important;
}

body.sp-theme .rbc-calendar,
body.sp-theme .rbc-time-view {
  width: 100%;
  min-width: 0;
  height: 100%;
}

body.sp-theme .rbc-time-header,
body.sp-theme .rbc-time-header-content {
  overflow: hidden;
}

body.sp-theme .rbc-time-content {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Kids landing keeps the validated light mockup inside the night-chrome site */
body.sp-theme .kids-page {
  background: #eaf2fb;
  color: #33414f;
}

body.sp-theme .kids-page a {
  color: inherit;
}

body.sp-theme .kids-page input,
body.sp-theme .kids-page textarea,
body.sp-theme .kids-page select {
  color: #33414f;
  background: #ffffff;
}

body.sp-theme .kids-page input::placeholder,
body.sp-theme .kids-page textarea::placeholder {
  color: #8a93a0;
}

/* —— Excel datasheet (organize activities) —— */
body.sp-theme .datasheet-page {
  padding: 16px 20px 32px;
  min-height: calc(100vh - 72px);
  box-sizing: border-box;
}

body.sp-theme .datasheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #0a2340 0%, #061a32 100%);
  border: 1px solid rgba(78, 227, 255, 0.22);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(2, 11, 24, 0.35);
}

body.sp-theme .datasheet-toolbar-title {
  font-family: Syne, Outfit, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

body.sp-theme .datasheet-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.sp-theme .datasheet-icon-btn {
  color: #4ee3ff !important;
}

body.sp-theme .datasheet-btn {
  text-transform: none !important;
  font-family: Outfit, Lato, sans-serif !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  color: #dce9ff !important;
  border-color: rgba(78, 227, 255, 0.35) !important;
  background: rgba(11, 39, 72, 0.7) !important;
  box-shadow: none !important;
}

body.sp-theme .datasheet-btn:hover {
  border-color: #4ee3ff !important;
  color: #4ee3ff !important;
  background: rgba(47, 143, 255, 0.14) !important;
}

body.sp-theme .datasheet-btn-save {
  background: linear-gradient(180deg, #2f8fff 0%, #1d6fd6 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

body.sp-theme .datasheet-btn-save:hover {
  background: linear-gradient(180deg, #4ee3ff 0%, #2f8fff 100%) !important;
  color: #020b18 !important;
}

body.sp-theme .datasheet-export-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.sp-theme .datasheet-sheet {
  max-height: calc(100vh - 210px);
  overflow: auto;
  border: 1px solid rgba(78, 227, 255, 0.22);
  border-radius: 14px;
  background: #0b2748;
  box-shadow: 0 18px 44px rgba(2, 11, 24, 0.35);
}

body.sp-theme .datasheet-page .MuiTable-root {
  background: transparent;
}

body.sp-theme .datasheet-page .MuiTableCell-root {
  color: #dce9ff !important;
  background-color: #0b2748 !important;
  border-color: rgba(78, 227, 255, 0.12) !important;
  font-family: Outfit, Lato, sans-serif;
}

body.sp-theme .datasheet-page thead .MuiTableCell-root {
  background-color: #071a33 !important;
  color: #ffffff !important;
  font-family: Syne, Outfit, sans-serif;
  font-weight: 700;
}

body.sp-theme .datasheet-page .datasheet-cell-readonly {
  background-color: #071a33 !important;
  color: rgba(215, 232, 255, 0.55) !important;
}

body.sp-theme .datasheet-page .datasheet-cell-selected {
  box-shadow: inset 0 0 0 1px #4ee3ff !important;
  background-color: rgba(47, 143, 255, 0.18) !important;
}

body.sp-theme .datasheet-page .MuiTableBody-root .MuiTableRow-root:hover .MuiTableCell-root {
  background-color: rgba(47, 143, 255, 0.1) !important;
}

body.sp-theme .datasheet-page .MuiTableCell-root input,
body.sp-theme .datasheet-page .MuiTableCell-root textarea {
  color: #dce9ff !important;
  background: rgba(3, 15, 30, 0.72) !important;
  border: 1px solid #4ee3ff !important;
  border-radius: 4px;
}

body.sp-theme .datasheet-menu-paper {
  background: #0b2748 !important;
  color: #dce9ff !important;
  border: 1px solid rgba(78, 227, 255, 0.28) !important;
}

body.sp-theme .datasheet-menu-paper .MuiMenuItem-root,
body.sp-theme .datasheet-menu-paper .MuiListItemText-root,
body.sp-theme .datasheet-menu-paper .MuiTypography-root {
  color: #dce9ff !important;
}

body.sp-theme .datasheet-filter-paper .MuiFormLabel-root,
body.sp-theme .datasheet-filter-paper label {
  color: rgba(215, 232, 255, 0.78) !important;
}

body.sp-theme .datasheet-filter-paper .MuiInputBase-root,
body.sp-theme .datasheet-filter-paper .MuiInputBase-input {
  color: #dce9ff !important;
}

body.sp-theme .datasheet-import-card {
  background: #0e2f55;
  border: 1px solid rgba(78, 227, 255, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(2, 11, 24, 0.35);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.sp-theme .datasheet-import-card:hover {
  border-color: #4ee3ff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 143, 255, 0.22);
}

body.sp-theme .datasheet-import-card--disabled,
body.sp-theme .datasheet-import-card--disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

body.sp-theme .datasheet-import-soon {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4ee3ff;
  font-family: Outfit, sans-serif;
}

@media (max-width: 720px) {
  body.sp-theme .datasheet-import-modal [style*="flex-direction: row"] {
    flex-direction: column;
  }
}


