:root {
  /* Palette allineata a login.php (--brand #6E44FF / --accent #FF5983) */
  --blue: #8c6fef;
  --blue-deep: #7d5ce0;
  --violet: #6e44ff;
  --violet-soft: #8a5fff;
  --pink: #ff5983;
  --pink-soft: #ff7fa0;
  --ink: #10182d;
  --muted: #69758b;
  --paper: #fff;
  --panel: #f2f5ff;
  --panel-strong: #eaf0fb;
  --line: rgba(109, 126, 161, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  --shadow-strong: 0 18px 44px rgba(17, 22, 46, 0.2);
  --radius: 28px;
  --brand-final-center-y: max(calc(env(safe-area-inset-top) + 52px), clamp(64px, 9.5svh, 88px));
  --brand-logo-size: 34px;
  --brand-logo-gap: 10px;
  --brand-logo-start-gap: var(--brand-logo-gap);
  --brand-word-start-scale: 1;
  --brand-word-width: 84px;
  --brand-total-width: calc(var(--brand-logo-size) + var(--brand-logo-gap) + var(--brand-word-width));
  --brand-logo-center-offset: calc((var(--brand-total-width) - var(--brand-logo-size)) / 2);
  --brand-logo-start-scale: 1.72;
  --brand-final-half-size: 17px;
  --brand-to-title-gap: 66px;
  --onboarding-title-final-y: calc(
    var(--brand-final-center-y) +
    var(--brand-final-half-size) +
    var(--brand-to-title-gap)
  );
}

.ns-totem-page {
  --brand-logo-gap: 8px;
  --brand-logo-start-gap: 20px;
  --brand-word-start-scale: 1.1;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 48%, var(--pink) 100%);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 48%, var(--pink) 100%);
  overflow: hidden;
}

/* Sfondo animato (particles.js), allineato a login.php */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

/* Tema scuro, allineato a login.php (che è scuro di default e schiarisce in light mode) */
@media (prefers-color-scheme: dark) {
  body.ns-register-page {
    --ink: #e6eaf3;
    --muted: #98a2b3;
    background:
      radial-gradient(600px 420px at 20% 10%, rgba(142, 95, 255, 0.35), transparent 80%),
      radial-gradient(700px 520px at 80% 20%, rgba(255, 89, 131, 0.3), transparent 80%),
      radial-gradient(800px 600px at 50% 100%, rgba(142, 95, 255, 0.22), transparent 78%),
      #0b0f19;
  }

  body.ns-register-page .choice-logo p {
    color: var(--muted);
  }
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  width: min(100%, 430px);
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}

.app {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding:
    max(22px, env(safe-area-inset-top))
    18px
    max(18px, env(safe-area-inset-bottom));
  opacity: 0;
  transform: translateX(34px);
  pointer-events: none;
  transition:
    opacity 360ms ease,
    transform 440ms cubic-bezier(0.18, 0.85, 0.2, 1);
}

.screen.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.screen.is-left {
  transform: translateX(-34px);
}

.splash,
.splash.is-left,
.splash.is-active,
.value-intro,
.value-intro.is-left,
.value-intro.is-active,
.onboarding,
.onboarding.is-left,
.onboarding.is-active {
  transform: translateX(0);
}

.splash,
.value-intro,
.onboarding {
  transition: opacity 300ms ease;
}

.screen-gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 48%, var(--pink) 100%);
}

.screen-light {
  /* Nessun pannello: il contenuto galleggia sullo sfondo di pagina/particles, come login.php */
  background: transparent;
}

.screen-white {
  background: #f6f8ff;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #000;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translateX(-22px);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  box-shadow: none;
}

.logo-xl {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: block;
  box-shadow: none;
}

.splash {
  justify-content: center;
  align-items: center;
  gap: 22px;
  background: linear-gradient(150deg, #fbfcff 0%, #f7f5fb 58%, #eef6fb 100%);
}

.persistent-brand {
  position: absolute;
  left: 50%;
  top: var(--brand-final-center-y);
  z-index: 3;
  display: inline-flex;
  width: var(--brand-total-width);
  height: var(--brand-logo-size);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.persistent-brand.is-docked {
  z-index: 4;
}

.persistent-brand-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--brand-logo-gap);
  width: var(--brand-total-width);
  height: var(--brand-logo-size);
  transform-origin: calc(var(--brand-logo-size) / 2) center;
  animation:
    splashBrandTravel 2000ms cubic-bezier(0.18, 0.86, 0.2, 1) both,
    splashBrandGap 2000ms cubic-bezier(0.18, 0.86, 0.2, 1) both;
  will-change: transform;
}

.persistent-brand.is-docked .persistent-brand-inner {
  transform: none;
  animation: none;
  will-change: auto;
}

