:root {
  --bua-night: #12091f;
  --bua-ink: #10254c;
  --bua-magenta: #f01992;
  --bua-cyan: #22d3ee;
  --bua-orange: #ff8a3d;
}

html.bua-host,
body.bua-host {
  overflow-x: hidden;
  background: var(--bua-night);
}

body.bua-host .path-landing,
body.bua-host .bua-country-wall,
body.bua-host .auth-gate-overlay {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(240, 25, 146, .25), transparent 34rem),
    radial-gradient(circle at 92% 82%, rgba(34, 211, 238, .18), transparent 36rem),
    linear-gradient(145deg, #12091f 0%, #20103b 50%, #0c1730 100%);
}

body.bua-host .path-landing::before,
body.bua-host .bua-country-wall::before,
body.bua-host .auth-gate-overlay::after {
  content: "";
  position: fixed;
  inset: 9% -12% auto 38%;
  height: 19rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-14deg);
}

body.bua-host .path-landing {
  padding: 1.25rem 2rem 2rem;
  align-items: center;
  overflow-x: hidden;
}

body.bua-host .path-landing-inner {
  width: min(100%, 76rem);
  max-width: none;
  margin: auto;
  padding: 0;
  text-align: left;
}

body.bua-host .path-landing-logo {
  justify-content: flex-start;
  margin: 0 0 clamp(1.25rem, 3vh, 2.5rem);
}

body.bua-host .path-landing-logo img {
  width: 58px !important;
  max-width: 58px !important;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .34));
}

body.bua-host .path-landing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(22rem, .88fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

body.bua-host .path-landing-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

body.bua-host .path-landing-eyebrow {
  margin: 0 0 1.15rem;
  color: #f7b0da;
  font-size: .86rem;
  font-style: italic;
  letter-spacing: .01em;
  text-transform: none;
}

body.bua-host .path-landing-headline,
body.bua-host .bua-country-wall h2,
body.bua-host .auth-gate-title {
  max-width: 11ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 5.8vw, 5.9rem);
  font-style: normal;
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
  background: linear-gradient(100deg, #fff 18%, #f6b3dc 46%, #94e9f3 72%, #fff 90%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: buaTextSheen 14s ease-in-out 1s infinite;
}

body.bua-host .path-landing-subhead {
  max-width: 36rem;
  margin: 1.35rem 0 1.8rem;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
}

body.bua-host .path-landing-headline {
  max-width: 100%;
  font-size: clamp(3rem, 4.8vw, 5.2rem);
  overflow-wrap: normal;
}

body.bua-host .path-landing-leadin {
  margin-bottom: .85rem;
  color: rgba(255, 255, 255, .66);
  font-size: .84rem;
  text-align: left;
}

body.bua-host .path-card {
  min-height: 6.8rem;
  gap: 1.1rem;
  margin-bottom: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.25rem;
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 18px 42px rgba(0,0,0,.24);
}

body.bua-host .path-card strong {
  display: block;
  margin-bottom: .35rem;
  color: #fff;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

body.bua-host .path-card span span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  line-height: 1.48;
}

body.bua-host .path-landing-trust {
  margin-top: 1rem;
  color: rgba(255,255,255,.56);
  font-size: .78rem;
}

body.bua-host .path-landing-visual {
  display: block;
  position: relative;
  min-width: 0;
  margin: 0;
}

body.bua-host .path-landing-visual::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  border: 1px solid rgba(34, 211, 238, .17);
  border-radius: 48% 52% 44% 56%;
  animation: buaOrbit 12s ease-in-out infinite;
}

body.bua-host .path-landing-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 44rem);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 2rem 3rem rgba(0,0,0,.35));
}

body.bua-host .path-landing-visual figcaption {
  position: relative;
  z-index: 2;
  margin-top: -1rem;
  color: rgba(255,255,255,.48);
  font-size: .76rem;
  font-style: italic;
  text-align: center;
}

/* Country selection stays a full page rather than returning to a modal card. */
body.bua-host .bua-country-wall {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}

