/* =========================================================
   SMOOTH JAZZ FITNESS
   SUPREME MAX PRODUCTION CSS
   PART 1 OF 3

   Root • Reset • Background • Core UI • Buttons
   Header/Nav • Member Menu • Mobile Menu
   Modals • Toast • Visibility/Auth/Premium Helpers
   Mobile-first • Luxury Neon Wellness • App-ready
   12/10 Production Ready
========================================================= */

/* =========================================================
   1) ROOT TOKENS
========================================================= */

:root {
  --bg: #050712;
  --bg2: #090d1d;
  --bg3: #02040a;

  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --soft: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.38);

  --cyan: #00e5ff;
  --pink: #ff2bd6;
  --purple: #7c3cff;
  --gold: #ffd166;
  --orange: #ff9f1c;
  --green: #79ff7a;
  --danger: #ff3b5c;

  --glass: rgba(7, 10, 28, 0.74);
  --glass-strong: rgba(5, 7, 18, 0.94);
  --glass-soft: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);

  --shadow: 0 32px 110px rgba(0, 0, 0, 0.62);
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.34);
  --glow: 0 0 38px rgba(0, 229, 255, 0.28), 0 0 64px rgba(255, 43, 214, 0.18);
  --gold-glow: 0 18px 50px rgba(255, 159, 28, 0.28);
  --green-glow: 0 18px 52px rgba(121, 255, 122, 0.22);

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --max: 1220px;
  --page-x: clamp(16px, 4vw, 44px);
  --topbar-height: 84px;

  --site-background-image: url("/assets/background.png");

  --ease: 220ms ease;
  --ease-long: 360ms ease;
}

/* =========================================================
   2) RESET / BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(
      180deg,
      rgba(3, 6, 17, 0.54) 0%,
      rgba(3, 6, 17, 0.72) 44%,
      rgba(3, 6, 17, 0.9) 100%
    ),
    radial-gradient(circle at 12% 14%, rgba(0, 229, 255, 0.18), transparent 25%),
    radial-gradient(circle at 86% 10%, rgba(255, 43, 214, 0.16), transparent 25%),
    var(--site-background-image),
    linear-gradient(180deg, #050712 0%, #090d1d 100%);
  background-size: cover, auto, auto, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: Inter, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
  color-scheme: dark;
}

::selection {
  color: #ffffff;
  background: var(--pink);
}

[hidden] {
  display: none !important;
}

/* =========================================================
   3) ACCESSIBILITY / FOCUS
========================================================= */

.skip-link {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 999px;
  color: #07101a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-weight: 1000;
  transform: translateY(-160%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(0, 229, 255, 0.78);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

/* =========================================================
   4) GLOBAL BACKGROUND LAYERS
========================================================= */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 229, 255, 0.25), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(255, 43, 214, 0.27), transparent 34%),
    radial-gradient(circle at 50% 88%, rgba(255, 159, 28, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(2, 4, 18, 0.5), rgba(5, 7, 18, 0.92)),
    var(--site-background-image) center / cover no-repeat fixed;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 7, 18, 0.08), rgba(5, 7, 18, 0.92)),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.48) 72%);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.075;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 76px 76px, 18px 18px;
  mix-blend-mode: screen;
}

@media (max-width: 900px), (hover: none) {
  body,
  .site-bg {
    background-attachment: scroll;
  }
}

/* =========================================================
   5) CORE TYPOGRAPHY / SHARED UI
========================================================= */

.glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tiny {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  color: #ffffff;
}

h1 {
  margin: 0;
  font-size: clamp(3.05rem, 8vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

h1 span,
.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

h4 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

strong {
  color: #ffffff;
}

main {
  position: relative;
  z-index: 1;
}

#router-view {
  min-height: 52vh;
  scroll-margin-top: calc(var(--topbar-height) + 24px);
}

.router-loading {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.router-state-card {
  text-align: center;
}

/* =========================================================
   6) BUTTONS
========================================================= */

.btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: 0.025em;
  text-align: center;
  user-select: none;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease),
    background var(--ease),
    opacity var(--ease),
    color var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:disabled,
.btn[aria-disabled="true"],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn.gold {
  color: #080812;
  border-color: rgba(255, 209, 102, 0.88);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: var(--gold-glow);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.065);
}

.btn.glass-btn {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.23), rgba(255, 43, 214, 0.18));
}

.btn.danger {
  color: #ffffff;
  border-color: rgba(255, 59, 92, 0.45);
  background: linear-gradient(135deg, rgba(255, 59, 92, 0.92), rgba(255, 43, 214, 0.62));
}

.btn.big {
  min-height: 62px;
  padding-inline: 30px;
}

.btn.full {
  width: 100%;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

/* =========================================================
   7) HEADER / TOPBAR / DESKTOP NAV
   Centered nav tabs • Luxury glass effects • Clean actions
========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  min-height: var(--topbar-height);
  padding: calc(12px + env(safe-area-inset-top)) clamp(14px, 4vw, 42px) 12px;

  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 22px);

  background:
    linear-gradient(to bottom, rgba(5, 7, 18, 0.965), rgba(5, 7, 18, 0.72)),
    radial-gradient(circle at 12% 20%, rgba(0, 229, 255, 0.11), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 43, 214, 0.1), transparent 30%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.105);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(0, 229, 255, 0.055);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Brand left */
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 1000;
  letter-spacing: -0.04em;
  white-space: nowrap;
  transition:
    transform var(--ease),
    filter var(--ease);
}

.brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.22));
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.13),
    0 0 30px rgba(0, 229, 255, 0.24),
    0 0 38px rgba(255, 43, 214, 0.12);
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}

.brand:hover img {
  transform: rotate(-2deg) scale(1.035);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 36px rgba(0, 229, 255, 0.34),
    0 0 44px rgba(255, 43, 214, 0.18);
}

.brand span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

/* Center nav tabs */
.desktop-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: fit-content;
  max-width: 100%;
  padding: 6px;

  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 34px rgba(0, 0, 0, 0.18);
}

/* Nav links with premium effects */
.desktop-nav a {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  white-space: nowrap;

  background: transparent;
  border: 1px solid transparent;

  transition:
    color var(--ease),
    background var(--ease),
    transform var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}

.desktop-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(255, 43, 214, 0.18)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 35%);
  opacity: 0;
  transition: opacity var(--ease);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 2px;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold));
  box-shadow:
    0 0 12px rgba(0, 229, 255, 0.42),
    0 0 18px rgba(255, 43, 214, 0.28);
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity var(--ease),
    transform var(--ease);
}

.desktop-nav a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(0, 229, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.desktop-nav a:hover::before {
  opacity: 1;
}

.desktop-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.desktop-nav a.active,
.desktop-nav a[aria-current="page"] {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(255, 43, 214, 0.17)),
    rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(0, 229, 255, 0.15),
    0 0 34px rgba(255, 43, 214, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.desktop-nav a.active::before,
.desktop-nav a[aria-current="page"]::before {
  opacity: 1;
}

.desktop-nav a.active::after,
.desktop-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Actions right */
.top-actions {
  justify-self: end;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.plan-pill {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #07101a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 0.78rem;
  font-weight: 1000;
  box-shadow: 0 12px 30px rgba(255, 159, 28, 0.19);
}

.plan-pill.premium {
  color: #051017;
  border-color: rgba(121, 255, 122, 0.6);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: var(--green-glow);
}

/* Member + mobile buttons */
.member-avatar,
.nav-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease),
    background var(--ease);
}

.member-avatar::before,
.nav-toggle::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--pink), var(--gold));
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--ease);
}

.member-avatar:hover,
.nav-toggle:hover,
.member-avatar[aria-expanded="true"],
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(0, 229, 255, 0.42);
  transform: translateY(-2px) scale(1.035);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(0, 229, 255, 0.18),
    0 0 34px rgba(255, 43, 214, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.member-avatar:hover::before,
.nav-toggle:hover::before,
.member-avatar[aria-expanded="true"]::before,
.nav-toggle[aria-expanded="true"]::before {
  opacity: 0.78;
}

.member-avatar span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 1000;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.23), transparent 35%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.34), rgba(255, 43, 214, 0.3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 18px rgba(0, 229, 255, 0.12);
}

.nav-toggle {
  display: none;
  gap: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
  transition:
    transform var(--ease),
    opacity var(--ease);
}

.nav-toggle.active span:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2),
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3),
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   8) MEMBER MENU
   Clean list:
   Login / Sign Up Free
   Dashboard
   Smooth Plus / Premium
   Redeem VIP Code
   My Progress
   Contact
   Delete Account
   Logout
========================================================= */

.member-menu {
  position: fixed;
  top: calc(74px + env(safe-area-inset-top));
  right: clamp(14px, 4vw, 42px);
  z-index: 420;
  width: min(350px, calc(100vw - 28px));
  max-height: calc(100vh - 98px - env(safe-area-inset-top));
  overflow: auto;
  display: none;
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(5, 7, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.member-menu.active,
.member-menu.is-open {
  display: block;
}

.member-menu-head,
.member-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 1000;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.38), rgba(255, 43, 214, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.16);
}

.member-menu-info {
  min-width: 0;
}

.member-menu-head strong,
.member-header strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-menu-head span,
.member-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-menu-head small,
.member-header small {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #07101a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-menu-list {
  display: grid;
  gap: 4px;
}

.member-divider,
.member-menu-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.12);
}

.member-item {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  border: 0;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 850;
  text-align: left;
  transition:
    background var(--ease),
    color var(--ease),
    transform var(--ease);
}

.member-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.member-item:active {
  transform: scale(0.99);
}

.member-item.logout {
  color: var(--cyan);
}

.member-item.danger {
  color: #ff8fa1;
}