.persistent-brand .logo-xl {
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  flex: 0 0 auto;
  transform-origin: center;
  animation: splashLogoScale 2000ms cubic-bezier(0.18, 0.86, 0.2, 1) both;
  will-change: transform;
}

.persistent-brand.is-docked .logo-xl {
  transform: none;
  animation: none;
  will-change: auto;
}

.splash-word {
  flex: 0 0 var(--brand-word-width);
  margin: 0;
  width: var(--brand-word-width);
  color: #000;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  transform-origin: left center;
  opacity: 0;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-6px);
  animation: splashWordReveal 2000ms cubic-bezier(0.18, 0.86, 0.2, 1) both;
  will-change: clip-path, opacity, transform, filter;
}

.persistent-brand.is-docked .splash-word {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
  filter: blur(0);
  animation: none;
  will-change: auto;
}

.persistent-brand.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

@keyframes splashBrandTravel {
  0%, 18% {
    transform: translate3d(
      var(--brand-logo-center-offset),
      calc(50svh - var(--brand-final-center-y)),
      0
    );
  }

  42%, 52% {
    transform: translate3d(0, calc(50svh - var(--brand-final-center-y)), 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes splashBrandGap {
  0%, 52% {
    gap: var(--brand-logo-start-gap);
  }

  100% {
    gap: var(--brand-logo-gap);
  }
}

@keyframes splashLogoScale {
  0%, 52% {
    transform: scale(var(--brand-logo-start-scale));
  }

  100% {
    transform: scale(1);
  }
}

@keyframes splashWordReveal {
  0%, 18% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-6px) scale(var(--brand-word-start-scale));
    filter: blur(7px);
  }

  42%, 52% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0) scale(var(--brand-word-start-scale));
    filter: blur(0);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.onboarding {
  position: absolute;
  justify-content: flex-start;
  gap: 0;
  padding-top: var(--onboarding-title-final-y);
  background: #fbfcff;
  overflow: hidden;
}

.onboarding::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(184, 218, 236, 0.96) 0%, rgba(246, 242, 250, 0.98) 40%, rgba(247, 220, 239, 0.98) 100%);
  opacity: 0;
  transform: scale(1.015);
  filter: blur(10px);
  pointer-events: none;
}

.onboarding.intro-running::before {
  animation: onboardingBackgroundTint 1300ms cubic-bezier(0.16, 0.84, 0.28, 1) 80ms both;
}

.onboarding-header {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: clamp(28px, 4.3svh, 42px);
  text-align: center;
}

