body.onboarding {
  font-family: "Tajawal", sans-serif;
  background: #f5f7fb;
  color: #172033;
  min-height: 100vh;
}

.onboarding h1,
.onboarding h2,
.onboarding p {
  text-wrap: pretty;
}

.onb-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.onb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.onb-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.onb-brand img {
  height: 36px;
  width: auto;
}

.onb-brand strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.onb-login {
  color: #316AFF;
  font-weight: 700;
  text-decoration: none;
}

.onb-login:hover {
  color: #142a66;
}

.onb-hero {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  padding: 1.5rem 0 2rem;
}

.onb-kicker {
  color: #316AFF;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.onb-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  max-width: 16ch;
}

.onb-hero p {
  color: #5c6b82;
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.onb-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 1.25rem;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.onboarding .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #316AFF;
  --bs-btn-border-color: #316AFF;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2a5ad9;
  --bs-btn-hover-border-color: #2755cc;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2755cc;
  --bs-btn-active-border-color: #2550bf;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #316AFF;
  --bs-btn-disabled-border-color: #316AFF;
}

.btn-busy {
  display: none;
}

form[data-locked="1"] [data-lock-submit]:has(.btn-busy) .btn-idle {
  display: none;
}

form[data-locked="1"] .btn-busy {
  display: inline;
}

form[data-locked="1"] [data-lock-submit] {
  pointer-events: none;
  opacity: 0.72;
}

.offer-card:hover {
  border-color: #316AFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.offer-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.offer-card p {
  color: #5c6b82;
  margin: 0;
  flex: 1;
}

.offer-meta {
  font-size: 0.92rem;
}

.offer-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eef2f7;
}

.offer-meta span {
  color: #5c6b82;
}

.wizard-wrap {
  width: min(760px, 100%);
  margin: 0.5rem auto 3rem;
}

.wizard-steps {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.wizard-steps > li:not(.wizard-arrow) {
  flex: 1 1 0;
  min-width: 0;
}

.wizard-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.25rem;
  color: #8ea4d6;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.wizard-steps a,
.wizard-steps button.step-face,
.wizard-steps span.step-face {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  width: 100%;
  height: 100%;
  min-height: 4.25rem;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  color: #172033;
  text-align: start;
  text-decoration: none;
  white-space: normal;
}

.wizard-steps button.step-face {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.wizard-steps button.step-face:hover {
  border-color: #316AFF;
  background: #f7f9ff;
}

.wizard-steps button.step-face:focus-visible {
  outline: 2px solid #316AFF;
  outline-offset: 2px;
}

.step-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.wizard-steps strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wizard-steps .is-current .step-face,
.wizard-steps .is-current a,
.wizard-steps .is-current button.step-face {
  border-color: #316AFF;
  background: #f4f7ff;
  box-shadow: inset 0 0 0 1px #316AFF;
}

.wizard-steps .is-done a,
.wizard-steps .is-done button.step-face,
.wizard-steps .is-done span.step-face {
  border-color: #d7e2ff;
  background: #fff;
}

.step-index {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #eef2f7;
  font-weight: 800;
  flex: none;
}

.is-current .step-index,
.is-done .step-index {
  background: #316AFF;
  color: #fff;
}

.step-face small,
.plan-chip span,
.offer-meta span {
  display: block;
  color: #5c6b82;
}

.plan-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #eaf0ff;
  border: 1px solid #ccdaff;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.plan-chip strong {
  font-size: 1.05rem;
}

.plan-chip a {
  color: #316AFF;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.wizard-panel {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  animation: onb-rise 0.35s ease;
}

.wizard-panel h1 {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.wizard-lead {
  color: #5c6b82;
  margin-bottom: 1.25rem;
}

.onb-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.onb-actions .btn-primary {
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: 12px;
  font-weight: 700;
}

.onb-back {
  color: #316AFF;
  font-weight: 700;
  text-decoration: none;
}

button.onb-back {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.onb-actions button.onb-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: #31445f;
}

.onb-actions button.onb-back:hover {
  border-color: #316AFF;
  background: #f4f7ff;
  color: #142a66;
}

.onb-actions button.onb-back:focus-visible {
  outline: 2px solid #316AFF;
  outline-offset: 2px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e4eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 42, 102, 0.05);
  overflow: hidden;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: #f6f8ff;
  border-bottom: 1px solid #eef2f7;
}

.review-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: #eaf0ff;
  color: #316AFF;
  flex: none;
  font-size: 1rem;
}

.review-card-copy {
  flex: 1;
  min-width: 0;
}

.review-card-head h2 {
  margin: 0;
  color: #142a66;
  font-size: 1.02rem;
  line-height: 1.3;
}

.review-card-head p {
  margin: 0.15rem 0 0;
  color: #5c6b82;
  font-size: 0.78rem;
  line-height: 1.45;
}

.review-edit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  min-height: 2rem;
  margin: 0;
  padding: 0.3rem 0.75rem;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: #316AFF;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.review-edit:hover {
  border-color: #316AFF;
  background: #f4f7ff;
  color: #142a66;
}