.member-item.danger:hover {
  color: #ffffff;
  background: rgba(255, 59, 92, 0.16);
}

/* =========================================================
   9) MOBILE MENU
========================================================= */

.mobile-menu {
  position: fixed;
  inset: calc(84px + env(safe-area-inset-top)) 0 0;
  z-index: 250;
  display: none;
  padding: 16px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: auto;
}

.mobile-menu.active,
.mobile-menu.is-open {
  display: block;
}

.mobile-menu-card {
  width: min(720px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  padding: 16px;
  background: rgba(5, 7, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  display: grid;
  gap: 7px;
}

.mobile-menu-card a {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
  transition:
    color var(--ease),
    background var(--ease);
}

.mobile-menu-card a.active,
.mobile-menu-card a[aria-current="page"],
.mobile-menu-card a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.mobile-menu-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* =========================================================
   10) MODALS / POPUPS
========================================================= */

.modal,
.smooth-popup {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal.active,
.modal.is-open,
.smooth-popup.active,
.smooth-popup.is-open {
  display: flex;
}

.modal-card,
.smooth-popup-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 42px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
  padding: clamp(24px, 5vw, 38px);
  border-radius: var(--radius-xl);
  color: #ffffff;
}

.modal-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(5, 7, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.smooth-popup-card {
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(5, 7, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.modal-close,
.smooth-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    background var(--ease),
    transform var(--ease);
}

.modal-close:hover,
.smooth-popup-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(8deg);
}

.modal-logo {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  object-fit: cover;
  margin: 0 auto 18px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.22);
}

.modal-card h2,
.smooth-popup-card h3 {
  text-align: center;
}

.modal-card > p,
.smooth-popup-card > p {
  text-align: center;
}

.danger-modal {
  border-color: rgba(255, 59, 92, 0.38);
}

.smooth-popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.05rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 43, 214, 0.23));
  box-shadow: var(--glow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 1000;
}

.auth-tabs button.active,
.auth-tabs button[aria-selected="true"] {
  color: #07101a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: grid;
}

.auth-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.auth-premium-note {
  text-align: center;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 16px 0;
}

/* =========================================================
   11) FORMS FOUNDATION
========================================================= */

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.085);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    background var(--ease);
}

.form textarea {
  min-height: 150px;
  padding-top: 16px;
  resize: vertical;
}

.form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12);
}

.form-status {
  min-height: 22px;
  color: var(--cyan);
  font-weight: 850;
}

.form-status:empty {
  min-height: 0;
}

/* =========================================================
   12) TOAST
========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 1000;
  width: min(520px, calc(100vw - 28px));
  padding: 14px 18px;
  border-radius: 999px;
  color: #07101a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: var(--gold-glow);
  font-weight: 1000;
  text-align: center;
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--ease-long),
    opacity var(--ease-long);
}

.toast.show,
.toast.active {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* =========================================================
   13) AUTH / PLAN / PREMIUM VISIBILITY HELPERS
========================================================= */

.is-hidden,
.hidden {
  display: none !important;
}

html[data-auth="guest"] .signed-in-only,
html[data-auth="guest"] .auth-only,
html[data-auth="guest"] .auth-only-nav,
html[data-auth="guest"] .logged-in-only,
html[data-auth="guest"] [data-auth-only],
body.is-guest .signed-in-only,
body.is-guest .auth-only,
body.is-guest .auth-only-nav,
body.is-guest .logged-in-only,
body.is-guest [data-auth-only] {
  display: none !important;
}

html[data-auth="signed-in"] .guest-only,
html[data-auth="signed-in"] .guest-only-nav,
html[data-auth="signed-in"] .login-only,
html[data-auth="signed-in"] .logged-out-only,
html[data-auth="signed-in"] [data-guest-only],
body.is-signed-in .guest-only,
body.is-signed-in .guest-only-nav,
body.is-signed-in .login-only,
body.is-signed-in .logged-out-only,
body.is-signed-in [data-guest-only] {
  display: none !important;
}

html[data-plan="premium"] .upgrade-only,
html[data-plan="premium"] .dashboard-upgrade-jump,
html[data-plan="premium"] .premium-upgrade-trigger,
html[data-plan="premium"] .upgrade-now,
html[data-plan="premium"] [data-upgrade-only],
body.is-premium .upgrade-only,
body.is-premium .dashboard-upgrade-jump,
body.is-premium .premium-upgrade-trigger,
body.is-premium .upgrade-now,
body.is-premium [data-upgrade-only] {
  display: none !important;
}

html:not([data-plan="premium"]) .premium-only,
html:not([data-plan="premium"]) [data-premium-only],
html[data-plan="guest"] .premium-only,
html[data-plan="free"] .premium-only,
html[data-plan="guest"] [data-premium-only],
html[data-plan="free"] [data-premium-only],
body:not(.is-premium) .premium-only,
body:not(.is-premium) [data-premium-only] {
  display: none !important;
}

html[data-plan="guest"] .free-only,
html[data-plan="premium"] .free-only,
html[data-plan="guest"] [data-free-only],
html[data-plan="premium"] [data-free-only],
body.is-guest .free-only,
body.is-premium .free-only,
body.is-guest [data-free-only],
body.is-premium [data-free-only] {
  display: none !important;
}

html[data-plan="premium"] [data-free-ads],
body.is-premium [data-free-ads],
html[data-plan="premium"] .ecosystem-ad-zone,
body.is-premium .ecosystem-ad-zone,
html[data-plan="premium"] .floating-ecosystem-ad,
body.is-premium .floating-ecosystem-ad,
html[data-plan="premium"] .floating-ad,
body.is-premium .floating-ad {
  display: none !important;
}

.premium-lock-card {
  position: relative;
}

.premium-lock-card.is-unlocked {
  border-color: rgba(121, 255, 122, 0.28);
}

.premium-lock-card.is-premium-teaser {
  border-color: rgba(255, 209, 102, 0.2);
}

/* =========================================================
   14) RESPONSIVE HEADER / NAV
========================================================= */

/* Desktop: pull nav closer to member icon after removing duplicate Dashboard button */
@media (min-width: 981px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  .desktop-nav {
    justify-self: end !important;
    margin-left: auto !important;
  }

  .top-actions {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-left: 10px !important;
  }

  #memberMenuBtn.member-avatar {
    margin-left: 0 !important;
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 4px;
  }

  .desktop-nav a {
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .brand span {
    max-width: 170px;
  }
}

@media (max-width: 980px) {
  :root {
    --topbar-height: 82px;
  }

  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .top-actions {
    gap: 8px !important;
    margin-left: 0 !important;
  }

  .top-actions .btn:not(.landing-signup-btn) {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --topbar-height: 78px;
  }

  .topbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .brand span {
    max-width: 145px;
    font-size: 0.98rem;
  }

  .landing-signup-btn {
    display: none;
  }

  .member-avatar,
  .nav-toggle {
    width: 43px;
    height: 43px;
    min-width: 43px;
    border-radius: 14px;
  }

  .member-menu {
    top: calc(70px + env(safe-area-inset-top));
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 84px - env(safe-area-inset-top));
  }

  .mobile-menu {
    inset: calc(76px + env(safe-area-inset-top)) 0 0;
    padding: 10px;
  }

  h1 {
    font-size: clamp(2.45rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .btn.big {
    min-height: 56px;
    padding-inline: 22px;
  }

  .modal,
  .smooth-popup {
    align-items: flex-end;
    padding-inline: 10px;
  }

  .modal-card,
  .smooth-popup-card {
    width: 100%;
    border-radius: 28px 28px 18px 18px;
  }

  .toast {
    border-radius: 22px;
  }
}

/* =========================================================
   15) REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* =========================================================
   SMOOTH JAZZ FITNESS
   SUPREME MAX PRODUCTION CSS
   PART 2 OF 3

   Public Pages • Hero • Sections • Cards • Forms
   Home • About • Contact • Terms • Policy • News
   Workout Plans • Public AI Smooth Coach • Newsletter
   Footer • Social Icons
   12/10 Production Ready
========================================================= */

/* =========================================================
   1) HERO / LANDING
========================================================= */

.hero {
  min-height: calc(100vh - var(--topbar-height));
  display: grid;
  place-items: center;
  padding: 32px var(--page-x) 56px;
}

.hero-content {
  width: min(var(--max), 100%);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(26px, 6vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
}

.hero-content::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -170px;
  top: -190px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 43, 214, 0.34), transparent 58%),
    radial-gradient(circle, rgba(0, 229, 255, 0.24), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-dashboard {
  display: grid;
  gap: 14px;
}

.mini-card {
  min-height: 118px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.125);
  background: rgba(255, 255, 255, 0.085);
}

.mini-card span,
.mini-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.mini-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.055em;
}

.premium-mini-card strong {
  color: var(--gold);
}

/* =========================================================
   2) GLOBAL PAGE SECTIONS
========================================================= */

.spa-page {
  width: 100%;
  min-height: 60vh;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 24px auto;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-xl);
}

.page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 42px auto 24px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -90px -160px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 229, 255, 0.22), transparent 65%),
    radial-gradient(circle, rgba(255, 43, 214, 0.18), transparent 78%);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 24px auto 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid,
.contact-feature-grid,
.about-feature-grid,
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.page-card,
.feature-grid > article,
.feature-grid > div,
.contact-feature-grid > article,
.about-feature-grid > article,
.home-feature-grid > article {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.page-card::after,
.feature-grid > article::after,
.feature-grid > div::after,
.contact-feature-grid > article::after,
.about-feature-grid > article::after,
.home-feature-grid > article::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.13), transparent 72%);
  pointer-events: none;
}

