/**
 * Shared registration / institution signup chrome (register + register_institution).
 * Font Awesome only — warm dark canvas, amber / copper accent, accessible focus.
 */
:root {
  --tt-reg-amber: #f59e0b;
  --tt-reg-amber-deep: #ea580c;
  --tt-reg-copper: #c2410c;
  --tt-reg-slate-900: #0f172a;
  --tt-reg-slate-700: #334155;
  --tt-reg-glass: rgba(255, 255, 255, 0.1);
  --tt-reg-glass-strong: rgba(255, 255, 255, 0.16);
  --tt-reg-focus: rgba(251, 191, 36, 0.85);
}

.tt-reg-flow {
  --tt-reg-focus-ring: var(--tt-reg-focus);
}

/* Lender / institution register: don’t lock the page to 100vh — that can leave a tall empty band
   with the real content pushed away from the global nav. */
.tt-reg-flow--lender {
  min-height: 0;
}

/* base.html: body is flex column; <main class="flex-1"> normally grows to fill the gap between
   nav and footer. That makes <main> much taller than the register flow, with a big empty band
   in the main column (often mistaken for “JS moving things”). Lender sign-up only needs
   main as tall as its content. */
body.tt-reg-lender-page > main.flex-1 {
  flex: 0 1 auto;
  min-height: 0;
}

/* --- Institution hub: contexts first, warm chrome --- */
.tt-reg-page {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.tt-reg-flow-banner--compact {
  margin-bottom: 1rem !important;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
}

.tt-reg-hero-compact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto 1.25rem;
  padding: 0 0.25rem;
  text-align: left;
}

.tt-reg-hero-compact__mark {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fbbf24, #ea580c);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 12px 28px rgba(234, 88, 12, 0.35);
  color: #fff;
  font-size: 1.35rem;
}

.tt-reg-hero-compact__body {
  min-width: 0;
}

.tt-reg-hero-compact__title {
  margin: 0 0 0.35rem;
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fffbeb;
}

.tt-auth--register .tt-reg-hero-compact {
  max-width: none;
  margin: 0 0 1.35rem;
}

.tt-auth--register .tt-reg-stepper {
  max-width: none;
  margin-bottom: 1.1rem;
}

.tt-reg-hero-compact__sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

.tt-reg-pick-label {
  text-align: center;
  margin: 0 auto 0.75rem;
  max-width: 42rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.85);
}

/* Search field with leading icon — shared hub + institution signup */
.tt-reg-search {
  position: relative;
  max-width: 36rem;
  margin: 0 auto 0.65rem;
  width: 100%;
}

.tt-reg-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #8b735f;
  font-size: 0.95rem;
  pointer-events: none;
  line-height: 1;
}

.tt-reg-search__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem 0.8rem 2.85rem !important;
  border-radius: 0.9rem;
  border: 1.5px solid rgba(107, 76, 58, 0.18);
  background: #fffefb;
  color: #2a221c;
  font-size: 0.95rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.tt-reg-search__input::-webkit-search-decoration,
.tt-reg-search__input::-webkit-search-cancel-button,
.tt-reg-search__input::-webkit-search-results-button,
.tt-reg-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.tt-reg-search__input::placeholder {
  color: #8b735f;
  opacity: 1;
}

.tt-reg-search__input:hover {
  border-color: rgba(233, 84, 32, 0.35);
}

.tt-reg-search__input:focus {
  border-color: #f79500;
  box-shadow: 0 0 0 3px rgba(247, 149, 0, 0.18);
}

.tt-reg-search__meta {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #5c4a3d;
  text-align: center;
}

.tt-reg-path-chooser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 52rem;
  margin: 0 auto 1.5rem;
}

@media (min-width: 1100px) {
  .tt-reg-path-chooser {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tt-reg-path-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  color: #64748b;
  text-align: left;
  line-height: 1.35;
}

.tt-reg-compare {
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  font-size: 0.85rem;
  color: #475569;
}

.tt-reg-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .tt-reg-compare__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tt-reg-path-chooser {
    grid-template-columns: 1fr;
  }
}

.tt-reg-path-chooser .institution-card {
  text-decoration: none;
}

.tt-reg-path-chooser .institution-card-inner {
  height: 100%;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.tt-reg-path-chooser .institution-card:hover .institution-card-inner,
.tt-reg-path-chooser .institution-card:focus-visible .institution-card-inner {
  transform: translateY(-4px);
}

.tt-reg-context-search-wrap {
  max-width: 36rem;
  margin: 0 auto 1rem;
  padding: 0 0.25rem;
}

.tt-reg-more {
  max-width: 48rem;
  margin: 2rem auto 0;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.tt-reg-more summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(254, 243, 199, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
  transition: background 0.15s ease;
}

.tt-reg-more summary::-webkit-details-marker {
  display: none;
}

.tt-reg-more summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid rgba(251, 191, 36, 0.7);
  border-bottom: 2px solid rgba(251, 191, 36, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tt-reg-more[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.tt-reg-more summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tt-reg-more__body {
  padding: 0 1.1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.9);
}

.tt-reg-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  padding: 1rem 0 1.25rem;
}

.tt-reg-stat {
  text-align: center;
}

.tt-reg-stat__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
}

.tt-reg-stat__lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.95);
}

.tt-reg-app-card {
  margin-top: 0.5rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem 1.1rem;
}

.tt-reg-app-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fffbeb;
}

.tt-reg-app-card p {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.95);
}

.tt-reg-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tt-reg-app-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fde68a !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.tt-reg-app-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(251, 191, 36, 0.45);
}

/* Trust context cards — whole card is the affordance (no chunky Continue button) */
.tt-reg-context-cta {
  display: none !important;
}

a.tt-reg-context-card {
  display: flex;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  margin: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transition: transform 0.18s ease;
}

a.tt-reg-context-card:hover {
  transform: translateY(-2px);
}

a.tt-reg-context-card:focus-visible {
  outline: 2px solid var(--tt-reg-focus-ring);
  outline-offset: 3px;
}

.tt-reg-context-card__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: 11.5rem;
  position: relative;
}

.tt-reg-context-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.tt-reg-context-card .institution-name {
  font-size: 1.15rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 !important;
}

.tt-reg-context-card .institution-desc {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.tt-reg-context-card .tt-reg-feature-list {
  margin-top: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.tt-reg-context-card .tt-reg-feature-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.tt-reg-context-select {
  margin-top: auto;
  padding-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c2410c;
}

.tt-reg-context-select i {
  font-size: 0.65rem;
  transition: transform 0.15s ease;
}

a.tt-reg-context-card:hover .tt-reg-context-select i {
  transform: translateX(3px);
}

.tt-reg-contexts-stage {
  align-items: stretch;
}

.tt-reg-contexts-stage > .tt-reg-context-card {
  align-self: stretch;
}

.tt-reg-path-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 0.5rem;
}

@media (max-width: 800px) {
  .tt-reg-path-tips {
    grid-template-columns: 1fr;
  }
}

.tt-reg-path-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(107, 76, 58, 0.14);
  background: rgba(255, 254, 251, 0.85);
  box-shadow: 0 6px 18px rgba(42, 34, 28, 0.04);
}

