.user-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.profile-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 100%);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
}

.user-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-email {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.profile-content {
    padding: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.buttons-container {
    margin-top: 30px;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-align: center;
}

.btn-change-password {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-delete-account {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    display: none;
}

.form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-form {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-form-submit {
    background: #667eea;
    color: white;
}

.btn-form-cancel {
    background: #f1f3f5;
    color: #666;
}

.confirmation-message {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.confirmation-text {
    margin-bottom: 20px;
    line-height: 1.5;
    color: #666;
}

/* МОДАЛЬНЫЕ ОКНА - адаптация под ваш дизайн */
.modal-overlay {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;        /* ✅ Как у profile-container */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* ✅ Ваш стиль */
  overflow: hidden;           /* ✅ Как у profile-container */
  max-width: 500px;           /* ✅ max-width вашего контейнера */
  max-height: 90vh;
  margin: 0 auto;
  animation: modalSlideIn 0.3s ease-out;
}

/* Анимация появления (ваш стиль градиентов) */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Блюр профиля (с вашим transition) */
.profile-container.blur {
  opacity: 0.6;
  transition: all 0.3s ease; /* ✅ Ваш transition стиль */
}

/* Формы внутри модалок - ВАШИ стили без изменений */
.modal-content .form-section,
.modal-content .confirmation-message {
  padding: 30px;              /* ✅ Ваш padding */
  display: block !important;  /* ✅ Показываем в модалке */
}

/* Заголовки форм - ваш стиль */
.modal-content .form-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* Текст подтверждения - ваш стиль */
.modal-content .confirmation-text {
  margin-bottom: 20px;
  line-height: 1.5;
  color: #666;
}

/* Кнопки форм - ВАШИ стили */
.modal-content .form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-content .btn-form {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease; /* ✅ Ваш transition */
  text-align: center;
}

.modal-content .btn-form-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* ✅ Ваш градиент */
  color: white;
}

.modal-content .btn-form-submit:hover {
  transform: translateY(-2px);  /* ✅ Ваш hover эффект */
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modal-content .btn-form-cancel {
  background: #f1f3f5;
  color: #666;
}

.modal-content .btn-form-cancel:hover {
  background: #e9ecef;
}

/* Кнопка удаления - ваш красный градиент */
#confirm-delete-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important; /* ✅ Ваш стиль */
}

#confirm-delete-btn:hover {
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4) !important;
}


@media (max-width: 480px) {

    .profile-container,
    .form-section,
    .confirmation-message {
        border-radius: 15px;
    }

    .profile-header {
        padding: 25px 15px;
    }

    .profile-content {
        padding: 20px;
    }

    .user-name {
        font-size: 20px;
    }

    .btn,
    .btn-form {
        padding: 12px;
        font-size: 15px;
    }

    .form-section,
    .confirmation-message {
        padding: 20px;
    }
}