.page-card > *,
.feature-grid > article > *,
.feature-grid > div > *,
.contact-feature-grid > article > *,
.about-feature-grid > article > *,
.home-feature-grid > article > * {
  position: relative;
  z-index: 1;
}

.page-card p:last-child,
.feature-grid p:last-child,
.contact-feature-grid p:last-child,
.about-feature-grid p:last-child,
.home-feature-grid p:last-child {
  margin-bottom: 0;
}

.ai-layout,
.page-split,
.contact-layout,
.about-layout,
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.profile-box,
.history-box,
.ai-result-card,
.news-card,
.plan-card,
.support-card,
.contact-support-card,
.info-card {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-box + .profile-box,
.history-box + .history-box,
.support-card + .support-card,
.info-card + .info-card {
  margin-top: 14px;
}

/* =========================================================
   3) CHECKLIST / CONTENT HELPERS
========================================================= */

.checklist {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.checklist li {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  line-height: 1.45;
}

.checklist li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--green);
  font-weight: 1000;
}

.quick-link-stack,
.action-stack,
.link-stack {
  display: grid;
  gap: 10px;
}

.panel-head {
  margin-bottom: 16px;
}

.premium-lock-card {
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.11), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.075);
}

.premium-lock-card.is-unlocked {
  background:
    linear-gradient(145deg, rgba(121, 255, 122, 0.12), rgba(0, 229, 255, 0.065)),
    rgba(255, 255, 255, 0.075);
}

.badge-row,
.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.badge,
.tag,
.meta-pill {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.78rem;
  font-weight: 850;
}

/* =========================================================
   4) PUBLIC AI SMOOTH COACH
========================================================= */

.ai-coach-shell {
  overflow: visible;
}

.ai-form {
  align-content: start;
}

.ai-result-card {
  min-height: 100%;
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.ai-result {
  min-height: 280px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.ai-result h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.ai-result h3 {
  margin-top: 20px;
  color: var(--gold);
}

.ai-result ul {
  margin: 10px 0 18px;
  padding-left: 20px;
}

.ai-result li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.ai-result p {
  margin: 10px 0;
}

/* =========================================================
   5) WORKOUT PLANS / PUBLIC PLAN CARDS
========================================================= */

.plan-grid,
.workout-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.plan-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.plan-card .eyebrow {
  margin-bottom: 0;
}

.plan-card h3 {
  font-size: 1.45rem;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-meta span {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.78rem;
  font-weight: 850;
}

/* =========================================================
   6) NEWS / ARTICLE CARDS
========================================================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.news-card {
  display: grid;
  gap: 12px;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.news-card time {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

/* =========================================================
   7) LEGAL PAGES
========================================================= */

.legal {
  width: min(920px, calc(100% - 32px));
  margin: 42px auto;
  padding: clamp(26px, 5vw, 52px);
  border-radius: var(--radius-xl);
  line-height: 1.75;
}

.legal h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.legal h2 {
  margin-top: 28px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.legal p,
.legal li {
  color: rgba(255, 255, 255, 0.76);
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin: 10px 0;
  line-height: 1.65;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* =========================================================
   8) CONTACT PAGE / FORMS EXTENSIONS
========================================================= */

.contact-feature-grid {
  margin-bottom: 18px;
}

.contact-support-card {
  align-self: stretch;
}

.form .btn {
  margin-top: 2px;
}

.newsletter {
  margin-bottom: 42px;
}

.newsletter-card {
  padding: clamp(26px, 5vw, 48px);
  border-radius: var(--radius-xl);
  text-align: center;
}

.newsletter-card .form {
  max-width: 760px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.newsletter-card .form input {
  min-height: 58px;
}

.newsletter-card .form .btn {
  min-height: 58px;
}

/* =========================================================
   9) FOOTER
   Important:
   Keep selectors narrow. Do not style all .footer div elements,
   because footer radio controls have their own Part 3 styles.
========================================================= */

.footer {
  position: relative;
  overflow: hidden;
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 38px;
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    radial-gradient(circle at 12% 18%, rgba(0, 229, 255, 0.24), transparent 32%),
    radial-gradient(circle at 88% 84%, rgba(255, 43, 214, 0.22), transparent 34%),
    rgba(5, 7, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.58),
    0 0 55px rgba(0, 229, 255, 0.14),
    0 0 70px rgba(255, 43, 214, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.footer::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(circle at 18% 22%, rgba(0, 229, 255, 0.3), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(255, 43, 214, 0.26), transparent 30%);
  opacity: 0.72;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 32px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 38px rgba(255, 255, 255, 0.045);
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  width: 100%;
  max-width: 820px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.footer-brand img,
.footer > img {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 24px;
  object-fit: cover;
  padding: 4px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.75), rgba(255, 43, 214, 0.62), rgba(255, 209, 102, 0.7));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 18px 50px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(0, 229, 255, 0.24);
}

.footer p {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.footer-links {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.footer-links a {
  position: relative;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background var(--ease),
    border-color var(--ease),
    color var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(255, 43, 214, 0.18));
  opacity: 0;
  transition: opacity var(--ease);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateY(-4px) scale(1.035);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(0, 229, 255, 0.18),
    0 0 38px rgba(255, 43, 214, 0.12);
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-links a > * {
  position: relative;
  z-index: 1;
}

.footer-links .social-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 46px;
}

.social-icon svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  fill: currentColor;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.social-icon.instagram:hover {
  background: linear-gradient(135deg, #ff7a00, #ff2bd6, #7c3cff);
  box-shadow:
    0 0 34px rgba(255, 43, 214, 0.35),
    0 18px 44px rgba(0, 0, 0, 0.34);
}

.social-icon.facebook:hover {
  background: linear-gradient(135deg, #1877f2, #00e5ff);
  box-shadow:
    0 0 34px rgba(24, 119, 242, 0.38),
    0 18px 44px rgba(0, 0, 0, 0.34);
}

.social-icon.x:hover {
  background: linear-gradient(135deg, #050505, #3f3f46);
  box-shadow:
    0 0 34px rgba(255, 255, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.34);
}

.social-icon.tiktok:hover {
  background: linear-gradient(135deg, #00f2ea, #ff0050);
  box-shadow:
    0 0 34px rgba(0, 242, 234, 0.32),
    0 18px 44px rgba(0, 0, 0, 0.34);
}

/* =========================================================
   10) PART 2 RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-grid,
  .contact-feature-grid,
  .about-feature-grid,
  .home-feature-grid,
  .page-grid,
  .plan-grid,
  .workout-plan-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-layout,
  .page-split,
  .contact-layout,
  .about-layout,
  .home-split {
    grid-template-columns: 1fr;
  }

  .ai-result-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-content {
    padding: 26px 20px;
  }

  .hero-actions .btn,
  .control-row .btn,
  .legal-actions .btn {
    width: 100%;
  }

  .hero-dashboard,
  .feature-grid,
  .contact-feature-grid,
  .about-feature-grid,
  .home-feature-grid,
  .page-grid,
  .plan-grid,
  .workout-plan-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .section,
  .legal {
    width: min(100% - 24px, var(--max));
  }

  .newsletter-card .form {
    grid-template-columns: 1fr;
  }

  .newsletter-card .form .btn {
    width: 100%;
  }

  .footer {
    width: min(100% - 24px, var(--max));
    margin: 28px auto 32px;
    padding: 26px 18px;
    gap: 16px;
  }

  .footer-brand img,
  .footer > img {
    width: 72px;
    height: 72px;
  }

  .footer p {
    max-width: 320px;
    font-size: 0.92rem;
  }

  .footer-links {
    max-width: 330px;
    justify-content: center;
  }

  .footer-links a:not(.social-icon) {
    width: 100%;
    max-width: 290px;
  }

  .footer-links .social-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    flex-basis: 48px;
  }
}

@media (max-width: 430px) {
  .page-card,
  .feature-grid > article,
  .feature-grid > div,
  .contact-feature-grid > article,
  .about-feature-grid > article,
  .home-feature-grid > article,
  .profile-box,
  .history-box,
  .ai-result-card,
  .news-card,
  .plan-card,
  .support-card,
  .contact-support-card,
  .info-card {
    padding: 21px;
    border-radius: 24px;
  }

  .ai-result {
    padding: 16px;
  }
}
/* =========================================================
   SMOOTH JAZZ FITNESS
   SUPREME MAX PRODUCTION CSS
   PART 3 OF 4

   Dashboard Shell • Dashboard Home • Smooth Walk
   Fitness Radio • Progress • Premium • Dashboard AI
   12/10 Production Ready
========================================================= */

/* =========================================================
   1) APP GRID / DASHBOARD FOUNDATION
========================================================= */

.app-grid,
.dashboard-grid,
.dashboard-home-grid,
.dashboard-walk-grid,
.dashboard-radio-grid,
.dashboard-progress-grid,
.dashboard-premium-grid,
.dashboard-ai-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.dashboard-page,
.dashboard-shell,
.dashboard-home-page,
.dashboard-walk-page,
.dashboard-radio-page,
.dashboard-progress-page,
.dashboard-premium-page,
.dashboard-ai-page {
  width: 100%;
  min-height: 60vh;
}

.dashboard-inner-hero,
.dashboard-hero {
  scroll-margin-top: calc(var(--topbar-height) + 20px);
}

.panel,
.dashboard-panel,
.dashboard-primary-panel,
.dashboard-side-panel {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.055)),
    rgba(7, 10, 28, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.135);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.panel::after,
.dashboard-panel::after,
.dashboard-primary-panel::after,
.dashboard-side-panel::after {
  content: "";
  position: absolute;
  right: -88px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.panel > *,
.dashboard-panel > *,
.dashboard-primary-panel > *,
.dashboard-side-panel > * {
  position: relative;
  z-index: 1;
}

.panel-card,
.stat-card,
.metric-card,
.dashboard-card,
.tool-card,
.account-card {
  padding: 18px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-card strong,
.stat-card strong,
.metric-card strong,
.dashboard-card strong,
.tool-card strong,
.account-card strong {
  display: block;
  color: #ffffff;
}

.panel-card span,
.stat-card span,
.metric-card span,
.dashboard-card span,
.tool-card span,
.account-card span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  font-weight: 800;
}

/* =========================================================
   2) DASHBOARD HOME / SUMMARY
========================================================= */

.dashboard-summary-grid,
.walk-metrics,
.progress-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 18px 0;
}

.dashboard-summary-grid strong,
.walk-metrics strong,
.progress-grid strong,
.stats-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.dashboard-summary-grid span,
.walk-metrics span,
.progress-grid span,
.stats-grid span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  font-weight: 800;
}

.dashboard-action-grid,
.dashboard-tool-grid,
.dashboard-command-grid,
.premium-tool-grid,
.ai-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dashboard-status-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================
   3) DASHBOARD WALK
========================================================= */

.walk-panel {
  grid-row: span 2;
}

.timer,
.walk-timer,
#walkTimer {
  margin: 18px 0 22px;
  font-size: clamp(3.1rem, 9vw, 7.55rem);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow: 0 0 36px rgba(0, 229, 255, 0.25);
}

.walk-status {
  min-height: 24px;
  color: var(--cyan);
  font-weight: 900;
}

.walk-map,
.gps-card {
  min-height: 210px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 229, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 70%, rgba(255, 43, 214, 0.13), transparent 32%),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 850;
}

.walk-save-status,
.dashboard-save-status {
  min-height: 22px;
  color: var(--green);
  font-weight: 850;
}

/* =========================================================
   4) DASHBOARD RADIO
========================================================= */

.radio-art,
.radio-art-large {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.radio-art img {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  object-fit: cover;
}

.radio-art-large img {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  object-fit: cover;
}

.radio-art strong,
.radio-art span,
.radio-art-large strong,
.radio-art-large span {
  display: block;
}

.radio-art strong,
.radio-art-large strong {
  font-size: 1.22rem;
}

.radio-art span,
.radio-art-large span {
  margin-top: 4px;
  color: var(--muted);
}

.range-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
}

.mode-chips,
.radio-mode-chips,
.home-radio-chips,
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}

.chip {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-align: center;
  touch-action: manipulation;
  transition:
    transform var(--ease),
    background var(--ease),
    color var(--ease),
    border-color var(--ease);
}

.chip:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.32);
}

.chip.active,
.chip[aria-pressed="true"] {
  color: #07101a;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.home-radio-actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  width: 100%;
}

.home-radio-chips {
  margin: 0;
}

.home-radio-btn {
  width: 100%;
  margin-top: 0 !important;
}

/* =========================================================
   5) DASHBOARD PROGRESS / HISTORY
========================================================= */

.progress-section {
  scroll-margin-top: calc(var(--topbar-height) + 28px);
}

.progress-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-item strong {
  color: #ffffff;
}

.history-item span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.progress-chart-card {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
}

/* =========================================================
   6) DASHBOARD PREMIUM / SMOOTH PLUS
========================================================= */

.premium-status-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}

.premium-status-box div,
.native-feature-grid div {
  padding: 18px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.premium-status-box strong,
.native-feature-grid strong {
  display: block;
  color: #ffffff;
}

.premium-status-box span,
.native-feature-grid span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  font-weight: 800;
}

.native-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 18px 0;
}

