@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0a0f2c;
  --bg-alt: #111738;
  --panel: rgba(17, 23, 56, 0.82);
  --panel-strong: rgba(11, 17, 46, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --ink: #ffffff;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-strong: #64748b;
  --teal: #00c9a7;
  --teal-dark: #00a88c;
  --gold-soft: rgba(245, 166, 35, 0.14);
  --red-soft: rgba(239, 68, 68, 0.14);
  --success-soft: rgba(34, 197, 94, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0, 201, 167, 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(180deg, #070b22 0%, var(--bg) 100%);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.14;
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

.auth-orb.orb-a {
  width: 34rem;
  height: 34rem;
  top: -11rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.18), transparent 65%);
}

.auth-orb.orb-b {
  width: 26rem;
  height: 26rem;
  bottom: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 68%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1300px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 0.88fr);
}

.auth-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0.9rem clamp(1rem, 2vw, 1.6rem);
}

.auth-main--callback {
  justify-content: center;
}

.auth-global-header,
.auth-global-footer {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.auth-global-header {
  padding-top: 0.9rem;
}

.auth-global-footer {
  padding-bottom: 0.85rem;
}

.auth-global-header__inner,
.auth-global-footer__inner {
  width: min(100%, 1300px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-global-header__inner {
  min-height: 4rem;
  padding: 0.7rem 0;
}

.auth-global-footer__inner {
  min-height: 3.2rem;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-brand--chrome,
.auth-brand--compact,
.auth-brand--callback {
  margin-bottom: 0;
}

.auth-brand--callback {
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-utility-nav,
.auth-global-footer__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-utility-nav a,
.auth-global-footer__links a,
.auth-global-footer__meta {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.auth-utility-nav a:hover,
.auth-global-footer__links a:hover {
  color: var(--ink-soft);
}

.auth-utility-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 201, 167, 0.18);
  background: rgba(0, 201, 167, 0.08);
  color: var(--teal) !important;
  font-weight: 700;
}

.auth-brand-panel {
  padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
}

.auth-brand-panel__inner {
  max-width: 34rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
  text-decoration: none;
}

.auth-brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #061224;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 201, 167, 0.22);
}

.auth-brand-copy strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-brand-copy span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 201, 167, 0.16);
  background: rgba(0, 201, 167, 0.08);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 0.32rem rgba(0, 201, 167, 0.12);
}

.auth-hero-title {
  margin: 1.2rem 0 0.9rem;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.5rem, 4.6vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.auth-hero-title em {
  color: var(--teal);
  font-style: normal;
}

.auth-hero-copy {
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-trust-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink-soft);
}

.auth-trust-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: rgba(0, 201, 167, 0.1);
  color: var(--teal);
}

.auth-trust-icon svg {
  width: 1rem;
  height: 1rem;
}

.auth-card-column {
  padding: 0.35rem clamp(1rem, 2.2vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 33rem);
  background: var(--panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.1rem, 2.3vw, 1.8rem);
  box-shadow: var(--shadow);
}

.auth-card--register {
  width: min(100%, 32rem);
}

.auth-card.compact {
  width: min(100%, 30rem);
}

.auth-mobile-brand {
  display: none;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.auth-status {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  padding: 0.92rem 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid transparent;
  display: none;
}

.auth-status.is-visible {
  display: block;
}

.auth-status.error {
  background: var(--red-soft);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fecaca;
}

.auth-status.success {
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.26);
  color: #bbf7d0;
}

.auth-status.info {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(59, 130, 246, 0.24);
  color: #bfdbfe;
}

.auth-header h1,
.auth-header h2 {
  margin: 0 0 0.45rem;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.95rem, 4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.auth-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-header.with-bottom-gap {
  margin-bottom: 1rem;
}

.progress-rail {
  display: flex;
  gap: 0.55rem;
  margin: 0.8rem 0 0.9rem;
}

.progress-segment {
  flex: 1;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms ease;
}

.progress-segment.is-active {
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
}

.step-pills {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.step-pill strong {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.step-pill.is-active,
.step-pill.is-done {
  color: var(--ink);
  border-color: rgba(0, 201, 167, 0.24);
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.22), rgba(0, 168, 140, 0.1));
}

.step-pill.is-active strong,
.step-pill.is-done strong {
  background: rgba(6, 18, 36, 0.84);
  color: var(--teal);
}

.auth-screen {
  display: none;
}

.auth-screen.is-active {
  display: block;
}

.auth-grid {
  display: grid;
  gap: 0.8rem;
}

.auth-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
  display: grid;
  gap: 0.38rem;
}