.tt-reg-path-tip > i {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(233, 84, 32, 0.12);
  color: #e95420;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.tt-reg-path-tip strong {
  display: block;
  font-size: 0.9rem;
  color: #2a221c;
  margin-bottom: 0.2rem;
}

.tt-reg-path-tip p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5c4a3d;
}

.tt-reg-footer-login {
  color: #5c4a3d;
  font-size: 1rem;
}

.tt-reg-footer-login a {
  color: #b45309;
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.25rem;
}

.tt-reg-footer-login a:hover {
  color: #9a3412;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .tt-reg-hero-compact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
    margin-bottom: 1rem;
  }

  .tt-reg-hero-compact__body {
    text-align: center;
  }

  .tt-reg-hero-compact__title {
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
    line-height: 1.14;
  }

  .tt-reg-hero-compact__sub {
    font-size: 0.88rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .tt-reg-hero-compact__mark {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.45rem;
  }
}

.tt-reg-stepper {
  max-width: 52rem;
  margin: 0 auto 1.5rem;
  padding: 0 0.5rem;
  background: transparent;
}

.tt-reg-stepper--global {
  margin-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

/* Sticky journey strip: keeps step context on long pages (optional class on register_institution) */
.tt-reg-stepper--global.tt-reg-stepper--sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 0.15rem;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.97) 0%,
    rgba(15, 23, 42, 0.88) 55%,
    rgba(15, 23, 42, 0) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .tt-reg-stepper--global.tt-reg-stepper--sticky {
    /* No extra animation; stickiness is layout-only */
  }
}

/* Shrink journey strip when the account form is visible (stepper + form = too much stack on phones) */
.tt-reg-stepper--global.tt-reg-stepper--form-compact {
  margin-bottom: 0.4rem;
}

.tt-reg-stepper--global.tt-reg-stepper--form-compact ol {
  padding: 0.4rem 0.5rem !important;
  gap: 0.3rem;
}

.tt-reg-stepper--global.tt-reg-stepper--form-compact .tt-reg-step {
  padding: 0.45rem 0.6rem;
}

.tt-reg-stepper--global.tt-reg-stepper--form-compact .tt-reg-step-ic {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.8rem;
}

.tt-reg-stepper--global.tt-reg-stepper--form-compact .tt-reg-step-txt small {
  display: none;
}

#institutionForm.tt-reg-form-visible {
  margin-top: 0 !important;
  padding-top: 0.35rem !important;
  scroll-margin-top: 0.25rem;
}

