:root {
  --green: #7eb543;
  --green-d: #3f6f1c;
  --green-s: #8cc152;
  --green-text: #2f6a14;
  --mint: #ffffff;
  --mint-2: #ffffff;
  --dark: #181a20;
  --text: #141414;
  --muted: #3f3f3f;
  --placeholder: #5c5c5c;
  --line: #ececec;
  --blue: #1a4fbf;
  --bg: #ffffff;
  --card: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 26, 32, .08);
  --max: 480px;
  --pay-teal: #2d6d86;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #f4f6f8;
  overflow-x: clip;
}
body {
  font-family: "IBM Plex Sans Arabic", Tajawal, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  line-height: 1.5;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom);
}
button, a, input, select, textarea {
  touch-action: manipulation;
}
html,
body,
body.page-white,
body.page-gray,
body.page-mint,
body.page-ooredoo,
body.page-pay,
body.page-postpay,
body.page-status,
body.page-blocked {
  background-color: #ffffff;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }

.topbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar--mint { background: #fff; }
.lang-switch {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.brand {
  display: flex;
  justify-content: center;
}
.brand img { height: 48px; width: auto; object-fit: contain; }
.menu-btn {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px;
  margin-inline-start: auto;
}
.menu-btn span {
  display: block; height: 2px; background: #111; border-radius: 2px;
}
.menu-btn span:first-child { width: 22px; }
.menu-btn span:last-child { width: 14px; }

.side-menu {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 80;
  display: none;
  justify-content: flex-end;
}
.side-menu.is-open {
  display: flex;
}
.side-menu[hidden] {
  display: none !important;
}
[dir="ltr"] .side-menu { justify-content: flex-start; }
.side-menu__panel {
  width: min(80vw, 280px); height: 100%;
  background: #fff; padding: 20px 18px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.side-menu__close {
  align-self: flex-start; border: 0; background: #f2f2f2;
  padding: 10px 14px; min-height: 44px; border-radius: 8px; font-weight: 700;
}
.side-menu a {
  color: var(--text); font-weight: 700; font-size: 16px;
  min-height: 44px; display: flex; align-items: center;
}

.page-title {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  padding: 8px 16px 16px;
  color: var(--text);
}
.page-title--green { color: var(--text); background: #fff; }

.wrap {
  padding: 0 14px 28px;
  padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px 20px;
}

.stepper {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 2px 18px;
  position: relative;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 16px;
  inset-inline: 28px;
  height: 2px;
  background: #e6e6e6;
  z-index: 0;
}
.stepper__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  color: #4a4a4a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.stepper__num {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #d9d9d9;
  background: #fff;
  display: grid; place-items: center;
  font-size: 13px;
  color: #4a4a4a;
}
.stepper__item.is-active { color: var(--green-text); }
.stepper__item.is-active .stepper__num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.stepper__item.is-done { color: var(--green-text); }
.stepper__item.is-done .stepper__num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-size: 12px;
}

.check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  font-weight: 700;
  font-size: 15px;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--green); }
.badge-new {
  font-size: 14px;
  line-height: 1;
}

