/* ── Reset ──────────────────────────────────────────────── */
.misp * { margin: 0; padding: 0; box-sizing: border-box }

/* ── Design Tokens — Light Mode ─────────────────────────── */
.misp {
  --blue:      #36A4D8;
  --pink:      #C6248F;
  --orange:    #F79E20;
  --dark:      #1F1C34;
  --yellow:    #F2C026;
  --lb:        #70C9F2;
  --bg:        #F0F5FA;
  --card:      #FFFFFF;
  --border:    #DDE5EE;
  --text:      #1E293B;
  --dim:       #5A6A7E;
  --muted:     #94A3B8;
  --r:         14px;
  --ease:      all .28s cubic-bezier(.4,0,.2,1);
  --shadow:    0 2px 16px rgba(30,40,60,.09);
  --shadow-lg: 0 8px 36px rgba(30,40,60,.13);

  font-family: 'Segoe UI', 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

/* ── Hero ───────────────────────────────────────────────── */
.misp-hero {
  background: linear-gradient(135deg, #EBF6FD 0%, #FEF9EE 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 85px 24px 44px;
}

.misp-hero h1 {
  font-size: clamp(24px, 4.5vw, 46px); font-weight: 800;
  color: var(--blue); line-height: 1.2; margin-bottom: 12px;
}
.misp-hero h1 span { color: var(--blue) }
.misp-hero p { color: var(--dim); font-size: 16px; margin-bottom: 36px; max-width: 480px; margin-inline: auto }

/* ── Tabs ───────────────────────────────────────────────── */
.misp-tabs-nav {
  display: inline-flex; background: #fff;
  border: 1.5px solid var(--border); border-radius: 50px;
  padding: 5px; gap: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.misp-tab-btn {
  background: transparent; border: none; color: var(--dim);
  font-size: 15px; font-weight: 600; padding: 11px 28px;
  border-radius: 50px; transition: var(--ease); font-family: inherit;
  white-space: nowrap; cursor: pointer;
}
.misp-tab-btn:hover { color: var(--blue); background: rgba(54,164,216,.07) }
.misp-tab-btn.active {
  background: var(--dark); color: #fff;
  box-shadow: 0 4px 16px rgba(31,28,52,.25);
}

/* ── Tab Content ────────────────────────────────────────── */
.misp-tab { display: none; animation: mispIn .32s ease; width: 100%; padding: 28px 24px }
.misp-tab.active { display: block }
@keyframes mispIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: translateY(0) } }

/* ── Cards ──────────────────────────────────────────────── */
.misp-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px 28px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.misp-card-title {
  font-size: 17px; font-weight: 700; color: var(--blue);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.misp-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.misp-sub-note { font-size: 12px; color: var(--muted); margin-right: auto; font-weight: 400 }

/* ── Hall Cards ─────────────────────────────────────────── */
.misp-halls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px }
.misp-hall-card {
  background: #fff; border: 2px solid var(--border);
  border-radius: 12px; padding: 20px; cursor: pointer; transition: var(--ease);
  position: relative; overflow: hidden;
}

.misp-hall-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-lg) }
.misp-hall-card:hover::before, .misp-hall-card.misp-sel::before { opacity: 1 }
.misp-hall-card.misp-sel {
  border-color: var(--blue); background: rgba(54,164,216,.05);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg);
}
.misp-hall-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(54, 164, 216, 0.08);
  color: var(--blue);
  border-radius: 12px;
  margin-bottom: 15px;
  transition: var(--ease);
}
.misp-hall-card:hover .misp-hall-icon {
  background: var(--blue);
  color: #fff;
}
.misp-hall-card h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px }
.misp-hall-meta { display: flex; gap: 7px; flex-wrap: wrap }

