.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease; /* نرم‌تر کردن تغییر شفافیت */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.profile-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 320px;
  height: 0;
  background: rgba(var(--theme-color-rgb), 0.95);
  z-index: 1002;
  overflow: hidden;
  transition: height 0.6s ease; /* نرم‌تر کردن تغییر ارتفاع */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.profile-panel.active {
  height: 70vh;
}

.profile-panel-content {
  width: 100%;
  padding: 25px;
  color: var(--text-color);
  overflow-y: auto;
  max-height: 70vh;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border-radius: 20px 20px 0 0;
  transition: background 0.4s ease; /* نرم‌تر کردن تغییر پس‌زمینه */
}

.close-profile-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(var(--text-color-rgb), 0.2);
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s ease; /* نرم‌تر کردن تغییرات */
}

.close-profile-btn:hover {
  background: var(--theme-color-adjusted-10);
  transform: scale(1.05); /* افکت مقیاس برای نرمی */
}

.close-profile-btn i {
  font-size: 1.4rem;
  color: var(--text-color);
  transition: color 0.4s ease; /* نرم‌تر کردن تغییر رنگ */
}

.profile-panel-content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 15px 0 25px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: color 0.4s ease; /* نرم‌تر کردن تغییر رنگ */
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-form label {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.4s ease; /* نرم‌تر کردن تغییر رنگ */
}

.profile-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(var(--text-color-rgb), 0.1);
  color: var(--text-color);
  font-size: 1rem;
  font-family: "Vazir", Arial, sans-serif;
  transition: all 0.4s ease; /* نرم‌تر کردن تغییرات */
}

.profile-form input:focus {
  outline: none;
  background: rgba(var(--text-color-rgb), 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--theme-color-adjusted-10);
}

.profile-form input::placeholder {
  color: rgba(var(--text-color-rgb), 0.6);
  transition: color 0.4s ease; /* نرم‌تر کردن تغییر رنگ */
}

.verify-btn,
.register-btn {
  width: 100%;
  padding: 12px;
  background: var(--theme-color);
  color: var(--text-color);
  border: none;
  border-radius: 25px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s ease; /* نرم‌تر کردن تغییرات */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.verify-btn:hover,
.register-btn:hover {
  background: var(--theme-color-adjusted-10);
  transform: translateY(-2px); /* افکت بالا آمدن برای نرمی */
}

.verify-btn i,
.register-btn i {
  font-size: 1.3rem;
  transition: transform 0.4s ease; /* نرم‌تر کردن تغییر آیکن */
}

.verify-btn:hover i,
.register-btn:hover i {
  transform: scale(1.1); /* افکت بزرگ‌نمایی آیکن */
}

.profile-message {
  text-align: center;
  margin-top: 15px;
  font-size: 1rem;
  color: var(--theme-color-adjusted-10);
  font-weight: 500;
  transition: color 0.4s ease; /* نرم‌تر کردن تغییر رنگ */
}

.profile-panel-content::-webkit-scrollbar {
  width: 8px;
}

.profile-panel-content::-webkit-scrollbar-thumb {
  background: rgba(var(--text-color-rgb), 0.3);
  border-radius: 4px;
  transition: background 0.4s ease; /* نرم‌تر کردن تغییر رنگ */
}

.profile-panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--text-color-rgb), 0.5);
}