/* =========================
  ScanWin — onboarding.css
========================= */

.sw-onb {
  min-height: 100vh;
  background: #fafafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  gap: 40px;
}

.sw-onb__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.sw-onb__brand-mark {
  width: 29px;
  height: 29px;
}

.sw-onb__brand-name {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.63px;
  color: #0f1020;
}

.sw-onb__panel {
  width: 528px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sw-onb__footer {
  width: 528px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.sw-onb__copy {
  color: #9CA3AF;
  font-weight: 400;
  margin-bottom: 0;
}

.sw-onb__links {
  display: flex;
  gap: 24px;
}

.sw-onb__links a {
  color: #6B6F7B;
  font-weight: 500;
  text-decoration: none;
}

.sw-onb__links a:hover {
  color: #1a1232;
}


/* =========================
  Step indicator (top of panel)
========================= */
.sw-onb-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sw-onb-step__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  color: #6e5df8;
  margin: 0;
}

.sw-onb-step__label--done {
  color: #10b981;
}

.sw-onb-step__track {
  height: 4px;
  background: #ece9e0;
  border-radius: 2px;
  overflow: hidden;
}

.sw-onb-step__fill {
  height: 4px;
  background: #6e5df8;
  border-radius: 2px;
  transition: width 0.3s ease-out;
}

.sw-onb-step__fill--done {
  background: #10b981;
  width: 100% !important;
}


/* =========================
  Heading block (title + sub)
========================= */
.sw-onb-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-onb-head--center {
  align-items: center;
  text-align: center;
}

.sw-onb-head__title {
  font-size: 44px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.88px;
  color: #1a1232;
  margin: 0;
}

.sw-onb-head__title--md {
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.72px;
}

.sw-onb-head__sub {
  font-size: 14px;
  font-weight: 400;
  color: #6b6f7b;
  margin: 0;
}


/* =========================
  Primary CTA + secondary nav
========================= */
.sw-onb-btn {
  width: 100%;
  height: 56px;
  background: #6e5df8;
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.sw-onb-btn:hover {
  background: #5d4ee0;
}

.sw-onb-btn:active {
  transform: translateY(1px);
}

.sw-onb-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.sw-onb-nav__back {
  color: #6b6f7b;
  font-weight: 400;
  text-decoration: none;
}

.sw-onb-nav__back:hover {
  color: #1a1232;
}

.sw-onb-nav__skip {
  color: #6e5df8;
  font-weight: 600;
  text-decoration: none;
}

.sw-onb-nav__skip:hover {
  color: #5d4ee0;
}


/* =========================
  Step 1 — Welcome: numbered "what you'll do" list
========================= */
.sw-onb-tasks {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.sw-onb-task {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sw-onb-task__num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eeedfe;
  color: #6e5df8;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sw-onb-task__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sw-onb-task__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 100%;
  color: #1a1232;
  margin: 0;
}

.sw-onb-task__sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  color: #6b6f7b;
  margin: 0;
}


/* =========================
  Step 2 — Connect socials: platform rows
========================= */
.sw-onb-platforms {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sw-onb-platform {
  height: 64px;
  background: #fff;
  border: 1px solid #ECE9E0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sw-onb-platform__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sw-onb-platform__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.sw-onb-platform__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sw-onb-platform__name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1232;
  margin: 0;
}

.sw-onb-platform__sub {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  margin: 0;
}

.sw-onb-platform__btn {
  background: #6e5df8;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 100%;
  cursor: pointer;
  transition: background 0.15s;
}

.sw-onb-platform__btn:hover {
  background: #5d4ee0;
}

.sw-onb-platform__btn.is-connected {
  background: #d1fae5;
  color: #047857;
  pointer-events: none;
}


/* =========================
  Step 3 — Pick niches: header + chip wrap
========================= */
.sw-onb-niches {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sw-onb-niches__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.sw-onb-niches__label {
  font-size: 11px;
  letter-spacing: 0.66px;
  color: #9ca3af;
}

.sw-onb-niches__count {
  font-size: 12px;
  color: #6e5df8;
}

.sw-onb-niches__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sw-onb-chip {
  padding: 10px 16px;
  background: #f3f4f6;
  border: 1px solid #ece9e0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  color: #1a1232;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sw-onb-chip:hover {
  border-color: #d1d5db;
}

.sw-onb-chip.is-active {
  background: #6e5df8;
  border-color: #6e5df8;
  color: #fff;
}

.sw-onb-chip[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}


/* =========================
  Step 4 — Verify: form fields
========================= */
.sw-onb-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sw-onb-row {
  display: flex;
  gap: 18px;
}

.sw-onb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.sw-onb-field__label {
  font-size: 13px;
  font-weight: 500;
  color: #1a1232;
  margin: 0;
}

.sw-onb-field__input,
.sw-onb-field__select {
  height: 52px;
  background: #fff;
  border: 1px solid #ece9e0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1232;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sw-onb-field__input::placeholder,
.sw-onb-field__select::placeholder {
  color: #9ca3af;
}

.sw-onb-field__input:focus,
.sw-onb-field__select:focus {
  border-color: #6e5df8;
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.12);
}

/* Custom select wrapper for the chevron */
.sw-onb-field--select {
  position: relative;
}

.sw-onb-field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  width: 100%;
  cursor: pointer;
}

.sw-onb-field__chev {
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: 1px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: #6b6f7b;
}

/* =========================
   Custom country combobox
========================= */
.sw-country {
  position: relative;
}

.sw-country__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  background: #fff;
  border: 1px solid #ece9e0;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1232;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sw-country__btn:hover {
  border-color: #d9d4c6;
}

.sw-country__btn:focus-visible,
.sw-country.is-open .sw-country__btn {
  outline: none;
  border-color: #6e5df8;
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.12);
}

.sw-country__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-country__chev {
  width: 18px;
  height: 18px;
  color: #6b6f7b;
  flex: 0 0 auto;
  transition: transform 0.18s;
}

.sw-country.is-open .sw-country__chev {
  transform: rotate(180deg);
}

.sw-country__pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #ece9e0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(26, 18, 50, 0.12),
    0 2px 6px rgba(26, 18, 50, 0.06);
  padding: 8px;
  display: flex;
  flex-direction: column;
  max-height: 320px;
  animation: swCountryIn 0.14s ease-out;
}