.tt-reg-stepper ol {
  list-style: none;
  margin: 0;
  padding: 0.65rem !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  background: rgba(28, 22, 18, 0.78) !important;
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Stack step cards earlier so labels never squeeze unreadably on phones */
@media (max-width: 900px) {
  .tt-reg-stepper ol {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 640px) {
  .tt-reg-stepper {
    padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
  }

  .tt-reg-step {
    padding: 0.65rem 0.75rem;
  }

  .tt-reg-step .tt-reg-step-txt strong {
    font-size: 0.72rem;
  }

  .tt-reg-step .tt-reg-step-txt small {
    font-size: 0.68rem;
    line-height: 1.3;
  }
}

@media (max-width: 400px) {
  .tt-reg-stepper ol {
    padding: 0.5rem !important;
  }

  .tt-reg-step .tt-reg-step-txt small {
    display: none;
  }

  .tt-reg-step .tt-reg-step-ic {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }
}

.tt-reg-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 16, 14, 0.45);
  color: rgba(226, 232, 240, 0.78);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.tt-reg-step .tt-reg-step-ic {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(251, 191, 36, 0.85);
  font-size: 0.95rem;
}

.tt-reg-step .tt-reg-step-txt {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.tt-reg-step .tt-reg-step-txt strong {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tt-reg-step .tt-reg-step-txt small {
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.88;
}

.tt-reg-step-choice {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fde68a;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .tt-reg-step-choice {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

.tt-reg-step-choice--placeholder {
  font-weight: 500;
  color: rgba(148, 163, 184, 0.95);
  font-style: normal;
}

.tt-reg-step--active .tt-reg-step-choice:not(.tt-reg-step-choice--placeholder) {
  color: #fffbeb;
}

.tt-reg-step--done .tt-reg-step-choice:not(.tt-reg-step-choice--placeholder) {
  color: #bbf7d0;
}

/* Directory mode callout — matches registration warm palette (no cyan/violet “AI” slab) */
.tt-reg-directory-card {
  border-color: rgba(245, 158, 11, 0.22) !important;
}

.tt-reg-step--active {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(30, 41, 59, 0.65);
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.tt-reg-step--active .tt-reg-step-ic {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(249, 115, 22, 0.25));
  color: #fffbeb;
}

.tt-reg-step--done {
  border-color: rgba(34, 197, 94, 0.35);
  color: rgba(220, 252, 231, 0.95);
}

.tt-reg-step--done .tt-reg-step-ic {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.tt-reg-back-btn {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: #fef3c7;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.tt-reg-back-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(251, 191, 36, 0.45);
}

.tt-reg-back-btn:focus-visible {
  outline: 2px solid var(--tt-reg-focus-ring);
  outline-offset: 2px;
}

.tt-reg-icon-wrap {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.tt-reg-context-icon,
.institution-icon-container .tt-reg-type-icon {
  font-size: 1.15rem !important;
  line-height: 1;
  color: rgba(254, 243, 199, 0.95);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

@media (min-width: 640px) {
  .tt-reg-context-icon,
  .institution-icon-container .tt-reg-type-icon {
    font-size: 1.25rem !important;
  }
}

.tt-reg-flow-banner {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(28, 22, 18, 0.82) !important;
  color: rgba(254, 243, 199, 0.95);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .tt-reg-step,
  .tt-reg-back-btn {
    transition: none !important;
  }

  .tt-reg-borrower-hero {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* --- Mobile header polish: institution hub, lender flow, borrower landing --- */

.tt-reg-flow.tt-reg-page {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
}

.tt-reg-borrower-shell {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
}

.tt-reg-borrower-hero__title {
  font-size: clamp(1.65rem, 6.2vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

@media (max-width: 640px) {
  .tt-reg-borrower-hero:not(.tt-reg-hero-compact) {
    padding: 1rem 0.65rem 1.2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 26rem;
  }
}

@media (max-width: 400px) {
  .tt-reg-borrower-pill {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    gap: 0.35rem;
  }

  .tt-reg-borrower-pill span {
    font-size: 0.7rem;
  }
}

/* Context grid loading skeletons (register_institution) */
.tt-reg-skeleton-card {
  border-radius: 1rem;
  min-height: 8.5rem;
  padding: 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tt-reg-skeleton-shim {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #334155 0%, #475569 50%, #334155 100%);
  background-size: 200% 100%;
  animation: tt-reg-skel 1.1s ease-in-out infinite;
  align-self: center;
}

.tt-reg-skeleton-line {
  display: block;
  height: 0.7rem;
  border-radius: 0.25rem;
  width: 100%;
  background: #475569;
  animation: tt-reg-skel 1.1s ease-in-out infinite;
  opacity: 0.9;
}

.tt-reg-skeleton-line--short {
  width: 60%;
}

@keyframes tt-reg-skel {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-reg-skeleton-shim,
  .tt-reg-skeleton-line {
    animation: none;
    background: #475569;
  }
}

/* ─── Warm light registration (readable ink on cream — not bright white) ─── */
.tt-reg-flow--light {
  --tt-reg-ink: #2a221c;
  --tt-reg-muted: #5c4a3d;
  --tt-reg-panel: #fffefb;
  --tt-reg-canvas: #faf3ec;
  --tt-reg-line: rgba(107, 76, 58, 0.16);
  --tt-reg-amber: #e95420;
  --tt-reg-amber-soft: #f79500;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--tt-reg-ink);
  background:
    radial-gradient(ellipse 55% 40% at 12% 0%, rgba(247, 149, 0, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 18%, rgba(233, 84, 32, 0.1), transparent 50%),
    linear-gradient(180deg, #fff7ed 0%, #faf3ec 42%, #f3e8dc 100%) !important;
  min-height: 100dvh;
}

.tt-reg-flow--light .tt-reg-light-aurora {
  background:
    radial-gradient(ellipse 50% 40% at 18% 12%, rgba(247, 149, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 82% 68%, rgba(233, 84, 32, 0.1), transparent 50%);
}

/* Logo — clean ink mark + wordmark (same asset family as login) */
.tt-reg-flow--light .tt-reg-topbar__brand {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--tt-reg-ink);
  letter-spacing: -0.02em;
  align-items: center;
  gap: 0.65rem;
}

.tt-reg-flow--light .tt-reg-topbar__brand img,
.tt-reg-flow--light .tt-reg-topbar__logo {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  /* No invert/hue filters — asset is already the login rabbit in ink */
  filter: none;
}

.tt-reg-flow--light .tt-reg-topbar__wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #2a221c;
  line-height: 1;
}

.tt-reg-flow--light .tt-reg-context-select {
  color: #c2410c;
  border-top: 1px solid rgba(107, 76, 58, 0.12);
}

.tt-reg-flow--light .tt-reg-path-tip {
  background: #fffefb;
  border-color: rgba(107, 76, 58, 0.16);
}

.tt-reg-flow--light .tt-reg-footer-login {
  color: #5c4a3d;
}

.tt-reg-flow--light .tt-reg-footer-login a {
  color: #b45309;
}

.tt-reg-flow--light .tt-reg-topbar__signin {
  color: #b45309;
  text-decoration: none;
}

.tt-reg-flow--light .tt-reg-topbar__signin:hover {
  color: #9a3412;
}

.tt-reg-flow--light .tt-reg-stepper--global.tt-reg-stepper--sticky {
  background: linear-gradient(
    180deg,
    rgba(255, 249, 244, 0.98) 0%,
    rgba(255, 254, 251, 0.94) 62%,
    rgba(255, 254, 251, 0) 100%
  );
  padding-bottom: 0.35rem;
  margin-bottom: 0.85rem;
}

/* Stepper — cream rail (matches auth panel, not dark login chrome) */
.tt-reg-flow--light .tt-reg-stepper {
  max-width: none;
}

.tt-reg-flow--light .tt-reg-stepper ol {
  background: #fffefb !important;
  border: 1px solid rgba(107, 76, 58, 0.14) !important;
  border-radius: 1rem !important;
  box-shadow: 0 6px 22px rgba(42, 34, 28, 0.05) !important;
  gap: 0.35rem !important;
  padding: 0.4rem !important;
}

.tt-reg-flow--light .tt-reg-step {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--tt-reg-muted) !important;
  box-shadow: none !important;
  border-radius: 0.75rem !important;
  padding: 0.65rem 0.75rem !important;
  gap: 0.55rem !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}

.tt-reg-flow--light .tt-reg-step .tt-reg-step-ic {
  width: 1.85rem !important;
  height: 1.85rem !important;
  font-size: 0.8rem !important;
  border-radius: 0.55rem !important;
  background: linear-gradient(145deg, #fff7ed, #ffedd5) !important;
  color: #c2410c !important;
  border: 1px solid #fdba74 !important;
  box-shadow: none !important;
}

.tt-reg-flow--light .tt-reg-step .tt-reg-step-txt strong {
  color: var(--tt-reg-ink) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
}

.tt-reg-flow--light .tt-reg-step .tt-reg-step-txt small {
  color: var(--tt-reg-muted) !important;
  opacity: 1 !important;
  font-size: 0.72rem !important;
}

.tt-reg-flow--light .tt-reg-step-choice {
  color: #b45309 !important;
  font-size: 0.7rem !important;
}

.tt-reg-flow--light .tt-reg-step-choice--placeholder {
  color: rgba(92, 74, 61, 0.62) !important;
}

.tt-reg-flow--light .tt-reg-step--active {
  border-color: rgba(233, 84, 32, 0.28) !important;
  background: #fff7ed !important;
  color: var(--tt-reg-ink) !important;
  box-shadow: none !important;
}

.tt-reg-flow--light .tt-reg-step--active .tt-reg-step-ic {
  background: linear-gradient(135deg, #f79500, #e95420) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.tt-reg-flow--light .tt-reg-step--active .tt-reg-step-choice:not(.tt-reg-step-choice--placeholder) {
  color: #9a3412 !important;
}

.tt-reg-flow--light .tt-reg-step--done {
  border-color: transparent !important;
  background: rgba(255, 247, 237, 0.55) !important;
  color: var(--tt-reg-ink) !important;
}

.tt-reg-flow--light .tt-reg-step--done .tt-reg-step-ic {
  background: #fff7ed !important;
  color: #16a34a !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
}

.tt-reg-flow--light .tt-reg-step.is-clickable:hover,
.tt-reg-flow--light .tt-reg-step[data-goto]:hover {
  background: #fff9f4 !important;
  border-color: rgba(233, 84, 32, 0.22) !important;
  transform: none !important;
  box-shadow: none !important;
}

.tt-reg-flow--light .tt-reg-back-btn {
  background: var(--tt-reg-panel) !important;
  border: 1px solid var(--tt-reg-line) !important;
  color: var(--tt-reg-ink) !important;
}

.tt-reg-flow--light .tt-reg-back-btn:hover {
  border-color: rgba(233, 84, 32, 0.4) !important;
  background: #fff7ed !important;
}

/* Headers — beat template `color: white !important` (needs ≥3 classes / elements) */
.tt-reg-flow--light .institution-header .institution-title,
.tt-reg-flow--light .institution-header .institution-question,
.tt-reg-flow--light .institution-title,
.tt-reg-flow--light .institution-question,
.tt-reg-flow--light .tt-reg-hero-compact__title,
.tt-reg-flow--light h1,
.tt-reg-flow--light h2,
.tt-reg-flow--light .text-white,
.tt-reg-flow--light strong.text-white {
  color: var(--tt-reg-ink) !important;
  text-shadow: none !important;
  -webkit-text-fill-color: unset;
}

.tt-reg-flow--light .institution-header .institution-subtitle,
.tt-reg-flow--light .institution-subtitle,
.tt-reg-flow--light .tt-reg-hero-compact__sub,
.tt-reg-flow--light .text-slate-300,
.tt-reg-flow--light .text-slate-400,
.tt-reg-flow--light .text-gray-300,
.tt-reg-flow--light .tt-reg-pick-label {
  color: var(--tt-reg-muted) !important;
  text-shadow: none !important;
}

.tt-reg-flow--light .institution-sparkle {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
  box-shadow: 0 8px 28px rgba(233, 84, 32, 0.18);
  color: #c2410c !important;
}

.tt-reg-flow--light .institution-sparkle i {
  color: #c2410c !important;
  text-shadow: none !important;
}

/* Cream cards — never pure #fff; clean hover (no rectangular glow blobs) */
.tt-reg-flow--light .institution-card,
.tt-reg-flow--light .context-card,
.tt-reg-flow--light .tt-reg-context-card,
.tt-reg-flow--light .tt-reg-path-chooser .institution-card {
  overflow: visible !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  background: transparent !important;
}

.tt-reg-flow--light .institution-card::before,
.tt-reg-flow--light .context-card::before,
.tt-reg-flow--light .institution-card-inner::before,
.tt-reg-flow--light .institution-card-inner::after,
.tt-reg-flow--light .context-card-inner::after,
.tt-reg-flow--light .context-card-inner::before {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
  box-shadow: none !important;
  background: none !important;
}

.tt-reg-flow--light .institution-card-inner,
.tt-reg-flow--light .context-card-inner {
  background: var(--tt-reg-panel) !important;
  background-color: var(--tt-reg-panel) !important;
  background-image: none !important;
  border: 1px solid var(--tt-reg-line) !important;
  border-radius: 1rem !important;
  box-shadow: 0 4px 14px rgba(42, 34, 28, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden !important;
  isolation: isolate;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease !important;
}

.tt-reg-flow--light .institution-card:hover,
.tt-reg-flow--light .context-card:hover,
.tt-reg-flow--light .institution-card.bank-card:hover,
.tt-reg-flow--light .institution-card.mfi-card:hover,
.tt-reg-flow--light .institution-card.fintech-card:hover,
.tt-reg-flow--light .institution-card.sacco-card:hover,
.tt-reg-flow--light .institution-card:active {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.tt-reg-flow--light .institution-card:hover .institution-card-inner,
.tt-reg-flow--light .institution-card.selected .institution-card-inner,
.tt-reg-flow--light .context-card:hover .context-card-inner,
.tt-reg-flow--light .context-card.selected .context-card-inner {
  border-color: rgba(233, 84, 32, 0.4) !important;
  background: #fffefb !important;
  background-image: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.11) !important;
}

.tt-reg-flow--light .institution-card-inner:hover {
  /* Prefer parent:hover .inner rules — avoid double lift */
  transform: none;
}

.tt-reg-flow--light .selection-checkmark {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28) !important;
  filter: none !important;
  outline: none !important;
}

.tt-reg-flow--light .selection-checkmark::before,
.tt-reg-flow--light .selection-checkmark::after {
  display: none !important;
  content: none !important;
}

.tt-reg-flow--light .institution-name,
.tt-reg-flow--light #institutionTypeOptions .institution-name,
.tt-reg-flow--light #trustContextsContainer .institution-name {
  color: var(--tt-reg-ink) !important;
  text-shadow: none !important;
}

.tt-reg-flow--light .institution-desc,
.tt-reg-flow--light #institutionTypeOptions .institution-desc,
.tt-reg-flow--light #trustContextsContainer .institution-desc {
  color: var(--tt-reg-muted) !important;
  text-shadow: none !important;
}

/* Feature bullets under context cards (were white-on-cream = invisible) */
.tt-reg-flow--light .tt-reg-feature-list,
.tt-reg-flow--light .tt-reg-feature-row,
.tt-reg-flow--light .tt-reg-feature-row span {
  color: #5c4a3d !important;
  -webkit-text-fill-color: #5c4a3d !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.tt-reg-flow--light .tt-reg-feature-row i {
  color: #e95420 !important;
  -webkit-text-fill-color: #e95420 !important;
}

.tt-reg-flow--light .institution-icon-container,
.tt-reg-flow--light .tt-reg-icon-wrap {
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  margin: 0 0 0.65rem !important;
  border-radius: 0.7rem !important;
  background: linear-gradient(145deg, #fff7ed, #ffedd5) !important;
  border: 1px solid #fdba74 !important;
  box-shadow: 0 3px 10px rgba(233, 84, 32, 0.1);
  animation: none !important;
}

.tt-reg-flow--light .institution-icon,
.tt-reg-flow--light .tt-reg-context-icon,
.tt-reg-flow--light .tt-reg-type-icon,
.tt-reg-flow--light .institution-icon-container i,
.tt-reg-flow--light .tt-reg-icon-wrap i {
  font-size: 1.05rem !important;
  color: #c2410c !important;
  filter: none !important;
  text-shadow: none !important;
  line-height: 1 !important;
}

.tt-reg-flow--light .institution-card:hover .institution-icon-container,
.tt-reg-flow--light .institution-card:hover .tt-reg-icon-wrap,
.tt-reg-flow--light .context-card:hover .tt-reg-icon-wrap {
  background: linear-gradient(145deg, #ffedd5, #fed7aa) !important;
  border-color: #fb923c !important;
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(233, 84, 32, 0.18);
}

.tt-reg-flow--light .institution-trust-note {
  background: #fff7ed !important;
  border: 1px solid rgba(233, 84, 32, 0.22) !important;
  color: var(--tt-reg-muted) !important;
}

.tt-reg-flow--light .institution-trust-note .institution-trust-text,
.tt-reg-flow--light #trustBadgeText {
  color: var(--tt-reg-muted) !important;
}

.tt-reg-flow--light .tt-reg-search__input,
.tt-reg-flow--light #trustContextSearchInput,
.tt-reg-flow--light #trustHubContextSearchInput {
  background: var(--tt-reg-panel) !important;
  color: var(--tt-reg-ink) !important;
  border: 1.5px solid var(--tt-reg-line) !important;
  padding: 0.8rem 1rem 0.8rem 2.85rem !important;
}

.tt-reg-flow--light .tt-reg-search__icon {
  color: #8b735f;
}

.tt-reg-flow--light #trustContextSearchCount,
.tt-reg-flow--light #trustHubContextSearchCount {
  color: var(--tt-reg-muted) !important;
}

.tt-reg-flow--light .tt-reg-insight,
.tt-reg-flow--light .tt-reg-benefit,
.tt-reg-flow--light .tt-reg-pick-summary {
  background: var(--tt-reg-panel);
  border: 1px solid var(--tt-reg-line);
  box-shadow: 0 4px 16px rgba(42, 34, 28, 0.05);
}

.tt-reg-flow--light .tt-reg-insight__icon,
.tt-reg-flow--light .tt-reg-benefit__ic {
  background: linear-gradient(135deg, #f79500, #e95420);
  color: #fff;
}

.tt-reg-flow--light .tt-reg-insight__title,
.tt-reg-flow--light .tt-reg-benefit__title,
.tt-reg-flow--light .tt-reg-form-heading,
.tt-reg-flow--light .tt-reg-pick-summary__line {
  color: var(--tt-reg-ink);
}

.tt-reg-flow--light .tt-reg-insight__body,
.tt-reg-flow--light .tt-reg-benefit__body,
.tt-reg-flow--light .tt-reg-muted,
.tt-reg-flow--light .tt-reg-pick-summary__kicker {
  color: var(--tt-reg-muted);
}

.tt-reg-flow--light .tt-reg-pick-summary {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
}

.tt-reg-flow--light .tt-reg-pick-summary__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
}

.tt-reg-flow--light .tt-reg-pick-summary__line {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.tt-reg-flow--light .tt-reg-inline-link {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tt-reg-flow--light .tt-reg-inline-link:hover {
  color: #9a3412;
}

.tt-reg-flow--light #institutionForm .bg-gradient-to-r,
.tt-reg-flow--light #institutionForm [class*="from-amber"],
.tt-reg-flow--light #institutionForm [class*="from-orange"],
.tt-reg-flow--light #institutionForm [class*="from-slate"],
.tt-reg-flow--light #registrationForm,
.tt-reg-flow--light form#registrationForm,
.tt-reg-flow--light #registrationForm.relative,
.tt-reg-flow--light .tt-reg-flow--lender [class*="from-slate-800"],
.tt-reg-flow--light #tt-reg-lender-stage [class*="from-slate-800"] {
  background: linear-gradient(165deg, #fffefb 0%, #fff7ed 55%, #ffedd5 100%) !important;
  border-color: rgba(194, 65, 12, 0.16) !important;
  color: var(--tt-reg-ink) !important;
  box-shadow: 0 18px 48px rgba(154, 52, 18, 0.08) !important;
}

.tt-reg-flow--light #tt-reg-lender-stage [class*="from-slate-800"] > .absolute {
  display: none !important;
}

.tt-reg-flow--light #registrationForm h2,
.tt-reg-flow--light #registrationForm .text-white,
.tt-reg-flow--light #registrationForm .text-slate-300 {
  color: var(--tt-reg-ink) !important;
}

.tt-reg-flow--light #registrationForm .text-slate-300 {
  color: rgba(42, 34, 28, 0.68) !important;
}

.tt-reg-flow--light .institution-field {
  animation: tt-reg-field-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tt-reg-field-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tt-reg-flow--light .input-label,
.tt-reg-flow--light label {
  color: var(--tt-reg-ink) !important;
}

.tt-reg-flow--light input[type="text"],
.tt-reg-flow--light input[type="email"],
.tt-reg-flow--light input[type="password"],
.tt-reg-flow--light input[type="tel"],
.tt-reg-flow--light input[type="number"],
.tt-reg-flow--light input[type="url"],
.tt-reg-flow--light input[type="search"],
.tt-reg-flow--light select,
.tt-reg-flow--light textarea {
  background: var(--tt-reg-panel) !important;
  color: var(--tt-reg-ink) !important;
  border: 1px solid var(--tt-reg-line) !important;
}

.tt-reg-flow--light .tt-reg-flow-banner,
.tt-reg-flow--light .tt-reg-flow-banner--compact {
  background: #fff7ed !important;
  border: 1px solid rgba(233, 84, 32, 0.22) !important;
  color: #5c4a3d !important;
}

.tt-reg-flow--light .tt-reg-flow-banner strong {
  color: #2a221c !important;
}

.tt-reg-flow--light .tt-reg-hero-compact__mark {
  background: linear-gradient(135deg, #f79500, #e95420);
  color: #fff;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.tt-reg-flow--light .tt-reg-more {
  background: var(--tt-reg-panel);
  border-color: var(--tt-reg-line);
}

.tt-reg-flow--light .tt-reg-more summary {
  color: var(--tt-reg-ink);
}

.tt-reg-flow--light .tt-reg-app-card {
  background: var(--tt-reg-panel);
  border: 1px solid var(--tt-reg-line);
}

.tt-reg-flow--light .tt-reg-app-card h3 {
  color: var(--tt-reg-ink);
}

.tt-reg-flow--light .tt-reg-app-card p {
  color: var(--tt-reg-muted);
}

.tt-reg-flow--light .tt-reg-skeleton-card {
  background: var(--tt-reg-panel);
  border: 1px solid var(--tt-reg-line);
}

.tt-reg-flow--light .tt-reg-skeleton-shim,
.tt-reg-flow--light .tt-reg-skeleton-line {
  background: linear-gradient(90deg, #f3e8dc 0%, #fff7ed 50%, #f3e8dc 100%);
  background-size: 200% 100%;
}

.tt-reg-flow--light .tt-reg-stat__num {
  color: #c2410c;
}

.tt-reg-flow--light .tt-reg-stat__lbl {
  color: var(--tt-reg-muted);
}

/* ─── Light form steps: cream fields, readable labels (beats template white) ─── */
.tt-reg-flow--light .input-label,
.tt-reg-flow--light .input-group .input-label,
.tt-reg-flow--light label.input-label {
  color: #2a221c !important;
}

.tt-reg-flow--light .input-hint,
.tt-reg-flow--light .input-group .input-hint {
  color: #5c4a3d !important;
}

.tt-reg-flow--light .input-wrapper input,
.tt-reg-flow--light .input-wrapper select,
.tt-reg-flow--light .input-wrapper textarea,
.tt-reg-flow--light .form-control,
.tt-reg-flow--light input.form-control,
.tt-reg-flow--light textarea.form-control,
.tt-reg-flow--light select.form-control {
  background: #fffefb !important;
  background-color: #fffefb !important;
  color: #2a221c !important;
  border: 1px solid rgba(107, 76, 58, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 2px rgba(42, 34, 28, 0.04);
}

.tt-reg-flow--light .input-wrapper input:focus,
.tt-reg-flow--light .input-wrapper select:focus,
.tt-reg-flow--light .input-wrapper textarea:focus,
.tt-reg-flow--light .form-control:focus {
  background: #fffefb !important;
  border-color: rgba(233, 84, 32, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.16) !important;
  color: #2a221c !important;
}

.tt-reg-flow--light .input-wrapper input::placeholder,
.tt-reg-flow--light .input-wrapper textarea::placeholder,
.tt-reg-flow--light .form-control::placeholder {
  color: rgba(92, 74, 61, 0.55) !important;
  opacity: 1 !important;
}

.tt-reg-flow--light #institutionForm h2,
.tt-reg-flow--light #institutionForm .text-white,
.tt-reg-flow--light #institutionForm .font-black.text-white {
  color: #2a221c !important;
  text-shadow: none !important;
}

.tt-reg-flow--light #institutionForm .text-slate-300,
.tt-reg-flow--light #institutionForm .text-slate-400,
.tt-reg-flow--light #institutionForm p.text-slate-300 {
  color: #5c4a3d !important;
}

.tt-reg-flow--light .tt-reg-insight,
.tt-reg-flow--light .tt-reg-benefit,
.tt-reg-flow--light .tt-reg-pick-summary {
  background: #fffefb !important;
  border: 1px solid rgba(107, 76, 58, 0.16) !important;
}

.tt-reg-flow--light .tt-reg-insight__icon,
.tt-reg-flow--light .tt-reg-benefit__ic {
  background: linear-gradient(135deg, #f79500, #e95420) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(233, 84, 32, 0.22);
}

.tt-reg-flow--light .tt-reg-insight__title,
.tt-reg-flow--light .tt-reg-benefit__title,
.tt-reg-flow--light .tt-reg-pick-summary__line {
  color: #2a221c !important;
}

.tt-reg-flow--light .tt-reg-insight__body,
.tt-reg-flow--light .tt-reg-benefit__body {
  color: #5c4a3d !important;
}

.tt-reg-flow--light .tt-reg-path-chooser {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: none;
  margin-bottom: 1.35rem;
}

@media (min-width: 900px) {
  .tt-reg-flow--light .tt-reg-path-chooser {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tt-reg-flow--light .tt-reg-path-chooser {
    grid-template-columns: 1fr !important;
    gap: 0.7rem;
  }

  .tt-reg-flow--light .tt-reg-path-chooser .institution-card-inner {
    min-height: 3.5rem !important;
    padding: 0.9rem 1rem !important;
  }
}

/* Institution type/context cards — override fixed minmax(220px) inline grids on phones */
@media (max-width: 560px) {
  .tt-reg-flow--light .institution-options,
  .tt-reg-flow--light #institutionTypeOptions {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Compact stepper on phones — keep wow, free viewport for the form */
@media (max-width: 640px) {
  .tt-reg-stepper ol {
    gap: 0.35rem !important;
  }

  .tt-reg-step-txt small,
  .tt-reg-step-choice {
    display: none !important;
  }

  .tt-reg-step-txt strong {
    font-size: 0.72rem !important;
  }

  .tt-reg-step-ic {
    width: 1.85rem !important;
    height: 1.85rem !important;
    font-size: 0.75rem !important;
  }
}

.tt-reg-flow--light .tt-reg-path-chooser .institution-card-inner {
  min-height: 0;
  padding: 0.95rem 0.9rem 1rem !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.tt-reg-flow--light .tt-reg-path-chooser .institution-icon-container,
.tt-reg-flow--light .tt-reg-path-chooser .tt-reg-icon-wrap {
  width: 2.25rem !important;
  height: 2.25rem !important;
  min-width: 2.25rem !important;
  min-height: 2.25rem !important;
  margin: 0 0 0.55rem !important;
  border-radius: 0.65rem !important;
}

.tt-reg-flow--light .tt-reg-path-chooser .tt-reg-icon-wrap i {
  font-size: 0.95rem !important;
}

.tt-reg-flow--light .tt-reg-path-chooser .institution-label {
  text-align: left !important;
  align-items: flex-start !important;
}

.tt-reg-flow--light .tt-reg-path-chooser .institution-name {
  font-size: 0.98rem !important;
  margin-bottom: 0.3rem !important;
}

.tt-reg-flow--light .tt-reg-path-chooser .institution-desc {
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

.tt-auth--register .tt-reg-pick-label {
  margin-top: 0.25rem;
  color: #b45309 !important;
}

.tt-reg-flow--light .tt-reg-path-card--screening .institution-card-inner {
  border-color: rgba(233, 84, 32, 0.35) !important;
  background: linear-gradient(160deg, #fff7ed 0%, #fffefb 55%) !important;
}

.tt-reg-flow--light .tt-reg-contexts-stage {
  transition: opacity 0.22s ease;
}

.tt-reg-flow--light .tt-reg-contexts-stage.is-refreshing {
  opacity: 0.45;
  pointer-events: none;
}

.tt-reg-flow--light .institution-options {
  transition: opacity 0.2s ease;
}

.tt-reg-flow--light .institution-card {
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  .tt-reg-flow--light .tt-reg-contexts-stage,
  .tt-reg-flow--light .institution-options,
  .tt-reg-flow--light .institution-card {
    transition: none !important;
  }
}

/* ─── Individual registration (/register/individual/) ─── */
.tt-reg-individual .tt-reg-borrower-hero {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  margin-bottom: 1.25rem;
}

.tt-reg-individual .tt-reg-borrower-shell {
  padding-top: 0.25rem;
}

.tt-reg-individual .animate-pulse-slow,
.tt-reg-individual .animate-fade-in,
.tt-reg-individual [class*="animate-"],
.tt-reg-individual .gender-emoji-container,
.tt-reg-individual .btn-shine {
  animation: none !important;
}

.tt-reg-gender {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.tt-reg-gender__intro {
  text-align: center;
  margin-bottom: 1.35rem;
}

.tt-reg-gender__title {
  margin: 0 0 0.4rem;
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #2a221c;
}

.tt-reg-gender__sub {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #5c4a3d;
}

.tt-reg-gender__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 560px) {
  .tt-reg-gender__options {
    grid-template-columns: 1fr;
  }
}

.tt-reg-gender__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(107, 76, 58, 0.16);
  background: #fffefb;
  box-shadow: 0 8px 24px rgba(42, 34, 28, 0.06);
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tt-reg-gender__card:hover,
.tt-reg-gender__card:focus-visible {
  border-color: rgba(233, 84, 32, 0.45);
  box-shadow: 0 12px 32px rgba(233, 84, 32, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.tt-reg-gender__card.is-selected {
  border-color: rgba(233, 84, 32, 0.55);
  background: linear-gradient(160deg, #fff7ed 0%, #fffefb 70%);
  box-shadow: 0 0 0 3px rgba(247, 149, 0, 0.18), 0 12px 32px rgba(233, 84, 32, 0.12);
}

.tt-reg-gender__emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: none;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74;
  box-shadow: 0 3px 10px rgba(233, 84, 32, 0.1);
}

.tt-reg-gender__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.tt-reg-gender__name {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 750;
  color: #2a221c;
  letter-spacing: -0.02em;
}

.tt-reg-gender__pronoun {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c4a3d;
}

.tt-reg-gender__hint {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
}

.tt-reg-gender__hub {
  margin: 1.35rem auto 0;
  max-width: 28rem;
  text-align: center;
}

.tt-reg-gender__hub a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #c2410c;
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 65, 12, 0.35);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tt-reg-gender__hub a:hover {
  color: #e95420;
  border-bottom-color: rgba(233, 84, 32, 0.7);
}

.tt-reg-gender__note {
  margin: 1.1rem auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #5c4a3d;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid rgba(233, 84, 32, 0.18);
}

.tt-reg-individual-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(107, 76, 58, 0.16);
  background: #fffefb;
  box-shadow: 0 14px 40px rgba(42, 34, 28, 0.07);
  overflow: hidden;
}

.tt-reg-form-title {
  margin: 0 0 0.25rem;
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #2a221c !important;
}

.tt-reg-form-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #5c4a3d !important;
}

.tt-reg-insight-panel {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: #fff7ed;
  border: 1px solid rgba(233, 84, 32, 0.2);
}

.tt-reg-insight-panel--center {
  text-align: center;
}

.tt-reg-insight-panel__title {
  font-weight: 750;
  font-size: 1rem;
  color: #2a221c !important;
  margin-bottom: 0.25rem;
}

.tt-reg-insight-panel__body {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #5c4a3d !important;
}

.tt-reg-2fa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Password reveal — beat global button { position: relative } + page .input-icon */
.tt-reg-flow .input-wrapper--password {
  position: relative !important;
}

.tt-reg-flow .input-wrapper--password input {
  padding-right: 3rem !important;
}

.tt-reg-flow .input-wrapper--password > button.input-icon.tt-reg-eye,
.tt-reg-flow button.tt-reg-eye.unstyled {
  position: absolute !important;
  top: 50% !important;
  right: 0.55rem !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0.55rem !important;
  background: transparent !important;
  color: #8a6a4f !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  box-shadow: none !important;
  z-index: 3;
  font-weight: 400 !important;
}

.tt-reg-flow .input-wrapper--password > button.input-icon.tt-reg-eye::before,
.tt-reg-flow button.tt-reg-eye.unstyled::before {
  content: none !important;
  display: none !important;
}

.tt-reg-flow .input-wrapper--password > button.input-icon.tt-reg-eye:hover,
.tt-reg-flow button.tt-reg-eye.unstyled:hover {
  color: #c2410c !important;
  background: rgba(233, 84, 32, 0.08) !important;
}

.tt-reg-flow .input-wrapper--password > button.input-icon.tt-reg-eye i {
  pointer-events: none;
  line-height: 1;
}

.tt-reg-2fa-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: 0.5rem;
}

.tt-reg-2fa-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

.tt-reg-toggle {
  width: 3.25rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #e7ddd3;
  position: relative;
  display: block;
  flex-shrink: 0;
  transition: background 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(107, 76, 58, 0.12);
  pointer-events: none;
}

.tt-reg-toggle::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(42, 34, 28, 0.2);
  transition: transform 0.2s ease;
}

.tt-reg-2fa-switch input:checked + .tt-reg-toggle,
.tt-reg-toggle--on {
  background: linear-gradient(105deg, #f79500, #e95420);
}

.tt-reg-2fa-switch input:checked + .tt-reg-toggle::after {
  transform: translateX(1.45rem);
}

.tt-reg-2fa-switch input:focus-visible + .tt-reg-toggle {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
}

.tt-reg-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin: 0;
}

.tt-reg-checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: #ea580c;
  cursor: pointer;
  border-radius: 0.3rem;
  border: 2px solid rgba(233, 84, 32, 0.55);
  background: #fffefb;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75rem 0.75rem;
  color-scheme: light;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tt-reg-checkbox:checked {
  background-color: #ea580c !important;
  border-color: #c2410c !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11l6.1-6.5' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tt-reg-checkbox:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.tt-reg-terms-text {
  color: #5c4a3d !important;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

/* Links inside terms must not also toggle the checkbox */
.tt-reg-terms-text .tt-reg-inline-link {
  position: relative;
  z-index: 1;
}

.tt-reg-select-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(233, 84, 32, 0.35);
  background: linear-gradient(105deg, #f79500, #e95420);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}

.tt-reg-select-all-btn:hover {
  filter: brightness(1.05);
}

.tt-reg-progress-track {
  background: rgba(107, 76, 58, 0.12);
}

.tt-reg-progress-fill {
  background: linear-gradient(90deg, #f79500, #e95420);
}

.tt-reg-individual .tt-reg-step-label {
  color: #2a221c !important;
}

.tt-reg-individual .tt-reg-step-hint {
  color: #5c4a3d !important;
}

.tt-reg-individual .step-circle {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fdba74 !important;
  box-shadow: none !important;
}

.tt-reg-individual .step-circle.active {
  background: linear-gradient(135deg, #f79500, #e95420) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.tt-reg-individual .step-line {
  background: rgba(107, 76, 58, 0.16) !important;
}

.tt-reg-form-nav {
  border-top: 1px solid rgba(107, 76, 58, 0.14);
}

/* Beat leftover dark form chrome on cream canvas */
.tt-reg-individual .tt-reg-individual-card,
.tt-reg-individual .tt-reg-individual-card * {
  text-shadow: none !important;
}

.tt-reg-individual .text-white,
.tt-reg-individual .text-gray-300,
.tt-reg-individual .text-gray-400,
.tt-reg-individual .text-gray-500,
.tt-reg-individual h2,
.tt-reg-individual .goal-title,
.tt-reg-individual .context-title,
.tt-reg-individual .input-label {
  color: #2a221c !important;
  -webkit-text-fill-color: #2a221c;
}

.tt-reg-individual .goal-subtitle,
.tt-reg-individual .context-subtitle,
.tt-reg-individual .input-hint {
  color: #5c4a3d !important;
  -webkit-text-fill-color: #5c4a3d;
}

.tt-reg-individual .goal-label,
.tt-reg-individual .context-label {
  background: #fffefb !important;
  border: 1px solid rgba(107, 76, 58, 0.16) !important;
  color: #2a221c !important;
}

.tt-reg-individual .goal-card.selected .goal-label,
.tt-reg-individual .context-card.selected .context-label {
  border-color: rgba(233, 84, 32, 0.45) !important;
  background: #fff7ed !important;
  box-shadow: 0 8px 24px rgba(233, 84, 32, 0.12);
}

.tt-reg-individual .goal-gradient,
.tt-reg-individual .context-gradient {
  opacity: 0.12 !important;
}

.tt-reg-individual .goal-icon,
.tt-reg-individual .context-icon {
  width: 2.25rem !important;
  height: 2.25rem !important;
  margin-bottom: 0.55rem !important;
  border-radius: 0.65rem !important;
  background: linear-gradient(145deg, #fff7ed, #ffedd5) !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
  box-shadow: 0 3px 10px rgba(233, 84, 32, 0.1);
}

.tt-reg-individual .goal-icon i,
.tt-reg-individual .context-icon i,
.tt-reg-individual .input-label i {
  animation: none !important;
  color: #c2410c !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
}

.tt-reg-individual .goal-content,
.tt-reg-individual .context-content {
  padding: 1rem 1rem 1.05rem !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.tt-reg-individual .goal-title {
  font-size: 0.98rem !important;
}

.tt-reg-individual .goal-subtitle,
.tt-reg-individual .context-subtitle {
  font-size: 0.78rem !important;
}

.tt-reg-individual .context-title {
  font-size: 0.92rem !important;
}

/* Compact trust-context / type cards across hub + institution signup */
.tt-reg-flow--light .tt-reg-contexts-stage .institution-card-inner,
.tt-reg-flow--light #institutionTypeOptions .institution-card-inner,
.tt-reg-flow--light .tt-reg-context-card__inner {
  padding: 0.95rem 0.9rem 1rem !important;
  min-height: 0 !important;
  gap: 0.35rem;
}

.tt-reg-flow--light .tt-reg-contexts-stage .institution-name,
.tt-reg-flow--light #institutionTypeOptions .institution-name {
  font-size: 1rem !important;
  line-height: 1.25 !important;
}

.tt-reg-flow--light .tt-reg-contexts-stage .institution-desc,
.tt-reg-flow--light #institutionTypeOptions .institution-desc {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

.tt-reg-flow--light .tt-reg-feature-list {
  margin-top: 0.55rem;
  gap: 0.25rem;
}

.tt-reg-flow--light .tt-reg-feature-row {
  font-size: 0.75rem !important;
  gap: 0.4rem;
}

.tt-reg-flow--light .tt-reg-feature-row i {
  font-size: 0.65rem !important;
}

.tt-reg-individual .btn-primary,
.tt-reg-individual .btn-submit {
  background: linear-gradient(105deg, #f79500, #e95420) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 22px rgba(233, 84, 32, 0.25) !important;
}

.tt-reg-individual .btn-secondary {
  background: #fffefb !important;
  color: #2a221c !important;
  border: 1px solid rgba(107, 76, 58, 0.2) !important;
}

.tt-reg-individual input[type="text"],
.tt-reg-individual input[type="email"],
.tt-reg-individual input[type="tel"],
.tt-reg-individual input[type="password"],
.tt-reg-individual input[type="number"],
.tt-reg-individual select,
.tt-reg-individual textarea {
  background: #fff !important;
  color: #2a221c !important;
  border: 1.5px solid rgba(107, 76, 58, 0.18) !important;
  -webkit-text-fill-color: #2a221c;
}

.tt-reg-individual .password-strength-bar {
  background: #e7ddd3;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tt-reg-individual .password-strength-bar.is-lit {
  background: var(--tt-pw-bar, #f59e0b) !important;
}

.tt-reg-optional {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78b73;
  margin-left: 0.35rem;
}

.tt-reg-claim-soft {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #8a6a4f;
}

/* Claim-desk → registration handoff */
.tt-reg-prefill-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 0.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(233, 84, 32, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 251, 0.95)),
    radial-gradient(90% 120% at 0% 0%, rgba(247, 149, 0, 0.2), transparent 55%);
  box-shadow: 0 10px 28px rgba(42, 34, 28, 0.07);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tt-reg-prefill-banner.is-in {
  opacity: 1;
  transform: translateY(0);
}

.tt-reg-prefill-banner__pulse {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #ea580c;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5);
  animation: tt-claim-pulse 1.8s ease-out infinite;
}

.tt-reg-prefill-banner__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tt-reg-prefill-banner__copy strong {
  font-size: 0.92rem;
  font-weight: 750;
  color: #9a3412;
  letter-spacing: -0.01em;
}

.tt-reg-prefill-banner__copy span {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5c4a3d;
}

.tt-reg-prefill-banner__pti {
  flex-shrink: 0;
  align-self: center;
  padding: 0.35rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.95);
  border: 1px solid rgba(233, 84, 32, 0.25);
}

.tt-reg-prefill-field .input-wrapper {
  position: relative;
}

.tt-reg-field-prefilled {
  animation: tt-reg-prefill-settle 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  border-color: rgba(234, 88, 12, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(247, 149, 0, 0.18);
}

@keyframes tt-reg-prefill-settle {
  0% {
    background-color: rgba(255, 237, 213, 0.85);
    transform: translateY(4px);
  }
  100% {
    background-color: #fffefb;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .tt-reg-prefill-banner {
    flex-wrap: wrap;
  }

  .tt-reg-prefill-banner__pti {
    width: 100%;
    text-align: center;
  }
}

.tt-reg-claim {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.35rem 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(233, 84, 32, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 251, 0.96)),
    radial-gradient(120% 80% at 100% 0%, rgba(247, 149, 0, 0.18), transparent 55%);
  box-shadow: 0 12px 36px rgba(42, 34, 28, 0.08);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tt-reg-claim.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tt-reg-claim__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 55%;
  height: 90%;
  background: radial-gradient(circle, rgba(247, 149, 0, 0.22), transparent 70%);
  pointer-events: none;
  animation: tt-claim-glow 4.5s ease-in-out infinite;
}

@keyframes tt-claim-glow {
  0%, 100% { transform: translate(0, 0); opacity: 0.7; }
  50% { transform: translate(12%, 8%); opacity: 1; }
}

.tt-reg-claim__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.95);
  border: 1px solid rgba(233, 84, 32, 0.28);
}

.tt-reg-claim__pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ea580c;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.55);
  animation: tt-claim-pulse 1.8s ease-out infinite;
}

@keyframes tt-claim-pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.tt-reg-claim__title {
  position: relative;
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 750;
  color: #2a221c;
  letter-spacing: -0.02em;
}

.tt-reg-claim__title em {
  font-style: normal;
  color: #c2410c;
  background: linear-gradient(120deg, #ea580c, #f79500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tt-reg-claim__body {
  position: relative;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #5c4a3d;
}

.tt-reg-claim__meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.tt-reg-claim__meta li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 76, 58, 0.12);
}

.tt-reg-claim__meta span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78b73;
}

.tt-reg-claim__meta strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2a221c;
  word-break: break-all;
}

.tt-reg-claim__opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a221c;
  cursor: pointer;
}

.tt-reg-claim__opt input {
  margin-top: 0.2rem;
  accent-color: #ea580c;
}

.btn-submit.tt-reg-claim-submit {
  background: linear-gradient(135deg, #ea580c, #f79500) !important;
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.35);
}

@media (max-width: 640px) {
  .tt-reg-claim__meta {
    grid-template-columns: 1fr;
  }
}

/* —— Path chooser entrance + shared security polish —— */
@keyframes tt-reg-path-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tt-reg-path-enter {
  animation: tt-reg-path-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--tt-path-i, 0) * 70ms);
}

.tt-reg-flow--light .password-strength-bar {
  background: #e7ddd3 !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tt-reg-flow--light .password-strength-bar.is-lit {
  background: var(--tt-pw-bar, #f59e0b) !important;
  box-shadow: 0 0 0 1px rgba(233, 84, 32, 0.12);
}

.tt-reg-flow--light #passwordStrengthText,
.tt-reg-flow--light #passwordMatch {
  color: #5c4a3d !important;
}

.tt-reg-2fa-switch input:checked + .tt-reg-toggle {
  box-shadow:
    inset 0 0 0 1px rgba(194, 65, 12, 0.25),
    0 0 0 4px rgba(233, 84, 32, 0.12);
}

/* Borrower onboarding (post-register) — same light shell language */
.tt-reg-onboard .tt-reg-onboard__card {
  margin: 0.25rem auto 1.25rem;
  max-width: 36rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(107, 76, 58, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 251, 0.98), rgba(255, 247, 237, 0.92));
  box-shadow: 0 16px 40px rgba(42, 34, 28, 0.08);
  animation: tt-reg-path-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tt-reg-onboard .input-label {
  color: #2a221c !important;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.45rem;
  display: block;
}

.tt-reg-onboard .input-wrapper input,
.tt-reg-onboard .input-wrapper textarea,
.tt-reg-onboard .form-control {
  width: 100%;
  background: #fffefb !important;
  color: #2a221c !important;
  border: 1.5px solid rgba(107, 76, 58, 0.18) !important;
  border-radius: 0.75rem !important;
  padding: 0.85rem 1rem !important;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tt-reg-onboard .input-wrapper input:focus,
.tt-reg-onboard .input-wrapper textarea:focus,
.tt-reg-onboard .form-control:focus {
  outline: none;
  border-color: rgba(233, 84, 32, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.16) !important;
}

.tt-reg-onboard__consent {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(107, 76, 58, 0.12);
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tt-reg-onboard__consent:hover {
  border-color: rgba(233, 84, 32, 0.35);
  background: #fffefb;
}

.tt-reg-onboard__hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #8a6a4f !important;
  line-height: 1.4;
}

.tt-reg-onboard__ready {
  margin-top: 0.25rem;
}

.tt-reg-onboard__benefits {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.tt-reg-onboard__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #5c4a3d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tt-reg-onboard__benefits i {
  color: #ea580c;
  margin-top: 0.15rem;
}

.tt-reg-onboard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(105deg, #f79500, #e95420);
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(233, 84, 32, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.tt-reg-onboard__cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(233, 84, 32, 0.34);
}

.tt-reg-onboard__cta:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tt-reg-path-enter,
  .tt-reg-onboard .tt-reg-onboard__card {
    animation: none !important;
  }
}