.paypal-upgrade-form {
  margin-bottom: 11px;
}

.redeem-card,
.vip-card {
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.12), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 209, 102, 0.18);
}

.redeem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.premium-lock-card {
  position: relative;
}

.premium-lock-card:not(.is-unlocked)::after {
  content: "Premium";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  color: #07101a;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-locked:not(button):not(a) {
  filter: saturate(0.8);
}

/* =========================================================
   7) DASHBOARD AI
========================================================= */

.dashboard-ai-page .ai-result-card,
.dashboard-ai-grid .ai-result-card {
  position: relative;
  top: auto;
}

.saved-ai-list {
  display: grid;
  gap: 12px;
}

.saved-ai-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.saved-ai-item h3 {
  font-size: 1.08rem;
}

.saved-ai-item time {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-ai-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-ai-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-ai-field select,
.dashboard-ai-field textarea {
  width: 100%;
}

.ai-field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(0, 229, 255, 0.95);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-ai-notes {
  margin-top: 14px;
}

.ai-premium-card,
.ai-premium-box {
  position: relative !important;
  overflow: hidden !important;
  border-color: rgba(255, 209, 102, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055)),
    radial-gradient(circle at 92% 10%, rgba(255,209,102,.15), transparent 35%),
    radial-gradient(circle at 10% 100%, rgba(0,229,255,.11), transparent 38%) !important;
}

.ai-premium-card > *,
.ai-premium-box > * {
  position: relative;
  z-index: 2;
}

.dashboard-ai-page .premium-lock-card::before,
.dashboard-ai-page .premium-lock-card::after,
.dashboard-ai-page .smooth-plus-card::before,
.dashboard-ai-page .smooth-plus-card::after,
.ai-premium-card::before,
.ai-premium-card::after,
.ai-premium-box::before,
.ai-premium-box::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   8) PART 3 RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .app-grid,
  .dashboard-grid,
  .dashboard-home-grid,
  .dashboard-walk-grid,
  .dashboard-radio-grid,
  .dashboard-progress-grid,
  .dashboard-premium-grid,
  .dashboard-ai-grid {
    grid-template-columns: 1fr;
  }

  .walk-panel {
    grid-row: auto;
  }

  .progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-tool-grid,
  .dashboard-command-grid,
  .premium-tool-grid,
  .ai-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #router-view,
  [data-router-view] {
    min-height: calc(100vh - var(--topbar-height));
  }

  .page-hero,
  .section,
  .app-grid,
  .dashboard-grid,
  .dashboard-home-grid,
  .dashboard-walk-grid,
  .dashboard-radio-grid,
  .dashboard-progress-grid,
  .dashboard-premium-grid,
  .dashboard-ai-grid,
  .page-grid,
  .legal,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  .hero-content,
  .panel,
  .dashboard-panel,
  .dashboard-primary-panel,
  .dashboard-side-panel,
  .section,
  .page-hero,
  .legal {
    border-radius: 28px;
  }

  .dashboard-summary-grid,
  .walk-metrics,
  .progress-grid,
  .stats-grid,
  .premium-status-box,
  .native-feature-grid,
  .dashboard-ai-build-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .timer,
  .walk-timer,
  #walkTimer {
    font-size: clamp(3.1rem, 17vw, 5.1rem);
  }

  .dashboard-action-grid,
  .dashboard-tool-grid,
  .dashboard-command-grid,
  .premium-tool-grid,
  .ai-tool-grid,
  .redeem-row {
    grid-template-columns: 1fr;
  }

  .home-radio-actions {
    gap: 12px;
    margin-top: 16px;
  }

  .home-radio-chips {
    gap: 8px;
  }

  .home-radio-chips .chip,
  .mode-chips .chip,
  .radio-mode-chips .chip {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .mini-card strong,
  .walk-metrics strong,
  .progress-grid strong,
  .stats-grid strong {
    font-size: 1.8rem;
  }

  .radio-art,
  .radio-art-large {
    align-items: flex-start;
  }

  .radio-art img,
  .radio-art-large img {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }
}
/* =========================================================
   SMOOTH JAZZ FITNESS
   SUPREME MAX PRODUCTION CSS
   PART 4 OF 4

   Ads • Router States • Tap Fixes • Member Safety
   Mobile Nav Supreme • Final Auth/Plan Gating
   Contact Fixes • AI Field Fixes • Home Card Fixes
   Footer Radio Dock • iOS/PWA Safe Areas
   MUST STAY AT VERY BOTTOM OF styles.css
   12/10 Production Ready
========================================================= */

/* =========================================================
   1) ECOSYSTEM ADS — TOP + BOTTOM ONLY
========================================================= */

.ecosystem-ad-zone {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    opacity var(--ease),
    transform var(--ease),
    visibility var(--ease);
}

.ecosystem-ad {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    opacity var(--ease);
}

.ecosystem-ad::after {
  content: "Sponsored";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ecosystem-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 95px rgba(0, 229, 255, 0.18);
}

.ecosystem-ad img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 78px;
  margin: 0 auto;
  aspect-ratio: 16 / 3;
  object-fit: cover;
  object-position: center center;
  transition:
    opacity var(--ease-long),
    transform var(--ease-long);
}

.ecosystem-ad:hover img {
  transform: scale(1.018);
}

.top-ad-zone {
  margin-top: 18px;
}

.bottom-ad-zone {
  margin-bottom: 28px;
}

/* Floating ads disabled sitewide */
.floating-ecosystem-ad,
#floatingEcosystemAdWrap,
#floatingEcosystemAd,
#floatingEcosystemAdImage,
#floatingEcosystemAdClose,
.floating-ad,
.floating-ad-close,
.floating-ecosystem-ad-close {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================================
   2) ROUTER LOADING / ERROR STATES
========================================================= */

.router-loading,
.router-error {
  min-height: 50vh;
  display: grid;
  place-items: center;
}

.router-state-card {
  width: min(560px, 100%);
  padding: clamp(26px, 5vw, 46px);
  border-radius: 30px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(5, 7, 18, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.router-loading .router-state-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--cyan);
  animation: sjfSpin 0.9s linear infinite;
}

@keyframes sjfSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   3) TAP TARGET / SAFE INTERACTION FIXES
========================================================= */