body.bua-host .bua-country-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(24rem, 1.1fr);
  grid-template-rows: auto auto;
  gap: 0 clamp(2rem, 5vw, 5rem);
  width: min(100%, 76rem) !important;
  max-width: none !important;
  margin: auto;
  color: #fff;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.bua-host .bua-country-shell > div:not(.bua-country-visual) {
  grid-column: 1;
  padding: .8rem 0 !important;
  text-align: left !important;
  background: transparent !important;
}

body.bua-host .bua-country-shell > div:nth-of-type(3) {
  padding-top: 0 !important;
}

body.bua-host .bua-country-visual {
  display: block;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

body.bua-host .bua-country-visual img {
  display: block;
  width: min(100%, 44rem);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

body.bua-host .bua-country-wall h2 {
  margin-bottom: 1rem !important;
  font-size: clamp(2.8rem, 5vw, 5rem) !important;
  font-weight: 900 !important;
}

body.bua-host .bua-country-wall select {
  border-color: rgba(34,211,238,.35) !important;
  background: rgba(10,8,31,.68) !important;
}

/* Authentication uses the same editorial stage; the form remains functional. */
body.bua-host .auth-gate-overlay {
  padding: 1.5rem 2rem;
  backdrop-filter: none;
}

body.bua-host .auth-gate-overlay::before {
  opacity: 0;
}

body.bua-host .auth-gate-inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(24rem, 1.14fr);
  align-items: center;
  gap: .55rem clamp(2rem, 5vw, 5rem);
  width: min(100%, 76rem);
  max-width: none;
  padding: 0;
  color: #fff;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.bua-host .auth-gate-inner > :not(.bua-auth-visual) { grid-column: 1; }

body.bua-host .bua-auth-visual {
  display: block;
  grid-column: 2;
  grid-row: 1 / 10;
  align-self: center;
}

body.bua-host .bua-auth-visual img {
  display: block;
  width: min(100%, 42rem);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

body.bua-host .auth-gate-logo {
  margin: 0 0 .65rem;
  text-align: left;
}

body.bua-host .auth-gate-logo img { width: 58px !important; max-width: 58px !important; }
body.bua-host .auth-gate-title { margin-bottom: .45rem; }
body.bua-host .auth-gate-subtitle { color: #f5b1d9; text-align: left; }
body.bua-host .auth-gate-description { max-width: 38rem; color: rgba(255,255,255,.72); text-align: left; }
body.bua-host .auth-login-container { width: 100%; max-width: 32rem; }
body.bua-host .auth-tier-banner { background: rgba(255,255,255,.045); border-color: rgba(34,211,238,.22); }

@keyframes buaTextSheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes buaOrbit { 0%,100% { transform: rotate(-4deg) scale(.98); opacity: .55; } 50% { transform: rotate(2deg) scale(1.03); opacity: 1; } }

@media (max-width: 760px) {
  body.bua-host .path-landing,
  body.bua-host .bua-country-wall,
  body.bua-host .auth-gate-overlay { padding: .9rem 1rem 1.5rem; }

  body.bua-host .path-landing-layout,
  body.bua-host .bua-country-shell,
  body.bua-host .auth-gate-inner { grid-template-columns: 1fr; }

  body.bua-host .path-landing-headline,
  body.bua-host .bua-country-wall h2,
  body.bua-host .auth-gate-title { font-size: clamp(2.75rem, 13vw, 4.2rem) !important; }

  body.bua-host .path-landing-visual,
  body.bua-host .bua-country-visual,
  body.bua-host .bua-auth-visual {
    grid-column: 1;
    grid-row: auto;
    max-height: none;
    overflow: visible;
  }

  body.bua-host .path-landing-visual { order: 2; }
  body.bua-host .path-landing-visual img,
  body.bua-host .bua-country-visual img,
  body.bua-host .bua-auth-visual img { width: min(100%, 28rem); margin: 0 auto; }
  body.bua-host .path-landing-visual figcaption { display: none; }
  body.bua-host .bua-country-shell > div:not(.bua-country-visual) { grid-column: 1; }
  body.bua-host .auth-gate-inner > :not(.bua-auth-visual) { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.bua-host .path-landing-headline,
  body.bua-host .bua-country-wall h2,
  body.bua-host .auth-gate-title,
  body.bua-host .path-landing-visual::before { animation: none; }
}
