:root {
  --bg: #F5F7F8;
  --card: #ffffff;
  --text: #1A242C;
  --muted: #5B6B78;
  --brand: #243444;
  --brand-2: #1A2733;
  --brand-light: #3A5164;
  --brand-soft: #EEF2F5;
  --blue: var(--brand);
  --blue-2: var(--brand-2);
  --shadow: 0 6px 18px rgba(36, 52, 68, 0.10);
  --radius: 16px;
  --side-pad: clamp(20px, 5vw, 24px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--bg);
  font-family:
    "IBM Plex Sans Arabic",
    Cairo,
    "Noto Sans Arabic",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

.nt-body {
  font-size: 16px;
}

.nt-app button,
.nt-app input,
.nt-app select,
.nt-app textarea,
.nt-app a {
  touch-action: manipulation;
}

.device {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  min-height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  container-type: inline-size;
  container-name: phone;
}

.header {
  width: 100%;
  padding: 32px 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
}

.screen-name {
  width: 100%;
  text-align: right;
  font-size: 26px;
  font-weight: 900;
  /* لون أفتح من لون الشعار */
  color: var(--text);
  margin-top: 8px;
  margin-bottom: 0;
}

.nt-app .stepper,
.nt-app [data-flow-stepper] {
  display: block;
  grid-template-columns: none;
  align-self: stretch;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 var(--side-pad);
  box-sizing: border-box;
  list-style: none;
}

.nt-app .stepper__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nt-app .stepper__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nt-app .stepper__circle {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.nt-app .stepper__connector {
  flex: 1 1 auto;
  height: 3px;
  min-width: 18px;
  background: var(--brand-soft);
  border-radius: 999px;
  margin: 0 6px;
}

.stepper__label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  max-width: 92px;
  line-height: 1.15;
  text-align: center;
}

.stepper__count {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: flex-start; /* في RTL = يمين */
  gap: 6px;
  direction: rtl;
  margin: 0 0 8px;
}

.stepper__count-kicker {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

.stepper__count-num {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  display: none;
}

.stepper[data-active="1"] .stepper__count-num[data-num="1"],
.stepper[data-active="2"] .stepper__count-num[data-num="2"],
.stepper[data-active="3"] .stepper__count-num[data-num="3"] {
  display: inline;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--side-pad) 40px;
  box-sizing: border-box;
  overflow: visible;
}

.nt-app.is-brand-sheet {
  background: #e8ebef;
}

.nt-app.is-brand-sheet .header {
  padding-top: 0;
  position: relative;
}

.nt-app.is-brand-sheet .header-top {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  right: auto;
  width: auto;
  z-index: 3;
  justify-content: flex-start;
  padding: 0;
}

.nt-app.is-brand-sheet .menu-row {
  width: auto;
  margin: 0;
  padding: 0;
}

.nt-app.is-brand-sheet .menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nt-app.is-brand-sheet .menu-btn span {
  background: #fff;
}

.nt-app.is-brand-sheet .logo-wrap {
  display: none;
}

.nt-app.is-brand-sheet [data-flow-stepper] {
  position: relative;
  z-index: 2;
  margin: -42px 0 0;
  padding: 20px var(--side-pad) 0;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 40px rgba(36, 52, 69, 0.16);
  overflow: hidden;
}

.nt-app.is-brand-sheet [data-flow-stepper]::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 42%, rgba(36, 52, 69, 0.06) 43%, rgba(36, 52, 69, 0.06) 45%, transparent 46%),
    radial-gradient(circle, transparent 58%, rgba(36, 52, 69, 0.05) 59%, rgba(36, 52, 69, 0.05) 61%, transparent 62%),
    radial-gradient(circle, transparent 74%, rgba(36, 52, 69, 0.04) 75%, rgba(36, 52, 69, 0.04) 77%, transparent 78%);
}

.nt-app.is-brand-sheet .stepper__count {
  margin-bottom: 10px;
}