.auth-field label {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.15rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(26, 32, 72, 0.92), rgba(17, 23, 56, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-shell:focus-within {
  border-color: rgba(0, 201, 167, 0.46);
  box-shadow: 0 0 0 0.22rem rgba(0, 201, 167, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.field-shell.has-error {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 0.22rem rgba(239, 68, 68, 0.12);
}

.field-shell input,
.field-shell select,
.field-shell textarea {
  width: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  padding: 0.9rem 0.95rem;
  min-height: 3.15rem;
}

.custom-select.field-shell {
  display: block;
  min-height: 0;
  overflow: visible;
  padding: 0;
  z-index: 5;
}

.custom-select.field-shell.is-open,
.custom-select.field-shell.is-open:focus-within {
  border-color: rgba(0, 201, 167, 0.54);
  box-shadow: 0 0 0 0.22rem rgba(0, 201, 167, 0.16);
  z-index: 12;
}

.custom-select__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select__trigger {
  width: 100%;
  min-height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.9rem 0.95rem;
  text-align: left;
  cursor: pointer;
}

.custom-select__trigger:focus {
  outline: none;
}

.custom-select__value {
  display: block;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}

.custom-select__value.is-placeholder {
  color: var(--muted-strong);
}

.custom-select__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transform: rotate(0deg);
  transition: transform 160ms ease, color 160ms ease;
}

.custom-select.field-shell.is-open .custom-select__arrow {
  color: var(--teal);
  transform: rotate(180deg);
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  width: 100%;
  padding: 0.45rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 201, 167, 0.16);
  background: linear-gradient(145deg, rgba(17, 23, 56, 0.98), rgba(10, 15, 44, 0.97));
  box-shadow: 0 22px 44px rgba(1, 6, 20, 0.56);
  display: none;
}

.custom-select.field-shell.is-open .custom-select__menu {
  display: block;
}

.custom-select__options {
  display: grid;
  gap: 0.2rem;
  max-height: 14rem;
  overflow-y: auto;
}

.custom-select__options::-webkit-scrollbar {
  width: 0.45rem;
}

.custom-select__options::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.custom-select__option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.7rem 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.custom-select__option:hover,
.custom-select__option.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.custom-select__option.is-selected {
  background: rgba(0, 201, 167, 0.12);
  color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(0, 201, 167, 0.16);
}

.custom-select__option-mark {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
}

.custom-select__option.is-selected .custom-select__option-mark {
  border-color: rgba(0, 201, 167, 0.4);
  background: radial-gradient(circle, var(--teal) 0 48%, transparent 58%);
}

.field-shell textarea {
  min-height: 6.8rem;
  resize: vertical;
}

.field-shell .field-icon,
.field-shell .field-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  color: var(--muted);
}

.field-shell .field-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-left: 0.55rem;
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  padding-left: 0;
  flex: 0 0 auto;
}

.field-shell .field-icon + input,
.field-shell .field-icon + select {
  padding-left: 0.7rem;
}

.field-shell .field-action {
  min-width: auto;
  margin-right: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.7rem;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.field-shell .field-icon svg {
  width: 1rem;
  height: 1rem;
}

.field-shell input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.field-hint {
  color: var(--muted-strong);
  font-size: 0.78rem;
  line-height: 1.55;
}

.interest-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.interest-chip {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(26, 32, 72, 0.88), rgba(17, 23, 56, 0.9));
  color: var(--ink-soft);
  padding: 0.72rem 0.92rem;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, color 160ms ease, background 160ms ease;
}

.interest-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
}

.interest-chip:focus {
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(0, 201, 167, 0.14);
}