@keyframes swCountryIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sw-country__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  min-height: 40px;
  background: #f7f5ee;
  border-radius: 8px;
  margin-bottom: 6px;
}

.sw-country__search svg {
  width: 16px;
  height: 16px;
  color: #6b6f7b;
  flex: 0 0 auto;
}

.sw-country__search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  font-family: inherit;
  color: #1a1232;
}

.sw-country__search input::placeholder {
  color: #9ca3af;
}

.sw-country__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}

.sw-country__list::-webkit-scrollbar { width: 8px; }
.sw-country__list::-webkit-scrollbar-thumb {
  background: #e3dfd2;
  border-radius: 8px;
}

.sw-country__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #1a1232;
  user-select: none;
}

.sw-country__opt:hover,
.sw-country__opt.is-active {
  background: #f3f0ff;
}

.sw-country__opt.is-selected {
  font-weight: 600;
}

.sw-country__opt-check {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #6e5df8;
  flex: 0 0 auto;
  opacity: 0;
}

.sw-country__opt.is-selected .sw-country__opt-check {
  opacity: 1;
}

.sw-country__empty {
  margin: 0;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #6b6f7b;
}


/* =========================
   Step 5 — All done: success block + summary
========================= */
.sw-onb-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sw-onb-done__check {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: #d1fae5;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: sw-onb-done-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.sw-onb-done__check svg {
  width: 64px;
  height: 64px;
  animation: sw-onb-done-tick 0.4s ease-out 0.2s both;
}

.sw-onb-done__summary {
  width: 100%;
  background: #F5F4FE;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.sw-onb-done__summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1232;
}

.sw-onb-done__summary-item svg {
  width: 14px;
  height: 14px;
  color: #10b981;
  flex-shrink: 0;
}

@keyframes sw-onb-done-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

@keyframes sw-onb-done-tick {
  0%   { stroke-dashoffset: 60; opacity: 0; }
  100% { stroke-dashoffset: 0;  opacity: 1; }
}


/* =========================
  Mobile (≤767px)
========================= */
@media (max-width: 767.98px) {
  .sw-onb {
    padding: 40px 20px;
    gap: 24px;
  }

  .sw-onb__panel {
    gap: 24px;
  }

  .sw-onb-head__title {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -0.6px;
  }

  .sw-onb-head__title--md {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.52px;
  }

  .sw-onb-head__sub {
    font-size: 13px;
    line-height: 18px;
  }

  /* Verify form: stack name fields */
  .sw-onb-row {
    flex-direction: column;
    gap: 18px;
  }

  /* Smaller success block */
  .sw-onb-done__check {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .sw-onb-done__check svg {
    width: 52px;
    height: 52px;
  }

  /* Footer stacks on phones */
  .sw-onb__footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .sw-onb__links {
    gap: 18px;
  }
}


/* =========================
  Reduced motion
========================= */
@media (prefers-reduced-motion: reduce) {
  .sw-onb-step__fill,
  .sw-onb-btn,
  .sw-onb-chip,
  .sw-onb-platform__btn,
  .sw-onb-done__check,
  .sw-onb-done__check svg {
    transition: none;
    animation: none;
  }
}
