:root {
  --naqqal-primary: #075985;
  --naqqal-primary-dark: #0c4a6e;
  --naqqal-accent: #0ea5e9;
  --naqqal-accent-soft: #e0f2fe;
  --naqqal-ink: #0f172a;
  --naqqal-muted: #64748b;
  --naqqal-line: #e2e8f0;
  --naqqal-surface: #ffffff;
  --naqqal-bg: #f8fafc;
  --naqqal-success: #16a34a;
  --naqqal-radius: 20px;
  --naqqal-shadow: 0 16px 45px rgba(15, 23, 42, .09);
  --naqqal-shadow-hover: 0 22px 55px rgba(7, 89, 133, .16);
}

html {
  scroll-behavior: smooth;
}

body.naqqal-polished-ui {
  overflow-x: hidden;
  color: var(--naqqal-ink);
  background: var(--naqqal-bg);
  font-family: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.naqqal-polished-ui a,
.naqqal-polished-ui button,
.naqqal-polished-ui input,
.naqqal-polished-ui select,
.naqqal-polished-ui textarea {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
    box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.naqqal-polished-ui a:focus-visible,
.naqqal-polished-ui button:focus-visible,
.naqqal-polished-ui input:focus-visible,
.naqqal-polished-ui select:focus-visible,
.naqqal-polished-ui textarea:focus-visible {
  outline: 3px solid rgba(14, 165, 233, .28) !important;
  outline-offset: 3px;
}

/* Header and navigation */
.naqqal-polished-ui .site-header,
.naqqal-polished-ui .ast-primary-header-bar {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: rgba(226, 232, 240, .9);
  box-shadow: 0 5px 25px rgba(15, 23, 42, .05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.naqqal-polished-ui .main-header-menu > .menu-item > .menu-link {
  min-height: 62px;
  color: var(--naqqal-ink);
  font-weight: 700;
  border-radius: 12px;
}

.naqqal-polished-ui .main-header-menu > .menu-item > .menu-link:hover,
.naqqal-polished-ui .main-header-menu > .current-menu-item > .menu-link {
  color: var(--naqqal-primary);
  background: var(--naqqal-accent-soft);
}

.naqqal-polished-ui .ast-button-wrap .menu-toggle.main-header-menu-toggle {
  border: 1px solid var(--naqqal-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

/* Page rhythm */
.naqqal-polished-ui .site-content {
  min-height: 60vh;
}

.naqqal-polished-ui .elementor-section.elementor-section-boxed > .elementor-container,
.naqqal-polished-ui .e-con-boxed > .e-con-inner {
  width: min(100% - 32px, 1180px);
}

.naqqal-polished-ui h1,
.naqqal-polished-ui h2,
.naqqal-polished-ui h3 {
  color: var(--naqqal-ink);
  line-height: 1.35;
  letter-spacing: -.02em;
}

.naqqal-polished-ui h1 {
  font-weight: 900;
}

.naqqal-polished-ui h2,
.naqqal-polished-ui h3 {
  font-weight: 800;
}

/* Service cards and Elementor containers */
.naqqal-polished-ui .elementor-widget-image-box,
.naqqal-polished-ui .elementor-widget-icon-box {
  height: 100%;
}

.naqqal-polished-ui .elementor-image-box-wrapper,
.naqqal-polished-ui .elementor-icon-box-wrapper {
  height: 100%;
}

.naqqal-polished-ui .elementor-widget-button .elementor-button,
.naqqal-polished-ui .wp-element-button,
.naqqal-polished-ui form button[type="submit"],
.naqqal-polished-ui input[type="submit"],
.naqqal-polished-ui .button,
.naqqal-polished-ui .woocommerce a.button,
.naqqal-polished-ui .woocommerce button.button {
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--naqqal-primary), var(--naqqal-accent));
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 9px 22px rgba(7, 89, 133, .2);
}

.naqqal-polished-ui .elementor-widget-button .elementor-button:hover,
.naqqal-polished-ui .wp-element-button:hover,
.naqqal-polished-ui form button[type="submit"]:hover,
.naqqal-polished-ui input[type="submit"]:hover,
.naqqal-polished-ui .button:hover,
.naqqal-polished-ui .woocommerce a.button:hover,
.naqqal-polished-ui .woocommerce button.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(7, 89, 133, .28);
}

.naqqal-polished-ui button.is-loading,
.naqqal-polished-ui input[type="submit"].is-loading {
  cursor: wait;
  opacity: .78;
  transform: none;
}

/* Forms, checkout and account pages */
.naqqal-polished-ui form {
  accent-color: var(--naqqal-primary);
}

.naqqal-polished-ui input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.naqqal-polished-ui select,
.naqqal-polished-ui textarea,
.naqqal-polished-ui .select2-container .select2-selection--single {
  min-height: 50px;
  width: 100%;
  padding: 10px 14px;
  color: var(--naqqal-ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}

.naqqal-polished-ui textarea {
  min-height: 120px;
  resize: vertical;
}

.naqqal-polished-ui input:focus,
.naqqal-polished-ui select:focus,
.naqqal-polished-ui textarea:focus,
.naqqal-polished-ui .select2-container--focus .select2-selection--single {
  border-color: var(--naqqal-accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}

.naqqal-polished-ui label,
.naqqal-polished-ui .ff-el-input--label label {
  margin-bottom: 7px;
  color: #334155;
  font-weight: 700;
}

.naqqal-polished-ui .fluentform,
.naqqal-polished-ui .um-form,
.naqqal-polished-ui .woocommerce form.login,
.naqqal-polished-ui .woocommerce form.register,
.naqqal-polished-ui .woocommerce-checkout-review-order,
.naqqal-polished-ui .woocommerce-MyAccount-content {
  padding: clamp(20px, 4vw, 36px);
  background: var(--naqqal-surface);
  border: 1px solid var(--naqqal-line);
  border-radius: var(--naqqal-radius);
  box-shadow: var(--naqqal-shadow);
}

.naqqal-polished-ui .ff-el-group {
  margin-bottom: 18px;
}

.naqqal-polished-ui .ff-el-is-error .text-danger,
.naqqal-polished-ui .woocommerce-error {
  color: #b91c1c;
}

.naqqal-polished-ui .woocommerce-message,
.naqqal-polished-ui .woocommerce-info,
.naqqal-polished-ui .woocommerce-error {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--naqqal-line);
  border-right: 4px solid var(--naqqal-accent);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.naqqal-polished-ui .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--naqqal-line);
  border-radius: 16px;
}

.naqqal-polished-ui .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 11px 14px;
  color: #334155;
  border-radius: 10px;
  font-weight: 700;
}

.naqqal-polished-ui .woocommerce-MyAccount-navigation .is-active a,
.naqqal-polished-ui .woocommerce-MyAccount-navigation a:hover {
  color: var(--naqqal-primary);
  background: var(--naqqal-accent-soft);
}

/* Maps and route summaries */
.naqqal-polished-ui [id*="map"],
.naqqal-polished-ui .leaflet-container,
.naqqal-polished-ui .gm-style {
  overflow: hidden;
  border-radius: 18px;
}

.naqqal-polished-ui [id*="map"] {
  border: 1px solid var(--naqqal-line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.naqqal-polished-ui [class*="price"],
.naqqal-polished-ui [class*="total"],
.naqqal-polished-ui [class*="route-summary"] {
  font-variant-numeric: tabular-nums;
}

/* Tables and order history */
.naqqal-polished-ui .woocommerce table.shop_table,
.naqqal-polished-ui table {
  overflow: hidden;
  width: 100%;
  background: #fff;
  border: 1px solid var(--naqqal-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
}

.naqqal-polished-ui table th {
  padding: 14px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 800;
}

.naqqal-polished-ui table td {
  padding: 14px;
  border-color: var(--naqqal-line);
}

/* Popup and notification polish */
.naqqal-polished-ui .pum-container {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 22px !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24) !important;
}

.naqqal-polished-ui .pum-close {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .16) !important;
}

/* Footer */
.naqqal-polished-ui .site-footer,
.naqqal-polished-ui .site-primary-footer-wrap {
  color: #cbd5e1;
  background: #0f172a;
}

.naqqal-polished-ui .site-footer a {
  color: #e0f2fe;
}

.naqqal-polished-ui .site-footer a:hover {
  color: #fff;
}

/* Mobile */
@media (max-width: 921px) {
  .naqqal-polished-ui .ast-builder-menu-mobile .main-navigation {
    padding: 12px;
    background: #fff;
    border: 1px solid var(--naqqal-line);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--naqqal-shadow);
  }

  .naqqal-polished-ui .ast-builder-menu-mobile .menu-item > .menu-link {
    min-height: 48px;
    margin: 3px 0;
    border-radius: 10px;
  }
}

@media (max-width: 767px) {
  :root {
    --naqqal-radius: 16px;
  }

  body.naqqal-polished-ui {
    font-size: 15px;
  }

  .naqqal-polished-ui .elementor-section.elementor-section-boxed > .elementor-container,
  .naqqal-polished-ui .e-con-boxed > .e-con-inner {
    width: min(100% - 22px, 1180px);
  }

  .naqqal-polished-ui h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .naqqal-polished-ui h2 {
    font-size: clamp(22px, 7vw, 31px);
  }

  .naqqal-polished-ui .fluentform,
  .naqqal-polished-ui .um-form,
  .naqqal-polished-ui .woocommerce form.login,
  .naqqal-polished-ui .woocommerce form.register,
  .naqqal-polished-ui .woocommerce-checkout-review-order,
  .naqqal-polished-ui .woocommerce-MyAccount-content {
    padding: 18px;
  }

  .naqqal-polished-ui .elementor-widget-button,
  .naqqal-polished-ui .elementor-widget-button .elementor-button,
  .naqqal-polished-ui input[type="submit"],
  .naqqal-polished-ui form button[type="submit"] {
    width: 100%;
  }

  .naqqal-polished-ui table,
  .naqqal-polished-ui .woocommerce table.shop_table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .naqqal-polished-ui *,
  .naqqal-polished-ui *::before,
  .naqqal-polished-ui *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* App-like route loading */
.naqqal-route-loader,
.naqqal-driver-wait,
.naqqal-service-sheet,
.naqqal-welcome,
.naqqal-offer-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.naqqal-route-loader.is-visible,
.naqqal-driver-wait.is-visible,
.naqqal-service-sheet.is-visible,
.naqqal-welcome.is-visible,
.naqqal-offer-popup.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* One-time customer offer */
.naqqal-offer-popup { padding: 18px; }
.naqqal-offer-popup__backdrop { position: absolute; inset: 0; width: 100%; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: rgba(2, 24, 43, .66) !important; box-shadow: none !important; }
.naqqal-offer-popup__card { position: relative; z-index: 2; width: min(100%, 420px); overflow: hidden; padding: 30px 24px 24px; text-align: center; background: linear-gradient(155deg, #fff 0%, #f0f9ff 62%, #e0f2fe 100%); border: 1px solid rgba(255,255,255,.8); border-radius: 26px; box-shadow: 0 28px 80px rgba(2, 24, 43, .34); transform: translateY(18px) scale(.97); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.naqqal-offer-popup.is-visible .naqqal-offer-popup__card { transform: translateY(0) scale(1); }
.naqqal-offer-popup__card::before { content: ''; position: absolute; top: -80px; right: -70px; width: 190px; height: 190px; background: rgba(14, 165, 233, .12); border-radius: 50%; }
.naqqal-offer-popup__close { position: absolute; top: 14px; left: 14px; z-index: 3; width: 36px; min-height: 36px !important; padding: 0 !important; color: #475569 !important; background: rgba(255,255,255,.86) !important; border-radius: 50% !important; box-shadow: none !important; }
.naqqal-offer-popup__icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 10px; color: #fff; background: linear-gradient(135deg, var(--naqqal-primary), var(--naqqal-accent)); border-radius: 21px; box-shadow: 0 12px 28px rgba(2, 132, 199, .28); font-size: 34px; font-weight: 900; transform: rotate(-5deg); }
.naqqal-offer-popup__badge { display: inline-flex; padding: 5px 11px; color: #075985; background: #e0f2fe; border-radius: 999px; font-size: 11px; font-weight: 900; }
.naqqal-offer-popup h2 { margin: 9px 0 4px; color: var(--naqqal-ink); font-size: 31px; font-weight: 950; }
.naqqal-offer-popup__card > p { margin: 0 auto 16px; color: var(--naqqal-muted); font-size: 14px; }
.naqqal-offer-popup__code { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px !important; padding: 10px 15px !important; color: var(--naqqal-primary) !important; background: #fff !important; border: 2px dashed #7dd3fc !important; border-radius: 15px !important; box-shadow: none !important; }
.naqqal-offer-popup__code b { direction: ltr; font-size: 21px; letter-spacing: 1.5px; }
.naqqal-offer-popup__code span { padding: 6px 9px; color: #fff; background: var(--naqqal-primary); border-radius: 9px; font-size: 11px; font-weight: 800; }
.naqqal-offer-popup__code.is-copied span { background: #059669; }
.naqqal-offer-popup__code.is-copied span::after { content: ' ✓'; }
.naqqal-offer-popup__terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 14px; margin: 11px 0 15px; color: #64748b; font-size: 11px; }
.naqqal-offer-popup__action { width: 100%; min-height: 50px !important; color: #fff !important; background: linear-gradient(135deg, var(--naqqal-primary), #0284c7) !important; border-radius: 14px !important; box-shadow: 0 10px 22px rgba(3, 105, 161, .22) !important; font-weight: 900 !important; }

/* The former site-wide welcome snippet is replaced only while this plugin is active. */
.naqqal-polished-ui #naqqal-opening-overlay {
  display: none !important;
}

/* Smart welcome bottom sheet */
.naqqal-welcome {
  align-items: end;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.naqqal-welcome__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  background: rgba(15, 23, 42, .5) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.naqqal-welcome__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  max-height: calc(100vh - 22px);
  overflow-y: auto;
  padding: 12px 22px calc(25px + env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -24px 70px rgba(15, 23, 42, .24);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.naqqal-welcome.is-visible .naqqal-welcome__panel {
  transform: translateY(0);
}

.naqqal-welcome__handle {
  display: block;
  width: 46px;
  height: 5px;
  margin: 0 auto 8px;
  background: #cbd5e1;
  border-radius: 999px;
}

.naqqal-welcome__close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 36px;
  min-height: 36px !important;
  padding: 0 !important;
  color: #475569 !important;
  background: #eef2f7 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.naqqal-welcome__visual {
  position: relative;
  width: 150px;
  height: 66px;
  margin: 0 auto 4px;
  overflow: hidden;
}

.naqqal-welcome__truck {
  position: absolute;
  right: 4px;
  bottom: 12px;
  z-index: 2;
  font-size: 43px;
  line-height: 1;
  animation: naqqal-welcome-drive 2.2s ease-in-out infinite;
  filter: drop-shadow(0 7px 7px rgba(15, 23, 42, .16));
}

.naqqal-welcome__line {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #cbd5e1, var(--naqqal-accent), #cbd5e1);
  border-radius: 999px;
}

.naqqal-welcome__badge {
  display: inline-flex;
  padding: 6px 12px;
  color: var(--naqqal-primary);
  background: var(--naqqal-accent-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.naqqal-welcome h2 {
  margin: 10px 0 6px;
  font-size: clamp(25px, 6vw, 34px);
  font-weight: 900;
}

.naqqal-welcome__panel > p {
  max-width: 430px;
  margin: 0 auto 16px;
  color: var(--naqqal-muted);
  font-size: 14px;
}

.naqqal-welcome__services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.naqqal-welcome__services a {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 5px;
  color: var(--naqqal-ink);
  background: #fff;
  border: 1px solid var(--naqqal-line);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
}

.naqqal-welcome__services a:hover {
  color: var(--naqqal-primary);
  border-color: #bae6fd;
  transform: translateY(-2px);
}

.naqqal-welcome__services span {
  font-size: 25px;
  line-height: 1;
}

.naqqal-welcome__services b {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naqqal-welcome__primary {
  width: 100%;
}

.naqqal-welcome__login {
  display: inline-block;
  margin-top: 12px;
  color: var(--naqqal-primary);
  font-size: 12px;
  font-weight: 800;
}

@keyframes naqqal-welcome-drive {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-96px); }
}

/* My Orders application timeline */
.naqqal-polished-ui .nq-orders-page {
  padding-bottom: 18px;
}

.naqqal-polished-ui .nq-order-card {
  overflow: hidden;
}

.naqqal-order-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 16px;
  padding: 15px 8px 6px;
  background: #f8fafc;
  border: 1px solid var(--naqqal-line);
  border-radius: 15px;
}

.naqqal-order-timeline::before {
  position: absolute;
  top: 23px;
  right: calc(8.33% + 8px);
  left: calc(8.33% + 8px);
  height: 3px;
  content: "";
  background: #dbe4ee;
  border-radius: 999px;
}

.naqqal-order-timeline__step {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.naqqal-order-timeline__step i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: #dbe4ee;
  border: 4px solid #f8fafc;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cbd5e1;
}

.naqqal-order-timeline__step.is-done i {
  background: var(--naqqal-success);
  box-shadow: 0 0 0 1px var(--naqqal-success);
}

.naqqal-order-timeline__step.is-done i::after {
  color: #fff;
  content: "✓";
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.naqqal-order-timeline__step.is-current i {
  background: var(--naqqal-accent);
  box-shadow: 0 0 0 1px var(--naqqal-accent), 0 0 0 6px rgba(14, 165, 233, .12);
  animation: naqqal-current-step 1.5s ease-in-out infinite;
}

.naqqal-order-timeline__step small {
  overflow: hidden;
  width: 100%;
  color: #94a3b8;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naqqal-order-timeline__step.is-done small,
.naqqal-order-timeline__step.is-current small {
  color: #334155;
  font-weight: 900;
}

.naqqal-order-timeline.is-stopped {
  opacity: .58;
}

.naqqal-polished-ui .nq-order-status.naqqal-status-waiting-driver {
  color: #075985;
  background: #e0f2fe;
}

.naqqal-card-eta,
.naqqal-order-eta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 14px;
  color: #075985;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 14px;
}

.naqqal-card-eta > span,
.naqqal-order-eta > span {
  font-size: 23px;
}

.naqqal-card-eta small,
.naqqal-order-eta small {
  display: block;
  color: #64748b;
  font-size: 10px;
}

.naqqal-card-eta strong,
.naqqal-order-eta strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.naqqal-card-invoice {
  color: #334155 !important;
  background: #fff !important;
  border: 1px solid #cbd5e1;
  box-shadow: none !important;
}

.naqqal-order-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--naqqal-line);
  border-radius: 16px;
}

.naqqal-order-extras .naqqal-order-eta {
  margin: 0;
}

@media (max-width: 600px) {
  .naqqal-order-extras {
    align-items: stretch;
    flex-direction: column;
  }

  .naqqal-order-extras .naqqal-invoice-button {
    width: 100%;
    text-align: center;
  }
}

@keyframes naqqal-current-step {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* Tracking page polish */
.naqqal-polished-ui .nq-track-wrap {
  width: min(100% - 24px, 1180px);
  margin-inline: auto;
  padding-bottom: 26px;
}

.naqqal-polished-ui .nq-track-hero,
.naqqal-polished-ui .nq-track-grid > * {
  border-radius: 20px;
  box-shadow: var(--naqqal-shadow);
}

.naqqal-polished-ui .nq-track-refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--naqqal-primary);
  background: var(--naqqal-accent-soft);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.naqqal-polished-ui .nq-track-refresh-dot {
  width: 8px;
  height: 8px;
  background: var(--naqqal-success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .12);
  animation: naqqal-current-step 1.5s ease-in-out infinite;
}

.naqqal-polished-ui .nq-track-refresh-now.is-refreshing {
  opacity: .72;
  pointer-events: none;
}

.naqqal-polished-ui .nq-track-refresh-now.is-refreshing::before {
  display: inline-block;
  margin-left: 7px;
  content: "↻";
  animation: naqqal-spin .8s linear infinite;
}

@keyframes naqqal-spin {
  to { transform: rotate(360deg); }
}

.naqqal-is-offline .nq-track-refresh-status {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.naqqal-is-offline .nq-track-refresh-dot {
  background: #dc2626;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, .1);
  animation: none;
}

@media (max-width: 560px) {
  .naqqal-order-timeline {
    overflow-x: auto;
    grid-template-columns: repeat(6, 64px);
    justify-content: start;
    padding-inline: 10px;
    scrollbar-width: none;
  }

  .naqqal-order-timeline::-webkit-scrollbar {
    display: none;
  }

  .naqqal-order-timeline::before {
    right: 42px;
    left: 42px;
  }

  .naqqal-order-timeline__step small {
    font-size: 8px;
  }
}

.naqqal-route-loader__card {
  width: min(90vw, 340px);
  padding: 28px 24px 24px;
  text-align: center;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.naqqal-moving-service {
  position: relative;
  height: 68px;
  margin-bottom: 10px;
  overflow: hidden;
}

.naqqal-moving-service__vehicle {
  position: absolute;
  right: 8%;
  bottom: 12px;
  z-index: 2;
  display: block;
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 7px 7px rgba(15, 23, 42, .18));
  animation: naqqal-drive 1.55s ease-in-out infinite;
}

.naqqal-moving-service__road {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 5px;
  overflow: hidden;
  background: #cbd5e1;
  border-radius: 999px;
}

.naqqal-moving-service__road::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(90deg, transparent 0 18px, #fff 18px 34px);
  animation: naqqal-road 1s linear infinite;
}

.naqqal-route-loader__title,
.naqqal-driver-wait__title {
  display: block;
  color: var(--naqqal-ink);
  font-size: 18px;
  font-weight: 900;
}

.naqqal-route-loader__hint,
.naqqal-driver-wait__text {
  display: block;
  margin-top: 6px;
  color: var(--naqqal-muted);
  font-size: 13px;
}

/* Driver search state */
.naqqal-driver-wait__sheet {
  position: relative;
  width: min(92vw, 430px);
  padding: 34px 24px 26px;
  text-align: center;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
}

.naqqal-driver-wait__close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  min-height: 36px !important;
  padding: 0 !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.naqqal-radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  margin: 4px auto 20px;
  background: radial-gradient(circle, #fff 0 28%, #e0f2fe 29% 48%, #f0f9ff 49% 70%, transparent 71%);
  border-radius: 50%;
}

.naqqal-radar__pulse {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid var(--naqqal-accent);
  border-radius: 50%;
  animation: naqqal-pulse 2.2s ease-out infinite;
}

.naqqal-radar__pulse--delay {
  animation-delay: 1.1s;
}

.naqqal-radar__vehicle {
  position: relative;
  z-index: 2;
  font-size: 38px;
  filter: drop-shadow(0 6px 8px rgba(15, 23, 42, .18));
}

.naqqal-driver-wait__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 24px;
  color: #94a3b8;
  font-size: 10px;
}

.naqqal-driver-wait__steps span::before {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 auto 7px;
  content: "";
  background: #cbd5e1;
  border-radius: 50%;
}

.naqqal-driver-wait__steps .is-active {
  color: var(--naqqal-primary);
  font-weight: 800;
}

.naqqal-driver-wait__steps .is-active::before {
  background: var(--naqqal-success);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .12);
}

/* Mobile application navigation */
.naqqal-mobile-nav {
  display: none;
}

.naqqal-service-sheet {
  align-items: end;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.naqqal-service-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  background: rgba(15, 23, 42, .42) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.naqqal-service-sheet__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  padding: 12px 18px calc(26px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 55px rgba(15, 23, 42, .18);
  transform: translateY(100%);
  transition: transform .26s ease;
}

.naqqal-service-sheet.is-visible .naqqal-service-sheet__panel {
  transform: translateY(0);
}

.naqqal-service-sheet__handle {
  display: block;
  width: 46px;
  height: 5px;
  margin: 0 auto 16px;
  background: #cbd5e1;
  border-radius: 999px;
}

.naqqal-service-sheet__panel > strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 900;
}

.naqqal-service-sheet__grid {
  display: grid;
  gap: 10px;
}

.naqqal-service-sheet__grid a {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 13px;
  color: var(--naqqal-ink);
  background: #f8fafc;
  border: 1px solid var(--naqqal-line);
  border-radius: 16px;
}

.naqqal-service-sheet__grid a > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: var(--naqqal-accent-soft);
  border-radius: 13px;
}

.naqqal-service-sheet__grid b {
  font-size: 15px;
}

.naqqal-service-sheet__grid small {
  color: var(--naqqal-muted);
}

/* Toast messages */
.naqqal-toast-region {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 1000000;
  display: grid;
  gap: 8px;
  width: min(calc(100vw - 32px), 360px);
  pointer-events: none;
}

.naqqal-toast {
  padding: 13px 15px;
  color: #fff;
  background: #0f172a;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, .22);
  transform: translateY(14px);
  opacity: 0;
}

.naqqal-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.naqqal-toast--success {
  background: #166534;
}

.naqqal-toast--error {
  background: #991b1b;
}

@keyframes naqqal-drive {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0); }
  50% { transform: translateX(-185px) translateY(-2px) rotate(-1deg); }
}

@keyframes naqqal-road {
  to { transform: translateX(-34px); }
}

@keyframes naqqal-pulse {
  0% { transform: scale(.55); opacity: .75; }
  100% { transform: scale(2.45); opacity: 0; }
}

@media (max-width: 767px) {
  body.naqqal-polished-ui {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .naqqal-mobile-nav {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 99990;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    min-height: 64px;
    padding: 6px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 19px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .18);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  .naqqal-mobile-nav a,
  .naqqal-mobile-nav button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 50px !important;
    padding: 4px !important;
    color: #64748b !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .naqqal-mobile-nav a.is-current {
    color: var(--naqqal-primary) !important;
    background: var(--naqqal-accent-soft) !important;
  }

  .naqqal-mobile-nav span {
    font-size: 22px;
    line-height: 1;
  }

  .naqqal-mobile-nav small {
    font-size: 9px;
    font-weight: 800;
  }

  .naqqal-mobile-nav .naqqal-mobile-nav__request {
    width: 54px;
    height: 54px;
    margin: -18px auto 0;
    color: #fff !important;
    background: linear-gradient(135deg, var(--naqqal-primary), var(--naqqal-accent)) !important;
    border: 4px solid #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 25px rgba(7, 89, 133, .28) !important;
  }

  .naqqal-mobile-nav__request small {
    color: #fff;
  }

  .naqqal-toast-region {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }

  /* Keep floating WhatsApp and language controls clear of the app navigation. */
  .naqqal-polished-ui #ht-ctc-chat,
  .naqqal-polished-ui .ht-ctc-chat,
  .naqqal-polished-ui .ctc-analytics,
  .naqqal-polished-ui [class*="ht-ctc-chat"] {
    right: 14px !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    left: auto !important;
    z-index: 99980 !important;
  }

  .naqqal-polished-ui .trp-floater-ls,
  .naqqal-polished-ui #trp-floater-ls,
  .naqqal-polished-ui .trp-language-switcher,
  .naqqal-polished-ui [class*="trp-floater"] {
    right: auto !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    left: 14px !important;
    z-index: 99979 !important;
  }

  .naqqal-polished-ui .trp-floater-ls,
  .naqqal-polished-ui #trp-floater-ls {
    overflow: hidden;
    max-width: min(46vw, 170px);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
  }
}