.nt-app.is-brand-sheet .stepper__circle {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.nt-app.is-brand-sheet .screen-title-group {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 16px var(--side-pad) 4px;
}

.nt-app.is-brand-sheet .screen-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 52, 69, 0.08);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nt-app.is-brand-sheet .screen-name {
  font-size: 22px;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.nt-app.is-brand-sheet .screen-lead {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

.nt-app.is-brand-sheet .screens,
.nt-app.is-brand-sheet .screen,
.nt-app.is-brand-sheet [data-pay-panel] {
  background: #fff;
}

.nt-app.is-brand-sheet .screen-body {
  width: 100%;
}

.nt-app .stepper[hidden],
.nt-app [data-flow-stepper][hidden] {
  display: none !important;
}

.nt-app.is-brand-sheet .flow-privacy-footer {
  background: #fff;
  padding-top: 8px;
}

.flow-hero {
  display: none;
  padding: 0 var(--side-pad);
  margin: 0 0 10px;
  box-sizing: border-box;
}

.nt-app.is-brand-sheet .flow-hero {
  display: block;
  padding: 0;
  margin: 0;
}

.flow-hero[hidden] {
  display: none !important;
}

.flow-hero__img {
  width: 100%;
  height: auto;
  max-height: 176px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
  background: #243445;
}

.nt-app.is-brand-sheet .flow-hero__img {
  max-height: none;
  height: 220px;
  border-radius: 0;
}

.screen-kicker {
  display: none;
}

.header-top .menu-row {
  padding: 0;
  margin: 0;
}

.logo-wrap--small {
  width: min(188px, 62vw);
  height: 44px;
  margin: 0;
}

.screen-title-group {
  padding: 0 var(--side-pad);
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
}

.screen-lead {
  display: none;
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.7;
}

/* إظهار وصف الخطوة فقط لشاشة “بيانات مقدم الطلب” */
.stepper[data-active="1"] ~ .screen-title-group .screen-lead {
  display: block;
}

.nt-app .stepper[data-active="1"] .stepper__item[data-step="1"] .stepper__circle,
.nt-app .stepper[data-active="2"] .stepper__item[data-step="1"] .stepper__circle,
.nt-app .stepper[data-active="2"] .stepper__item[data-step="2"] .stepper__circle,
.nt-app .stepper[data-active="3"] .stepper__item[data-step="1"] .stepper__circle,
.nt-app .stepper[data-active="3"] .stepper__item[data-step="2"] .stepper__circle,
.nt-app .stepper[data-active="3"] .stepper__item[data-step="3"] .stepper__circle {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.nt-app .stepper[data-active="2"] .stepper__connector--12,
.nt-app .stepper[data-active="3"] .stepper__connector--12,
.nt-app .stepper[data-active="3"] .stepper__connector--23 {
  background: var(--brand);
}

.logo-wrap {
  --logo-box: clamp(105px, 26vw, 135px);
  width: var(--logo-box);
  height: var(--logo-box);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 46%,
    rgba(210, 220, 230, 0.42) 46%,
    rgba(210, 220, 230, 0.42) 49%,
    transparent 49%,
    transparent 57%,
    rgba(198, 210, 220, 0.34) 57%,
    rgba(198, 210, 220, 0.34) 60%,
    transparent 60%,
    transparent 69%,
    rgba(186, 200, 212, 0.26) 69%,
    rgba(186, 200, 212, 0.26) 72%,
    transparent 72%,
    transparent 82%,
    rgba(176, 190, 204, 0.18) 82%,
    rgba(176, 190, 204, 0.18) 85%,
    transparent 85%
  );
}

.logo {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
  position: relative;
  z-index: 1;
  filter: none;
}

html[dir="ltr"] .logo {
  object-position: left center;
}

.logo-wrap.logo-wrap--small {
  width: min(188px, 62vw);
  height: 44px;
  margin: 0;
  justify-content: flex-end;
  overflow: visible;
}

.logo-wrap.logo-wrap--small::before {
  inset: auto;
  width: 176px;
  height: 176px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

html[dir="ltr"] .logo-wrap.logo-wrap--small {
  justify-content: flex-start;
}

.screens {
  flex: 1 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.screen {
  display: none;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  opacity: 0;
  transform: translateY(6px);
}

.screen[hidden] {
  display: none !important;
}

.screen.active,
.screen:not([hidden]) {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: screen-in 180ms ease;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-body {
  flex: 1;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  box-sizing: border-box;
}

.menu-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  direction: ltr;
  padding: 0 var(--side-pad);
  position: static;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.menu-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: var(--text);
}

.field-stack {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.card-field {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
}

.card-field svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-field svg,
.card-field svg * {
  stroke: var(--muted);
  fill: none;
}

.field__leftIcon {
  color: var(--muted);
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field__rightIcon {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.field__label {
  flex: 1 1 auto;
  margin: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  direction: rtl;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field__input {
  flex: 1 1 auto;
  margin: 0 12px;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  direction: rtl;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.field__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.date-label {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
  direction: rtl;
  text-align: right;
}

.card-number-block .date-label {
  margin-top: 0;
}

.card-number-slots {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  direction: ltr;
}

.card-number-slot {
  flex: 1 1 0;
  height: 42px;
  border: none;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  padding: 0 4px;
  text-align: center;
  outline: none;
  appearance: none;
  letter-spacing: 0.08em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.card-number-slot::placeholder {
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.18em;
}

.card-number-slots.is-invalid .card-number-slot {
  box-shadow: 0 0 0 2px #d64550, var(--shadow);
}

.segments {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  direction: ltr;
}

.segment {
  flex: 1 1 0;
  height: 42px;
  border: none;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
}

.segment-input {
  padding: 0;
  text-align: center;
  outline: none;
  appearance: none;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.segment-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.segment:disabled {
  opacity: 1;
  cursor: default;
}

.remember {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
  justify-content: flex-start;
}

.remember input {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--muted);
  background: #fff;
  appearance: none;
}

.remember input:checked {
  background: var(--brand);
  border-color: var(--brand);
  position: relative;
}

.remember input:checked::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 3px;
}

.remember span {
  font-size: 14px;
  color: var(--text);
  font-weight: 900;
  direction: rtl;
}

.primary-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(36, 52, 68, 0.14);
  margin-top: 14px;
}

.primary-btn--submit {
  height: 54px;
  margin-top: 0;
}

.primary-btn--submit:active {
  transform: translateY(1px);
}

/* --- Screen 1 (info) redesign --- */
.screen-body[data-flow-form="info"] .info-form__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 28px;
}

.nt-app.is-brand-sheet .screen-body[data-flow-form="info"] .info-form__stack {
  gap: 18px;
  padding-bottom: 88px;
}

.field-block {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  direction: rtl;
}

.field-control {
  height: 54px;
  border-radius: 14px;
  border: 1px solid #d7e8dc;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field-prefix {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
}

.field-prefix svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-app.is-brand-sheet .field-control,
.nt-app.is-brand-sheet .birth-grid {
  border-color: #d8dee4;
  box-shadow: 0 10px 24px rgba(36, 52, 69, 0.05);
}

.field-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  text-align: left;
}

.field-control:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 52, 68, 0.14);
}

.field-control:has(.field-input:not(:placeholder-shown)) {
  background: var(--brand-soft);
  border-color: rgba(36, 52, 68, 0.25);
}

.nt-app.is-brand-sheet .birth-grid {
  gap: 0;
  border: 1px solid #d8dee4;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.nt-app.is-brand-sheet .birth-segment {
  padding: 10px 12px 12px;
  position: relative;
}

.nt-app.is-brand-sheet .birth-segment + .birth-segment::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #e6eaee;
}

.nt-app.is-brand-sheet .birth-label {
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
}

.nt-app.is-brand-sheet .birth-segment .segment {
  border: 0;
  box-shadow: none;
  height: 36px;
  min-height: 36px;
  padding: 0;
  background: transparent;
}

.nt-app.is-brand-sheet .birth-segment:focus-within {
  background: #f4f6f8;
}

.nt-app.is-brand-sheet .birth-segment:focus-within .segment,
.nt-app.is-brand-sheet .birth-segment .segment:not(:placeholder-shown) {
  background: transparent;
  box-shadow: none;
}

.nt-app.is-brand-sheet .remember {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f6f8;
}

.nt-app.is-brand-sheet .primary-btn,
.nt-app.is-brand-sheet .primary-btn--submit {
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #31485a 0%, var(--brand) 100%);
  box-shadow: 0 14px 28px rgba(36, 52, 69, 0.22);
}

.nt-app.is-brand-sheet.is-sheet-compact .flow-hero__img {
  height: 176px;
  object-position: center 42%;
}

.nt-app.is-brand-sheet.is-sheet-compact [data-flow-stepper] {
  margin-top: -36px;
  padding-top: 16px;
}

.nt-app.is-brand-sheet.is-sheet-flush .screen-title-group,
.nt-app.is-brand-sheet.is-sheet-compact:has([data-flow-stepper][hidden]) .screen-title-group {
  margin-top: -36px;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 40px rgba(36, 52, 69, 0.16);
  padding-top: 22px;
  overflow: hidden;
}

.nt-app.is-brand-sheet.is-sheet-flush .screen-title-group::before,
.nt-app.is-brand-sheet.is-sheet-compact:has([data-flow-stepper][hidden]) .screen-title-group::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 42%, rgba(36, 52, 69, 0.06) 43%, rgba(36, 52, 69, 0.06) 45%, transparent 46%),
    radial-gradient(circle, transparent 58%, rgba(36, 52, 69, 0.05) 59%, rgba(36, 52, 69, 0.05) 61%, transparent 62%),
    radial-gradient(circle, transparent 74%, rgba(36, 52, 69, 0.04) 75%, rgba(36, 52, 69, 0.04) 77%, transparent 78%);
}

.nt-app.is-brand-sheet .card-form__stack,
.nt-app.is-brand-sheet .otp-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 88px;
}

