/* صفحه تنظیمات حرفه‌ای */
.settings-pro-page {
  --st-radius: 1.25rem;
  padding-bottom: 2rem;
}

.st-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.35rem;
  border-radius: var(--st-radius);
  background: var(--hero-bg);
  border: var(--hero-border);
  box-shadow: var(--hero-shadow);
  color: var(--hero-fg);
}

.st-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hero-chip-fg);
}

.st-hero h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
}

.st-lead {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--hero-muted);
}

.st-hero-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.16);
}

.st-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.st-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-avatar.is-icon {
  font-size: 1.1rem;
}

.st-hero-user strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.st-hero-user span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  direction: ltr;
  text-align: right;
}

.st-section {
  margin-bottom: 1.35rem;
}

.st-section-head {
  margin-bottom: 0.65rem;
  padding-inline: 0.15rem;
}

.st-section-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.st-section-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.st-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--st-radius);
  padding: 0.35rem 0.85rem;
  box-shadow: 0 10px 28px rgba(15, 20, 40, 0.05);
}

.st-row,
.st-link,
.st-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0.15rem;
  margin: 0;
  cursor: default;
}

.st-toggle {
  cursor: pointer;
}

.st-row-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.st-row-main strong,
.st-link-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.st-row-main em,
.st-link-text em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.12rem;
}

.st-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand);
}

.st-icon--moon { background: rgba(99, 102, 241, 0.14); color: #6366f1; }
.st-icon--palette { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.st-icon--app { background: rgba(16, 185, 129, 0.14); color: #059669; }
.st-icon--sms { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.st-icon--bell { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.st-icon--chart { background: rgba(5, 150, 105, 0.14); color: #047857; }
.st-icon--user { background: rgba(var(--brand-rgb), 0.12); color: var(--brand); }
.st-icon--map { background: rgba(234, 88, 12, 0.14); color: #ea580c; }
.st-icon--order { background: rgba(59, 130, 246, 0.14); color: #2563eb; }
.st-icon--wallet { background: rgba(16, 185, 129, 0.14); color: #059669; }
.st-icon--alert { background: rgba(217, 119, 6, 0.14); color: #d97706; }

.st-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0.15rem;
}

.st-palette-block {
  padding: 0.75rem 0.15rem 0.95rem;
}

.st-swatches {
  padding-inline-start: 3.35rem;
}

.st-swatches .theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.st-swatches .theme-swatch.is-active {
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.35);
  border-color: #fff;
}

.st-btn-install {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-contrast, #fff);
  white-space: nowrap;
}

.st-btn-install:hover {
  filter: brightness(1.05);
  color: var(--brand-contrast, #fff);
}

.st-notify-form {
  padding-bottom: 0.95rem;
}

.st-btn-save {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  font-weight: 700;
  background: var(--brand);
  color: var(--brand-contrast, #fff);
}

.st-btn-save:hover {
  filter: brightness(1.05);
  color: var(--brand-contrast, #fff);
}

.st-links {
  padding: 0.25rem 0.55rem;
}

.st-link {
  text-decoration: none !important;
  color: inherit;
  border-radius: 0.85rem;
  padding-inline: 0.35rem;
  transition: background 0.2s ease;
}

.st-link:hover {
  background: rgba(var(--brand-rgb), 0.06);
}

.st-link-text {
  flex: 1;
  min-width: 0;
}

.st-chevron {
  color: var(--muted);
  font-size: 0.85rem;
}

.st-danger {
  padding-bottom: 1rem;
}

.st-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--st-radius);
  border: 1px solid rgba(234, 76, 98, 0.28);
  background: rgba(234, 76, 98, 0.08);
  color: #e11d48;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.st-logout:hover {
  background: rgba(234, 76, 98, 0.14);
  border-color: rgba(234, 76, 98, 0.4);
  color: #be123c;
}

.settings-pro-page .form-check-input {
  width: 2.6rem;
  height: 1.35rem;
  cursor: pointer;
}

.settings-pro-page .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

html[theme-color="dark"] .st-card {
  background: var(--card);
  border-color: var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

html[theme-color="dark"] .st-hero-user {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

html[theme-color="dark"] .st-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

html[theme-color="dark"] .st-icon--moon { color: #a5b4fc; }
html[theme-color="dark"] .st-icon--palette { color: #7dd3fc; }
html[theme-color="dark"] .st-logout {
  background: rgba(234, 76, 98, 0.12);
  border-color: rgba(234, 76, 98, 0.35);
  color: #fb7185;
}

@media (max-width: 575.98px) {
  .st-hero {
    padding: 1.15rem 1.1rem;
  }

  .st-hero h1 {
    font-size: 1.28rem;
  }

  .st-swatches {
    padding-inline-start: 0;
    margin-top: 0.35rem;
  }

  .st-hero-user {
    width: 100%;
  }
}
