html {
  scroll-behavior: smooth;
}

body.membership-page {
  min-height: 100vh;
  color: var(--white);
}

.membership-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 46px;
}

.membership-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  backdrop-filter: blur(16px);
}

.membership-nav img {
  width: 148px;
  height: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.nav-links a:hover {
  border-color: var(--line-gold);
  color: var(--gold);
}

.membership-hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.membership-hero .membership-headline {
  max-width: 760px;
  margin: 0;
  font-size: 86px;
  line-height: 0.92;
  letter-spacing: 0;
}

.membership-hero .membership-headline span {
  color: var(--gold);
  text-shadow: 0 0 34px rgba(255,210,31,0.18);
}

.hero-lead {
  max-width: 560px;
  margin: 20px 0 22px;
  color: rgba(255,255,255,0.78);
  font-size: 20px;
  line-height: 1.48;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.trust-card {
  min-height: 86px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.trust-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-size: 15px;
}

.trust-card span {
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,210,31,0.16);
  border-radius: 50%;
  /* Public promotional animations intentionally override the theme's reduced-motion rule. */
  animation: orbitSpin 16s linear infinite !important;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(255,210,31,0.58);
}

.orbit::before {
  top: 10%;
  left: 14%;
}

.orbit::after {
  right: 8%;
  bottom: 20%;
  background: var(--red);
  box-shadow: 0 0 24px rgba(225,29,36,0.58);
}

.phone-card {
  position: relative;
  width: min(360px, 84vw);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.035)),
    rgba(8,8,12,0.82);
  box-shadow: 0 34px 90px rgba(0,0,0,0.46);
  transform-origin: center;
  will-change: transform;
  animation: floatCard 3.8s ease-in-out infinite !important;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.phone-top img {
  width: 112px;
}

.status-pill-hero {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(38, 210, 120, 0.14);
  color: #b8ffd2;
  font-size: 11px;
  font-weight: 900;
}

.balance-box {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255,210,31,0.25), transparent 28%),
    linear-gradient(135deg, var(--red-2), var(--red));
  overflow: hidden;
}

.balance-box span {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 800;
}

.balance-box strong {
  color: var(--white);
  font-size: 42px;
  line-height: 1;
}

.mini-flow {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mini-flow div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 800;
}

.mini-flow b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,210,31,0.15);
  color: var(--gold);
}

.mini-flow em {
  color: var(--gold);
  font-style: normal;
  font-size: 11px;
}

.section-band {
  padding: 46px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 44px;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 15px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.benefit-card {
  position: relative;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(0,0,0,0.28);
  overflow: hidden;
}

.benefit-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -46px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,210,31,0.08);
}

.benefit-icon {
  width: fit-content;
  min-width: 42px;
  max-width: 100%;
  padding: 0 8px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255,210,31,0.13);
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.benefit-card h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 19px;
  letter-spacing: 0;
}

.benefit-card p {
  margin: 0;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  line-height: 1.45;
}

.steps-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  align-items: stretch;
}

.steps-callout {
  padding: 24px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255,210,31,0.2), transparent 30%),
    linear-gradient(145deg, rgba(225,29,36,0.22), rgba(0,0,0,0.22));
}

.steps-callout h2 {
  margin: 0 0 10px;
  font-size: 44px;
  letter-spacing: 0;
}

.steps-callout p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.72);
}

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

.join-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.join-step b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fff2a6);
  color: #111;
  font-size: 18px;
  box-shadow: 0 14px 28px rgba(255,210,31,0.16);
}

.join-step strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 16px;
}

.join-step span {
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  line-height: 1.4;
}

.final-cta {
  margin-top: 50px;
  padding: 32px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,210,31,0.18), transparent 30%),
    linear-gradient(135deg, rgba(225,29,36,0.20), rgba(255,255,255,0.04));
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 10px;
  font-size: 54px;
  letter-spacing: 0;
}