.nt-app.is-brand-sheet .card-number-slots {
  gap: 0;
  margin-top: 0;
  border: 1px solid #d8dee4;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 52, 69, 0.05);
}

.nt-app.is-brand-sheet .card-number-slot {
  height: 54px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border-inline-end: 1px solid #e6eaee;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nt-app.is-brand-sheet .card-number-slot:last-child {
  border-inline-end: 0;
}

.nt-app.is-brand-sheet .card-number-slot:focus {
  background: #f4f6f8;
}

.nt-app.is-brand-sheet .card-number-slots.is-invalid {
  border-color: #d64550;
  box-shadow: 0 0 0 3px rgba(214, 69, 80, 0.12);
}

.nt-app.is-brand-sheet .card-number-slots.is-invalid .card-number-slot {
  box-shadow: none;
}

.nt-app.is-brand-sheet .field-label__hint {
  margin-inline-start: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nt-app.is-brand-sheet .pin-slot {
  letter-spacing: 0;
  font-size: 22px;
}

.nt-app.is-brand-sheet .otp-body {
  align-items: stretch;
  text-align: right;
  padding-top: 8px;
}

.nt-app.is-brand-sheet .otp-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f4f6f8;
  direction: rtl;
}

.nt-app.is-brand-sheet .otp-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
}

