:root{
  /* ألوان أساسية للثيمات */
  --svx-green:#1ea97c;         /* أخضر عشبي */
  --svx-green-ink:#05281e;
  --svx-red:#ef4444;           /* أحمر */
  --svx-red-soft:#fee2e2;      /* خلفية فشل/تحذير خفيفة */
  --svx-orange:#f59e0b;        /* برتقالي */
  --svx-orange-soft:#fff1db;   /* خلفية تنبيه خفيفة */
  --svx-ink:#0f172a;           /* نص داكن */
  --svx-white:#ffffff;
  --svx-radius:18px;
  --svx-width:520px;           /* حجم موحّد */
}

@media (max-width:600px){
  :root{ --svx-width: min(94vw, 520px); }
}

/* قاعدة مشتركة لكل النوافذ */
.swal2-popup.svx-swal{
  width: var(--svx-width) !important;
  border-radius: var(--svx-radius) !important;
  padding: 22px 22px 18px !important;
  box-shadow: 0 14px 48px rgba(0,0,0,.25) !important;
  border: 1px solid rgba(15,23,42,.12) !important;
}

/* عنوان ونص */
.swal2-title{
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800 !important;
  letter-spacing: .2px;
  margin: 0 0 6px !important;
}
.swal2-html-container{
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.8;
  margin: 0 0 12px !important;
}

/* أزرار موحدة */
.swal2-actions{
  gap: 10px !important;
  margin-top: 6px !important;
}
.swal2-styled{
  min-width: 120px;
  border-radius: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  padding: 10px 14px !important;
  line-height: 1 !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.swal2-styled:active{ transform: translateY(1px); }

/* — النجاح — خلفية خضراء عشبية وأزرار متباينة */
.swal2-popup.svx-success{
  background: var(--svx-green);
  color: var(--svx-white);
}
.swal2-popup.svx-success .swal2-title,
.swal2-popup.svx-success .swal2-html-container{ color: var(--svx-white); }
.swal2-popup.svx-success .swal2-styled.swal2-confirm{
  background: #0e8b63 !important; color: #eafff7 !important; border:0;
}
.swal2-popup.svx-success .swal2-styled.swal2-cancel{
  background: #ef4a4a !important; color: white !important; border:0;
}

/* — الفشل والتحذير — خلفية حمراء خفيفة، نفس الأزرار */
.swal2-popup.svx-danger,
.swal2-popup.svx-warning-red{
  background: var(--svx-red-soft);
  color: var(--svx-ink);
}
.swal2-popup.svx-danger .swal2-title,
.swal2-popup.svx-warning-red .swal2-title{ color: #7f1d1d; }
.swal2-popup.svx-danger .swal2-styled.swal2-confirm,
.swal2-popup.svx-warning-red .swal2-styled.swal2-confirm{
  background: var(--svx-red) !important; color: #fff !important; border:0;
}
.swal2-popup.svx-danger .swal2-styled.swal2-cancel,
.swal2-popup.svx-warning-red .swal2-styled.swal2-cancel{
  background: #fee !important; color: #7f1d1d !important; border:1px solid #fecaca !important;
}

/* — التنبيه (إشعار برتقالي خفيف) — */
.swal2-popup.svx-notice{
  background: var(--svx-orange-soft);
  color: var(--svx-ink);
}
.swal2-popup.svx-notice .swal2-title{ color: #7a4b00; }
.swal2-popup.svx-notice .swal2-styled.swal2-confirm{
  background: var(--svx-orange) !important; color: #fff !important; border:0;
}
.swal2-popup.svx-notice .swal2-styled.swal2-cancel{
  background: #fff7ea !important; color: #7a4b00 !important; border:1px solid #ffe0b2 !important;
}

/* الأيقونة (اختياري تحسين الحجم) */
.swal2-icon{ transform: scale(0.92); }
