/* ============================================================
  Profile — Header banner
  ============================================================ */
.sw-prof-banner {
  --bs-card-border-radius: 20px;
  --bs-card-spacer-y: 20px;
  --bs-card-spacer-x: 32px;
}

.sw-prof-banner__strip {
  height: 94px;
  background: linear-gradient(106.7deg, #6e5ef7 11.54%, #291445 88.46%);
}

.sw-prof-banner__body {
  gap: 20px;
}

.sw-prof-banner__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #0f1020;
}

.sw-tier-pill {
  --bs-badge-font-size: 10px;
  --bs-badge-font-weight: 600;
  --bs-badge-color: var(--sw-violet);
  --bs-badge-padding-y: 4px;
  --bs-badge-padding-x: 8px;
  background: #f5f4fe;
  letter-spacing: 0.4px;
}

.sw-verified-chip {
  width: 22px;
  height: 22px;
  background: #059669;
}
.sw-verified-chip svg {
  width: 14px;
  height: 14px;
}

.sw-prof-banner__handle {
  font-size: 13px;
  color: #6b6f7b;
}
.sw-prof-banner__meta {
  font-size: 12px;
  color: #9ca3af;
}

.sw-prof-banner__actions {
  gap: 10px;
}
/* END Profile header */

/* ============================================================
  Profile — Card micro-typography
============================================================ */
.sw-prof-card__subtitle {
  font-size: 12px;
  line-height: 16px;
  color: #6b7280;
}

.sw-pf-label {
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #6b7280;
}

.sw-input--bio {
  padding: 12px 14px;
  line-height: 20px;
  font-size: 13px;
  color: #6b7280;
}
/* END card typography */

/* ============================================================
  Profile — Social handles list
============================================================ */
.sw-soc-row {
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #f3f4f6;
  border-radius: 12px;
}

.sw-soc-icon {
  width: 36px;
  height: 36px;
}

.sw-soc-row__name {
  font-size: 14px;
  line-height: 20px;
}
.sw-soc-row__handle {
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
}
.sw-soc-row__count {
  font-size: 11px;
  color: #6b6f7b;
}

.sw-verified-count::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #10b981;
}
/* END Social handles */

/* ============================================================
  Profile — Completeness card
============================================================ */
.sw-comp-card {
  --bs-card-bg: #f5f4fe;
  --bs-card-spacer-y: 22px;
  --bs-card-spacer-x: 24px;
}
@media (max-width: 575.98px) {
  .sw-comp-card {
    --bs-card-spacer-y: 20px;
    --bs-card-spacer-x: 20px;
  }
}
.sw-comp-card__subtitle {
  font-size: 12px;
  line-height: 16px;
  color: #6b6f7b;
}
.sw-comp-card__pct {
  color: var(--sw-violet);
  letter-spacing: -0.5px;
}
.sw-comp-card__list li {
  font-size: 12px;
  line-height: 16px;
}
/* END Completeness */

/* ============================================================
  Profile — Audience reach card
============================================================ */
.sw-reach-row {
  font-size: 12px;
  line-height: 16px;
}
.sw-reach-row__label .small {
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
}
.sw-reach-row__value {
  font-size: 18px;
  line-height: 26px;
}
/* END Audience reach */

/* ============================================================
  Profile — Achievements list
============================================================ */
.sw-ach-card__count {
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
}

.sw-ach-row {
  gap: 12px;
  padding: 10px 12px;
  background: #f3f4f6;
  border-radius: 12px;
}
.sw-ach-row__icon {
  width: 36px;
  height: 36px;
  background: #6e5df8;
  color: #ffffff;
}
.sw-ach-row__icon svg {
  width: 16px;
  height: 16px;
}
.sw-ach-row__icon--locked {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #ece9e0;
}

.sw-ach-row__title {
  font-size: 12px;
  line-height: 16px;
}
.sw-ach-row__meta {
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
}
.sw-ach-row.is-locked .sw-ach-row__title {
  color: #9ca3af;
}
/* END Achievements */

/* ============================================================
  Responsive — Profile
============================================================ */
@media (max-width: 991.98px) {
  .sw-prof-banner__strip {
    height: 80px;
  }
  .sw-prof-banner {
    --bs-card-spacer-x: 20px;
  }
  .sw-prof-banner__body {
    gap: 12px;
  }
  .sw-prof-banner__name {
    font-size: 20px;
  }
  .sw-prof-banner__actions {
    gap: 12px;
  }
  .sw-prof-banner__actions > * {
    flex: 1 1 0;
  }
}
/* END responsive */

