.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal[style*="display: flex"] { display: flex !important; }

.modal-content {
  background: var(--bg-color);
  margin: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  border: 1px solid var(--border-color);
}

@keyframes modalSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-color);
}

.modal-header h3 { margin: 0; font-size: 1.1rem; border: none; padding: 0; }

.modal-header--danger {
  background: var(--danger-color);
  color: white;
  border-bottom: none;
}

.modal-close {
  color: var(--text-muted);
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--danger-color); }
.modal-header--danger .modal-close { color: white; }
.modal-header--danger .modal-close:hover { color: #fff; background: rgba(255,255,255,0.2); border-radius: 4px; }

.modal-body { padding: 20px; max-height: 60vh; overflow-y: auto; }
.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--light-color);
}

.user-info-box {
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  background: var(--light-color);
}