.btn,
button.btn,
a.btn,
.member-item,
.mobile-menu a,
.mobile-menu button,
.auth-tabs button,
.mode-chips .chip,
.radio-mode-chips .chip,
.news-tabs .chip,
.legal-actions button,
.legal-actions a,
.control-row .btn,
.hero-actions .btn,
.auth-action-stack .btn {
  box-sizing: border-box;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.member-avatar,
.nav-toggle {
  touch-action: manipulation;
}

.modal .btn,
.smooth-popup .btn {
  min-height: 48px;
}

.member-avatar > *,
.nav-toggle > *,
.member-item > *,
.mobile-menu a > *,
.mobile-menu button > *,
.btn > *,
.chip > *,
.modal-close > *,
.smooth-popup-close > * {
  pointer-events: none;
}

/* =========================================================
   4) MEMBER MENU FINAL SAFETY
   Clean list only:
   Login / Sign Up Free
   Dashboard
   Smooth Plus / Premium
   Redeem VIP Code
   My Progress
   Contact
   Delete Account
   Logout
========================================================= */

#memberMenu,
.member-menu,
.member-dropdown,
.profile-dropdown {
  max-width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  box-sizing: border-box;
}

.member-menu {
  padding: 16px !important;
}

.member-menu-head {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 8px 8px 14px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.member-menu-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 1000 !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 229, 255, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(0, 229, 255, 0.26), rgba(255, 43, 214, 0.28)),
    rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(0, 229, 255, 0.28) !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.14) !important;
}

.member-menu-info {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

.member-menu-info strong,
.member-menu-info span,
.member-menu-info small,
#memberMenu #memberName,
#memberMenu #memberEmail,
#memberMenu #memberPlan {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.member-menu-info strong,
#memberMenu #memberName {
  color: #ffffff !important;
  font-size: 0.98rem !important;
  font-weight: 1000 !important;
  line-height: 1.1 !important;
}

.member-menu-info span,
#memberMenu #memberEmail {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}

.member-menu-info small,
#memberMenu #memberPlan {
  width: fit-content !important;
  margin-top: 4px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  color: var(--gold) !important;
  background: rgba(255, 209, 102, 0.1) !important;
  border: 1px solid rgba(255, 209, 102, 0.22) !important;
  font-size: 0.68rem !important;
  font-weight: 1000 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.member-menu-list {
  display: grid !important;
  gap: 6px !important;
}

.member-divider,
.member-menu-divider {
  width: 100% !important;
  height: 1px !important;
  margin: 8px 0 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.member-menu .member-item {
  width: 100% !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border-radius: 14px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.96rem !important;
  font-weight: 950 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    color 180ms ease !important;
}

.member-menu .member-item:hover,
.member-menu .member-item:focus-visible {
  color: #ffffff !important;
  transform: translateX(3px) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(0, 229, 255, 0.18) !important;
}

.member-menu .member-item.danger {
  color: #ff8fa3 !important;
}

.member-menu .member-item.danger:hover,
.member-menu .member-item.danger:focus-visible {
  color: #ffb3c0 !important;
  background: rgba(255, 77, 109, 0.1) !important;
  border-color: rgba(255, 77, 109, 0.22) !important;
}

/* Safety: if old extra menu rows are accidentally still in HTML, hide them */
.member-menu .member-item[data-route="/dashboard-walk"],
.member-menu .member-item[data-href="/dashboard-walk"],
.member-menu .member-item[data-route="/dashboard-radio"],
.member-menu .member-item[data-href="/dashboard-radio"],
.member-menu .member-item[data-route="/dashboard-ai"],
.member-menu .member-item[data-href="/dashboard-ai"],
.member-menu .member-item.premium-only[data-route="/dashboard-premium"],
.member-menu .member-item.premium-only[data-href="/dashboard-premium"] {
  display: none !important;
}

/* Premium users should not see upgrade/redeem rows */
body.is-premium .member-menu .upgrade-only,
html[data-plan="premium"] .member-menu .upgrade-only,
body.is-premium .member-menu .dashboard-redeem-jump,
html[data-plan="premium"] .member-menu .dashboard-redeem-jump {
  display: none !important;
}

/* =========================================================
   5) MOBILE NAV TOGGLE + MOBILE MENU SUPREME OVERRIDE
========================================================= */

@media (max-width: 980px) {
  .nav-toggle {
    position: relative;
    display: grid !important;
    place-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 18px;
    border: 1px solid rgba(0, 229, 255, 0.26);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
      radial-gradient(circle at 30% 18%, rgba(0, 229, 255, 0.24), transparent 46%),
      radial-gradient(circle at 80% 82%, rgba(255, 43, 214, 0.22), transparent 50%),
      rgba(5, 7, 18, 0.88);
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.34),
      0 0 26px rgba(0, 229, 255, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
    overflow: hidden;
  }

  .nav-toggle::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
      135deg,
      rgba(0, 229, 255, 0.5),
      rgba(255, 43, 214, 0.38),
      rgba(255, 209, 102, 0.34)
    );
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: 0;
  }

  .nav-toggle span {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.38);
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.5);
    box-shadow:
      0 18px 46px rgba(0, 0, 0, 0.42),
      0 0 34px rgba(0, 229, 255, 0.2),
      0 0 44px rgba(255, 43, 214, 0.14);
  }

  .nav-toggle:hover::before,
  .nav-toggle:focus-visible::before,
  .nav-toggle.active::before,
  .nav-toggle[aria-expanded="true"]::before {
    opacity: 0.58;
  }

  .nav-toggle.active,
  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(255, 209, 102, 0.56);
    background:
      linear-gradient(145deg, rgba(255, 209, 102, 0.22), rgba(255, 43, 214, 0.12)),
      rgba(5, 7, 18, 0.94);
  }

  .nav-toggle.active span:nth-child(1),
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2),
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.25);
  }

  .nav-toggle.active span:nth-child(3),
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu {
    inset: calc(var(--topbar-height) + env(safe-area-inset-top)) 0 0;
    padding: 14px;
    background:
      radial-gradient(circle at 12% 0%, rgba(0, 229, 255, 0.18), transparent 34%),
      radial-gradient(circle at 90% 22%, rgba(255, 43, 214, 0.18), transparent 38%),
      rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-menu-card {
    position: relative;
    overflow: hidden;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 14px;
    border-radius: 30px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055)),
      radial-gradient(circle at 18% 12%, rgba(0, 229, 255, 0.18), transparent 32%),
      radial-gradient(circle at 86% 88%, rgba(255, 43, 214, 0.16), transparent 36%),
      rgba(5, 7, 18, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
      0 32px 100px rgba(0, 0, 0, 0.58),
      0 0 48px rgba(0, 229, 255, 0.12);
  }

  .mobile-menu-card::before {
    content: "Smooth Menu";
    display: block;
    margin: 2px 4px 10px;
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 1000;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mobile-menu-card a,
  .mobile-menu-card button[data-route] {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.065);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 950;
    letter-spacing: -0.01em;
    text-align: left;
    transition:
      transform 220ms ease,
      background 220ms ease,
      border-color 220ms ease,
      color 220ms ease,
      box-shadow 220ms ease;
  }

  .mobile-menu-card a::after,
  .mobile-menu-card button[data-route]::after {
    content: "›";
    color: rgba(255, 209, 102, 0.9);
    font-size: 1.35rem;
    line-height: 1;
  }

  .mobile-menu-card a:hover,
  .mobile-menu-card a.active,
  .mobile-menu-card a[aria-current="page"],
  .mobile-menu-card button[data-route]:hover,
  .mobile-menu-card button[data-route].active {
    color: #ffffff;
    transform: translateX(3px);
    border-color: rgba(0, 229, 255, 0.24);
    background:
      linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(255, 43, 214, 0.11)),
      rgba(255, 255, 255, 0.095);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
  }

  .mobile-menu-actions .btn {
    min-height: 54px;
    border-radius: 18px;
  }
}

/* =========================================================
   6) CONTACT PAGE SUPPORT PANEL FIX
========================================================= */

.contact-page .ai-layout {
  align-items: start;
}

.contact-support-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.contact-support-card h2 {
  max-width: 100%;
  margin-bottom: 18px;
  line-height: 0.95;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.contact-support-card .feature-grid,
.contact-support-card .contact-feature-grid,
.contact-support-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 18px 0 18px !important;
}

.contact-support-item,
.contact-support-card .contact-feature-grid > .page-card,
.contact-support-card .feature-grid > .page-card {
  min-width: 0 !important;
  width: 100% !important;
  padding: 18px !important;
  border-radius: 22px !important;
  text-align: left !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.055)),
    radial-gradient(circle at 20% 100%, rgba(0,229,255,.13), transparent 45%) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow:
    0 16px 38px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.contact-support-item h3,