/* ============================================================
  Profile — loyalty stepper
============================================================ */
.sw-prof-banner__photo--initials {
  width: 80px;
  height: 80px;
  background: linear-gradient(225deg, #6e5ef7 28%, #9c8ff7 100%);
  font-size: 28px;
  letter-spacing: -0.5px;
}

.sw-rc-loy {
  --bs-card-spacer-x: 24px;
}
.sw-rc-loy__head {
  margin-bottom: 30px;
}
.sw-rc-loy__title {
  font-size: 18px;
}
.sw-rc-loy__sub {
  font-size: 12.5px;
  color: #6b7280;
}

.sw-rc-tier::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #6e5df8;
  z-index: 0;
}
.sw-rc-tier:last-child::before {
  display: none;
}
.sw-rc-tier--dashed::before {
  background: none;
  border-top: 3px dashed #d8dbe2;
  height: 0;
}

.sw-rc-tier__badge {
  width: 52px;
  height: 52px;
  color: #fff;
}
.sw-rc-tier__badge svg {
  width: 24px;
  height: 24px;
}
.sw-rc-tier__badge--iron {
  background: #8b93a1;
}
.sw-rc-tier__badge--bronze {
  background: #b5703f;
}
.sw-rc-tier__badge--silver {
  background: #b9c0ca;
}
.sw-rc-tier__badge--gold {
  background: #f5a623;
  box-shadow: 0 0 0 4px #ddd6fb;
}
.sw-rc-tier__badge--locked {
  background: #e9ebf0;
  color: #9ca3af;
}
.sw-rc-tier__check {
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  background: #1f9d57;
}
.sw-rc-tier__check svg {
  width: 10px;
  height: 10px;
}
.sw-rc-tier__name {
  font-size: 13px;
}
.sw-rc-tier__pts {
  font-size: 11px;
  color: #9ca3af;
}

.sw-ach-row__icon--violet {
  background: #ede9fe;
  color: #6e5df8;
}

@media (max-width: 991.98px) {
  .sw-prof-banner__body {
    gap: 10px;
  }
  .sw-prof-banner__photo--initials {
    margin-top: -56px;
  }
  .sw-rc-tier__badge {
    width: 46px;
    height: 46px;
  }
  .sw-rc-tier__badge svg {
    width: 21px;
    height: 21px;
  }
  .sw-rc-tier::before {
    top: 23px;
  }
  .sw-rc-tier__name {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .sw-rc-tier__badge {
    width: 40px;
    height: 40px;
  }
  .sw-rc-tier::before {
    top: 20px;
  }
  .sw-rc-loy {
    --bs-card-spacer-y: 18px;
    --bs-card-spacer-x: 18px;
  }
}

.sw-edit-modal {
  --bs-modal-width: 720px;
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: 18px;
  --bs-modal-padding: 24px;
  --bs-modal-header-padding: 24px 24px 16px;
  --bs-modal-header-border-width: 0;
  --bs-modal-title-line-height: 1.2;
  --bs-modal-footer-gap: 10px;
  --bs-modal-footer-border-color: #e5e8ed;
}
.sw-edit-modal__title {
  color: #0f1020;
}
.sw-edit-modal__subtitle {
  font-size: 13px;
  color: #6b7280;
}
.sw-edit-modal__close {
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  color: #6b7280;
}
.sw-edit-modal__close:hover {
  background: #e7e8ec;
  color: #0f1020;
}
.sw-edit-modal__close svg {
  width: 16px;
  height: 16px;
}
.sw-edit-modal__body {
  padding-top: 4px;
  padding-bottom: 8px;
}

.sw-ef-avatar__pic {
  width: 64px;
  height: 64px;
  background: linear-gradient(225deg, #6e5ef7 28%, #9c8ff7 100%);
  font-size: 22px;
}
.sw-ef-avatar__pic svg {
  width: 30px;
  height: 30px;
}
.sw-ef-avatar__hint {
  font-size: 12px;
  color: #9ca3af;
}
.sw-ef-label {
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #6b7280;
}

.sw-ef-sep {
  border: 0;
  border-top: 1px solid #e5e8ed;
}
.sw-ef-section__sub {
  font-size: 13px;
  color: #6b7280;
}

.sw-edit-modal__foot {
  padding: 11px 19px 17px;
}

@media (max-width: 575.98px) {
  .sw-edit-modal {
    --bs-modal-header-padding: 22px 18px 16px;
  }
  .sw-edit-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .sw-edit-modal__foot {
    padding-left: 13px;
    padding-right: 13px;
  }
  .sw-edit-modal__foot .btn {
    flex: 1;
  }
  .sw-edit-modal .modal-dialog {
    margin: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }
  .sw-edit-modal__content {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }
  .sw-edit-modal__content::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #d6d8de;
    z-index: 2;
  }
  .sw-edit-modal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.28s ease;
  }
  .sw-edit-modal.show .modal-dialog {
    transform: none;
  }
}