.interest-chip.is-selected {
  border-color: rgba(0, 201, 167, 0.36);
  background: linear-gradient(145deg, rgba(0, 201, 167, 0.18), rgba(17, 23, 56, 0.94));
  color: var(--teal);
  box-shadow: 0 0 0 0.18rem rgba(0, 201, 167, 0.12);
}

.interest-chip__icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
}

.interest-chip.is-selected .interest-chip__icon {
  background: rgba(0, 201, 167, 0.12);
  color: var(--teal);
}

.interest-chip__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.interest-chip__label {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.2;
}

.field-error {
  min-height: 1rem;
  color: #fecaca;
  font-size: 0.78rem;
}

.auth-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.turnstile-slot {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin: 0.9rem 0 1rem;
}

.btn {
  width: 100%;
  min-height: 3.45rem;
  border: 0;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #071325;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px rgba(0, 201, 167, 0.2);
}

.btn-secondary,
.btn-ghost,
.sso-button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-link {
  background: transparent;
  padding: 0;
  min-height: auto;
  width: auto;
  border: 0;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.35rem 0;
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}

.sso-grid {
  display: grid;
  gap: 0.8rem;
}

.sso-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sso-button[hidden],
.provider-block[hidden] {
  display: none !important;
}

.sso-button .provider-mark {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.auth-subtext,
.auth-footer-note,
.tier-card p {
  color: var(--muted);
  line-height: 1.65;
}

.auth-subtext {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  text-align: center;
}

.identity-card,
.recommendation-card,
.callback-card,
.modal-shell,
.tier-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.identity-card,
.recommendation-card,
.callback-card {
  padding: 1.05rem;
}

.identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.identity-card__copy strong,
.recommendation-card__title,
.callback-card h1 {
  display: block;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.identity-card__copy span,
.recommendation-meta,
.recommendation-reasons {
  color: var(--muted);
}

.identity-badge,
.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 201, 167, 0.12);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recommendation-card {
  margin-bottom: 0.85rem;
}

.recommendation-card__title {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recommendation-card__tier {
  margin: 0.35rem 0 0.55rem;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.3rem);
  letter-spacing: -0.03em;
}

.recommendation-meter {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.75rem;
}

.recommendation-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 201, 167, 0.48), var(--teal));
}

.recommendation-meta,
.tier-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
  margin-top: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.recommendation-reasons {
  margin: 0.95rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.65;
}

.tier-list {
  display: grid;
  gap: 0.7rem;
}

.tier-card {
  width: 100%;
  padding: 0.95rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.tier-card:hover {
  transform: translateY(-1px);
}

.tier-card.is-selected {
  border-color: rgba(0, 201, 167, 0.34);
  background: linear-gradient(145deg, rgba(0, 201, 167, 0.14), rgba(0, 168, 140, 0.06));
}

.tier-card__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tier-card__icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  flex: 0 0 auto;
}

.tier-card__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.tier-card__icon--foundation {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
}

.tier-card__icon--practitioner {
  color: var(--teal);
  background: rgba(0, 201, 167, 0.12);
}

.tier-card__icon--executive {
  color: #fbbf24;
  background: rgba(245, 166, 35, 0.14);
}

.tier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tier-card__head strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.tier-card__subtitle {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.tier-note {
  margin-top: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 166, 35, 0.28);
  background: var(--gold-soft);
  color: #fcd34d;
  padding: 0.9rem 1rem;
  line-height: 1.65;
  display: none;
}

.tier-note.is-visible {
  display: block;
}

.security-row,
.link-row {
  margin-top: 1.35rem;
  text-align: center;
  color: var(--muted);
}

.security-row {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.73rem;
}

.inline-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover,
.btn-link:hover {
  text-decoration: underline;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 8, 21, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-shell {
  width: min(100%, 28rem);
  background: rgba(13, 18, 51, 0.94);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.modal-header h2 {
  margin: 0 0 0.35rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  cursor: pointer;
}

.callback-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.4rem;
}

.callback-card-wrap {
  width: min(100%, 32rem);
}

.callback-card {
  width: min(100%, 30rem);
  text-align: center;
  margin: 0 auto;
}

.callback-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.callback-spinner {
  width: 2.75rem;
  height: 2.75rem;
  margin: 1.45rem auto 0;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--teal);
  animation: spin 0.75s linear infinite;
}