.final-cta p {
  max-width: 640px;
  margin: 0 auto 18px;
  color: rgba(255,255,255,0.72);
}

@keyframes floatCard {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.4deg); }
  50% { transform: translate3d(0, -22px, 0) rotate(1.4deg); }
}

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

@keyframes pointsGlow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; }
}

.membership-page h1,
.membership-page h2,
.membership-page .eyebrow {
  letter-spacing: 0;
}

.membership-hero .membership-headline .headline-base {
  color: var(--white);
  text-shadow: none;
}

.membership-content,
.hero-copy,
.hero-visual,
.steps-panel > *,
.join-step > div {
  min-width: 0;
}

.membership-content [id],
.membership-content {
  scroll-margin-top: 110px;
}

.membership-headline,
.steps-callout h2,
.final-cta h2 {
  overflow-wrap: anywhere;
}

.public-brand {
  display: inline-flex;
  width: fit-content;
}

.lang-switch {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}

.lang-switch button {
  min-width: 44px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: 900 12px Inter, Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: var(--white);
  background: var(--red);
}

.membership-page a:focus-visible,
.lang-switch button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.lang-swa,
body[data-lang="swa"] .lang-eng {
  display: none;
}

body[data-lang="swa"] .lang-swa {
  display: inline;
}

.landing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 46px;
}

.landing-intro > * {
  min-width: 0;
}

.landing-intro .kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.landing-intro h1 {
  margin: 0;
  max-width: 760px;
  font-size: 54px;
  line-height: 1.08;
}

.landing-intro .lead {
  max-width: 560px;
  margin: 20px 0 22px;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  line-height: 1.48;
}

.summary-title {
  margin: 0 0 16px;
  font-size: 20px;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  line-height: 1.45;
}

.services .points-service {
  position: relative;
  display: flex;
  padding: 0;
  border-color: var(--line-gold);
}

.points-service::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--gold);
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(255,210,31,0.55), inset 0 0 18px rgba(255,210,31,0.1);
  pointer-events: none;
  will-change: opacity;
  animation: pointsGlow 3s ease-in-out infinite !important;
}

.service-link {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 18px;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.service-link:hover,
.service-link:focus-visible {
  background: rgba(255,210,31,0.06);
}

.service-icon,
.contact-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255,210,31,0.13);
}

.service-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

.service-icon svg,
.contact-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-title {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.2;
}

.landing-contact {
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  line-height: 1.5;
}

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

.contact-icon {
  width: 34px;
  height: 34px;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact b,
.text-link {
  color: var(--white);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.text-link:hover {
  color: var(--gold);
}

.public-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.public-footer .membership-shell {
  padding: 22px 0 28px;
}

@media (max-width: 980px) {
  .membership-hero,
  .steps-panel {
    grid-template-columns: 1fr;
  }

  .membership-hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

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

  .membership-nav {
    position: static;
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    overflow: visible;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .landing-intro {
    grid-template-columns: 1fr;
  }

  .landing-intro h1 {
    font-size: 46px;
  }

  .membership-hero .membership-headline {
    font-size: 64px;
  }

  .section-head h2,
  .steps-callout h2 {
    font-size: 36px;
  }

  .final-cta h2 {
    font-size: 44px;
  }

  .membership-content [id],
  .membership-content {
    scroll-margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .membership-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .membership-nav img {
    width: 128px;
  }

  .trust-strip,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .landing-intro h1 {
    font-size: 36px;
  }

  .landing-intro .kicker {
    font-size: 17px;
  }

  .landing-intro .lead,
  .hero-lead {
    font-size: 16px;
  }

  .membership-hero .membership-headline {
    font-size: 44px;
  }

  .section-head h2,
  .steps-callout h2 {
    font-size: 28px;
  }

  .final-cta h2 {
    font-size: 30px;
  }

  .hero-visual {
    min-height: 480px;
  }
}

@media (max-width: 420px) {
  .services {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