.underline-fields { padding: 6px 8px 4px; }
.underline-fields .field label {
  text-align: center;
  width: 100%;
  font-weight: 600;
}
.field {
  padding: 10px 4px 8px;
  border-bottom: 1px solid #e5e5e5;
}
.field label, .field-select > label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.field input, .field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  text-align: center;
  min-height: 44px;
}
.field input::placeholder { color: var(--placeholder); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone-field {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 4px;
}
.phone-wrap { padding-top: 8px; }
.phone-wrap > label {
  display: block; text-align: center; color: var(--muted);
  font-size: 13px; font-weight: 600;
}
.phone-field .cc {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; white-space: nowrap;
}
.flag {
  width: 22px; height: 15px; border-radius: 2px;
  overflow: hidden; border: 1px solid #ddd; display: block;
}
.phone-field input, .phone-field select {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 18px; font-weight: 600; text-align: start;
}
.phone-field input { text-align: center; }
.phone-field input::placeholder { color: var(--placeholder); }
.phone-field select { flex: 0 0 auto; width: auto; appearance: none; font-weight: 600; padding-inline-end: 4px; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.field.is-err, .field-select.is-err, .phone-field.is-err { outline: 1px solid #e53935; border-radius: 8px; }

.terms { text-align: center; padding: 16px 8px 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.terms a { color: var(--blue); font-weight: 600; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 1px solid transparent;
  border-radius: 0;
  padding: 13px 16px; font-size: 16px; font-weight: 600;
  min-height: 48px;
}
.btn-dark { background: var(--dark); color: #fff; margin-top: 10px; border-color: var(--dark); }
.btn-green { background: var(--green); color: #fff; border-radius: 10px; border-color: var(--green); }
.btn-black { background: #111; color: #fff; border-radius: 8px; }
.btn-ghost {
  background: #fff; color: #333;
  border: 1px solid #ddd;
}
.btn-link {
  background: none; border: 0; color: var(--blue);
  width: 100%; text-align: center; font-weight: 700;
  padding: 14px 0 4px; font-size: 15px;
}
.btn .chev { font-size: 18px; }

.coupon-link { display: block; text-align: center; padding: 12px 0 4px; font-weight: 700; color: var(--blue); }

.trust { padding: 28px 18px 10px; }
.trust h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.trust p { color: #2a2a2a; margin-bottom: 16px; }
.trust ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trust li {
  padding-inline-start: 28px;
  position: relative;
  font-weight: 600;
}
.trust li::before {
  content: "✓";
  position: absolute; inset-inline-start: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: #111; color: #fff;
  font-size: 12px; display: grid; place-items: center;
}

.help {
  background: #fff;
  margin-top: 24px;
  padding: 28px 18px 40px;
}
.help h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.help p { color: #2a2a2a; margin-bottom: 16px; }
.help__btn {
  display: inline-flex; background: var(--dark); color: #fff;
  padding: 10px 22px; border-radius: 8px; font-weight: 800;
}
.help__btn--wa { background: #25d366; color: #fff; }
.help__phones { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.help__phones a { color: var(--text); }

.alert-note {
  font-size: 14px; font-weight: 600; padding: 4px 8px 16px; line-height: 1.7;
}

.form-list .field-select {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.form-list .field-select input[type="number"] {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 6px 0 2px;
  min-height: 44px;
}
.select-trigger {
  width: 100%; border: 0; background: transparent;
  font-size: 16px; font-weight: 600; padding: 6px 0 2px;
  color: var(--text); text-align: center;
  min-height: 44px;
}
.select-trigger.is-empty { color: transparent; font-weight: 600; font-size: 16px; }

.dd-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.dd-sheet {
  width: min(100%, var(--max));
  max-height: 70vh;
  max-height: 70dvh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 12px 24px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.dd-search {
  width: 100%; border: 1px solid #e5e5e5; border-radius: 10px;
  padding: 10px 12px; font-size: 16px; margin-bottom: 8px; outline: none;
  min-height: 44px;
}
.dd-opt {
  display: block; width: 100%; text-align: center;
  padding: 14px 8px; border: 0; background: #fff;
  font-size: 16px; font-weight: 700; border-bottom: 1px solid #f3f3f3;
  min-height: 44px;
}
.dd-opt:active, .dd-opt.is-on { background: #f4faf0; color: var(--green-text); }

.nav-prev {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  width: 100%; border: 0; background: transparent;
  padding: 18px 0 8px; font-weight: 800; font-size: 16px; color: #222;
}

.plate-bar {
  background: #e9ece9;
  text-align: center;
  padding: 10px 12px 8px;
  font-weight: 800;
  font-size: 15px;
}
.plate-bar small { display: block; color: #333; font-weight: 700; font-size: 13px; }

.sort-btn {
  width: 100%; background: #fff; border: 1px solid #e5e5e5;
  border-radius: 10px; padding: 12px; font-weight: 800;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin: 12px 0;
}
.sort-btn .dot { color: var(--green); font-size: 18px; }

.offer {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 12px 16px;
  margin-bottom: 16px;
}
.offer__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.offer__logo {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.offer__name { font-weight: 800; font-size: 15px; flex: 1; }
.popular {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff3e0; color: #e65100;
  font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.chip {
  background: #f3f3f3; color: #222;
  font-size: 11px; font-weight: 700;
  padding: 5px 8px; border-radius: 8px;
}
.chip--ok { background: #e8f5e9; color: #2e7d32; }
.cover-title { font-weight: 800; margin: 8px 0; font-size: 14px; }
.val-tag {
  background: #e8f5e9; color: #2e7d32;
  font-weight: 800; padding: 8px 10px; border-radius: 8px;
  margin-bottom: 8px; font-size: 13px;
}
.covers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px;
  font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.covers span { display: flex; gap: 6px; align-items: flex-start; }
.covers i { color: var(--green); font-style: normal; font-weight: 800; }
.price-base { font-size: 12px; color: #333; margin-bottom: 8px; }
.opt-title { font-weight: 800; margin: 8px 0 6px; font-size: 14px; }
.addon {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; font-size: 13px; font-weight: 700;
  border-bottom: 1px solid #f5f5f5;
  flex-wrap: wrap;
}
.addon input { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.addon .grow { flex: 1; min-width: 0; }
.addon select {
  border: 1px solid #ddd; border-radius: 8px; padding: 8px 6px; font-weight: 700;
  max-width: 100%; min-height: 40px; font-size: 14px;
}
.offer__foot {
  display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.offer__total {
  font-size: 22px; font-weight: 800; text-align: center;
}
.offer__total s { color: #555; font-size: 14px; margin-inline: 6px; font-weight: 700; }
.found { text-align: center; color: #333; font-size: 13px; padding: 8px 0 60px; }

.bar-bottom {
  position: sticky; bottom: 0; background: #111; color: #fff;
  display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.bar-bottom a, .bar-bottom button {
  color: #fff; background: transparent; border: 0;
  padding: 14px; font-weight: 800; font-size: 16px;
  min-height: 48px;
}
.to-top {
  position: fixed; bottom: calc(72px + env(safe-area-inset-bottom)); inset-inline-start: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #2f80ed; color: #fff; border: 0; font-size: 18px; z-index: 20;
}

.loading {
  min-height: 70vh; min-height: 70dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 20px;
}
.spinner {
  width: 56px; height: 56px; border-radius: 50%;
  border: 5px solid #e0e0e0; border-top-color: var(--green);
  animation: spin .8s linear infinite; margin-bottom: 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading h1 { font-size: 20px; margin-bottom: 8px; }
.loading p { color: #2a2a2a; }

.modal-page { background: #ffffff; min-height: 100vh; min-height: 100dvh; }
.modal-page .topbar { background: transparent; box-shadow: none; }
.close-x {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #ddd; background: #fff;
  font-size: 18px; display: grid; place-items: center;
  color: #111;
  margin-bottom: 8px;
}
.owner-card, .review-wrap { padding: 8px 16px 32px; }
.owner-title { font-size: 18px; font-weight: 800; text-align: center; margin: 8px 0 16px; }
.owner-card .field {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.reg-card {
  background: linear-gradient(180deg, #f7f3e8, #efe6d0);
  border: 1px solid #e0d4b5; border-radius: 12px;
  padding: 16px; margin-bottom: 16px; position: relative;
}
.reg-card .lbl { font-size: 12px; color: #333; }
.reg-card .nm { font-weight: 800; font-size: 16px; margin-top: 4px; }
.note-box { padding: 8px 4px 16px; }
.note-box h3 { font-size: 16px; margin-bottom: 8px; }
.note-box p { font-size: 13px; color: #222; line-height: 1.8; }
.total-line { font-weight: 800; font-size: 18px; padding: 10px 0; }
.dl-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dl-links a { text-decoration: underline; font-weight: 700; font-size: 14px; }

.review-hi { font-size: 22px; font-weight: 800; margin: 8px 0 6px; }
.review-hi .name { color: var(--green-text); }
.review-sub { color: #2a2a2a; font-size: 13px; margin-bottom: 16px; }
.info-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.info-row {
  background: #fff; border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  font-weight: 700;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.info-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: #e8f0fe; color: #1a73e8;
  display: grid; place-items: center; font-size: 16px;
}
.ins-card {
  background: #eef2ff; border-radius: 14px; padding: 14px;
  margin-bottom: 18px;
}
.ins-card .prices { font-weight: 800; font-size: 18px; color: #1a73e8; }
.ins-card s { color: #444; font-size: 14px; }
.ins-card .co { margin-top: 8px; font-weight: 800; }
.ins-card small { color: #333; }

.confirm-box {
  background: #fff; border-radius: 18px; margin: 8px 16px;
  padding: 20px 16px; text-align: center; box-shadow: var(--shadow);
}
.confirm-box h1 { font-size: 20px; margin-bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.shield {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
}
.inner-note {
  border: 1px solid #eee; border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.illus {
  width: 140px; height: 100px; margin: 0 auto 12px;
  background: radial-gradient(circle at 50% 40%, #e8f5e9, #fff);
  border-radius: 16px;
  display: grid; place-items: center; font-size: 42px;
}
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 70; display: flex; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
.modal[hidden] { display: none; }
.modal__box { background: #fff; border-radius: 16px; padding: 18px; width: min(92vw, 360px); }
.modal__box h3 { margin-bottom: 10px; }
.modal__box input { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-bottom: 12px; font-size: 16px; min-height: 44px; }
.done-msg { text-align: center; padding: 40px 20px; }
.done-msg h1 { margin: 12px 0; }

body.page-white,
body.page-gray,
body.page-mint,
body.page-ooredoo,
body.page-pay,
body.page-postpay,
body.page-status,
body.page-blocked { background: #ffffff; }

.fsa-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 8px 12px 4px;
  text-align: center;
}
.fsa-partner img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: 0 8px 20px rgba(16, 35, 58, .12);
}
.fsa-partner p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #1a3365;
  line-height: 1.5;
}

.telco-sale {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7e8 0%, #eef6ff 55%, #fff1f1 100%);
  border: 1px solid #ead9b8;
  box-shadow: 0 8px 20px rgba(16, 35, 58, .06);
}
.telco-sale img {
  width: min(42vw, 168px);
  height: auto;
  max-height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  padding: 4px 6px;
}
.telco-sale__copy { min-width: 0; }
.telco-sale__badge {
  display: inline-flex;
  margin: 0 0 4px;
  background: #e8f5e9;
  color: #2f6a14;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}
.telco-sale__text {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #142033;
  line-height: 1.55;
}
.pay .telco-sale { margin-top: 16px; }
.confirm-box .telco-sale { margin-top: 16px; text-align: start; }

.sale-tag {
  display: inline-flex;
  align-items: center;
  background: #e8f5e9;
  color: #2f6a14;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.offer__total s,
.price-base s { color: #8a8a8a; font-weight: 600; }

/* Thawani-style checkout */
body.page-pay {
  background: #ffffff;
  max-width: none;
  width: 100%;
}
.pay {
  width: min(100%, 560px);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 8px 16px 28px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}
.pay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 14px;
  direction: ltr;
}
.pay-lang {
  display: inline-flex;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.pay-lang a {
  min-width: 64px;
  min-height: 44px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-align: center;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pay-lang a.is-on {
  background: var(--green);
  color: #fff;
}
.pay-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #111;
}
.pay-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.pay-brand__chev {
  width: 18px;
  height: 18px;
  color: #6b6b6b;
  flex-shrink: 0;
}
.pay-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  padding: 18px 16px 20px;
}
.pay-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}
.pay-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.pay-apple svg { display: block; }
.pay-apple span {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .01em;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.pay-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}
.pay-or::before,
.pay-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e6e6;
}
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.pay-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--pay-teal);
  background: #fff;
  color: var(--pay-teal);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.pay-method svg { width: 22px; height: 22px; flex-shrink: 0; }
.pay-method.is-on {
  background: var(--pay-teal);
  color: #fff;
  border-color: var(--pay-teal);
}
.pay-fields { display: flex; flex-direction: column; gap: 12px; }
.pay-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #222;
}
.pay-info {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  display: inline-grid;
  place-items: center;
  cursor: help;
}
.pay-field input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  outline: none;
}
.pay-field input::placeholder { color: var(--placeholder); font-weight: 500; }
.pay-field input:focus { border-color: var(--pay-teal); }
.pay-field.is-err input { border-color: #e53935; }
.pay-cardnum {
  display: flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.pay-cardnum:focus-within { border-color: var(--pay-teal); }
.pay-field.is-err .pay-cardnum { border-color: #e53935; }
.pay-cardnum input {
  border: 0;
  height: 46px;
  font-size: 16px;
  flex: 1;
  min-width: 0;
}
.pay-brands {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 6px;
  flex-shrink: 0;
}
.pay-brands img,
.pay-brands svg { height: 18px; width: auto; display: block; }
.pay-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  grid-template-areas: "exp cvv";
}
.pay-field--cvv { grid-area: cvv; }
.pay-field--exp { grid-area: exp; }
.pay-save {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
}
.pay-save input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--green);
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
}
.pay-save input:checked {
  background: var(--green);
  box-shadow: inset 0 0 0 2px #fff;
}
.pay-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  min-height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.pay-submit s { opacity: .7; margin-inline-end: 6px; font-weight: 600; }
.pay-submit:disabled { opacity: .55; cursor: not-allowed; }
.prices s,
.total-line s { color: #8a8a8a; margin-inline-end: 6px; }
.pay-cancel {
  display: block;
  margin: 14px 0 0;
  text-align: center;
  color: var(--green-text);
  font-size: 15px;
  font-weight: 800;
}
.pay-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6e5;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.pay-foot {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
}
.pay-developed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #2a2a2a;
  font-size: 13px;
  font-weight: 600;
}
.pay-developed strong {
  color: #2f6f88;
  font-size: 15px;
  letter-spacing: -.02em;
}
.pay-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.pay-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
}
.pay-social svg { width: 15px; height: 15px; display: block; }

@media (max-width: 420px) {
  .pay {
    padding: 8px 12px 24px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
  .pay-card { padding: 16px 12px 18px; }
  .pay-methods { grid-template-columns: 1fr; }
  .pay-method { font-size: 12px; }
  .pay-brands svg:first-child { display: none; }
  .pay-split {
    grid-template-columns: 1fr;
    grid-template-areas: "exp" "cvv";
  }
  .pay-lang a { min-width: 52px; padding: 6px 8px; }
  .field-row { grid-template-columns: 1fr; }
  .covers { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
  .stepper { gap: 2px; }
  .stepper__item { font-size: 10px; }
  .stepper::before { inset-inline: 16px; }
  .offer__head { flex-wrap: wrap; }
  .phone-field { flex-wrap: wrap; }
  .telco-sale {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }
  .telco-sale img { width: min(100%, 220px); max-height: 72px; }
}
@media (min-width: 768px) {
  :root { --max: 640px; }
  html { background: #f4f6f8; }
  body {
    box-shadow: 0 0 0 1px rgba(20, 32, 51, .06);
    min-height: 100dvh;
  }
  body.page-pay,
  body.page-ooredoo,
  body.page-postpay {
    box-shadow: none;
    background: #fff;
  }
  .wrap { padding: 0 24px 40px; }
  .card { padding: 22px 22px 26px; }
  .page-title { font-size: 30px; padding: 16px 24px 20px; }
  .offer { padding: 18px 18px 20px; }
  .dd-overlay { align-items: center; padding: 24px; }
  .dd-sheet {
    border-radius: 16px;
    max-height: 60vh;
    width: min(100%, 480px);
    padding: 16px 16px 20px;
  }
  .pay {
    width: min(100%, 640px);
    padding: 28px 24px 48px;
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }
  .pay-card {
    padding: 28px 32px 32px;
    border-radius: 20px;
  }
  .pay-title { font-size: 20px; }
  .pay-apple { height: 52px; }
  .pay-method { height: 52px; font-size: 14px; }
  .pay-field input,
  .pay-cardnum input { height: 50px; font-size: 16px; }
  .pay-submit { height: 54px; font-size: 17px; }
  .mm-ooredoo-shell {
    max-width: 480px;
    padding: 36px 0 56px;
  }
  .postpay-card,
  .btn-postpay { width: min(100%, 420px); }
}

/* Post-purchase stage — same white canvas as the Bima logo */
body.page-postpay {
  background: #ffffff;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
}
.postpay {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px 48px;
  padding-top: max(36px, env(safe-area-inset-top));
  padding-bottom: max(48px, env(safe-area-inset-bottom));
  position: relative;
}
.postpay-loading h1,
.postpay-success h1 {
  font-size: 24px;
  font-weight: 800;
  color: #141414;
  margin: 10px 0 8px;
  max-width: 18em;
}
.postpay-loading p,
.postpay-lead {
  color: #2a2a2a;
  font-size: 14px;
  line-height: 1.7;
  max-width: 22em;
}
.postpay-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 166, 255, .35), transparent 70%);
  top: 18%;
  filter: blur(2px);
  pointer-events: none;
}
.postpay-spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid #e0e0e0;
  border-top-color: var(--green);
  animation: spin .75s linear infinite;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.postpay-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3ecf8e, #1faa6a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(31, 170, 106, .35);
  margin-bottom: 8px;
}
.postpay-kicker {
  color: #3f3f3f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 6px;
}
.postpay-card {
  width: min(100%, 360px);
  margin: 22px 0 18px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(15, 39, 68, .18);
  text-align: start;
}
.postpay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
}
.postpay-row:last-child { border-bottom: 0; }
.postpay-row span { color: #2a3544; font-weight: 600; }
.postpay-row strong { color: #10233a; font-weight: 800; text-align: end; }
.btn-postpay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  background: #163a5f;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(15, 39, 68, .25);
}
.btn-postpay:hover { color: #fff; }

.postpay-notify {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #10233a;
  font-size: 13px;
  font-weight: 600;
}
#appStatusRoot[data-status="REJECTED"] .postpay-badge {
  background: #e53935;
}
#appStatusRoot[data-status="PENDING_REVIEW"] .postpay-badge,
#appStatusRoot[data-status="NEEDS_MORE_INFO"] .postpay-badge {
  background: #f0a202;
  color: #10233a;
}

.auth-card .field { text-align: start; }
.auth-card .field input { text-align: start; font-size: 16px; }
.auth-hint {
  font-size: 13px;
  color: #2a2a2a;
  margin-bottom: 14px;
  line-height: 1.6;
}
.auth-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}
.auth-alert ul { margin: 0; padding-inline-start: 18px; }
.auth-alert--error { background: #fdecea; color: #b3261e; }
.auth-alert--ok { background: #e8f5e9; color: #1b5e20; }
.auth-flash {
  margin: 0 14px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.auth-flash--success { background: #e8f5e9; color: #1b5e20; }
.auth-flash--error { background: #fdecea; color: #b3261e; }
.auth-flash--info { background: #e8f0fe; color: #174ea6; }

/* Admin → customer alert modal */
body.bima-alert-open { overflow: hidden; }
.bima-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}
.bima-alert-modal[hidden] { display: none !important; }
.bima-alert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, .55);
  backdrop-filter: blur(2px);
}
.bima-alert-modal__card {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 60px rgba(10, 18, 32, .28);
  text-align: center;
  animation: bimaAlertIn .22s ease-out;
}
.bima-alert-modal__kicker {
  margin: 0 0 6px;
  color: #2a3544;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.bima-alert-modal__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #10233a;
}
.bima-alert-modal__body {
  margin: 0 0 18px;
  color: #1a2430;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.bima-alert-modal__btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  background: #10233a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.bima-alert-modal__btn:hover { background: #163a5f; }
@keyframes bimaAlertIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ── Ooredoo auth (cloned from moawen-maids) ── */
body.page-ooredoo {
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: 100dvh;
  background: #ffffff;
  color: #0f172a;
  font-family: Tajawal, "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.mm-container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  min-width: 0;
}
.mm-ooredoo-shell {
  max-width: 440px;
  margin-inline: auto;
  padding: 24px 0 40px;
}
.mm-ooredoo-bar {
  background: #f5f5f5;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid #e0e0e0;
  color: #0f172a;
}
.mm-ooredoo-logo {
  font-family: Roboto, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #e60000;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 24px;
}
.mm-ooredoo-heading {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
}
.mm-ooredoo-greeting {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.mm-field { display: block; margin-bottom: 16px; min-width: 0; }
.mm-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.mm-label .mm-req { color: #e60000; font-weight: 700; }
.mm-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: #0f172a;
}
.mm-ooredoo .mm-input:focus {
  outline: none;
  border: 1.5px solid #1565c0;
}
.mm-form-errors {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fdecea;
  border: 1px solid rgba(211, 47, 47, 0.25);
  border-radius: 14px;
  color: #b71c1c;
  font-size: 14px;
  font-weight: 600;
}
.mm-ooredoo-forgot { margin: 0 0 16px; }
.mm-link-ooredoo {
  color: #e60000;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.mm-btn--ooredoo {
  background: #e60000;
  color: #fff;
  border-radius: 999px;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.mm-btn--ooredoo-outline {
  background: transparent;
  color: #e60000;
  border: 1.5px solid #e60000;
  border-radius: 999px;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.mm-ooredoo-outline-wrap { margin-top: 12px; }
.mm-progress { margin: 16px 0; }
.mm-progress__track {
  height: 6px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}
.mm-progress__fill {
  width: 33%;
  height: 100%;
  background: #7b1fa2;
}
.mm-progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 8px 0 0;
  color: #0f172a;
}
.mm-text-center { text-align: center; }
.status-screen {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 48px;
  gap: 12px;
}
.status-screen h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #141414;
  line-height: 1.35;
}
.status-screen p {
  margin: 0;
  max-width: 34ch;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.7;
}
.status-screen__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}
.status-screen__icon--error {
  background: #fdecea;
  color: #c62828;
}
.status-screen__icon--block {
  background: #f3e8e8;
  color: #7f1d1d;
}
.status-screen__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  margin-top: 10px;
  border-radius: 999px;
  background: #2d6d86;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
body.page-blocked {
  user-select: none;
}
.mm-ooredoo-shell .status-screen__icon {
  margin-inline: auto;
  margin-bottom: 16px;
}

@media (max-width: 560px) {
  html { background: #ffffff; }
}

@media (min-width: 1024px) {
  :root { --max: 720px; }
  .topbar { padding-inline: 24px; }
  .trust, .help { padding-inline: 24px; }
  .owner-card, .review-wrap { padding: 12px 28px 48px; }
  .confirm-box { margin: 12px 28px; padding: 28px 24px; }
  .offer__total { font-size: 24px; }
}

@media (max-width: 360px) {
  .page-title { font-size: 20px; }
  .mm-ooredoo-heading { font-size: 20px; }
  .mm-ooredoo-logo { font-size: 28px; }
  .status-screen h1 { font-size: 20px; }
  .mm-container { width: min(1140px, calc(100% - 1.25rem)); }
}

@supports (padding: max(0px)) {
  .help {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
}