.onboarding-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.onboarding-title span {
  background: linear-gradient(90deg, var(--violet), var(--pink-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.onboarding.intro-running .onboarding-title {
  animation: onboardingTitleSettle 420ms ease 80ms both;
  will-change: opacity, filter;
}

.onboarding.intro-running .step-card,
.onboarding.intro-running .bottom-nav {
  animation: onboardingContentReveal 520ms ease both;
}

.onboarding.intro-running .step-card {
  animation-delay: 420ms;
}

.onboarding.intro-running .bottom-nav {
  animation-delay: 520ms;
}

@keyframes onboardingBackgroundTint {
  0% {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(10px);
  }

  42% {
    opacity: 0.62;
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes onboardingTitleSettle {
  0% {
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes onboardingContentReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes textBlurIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.value-intro {
  --value-content-delay: 360ms;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--brand-final-center-y) + var(--brand-final-half-size) + 52px);
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: #fbfcff;
  overflow: hidden;
  text-align: center;
}

.value-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, #f8f9fd 0%, #f8f7fc 54%, #f1edf4 100%);
  pointer-events: none;
}

.value-intro-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 32px;
  margin-top: 0;
}

.value-intro-copy {
  width: min(342px, 100%);
  display: grid;
  justify-items: center;
  gap: 0;
}

.value-intro-message {
  position: relative;
  top: -52px;
  max-width: 342px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 8.6vw, 40px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

.value-intro-message span {
  display: inline;
  background: linear-gradient(100deg, var(--violet) 0%, var(--pink) 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.value-intro-message.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 4px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: -0.08em;
  animation: typeCursorBlink 760ms steps(1, end) infinite;
}

@keyframes typeCursorBlink {
  50% {
    opacity: 0;
  }
}

.value-price {
  color: var(--violet);
}

.value-every {
  color: var(--pink);
}

.value-views {
  color: var(--blue);
}

.value-intro-next {
  width: min(322px, calc(100vw - 64px));
  margin-top: clamp(34px, 5.6svh, 58px);
  color: rgba(255, 255, 255, 0.62);
}

.value-stage {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.value-intro.is-active .value-stage {
  animation: valueStageIn 520ms cubic-bezier(0.18, 0.86, 0.2, 1) both;
  animation-delay: calc(var(--value-content-delay) + var(--delay, 0s));
}

@keyframes valueStageIn {
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.step-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: min(52svh, 456px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 32px 24px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  isolation: isolate;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue) 0%, #6f87e8 38%, var(--violet) 68%, var(--pink) 100%);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue) 0%, #6f87e8 38%, var(--violet) 68%, var(--pink) 100%);
  filter:
    drop-shadow(0 14px 13px rgba(24, 25, 38, 0.28))
    drop-shadow(0 4px 18px rgba(127, 97, 238, 0.18));
  opacity: 0.32;
 transform: translate(2px, 4px);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.step-card > * {
  position: relative;
  z-index: 3;
}

.step-icon {
  width: 116px;
  height: 116px;
  border: 2px solid rgba(84, 163, 215, 0.72);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.42);
}

.step-icon svg {
  width: 60px;
  height: 60px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-copy {
  display: grid;
  gap: 10px;
  text-align: center;
}

.step-copy.copy-blur-in h2,
.step-copy.copy-blur-in p {
  animation: textBlurIn 420ms ease both;
}

.step-copy h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
}

.step-copy p {
  max-width: 255px;
  margin: 0 auto;
  color: #2f3548;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 700;
}

.bottom-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(42px, 6.2svh, 58px);
  margin-top: clamp(18px, 2.7svh, 26px);
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(104, 112, 132, 0.25);
}

.dot.is-active {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(85, 164, 214, 0.16);
}

.actions {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
}

.round-button,
.main-button {
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    opacity 170ms ease;
}

.round-button {
  width: 48px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(85, 164, 214, 0.58);
  box-shadow: 0 8px 20px rgba(64, 83, 130, 0.1);
}

.round-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.round-button:disabled {
  opacity: 0.32;
  box-shadow: none;
}

.main-button {
  width: 100%;
  color: #fff;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(96deg, var(--blue) 0%, var(--violet) 48%, var(--pink) 100%);
  box-shadow: 0 15px 28px rgba(115, 76, 207, 0.28);
}

.main-button:active,
.round-button:active,
.choice-card:active {
  transform: scale(0.98);
}

.choice-screen {
  justify-content: center;
  gap: 22px;
}

.choice-logo {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-bottom: 2px;
}

.choice-logo h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.choice-screen.is-active .choice-logo h2,
.choice-screen.is-active .choice-card strong,
.choice-screen.is-active .pill-outline,
.form-screen.is-active .form-card h2,
.form-screen.is-active .field-group label,
.form-screen.is-active .helper-text,
.form-screen.is-active .login-link,
.story-screen.is-active .story-card h2,
.story-screen.is-active .story-card p {
  animation: textBlurIn 500ms ease both;
}

.choice-list {
  width: 100%;
  display: grid;
  gap: 18px;
}

.ready-choice-screen {
  justify-content: flex-start;
  gap: 18px;
  padding-top: calc(var(--brand-final-center-y) + var(--brand-final-half-size) + 42px);
  overflow-y: auto;
}

.ready-choice-list {
  width: 100%;
  display: grid;
  gap: 20px;
}

.ready-publish-card {
  width: 100%;
  min-height: 284px;
  margin: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 30px 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(120deg, var(--pink) 0%, #a954be 58%, var(--violet) 100%);
  box-shadow: 0 16px 25px rgba(26, 31, 61, 0.2);
  text-align: center;
}

.ready-location-name {
  max-width: 100%;
  margin: 0;
  font-size: clamp(21px, 6.2vw, 27px);
  line-height: 1.12;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.ready-publish-button {
  width: min(100%, 286px);
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 18px rgba(30, 22, 65, 0.16);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  transition:
    transform 170ms ease,
    background-color 170ms ease;
}

.ready-publish-card p {
  max-width: 30ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.ready-home-card {
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border: 3px solid transparent;
  border-radius: 24px;
  color: var(--violet);
  background:
    linear-gradient(#f6f8ff, #f6f8ff) padding-box,
    linear-gradient(120deg, var(--blue) 0%, #6f87e8 46%, var(--violet) 100%) border-box;
  box-shadow: none;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition:
    transform 170ms ease,
    background-color 170ms ease;
}

.ready-publish-button:active,
.ready-home-card:active {
  transform: scale(0.98);
}

.choice-card {
  width: 100%;
  min-width: 0;
  min-height: 160px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px 20px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--pink) 0%, #a954be 58%, var(--violet) 100%);
  box-shadow: 0 16px 25px rgba(26, 31, 61, 0.24);
  overflow: hidden;
  text-align: center;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease;
}

.choice-card.tone-primary,
.single-card.tone-primary {
  background: linear-gradient(120deg, var(--pink) 0%, #a954be 58%, var(--violet) 100%);
}

.choice-card.secondary,
.choice-card.login {
  background: linear-gradient(120deg, var(--blue) 0%, #8d62d8 52%, var(--pink) 100%);
}

.choice-card.tone-secondary,
.single-card.tone-secondary {
  background: linear-gradient(120deg, var(--blue) 0%, #6f87e8 46%, var(--violet) 100%);
}

.choice-card.tone-login,
.single-card.tone-login {
  background: linear-gradient(120deg, #f04f9a 0%, var(--violet) 52%, var(--blue) 100%);
}

.choice-card.tone-site,
.single-card.tone-site {
  background: linear-gradient(120deg, #68758f 0%, #8059ee 56%, #55a4d6 100%);
}

.choice-card strong {
  max-width: 100%;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pill-outline {
  max-width: 100%;
  min-width: 174px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 12px rgba(12, 16, 35, 0.12);
}

.form-screen {
  gap: 16px;
  padding-left: 16px;
  padding-right: 16px;
  overflow-y: auto;
}

.credentials-screen {
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding:
    clamp(34px, 5.4svh, 52px)
    12px
    max(22px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.form-top {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-top: 6px;
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(77, 86, 114, 0.12);
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 18px 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.credentials-card {
  width: min(100%, 390px);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 58px 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 13px 16px rgba(24, 22, 44, 0.27),
    0 3px 8px rgba(36, 40, 65, 0.16);
}

.credentials-logo {
  width: 80px;
  height: 80px;
  display: block;
  margin-bottom: 26px;
  border-radius: 50%;
}

.credentials-panel {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 20px 14px 16px;
  border-radius: 19px;
  background: #eef3ff;
  box-shadow: 0 16px 24px rgba(91, 99, 144, 0.13);
}

.form-card h2,
.credentials-panel h2,
.story-card h2 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
}

.credentials-panel h2 {
  font-size: 18px;
  line-height: 1.15;
}

.kicker {
  display: block;
  margin-bottom: 7px;
  color: #9199ac;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.field-group {
  display: grid;
  gap: 7px;
}

.credentials-password {
  gap: 9px;
  margin-top: 2px;
}

.field-group label {
  color: #30394f;
  font-size: 13px;
  font-weight: 800;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  box-shadow:
    0 7px 12px rgba(41, 48, 78, 0.16),
    inset 0 0 0 1px rgba(90, 105, 135, 0.05);
  outline: none;
  font-size: 14px;
  font-weight: 800;
  caret-color: var(--violet);
  pointer-events: auto;
}

.credentials-panel .input-wrap input {
  height: 52px;
  padding: 0 18px;
  font-size: 14px;
  box-shadow:
    0 9px 13px rgba(41, 48, 78, 0.21),
    inset 0 0 0 1px rgba(90, 105, 135, 0.04);
}

.input-wrap input::placeholder {
  color: #9aa2af;
  font-weight: 700;
}

.input-wrap.has-earnings input {
  padding-right: 128px;
}

.input-wrap input:focus {
  box-shadow:
    0 9px 16px rgba(85, 164, 214, 0.22),
    inset 0 0 0 2px rgba(85, 164, 214, 0.42);
}

.input-wrap.is-valid input {
  padding-bottom: 8px;
}

.credentials-panel .input-wrap.is-valid {
  margin-bottom: 16px;
}

.credentials-panel .input-wrap.is-valid input {
  padding-bottom: 0;
}

.input-wrap.is-valid::after {
  content: "Email disponibile.";
  position: absolute;
  left: 18px;
  bottom: -1px;
  color: #2fbf55;
  font-size: 8px;
  font-weight: 900;
}

.credentials-panel .input-wrap.is-valid::after {
  left: 15px;
  bottom: -20px;
  font-size: 11px;
}

.input-wrap.is-warning input {
  background: #fbffad;
}

.credentials-panel .input-wrap.is-warning input {
  background: #fbffad;
  box-shadow:
    0 9px 14px rgba(41, 48, 78, 0.24),
    inset 0 0 0 1px rgba(178, 177, 68, 0.1);
}

.password-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #a4a34a;
}

.credentials-panel .password-eye {
  right: 16px;
  width: 22px;
  height: 22px;
}

.password-eye svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.helper-text {
  margin: -2px 0 0;
  color: #7c8496;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.earnings-pill {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 112px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #0f8d55;
  background: #d9f7df;
  font-size: 8px;
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 5px 10px rgba(15, 141, 85, 0.12);
}

.earnings-pill strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.privacy-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 14px rgba(41, 48, 78, 0.13);
}

.privacy-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ff6a00;
  font-weight: 900;
}

.privacy-note strong {
  display: block;
  margin-bottom: 4px;
  color: #ff6a00;
  font-size: 16px;
  font-weight: 900;
}

.privacy-note p {
  margin: 0;
  color: #5d6474;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.privacy-note em {
  color: #ff6a00;
  font-style: normal;
  font-weight: 900;
}

.checkbox-line {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: #697185;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.checkbox-line input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.checkbox-line a,
.login-link a {
  color: #4a66f0;
  font-weight: 900;
  text-decoration: none;
}

.login-link {
  margin: -2px 0 0;
  color: #768095;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.credentials-card > .main-button {
  height: 54px;
  margin-top: 10px;
  font-size: 16px;
  box-shadow: 0 12px 20px rgba(118, 79, 205, 0.23);
}

.credentials-card > .login-link {
  margin: -2px 0 0;
  color: #7f879c;
  font-size: 14px;
  font-weight: 800;
}

.credentials-footer {
  margin: clamp(58px, 9svh, 104px) 0 0;
  color: rgba(124, 132, 158, 0.72);
  font-size: 12px;
  line-height: 1.32;
  font-weight: 800;
  text-align: center;
}

.form-actions {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.story-screen {
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding:
    clamp(118px, 15svh, 148px)
    18px
    max(26px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.story-card {
  width: min(100%, 394px);
  display: grid;
  gap: 18px;
  padding: 38px 20px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 17px 20px rgba(24, 22, 44, 0.26),
    0 4px 10px rgba(36, 40, 65, 0.14);
}

.story-card h2 {
  font-size: 30px;
  line-height: 1.06;
  text-align: center;
  letter-spacing: 0;
}

.story-card p {
  margin: -12px auto 16px;
  max-width: 330px;
  color: #58607f;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 800;
  text-align: center;
}

.story-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.story-example {
  position: relative;
  min-width: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
}

.story-example-trigger {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
  overflow: visible;
}

.story-example.good {
  box-shadow:
    0 0 0 3px #00c96b,
    0 9px 16px rgba(18, 47, 42, 0.18);
}

.story-example.bad {
  box-shadow:
    0 0 0 3px #f32328,
    0 9px 16px rgba(65, 24, 31, 0.16);
}

.example-label {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 128px;
  height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 13px rgba(28, 34, 54, 0.18);
  z-index: 2;
  pointer-events: none;
}

.story-example.good .example-label {
  color: #0b8d55;
  background: #dff2e9;
}

.story-example.bad .example-label {
  color: #c60022;
  background: #fac5d4;
}

.story-example img {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.story-example-zoom-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 6px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 24, 45, 0.72);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.example-mark {
  position: absolute;
  right: -8px;
  bottom: -20px;
  color: #00c96b;
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.18);
  z-index: 2;
  pointer-events: none;
}

.story-example.bad .example-mark {
  color: #ff4f35;
}

.story-card > .main-button {
  height: 54px;
  margin-top: 20px;
  font-size: 17px;
  box-shadow: 0 12px 20px rgba(118, 79, 205, 0.24);
}

.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.9);
  overscroll-behavior: contain;
  touch-action: none;
}

.story-lightbox[hidden] {
  display: none !important;
}

.story-lightbox-panel {
  position: relative;
  width: min(100%, 410px);
  max-height: calc(100dvh - 36px);
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.38);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  touch-action: none;
}

.story-lightbox.is-dragging .story-lightbox-panel {
  transition: none;
}

.story-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 24, 45, 0.62);
  font-size: 27px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.story-lightbox-image-wrap {
  width: 100%;
  max-height: calc(100dvh - 108px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  touch-action: none;
}

.story-lightbox.is-dragging .story-lightbox-image-wrap {
  cursor: grabbing;
}

.story-lightbox-image {
  max-width: 100%;
  max-height: calc(100dvh - 108px);
  display: block;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.story-lightbox-caption {
  color: #596177;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}

.top-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: rgba(16, 24, 45, 0.7);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(12px);
}

.top-close.is-visible {
  display: grid;
}

.top-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
}

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

@media (min-width: 520px) {
  body {
    align-items: center;
    padding: 18px;
  }

  .stage {
    min-height: auto;
  }

  .app {
    width: min(100%, 430px);
    max-height: calc(100svh - 36px);
  }
}

@media (max-width: 370px), (max-height: 720px) {
  .screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  .onboarding {
    padding-top: var(--onboarding-title-final-y);
  }

  .onboarding-header {
    margin-bottom: 22px;
  }

  .value-intro {
    padding-top: calc(var(--brand-final-center-y) + var(--brand-final-half-size) + 34px);
  }

  .value-intro-content {
    gap: 26px;
    margin-top: 0;
  }

  .value-intro-message {
    top: -42px;
    max-width: 300px;
    font-size: clamp(27px, 8vw, 34px);
  }

  .value-intro-next {
    margin-top: clamp(28px, 5svh, 48px);
  }

  .step-card {
    min-height: min(46svh, 338px);
    padding: 24px 18px;
    gap: 16px;
  }

  .bottom-nav {
    gap: 34px;
    margin-top: 16px;
  }

  .step-icon {
    width: 94px;
    height: 94px;
  }

  .choice-card {
    min-height: 138px;
  }

  .ready-choice-screen {
    padding-top: calc(var(--brand-final-center-y) + var(--brand-final-half-size) + 30px);
  }

  .ready-choice-list {
    gap: 14px;
  }

  .ready-publish-card {
    min-height: 240px;
    gap: 18px;
    padding: 24px 20px;
  }

  .ready-home-card {
    min-height: 72px;
  }

  .choice-card strong {
    font-size: 30px;
  }

  .pill-outline {
    font-size: 13px;
  }

  .step-copy h2 {
    font-size: 19px;
  }

  .step-copy p {
    font-size: 15px;
  }

  .form-card {
    gap: 11px;
    padding-top: 15px;
  }

  .form-card h2 {
    font-size: 17px;
  }

  .field-group label {
    font-size: 12px;
  }

  .input-wrap input {
    height: 44px;
    font-size: 13px;
  }

  .credentials-panel .input-wrap input {
    height: 50px;
    font-size: 14px;
  }

  .credentials-card {
    gap: 14px;
    padding: 50px 14px 16px;
  }

  .credentials-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
  }

  .credentials-panel {
    gap: 12px;
    padding: 18px 13px 15px;
  }

  .credentials-panel h2 {
    font-size: 17px;
  }

  .credentials-card > .main-button {
    height: 52px;
    font-size: 15px;
  }

  .credentials-card > .login-link {
    font-size: 13px;
  }

  .story-screen {
    padding-top: 92px;
  }

  .story-card {
    gap: 14px;
    padding: 30px 16px 20px;
  }

  .story-card h2 {
    font-size: 26px;
  }

  .story-card p {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .story-examples {
    gap: 10px;
    margin-top: 30px;
  }

  .example-label {
    top: -38px;
    min-width: 112px;
    height: 31px;
    font-size: 12px;
  }

  .example-mark {
    right: -7px;
    bottom: -17px;
    font-size: 55px;
  }

  .story-card > .main-button {
    height: 52px;
    margin-top: 16px;
    font-size: 16px;
  }
}

@media (max-height: 650px) {
  body {
    overflow: auto;
  }

  .stage,
  .app {
    min-height: 650px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Production bindings for the PHP totem/register flows. */
:root {
  --brand-logo-gap: 28px;
  --brand-word-width: 96px;
}

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

a {
  color: inherit;
}

.logo-row {
  display: none;
}

.brand-logo,
.credentials-logo,
.persistent-brand .logo-xl {
  display: block;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.persistent-brand .logo-xl {
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  min-width: var(--brand-logo-size);
  min-height: var(--brand-logo-size);
  max-width: var(--brand-logo-size);
  max-height: var(--brand-logo-size);
}

.credentials-logo {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
}

.onboarding-title,
.choice-logo h2 {
  letter-spacing: 0;
}

.choice-logo p {
  max-width: 310px;
  margin: -8px auto 0;
  color: #667187;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
}

.choice-form {
  margin: 0;
  display: grid;
}

.choice-form .choice-card {
  width: 100%;
  font-family: inherit;
}

.single-card {
  width: 100%;
  min-width: 0;
  min-height: 160px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px 20px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--pink) 0%, #a954be 58%, var(--violet) 100%);
  box-shadow: 0 16px 25px rgba(26, 31, 61, 0.24);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease;
}

.single-card.secondary,
.single-card.login {
  background: linear-gradient(120deg, var(--blue) 0%, #8d62d8 52%, var(--pink) 100%);
}

.choice-card p,
.single-card p {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.choice-card,
.choice-card *,
.single-card,
.single-card * {
  text-decoration: none;
}

.single-card strong {
  max-width: 100%;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.single-card:active {
  transform: scale(0.98);
}

.notice-stack {
  display: grid;
  gap: 9px;
}

.banner,
.form-alert {
  border-radius: 14px;
  padding: 12px 14px;
  color: #4e596f;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 9px 16px rgba(41, 48, 78, 0.11);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.banner.warn {
  color: #a05a00;
  background: #fff3d5;
}

.banner.error,
.form-alert {
  color: #b91c1c;
  background: #fee2e2;
}

.banner.info {
  color: #3150c6;
  background: #e7ecff;
}

.register-screen {
  align-items: center;
  padding-top: max(14px, env(safe-area-inset-top));
}

.auth-card {
  width: min(100%, 394px);
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
}

.card-head {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-top: 6px;
}

.card-head h1,
.card-head .lede,
.card-head .brand-badge {
  display: none;
}

.card-head .progress-track {
  width: 100%;
}

.card-head .progress-dots {
  display: none;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transition: width 260ms ease;
}

.form-step {
  display: none;
  gap: 14px;
  padding: 18px 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.form-step.active {
  display: grid;
  animation: registerStepIn 440ms cubic-bezier(0.18, 0.85, 0.2, 1) both;
}

@keyframes registerStepIn {
  0% {
    opacity: 0;
    transform: translateX(34px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-step h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.eyebrow {
  display: block;
  margin: 0 0 -3px;
  color: #9199ac;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hint,
.field-help {
  margin: 0;
  color: #7c8496;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.d-none {
  display: none !important;
}

.ns-register-app[data-register-step="instagram"] .persistent-brand,
.ns-register-app[data-register-step="profile"] .persistent-brand {
  opacity: 1;
  visibility: visible;
}

.ns-register-app[data-register-step="role"] .persistent-brand,
.ns-register-app[data-register-step="credentials"] .persistent-brand {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.94);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 0s linear 220ms;
}

.ns-register-totem .ns-register-app[data-register-step="instagram"] .persistent-brand,
.ns-register-totem .ns-register-app[data-register-step="profile"] .persistent-brand {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.94);
  transition: none;
}

.ns-register-app[data-register-step="role"] .card-head,
.ns-register-app[data-register-step="credentials"] .card-head {
  display: none;
}

.form-step.role-step.active {
  gap: 22px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.role-step .choice-logo {
  padding-top: 4px;
}

.role-select-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.role-choice.is-selected {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.7),
    0 20px 30px rgba(26, 31, 61, 0.28);
}

body:not(.ns-register-totem) #registerForm[data-current-step="0"] > .actions {
  display: none;
}

.form-step.credentials-step.active {
  width: min(100%, 390px);
  justify-items: center;
  gap: 16px;
  padding: 58px 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 13px 16px rgba(24, 22, 44, 0.27),
    0 3px 8px rgba(36, 40, 65, 0.16);
}

.credentials-step .credentials-logo {
  width: 80px;
  height: 80px;
  display: block;
  margin-bottom: 26px;
  border-radius: 50%;
}

.credentials-step .credentials-panel {
  width: 100%;
}

.credentials-step .eyebrow {
  margin-bottom: 7px;
}

.ns-register-totem .register-screen {
  gap: 16px;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: max(14px, env(safe-area-inset-top));
}

.ns-register-totem .auth-card {
  width: min(100%, 394px);
  gap: 16px;
  padding-bottom: 0;
}

.ns-register-totem .card-head {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding-top: 6px;
}

.ns-register-totem .card-head h1,
.ns-register-totem .card-head .lede,
.ns-register-totem .card-head .brand-badge,
.ns-register-totem .card-head .progress-dots {
  display: none;
}

.ns-register-totem .card-head .progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(77, 86, 114, 0.12);
  overflow: hidden;
}

.ns-register-totem #registerForm[data-current-step="1"],
.ns-register-totem #registerForm[data-current-step="2"] {
  display: grid;
  gap: 14px;
  padding: 18px 14px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.ns-register-totem #registerForm[data-current-step="1"] .form-step.active,
.ns-register-totem #registerForm[data-current-step="2"] .form-step.active {
  display: grid;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ns-register-totem #registerForm[data-current-step="1"] .form-step h2,
.ns-register-totem #registerForm[data-current-step="2"] .form-step h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.ns-register-totem #registerForm[data-current-step="1"] > .actions,
.ns-register-totem #registerForm[data-current-step="2"] > .actions {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ns-register-totem #registerForm[data-current-step="1"] .card-footer,
.ns-register-totem #registerForm[data-current-step="2"] .card-footer {
  margin: -2px 0 0;
}

.ns-register-totem #registerForm[data-current-step="0"] .card-footer {
  margin-top: -2px;
}

.stack,
.totem-instagram-layout,
.totem-instagram-fields,
.field-pair,
.consent {
  display: grid;
  gap: 12px;
}

.field-group {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-label,
.field-group label {
  color: #30394f;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.field-control,
.field-group textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  box-shadow:
    0 7px 12px rgba(41, 48, 78, 0.16),
    inset 0 0 0 1px rgba(90, 105, 135, 0.05);
  outline: none;
  font-size: 14px;
  font-weight: 800;
  caret-color: var(--violet);
}

.credentials-panel .field-control {
  min-height: 52px;
  box-shadow:
    0 9px 13px rgba(41, 48, 78, 0.21),
    inset 0 0 0 1px rgba(90, 105, 135, 0.04);
}

.credentials-panel .field-control[readonly] {
  color: #45506a;
  background: #f2f6fb;
  cursor: default;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  color: #8a93a6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(118, 128, 149, 0.25);
}

.google-auth-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 18px;
  border: 1px solid rgba(90, 105, 135, 0.2);
  border-radius: 999px;
  color: #30394f;
  background: #fff;
  box-shadow: 0 8px 14px rgba(41, 48, 78, 0.13);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.google-auth-button:active {
  transform: scale(0.99);
}

.google-auth-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

textarea.field-control {
  min-height: 92px;
  padding-top: 14px;
  border-radius: 18px;
}

select.field-control {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #7c8496 50%),
    linear-gradient(135deg, #7c8496 50%, transparent 50%);
  background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input[type="date"].field-control {
  color-scheme: light;
}

.field-control::placeholder {
  color: #9aa2af;
  font-weight: 700;
}

.field-control:focus {
  box-shadow:
    0 9px 16px rgba(85, 164, 214, 0.22),
    inset 0 0 0 2px rgba(85, 164, 214, 0.42);
}

.field-control.is-invalid {
  box-shadow:
    0 9px 16px rgba(239, 68, 68, 0.16),
    inset 0 0 0 2px rgba(239, 68, 68, 0.72);
}

.input-wrap input.is-invalid {
  box-shadow:
    0 9px 16px rgba(239, 68, 68, 0.16),
    inset 0 0 0 2px rgba(239, 68, 68, 0.72);
}

.field-control.is-valid {
  box-shadow:
    0 9px 16px rgba(47, 191, 85, 0.16),
    inset 0 0 0 2px rgba(47, 191, 85, 0.72);
}

.input-wrap input.is-valid {
  box-shadow:
    0 9px 16px rgba(47, 191, 85, 0.16),
    inset 0 0 0 2px rgba(47, 191, 85, 0.72);
}

.password-wrap .field-control {
  padding-right: 52px;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9a9a40;
  background: transparent;
}

.toggle-pass svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toggle-pass .eye-off {
  display: none;
}

.toggle-pass.is-visible .eye-on {
  display: none;
}

.toggle-pass.is-visible .eye-off {
  display: block;
}

.inline-status {
  min-height: 16px;
  color: #7c8496;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

.inline-status.ok {
  color: #0f8d55;
}

.inline-status.error {
  color: #c60022;
}

.earning-preview {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 999px;
  color: #0f8d55;
  background: #d9f7df;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  box-shadow: 0 5px 10px rgba(15, 141, 85, 0.12);
}

.private-profile-alert,
.checkbox-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  color: #5d6474;
  background: #fff;
  box-shadow: 0 8px 14px rgba(41, 48, 78, 0.13);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.private-profile-alert strong {
  color: #ff6a00;
  font-weight: 900;
}

.private-profile-icon,
.checkbox-icon,
.info-tip {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ff6a00;
  font-size: 18px;
  font-weight: 900;
}

.checkbox-icon {
  color: #4a66f0;
  background: #e7ecff;
}

.info-tip {
  position: relative;
  width: 20px;
  height: 20px;
  background: var(--violet);
  font-size: 12px;
  cursor: help;
}

.info-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  width: min(250px, calc(100vw - 56px));
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: #10182d;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 10;
}

.info-tip:hover::after,
.info-tip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.autocomplete-wrap {
  position: relative;
}

.autocomplete-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  display: none;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(30, 38, 68, 0.18);
}

.autocomplete-suggestions.is-open {
  display: grid;
}

.autocomplete-suggestion {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid rgba(105, 117, 139, 0.14);
  font-weight: 800;
  text-align: left;
}

.autocomplete-suggestion:last-child {
  border-bottom: 0;
}

.autocomplete-region {
  color: #7c8496;
  font-size: 12px;
  font-weight: 800;
}

.checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: #697185;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.checkbox input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.checkbox a,
.card-footer a {
  color: #4a66f0;
  font-weight: 900;
  text-decoration: none;
}

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

form > .actions {
  grid-template-columns: 48px minmax(0, 1fr);
}

form > .actions .primary {
  min-width: 0;
}

.primary {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(96deg, var(--blue) 0%, var(--violet) 48%, var(--pink) 100%);
  box-shadow: 0 15px 28px rgba(115, 76, 207, 0.28);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    opacity 170ms ease;
}

.primary:active {
  transform: scale(0.98);
}

.primary:disabled {
  opacity: 0.62;
  cursor: wait;
}

.ghost {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(85, 164, 214, 0.58);
  box-shadow: 0 8px 20px rgba(64, 83, 130, 0.1);
  font-size: 0;
}

.ghost::before {
  content: "";
  width: 16px;
  height: 16px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(45deg) translate(2px, -1px);
}

#prevButton[style*="none"] + .primary {
  grid-column: 1 / -1;
}

.card-footer {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #768095 !important;
  font-size: 13px;
  font-weight: 800 !important;
  text-align: center;
}

@media (max-width: 370px), (max-height: 720px) {
  .form-step {
    gap: 11px;
    padding-top: 15px;
  }

  .field-control {
    min-height: 44px;
    font-size: 13px;
  }
}
