/* =========================================================
  ScanWIN Admin · Profile 
========================= */
.sw-prof-hero {
  padding: 22px 24px;
  margin-bottom: 18px;
}
.sw-prof-hero__id {
  gap: 18px;
  min-width: 0;
}
.sw-prof-av {
  width: 76px;
  height: 76px;
  background: #f1eefe;
  color: var(--sw-violet);
  font-size: 26px;
  letter-spacing: 0.5px;
}
.sw-prof-hero__txt {
  min-width: 0;
}
.sw-prof-name {
  gap: 12px;
}

.sw-prof-name h1 {
  font-size: 24px;
  line-height: 1.1;
}
.sw-prof-sub {
  font-size: 14px;
}

.sw-prof-pill,
.sw-chip,
.sw-sec-pill {
  --bs-badge-padding-x: 10px;
  --bs-badge-padding-y: 4px;
  --bs-badge-font-size: 11px;
  letter-spacing: 0.04em;
  line-height: var(--bs-body-line-height);
}
.sw-prof-pill {
  --bs-badge-border-radius: 6px;
}
.sw-chip {
  --bs-badge-padding-x: 11px;
}

.sw-prof-pill--role {
  background: #ede9fe;
  --bs-badge-color: #6e5df8;
}
.sw-chip--tier {
  background: #f8e9cf;
  --bs-badge-color: #c7800d;
}
.sw-chip--streak {
  background: #dcfce7;
  --bs-badge-color: #16a34a;
}

.sw-prof-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sw-prof-card__head {
  --bs-card-cap-bg: transparent;
  --bs-card-cap-padding-y: 16px;
  --bs-card-cap-padding-x: 20px;
  border-bottom-color: #f0f1f4;
}
.sw-prof-card__head h2 {
  font-size: 17px;
}

.sw-pinfo {
  --bs-list-group-item-padding-x: 20px;
  --bs-list-group-item-padding-y: 14px;
  --bs-list-group-border-color: #f3f4f6;
  --bs-list-group-bg: transparent;
}
.sw-pinfo__label {
  font-size: 12.5px;
}

.sw-pinfo__val {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.sw-sec {
  --bs-list-group-item-padding-x: 20px;
  --bs-list-group-item-padding-y: 15px;
  --bs-list-group-border-color: #f3f4f6;
  --bs-list-group-bg: transparent;
}
.sw-sec__row {
  gap: 14px;
}
.sw-sec__v {
  min-width: 0;
}
.sw-sec__title {
  font-size: 14.5px;
}
.sw-sec__desc {
  font-size: 13px;
  margin: 2px 0 0;
}
.sw-sec-pill {
  --bs-badge-padding-y: 3px;
}
.sw-sec-pill--active {
  background: #dcfce7;
  --bs-badge-color: #16a34a;
}

.sw-prof-card__link,
.sw-sec__link {
  --bs-btn-padding-x: 0;
  --bs-btn-padding-y: 0;
  --bs-btn-border-width: 0;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 600;
}
.sw-prof-card__link,
.sw-sec__link--change {
  --bs-btn-color: var(--sw-violet);
  --bs-btn-hover-color: var(--sw-violet);
  --bs-btn-active-color: var(--sw-violet);
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
}
.sw-sec__link--danger {
  --bs-btn-color: #dc2626;
  --bs-btn-hover-color: #dc2626;
  --bs-btn-active-color: #dc2626;
  --bs-btn-focus-shadow-rgb: 220, 38, 38;
}

.sw-sec__signout-all {
  --bs-list-group-color: #dc2626;
  --bs-list-group-action-color: #dc2626;
  --bs-list-group-action-hover-color: #dc2626;
  --bs-list-group-action-hover-bg: #fef2f2;
  --bs-list-group-action-active-color: #dc2626;
  --bs-list-group-action-active-bg: #fef2f2;
  --bs-list-group-item-padding-x: 15px;
  font-size: 14px;
}
.sw-sec__signout-all svg {
  width: 15px;
  height: 15px;
}

#twoFactorModal {
  --bs-modal-width: 440px;
}
.sw-modal__icon--brand {
  background: #f1eefe;
  color: var(--sw-violet);
}
.sw-otp {
  max-width: 336px;
}
/* .text-center moved to markup; the fixed OTP-box geometry + off-scale type
   stay (the rule must survive for these anyway). */
.sw-otp__box {
  width: 48px;
  height: 52px;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  border-radius: 10px;
}
.sw-otp__box:focus {
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}
.sw-otp__meta {
  font-size: 13px;
}
.sw-otp__resend {
  --bs-btn-color: var(--sw-violet);
  --bs-btn-hover-color: var(--sw-violet-600);
  --bs-btn-active-color: var(--sw-violet-600);
  --bs-btn-border-width: 0;
  --bs-btn-focus-shadow-rgb: 110, 93, 248;
  font-weight: 600;
}

/* =========================
  Responsive
========================= */
@media (max-width: 991.98px) {
  .sw-prof-row {
    grid-template-columns: 1fr;
  }
}