/* ── Badge Variants ─────────────────────────────────────── */
.misp-badge-el { font-size: 11px; padding: 3px 10px; border-radius: 50px; font-weight: 600; white-space: nowrap }
.misp-b-blue   { background: rgba(54,164,216,.12); color: var(--blue) }
.misp-b-orange { background: rgba(247,158,32,.15);  color: #B07000 }
.misp-b-pink   { background: rgba(198,36,143,.12);  color: var(--pink) }
.misp-b-red    { background: rgba(239,68,68,.12);   color: #DC2626 }
.misp-b-green  { background: rgba(34,197,94,.12);   color: #16A34A }

/* ── Date Input ─────────────────────────────────────────── */
.misp-date-input {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 13px 16px; color: var(--text);
  font-size: 15px; font-family: inherit;
  outline: none; transition: var(--ease);
  width: 100%; max-width: 280px;
  text-align: end;
}
.misp-date-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(54,164,216,.15) }

/* ── Slots ──────────────────────────────────────────────── */
.misp-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px }
.misp-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim) }
.misp-legend-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0 }

.misp-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 10px }
.misp-slot {
  border-radius: 10px; padding: 14px 8px; text-align: center;
  cursor: pointer; transition: var(--ease); user-select: none;
  border: 1.5px solid var(--border); background: #fff;
}
.misp-slot .st { font-size: 13px; font-weight: 700; color: var(--dark) }
.misp-slot .sl { font-size: 10px; color: var(--muted); margin-top: 3px }