.review-edit:focus-visible {
  outline: 2px solid #316AFF;
  outline-offset: 2px;
}

.review-list {
  margin: 0;
  padding: 0.2rem 0;
}

.review-row {
  display: grid;
  grid-template-columns: 8.6rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.62rem 1rem;
}

.review-row + .review-row {
  border-top: 1px solid #f2f5fa;
}

.review-row dt {
  margin: 0;
  color: #5c6b82;
  font-size: 0.8rem;
  font-weight: 700;
}

.review-row dd {
  margin: 0;
  color: #142a66;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.review-row dd[dir="ltr"] {
  text-align: right;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #e9f9ef;
  color: #0f7a3a;
  font-size: 0.78rem;
  font-weight: 800;
}

.review-footnote {
  margin: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
  color: #5c6b82;
  font-size: 0.8rem;
}

.receipt-note {
  margin: 0;
  color: #0f7a3a;
  font-weight: 700;
}

.onboarding .form-control:focus,
.onboarding .form-select:focus {
  border-color: #316AFF;
  box-shadow: 0 0 0 0.2rem rgba(49, 106, 255, 0.15);
}

@keyframes onb-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.offer-badge {
  display: inline-flex;
  align-self: flex-start;
  background: #e9f9ef;
  color: #0f7a3a;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.offer-price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.offer-price > span,
.quote-card dt {
  color: #5c6b82;
  font-size: 0.85rem;
}

.price-old,
.price-now,
.quote-row dd {
  unicode-bidi: isolate;
}

.price-old,
.is-struck {
  color: #8b98ab;
  text-decoration: line-through;
  font-weight: 600;
}

.price-now,
.quote-final dd {
  color: #142a66;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

.offer-save {
  color: #0f7a3a;
  font-weight: 800;
}

.offer-until {
  color: #5c6b82;
  font-size: 0.85rem;
}

.offer-features {
  margin: 0;
  padding-inline-start: 1.1rem;
  color: #31445f;
}

.offer-features li + li {
  margin-top: 0.25rem;
}

.quote-card {
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  margin: 0;
}

.quote-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.quote-card dl {
  margin: 0;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eef2f7;
}

.quote-row dd {
  margin: 0;
  font-weight: 700;
}

.quote-total dd {
  color: #0f7a3a;
  font-size: 1.05rem;
  font-weight: 800;
}

.quote-final {
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: #f4f7ff;
}

.coupon-box {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid #d9e2f2;
  border-radius: 14px;
  background: #fff;
}

.coupon-heading {
  margin: 0;
  color: #142a66;
  font-size: 1rem;
  font-weight: 800;
}

.coupon-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.coupon-panel .form-control {
  flex: 1 1 auto;
  width: 1%;
  min-width: 12rem;
}

.coupon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coupon-message {
  margin: 0.65rem 0 0;
  font-weight: 700;
}

.coupon-message.is-ok {
  color: #0f7a3a;
}

.coupon-message.is-bad {
  color: #b42318;
}

@media (max-width: 720px) {
  .onb-header,
  .plan-chip,
  .onb-actions,
  .wizard-steps {
    align-items: stretch;
  }

  .onb-header,
  .plan-chip,
  .onb-actions {
    flex-direction: column;
  }

  .wizard-steps {
    flex-direction: column;
  }

  .wizard-arrow {
    transform: rotate(-90deg);
    height: 1rem;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-card-head {
    flex-wrap: wrap;
  }

  .review-edit {
    margin-inline-start: auto;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    align-items: start;
  }

  .onb-actions .btn,
  .onb-actions button.onb-back,
  .offer-card .btn {
    width: 100%;
  }

  .coupon-panel,
  .coupon-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .coupon-panel .form-control,
  .coupon-actions .btn {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
  }
}

.pay-methods {
  margin-top: 0.25rem;
  border: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pay-methods legend {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pay-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid #d9e2f2;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.pay-option:has(input:checked) {
  border-color: #316AFF;
  box-shadow: inset 0 0 0 1px #316AFF;
}

.pay-option:has(input:disabled) {
  opacity: 0.7;
  cursor: not-allowed;
  background: #f8fafc;
}

.pay-option small {
  display: block;
  color: #667085;
}

.activation-box {
  display: grid;
  gap: 0.5rem;
}

.activation-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.activation-row .form-control {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.04em;
}

.activation-message.is-ok { color: #067647; }
.activation-message.is-bad { color: #b42318; }

.bankak-box,
.pay-soon {
  display: grid;
  gap: 0.5rem;
}

.pay-soon {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fffaeb;
  color: #b54708;
  font-weight: 700;
}

@media (max-width: 640px) {
  .activation-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 380px) {
  .onb-shell {
    width: min(1120px, calc(100% - 1rem));
  }

  .onb-brand strong {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card,
  .wizard-panel {
    animation: none;
    transition: none;
  }
}