.contact-support-card .contact-feature-grid > .page-card h3,
.contact-support-card .feature-grid > .page-card h3 {
  margin: 0 0 8px !important;
  font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.contact-support-item p,
.contact-support-card .contact-feature-grid > .page-card p,
.contact-support-card .feature-grid > .page-card p {
  margin: 0 !important;
  font-size: 0.94rem !important;
  line-height: 1.5 !important;
  color: rgba(255,255,255,.78) !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.contact-quick-links,
.contact-support-card .profile-box {
  margin-top: 18px !important;
  width: 100% !important;
}

.quick-link-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
}

.quick-link-stack .btn {
  width: 100% !important;
  white-space: normal !important;
}

.contact-support-card * {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* =========================================================
   7) AI FIELD CLICK / TEXTAREA FIX
========================================================= */

.ai-workouts-page .ai-coach-shell,
.ai-workouts-page .ai-layout,
.ai-workouts-page .ai-form,
.ai-workouts-page .sjf-field {
  position: relative;
  z-index: 20;
}

.ai-workouts-page .ai-form input,
.ai-workouts-page .ai-form select,
.ai-workouts-page .ai-form textarea,
.ai-workouts-page .sjf-textarea {
  position: relative !important;
  z-index: 30 !important;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text !important;
  width: 100%;
}

.ai-workouts-page .ai-form select {
  cursor: pointer !important;
}

.ai-workouts-page .sjf-textarea,
.ai-workouts-page textarea#aiLimitations {
  min-height: 140px !important;
  resize: vertical !important;
  display: block !important;
  color: #ffffff !important;
  caret-color: #ffd166 !important;
  background: rgba(3, 8, 18, 0.72) !important;
  border: 1px solid rgba(255, 209, 102, 0.28) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  line-height: 1.55 !important;
  outline: none !important;
}

.ai-workouts-page .sjf-textarea:focus,
.ai-workouts-page textarea#aiLimitations:focus {
  border-color: rgba(255, 209, 102, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.15) !important;
}

.ai-workouts-page .glass::before,
.ai-workouts-page .glass::after,
.ai-workouts-page .page-card::before,
.ai-workouts-page .page-card::after,
.ai-workouts-page .ai-result-card::before,
.ai-workouts-page .ai-result-card::after {
  pointer-events: none !important;
}

.ai-workouts-page .sjf-field-label {
  display: block;
  margin-bottom: 8px;
  pointer-events: auto;
}

/* =========================================================
   8) HOME FEATURE BADGES / HOME PLAN CARD FIX
========================================================= */

.home-feature-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
}

.home-feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .01em;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 14px 34px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.08);
  user-select: none;
  cursor: default;
  pointer-events: none;
}

.home-plans-section .premium-lock-card::before,
.home-plans-section .premium-lock-card::after,
.home-plans-section .smooth-plus-card::before,
.home-plans-section .smooth-plus-card::after,
.home-plan-card::before,
.home-plan-card::after,
.home-premium-plan-card::before,
.home-premium-plan-card::after {
  display: none !important;
  content: none !important;
}

.home-plans-grid {
  align-items: stretch;
}

.home-plan-card,
.home-premium-plan-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 190px;
}

.home-plan-card > *,
.home-premium-plan-card > * {
  position: relative;
  z-index: 2;
}

.home-premium-plan-card {
  border-color: rgba(255, 209, 102, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055)),
    radial-gradient(circle at 90% 15%, rgba(255,209,102,.16), transparent 35%),
    radial-gradient(circle at 10% 100%, rgba(0,229,255,.11), transparent 38%) !important;
}

.home-premium-plan-card .eyebrow::after {
  content: "  Premium";
  margin-left: 10px;
  color: rgba(255, 209, 102, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

/* =========================================================
   9) GLOBAL FITNESS RADIO DOCK — FOOTER LOGO HEIGHT
   Centered footer brand/text + right-side radio dock
========================================================= */

.footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 48px) 44px;
  text-align: center;
  overflow: visible;
}

.footer-brand {
  width: 100%;
  max-width: 760px;
  display: grid;
  place-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-self: center;
}

.footer-brand img,
.footer > img {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center;
}

.footer-brand p,
.footer > p {
  width: 100%;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  justify-self: center;
}

.footer-links {
  position: relative;
  z-index: 2;
  justify-self: center;
  text-align: center;
}

.footer-radio-controls {
  position: absolute !important;
  right: clamp(18px, 4vw, 48px) !important;
  top: 38px !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 5;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: calc(100vw - 34px) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(8, 12, 28, 0.94), rgba(22, 12, 34, 0.9)),
    radial-gradient(circle at 12% 18%, rgba(0, 229, 255, 0.22), transparent 34%),
    radial-gradient(circle at 94% 15%, rgba(255, 209, 102, 0.18), transparent 36%),
    radial-gradient(circle at 78% 100%, rgba(255, 43, 214, 0.16), transparent 38%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(0, 229, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.footer-radio-controls::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.45;
}

.footer-radio-meta {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  white-space: nowrap;
}

.footer-radio-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 1000;
  color: rgba(0, 229, 255, 0.92);
  white-space: nowrap;
}

.footer-radio-meta span::before {
  content: "●";
  font-size: 0.7rem;
  color: rgba(255, 209, 102, 0.95);
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.7);
}

.footer-radio-meta strong {
  display: inline-block;
  max-width: 135px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.88rem;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.96);
}

.footer-radio-buttons {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-radio-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.footer-radio-btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 209, 102, 0.65);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.22), rgba(0, 229, 255, 0.12));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.36),
    0 0 18px rgba(255, 209, 102, 0.18);
}

.footer-radio-controls.is-playing {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.54),
    0 0 42px rgba(255, 209, 102, 0.16),
    0 0 34px rgba(0, 229, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.footer-radio-controls.is-playing .footer-radio-meta span::before {
  color: #42ff9b;
  text-shadow: 0 0 14px rgba(66, 255, 155, 0.85);
}

.footer-radio-controls.is-playing #globalRadioPlayBtn {
  border-color: rgba(66, 255, 155, 0.65);
  background:
    linear-gradient(145deg, rgba(66, 255, 155, 0.24), rgba(0, 229, 255, 0.10));
}

/* Tablet: radio dock becomes centered under footer brand */
@media (max-width: 1120px) {
  .footer {
    padding-bottom: 44px;
  }

  .footer-radio-controls {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    justify-self: center;
    margin: 8px auto 0;
  }
}