.misp-slot.avail:not(.sl-start):not(.sl-mid):not(.sl-end):hover {
  border-color: var(--blue); background: rgba(54,164,216,.07); transform: translateY(-2px)
}
.misp-slot.booked  { background: rgba(239,68,68,.06); border-color: rgba(239,68,68,.25); cursor: not-allowed; opacity: .7 }
.misp-slot.booked.valid-end { background: rgba(54,164,216,.06); border-color: rgba(54,164,216,.4); cursor: pointer; opacity: 1; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(54,164,216,.1); }
.misp-slot.booked.valid-end .sl { color: var(--blue); font-weight: 700; }
.misp-slot.booked.valid-end:hover { border-color: var(--orange); background: rgba(247,158,32,.07); }
.misp-slot.booked.valid-end:hover .st { color: var(--orange); }
.misp-slot.booked.valid-end:hover .sl { color: var(--orange); }
.misp-slot.booked .sl { color: #DC2626 }
.misp-slot.blk     { opacity: .35; cursor: not-allowed }

.misp-slot.sl-start { background: rgba(54,164,216,.18); border-color: var(--blue); box-shadow: 0 0 0 2px rgba(54,164,216,.28) }
.misp-slot.sl-start .st { color: var(--blue) !important }
.misp-slot.sl-start .sl { color: var(--blue) !important; font-weight: 700 }
.misp-slot.sl-mid   { background: rgba(54,164,216,.09); border-color: rgba(54,164,216,.4) }
.misp-slot.sl-mid .sl { color: var(--blue); font-weight: 600 }
.misp-slot.sl-end   { background: rgba(247,158,32,.18); border-color: var(--orange); box-shadow: 0 0 0 2px rgba(247,158,32,.28) }
.misp-slot.sl-end .st { color: #B07000 !important }
.misp-slot.sl-end .sl { color: var(--orange) !important; font-weight: 700 }

/* 21:00 end-boundary */
.misp-slot-endpt { background: rgba(247,158,32,.05); border-style: dashed; cursor: pointer }
.misp-slot-endpt .sl { color: var(--orange) }
.misp-slot-endpt:hover,
.misp-slot-endpt.sl-endpt-sel { background: rgba(247,158,32,.15); border-color: var(--orange); border-style: solid }
.misp-slot-endpt.sl-endpt-sel .sl { color: var(--orange) !important; font-weight: 700 }

/* ── Slot Guide Bar ─────────────────────────────────────── */
.misp-slot-guide {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(54,164,216,.07); border: 1px solid rgba(54,164,216,.2);
  border-radius: 10px; padding: 11px 16px; margin-bottom: 14px; font-size: 13px;
}
.misp-slot-guide .sg-msg { font-weight: 600; color: var(--blue) }
.misp-slot-guide .sg-reset {
  background: transparent; border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 14px; font-size: 12px; cursor: pointer; color: var(--dim);
  font-family: inherit; transition: var(--ease);
}
.misp-slot-guide .sg-reset:hover { border-color: var(--blue); color: var(--blue) }

/* ── Full-Day Button ────────────────────────────────────── */
.misp-fullday-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap }
.misp-btn-fullday {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 50px; padding: 8px 20px;
  font-size: 13px; font-weight: 600; color: var(--dim);
  cursor: pointer; transition: var(--ease); font-family: inherit;
}
.misp-btn-fullday:hover { border-color: var(--blue); color: var(--blue) }
.misp-btn-fullday.active { background: var(--blue); border-color: var(--blue); color: #fff }

/* ── Loading / Empty ────────────────────────────────────── */
.misp-loading { text-align: center; padding: 32px; color: var(--dim) }
.misp-spinner {
  width: 34px; height: 34px; border: 3px solid var(--border);
  border-top-color: var(--blue); border-radius: 50%;
  animation: mispSpin .75s linear infinite; margin: 0 auto 12px;
}
/* Inside SweetAlert: hardcode the colors so variables are guaranteed to resolve */
.swal2-container .misp-spinner {
  border-color: #DDE5EE;
  border-top-color: #36A4D8;
  border-radius: 0;
}
.swal2-container .misp-loading {
  color: #5A6A7E;
}
@keyframes mispSpin { to { transform: rotate(360deg) } }
.misp-empty { text-align: center; padding: 44px 20px; color: var(--dim) }
.misp-empty-icon { font-size: 40px; margin-bottom: 12px }

/* ── Summary Box ────────────────────────────────────────── */
.misp-summary {
  background: linear-gradient(135deg, rgba(54,164,216,.06), rgba(247,158,32,.06));
  border: 1.5px solid var(--border); border-radius: var(--r); padding: 24px 26px;
}
.misp-summary h3 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 14px }
.misp-srow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.misp-srow:last-of-type { border-bottom: none }
.misp-srow .lbl { color: var(--dim) }
.misp-srow .val { font-weight: 600; color: var(--dark) }
.misp-srow.total .val { font-size: 21px; color: var(--orange); font-weight: 800 }

/* ── Availability Bar (Seats) ───────────────────────────── */
.misp-avail-box {
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 16px 18px; margin-top: 16px;
}
.misp-avail-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-bottom: 8px }
.misp-avail-bg  { background: var(--border); border-radius: 50px; height: 10px; overflow: hidden }
.misp-avail-fill { height: 100%; border-radius: 50px; transition: width .7s ease }
.misp-avail-fill.l { background: linear-gradient(90deg, #36A4D8, #70C9F2) }
.misp-avail-fill.m { background: linear-gradient(90deg, #F2C026, #F79E20) }
.misp-avail-fill.h { background: linear-gradient(90deg, #F37131, #C6248F) }
.misp-avail-fill.f { background: #DC2626 }
.misp-avail-status { font-size: 13px; font-weight: 600; margin-top: 9px }

/* ── Buttons ────────────────────────────────────────────── */
.misp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 32px; border: none; border-radius: 50px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--ease);
  font-family: inherit;
}
.misp-btn-w { width: 100%; margin-top: 18px }
.misp-btn-main {
  background: #F79E20; color: #fff;
  position: relative; overflow: hidden; z-index: 1;
}
.misp-btn-main::before {
  content: ""; position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: #36A4D8;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: inherit;
}
.misp-btn-main:hover::before { left: 0; }
.misp-btn-main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(54, 164, 216, 0.3); }
.misp-btn-dark {
  background: var(--dark); color: #fff;
  box-shadow: 0 4px 18px rgba(31,28,52,.22);
}
.misp-btn-dark:hover { background: #2d2a4a; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(31,28,52,.32) }

/* ── Zone Cards ─────────────────────────────────────────── */
.misp-zones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px }
.misp-zone-card {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--r); padding: 22px; cursor: pointer; transition: var(--ease);
  position: relative; overflow: hidden;
}

.misp-zone-card:hover:not(.misp-zone-full) { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-lg) }
.misp-zone-card:hover:not(.misp-zone-full)::after, .misp-zone-card.misp-sel::after { opacity: 1 }
.misp-zone-card.misp-sel {
  border-color: var(--blue); background: rgba(54,164,216,.05);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg);
}
.misp-zone-card.misp-zone-full { opacity: .65; cursor: not-allowed }
.misp-zone-check {
  position: absolute; top: 14px; left: 14px; width: 22px; height: 22px;
  background: var(--blue); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 11px; color: #fff;
  opacity: 0; transition: var(--ease);
}
.misp-zone-card.misp-sel .misp-zone-check { opacity: 1 }
.misp-zone-hdr    { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px }
.misp-zone-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 15px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.03);
}
.misp-zone-icon svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.misp-zone-icon.misp-mixed {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: var(--blue);
  border-bottom: 3px solid rgba(54, 164, 216, 0.3);
}
.misp-zone-icon.misp-female {
  background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
  color: var(--pink);
  border-bottom: 3px solid rgba(198, 36, 143, 0.3);
}
.misp-zone-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px }