.callback-actions {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.is-hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-global-header,
  .auth-global-footer {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .auth-global-header__inner,
  .auth-global-footer__inner {
    gap: 0.8rem;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-mobile-brand {
    display: flex;
  }

  .auth-card-column {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .auth-main {
    padding: 0.55rem 0.7rem 0.9rem;
  }

  .auth-global-header__inner,
  .auth-global-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-utility-nav,
  .auth-global-footer__links {
    gap: 0.75rem;
  }

  .auth-card {
    border-radius: 1.35rem;
    padding: 1.25rem;
  }

  .auth-grid.two-up,
  .sso-grid.two-up {
    grid-template-columns: 1fr;
  }

  .step-pills {
    display: grid;
  }
}

@media (min-width: 961px) {
  .auth-card-column {
    padding: 0.15rem 1rem;
  }

  .auth-card {
    width: min(100%, 30.75rem);
    padding: 1rem 1rem 0.9rem;
  }

  .auth-mobile-brand {
    margin-bottom: 1rem;
  }

  .progress-rail {
    margin: 0.65rem 0 0.75rem;
  }

  .step-pills {
    margin-bottom: 0.95rem;
    gap: 0.55rem;
  }

  .step-pill {
    padding: 0.58rem 0.8rem;
    font-size: 0.78rem;
  }

  .auth-header h1,
  .auth-header h2 {
    font-size: clamp(1.72rem, 2vw, 1.95rem);
  }

  .auth-header p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .auth-header.with-bottom-gap {
    margin-bottom: 1rem;
  }

  .auth-status {
    margin-bottom: 0.8rem;
    padding: 0.74rem 0.88rem;
    font-size: 0.87rem;
  }

  .auth-grid {
    gap: 0.72rem;
  }

  .auth-field {
    gap: 0.35rem;
  }

  .auth-field label {
    font-size: 0.8rem;
  }

  .field-shell,
  .custom-select__trigger,
  .field-shell input,
  .field-shell select,
  .field-shell textarea {
    min-height: 2.95rem;
  }

  .field-shell input,
  .field-shell select,
  .field-shell textarea {
    padding-top: 0.76rem;
    padding-bottom: 0.76rem;
  }

  .custom-select__trigger {
    padding-top: 0.76rem;
    padding-bottom: 0.76rem;
  }

  .field-hint,
  .field-error {
    font-size: 0.73rem;
  }

  .identity-card,
  .recommendation-card {
    padding: 0.82rem;
  }

  .identity-card {
    margin-bottom: 0.95rem;
  }

  .auth-actions {
    margin-top: 1rem;
    gap: 0.65rem;
  }

  .btn {
    min-height: 3rem;
    padding-top: 0.74rem;
    padding-bottom: 0.74rem;
  }

  .auth-divider {
    margin: 0.95rem 0;
  }

  .auth-subtext,
  .link-row,
  .security-row {
    margin-top: 0.95rem;
  }

  .security-row {
    padding-top: 0.8rem;
    font-size: 0.69rem;
  }

  .interest-chip {
    min-height: 2.6rem;
    padding: 0.56rem 0.78rem;
  }

  .interest-chip__label {
    font-size: 0.78rem;
  }
}

/* HOTFIX 2026-05-04:
   Prevent raw SVG markup strings from visually leaking inside custom select / interest controls.
   Root cause: SVG icon strings are being rendered as text after accounts JS restore.
*/
.auth-card svg,
.auth-shell svg,
.auth-panel svg {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

[data-custom-select] .select-icon,
[data-custom-select] .option-icon,
.custom-select__icon,
.custom-option__icon,
.interest-icon,
.snapshot-icon,
.tier-icon {
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}

[data-custom-select] .select-icon svg,
[data-custom-select] .option-icon svg,
.custom-select__icon svg,
.custom-option__icon svg,
.interest-icon svg,
.snapshot-icon svg,
.tier-icon svg {
  font-size: initial !important;
  display: inline-block !important;
}