/* Mobile: fixed safe bottom dock */
@media (max-width: 760px) {
  body {
    padding-bottom: 108px;
  }

  .footer {
    padding-bottom: 128px;
  }

  .footer-links {
    margin-bottom: 18px;
  }

  .footer-radio-controls {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: fit-content !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 999px;
    padding: 10px 12px;
  }

  .footer-radio-meta strong {
    max-width: 105px;
  }

  .footer-radio-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 430px) {
  .footer-radio-meta {
    gap: 8px;
  }

  .footer-radio-meta span {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .footer-radio-meta strong {
    max-width: 82px;
    font-size: 0.8rem;
  }

  .footer-radio-buttons {
    gap: 6px;
  }

  .footer-radio-btn {
    width: 36px;
    height: 36px;
  }
}

/* =========================================================
   10) FINAL AUTH / FREE / PREMIUM VISIBILITY GATING
   Keep this section near the very bottom.
========================================================= */

/* Guest: hide signed-in app nav/features */
html[data-auth="guest"] .auth-only-nav,
body.is-guest .auth-only-nav,
html[data-auth="guest"] .signed-in-only,
body.is-guest .signed-in-only,
html[data-auth="guest"] .logged-in-only,
body.is-guest .logged-in-only,
html[data-auth="guest"] [data-auth-only],
body.is-guest [data-auth-only] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Signed-in: hide guest/login/signup promos */
html[data-auth="signed-in"] .guest-only,
body.is-signed-in .guest-only,
html[data-auth="signed-in"] .guest-only-nav,
body.is-signed-in .guest-only-nav,
html[data-auth="signed-in"] .login-only,
body.is-signed-in .login-only,
html[data-auth="signed-in"] .logged-out-only,
body.is-signed-in .logged-out-only,
html[data-auth="signed-in"] [data-guest-only],
body.is-signed-in [data-guest-only] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Signed-in: show auth-only nav/buttons correctly */
html[data-auth="signed-in"] .auth-only-nav,
body.is-signed-in .auth-only-nav,
html[data-auth="signed-in"] .signed-in-only,
body.is-signed-in .signed-in-only,
html[data-auth="signed-in"] .logged-in-only,
body.is-signed-in .logged-in-only {
  visibility: visible !important;
  pointer-events: auto !important;
}

html[data-auth="signed-in"] .desktop-nav .auth-only-nav,
body.is-signed-in .desktop-nav .auth-only-nav {
  display: inline-flex !important;
}

html[data-auth="signed-in"] .mobile-menu-card .auth-only-nav,
body.is-signed-in .mobile-menu-card .auth-only-nav,
html[data-auth="signed-in"] .member-menu .auth-only-nav,
body.is-signed-in .member-menu .auth-only-nav {
  display: flex !important;
}

html[data-auth="signed-in"] button.auth-only-nav,
body.is-signed-in button.auth-only-nav,
html[data-auth="signed-in"] .mobile-menu-actions .auth-only-nav,
body.is-signed-in .mobile-menu-actions .auth-only-nav {
  display: inline-flex !important;
}

/* Ads: visible for guest/free */
html[data-plan="guest"] [data-free-ads],
body.is-guest [data-free-ads],
html[data-plan="free"] [data-free-ads],
body.is-free [data-free-ads] {
  visibility: visible !important;
  pointer-events: auto !important;
}

html[data-plan="guest"] .ecosystem-ad-zone[data-free-ads],
body.is-guest .ecosystem-ad-zone[data-free-ads],
html[data-plan="free"] .ecosystem-ad-zone[data-free-ads],
body.is-free .ecosystem-ad-zone[data-free-ads] {
  display: flex !important;
}

/* Premium: hide all ads */
html[data-plan="premium"] [data-free-ads],
body.is-premium [data-free-ads],
html[data-plan="premium"] .ecosystem-ad-zone,
body.is-premium .ecosystem-ad-zone,
html[data-plan="premium"] .top-ad-zone,
body.is-premium .top-ad-zone,
html[data-plan="premium"] .bottom-ad-zone,
body.is-premium .bottom-ad-zone {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Premium: hide upgrade/redeem prompts */
html[data-plan="premium"] .dashboard-upgrade-jump,
body.is-premium .dashboard-upgrade-jump,
html[data-plan="premium"] .premium-upgrade-btn,
body.is-premium .premium-upgrade-btn,
html[data-plan="premium"] .upgrade-only,
body.is-premium .upgrade-only,
html[data-plan="premium"] .upgrade-now,
body.is-premium .upgrade-now,
html[data-plan="premium"] [data-upgrade-only],
body.is-premium [data-upgrade-only],
html[data-plan="premium"] .dashboard-redeem-jump,
body.is-premium .dashboard-redeem-jump {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Premium-only content */
html[data-plan="guest"] .premium-only,
body.is-guest .premium-only,
html[data-plan="free"] .premium-only,
body.is-free .premium-only,
html[data-plan="guest"] [data-premium-only],
body.is-guest [data-premium-only],
html[data-plan="free"] [data-premium-only],
body.is-free [data-premium-only] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-plan="premium"] .premium-only,
body.is-premium .premium-only,
html[data-plan="premium"] [data-premium-only],
body.is-premium [data-premium-only] {
  visibility: visible !important;
  pointer-events: auto !important;
}

html[data-plan="premium"] a.premium-only,
body.is-premium a.premium-only,
html[data-plan="premium"] button.premium-only,
body.is-premium button.premium-only,
html[data-plan="premium"] .btn.premium-only,
body.is-premium .btn.premium-only,
html[data-plan="premium"] a[data-premium-only],
body.is-premium a[data-premium-only],
html[data-plan="premium"] button[data-premium-only],
body.is-premium button[data-premium-only],
html[data-plan="premium"] .btn[data-premium-only],
body.is-premium .btn[data-premium-only] {
  display: inline-flex !important;
}

html[data-plan="premium"] div.premium-only,
body.is-premium div.premium-only,
html[data-plan="premium"] section.premium-only,
body.is-premium section.premium-only,
html[data-plan="premium"] article.premium-only,
body.is-premium article.premium-only,
html[data-plan="premium"] [data-premium-only]:not(a):not(button):not(.btn),
body.is-premium [data-premium-only]:not(a):not(button):not(.btn) {
  display: block !important;
}

/* Free-only content */
html[data-plan="premium"] [data-free-only],
body.is-premium [data-free-only],
html[data-plan="guest"] [data-free-only],
body.is-guest [data-free-only] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-plan="free"] [data-free-only],
body.is-free [data-free-only] {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Premium lock cards */
html[data-plan="free"] .premium-lock-card,
body.is-free .premium-lock-card,
html[data-plan="guest"] .premium-lock-card,
body.is-guest .premium-lock-card {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

html[data-plan="premium"] .premium-lock-card,
body.is-premium .premium-lock-card {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  border-color: rgba(121, 255, 122, 0.24);
  box-shadow:
    0 22px 80px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(121, 255, 122, 0.08);
}

html[data-plan="premium"] .premium-lock-card::after,
body.is-premium .premium-lock-card::after,
html[data-plan="premium"] .premium-lock-badge,
body.is-premium .premium-lock-badge {
  display: none !important;
}

/* =========================================================
   11) FINAL RESPONSIVE / MOBILE / ADS PASS
========================================================= */

@media (max-width: 1180px) {
  .contact-support-card .feature-grid,
  .contact-support-card .contact-feature-grid,
  .contact-support-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1120px) {
  .footer {
    padding-bottom: 44px;
  }

  .footer-radio-controls {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    justify-self: center;
    margin: 8px auto 0;
  }
}

@media (max-width: 980px) {
  .top-actions {
    justify-self: end;
  }

  .member-menu {
    top: calc(var(--topbar-height) + env(safe-area-inset-top) + 8px) !important;
  }
}

@media (max-width: 860px) {
  .contact-page .ai-layout {
    grid-template-columns: 1fr !important;
  }

  .contact-support-card h2 {
    font-size: clamp(2.2rem, 10vw, 4rem) !important;
  }

  .contact-support-item,
  .contact-support-card .contact-feature-grid > .page-card,
  .contact-support-card .feature-grid > .page-card {
    padding: 16px !important;
  }
}

@media (max-width: 820px) {
  .ecosystem-ad-zone {
    width: min(100% - 24px, var(--max));
  }

  html[data-auth="guest"] .mobile-menu-card .auth-only-nav,
  body.is-guest .mobile-menu-card .auth-only-nav {
    display: none !important;
  }

  html[data-auth="signed-in"] .mobile-menu-card .auth-only-nav,
  body.is-signed-in .mobile-menu-card .auth-only-nav {
    display: flex !important;
  }

  html[data-auth="signed-in"] .mobile-menu-card .guest-only-nav,
  body.is-signed-in .mobile-menu-card .guest-only-nav {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .member-menu {
    width: min(calc(100vw - 24px), 380px) !important;
    max-width: calc(100vw - 24px) !important;
    right: 12px !important;
    top: calc(var(--topbar-height, 84px) + env(safe-area-inset-top) + 8px) !important;
    border-radius: 24px !important;
    padding: 14px !important;
  }

  .member-menu-head {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 6px 6px 12px !important;
  }

  .member-menu-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
  }

  .member-menu .member-item {
    min-height: 48px !important;
    border-radius: 15px !important;
    font-size: 0.95rem !important;
  }

  .ecosystem-ad-zone {
    aspect-ratio: 1200 / 450;
    height: auto !important;
    overflow: hidden;
  }

  .ecosystem-ad {
    width: 100%;
    height: 100%;
    border-radius: 18px;
  }

  .ecosystem-ad img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 1200 / 450 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .ecosystem-ad::after {
    top: 7px;
    left: 7px;
    font-size: 0.62rem;
  }

  body {
    padding-bottom: 108px;
  }

  .footer {
    padding-bottom: 128px;
  }

  .footer-links {
    margin-bottom: 18px;
  }

  .footer-radio-controls {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: fit-content !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 999px;
    padding: 10px 12px;
  }

  .footer-radio-meta strong {
    max-width: 105px;
  }

  .footer-radio-btn {
    width: 38px;
    height: 38px;
  }

  .home-feature-badges {
    justify-content: center;
  }

  .home-feature-badge {
    width: 100%;
    max-width: 310px;
  }

  .dashboard-ai-build-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
  }

  .nav-toggle span {
    width: 21px;
  }

  .mobile-menu {
    padding: 10px;
  }

  .mobile-menu-card {
    border-radius: 26px;
    padding: 12px;
  }

  .mobile-menu-card a,
  .mobile-menu-card button[data-route] {
    min-height: 50px;
    border-radius: 16px;
    font-size: 0.96rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    margin-bottom: 22px;
  }
}

@media (max-width: 430px) {
  .member-menu {
    right: 10px !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .member-menu-info strong {
    font-size: 0.94rem !important;
  }

  .member-menu-info span {
    font-size: 0.78rem !important;
  }

  .footer-radio-meta {
    gap: 8px;
  }

  .footer-radio-meta span {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .footer-radio-meta strong {
    max-width: 82px;
    font-size: 0.8rem;
  }

  .footer-radio-buttons {
    gap: 6px;
  }

  .footer-radio-btn {
    width: 36px;
    height: 36px;
  }
}

/* =========================================================
   12) iOS / PWA SAFE AREA
========================================================= */

@supports (padding: max(0px)) {
  .topbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .mobile-menu {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .toast {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   13) REDUCED MOTION FINAL
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .router-loading .router-state-card::before {
    animation: none !important;
  }
}
/* =========================================================
   DASHBOARD PROGRESS PREVIEW BUTTON SPACING FIX
   Adds breathing room below Latest Workout History card
========================================================= */

.dashboard-progress-preview .control-row,
.progress-preview-card .control-row,
.dashboard-page .history-box + .control-row,
.dashboard-page .latest-history-card + .control-row {
  margin-top: 18px !important;
}

.dashboard-page .history-box,
.dashboard-page .latest-history-card {
  margin-bottom: 18px !important;
}
/* =========================================================
   MOBILE BRAND FULL NAME CENTER FIX
   Shows "Smooth Jazz Fitness" instead of "Smooth Jazz Fit..."
========================================================= */

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: 1fr auto auto !important;
    align-items: center !important;
  }

  .brand {
    min-width: 0 !important;
    max-width: none !important;
    justify-self: start !important;
    gap: 10px !important;
  }

  .brand span {
    max-width: none !important;
    width: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: clamp(1rem, 4.2vw, 1.18rem) !important;
    letter-spacing: -0.055em !important;
  }

  .brand img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }

  .top-actions {
    flex: 0 0 auto !important;
    gap: 8px !important;
  }

  .member-avatar,
  .nav-toggle {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
}

@media (max-width: 390px) {
  .brand span {
    font-size: 0.98rem !important;
    letter-spacing: -0.065em !important;
  }

  .brand img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  .member-avatar,
  .nav-toggle {
    width: 43px !important;
    height: 43px !important;
    min-width: 43px !important;
  }
}
/* =========================================================
   100% MEMBER MENU GHOST GAP FIX
   Collapses hidden/premium/upgrade rows inside member dropdown
   Put at the VERY BOTTOM of styles.css
========================================================= */

/* Force the member menu list to behave like a clean vertical list */
#memberMenu .member-menu-list,
.member-menu .member-menu-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

/* Normalize every visible row */
#memberMenu .member-item,
.member-menu .member-item {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Collapse anything JS or auth state marks hidden */
#memberMenu [hidden],
.member-menu [hidden],
#memberMenu .is-hidden,
.member-menu .is-hidden,
#memberMenu .hidden,
.member-menu .hidden,
#memberMenu [aria-hidden="true"]:not(.member-menu-head):not(.member-menu-info),
.member-menu [aria-hidden="true"]:not(.member-menu-head):not(.member-menu-info) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Premium members: completely remove upgrade/redeem rows from layout */
html[data-plan="premium"] #memberMenu .upgrade-only,
body.is-premium #memberMenu .upgrade-only,
html[data-plan="premium"] .member-menu .upgrade-only,
body.is-premium .member-menu .upgrade-only,
html[data-plan="premium"] #memberMenu .dashboard-redeem-jump,
body.is-premium #memberMenu .dashboard-redeem-jump,
html[data-plan="premium"] .member-menu .dashboard-redeem-jump,
body.is-premium .member-menu .dashboard-redeem-jump {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Guests: completely remove signed-in rows from layout */
html[data-auth="guest"] #memberMenu .signed-in-only,
body.is-guest #memberMenu .signed-in-only,
html[data-auth="guest"] #memberMenu .auth-only-nav,
body.is-guest #memberMenu .auth-only-nav,
html[data-auth="guest"] .member-menu .signed-in-only,
body.is-guest .member-menu .signed-in-only,
html[data-auth="guest"] .member-menu .auth-only-nav,
body.is-guest .member-menu .auth-only-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Signed-in members: remove guest/login row from layout */
html[data-auth="signed-in"] #memberMenu .guest-only,
body.is-signed-in #memberMenu .guest-only,
html[data-auth="signed-in"] #memberMenu .guest-only-nav,
body.is-signed-in #memberMenu .guest-only-nav,
html[data-auth="signed-in"] #memberMenu .logged-out-only,
body.is-signed-in #memberMenu .logged-out-only,
html[data-auth="signed-in"] .member-menu .guest-only,
body.is-signed-in .member-menu .guest-only,
html[data-auth="signed-in"] .member-menu .guest-only-nav,
body.is-signed-in .member-menu .guest-only-nav,
html[data-auth="signed-in"] .member-menu .logged-out-only,
body.is-signed-in .member-menu .logged-out-only {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Keep only visible signed-in rows tight */
html[data-auth="signed-in"] #memberMenu .member-item:not(.guest-only):not(.guest-only-nav):not(.logged-out-only):not(.upgrade-only),
body.is-signed-in #memberMenu .member-item:not(.guest-only):not(.guest-only-nav):not(.logged-out-only):not(.upgrade-only) {
  display: flex !important;
}

/* Divider should not create a big blank space */
#memberMenu .member-menu-divider,
.member-menu .member-menu-divider,
#memberMenu .member-divider,
.member-menu .member-divider {
  flex: 0 0 auto !important;
  height: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  margin: 8px 0 6px !important;
  padding: 0 !important;
}

/* Premium: hide divider only if it creates unwanted separation */
html[data-plan="premium"] #memberMenu .member-menu-divider,
body.is-premium #memberMenu .member-menu-divider {
  margin: 6px 0 !important;
}
/* =========================================================
   TRUE CENTER DESKTOP NAV OVERRIDE
   Put at the VERY BOTTOM of styles.css
   Centers nav to the actual site/window, not the grid columns
========================================================= */

@media (min-width: 981px) {
  .topbar {
    position: sticky !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    grid-template-columns: none !important;
    gap: 18px !important;
    overflow: visible !important;
  }

  .brand {
    position: relative !important;
    z-index: 4 !important;
    flex: 0 0 auto !important;
    justify-self: auto !important;
    margin-right: auto !important;
  }

  .desktop-nav {
    position: absolute !important;
    left: 50% !important;
    top: calc(50% + env(safe-area-inset-top) / 2) !important;
    transform: translate(-50%, -50%) !important;

    z-index: 3 !important;
    justify-self: auto !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: max-content !important;
    max-width: calc(100vw - 420px) !important;

    gap: 6px !important;
    padding: 6px !important;
    border-radius: 999px !important;

    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
      rgba(255, 255, 255, 0.025) !important;

    border: 1px solid rgba(255, 255, 255, 0.09) !important;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 14px 36px rgba(0, 0, 0, 0.22),
      0 0 26px rgba(0, 229, 255, 0.06) !important;
  }

  .desktop-nav a {
    min-height: 42px !important;
    padding: 0 13px !important;
    white-space: nowrap !important;
  }

  .top-actions,
  .top-actions.landing-actions,
  [data-header-actions] {
    position: relative !important;
    z-index: 4 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    justify-self: auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
  }

  #memberMenuBtn.member-avatar {
    margin: 0 !important;
  }

  #navToggle {
    display: none !important;
  }
}

/* Tighten nav so it can stay centered on medium desktop widths */
@media (min-width: 981px) and (max-width: 1240px) {
  .desktop-nav {
    max-width: calc(100vw - 350px) !important;
    gap: 4px !important;
    padding: 5px !important;
  }

  .desktop-nav a {
    min-height: 40px !important;
    padding: 0 9px !important;
    font-size: 0.82rem !important;
  }

  .brand span {
    max-width: 180px !important;
  }
}
/* =========================================================
   FOOTER LIGHT SWEEP EFFECT — 12/10 LUXURY MOTION
   Smooth glowing beam runs back and forth across footer
========================================================= */

.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.footer::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -45%;
  width: 38%;
  height: 180%;
  pointer-events: none;
  z-index: 0;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(29, 229, 255, 0.02) 18%,
      rgba(29, 229, 255, 0.18) 38%,
      rgba(255, 203, 74, 0.30) 50%,
      rgba(255, 46, 168, 0.20) 62%,
      rgba(29, 229, 255, 0.04) 78%,
      transparent 100%
    );

  filter: blur(12px);
  opacity: 0.72;
  transform: skewX(-18deg);
  animation: footerLightSweep 7.5s ease-in-out infinite alternate;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(circle at 20% 50%, rgba(29, 229, 255, 0.08), transparent 34%),
    radial-gradient(circle at 80% 50%, rgba(255, 46, 168, 0.08), transparent 34%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);

  opacity: 0.65;
  animation: footerGlowPulse 5.5s ease-in-out infinite;
}