.misp-zone-name   { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 4px }
.misp-zone-desc   { color: var(--dim); font-size: 13px; margin-bottom: 14px }
.misp-cap-lbl  { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-bottom: 6px }
.misp-cap-bg   { background: var(--border); border-radius: 50px; height: 8px; overflow: hidden }
.misp-cap-fill { height: 100%; border-radius: 50px; transition: width .7s ease }
.misp-cap-fill.l { background: linear-gradient(90deg, #36A4D8, #70C9F2) }
.misp-cap-fill.m { background: linear-gradient(90deg, #F2C026, #F79E20) }
.misp-cap-fill.h { background: linear-gradient(90deg, #F37131, #C6248F) }
.misp-cap-fill.f { background: #DC2626 }
.misp-cap-status { font-size: 12px; font-weight: 600; margin-top: 6px }

/* ── User Type Toggle ───────────────────────────────────── */
.misp-utype-toggle {
  display: inline-flex; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 50px; padding: 4px; gap: 4px;
  margin-bottom: 22px;
}
.misp-utype-btn {
  background: transparent; border: none; color: var(--dim);
  font-size: 14px; font-weight: 600; padding: 10px 24px;
  border-radius: 50px; cursor: pointer; transition: var(--ease); font-family: inherit;
}
.misp-utype-btn.active { background: var(--dark); color: #fff; box-shadow: 0 3px 12px rgba(31,28,52,.2) }

/* ── Subscription Cards ─────────────────────────────────── */
.misp-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px }
.misp-sub-card {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--r); padding: 24px 18px; cursor: pointer; transition: var(--ease);
  position: relative; text-align: center;
}
.misp-sub-card.misp-sel {
  border-color: var(--orange); background: rgba(247,158,32,.07);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow-lg);
}
.misp-sub-card:hover:not(.misp-sel) { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-lg) }
.misp-sub-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; margin: 0 auto 14px; transition: var(--ease);
}
.misp-sub-icon svg { width: 30px; height: 30px; stroke-width: 2 }
.misp-sub-icon-orange { background: rgba(247,158,32,.12); color: var(--orange) }
.misp-sub-icon-blue   { background: rgba(54,164,216,.12); color: var(--blue) }
.misp-sub-icon-pink   { background: rgba(198,36,143,.12); color: var(--pink) }
.misp-sub-card:hover .misp-sub-icon   { background: rgba(54,164,216,.09); color: var(--blue); transform: scale(0.95); }
.misp-sub-card.misp-sel .misp-sub-icon { background: rgba(247,158,32,.13); color: var(--orange); transform: scale(0.95); }
.misp-sub-period { font-size: 11px; font-weight: 700; color: var(--dim); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px }
.misp-sub-price  { font-size: 34px; font-weight: 800; color: var(--dark); line-height: 1 }
.misp-sub-price .cur { font-size: 15px; vertical-align: top; margin-top: 6px; display: inline-block; font-weight: 500; color: var(--dim) }
.misp-sub-dur    { font-size: 12px; color: var(--muted); margin-top: 5px }
.misp-sub-feats  { margin-top: 14px; text-align: right; font-size: 12px; color: var(--dim); display: flex; flex-direction: column; gap: 6px; }
.misp-feat-row   { display: flex; align-items: center; gap: 6px; }

/* ── Features Grid ──────────────────────────────────────── */
.misp-feats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px }
.misp-feat {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--dim);
  display: flex; align-items: center; gap: 9px; transition: var(--ease); font-weight: 500;
}
.misp-feat svg { flex-shrink: 0; color: var(--blue); }
.misp-feat:hover { border-color: var(--blue); color: var(--blue); background: rgba(54,164,216,.05); transform: translateY(-1px) }
.misp-feat-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: var(--ease);
}
.misp-feat-icon svg { width: 18px; height: 18px; flex-shrink: 0 }
.misp-feat-icon-blue  { background: rgba(54,164,216,.1); color: var(--blue) }
.misp-feat-icon-orange { background: rgba(247,158,32,.1); color: var(--orange) }
.misp-feat-icon-pink  { background: rgba(198,36,143,.1); color: var(--pink) }
.misp-feat:hover .misp-feat-icon { transform: scale(1.1) }

