:root {
  --tm-ob-bg0: #070a12;
  --tm-ob-bg1: #0f1629;
  --tm-ob-accent: #38bdf8;
  --tm-ob-accent2: #a78bfa;
  --tm-ob-text: #e2e8f0;
  --tm-ob-muted: #94a3b8;
  --tm-ob-danger: #fb7185;
  --tm-ob-success: #4ade80;
  --tm-ob-glass: rgba(15, 23, 42, 0.55);
  --tm-ob-border: rgba(148, 163, 184, 0.18);
}

.tm-onboard-body .tm-muted {
  color: var(--tm-ob-muted);
}

.tm-onboard-html,
.tm-onboard-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  color: var(--tm-ob-text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.1), transparent 55%),
    linear-gradient(165deg, #0c1018, #111827 50%, #0a0f1a);
}

.tm-onboard-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.tm-onboard-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.tm-onboard-brand-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tm-onboard-brand a,
.tm-onboard-brand-link-secondary {
  color: var(--tm-ob-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.tm-onboard-brand a:hover,
.tm-onboard-brand-link-secondary:hover {
  color: var(--tm-ob-text);
}

.tm-onboard-logout-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tm-onboard-logout-btn:hover {
  background: rgba(251, 113, 133, 0.18);
  border-color: rgba(251, 113, 133, 0.55);
  color: #fff;
}

.tm-onboard-logout-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.tm-onboard-brand-link {
  line-height: 0;
  text-decoration: none;
}

.tm-onboard-brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.22)) drop-shadow(0 0 20px rgba(244, 114, 182, 0.1));
}

.tm-onboard-logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  background: linear-gradient(120deg, #e0f2fe, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-onboard-hero {
  text-align: center;
  margin-bottom: 32px;
}

.tm-onboard-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
}

.tm-onboard-hero p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--tm-ob-muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

.tm-onboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tm-onboard-card {
  position: relative;
  border-radius: 22px;
  padding: 26px 22px 24px;
  background: var(--tm-ob-glass);
  border: 1px solid var(--tm-ob-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tm-onboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 120px at 20% 0%, rgba(56, 189, 248, 0.12), transparent 60%);
  pointer-events: none;
}

.tm-onboard-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.tm-onboard-card--accent2::before {
  background: radial-gradient(400px 120px at 20% 0%, rgba(167, 139, 250, 0.14), transparent 60%);
}

.tm-onboard-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  position: relative;
}

.tm-onboard-card p {
  margin: 0 0 18px;
  color: var(--tm-ob-muted);
  line-height: 1.55;
  font-size: 0.95rem;
  position: relative;
}

.tm-onboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tm-ob-accent);
  position: relative;
}

.tm-onboard-card--accent2 .tm-onboard-pill {
  color: var(--tm-ob-accent2);
}

.tm-onboard-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}

.tm-onboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0b1220;
  background: linear-gradient(120deg, #7dd3fc, #a5b4fc);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.tm-onboard-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.tm-onboard-btn:active {
  transform: scale(0.98);
}

.tm-onboard-btn--ghost {
  background: rgba(148, 163, 184, 0.12);
  color: var(--tm-ob-text);
  border: 1px solid var(--tm-ob-border);
  box-shadow: none;
}

.tm-onboard-form-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 28px 24px 26px;
  background: var(--tm-ob-glass);
  border: 1px solid var(--tm-ob-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.tm-onboard-form-card h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.tm-onboard-form-card > p.tm-muted {
  margin: 0 0 22px;
  color: var(--tm-ob-muted);
  line-height: 1.55;
}

.tm-onboard-field {
  margin-bottom: 16px;
}

.tm-onboard-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tm-ob-muted);
  margin-bottom: 6px;
}

.tm-onboard-field input,
.tm-onboard-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--tm-ob-border);
  background: rgba(15, 23, 42, 0.65);
  color: var(--tm-ob-text);
  font-size: 1rem;
  font-family: inherit;
}

.tm-onboard-field input:focus,
.tm-onboard-field select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.tm-onboard-field select {
  color-scheme: dark;
}

.tm-onboard-field select option,
.tm-onboard-field select optgroup {
  background-color: #0f172a;
  color: #f1f5f9;
}

.tm-onboard-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

.tm-onboard-alert.show {
  display: block;
}

.tm-onboard-otp-demo {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.35);
  text-align: center;
}

.tm-onboard-otp-demo.show {
  display: block;
}

.tm-onboard-otp-demo strong {
  display: inline-block;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  padding-left: 0.35em;
  color: var(--tm-ob-success);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(74, 222, 128, 0.35);
}

.tm-onboard-plans {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.tm-onboard-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--tm-ob-border);
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.tm-onboard-plan:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.tm-onboard-plan.is-selected {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(167, 139, 250, 0.1);
}

.tm-onboard-plan h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.tm-onboard-plan span {
  color: var(--tm-ob-muted);
  font-size: 0.88rem;
}

.tm-onboard-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #bae6fd;
}

.tm-onboard-footer {
  text-align: center;
  padding: 32px 16px 20px;
  color: var(--tm-ob-muted);
  font-size: 0.88rem;
}

.tm-onboard-footer a {
  color: var(--tm-ob-muted);
  text-decoration: none;
}

.tm-onboard-footer a:hover {
  color: var(--tm-ob-text);
}

.tm-onboard-footer__dot {
  margin: 0 8px;
  opacity: 0.5;
}

.tm-onboard-livestat {
  margin: 16px auto 0;
  max-width: 560px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.tm-onboard-browse-row {
  text-align: center;
  margin: 28px 0 0;
  font-size: 0.95rem;
  color: var(--tm-ob-muted);
  line-height: 1.55;
}

.tm-onboard-browse-link {
  color: var(--tm-ob-accent);
  font-weight: 600;
  text-decoration: none;
}

.tm-onboard-browse-link:hover {
  text-decoration: underline;
}

.tm-onboard-browse-hint {
  color: var(--tm-ob-muted);
}

@media (max-width: 520px) {
  .tm-onboard-wrap {
    padding-top: 18px;
  }
}

/* Visitor OTP onboarding — city typeahead dropdown */
.tm-onboard-field.tm-vst-city-wrap {
  position: relative;
}
.tm-onboard-body .tm-city-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--tm-ob-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.tm-onboard-body .tm-city-suggest-list.is-hidden {
  display: none;
}
.tm-onboard-body .tm-city-suggest-list__btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 2px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--tm-ob-text);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.tm-onboard-body .tm-city-suggest-list__btn:hover,
.tm-onboard-body .tm-city-suggest-list__btn:focus-visible {
  background: rgba(56, 189, 248, 0.12);
}

.tm-otp-resend-row {
  margin: 0 0 12px;
  text-align: center;
}

.tm-otp-resend-btn {
  border: none;
  background: none;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #a5b4fc;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tm-otp-resend-btn:hover:not(:disabled) {
  color: #c4b5fd;
}

.tm-otp-resend-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  text-decoration: none;
  color: #94a3b8;
}

/* Prefixed / OTP inputs sit outside .tm-onboard-field — force readable text on dark UI */
.tm-ob-input-wrap {
  color-scheme: dark;
}

.tm-ob-input-wrap input,
.tm-ob-otp-panel input,
#signup-otp {
  color: #f8fafc !important;
  caret-color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

.tm-ob-input-wrap input:-webkit-autofill,
.tm-ob-otp-panel input:-webkit-autofill,
#signup-otp:-webkit-autofill {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
}
