/* ==========================================================================
   Settings / Profile page — mobile-first premium layout
   ========================================================================== */

.vp-mobile .content.settings-content-host {
  padding: 0 !important;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0)) !important;
  background: #f4f7fb;
}

.stg {
  --stg-navy: #0f172a;
  --stg-gold: #c8a96b;
  --stg-muted: #64748b;
  --stg-border: #e6ecf2;
  --stg-card: #ffffff;
  --stg-bg: #f4f7fb;
  --stg-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --stg-r: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 20px;
  font-family: Vazirmatn, inherit;
}

/* ---------- Profile hero ---------- */
.stg-hero {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3354 55%, #253858 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  position: relative;
  overflow: hidden;
}

.stg-hero--compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stg-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -24px -24px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 107, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.stg-hero__head {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.stg-hero__avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(200, 169, 107, 0.4);
  color: #f8e9c8;
}

.stg-hero__avatar svg {
  display: block;
  stroke: currentColor;
}

.stg-hero__identity {
  flex: 1;
  min-width: 0;
}

.stg-hero__name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
}

.stg-hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
}

.stg-hero__phone-icon {
  display: inline-flex;
  color: #f8e9c8;
  opacity: 0.9;
}

.stg-hero__phone-icon svg {
  display: block;
  stroke: currentColor;
}

.stg-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}

.stg-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.stg-hero__chip-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #f8e9c8;
}

.stg-hero__chip-icon svg {
  display: block;
  stroke: currentColor;
}

.stg-hero__chip-text {
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.stg-card {
  background: var(--stg-card);
  border: 1px solid var(--stg-border);
  border-radius: var(--stg-r);
  padding: 16px;
  box-shadow: var(--stg-shadow);
}

.stg-card__hint {
  margin: -4px 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--stg-muted);
}

.stg-telegram-guide {
  margin-top: 4px;
}

.stg-telegram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.stg-telegram-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: var(--stg-navy, #0f172a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.stg-telegram-save:disabled,
.stg-telegram-test:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stg-telegram-test {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--stg-border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--stg-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.stg-card--telegram .stg-section__head {
  margin-bottom: 8px;
}

.stg-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.stg-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(200, 169, 107, 0.14));
  color: var(--stg-navy);
  flex-shrink: 0;
}

.stg-section__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--stg-navy);
}

/* ---------- Form fields ---------- */
.stg-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stg-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stg-fields--pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .stg-fields--pair {
    grid-template-columns: 1fr 1fr;
  }

  .stg-fields--pair .stg-field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.stg-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--stg-muted);
}

.stg-field__hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--stg-muted);
}

.stg-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--stg-border);
  background: #f8fafc;
  color: var(--stg-navy);
  font-family: Vazirmatn, inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.stg-input:focus {
  outline: none;
  border-color: rgba(200, 169, 107, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.15);
}

.stg-input--area {
  min-height: 72px;
  resize: vertical;
}

/* ---------- Toggle rows ---------- */
.stg-toggles {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--stg-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fafbfd;
}

.stg-toggles--compact {
  margin-top: 12px;
}

.stg-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--stg-border);
}

.stg-toggle:last-child {
  border-bottom: 0;
}

.stg-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stg-toggle__text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--stg-navy);
  line-height: 1.35;
}

.stg-toggle__text span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--stg-muted);
}

.stg-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.stg-toggle__track {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s;
}

.stg-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s;
}

.stg-toggle__input:checked + .stg-toggle__track {
  background: linear-gradient(135deg, #0f172a, #253858);
}

.stg-toggle__input:checked + .stg-toggle__track::after {
  transform: translateX(-18px);
}

/* ---------- Save button ---------- */
.stg-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #253858);
  color: #fff;
  font-family: Vazirmatn, inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}

.stg-save:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

/* ---------- Resident payment card ---------- */
.stg-payment-building {
  margin: -4px 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--stg-navy);
}

.stg-payment-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stg-pay-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--stg-border);
}

.stg-pay-row__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--stg-muted);
}

.stg-pay-row__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stg-pay-row__value code,
.stg-pay-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--stg-navy);
  word-break: break-all;
}

.stg-pay-num--iban {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  word-break: keep-all;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stg-pay-row--iban .stg-pay-row__value {
  align-items: flex-start;
}

.stg-copy {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stg-border);
  border-radius: 10px;
  background: #fff;
  color: var(--stg-navy);
  cursor: pointer;
}

.stg-copy:active {
  background: #f1f5f9;
}

.stg-payment-note {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(200, 169, 107, 0.1);
  border: 1px dashed rgba(200, 169, 107, 0.45);
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
}

/* ---------- Quick payment accordion ---------- */
.stg-card--payment.stg-accordion {
  padding: 0;
  overflow: hidden;
}

.stg-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  font-family: Vazirmatn, inherit;
  cursor: pointer;
  text-align: right;
}

.stg-accordion__leading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stg-accordion__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--stg-navy);
}

.stg-accordion__chev {
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stg-muted);
  transition: transform 0.2s ease;
}

.stg-accordion.is-open .stg-accordion__chev {
  transform: rotate(180deg);
}

