.dialog-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(10, 5, 8, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10005;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}


.dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dialog-modal {
  width: 420px;
  max-width: 92vw;
  background: linear-gradient(165deg, #FFFFFF 0%, #FDF8FA 60%, #FAF0F5 100%);
  border-radius: 28px;
  padding: 40px 32px 32px;
  position: relative;
  box-shadow:
    0 32px 64px rgba(138, 21, 81, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(138, 21, 81, 0.1);
  transform: translateY(24px) scale(0.94);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-align: center;
}

.dialog-overlay.active .dialog-modal {
  transform: translateY(0) scale(1);
}

.dialog-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(138, 21, 81, 0.05);
  border: 1px solid rgba(138, 21, 81, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-primary);
  z-index: 10;
}

.dialog-close-btn:hover {
  background: rgba(138, 21, 81, 0.12);
  transform: rotate(90deg);
}

.dialog-close-btn svg {
  width: 16px;
  height: 16px;
}

.dialog-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.dialog-icon-circle svg {
  width: 32px;
  height: 32px;
  color: white;
}

.dialog-icon-circle.success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35) !important;
}

.dialog-icon-circle.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35) !important;
}

.dialog-icon-circle.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35) !important;
}

.dialog-icon-circle.info {
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35) !important;
}

.dialog-icon-circle.logout {
  background: linear-gradient(135deg, #8a1551, #4c082b) !important;
  box-shadow: 0 10px 28px rgba(138, 21, 81, 0.35) !important;
}

.dialog-header h2 {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 10px !important;
  line-height: 1.35 !important;
}

.dialog-header p {
  font-size: 14.5px !important;
  color: #334155 !important;
  line-height: 1.65 !important;
  max-width: 340px !important;
  margin: 0 auto 24px !important;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
}

.dialog-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialog-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif !important;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.dialog-confirm-btn {
  background: linear-gradient(135deg, #8a1551, #5c0d35);
  color: white !important;
  box-shadow: 0 6px 20px rgba(138, 21, 81, 0.3);
}

.dialog-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(138, 21, 81, 0.4);
}

.dialog-confirm-btn.success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3) !important;
  color: white !important;
}

.dialog-confirm-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3) !important;
  color: white !important;
}

.dialog-cancel-btn {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}

.dialog-cancel-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

@media (max-width: 480px) {
  .dialog-modal {
    padding: 32px 24px 24px;
  }
}