:root {
  --orange: #ef6c43;
  --orange-dark: #e05f37;
  --teal: #52c9ce;
  --text: #3f4252;
  --muted: #9da0ad;
  --surface: #ffffff;
  --bg: #f3f3f4;
  --border: #dedfe3;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  --radius-card: 20px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --danger: #d95757;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { cursor: pointer; }
input { outline: none; }

.device-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.app-frame {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.topbar {
  background: var(--orange);
  color: white;
  min-height: 82px;
  padding: env(safe-area-inset-top, 8px) 12px 10px;
  display: grid;
  position: relative;
  grid-template-columns: 42px 1fr 56px;
  align-items: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}

.step-title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.back-btn,
.lang-chip {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.back-btn span { font-size: 30px; line-height: 1; transform: translateY(-1px); }
.back-btn.is-hidden { visibility: hidden; pointer-events: none; }
.home-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.home-btn span { font-size: 24px; line-height: 1; }
.home-btn.is-hidden { display: none !important; }
@media (max-width: 900px) {
  .home-btn:not(.is-hidden) { display: inline-flex; }
}
.back-btn.is-disabled-nav {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.lang-chip-wrap { display: flex; justify-content: flex-end; }
.lang-chip {
  min-width: 42px;
  width: auto;
  padding: 0 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 11px;
  font-weight: 700;
}

.screen-body {
  flex: 1;
  padding: 12px 10px 20px;
}

.card {
  width: 100%;
  min-height: calc(100vh - 130px);
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.035);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateZ(0);
}

.content-block {
  padding: 28px 22px 18px;
  flex: 1;
}
.content-block.no-footer-space { padding-bottom: 10px; }

.hero-title {
  margin: 0 0 34px;
  font-size: clamp(24px, 3.5vw, 28px);
  line-height: 1.18;
  text-align: center;
  font-weight: 700;
  white-space: pre-line;
}
.hero-title.compact { font-size: clamp(22px, 3.2vw, 26px); margin-bottom: 20px; }
.hero-title.left-align { text-align: left; line-height: 1.22; }
.section-title {
  margin: 0 0 22px;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.26;
  text-align: center;
  font-weight: 700;
}

.team-counter-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 26px;
}
.team-counter-animated {
  position: relative;
  overflow: hidden;
  min-width: 230px;
  text-align: center;
}
.team-counter-value {
  display: inline-block;
  font-size: 16px;
  color: #9a9aa0;
  transform-origin: center;
}
.team-counter-animated.is-transitioning .team-counter-value {
  animation: countMorph 460ms cubic-bezier(.22, 1, .36, 1);
}

.segmented-team {
  position: relative;
  display: flex;
  /* flex-wrap: wrap; */
  gap: 4px;
  background: rgba(82, 201, 206, 0.08);
  border-radius: 20px;
  padding: 6px;
  min-height: 74px;
  align-items: stretch;
}
.segmented-pill {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 0;
  height: 0;
  background: linear-gradient(180deg, #59d7dc 0%, #45c2c8 100%);
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(82, 201, 206, 0.26);
  transition: left 380ms cubic-bezier(.22, 1, .36, 1), top 380ms cubic-bezier(.22, 1, .36, 1), width 260ms ease, height 260ms ease;
}
.segmented-option {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  white-space: nowrap;
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text);
  transition: color 260ms ease, transform 260ms ease, opacity 260ms ease, background 260ms ease;
  /* padding: 0 1rem; */
}
.segmented-option:hover {
    background-color: #0000000f;
}
.segmented-option.is-active {
  color: #fff;
  font-weight: 700;
  /* transform: translateY(-1px) scale(1.01); */
  background: transparent !important;
}
.segmented-option.was-active {
  /* transform: translateY(1px) scale(0.985); */
}
.segmented-team.is-animating .segmented-option {
  transition-duration: 360ms;
}

.subtle-note,
.field-hint,
.subtle-paragraph,
.assistive-line {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.subtle-note { margin: 24px auto 0; max-width: 620px; text-align: center; }
.subtle-paragraph { margin: 6px 0 0; }

.footer-action {
  padding: 12px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
}
.footer-action.inline-space { padding: 12px 0 0; }
.footer-action.small-gap { gap: 16px; }

.primary-btn {
  width: min(100%, 480px);
  margin: 0 auto;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: white;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(239, 108, 67, 0.25);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease, filter 220ms ease;
}
.primary-btn:hover { transform: translateY(-1px); }
.primary-btn:active { transform: translateY(0); }
.primary-btn.dark { background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%); box-shadow: 0 10px 20px rgba(239, 108, 67, 0.25); }
.primary-btn.muted { background: linear-gradient(180deg, #c8c8cc 0%, #b6b6bb 100%); box-shadow: none; }
.primary-btn.is-disabled,
.primary-btn:disabled {
  opacity: 0.6;
  filter: grayscale(0.08);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.primary-btn.can-resend {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 10px 20px rgba(239, 108, 67, 0.18);
}

.long-list {
  overflow: auto;
  max-height: calc(100vh - 250px);
  padding-right: 2px;
}
.category-group + .category-group { margin-top: 28px; }
.category-group h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.5vw, 28px);
  line-height: 1.22;
  font-weight: 700;
}
.list-row {
  width: 100%;
  min-height: 58px;
  padding: 16px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid #ececee;
  background: transparent;
  text-align: left;
  font-size: 15px;
  color: var(--text);
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}
.list-row:hover { color: var(--orange); }
.list-row.is-selected { color: var(--orange); }
.chevron { color: var(--orange); font-size: 34px; line-height: 1; }

.search-shell {
  position: relative;
  margin-bottom: 14px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}
.search-input {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.94);
  padding: 0 16px 0 46px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.search-input:focus,
.floating-field:focus-within {
  border-color: rgba(239, 108, 67, 0.6);
  box-shadow: 0 0 0 4px rgba(239, 108, 67, 0.1);
}
.sticky-search {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.66) 100%);
  backdrop-filter: blur(8px);
}

.field-group { margin-bottom: 18px; }
.floating-field {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.floating-field input {
  width: 100%;
  min-height: 42px;
  padding: 18px 14px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  border-radius: inherit;
}
.floating-field input::placeholder { color: transparent; }
.floating-field input,
.search-input {
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

.floating-field input::placeholder {
  color: transparent;
}

.phone-field .country-code-trigger {
  top: 50%;
}

.floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #898c99;
  font-size: 16px;
  pointer-events: none;
  transition: top 180ms ease, transform 180ms ease, font-size 180ms ease, color 180ms ease, background 180ms ease, padding 180ms ease;
}
.floating-field.has-value .floating-label,
.floating-field:focus-within .floating-label {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  padding: 0 6px;
  margin-left: 10px;
  background: rgba(255,255,255,0.95);
  color: #797c89;
}
.field-hint { margin-top: 10px; }
.field-error {
  color: var(--danger);
  min-height: 21px;
  margin-top: 8px;
  font-size: 14px;
}
.has-error .floating-field {
  border-color: rgba(217, 87, 87, 0.65);
  box-shadow: 0 0 0 4px rgba(217, 87, 87, 0.08);
}

.phone-field input { padding-left: 118px; direction: ltr; text-align: left; unicode-bidi: plaintext; }
.phone-field .floating-label { left: 118px; }
.phone-field.has-value .floating-label,
.phone-field:focus-within .floating-label { left: 16px; }
.country-code-trigger {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 42px;
  border: 0;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(239,108,67,0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.country-flag { font-size: 16px; }
.country-dial { font-size: 16px; font-weight: 600; }
.mini-chevron { font-size: 11px; color: #777; }
.flag-big { font-size: 16px; }

.sms-preview-block {
  margin-top: 14px;
}
.sms-preview-block h3,
.password-rule {
  margin: 8px 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.sms-preview-block p {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}
.sms-preview-highlight {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 1px;
  border-radius: 999px;
  background: rgba(239,108,67,0.10);
  font-weight: 700;
  color: var(--text);
}
.lead-text {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.35;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(239,108,67,0.08);
}
.assistive-line {
  margin-top: 8px;
  font-size: 13px;
}

.country-app-chooser {
  margin: 2px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
}
.country-app-label {
  font-size: 15px;
  color: var(--text);
}
.country-app-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 34, 45, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 20;
}
.modal-sheet {
  width: min(100%, 360px);
  max-height: min(78vh, 720px);
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}
.modal-search { margin-bottom: 12px; }
.modal-list {
  overflow: auto;
  border-radius: 14px;
}
.country-row {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid #ececee;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
}
.country-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.country-name { font-size: 16px; }
.country-dial-code { color: #999; font-size: 16px; }
.empty-search {
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.fade-in-up { animation: none; }
.scale-in { animation: scaleIn 180ms ease; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes countMorph {
  0% { opacity: .45; transform: translateY(8px) scale(.985); }
  55% { opacity: 1; transform: translateY(-1px) scale(1.012); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


.desktop-layout {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.desktop-sidebar {
  display: none;
}

.desktop-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.desktop-brand-copy {
  flex-grow: 1;
}

.desktop-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--orange);
  background: linear-gradient(180deg, rgba(239,108,67,0.16) 0%, rgba(239,108,67,0.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(239,108,67,0.10);
}

.desktop-brand-name {
  width: 75%;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.desktop-brand-name img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-brand-subtitle {
  margin-top: 5px;
  color: #8d90a0;
  font-size: 14px;
}

.desktop-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.desktop-step {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 0;
  text-align: left;
  border-radius: 18px;
  background: rgba(255,255,255,0.54);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.44);
}

.desktop-step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: #7b7f8f;
  background: rgba(63,66,82,0.08);
}

.desktop-step-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.desktop-step-subtitle {
  margin-top: 4px;
  color: #8f92a0;
  font-size: 13px;
  line-height: 1.35;
}

.desktop-step.is-active {
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 28px rgba(63,66,82,0.08), inset 0 0 0 1px rgba(239,108,67,0.14);
}

.desktop-step.is-active .desktop-step-number {
  color: white;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 8px 18px rgba(239,108,67,0.22);
}

.desktop-step.is-complete .desktop-step-number {
  color: var(--orange);
  background: rgba(239,108,67,0.12);
}


.desktop-step.is-clickable {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.desktop-step.is-clickable:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 10px 24px rgba(63,66,82,0.07), inset 0 0 0 1px rgba(239,108,67,0.10);
}
.desktop-step.is-disabled {
  opacity: 0.72;
  cursor: default;
}

@media (min-width: 900px) {
  body {
    background: radial-gradient(circle at top left, rgba(239,108,67,0.08), transparent 30%), linear-gradient(180deg, #f4f2f1 0%, #eceaea 100%);
  }
  .device-shell {
    min-height: 100vh;
    padding: 28px;
    align-items: center;
    justify-content: center;
  }
  .app-frame {
    width: min(1080px, calc(100vw - 56px));
    height: clamp(680px, 78vh, 760px);
    min-height: 680px;
    min-width: 960px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(39, 33, 29, 0.16);
    border: 1px solid rgba(54, 43, 37, 0.06);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(16px);
  }
  .desktop-layout {
    min-height: 100%;
    flex-direction: row;
  }
  .desktop-sidebar {
    width: 330px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 26px 28px;
    background: linear-gradient(180deg, rgba(82,201,206,0.045) 0%, rgba(255,255,255,0.18) 40%, rgba(239,108,67,0.035) 100%);
    border-right: 1px solid rgba(63,66,82,0.06);
  }
  .desktop-main {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.14);
  }
  .topbar {
    min-height: 78px;
    padding: 14px 20px 10px;
  }
  .screen-body {
    flex: 1;
    padding: 16px 16px 18px;
    overflow: auto;
  }
  .card {
    min-height: 0;
    height: 100%;
    border-radius: 24px;
    background: rgba(255,255,255,0.64);
    box-shadow: 0 18px 38px rgba(63,66,82,0.08);
  }
  .long-list {
    max-height: none;
    height: 100%;
  }
}
@media (max-width: 480px) {
  .topbar {
    min-height: 76px;
    padding: env(safe-area-inset-top, 6px) 10px 8px;
    grid-template-columns: 40px 1fr 52px;
  }
  .step-title { font-size: 14px; }
  .hero-title { font-size: 26px; }
  .section-title { font-size: 21px; }
  .team-counter-value { font-size: 16px; }
  .segmented-option { font-size: 14px; min-height: 54px; }
  .primary-btn { min-height: 50px; font-size: 17px; }
  .floating-field input { min-height: 56px; font-size: 16px; }
  .floating-label { font-size: 17px; }
  .country-app-value { font-size: 20px; }
  .list-row { min-height: 58px; font-size: 16px; }
  .category-group h3 { font-size: 16px; }
  .lead-text { font-size: 16px; }
  .sms-preview-block h3, .password-rule { font-size: 16px; }
  .sms-preview-block p { font-size: 14px; }
  .phone-field input { padding-left: 114px; }
  .country-code-trigger { height: 42px; }
}



.form-screen {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-shell,
.content-shell {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.form-shell-narrow {
  max-width: 480px;
}

.content-shell-wide {
  max-width: 680px;
}

.form-footer-inline {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.form-footer-inline .primary-btn,
.form-shell-narrow .primary-btn {
  width: 100%;
  max-width: none;
}

@media (min-width: 900px) {
  .form-shell-narrow {
    max-width: 450px;
  }

  .content-shell-wide {
    max-width: 700px;
  }
}

@media (min-width: 1200px) {
  .form-shell-narrow {
    max-width: 430px;
  }

  .content-shell-wide {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .form-shell-narrow,
  .content-shell-wide {
    max-width: none;
  }
}

.step-3 {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 10px;
}
.step-3 .hero-title.compact {
  margin-bottom: 14px;
}
.step-3 .field-group {
  margin-bottom: 14px;
}
.step-3 .hero-title.compact {
  margin-bottom: 14px;
}
.step-3 .field-group {
  margin-bottom: 12px;
}
.step-3 .field-hint {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.32;
}
.step-3 .footer-action.inline-space {
  padding-top: 0;
  gap: 10px;
}
.step-3 .primary-btn {
  min-height: 48px;
}
.step-3 .sms-preview-block {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(63,66,82,0.08);
  flex-shrink: 0;
}
.step-3 .sms-preview-block h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.step-3 .sms-preview-block p {
  font-size: 14px;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .step-3 {
    padding-bottom: 10px;
  }
  .step-3 .hero-title.compact {
    margin-bottom: 12px;
  }
  .step-3 .field-group {
    margin-bottom: 12px;
  }
  .step-3 .field-hint {
    font-size: 13px;
  }
  .step-3 .sms-preview-block {
    margin-top: 8px;
    padding: 10px 12px;
  }
  .step-3 .sms-preview-block h3 {
    font-size: 14px;
  }
  .step-3 .sms-preview-block p {
    font-size: 13px;
    line-height: 1.4;
  }
}


.step-2 {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.step-2 .long-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}


.step-2 .long-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(63,66,82,0.28) rgba(63,66,82,0.06);
}
.step-2 .long-list::-webkit-scrollbar {
  width: 10px;
}
.step-2 .long-list::-webkit-scrollbar-track {
  background: rgba(63,66,82,0.06);
  border-radius: 999px;
}
.step-2 .long-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(239,108,67,0.42) 0%, rgba(63,66,82,0.22) 100%);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.78);
}
.step-2 .long-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(239,108,67,0.56) 0%, rgba(63,66,82,0.30) 100%);
}


.text-link-btn {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.text-link-btn:hover {
  color: var(--orange-dark);
}
.text-link-btn:focus-visible {
  outline: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(239, 108, 67, 0.12);
}
.step-4-help {
  margin-top: 0;
  text-align: center;
}


.step-5.step-5-form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0;
}
.step-5-form-scroll {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
}
.step-5-footer {
  padding-top: 8px;
  padding-bottom: 8px;
  flex-shrink: 0;
}
.step-5-complete {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 100%;
}
.step-5-success-hero {
  text-align: center;
}
.step-5-success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4caf50 0%, #2e9e52 100%);
  box-shadow: 0 14px 28px rgba(76, 175, 80, 0.22);
}
.step-5-success-note {
  margin-top: 10px;
}
.step-5-next-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.step-5-next-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.step-5-next-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.step-5-store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.step-5-store-btn {
  min-height: 54px;
  border-radius: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(63,66,82,0.08);
  box-shadow: 0 8px 18px rgba(63,66,82,0.06);
  font-weight: 700;
}
.step-5-store-btn:hover {
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .step-5-store-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 900px) {
  .step-5.step-5-form .hero-title.compact {
    margin-bottom: 14px;
  }
  .step-5.step-5-form .field-group {
    margin-bottom: 14px;
  }
  .step-5-footer .primary-btn {
    min-height: 48px;
  }
}


.step-5-complete {
  padding: 0;
  overflow: auto;
}
.step-5-complete-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.step-5-success-hero {
  background: linear-gradient(135deg, #4CAF50 0%, #2e9e52 100%);
  padding: 42px 24px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.step-5-success-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.step-5-success-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.step-5-success-icon-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}
.step-5-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-5-success-hero .hero-title {
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.step-5-success-subtitle {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.45;
  position: relative;
  z-index: 1;
  margin: 0;
}
.step-5-next-card {
  background: var(--bg);
  border: 1px solid var(--border);
  margin: 20px 22px 0;
  border-radius: 12px;
  padding: 16px 20px;
}
.step-5-next-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.step-5-next-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.step-5-downloads {
  padding: 24px 22px 24px;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.step-5-download-group + .step-5-download-group {
  margin-top: 22px;
}
.step-5-download-group-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 12px;
}
.step-5-download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.step-5-download-badge {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.13);
  transition: transform .16s ease, box-shadow .16s ease;
}
.step-5-download-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.step-5-download-badge img {
  display: block;
  width: 186px;
  height: 55px;
}
@media (max-width: 480px) {
  .step-5-success-hero {
    padding: 36px 18px 28px;
  }
  .step-5-next-card {
    margin: 18px 16px 0;
  }
  .step-5-downloads {
    padding: 18px 16px 22px;
  }
  .step-5-download-badge img {
    width: min(186px, calc(50vw - 22px));
    height: auto;
  }
}


.debug-jump-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(63,66,82,0.10);
  box-shadow: 0 18px 40px rgba(63,66,82,0.14);
  backdrop-filter: blur(10px);
}
.debug-jump-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.debug-jump-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.debug-jump-btn {
  min-width: 62px;
  min-height: 36px;
  border: 1px solid rgba(63,66,82,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(63,66,82,0.05);
}
.debug-jump-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .debug-jump-panel {
    right: 10px;
    bottom: 10px;
    padding: 8px;
  }
  .debug-jump-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .debug-jump-btn {
    min-width: 0;
    min-height: 34px;
    font-size: 12px;
  }
}

@media (min-width: 900px) and (max-height: 760px) {
  .desktop-sidebar {
    padding: 24px 20px 20px;
  }
  .desktop-brand {
    margin-bottom: 20px;
  }
  .desktop-steps {
    gap: 10px;
  }
  .desktop-step {
    padding: 10px 12px;
  }
  .desktop-step-title {
    font-size: 14px;
  }
  .desktop-step-subtitle {
    font-size: 12px;
    margin-top: 2px;
  }
  .topbar {
    min-height: 64px;
    padding: 10px 14px 6px;
  }
  .screen-body {
    padding: 12px 12px 14px;
    overflow: hidden;
  }
  .content-block {
    padding: 20px 18px 14px;
  }
  .hero-title {
    margin-bottom: 22px;
    font-size: clamp(22px, 3vw, 26px);
  }
  .hero-title.compact {
    margin-bottom: 14px;
  }
  .section-title {
    margin-bottom: 16px;
    font-size: clamp(17px, 2.6vw, 20px);
  }
  .field-group {
    margin-bottom: 12px;
  }
  .footer-action {
    padding: 10px 16px 18px;
    gap: 10px;
  }
  .team-counter-wrap {
    min-height: 32px;
    margin-bottom: 16px;
  }
  .segmented-team {
    min-height: 66px;
  }
  .segmented-option {
    min-height: 54px;
    font-size: clamp(16px, 2.6vw, 20px);
  }
  .subtle-note,
  .field-hint,
  .subtle-paragraph,
  .assistive-line,
  .lead-text {
    font-size: 14px;
    line-height: 1.35;
  }
  .step-3 .sms-preview-block {
    margin-top: 2px;
    padding: 8px 12px;
  }
  .step-3 .sms-preview-block h3 {
    margin-bottom: 4px;
  }
  .step-5-success-hero {
    padding: 30px 18px 20px;
  }
  .step-5-success-icon {
    width: 72px;
    height: 72px;
  }
  .step-5-next-card {
    margin: 16px 18px 0;
    padding: 14px 16px;
  }
  .step-5-downloads {
    padding: 18px 18px 18px;
  }
  .step-5-download-group + .step-5-download-group {
    margin-top: 16px;
  }
  .step-5-complete {
    overflow: hidden;
  }
}

@media (min-width: 900px) and (max-height: 700px) {
  .device-shell {
    padding: 16px;
  }
  .app-frame {
    width: min(1080px, calc(100vw - 32px));
  }
  .desktop-sidebar {
    padding: 18px 16px 16px;
    width: 300px;
  }
  .desktop-brand-mark {
    width: 38px;
    height: 38px;
  }
  .desktop-brand-name {
    font-size: 24px;
  }
  .desktop-brand-subtitle {
    font-size: 13px;
  }
  .desktop-step-number {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .content-block {
    padding: 16px 16px 12px;
  }
  .hero-title {
    margin-bottom: 16px;
    font-size: clamp(20px, 2.8vw, 24px);
  }
  .section-title {
    margin-bottom: 12px;
    font-size: clamp(16px, 2.4vw, 18px);
  }
  .footer-action {
    padding: 8px 14px 14px;
    gap: 8px;
  }
  .primary-btn {
    min-height: 46px;
  }
  .field-group {
    margin-bottom: 10px;
  }
  .floating-field {
    min-height: 54px;
  }
  .floating-field input {
    font-size: 15px;
  }
  .team-counter-wrap {
    margin-bottom: 12px;
  }
  .segmented-team {
    min-height: 60px;
  }
  .segmented-option {
    min-height: 48px;
    font-size: 15px;
  }
  .step-5-success-hero {
    padding: 24px 16px 16px;
  }
  .step-5-success-icon-wrap {
    margin-bottom: 14px;
  }
  .step-5-success-icon {
    width: 64px;
    height: 64px;
  }
  .step-5-next-card {
    margin: 12px 16px 0;
    padding: 12px 14px;
  }
  .step-5-downloads {
    padding: 14px 16px 16px;
  }
  .step-5-download-group + .step-5-download-group {
    margin-top: 12px;
  }
}

@media (min-width: 900px) and (max-height: 640px) {
  .device-shell {
    padding: 10px;
  }
  .app-frame {
    width: min(1080px, calc(100vw - 20px));
  }
  .desktop-sidebar {
    padding: 14px 14px 12px;
    width: 286px;
  }
  .desktop-brand {
    margin-bottom: 14px;
  }
  .desktop-steps {
    gap: 8px;
  }
  .desktop-step {
    padding: 8px 10px;
    border-radius: 14px;
  }
  .topbar {
    min-height: 70px;
    padding: 12px 16px 8px;
  }
  .screen-body {
    padding: 10px 10px 12px;
  }
  .content-block {
    padding: 14px 14px 10px;
  }
  .hero-title {
    margin-bottom: 12px;
    font-size: clamp(18px, 2.5vw, 22px);
  }
  .section-title {
    margin-bottom: 10px;
    font-size: 16px;
  }
  .footer-action {
    padding: 8px 12px 12px;
    gap: 8px;
  }
  .primary-btn {
    min-height: 44px;
    font-size: 15px;
  }
  .subtle-note,
  .field-hint,
  .subtle-paragraph,
  .assistive-line,
  .lead-text {
    font-size: 13px;
  }
  .step-5-success-subtitle {
    font-size: 0.88rem;
  }
  .step-5-download-group-title {
    margin-bottom: 8px;
  }
}


/* Step 5 compact form only */
.step-5.step-5-form {
  padding-bottom: 12px;
}
.step-5.step-5-form .hero-title.compact {
  margin-bottom: 12px;
}
.step-5.step-5-form .field-group {
  margin-bottom: 12px;
}
.step-5.step-5-form .field-hint {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.32;
}
.step-5.step-5-form .password-rule {
  margin: 2px 0 10px;
  font-size: 15px;
}
.step-5.step-5-form .assistive-line {
  display: none;
}
.step-5.step-5-form .floating-field {
  min-height: 54px;
}
.step-5.step-5-form .floating-field input {
  min-height: 38px;
  padding: 16px 14px 8px;
}
.step-5-footer {
  padding-top: 4px;
  padding-bottom: 2px;
}
.step-5-footer .primary-btn {
  min-height: 46px;
}
@media (min-width: 900px) {
  .step-5.step-5-form {
    padding-top: 22px;
    padding-bottom: 10px;
  }
  .step-5.step-5-form .field-group {
    margin-bottom: 10px;
  }
  .step-5.step-5-form .password-rule {
    margin: 0 0 8px;
  }
  .step-5-footer {
    padding-top: 2px;
    padding-bottom: 0;
  }
}
@media (max-height: 760px) and (min-width: 900px) {
  .step-5.step-5-form {
    padding-top: 18px;
    padding-bottom: 8px;
  }
  .step-5.step-5-form .hero-title.compact {
    margin-bottom: 10px;
  }
  .step-5.step-5-form .field-group {
    margin-bottom: 8px;
  }
  .step-5.step-5-form .field-hint,
  .step-5.step-5-form .password-rule {
    font-size: 13px;
    line-height: 1.28;
  }
  .step-5.step-5-form .floating-field {
    min-height: 52px;
  }
  .step-5.step-5-form .floating-field input {
    min-height: 36px;
    padding: 15px 14px 7px;
  }
  .step-5-footer .primary-btn {
    min-height: 44px;
  }
}


.step-4 .hero-title.compact,
.step-4 .lead-text {
  text-align: left;
}

.step-4 .footer-action.inline-space.small-gap,
.step-5-footer {
  margin-left: auto;
  margin-right: auto;
}

.step-5-footer {
  width: 100%;
  max-width: 480px;
}

@media (min-width: 900px) {
  .step-5-footer {
    max-width: 450px;
  }
}

@media (min-width: 1200px) {
  .step-5-footer {
    max-width: 430px;
  }
}

.step-3 .field-group,
.step-4 .field-group,
.step-5.step-5-form .field-group,
.step-5.step-5-form .password-rule,
.step-5.step-5-form .country-app-chooser {
  width: 100%;
}

@media (min-width: 900px) {
  .step-3 .hero-title.compact,
  .step-5.step-5-form .hero-title.compact {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
    text-align: center;
  }

  .step-4 .hero-title.compact {
    max-width: 450px;
  }

  .step-3 .sms-preview-block {
    margin-top: 14px;
  }
}


@media (max-width: 899px) {
  .step-5-complete {
    justify-content: flex-start;
    align-items: stretch;
  }

  .step-5-complete-card {
    min-height: auto;
  }
}