.nt-app.is-brand-sheet .otp-chip__copy {
  min-width: 0;
  flex: 1;
}

.nt-app.is-brand-sheet .otp-chip__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.nt-app.is-brand-sheet .otp-phone {
  margin: 2px 0 0;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.nt-app.is-brand-sheet .otp-phone:empty {
  display: block;
}

.nt-app.is-brand-sheet .otp-phone:empty::after {
  content: "رقم هاتفك";
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0;
}

.nt-app.is-brand-sheet .otp-label {
  margin-top: 0;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.nt-app.is-brand-sheet .otp-slots {
  margin-top: 0;
  justify-content: space-between;
  gap: 8px;
}

.nt-app.is-brand-sheet .otp-slots span {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 54px;
  border-radius: 14px;
  border: 1px solid #c5ced6;
  background: #f4f6f8;
  box-shadow: none;
  font-size: 20px;
}

.nt-app.is-brand-sheet .otp-slots.is-invalid span {
  border-color: #d64550;
  box-shadow: 0 0 0 3px rgba(214, 69, 80, 0.12);
}

.nt-app.is-brand-sheet .otp-note {
  margin: 0;
  max-width: none;
  font-size: 12px;
  line-height: 1.7;
}

.nt-app.is-brand-sheet .otp-body .primary-btn {
  margin-top: 0;
}

.nt-app.is-brand-sheet .otp-body .resend-link {
  margin-top: 0;
}

.nt-app.is-brand-sheet .status-body {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 88px;
}

.nt-app.is-brand-sheet .status-card {
  width: 100%;
  padding: 22px 16px 18px;
  border: 1px solid #d8dee4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 52, 69, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.nt-app.is-brand-sheet .status-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #31485a 0%, var(--brand) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(36, 52, 69, 0.22);
}

.nt-app.is-brand-sheet .status-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-app.is-brand-sheet .status-mark--warn {
  background: linear-gradient(180deg, #8a3d45 0%, #b43a45 100%);
  box-shadow: 0 14px 28px rgba(180, 58, 69, 0.22);
}

.nt-app.is-brand-sheet .status-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--brand);
}

.nt-app.is-brand-sheet .status-copy {
  margin: 0;
  max-width: 22em;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--muted);
}

.nt-app.is-brand-sheet .status-copy strong {
  color: var(--text);
}