/* ── Toast Notification ─────────────────────────────────── */
.misp-toast {
  position: fixed; top: 28px; left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 99999; display: flex; align-items: center; gap: 14px;
  padding: 18px 26px 18px 20px; border-radius: 16px;
  min-width: 320px; max-width: 90vw;
  font-size: 15px; font-weight: 600;
  font-family: 'Segoe UI', 'Cairo', system-ui, sans-serif;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  opacity: 0; animation: mispToastIn .38s cubic-bezier(.4,0,.2,1) forwards;
  direction: rtl;
}
@keyframes mispToastIn  { to { opacity: 1; transform: translateX(-50%) translateY(0) } }
@keyframes mispToastOut { to { opacity: 0; transform: translateX(-50%) translateY(-16px) } }
.misp-toast-success { background: #fff; border: 1.5px solid rgba(34,197,94,.35);  color: #15803D }
.misp-toast-error   { background: #fff; border: 1.5px solid rgba(239,68,68,.35);   color: #DC2626 }
.misp-toast .t-icon  { font-size: 22px; flex-shrink: 0 }
.misp-toast .t-msg   { flex: 1; line-height: 1.45 }
.misp-toast .t-close {
  background: transparent; border: none; cursor: pointer;
  font-size: 18px; color: inherit; opacity: .5; padding: 0 4px; flex-shrink: 0;
}
.misp-toast .t-close:hover { opacity: 1 }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .misp-hero       { padding: 36px 16px 28px }
  .misp-tabs-nav   { flex-direction: column; border-radius: 14px; width: 100% }
  .misp-tab-btn    { width: 100%; text-align: center }
  .misp-slots-grid { grid-template-columns: repeat(4, 1fr) }
  .misp-sub-grid   { grid-template-columns: 1fr }
  .misp-tab        { padding: 20px 14px }
  
  .misp-utype-toggle {
    display: flex;
    flex-wrap: wrap;
    border-radius: 16px;
    width: 100%;
  }
  .misp-utype-btn {
    flex: 1 1 auto;
    border-radius: 12px;
    padding: 12px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* ── SweetAlert2 Branding & Payment UI (Premium Redesign) ───────────────────────────────── */

div:where(.swal2-container) {
  backdrop-filter: blur(8px) !important;
  background: rgba(15, 23, 42, 0.5) !important;
  --blue: #36A4D8;
  --pink: #C6248F;
  --orange: #F79E20;
  --dark: #1F1C34;
  --dim: #5A6A7E;
  --border: #DDE5EE;
}

.swal2-popup.misp-swal-popup {
  border-radius: 28px !important;
  padding: 2.5em 2em 2em !important;
  background: #ffffff !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0,0,0,0.03), 0 10px 20px -5px rgba(54, 164, 216, 0.1) !important;
  font-family: 'Segoe UI', 'Cairo', system-ui, sans-serif !important;
  overflow: hidden !important;
  width: 54rem !important;
  max-width: 95% !important;
}

.swal2-popup.misp-swal-popup.swal2-show {
  animation: swalPopupScaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Custom Loader Popup – transparent shell, misp-loading provides the visual */
.swal2-popup.misp-loader-popup {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.swal2-popup.misp-loader-popup.swal2-show {
  animation: swalPopupScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.misp-loader-popup .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* The actual visible card – matches misp-card style exactly */
.swal2-container .misp-loading {
  background: #ffffff;
  border: 1px solid #DDE5EE;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(30,40,60,.13);
  padding: 32px;
  text-align: center;
  color: #5A6A7E;
  min-width: 200px;
}

@keyframes swalPopupScaleIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.swal2-popup.misp-swal-popup::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--blue);
}

.misp-swal-title {
  font-weight: 800 !important;
  color: var(--dark) !important;
  font-size: 1.6em !important;
  margin-bottom: 0.5em !important;
  letter-spacing: -0.5px !important;
}

.swal2-html-container {
  color: var(--dim) !important;
  font-size: 1.05em !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* Custom Payment Choice Grid */
.misp-payment-choice {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 25px 0 15px;
  width: 100%;
  direction: rtl;
  justify-content: center;
}

.misp-pay-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px 16px;
  border: 2px solid #F1F5F9;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.misp-pay-opt::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.3s ease;
}

.misp-pay-opt:hover {
  border-color: transparent;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(54, 164, 216, 0.12), 0 5px 10px rgba(0,0,0,0.05);
}

.misp-pay-opt:hover::after {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.misp-pay-opt .icon {
  font-size: 46px;
  height: 50px;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.misp-pay-opt:hover .icon {
  transform: scale(1.15) rotate(2deg);
}

/* Payment Icons Images Styling */
.misp-pay-icon {
  width: 100%;
  height: 100%;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
  transition: all 0.3s ease;
}

.misp-pay-opt:hover .misp-pay-icon {
  filter: drop-shadow(0 8px 12px rgba(54, 164, 216, 0.25));
}

.misp-pay-opt .lbl {
  font-weight: 800;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* Premium Form Inputs Customization */
.misp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 20px;
  text-align: right;
  direction: rtl;
}

.misp-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 10px;
  padding-right: 4px;
}

.misp-input-group input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.misp-input-group input:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.misp-input-group input:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(54, 164, 216, 0.15), 0 8px 16px rgba(0,0,0,0.04);
}

.misp-input-group input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.misp-otp-input {
  letter-spacing: 16px !important;
  font-size: 32px !important;
  text-align: center !important;
  padding: 18px 10px !important;
  font-family: inherit !important;
  color: var(--blue) !important;
  background: #ffffff !important;
  border: 2px dashed #cbd5e1 !important;
}

.misp-otp-input:focus {
  border-style: solid !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(54, 164, 216, 0.15), inset 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* Buttons and Actions */
.swal2-actions {
  gap: 16px !important;
  margin-top: 35px !important;
  width: 100% !important;
  justify-content: center !important;
}

.swal2-confirm {
  background: var(--blue);
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 0px 35px !important;
  border-radius: 50px !important;
  font-family: inherit !important;
  margin: 0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  border: none !important;
}

.swal2-confirm:hover {
  background: #2F90BF;
  transition: background 0.3s ease;
}

.swal2-cancel {
  background: #ffffff !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 0px 25px !important;
  border-radius: 50px !important;
  border: 2px solid #e2e8f0 !important;
  margin: 0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}

.swal2-cancel:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06) !important;
}

.swal2-icon {
  margin-top: 5px !important;
  margin-bottom: 20px !important;
  border-width: 4px !important;
}

@media (max-width: 500px) {
  .swal2-popup.misp-swal-popup {
    padding: 2em 1.25em 1.5em !important;
    width: 95vw !important;
  }
  .misp-payment-choice {
    flex-direction: column;
    gap: 10px;
  }
  .misp-pay-opt {
    padding: 16px 10px;
    min-width: 80px;
    border-radius: 16px;
  }
  .misp-pay-opt .icon {
    font-size: 30px;
    height: 34px;
    flex-shrink: 0;
  }
  .misp-pay-icon {
    max-width: 34px;
    max-height: 34px;
  }
  .swal2-actions {
    flex-direction: column-reverse;
    gap: 12px !important;
  }
  .swal2-confirm, .swal2-cancel {
    width: 100% !important;
  }
}

/* ── Authentication Screen ──────────────────────────────── */
.misp-auth-wrapper {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
}

.misp-auth-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.misp-auth-header {
  display: flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 30px;
}

.misp-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--dim);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--ease);
}

.misp-auth-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.misp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.misp-auth-form.hidden {
  display: none;
}

.misp-auth-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
  text-align: center;
}

.misp-auth-subtitle {
  color: var(--dim);
  font-size: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.misp-auth-submit {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  border-radius: 12px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

@keyframes mispFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
  .misp-auth-card { padding: 30px 20px; }
  .misp-auth-wrapper { padding: 40px 15px; }
}
