/* TrustMeet signup / login journey — story beats, not a dump of fields. */

@keyframes tm-ob-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -12px) scale(1.06); }
}

@keyframes tm-ob-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tm-ob-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
}

.tm-ob-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tm-ob-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  animation: tm-ob-orb 18s ease-in-out infinite;
}

.tm-ob-ambient__orb--a {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -12%;
  left: -18%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
}

.tm-ob-ambient__orb--b {
  width: min(360px, 60vw);
  height: min(360px, 60vw);
  right: -16%;
  top: 28%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 70%);
  animation-delay: -6s;
}

.tm-ob-ambient__orb--c {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  left: 30%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.12), transparent 72%);
  animation-delay: -11s;
}

.tm-onboard-body > *:not(.tm-ob-ambient) {
  position: relative;
  z-index: 1;
}

.tm-onboard-wrap:not(.tm-mem-wrap):not(.tm-face-verify-wrap) {
  max-width: 520px;
}

.tm-onboard-form-card,
.tm-cec-card {
  animation: tm-ob-rise 0.45s ease both;
}

.tm-ob-js .tm-ob-scene {
  display: none;
}

.tm-ob-js .tm-ob-scene.is-active {
  display: block;
  animation: tm-ob-rise 0.35s ease both;
}

.tm-ob-story-nav,
.tm-ob-scene-nav {
  display: none;
}

.tm-ob-js .tm-ob-story-nav,
.tm-ob-js .tm-ob-scene-nav:not([hidden]) {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.tm-ob-story-nav .tm-onboard-btn,
.tm-ob-scene-nav .tm-onboard-btn {
  flex: 1;
}

.tm-ob-ghost {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tm-ob-ghost[hidden],
.tm-ob-story-nav [hidden],
.tm-ob-scene-nav [hidden] {
  display: none !important;
}

.tm-ob-story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.tm-ob-story-dots span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.35);
}

.tm-ob-story-dots span.is-on {
  width: 22px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
}

.tm-ob-beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tm-ob-beats li {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(8, 13, 28, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.tm-ob-beats li span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.tm-cec-card h1,
.tm-ob-step1-header h1 {
  letter-spacing: -0.04em;
}

.tm-ob-progress-step.is-active .tm-ob-progress-dot {
  animation: tm-ob-dot-pulse 1.8s ease-in-out infinite;
}

.tm-ob-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tm-ob-choice__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 16px 10px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 13, 28, 0.55);
  color: #e2e8f0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.tm-ob-choice__card svg {
  width: 28px;
  height: 28px;
}

.tm-ob-choice__card.is-on,
.tm-ob-choice__card[aria-pressed="true"] {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(167, 139, 250, 0.12));
  transform: translateY(-2px);
  color: #fff;
}

.tm-ob-js .tm-ob-scene.is-active .tm-ob-gender-pill span {
  min-height: 96px;
  border-radius: 18px;
  font-size: 1.05rem;
}

.tm-ob-js [data-tm-scenes] > #tm-vj-profile-submit {
  display: none;
}

.tm-ob-js [data-tm-scenes].is-last-scene > #tm-vj-profile-submit {
  display: inline-flex;
  width: 100%;
}

.tm-ob-otp-boxes {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 4px;
}

.tm-ob-js .tm-ob-otp-boxes,
.tm-ob-js .tm-ob-otp-boxes[hidden] {
  display: grid !important;
}

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

.tm-ob-otp-box {
  width: 100%;
  min-height: 52px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  caret-color: #7dd3fc;
}

.tm-ob-otp-box:focus {
  outline: 2px solid rgba(56, 189, 248, 0.7);
  border-color: transparent;
}

.tm-ob-price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.tm-ob-price-chips button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tm-ob-price-chips button.is-on {
  border-color: transparent;
  color: #0b1220;
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
}

.tm-ob-photo-picker--easy .tm-ob-photo-preview {
  min-height: 280px;
  border-radius: 24px;
  border: 1px dashed rgba(125, 211, 252, 0.45);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    rgba(8, 13, 28, 0.7);
}

.tm-login-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.tm-login-roles a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 14px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #f8fafc;
  background: rgba(8, 13, 28, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.tm-login-roles strong {
  font-size: 0.88rem;
}

.tm-login-roles span {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 500;
}

.tm-login-step {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.tm-vj-mood {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.tm-vj-mood span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  color: #bae6fd;
}

@media (max-width: 420px) {
  .tm-ob-otp-boxes {
    gap: 6px;
  }

  .tm-ob-otp-box {
    min-height: 46px;
    font-size: 1.15rem;
    border-radius: 12px;
  }

  .tm-ob-beats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-ob-ambient__orb,
  .tm-onboard-form-card,
  .tm-cec-card,
  .tm-ob-js .tm-ob-scene.is-active,
  .tm-ob-progress-step.is-active .tm-ob-progress-dot {
    animation: none !important;
  }
}