.nt-app.is-brand-sheet .status-note {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.nt-app.is-brand-sheet .status-card .primary-btn {
  margin-top: 6px;
}

.nt-app.is-brand-sheet .status-card--loading {
  min-height: 220px;
  justify-content: center;
}

.nt-app.is-brand-sheet .loading-spinner {
  width: 52px;
  height: 52px;
  border-width: 5px;
  border-color: #e6eaee;
  border-top-color: var(--brand);
}

.nt-app.is-brand-sheet .reg-success-progress {
  width: 100%;
}

.nt-app.is-brand-sheet .secure-panel {
  border-color: #d8dee4;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(36, 52, 69, 0.05);
}

.field-error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 900;
  color: #b43a45;
  line-height: 1.35;
}

.field-error[hidden] {
  display: none !important;
}

.field-error--group {
  grid-column: 1 / -1;
}

.birth-block .field-error--group {
  margin-top: 8px;
}

.field-block:has(.field-input[aria-invalid="true"]) .field-control {
  border-color: #d64550;
  box-shadow: 0 0 0 3px rgba(214, 69, 80, 0.12);
}

.birth-block {
  display: flex;
  flex-direction: column;
}

.birth-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  direction: rtl;
}

.birth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.birth-segment {
  display: flex;
  flex-direction: column;
}

.birth-label {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  direction: rtl;
}

.birth-segment .segment {
  --birth-field-h: 54px;
  height: var(--birth-field-h);
  min-height: 44px;
  max-height: 56px;
  border-radius: 14px;
  border: 1px solid #d7e8dc;
  box-shadow: none;
  background: #fff;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  box-sizing: border-box;
}

@supports (height: 1cqi) {
  .birth-segment .segment {
    --birth-field-h: clamp(44px, 13.85cqi, 54px);
    padding-inline: clamp(8px, 3cqi, 12px);
    font-size: clamp(14px, 4.1cqi, 16px);
  }
}

.birth-segment:focus-within .segment {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 52, 68, 0.14);
}

.birth-segment .segment:not(:placeholder-shown) {
  background: var(--brand-soft);
  border-color: rgba(36, 52, 68, 0.25);
}

.birth-segment .segment[aria-invalid="true"] {
  border-color: #d64550;
  box-shadow: 0 0 0 3px rgba(214, 69, 80, 0.12);
}

/* أزرار وطبقات الدردشة: نسخة صغيرة داخل صفحة pay فقط */
body[data-page="pay"] .mobile-app-shell__overlays .sw-chat-button {
  padding: 10px 12px;
  border-radius: 16px;
  gap: 8px;
  background: var(--brand);
  font-size: 13px;
  box-shadow: none;
}

body[data-page="pay"] .mobile-app-shell__overlays .sw-chat-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
}

.mobile-app-shell__overlays .sw-chat-toasts {
  padding: 0;
}

/* Screen 2 bottom nav */
.bottom-nav {
  height: 78px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.nav-item {
  flex: 1 1 0;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.nav-item svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item svg,
.nav-item svg * {
  stroke: currentColor;
  fill: none;
}

.nav-item.is-active {
  color: var(--brand);
}

.loading-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid var(--brand-soft);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-title {
  font-size: 15px;
  color: var(--brand-2);
  font-weight: 800;
  line-height: 1.5;
}

.loading-text {
  max-width: 22em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.8;
}

/* Screen 3 */
.verify-title {
  margin-top: 78px;
  text-align: center;
  font-size: 15px;
  color: var(--brand-2);
  font-weight: 900;
}

.otp-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  text-align: center;
}

.otp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 10px;
}

.otp-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.otp-icon svg,
.otp-icon svg * {
  stroke: currentColor;
  fill: none;
}

.otp-title {
  margin: 0;
  font-size: 15px;
  color: var(--brand-2);
  font-weight: 800;
}

.otp-lead {
  margin: 8px 0 0;
  max-width: 22em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.8;
}

.otp-phone {
  margin: 4px 0 0;
  min-height: 1.4em;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: 0.08em;
}

.otp-phone:empty {
  display: none;
}