.stg-accordion__panel {
  padding: 0 16px 16px;
}

.stg-accordion__panel[hidden] {
  display: none;
}

.stg-quick-pay-form {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--stg-border);
}

.stg-quick-pay-form__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.stg-quick-pay-form__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(200, 169, 107, 0.22));
  color: var(--stg-navy);
}

.stg-quick-pay-form__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--stg-navy);
}

.stg-quick-pay-form__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--stg-muted);
}

.stg-quick-pay-form__fields {
  gap: 10px;
}

.stg-receipt-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px dashed rgba(15, 23, 42, 0.18);
  background: #fff;
  color: var(--stg-navy);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.stg-receipt-picker:hover {
  border-color: rgba(15, 23, 42, 0.35);
  background: #f8fafc;
}

.stg-receipt-picker.is-invalid {
  border-color: #dc2626;
  border-style: solid;
  background: rgba(239, 68, 68, 0.05);
}

.stg-field__error {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #dc2626;
}

.stg-receipt-picker__icon {
  display: inline-flex;
  color: var(--stg-muted);
}

.stg-receipt-picker__text {
  font-size: 12px;
  font-weight: 600;
  word-break: break-all;
  text-align: center;
}

.stg-receipt-picker__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.stg-payment-note--warn {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

.stg-save--compact {
  margin-top: 12px;
  min-height: 42px;
  font-size: 13px;
}

.stg-save.is-loading {
  cursor: wait;
  opacity: 0.95;
}

.stg-save__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: stg-spin 0.75s linear infinite;
  flex-shrink: 0;
}

.stg-quick-pay-form.is-submitting .stg-fields {
  opacity: 0.72;
}

.stg-quick-pay-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 14px 13px;
  border-radius: 14px;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 48%, #f8fafc 100%);
  border: 1px solid #93c5fd;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
  color: #1e3a8a;
  font-family: Vazirmatn, inherit;
  -webkit-font-smoothing: antialiased;
}

.stg-quick-pay-status[hidden] {
  display: none !important;
}

.stg-quick-pay-status__icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: #2563eb;
}

.stg-quick-pay-status__ring {
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 2px solid rgba(37, 99, 235, 0.2);
  animation: stg-quick-pay-pulse 1.6s ease-out infinite;
}

.stg-quick-pay-status__spinner {
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-top-color: #2563eb;
  border-right-color: rgba(37, 99, 235, 0.25);
  border-radius: 50%;
  animation: stg-spin 0.9s linear infinite;
}

.stg-quick-pay-status__body {
  min-width: 0;
  flex: 1;
}

.stg-quick-pay-status__title {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: #1e40af;
}

.stg-quick-pay-status__text {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: #64748b;
}

.stg-quick-pay-status__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.stg-quick-pay-status__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
  animation: stg-quick-pay-dot 1.2s ease-in-out infinite;
}

.stg-quick-pay-status__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.stg-quick-pay-status__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes stg-quick-pay-pulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  70% { transform: scale(1.06); opacity: 0; }
  100% { transform: scale(1.06); opacity: 0; }
}

@keyframes stg-quick-pay-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@keyframes stg-spin {
  to { transform: rotate(360deg); }
}

.stg-quick-pay-pending {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(224, 138, 0, 0.08);
  border: 1px solid rgba(224, 138, 0, 0.25);
}

.stg-quick-pay-pending__icon {
  flex-shrink: 0;
  color: #b45309;
}

.stg-quick-pay-pending__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--stg-navy);
}

.stg-quick-pay-pending__amount {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #b45309;
}

.stg-quick-pay-pending__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--stg-muted);
}

.stg-quick-pay-result {
  margin-top: 12px;
}

.stg-quick-pay-result__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--stg-navy);
}

.stg-quick-pay-result__body .pay-blu-card {
  margin: 0;
}

.stg-quick-pay-result .pay-blu-card--compact {
  padding: 10px;
  border-radius: 12px;
  box-shadow: none;
}

.stg-quick-pay-result .pay-blu-card__compact-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #1d4ed8;
}

.stg-quick-pay-result .pay-blu-card--matched .pay-blu-card__compact-head {
  color: #15803d;
}

.stg-quick-pay-result .pay-blu-card__compact-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.stg-quick-pay-result .pay-blu-card__compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.stg-quick-pay-result .pay-blu-card__row {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.stg-quick-pay-result .pay-blu-card__label {
  font-size: 0.65rem;
}

.stg-quick-pay-result .pay-blu-card__value {
  font-size: 0.78rem;
  line-height: 1.35;
}

.stg-quick-pay-result .pay-blu-card--info,
.stg-quick-pay-result .pay-blu-card--warn {
  padding: 10px;
  font-size: 0.8rem;
  border-radius: 12px;
  box-shadow: none;
}

.stg-quick-pay-result .pay-blu-card__info-body {
  padding-right: 0;
}

.stg-quick-pay-result__foot {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--stg-muted);
}

.stg-quick-pay-report {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stg-border);
  background: #f8fafc;
}

.stg-quick-pay-report__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--stg-muted);
}

