/* پروفایل — سازگار با تم روشن/تاریک */
.profile-pro-page {
  padding-bottom: 2rem;
}

.profile-pro-hero {
  border-radius: 1.25rem;
  padding: 1.4rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  background: var(--hero-bg);
  color: var(--hero-fg);
  border: var(--hero-border);
  box-shadow: var(--hero-shadow);
  position: relative;
  overflow: hidden;
}

.profile-pro-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 4px;
  background: var(--hero-accent, var(--brand));
  border-radius: 4px 0 0 4px;
}

.profile-pro-hero > * {
  position: relative;
  z-index: 1;
}

.profile-pro-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(var(--brand-rgb), 0.35);
  flex-shrink: 0;
  background: rgba(var(--brand-rgb), 0.12);
}

.profile-pro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-pro-avatar.is-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--brand);
  font-size: 1.8rem;
}

.profile-pro-avatar.is-icon img {
  display: none;
}

.profile-pro-hero h5 {
  margin: 0 0 0.2rem;
  color: var(--hero-fg, var(--text));
  font-weight: 800;
}

.profile-pro-hero .small,
.profile-pro-hero .opacity-75,
.profile-pro-hero .opacity-85 {
  color: var(--hero-muted, var(--muted)) !important;
  opacity: 1 !important;
}

.profile-pro-hero .btn-light {
  background: var(--card) !important;
  border: 1px solid rgba(var(--brand-rgb), 0.25) !important;
  color: var(--brand) !important;
}

.profile-pro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.profile-pro-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.85rem 0.7rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 15, 40, 0.05);
  color: var(--text);
}

.profile-pro-stat strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.profile-pro-stat span {
  font-size: 0.72rem;
  color: var(--muted);
}

.profile-pro-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 20px rgba(15, 15, 40, 0.05);
  margin-bottom: 0.85rem;
  color: var(--text);
}

.profile-pro-card h6 {
  color: var(--text);
  font-weight: 800;
}

.profile-pro-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-pro-link:last-child {
  border-bottom: 0;
}

.profile-pro-link:hover {
  color: var(--brand);
}

.profile-pro-link .title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-pro-link .title i {
  width: 34px;
  height: 34px;
  border-radius: 0.7rem;
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-pro-link .text-muted,
.profile-pro-card .text-muted {
  color: var(--muted) !important;
}

.profile-pro-card .btn-outline-primary {
  border-color: rgba(var(--brand-rgb), 0.35);
  color: var(--brand);
}

.profile-pro-card .btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.profile-edit-card,
.address-manage-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #eef0f5);
  border-radius: 1.1rem;
  padding: 1.1rem;
  box-shadow: 0 8px 22px rgba(15, 15, 40, 0.05);
  color: var(--text);
}

.address-manage-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-edit-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

html[theme-color="dark"] .profile-pro-stat,
html[theme-color="dark"] .profile-pro-card,
html[theme-color="dark"] .profile-edit-card,
html[theme-color="dark"] .address-manage-card {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

html[theme-color="dark"] .profile-pro-avatar.is-icon {
  background: rgba(var(--brand-rgb), 0.22);
  color: #c7d2fe;
}

html[theme-color="dark"] .profile-pro-link .title i {
  background: rgba(var(--brand-rgb), 0.2);
}