.otp-label {
  margin-top: 22px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.otp-slots {
  position: relative;
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.otp-slots span {
  width: 32px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.otp-slots.is-invalid span {
  box-shadow: 0 0 0 2px #d64550, var(--shadow);
}

.otp-entry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
}

.otp-note {
  margin: 16px 0 0;
  max-width: 24em;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 600;
}

.otp-body .primary-btn {
  margin-top: 22px;
}

.otp-body .resend-link {
  margin-top: 14px;
}

.otp-body .resend-link:disabled {
  color: var(--muted);
  cursor: default;
}

.lock-badge {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 10px;
  color: var(--brand);
}

.lock-badge svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lock-badge svg,
.lock-badge svg * {
  stroke: currentColor;
  fill: none;
}

.verify-text {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 600;
}

.screen[data-pay-panel="pay-confirm"] .verify-text {
  /* شاشة التهنئة: تكبير النص + بوكس واضح */
  font-size: 20px;
  color: var(--text);
  background: #fff;
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: var(--shadow);
  max-width: min(460px, 100%);
  margin: 18px auto 0;
}

.code-box {
  width: 100%;
  margin-top: 16px;
  background: #fff;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: none;
  outline: none;
  display: block;
  text-align: center;
  padding: 0 10px;
  color: var(--text);
  font-size: 21px;
  letter-spacing: 8px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.code-box::placeholder {
  color: var(--muted);
  opacity: 1;
}

.resend-link {
  margin-top: 16px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  text-align: center;
}

.resend-link:active {
  transform: translateY(1px);
}

/* Register success screen (temporary 3s) */
.register-success-body {
  /* نوسّع الهامش العلوي شوي لأن الهيدر يبقى موجود */
  padding: 44px var(--side-pad) 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
}

.reg-success-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.reg-success-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(32, 48, 64, 0.18);
}

.reg-success-pill svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reg-success-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--brand);
}

.reg-success-sub {
  margin: 0;
  max-width: 22em;
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
  line-height: 1.8;
}

.reg-success-sub strong {
  color: var(--text);
}

.reg-success-progress {
  width: min(360px, 100%);
  margin-top: 4px;
}

.reg-success-progress__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e6eef3;
  overflow: hidden;
  direction: ltr; /* عشان التقدّم يمشي من اليسار لليمين */
}

.reg-success-progress__fill {
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
}

.reg-success-note {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 9px;
}

/* Persistent privacy footer (shown on all flow screens) */
.flow-privacy-footer {
  width: 100%;
  padding: 4px var(--side-pad) max(72px, calc(env(safe-area-inset-bottom) + 64px));
  box-sizing: border-box;
}

.secure-panel {
  width: min(420px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d7e8dc;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(36, 52, 68, 0.05);
  padding: 10px 12px 8px;
}

.secure-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: right;
  direction: rtl;
}

.secure-panel__seal {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(36, 52, 68, 0.18);
}

.secure-panel__seal svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secure-panel__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.secure-panel__copy strong {
  display: block;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.secure-panel__copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.65;
}

.secure-badges {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px 4px 2px;
  border-top: 1px solid #d7dee4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.secure-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.secure-badge__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef7f1;
  color: var(--brand);
  display: grid;
  place-items: center;
}

.secure-badge__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secure-badge__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.secure-badge__text b {
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
}

.secure-badge__text small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

/* Loading screen layout spacing */
#screen-loading .primary-btn {
  margin-top: 0;
}

.nt-body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

.nt-body .demo-badge,
.nt-body .skip-link:not(:focus) {
  display: none;
}

.nt-body main#main-content {
  padding: 0;
  max-width: none;
}

.nt-app .screen:not([hidden]) {
  display: flex;
}

.card-field:has([aria-invalid="true"]),
.segment-input[aria-invalid="true"],
.code-input[aria-invalid="true"] {
  box-shadow: 0 0 0 2px #d64550, var(--shadow);
}

.nt-body .sw-chat-badge { font-size: 8px; }
.nt-body .sw-chat-modal__title { font-size: 11px; }
.nt-body .sw-chat-message__badge,
.nt-body .sw-chat-message__from { font-size: 8px; }
.nt-body .sw-chat-bubble { font-size: 10px; }
.nt-body .sw-chat-toast { font-size: 10px; }
.nt-body .sw-chat-toast__kicker { font-size: 8px; }
.nt-body .sw-chat-toast__title { font-size: 11px; }
.nt-body .sw-chat-toast__close { font-size: 15px; }

.flow-error {
  margin: 12px 0 0;
  color: #b43a45;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  direction: rtl;
}

.flow-error[hidden] {
  display: none !important;
}

.primary-btn:disabled {
  opacity: 0.65;
}

.nt-body .sw-chat-button {
  background: var(--brand);
  box-shadow: 0 16px 40px rgba(32, 48, 64, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
    border-top-color: var(--brand);
    opacity: 0.85;
  }
  .screen,
  .screen.active,
  .screen:not([hidden]) {
    animation: none;
    transition: none;
  }
}