.stg-quick-pay-report__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--stg-navy);
}

.stg-quick-pay-report__amount {
  font-weight: 800;
}

.stg-quick-pay-report__dot {
  color: #94a3b8;
  font-weight: 700;
}

.stg-quick-pay-report__status {
  font-weight: 600;
}

.stg-quick-pay-report__date {
  font-size: 12px;
  color: var(--stg-muted);
}

.stg-quick-pay-report__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--stg-muted);
}

.stg-quick-pay-report__tracking {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--stg-border);
  font-variant-numeric: tabular-nums;
}

.stg-quick-pay-report__verify {
  font-weight: 600;
}

.stg-quick-pay-report__blu {
  padding: 2px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-weight: 700;
}

/* ---------- Notifications ---------- */
.stg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-family: Vazirmatn, inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.stg-btn--primary {
  background: var(--stg-navy);
  border-color: var(--stg-navy);
  color: #fff;
}

.stg-btn--ghost {
  background: #fff;
  border-color: var(--stg-border);
  color: var(--stg-navy);
}

/* ---------- Role switch (settings context) ---------- */
.stg-card--role {
  padding: 14px;
}

.stg-role-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.stg-role-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(200, 169, 107, 0.2));
  color: var(--stg-navy);
}

.stg-role-head__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--stg-navy);
}

.stg-role-head__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--stg-muted);
}

.rs-panels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-panels.is-switching {
  opacity: 0.72;
  pointer-events: none;
}

.rs-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--stg-border);
  background: #f8fafc;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.1s;
  font-family: Vazirmatn, inherit;
}

.rs-panel:not(.is-active):hover {
  border-color: rgba(200, 169, 107, 0.55);
  background: #fffdf8;
}

.rs-panel:not(.is-active):active {
  transform: scale(0.99);
}

.rs-panel.is-active {
  border-color: rgba(200, 169, 107, 0.7);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(200, 169, 107, 0.12));
  box-shadow: inset 0 0 0 1px rgba(200, 169, 107, 0.15);
  cursor: default;
}

.rs-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--stg-border);
  color: var(--stg-navy);
}

.rs-panel.is-active .rs-panel__icon {
  background: linear-gradient(135deg, #0f172a, #253858);
  border-color: transparent;
  color: #fff;
}

.rs-panel__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.rs-panel__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--stg-navy);
  line-height: 1.3;
}

.rs-panel__desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--stg-muted);
}

.rs-panel__status {
  flex-shrink: 0;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--stg-muted);
  background: #fff;
  border: 1px solid var(--stg-border);
  white-space: nowrap;
}

.rs-panel__status--active {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.rs-panel:not(.is-active) .rs-panel__status {
  color: var(--stg-navy);
  border-color: rgba(200, 169, 107, 0.45);
  background: rgba(200, 169, 107, 0.1);
}

.stg-card--role .role-switch {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.stg-card--role .role-switch__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stg-card--role .role-switch__btn {
  min-width: 0;
  min-height: 44px;
  border-radius: 12px;
  font-size: 13px;
}

/* ---------- Profile edit ---------- */
.stg-card--profile.stg-accordion {
  padding: 0;
}

.stg-accordion__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.stg-accordion__subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--stg-muted);
  line-height: 1.45;
}

.stg-accordion__panel--profile {
  padding: 0 16px 16px;
}

.stg-card--profile {
  border: 1px solid rgba(200, 169, 107, 0.28);
  background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
  overflow: hidden;
}

.stg-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stg-border);
}

.stg-profile-head__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(200, 169, 107, 0.22));
  color: var(--stg-navy);
}

.stg-profile-head__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--stg-navy);
}

.stg-profile-head__hint {
  margin: 0;
  font-size: 12px;
  color: var(--stg-muted);
  line-height: 1.45;
}

.stg-profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stg-input--readonly {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.stg-profile-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.16);
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.stg-profile-notice__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #3b82f6;
}

.stg-profile-password {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--stg-border);
}

.stg-profile-password__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stg-profile-password__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(200, 169, 107, 0.22));
  color: var(--stg-navy);
}

.stg-profile-password__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--stg-navy);
}

.stg-profile-password__hint {
  margin: 0;
  font-size: 11px;
  color: var(--stg-muted);
  line-height: 1.45;
}

.stg-profile-password__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stg-save--profile {
  margin-top: 4px;
}

.stg-pay-history {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stg-border, #e2e8f0);
}

.stg-pay-history__title {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: var(--stg-navy);
}

.stg-pay-history__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stg-pay-history__row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--stg-border, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
}

.stg-pay-history__row .pay-blu-card {
  width: 100%;
}

.stg-pay-history__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stg-pay-history__amount {
  font-weight: 700;
  color: var(--stg-navy);
}

.stg-pay-history__date {
  font-size: 11px;
  color: var(--stg-muted);
}

.stg-pay-history__tracking {
  font-size: 11px;
  color: var(--stg-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stg-pay-history__blu {
  margin: 0.35rem 0 0;
  font-size: 11px;
  color: #166534;
}

.stg-pay-history__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
