/* ============================
   PROFILE MODAL — YOUR THEME
   Primary: #318fe3
   Gray:    #a3a3a3
   ============================ */

#profileModal,
#profileModal * {
  font-family: "Vazirmatn", sans-serif !important;
}

#profileModal .modal-content {
  background: #fff;
}

/* Header look */
#profileModal .profile-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(
    135deg,
    rgba(49, 143, 227, 0.12),
    rgba(163, 163, 163, 0.1)
  );
}

/* Body: full height, scroll when needed */
#profileModal .profile-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;

  background: radial-gradient(
      900px 450px at 18% 12%,
      rgba(49, 143, 227, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 450px at 85% 20%,
      rgba(163, 163, 163, 0.12),
      transparent 60%
    ),
    #fff;
}

/* Card */
#profileModal .profile-card {
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
}

/* Section title accent */
#profileModal .profile-card-title {
  position: relative;
  padding-right: 12px;
}
#profileModal .profile-card-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #318fe3;
}

/* Badges */
#profileModal .profile-badge-editable {
  background: rgba(49, 143, 227, 0.1) !important;
  color: #318fe3 !important;
  border: 1px solid rgba(49, 143, 227, 0.25) !important;
}

#profileModal .profile-badge-readonly {
  background: rgba(163, 163, 163, 0.16) !important;
  color: rgba(0, 0, 0, 0.65) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Inputs */
#profileModal .profile-input {
  border-radius: 5px !important;
  border: 1px solid rgba(163, 163, 163, 0.6) !important;
  box-shadow: none !important;
}

#profileModal .profile-input:focus {
  border-color: rgba(49, 143, 227, 0.85) !important;
  box-shadow: 0 0 0 4px rgba(49, 143, 227, 0.18) !important;
}

/* Readonly style */
#profileModal input[readonly],
#profileModal textarea[readonly] {
  background: rgba(163, 163, 163, 0.12) !important;
  border-color: rgba(163, 163, 163, 0.35) !important;
  color: rgba(0, 0, 0, 0.7) !important;
}

/* Eye button */
#profileModal .profile-eye-btn {
  border-radius: 5px !important;
  border: 1px solid rgba(163, 163, 163, 0.6) !important;
  background: #fff !important;
}

/* Footer */
#profileModal .profile-modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

/* Save button (your blue) */
#profileModal .profile-save-btn {
  background: #318fe3;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 16px;
  box-shadow: 0 12px 24px rgba(49, 143, 227, 0.22);
  transition: 0.2s ease;
}
#profileModal .profile-save-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

/* Avatar */
#profileModal .profile-avatar-wrap {
  width: 64px;
  height: 64px;
  position: relative;
}

#profileModal .profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 0 0 4px rgba(49, 143, 227, 0.16);
}

#profileModal .profile-avatar-edit {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #318fe3;
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 12px 18px rgba(49, 143, 227, 0.22);
}

/* Scrollbar (optional) */
#profileModal .profile-modal-body::-webkit-scrollbar {
  width: 10px;
}
#profileModal .profile-modal-body::-webkit-scrollbar-thumb {
  background: rgba(163, 163, 163, 0.65);
  border-radius: 10px;
}