.footer > * {
  position: relative;
  z-index: 2;
}

@keyframes footerLightSweep {
  0% {
    left: -50%;
    opacity: 0.25;
  }

  18% {
    opacity: 0.85;
  }

  50% {
    opacity: 0.95;
  }

  82% {
    opacity: 0.85;
  }

  100% {
    left: 112%;
    opacity: 0.25;
  }
}

@keyframes footerGlowPulse {
  0%,
  100% {
    opacity: 0.42;
  }

  50% {
    opacity: 0.82;
  }
}

/* Keep motion respectful for accessibility */
@media (prefers-reduced-motion: reduce) {
  .footer::before,
  .footer::after {
    animation: none;
  }

  .footer::before {
    left: 35%;
    opacity: 0.35;
  }
}
/* =========================================================
   MEMBER MENU PROFILE HEADER — FINAL LOCKED FIX
   Must remain at the absolute bottom of styles.css
========================================================= */

#memberMenu {
  width: min(370px, calc(100vw - 28px)) !important;
  padding: 16px !important;
  overflow-x: hidden !important;
}

#memberMenu .member-menu-head {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 84px !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 14px !important;
  padding: 14px !important;
  margin: 0 0 12px !important;

  border-radius: 20px !important;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.045)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Inside-menu avatar */
#memberMenu #memberInitial.member-menu-avatar {
  position: relative !important;

  display: grid !important;
  place-items: center !important;

  flex: 0 0 54px !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;

  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: 18px !important;
  overflow: hidden !important;

  color: #ffffff !important;
  font-family:
    Inter,
    Montserrat,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;

  font-size: 1.2rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-align: center !important;

  background:
    radial-gradient(
      circle at 28% 22%,
      rgba(255, 255, 255, 0.28),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(0, 229, 255, 0.52),
      rgba(124, 60, 255, 0.52),
      rgba(255, 43, 214, 0.46)
    ) !important;

  border: 1px solid rgba(0, 229, 255, 0.45) !important;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(0, 229, 255, 0.2),
    0 0 28px rgba(255, 43, 214, 0.12) !important;

  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Information column */
#memberMenu .member-menu-info {
  flex: 1 1 auto !important;

  width: calc(100% - 68px) !important;
  min-width: 0 !important;
  max-width: calc(100% - 68px) !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;

  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Member name */
#memberMenu #memberName {
  display: block !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 1000 !important;
  line-height: 1.2 !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  opacity: 1 !important;
  visibility: visible !important;
}

/* Member email / login message */
#memberMenu #memberEmail {
  display: block !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  opacity: 1 !important;
  visibility: visible !important;
}

/* Plan badge */
#memberMenu #memberPlan {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;

  min-height: 24px !important;
  margin: 3px 0 0 !important;
  padding: 4px 9px !important;

  border-radius: 999px !important;

  color: #ffd166 !important;
  background: rgba(255, 209, 102, 0.1) !important;
  border: 1px solid rgba(255, 209, 102, 0.24) !important;

  font-size: 0.62rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;

  opacity: 1 !important;
  visibility: visible !important;
}

/* Prevent generic header rules from overriding profile elements */
#memberMenu .member-menu-head > .member-menu-avatar,
#memberMenu .member-menu-head > .member-menu-info {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* Menu buttons remain full width */
#memberMenu .member-menu-list {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
}

#memberMenu .member-item {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Mobile member-menu profile */
@media (max-width: 520px) {
  #memberMenu {
    right: 14px !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  #memberMenu .member-menu-head {
    padding: 12px !important;
    gap: 12px !important;
  }

  #memberMenu #memberInitial.member-menu-avatar {
    flex-basis: 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }

  #memberMenu .member-menu-info {
    width: calc(100% - 62px) !important;
    max-width: calc(100% - 62px) !important;
  }
}