/* ==========================================================
   Store & Move – Booking wizard
   Brand taken from store-move.com: charcoal, lime cube, yellow hexagon,
   cream backgrounds, Poppins + Lora.
   ========================================================== */
:root {
  --ink: #2B2E33;
  --ink-2: #181a1d;
  --ink-soft: #4a4e55;
  --muted: #847E6C;
  --cream: #F8F5EC;
  --sand: #F1ECDC;
  --line: #DDD5BE;
  --white: #ffffff;
  --lime: #CDE00F;
  --lime-soft: #EEF5B8;
  --green: #88C426;
  --green-dark: #5E8F12;
  --yellow: #FFE100;
  --gold: #C6980B;
  --danger: #a63a2b;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43,46,51,.06), 0 8px 24px rgba(43,46,51,.08);
  --shadow-lg: 0 20px 50px rgba(43,46,51,.18);
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(205,224,15,.18), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(255,225,0,.12), transparent 60%),
    var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button, input, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--ink);
  color: var(--white);
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 40px; height: auto; transition: transform .6s var(--spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand em { font-family: var(--serif); font-weight: 500; color: var(--lime); }
.topbar-end { display: flex; align-items: center; gap: 18px; }
.topbar-help { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
.topbar-help svg { color: var(--lime); font-size: 16px; }

/* ---------- Shell ---------- */
.shell { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 64px; }

.hero { padding: 40px 0 24px; max-width: 720px; animation: rise .8s var(--ease) both; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--green-dark);
}
.eyebrow::before { content: ''; width: 10px; height: 11px; background: var(--lime); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 700; margin: 10px 0 12px; }
.script { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--green-dark); position: relative; white-space: nowrap; }
.script::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; z-index: -1;
  background: var(--yellow); opacity: .7; border-radius: 4px;
  transform-origin: left; animation: underline 1s .5s var(--ease) both;
}
.lead { font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-soft); }

/* ---------- Progress ---------- */
.progress { margin: 8px 0 24px; }
.progress-mobile { display: none; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
}
.steps li button {
  width: 100%; border: 0; background: none; padding: 0 0 10px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; text-align: start;
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color .3s;
}
.steps li button:disabled { cursor: default; }
.steps .dot {
  width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--white); border: 1.5px solid var(--line);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  font-size: 12px; font-weight: 600;
  transition: background .35s, border-color .35s, color .35s, transform .35s var(--spring);
}
.steps li.is-current button { color: var(--ink); }
.steps li.is-current .dot { background: var(--ink); color: var(--lime); transform: scale(1.12); }
.steps li.is-done button { color: var(--ink-soft); }
.steps li.is-done .dot { background: var(--lime); color: var(--ink); }
.steps li.is-done .dot svg { font-size: 14px; stroke-width: 3; }
.progress-bar { height: 4px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.progress-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green), var(--lime), var(--yellow));
  border-radius: inherit; transition: width .6s var(--ease);
}

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.layout.no-summary { grid-template-columns: minmax(0, 1fr); }
.layout.no-summary .summary { display: none; }

.wizard {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.4vw, 36px);
  position: relative;
  overflow: hidden;
}

/* ---------- Steps ---------- */
.step { display: none; }
.step.is-active { display: block; }
.step.anim-next { animation: slideInR .5s var(--ease) both; }
.step.anim-prev { animation: slideInL .5s var(--ease) both; }
.step.is-active > * { animation: fadeUp .55s var(--ease) both; }
.step.is-active > *:nth-child(2) { animation-delay: .05s; }
.step.is-active > *:nth-child(3) { animation-delay: .1s; }
.step.is-active > *:nth-child(4) { animation-delay: .15s; }
.step.is-active > *:nth-child(5) { animation-delay: .2s; }
.step.is-active > *:nth-child(n+6) { animation-delay: .25s; }

.step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.step-num {
  font-family: var(--serif); font-style: italic; font-size: 15px; font-weight: 600;
  width: 46px; height: 52px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--lime); color: var(--ink);
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.step-head h2 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; margin-bottom: 4px; }
.step-head p { color: var(--muted); font-size: 14px; }

.block-title { font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.block-title.mt { margin-top: 26px; }

/* ---------- Fields ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field label small { font-weight: 400; color: var(--muted); }
.input-row { display: flex; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--cream); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input-wrap:focus-within { background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(205,224,15,.35); }
.input-wrap.invalid { border-color: var(--danger); animation: shake .4s; }
.input-wrap .ico { position: absolute; inset-inline-start: 14px; font-size: 18px; color: var(--muted); pointer-events: none; }
.input-wrap input {
  width: 100%; border: 0; outline: 0; background: transparent;
  padding-block: 14px; padding-inline: 44px 14px; font-size: 16px; min-height: 52px;
}
.input-wrap input::placeholder, textarea::placeholder { color: #b0a993; }
.input-wrap.phone input { padding-inline-start: 12px; letter-spacing: .04em; }
.prefix {
  display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; height: 30px;
  border-right: 1.5px solid var(--line); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.flag {
  width: 22px; height: 15px; border-radius: 3px; overflow: hidden; position: relative;
  background: linear-gradient(#007A3D 0 33.3%, #fff 33.3% 66.6%, #CE1126 66.6%);
}
.flag::before { content: ''; position: absolute; inset: 0; width: 8px; background: #000; clip-path: polygon(0 0, 100% 33%, 100% 67%, 0 100%); }
textarea {
  width: 100%; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  background: var(--cream); padding: 14px; font-size: 16px; resize: vertical; outline: 0;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
textarea:focus { background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(205,224,15,.35); }
textarea.invalid { border-color: var(--danger); }
.field-foot { display: flex; justify-content: space-between; gap: 10px; }
.counter { font-size: 12px; color: var(--muted); margin-top: 6px; }

.err { color: var(--danger); font-size: 13px; min-height: 0; margin-top: 6px; }
.err:empty { margin: 0; }
.err:not(:empty) { animation: fadeUp .3s var(--ease); }

.verified-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-inline-end: 10px; padding: 4px 10px;
  background: var(--lime-soft); color: var(--green-dark); border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap; animation: pop .45s var(--spring);
}
.verified-badge svg { stroke-width: 3; }

/* OTP */
.otp-box {
  margin-top: 12px; padding: 16px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--lime-soft), #fbfbe9);
  animation: fadeUp .4s var(--ease);
}
.otp-hint { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.otp-inputs { display: flex; gap: 8px; }
.otp-inputs input {
  width: 48px; height: 58px; text-align: center; font-size: 24px; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); outline: 0;
  transition: border-color .2s, transform .2s var(--spring), box-shadow .2s;
}
.otp-inputs input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(205,224,15,.45); transform: translateY(-2px); }
.otp-inputs.ok input { border-color: var(--green); background: var(--lime-soft); }
.otp-inputs.bad input { border-color: var(--danger); animation: shake .4s; }
.otp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.otp-foot .err { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 99px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--spring), background .2s, box-shadow .2s, color .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn svg { font-size: 18px; transition: transform .25s var(--ease); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 6px 18px rgba(43,46,51,.25); }
.btn-primary:hover { background: var(--ink-2); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary.is-final { background: var(--lime); color: var(--ink); box-shadow: 0 8px 22px rgba(136,196,38,.45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:hover svg { transform: translateX(-3px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading { pointer-events: none; }
.btn.loading span { opacity: .6; }
.btn.loading svg { animation: spin .8s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green-dark); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.link-btn.inline { font-size: inherit; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  font-size: 22px; font-weight: 500; cursor: pointer; display: grid; place-items: center; line-height: 1;
  transition: transform .2s var(--spring), border-color .2s, background .2s;
}
.round-btn:hover { border-color: var(--ink); }
.round-btn:active { transform: scale(.9); }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.round-btn.sm { width: 36px; height: 36px; font-size: 20px; }

/* ---------- Size guide ---------- */
.size-guide { background: var(--cream); border-radius: var(--radius); padding: 16px 18px 12px; margin-bottom: 18px; }
.size-guide-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; flex-wrap: wrap; }
.size-guide-top strong { color: var(--ink); font-size: 15px; }
.size-ticks { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 11px; color: var(--muted); margin-top: 4px; }
.size-ticks span { text-align: center; cursor: pointer; transition: color .2s; }
.size-ticks span:first-child { text-align: start; }
.size-ticks span:last-child { text-align: end; }
.size-ticks span.on { color: var(--ink); font-weight: 600; }

input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer;
  --pct: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--green) 0, var(--lime) var(--pct), var(--line) var(--pct));
}
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--lime)); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 28px; margin-top: -10px; border: 0;
  background: var(--ink); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  transition: transform .2s var(--spring);
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type=range]::-moz-range-thumb {
  width: 26px; height: 28px; border: 0; border-radius: 0;
  background: var(--ink); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }

/* ---------- 3D viewer ---------- */
.viewer {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--ink); color: var(--white); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 18px;
}
.stage {
  position: relative; height: 300px; perspective: 1100px; perspective-origin: 50% 30%;
  cursor: grab; touch-action: pan-y; user-select: none;
  background:
    radial-gradient(circle at 50% 70%, rgba(205,224,15,.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 24px);
}
.stage:active { cursor: grabbing; }
.scene {
  position: absolute; left: 50%; top: 58%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(-35deg);
}
.box3d, .floor, .person { position: absolute; transform-style: preserve-3d; }
.box3d { transition: transform .8s var(--ease); }
.face {
  position: absolute; left: 0; top: 0;
  border: 2px solid rgba(255,255,255,.95);
  transition: width .8s var(--ease), height .8s var(--ease), transform .8s var(--ease), margin .8s var(--ease);
  backface-visibility: visible;
}
.f-top { background: var(--lime); }
.f-front { background: var(--green); overflow: hidden; }
.f-back { background: #6d9e1d; }
.f-right { background: #79b020; }
.f-left { background: #79b020; }
.f-bottom { background: #333; border-color: transparent; }
.f-front .door {
  position: absolute; left: 14%; bottom: 0; width: 36%; height: 82%;
  background: repeating-linear-gradient(0deg, var(--lime) 0 5px, #b7cb0c 5px 7px);
  border: 2px solid rgba(255,255,255,.9); border-bottom: 0;
  transition: height .8s var(--ease);
}
.floor {
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  transition: width .8s var(--ease), height .8s var(--ease), transform .8s var(--ease);
}
.person { transition: transform .8s var(--ease); }
.person svg { width: 100%; height: 100%; fill: rgba(255,255,255,.85); stroke: none; display: block; }
.drag-hint, .person-legend {
  position: absolute; bottom: 12px; font-size: 11px; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 6px;
}
.drag-hint { left: 14px; }
.person-legend { right: 14px; }
.viewer-info { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid rgba(255,255,255,.08); }
.vi-name { display: flex; align-items: center; gap: 10px; }
.vi-name h3 { font-size: 22px; font-weight: 700; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 8px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; }
.vi-best { color: rgba(255,255,255,.7); font-size: 13px; min-height: 2.6em; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.dims div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 10px; }
.dims dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.dims dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.vi-price { margin-top: auto; }
.vi-price strong { font-size: 26px; color: var(--lime); font-variant-numeric: tabular-nums; }
.vi-price span { color: rgba(255,255,255,.6); font-size: 13px; }
.flip { animation: flipIn .45s var(--ease); }

/* ---------- Zone cards ---------- */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.zone {
  position: relative; text-align: start; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--spring), background .25s;
}
.zone:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.zone.is-selected { border-color: var(--ink); background: linear-gradient(160deg, var(--lime-soft), var(--white) 70%); box-shadow: 0 0 0 3px var(--lime); }
.zone.is-disabled { opacity: .55; cursor: not-allowed; }
.zone.is-disabled:hover { transform: none; box-shadow: none; }
.zone-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.zone .iso { width: 44px; height: 44px; color: var(--green); }
.zone .iso svg { width: 100%; height: 100%; stroke-width: 1.5; }
.zone .iso .t { fill: var(--lime); stroke: var(--ink); }
.zone .iso .s1 { fill: var(--green); stroke: var(--ink); }
.zone .iso .s2 { fill: #79b020; stroke: var(--ink); }
.zone strong { font-size: 15px; }
.zone .z-dims { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.zone .z-price { font-weight: 700; font-size: 15px; margin-top: auto; }
.zone .z-price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.badge.rec { background: var(--yellow); color: var(--ink); animation: pop .4s var(--spring); }
.badge.full { background: var(--sand); color: var(--muted); }
.zone .check {
  position: absolute; top: -8px; inset-inline-end: -8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--lime); display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--spring);
}
.zone .check svg { stroke-width: 3; font-size: 14px; }
.zone.is-selected .check { transform: scale(1); }

/* ---------- Zone cards (real zones) ---------- */
.zone .z-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; font-size: 22px; transition: background .3s, transform .4s var(--spring); }
.zone.is-selected .z-ico { background: var(--lime); transform: rotate(-6deg); }
.zone .z-meta { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-top: auto; font-variant-numeric: tabular-nums; }
.badge.avail { background: var(--lime-soft); color: var(--green-dark); }
.zone-grid { margin-bottom: 22px; }

/* ---------- Unit map ---------- */
.unit-map-wrap { border: 1.5px solid var(--sand); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; animation: fadeUp .4s var(--ease); }
.unit-map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.unit-map-head .block-title { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin: 10px 0 12px; align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg.free { background: var(--lime); border: 1.5px solid var(--green); }
.lg.leased { background: var(--sand); border: 1.5px solid var(--line); }
.lg.inactive { background: repeating-linear-gradient(45deg, var(--sand) 0 3px, #fff 3px 6px); border: 1.5px solid var(--line); }
.lg-hint { margin-inline-start: auto; }
.unit-map {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px;
  max-height: 340px; overflow: auto; padding: 4px; margin: -4px;
}
.unit-map.swap .u-tile { animation: pop .35s var(--spring) both; }
.u-tile {
  border: 1.5px solid var(--line); background: var(--sand); color: var(--muted); border-radius: 10px;
  padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: not-allowed;
  font-variant-numeric: tabular-nums; transition: transform .2s var(--spring), box-shadow .2s, background .2s;
}
.u-tile .u-no { font-size: 13px; font-weight: 700; line-height: 1.1; letter-spacing: .02em; }
.unit-hint { font-size: 12px; color: var(--muted); margin: 6px 0 12px; }
.u-tile .u-area { font-size: 10px; opacity: .8; }
.u-tile.inactive { background: repeating-linear-gradient(45deg, var(--sand) 0 4px, #fff 4px 8px); }
.u-tile.free { background: var(--lime-soft); border-color: var(--green); color: var(--ink); cursor: pointer; }
.u-tile.free:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(136,196,38,.35); }
.u-tile.is-selected { background: var(--ink); border-color: var(--ink); color: var(--lime); transform: scale(1.08); box-shadow: 0 0 0 3px var(--lime); }
.mini-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.mini-switch input { position: absolute; opacity: 0; }
.ms-track { width: 36px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .25s; flex-shrink: 0; }
.ms-track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.mini-switch input:checked + .ms-track { background: var(--green); }
.mini-switch input:checked + .ms-track::after { transform: translateX(14px); }
[dir=rtl] .mini-switch input:checked + .ms-track::after { transform: translateX(-14px); }
.mini-switch input:focus-visible + .ms-track { outline: 2px solid var(--ink); outline-offset: 2px; }

/* door types on the 3D unit */
.box3d[data-door=double] .door { left: 10%; width: 80%; background:
  linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.9) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), var(--lime); }
.box3d[data-door=shutter] .door { left: 8%; width: 84%; }
.box3d[data-door=single] .door { left: 14%; width: 36%; background: var(--lime); }
.box3d[data-door=open] .face { background: rgba(205,224,15,.08); border-style: dashed; }
.box3d[data-door=open] .f-bottom { background: rgba(205,224,15,.35); border: 2px solid var(--yellow); }
.box3d[data-door=open] .door { display: none; }

/* ---------- Months + calendar ---------- */
.card-block { border: 1.5px solid var(--sand); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.months-control { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 10px; }
.months-value { text-align: center; min-width: 110px; }
.months-value strong { display: block; font-size: 48px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.months-value strong.bump { animation: bump .35s var(--spring); }
.months-value span { color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.chips button {
  border: 1.5px solid var(--line); background: var(--white); border-radius: 99px; padding: 7px 16px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .2s var(--ease);
}
.chips button:hover { border-color: var(--ink); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: var(--lime); }

.calendar { max-width: 420px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-size: 16px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; padding: 6px 0; }
.cal-grid.swap { animation: fadeUp .35s var(--ease); }
.cal-day {
  aspect-ratio: 1; border: 0; background: none; border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 500; position: relative; font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s, transform .2s var(--spring);
}
.cal-day:hover:not(:disabled) { background: var(--lime-soft); }
.cal-day:disabled { color: #cfc8b3; cursor: default; }
.cal-day.today::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--green); }
.cal-day.in-range { background: var(--lime-soft); border-radius: 0; }
.cal-day.selected { background: var(--ink); color: var(--lime); transform: scale(1.06); border-radius: 12px; }
.period-strip {
  display: flex; align-items: center; justify-content: space-around; gap: 10px; margin-top: 14px;
  background: var(--ink); color: var(--white); border-radius: var(--radius-sm); padding: 12px 16px;
  animation: fadeUp .4s var(--ease);
}
.period-strip small { display: block; font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.period-strip strong { font-size: 14px; }
.period-strip svg { color: var(--lime); font-size: 22px; }

/* ---------- Choice cards ---------- */
.choice-grid { display: grid; gap: 12px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--spring), background .25s;
}
.choice-body.row { flex-direction: row; align-items: center; gap: 12px; }
.choice-body.row > span:last-child { display: flex; flex-direction: column; }
.choice:hover .choice-body { transform: translateY(-2px); box-shadow: var(--shadow); }
.choice input:checked + .choice-body { border-color: var(--ink); background: linear-gradient(160deg, var(--lime-soft), var(--white) 70%); box-shadow: 0 0 0 3px var(--lime); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice-body strong { font-size: 15px; }
.choice-body small { color: var(--muted); font-size: 13px; }
.choice.big .choice-body { padding: 20px; }
.choice-illu {
  width: 72px; height: 72px; border-radius: 18px; background: var(--cream); display: grid; place-items: center; margin-bottom: 6px;
  color: var(--ink); transition: background .3s, transform .4s var(--spring);
}
.choice-illu svg { width: 48px; height: 48px; stroke-width: 2.4; }
.choice input:checked + .choice-body .choice-illu { background: var(--lime); transform: rotate(-6deg) scale(1.05); }
.choice-ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; font-size: 22px; flex-shrink: 0;
  transition: background .3s, transform .4s var(--spring);
}
.choice input:checked + .choice-body .choice-ico { background: var(--lime); transform: scale(1.08); }

/* collapsible */
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease), opacity .4s; opacity: 0; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }
.collapse-inner { overflow: hidden; }
.collapse.open .collapse-inner { padding-top: 22px; }
.collapse .collapse-inner { transition: padding .5s var(--ease); }

/* property type (we move) */
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.prop-panel { background: var(--cream); border-radius: var(--radius); padding: 16px; }
.prop-panel.swap .field:not([hidden]), .prop-panel.swap .prop-note:not([hidden]) { animation: fadeUp .4s var(--ease) both; }
.prop-panel.swap .field:not([hidden]):nth-child(2) { animation-delay: .05s; }
.prop-panel.swap .field:not([hidden]):nth-child(3) { animation-delay: .1s; }
.prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.prop-grid .field { margin-bottom: 12px; }
.field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.select-wrap { position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.select-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(205,224,15,.35); }
.select-wrap.invalid { border-color: var(--danger); animation: shake .4s; }
.select-wrap::after { content: ''; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.select-wrap select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 50px; border: 0; background: transparent; padding-block: 0; padding-inline: 14px 40px; font-size: 16px; font-weight: 500; cursor: pointer; outline: 0; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-weight: 600; font-size: 14px; transition: background .25s, color .25s, transform .25s var(--spring); }
.seg label:hover span { background: var(--sand); }
.seg input:checked + span { background: var(--ink); color: var(--lime); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.prop-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.prop-note svg { font-size: 18px; color: var(--gold); margin-top: 1px; }

/* add-ons */
.addon-list { display: grid; gap: 10px; }
.addon {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.addon:hover { border-color: var(--ink-soft); }
.addon.on { border-color: var(--ink); background: linear-gradient(160deg, var(--lime-soft), var(--white) 70%); }
.addon .a-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; transition: background .3s, transform .4s var(--spring); }
.addon.on .a-ico { background: var(--lime); transform: rotate(-6deg); }
.addon .a-text { flex: 1; min-width: 0; }
.addon .a-text strong { display: block; font-size: 15px; }
.addon .a-text small { color: var(--muted); font-size: 13px; }
.addon .a-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.addon .a-price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.switch { width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex-shrink: 0; transition: background .25s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.addon.on .switch { background: var(--green); }
.addon.on .switch::after { transform: translateX(18px); }
.qty { display: none; align-items: center; gap: 8px; }
.addon.on .qty { display: flex; animation: pop .35s var(--spring); }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-size: 16px; line-height: 1; }
.qty span { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center; cursor: pointer;
  background: var(--white); display: flex; flex-direction: column; gap: 4px; align-items: center;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--spring), background .25s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.is-selected { border-color: var(--ink); background: linear-gradient(160deg, var(--lime-soft), var(--white) 70%); box-shadow: 0 0 0 3px var(--lime); }
.plan.is-disabled { opacity: .45; cursor: not-allowed; }
.plan.is-disabled:hover { transform: none; box-shadow: none; }
.plan .p-ring { width: 54px; height: 54px; margin-bottom: 4px; }
.plan .p-ring circle { stroke-width: 5; }
.plan .p-ring .bg { stroke: var(--sand); }
.plan .p-ring .fg { stroke: var(--green); transition: stroke-dashoffset .8s var(--ease); transform: rotate(-90deg); transform-origin: center; }
.plan .p-ring text { font-size: 15px; font-weight: 700; fill: var(--ink); stroke: none; font-family: var(--font); }
.plan strong { font-size: 14px; }
.plan .p-amt { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan small { color: var(--muted); font-size: 12px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px;
  background: var(--cream); border-radius: var(--radius-sm); font-size: 14px; color: var(--ink-soft);
}
.notice svg { font-size: 20px; color: var(--gold); margin-top: 1px; }

/* ---------- Discounts & coupon ---------- */
.plan .badge.save { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--ink); box-shadow: 0 4px 10px rgba(198,152,11,.25); }
.plan .p-was { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: -4px; }
.plan-grid { padding-top: 10px; }
.plan-hint { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--green-dark); }
.plan-hint svg { font-size: 16px; }
.coupon { margin-top: 20px; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.coupon .block-title { display: block; }
.coupon .input-wrap input { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.coupon .input-wrap input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
[dir=rtl] .coupon .input-wrap input { text-align: right; padding-left: 14px; padding-right: 44px; }
.coupon-applied { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--lime-soft); border: 1.5px solid var(--green); }
.coupon-applied.pop-in { animation: pop .45s var(--spring); }
.ca-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ca-ico svg { stroke-width: 3; }
.ca-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ca-text strong { letter-spacing: .06em; }
.ca-text small { color: var(--ink-soft); font-size: 12px; }
.ca-save { font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-lines li.disc span:last-child { color: var(--green-dark); font-weight: 600; }
.sum-lines li.disc span:first-child { color: var(--green-dark); }

/* ---------- Review ---------- */
.review { display: grid; gap: 12px; margin-bottom: 20px; }
.rv-card { border: 1.5px solid var(--sand); border-radius: var(--radius); padding: 14px 16px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rv-head h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rv-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 4px 0; }
.rv-row span:first-child { color: var(--muted); }
.rv-row span:last-child { font-weight: 500; text-align: end; overflow-wrap: anywhere; }

.terms { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream); }
.terms input { position: absolute; opacity: 0; }
.checkbox { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--ink-soft); display: grid; place-items: center; flex-shrink: 0; background: var(--white); transition: background .2s, border-color .2s; }
.checkbox svg { stroke-width: 3.5; color: var(--ink); transform: scale(0); transition: transform .3s var(--spring); }
.terms input:checked + .checkbox { background: var(--lime); border-color: var(--ink); }
.terms input:checked + .checkbox svg { transform: scale(1); }
.terms input:focus-visible + .checkbox { outline: 2px solid var(--ink); outline-offset: 3px; }
.terms.invalid { box-shadow: 0 0 0 2px var(--danger); animation: shake .4s; }

/* ---------- Success ---------- */
.success { text-align: center; padding: 30px 0 10px; }
.success-mark { width: 120px; height: 120px; margin: 0 auto 18px; }
.success-mark svg { width: 100%; height: 100%; }
.success-mark .hex { fill: var(--lime); stroke: var(--yellow); stroke-width: 6; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1s var(--ease) forwards, fillIn .5s .6s both; }
.success-mark .tick { stroke: var(--ink); stroke-width: 8; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s 1s var(--ease) forwards; }
.success h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.success p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 10px; }
.ref { font-family: var(--serif); font-size: 1.15em; background: var(--yellow); padding: 1px 8px; border-radius: 6px; color: var(--ink); }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.confetti { position: absolute; top: 0; width: 10px; height: 11px; pointer-events: none; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); animation: confetti 1.8s var(--ease) forwards; }

/* ---------- Wizard nav ---------- */
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1.5px solid var(--sand); }
.wizard-nav .btn-primary { margin-left: auto; min-width: 160px; }
.wizard-nav .btn-ghost.hidden { visibility: hidden; }
.mobile-total { display: none; }

/* ---------- Summary ---------- */
.summary { position: sticky; top: 90px; }
.summary-card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; animation: rise .6s .15s var(--ease) both; }
.summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.summary-head h3 { font-size: 17px; }
.sheet-close { display: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; }
.sum-zone { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--cream); border-radius: var(--radius-sm); margin-bottom: 14px; }
.sum-zone div:last-child { display: flex; flex-direction: column; min-width: 0; }
.sum-zone strong { font-size: 15px; }
.sum-zone small { color: var(--muted); font-size: 12px; }
.mini-cube { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); border-radius: 12px; flex-shrink: 0; }
.mini-cube span { width: 20px; height: 22px; background: var(--lime); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.sum-zone.has .mini-cube span { animation: spinY 1s var(--ease); }
.sum-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; animation: fadeUp .35s var(--ease) both; }
.sum-lines li span:first-child { color: var(--ink-soft); }
.sum-lines li span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-lines li.sub { font-size: 13px; }
.sum-lines li.sub span:first-child { color: var(--muted); padding-inline-start: 10px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.sum-total span { font-weight: 600; }
.sum-total strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.sum-total strong.bump, .mobile-total strong.bump { animation: bump .35s var(--spring); }
.sum-first { margin-top: 12px; background: var(--lime-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.sum-first strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(24,26,29,.55); backdrop-filter: blur(4px); animation: fade .25s; }
.modal-card { background: var(--white); border-radius: 22px; max-width: 560px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: modalIn .4s var(--spring); }
.modal-head, .modal-foot { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; }
.modal-head { border-bottom: 1.5px solid var(--sand); }
.modal-head .sheet-close { display: grid; place-items: center; }
.modal-foot { border-top: 1.5px solid var(--sand); justify-content: flex-end; }
.modal-body { padding: 18px 22px; overflow: auto; font-size: 14px; color: var(--ink-soft); }
.modal-body ol { padding-inline-start: 18px; display: grid; gap: 10px; }
.muted { color: var(--muted); font-style: italic; margin-bottom: 10px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 14px; font-size: 14px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  transition: transform .45s var(--spring), opacity .3s, visibility .45s; pointer-events: none; opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast b { color: var(--lime); letter-spacing: .15em; }
.sheet-backdrop { display: none; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 99px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  color: var(--white); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--spring);
}
.lang-toggle:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.lang-toggle:active { transform: scale(.95); }
.lang-toggle svg { font-size: 17px; }
.lang-toggle[lang=ar] { font-family: 'IBM Plex Sans Arabic', var(--font); }
.lang-toggle[lang=en] { font-family: 'Poppins', sans-serif; }
body.lang-swap .shell { animation: fade .45s var(--ease); }

/* ---------- RTL / Arabic ---------- */
html[lang=ar] {
  --font: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif;
  --serif: 'IBM Plex Sans Arabic', 'Lora', serif;
}
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { letter-spacing: 0; line-height: 1.35; }
html[lang=ar] .script { font-style: normal; font-weight: 700; }
html[lang=ar] .eyebrow, html[lang=ar] .dims dt, html[lang=ar] .rv-head h4,
html[lang=ar] .period-strip small, html[lang=ar] .badge, html[lang=ar] .cal-dow span { letter-spacing: 0; text-transform: none; }
html[lang=ar] .cal-dow span { font-size: 10px; }
html[lang=ar] .step-num { font-style: normal; font-family: 'Lora', serif; }
[dir=rtl] .flip-rtl { transform: scaleX(-1); }
[dir=rtl] .btn-primary:hover svg.flip-rtl { transform: scaleX(-1) translateX(3px); }
[dir=rtl] .btn-ghost:hover svg.flip-rtl { transform: scaleX(-1) translateX(-3px); }
[dir=rtl] .cal-head svg { transform: scaleX(-1); }
[dir=rtl] .otp-inputs { direction: ltr; justify-content: flex-end; }
[dir=rtl] .input-wrap input[type=email] { text-align: right; padding-left: 14px; padding-right: 44px; }
[dir=rtl] input[type=range]::-webkit-slider-runnable-track {
  background: linear-gradient(-90deg, var(--green) 0, var(--lime) var(--pct), var(--line) var(--pct));
}
[dir=rtl] .mobile-total { align-items: flex-start; }

/* ==========================================================
   Service chooser + moving wizard
   ========================================================== */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card { position: relative; cursor: pointer; display: block; }
.service-card input { position: absolute; opacity: 0; pointer-events: none; }
.service-body {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 18px;
  border: 1.5px solid var(--line); border-radius: 22px; background: var(--white); overflow: hidden;
  transition: border-color .25s, box-shadow .3s, transform .3s var(--spring), background .3s;
}
.service-card:hover .service-body { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card input:checked + .service-body { border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime), var(--shadow); background: linear-gradient(165deg, var(--lime-soft), var(--white) 60%); }
.service-card input:focus-visible + .service-body { outline: 2px solid var(--ink); outline-offset: 3px; }
.service-art { display: grid; place-items: center; height: 150px; border-radius: 16px; background: var(--ink); position: relative; overflow: hidden; }
.service-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 80%, rgba(205,224,15,.22), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px); }
.service-art svg { width: 170px; height: 128px; position: relative; stroke-width: 2.2; }
.sa-floor, .sa-road { stroke: rgba(255,255,255,.25); }
.sa-top { fill: var(--lime); stroke: var(--ink); }
.sa-side { fill: var(--green); stroke: var(--ink); }
.sa-door { fill: #6d9e1d; stroke: rgba(255,255,255,.85); }
.sa-line { stroke: var(--ink); }
.sa-box { fill: var(--yellow); stroke: var(--ink); transform-origin: 77px 64px; }
.sa-dash { stroke: var(--lime); stroke-dasharray: 8 10; }
.sa-cargo { fill: var(--lime); stroke: var(--ink); }
.sa-cab { fill: var(--green); stroke: var(--ink); }
.sa-win { fill: rgba(255,255,255,.75); stroke: none; }
.sa-wheel { fill: var(--ink-2); stroke: rgba(255,255,255,.8); }
.sa-speed { stroke: rgba(255,255,255,.5); opacity: 0; }
.service-card:hover .sa-box, .service-card input:checked + .service-body .sa-box { animation: boxHop .9s var(--spring) infinite alternate; }
.service-card:hover .sa-dash, .service-card input:checked + .service-body .sa-dash { animation: roadMove .6s linear infinite; }
.service-card:hover .service-art.move svg, .service-card input:checked + .service-body .service-art.move svg { animation: truckBob .5s ease-in-out infinite alternate; }
.service-card:hover .sa-speed, .service-card input:checked + .service-body .sa-speed { opacity: 1; }
.service-text { display: flex; flex-direction: column; gap: 4px; }
.service-text strong { font-size: 20px; }
.service-text small { color: var(--muted); font-size: 14px; }
.service-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.service-tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--cream); color: var(--ink-soft); }
.service-card input:checked + .service-body .service-tags span { background: var(--white); }
.service-card .check {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); color: var(--ink); display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--spring); z-index: 1;
}
.service-card .check svg { stroke-width: 3; font-size: 16px; }
.service-card input:checked + .service-body .check { transform: scale(1); }

/* route fields */
.route-fields { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; margin-bottom: 14px; position: relative; z-index: 5; }
.loc-field { position: relative; }
.route-fields.single { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.addr-slot { margin-top: 16px; }
.kmap-slot:empty { display: none; }
.loc-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.input-wrap.loc { padding-inline-start: 10px; cursor: text; }
.input-wrap.loc input { padding-inline: 10px; }
.loc-field.is-active .input-wrap.loc:not(:focus-within) { border-color: var(--line); }
.loc-pin {
  width: 26px; height: 26px; flex-shrink: 0; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700;
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
}
.loc-pin.a { background: var(--lime); color: var(--ink); }
.loc-pin.b { background: var(--ink); color: var(--lime); }
.zone-chip {
  margin-inline-end: 10px; padding: 3px 9px 3px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap;
  background: var(--ink); color: var(--white); display: inline-flex; align-items: center; gap: 5px; animation: pop .35s var(--spring);
}
.zone-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--zc, var(--lime)); }
.loc-list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  max-height: 300px; overflow: auto; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--sand);
  animation: fadeUp .2s var(--ease);
}
.loc-list + .err { margin-top: 6px; }
.ll-zone { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; position: sticky; top: -6px; background: var(--white); }
.ll-zone i, .ri-end small i, .kmap-legend i, .kmap-tip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1.5px rgba(43,46,51,.25); }
.ll-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; }
.ll-item small { color: var(--muted); font-size: 12px; font-weight: 400; }
.ll-item:hover, .ll-item.hl { background: var(--lime-soft); }
.ll-item[aria-selected=true] { background: var(--ink); color: var(--lime); }
.ll-item[aria-selected=true] small { color: rgba(255,255,255,.6); }
.ll-item.off { color: #b4ad97; cursor: not-allowed; text-decoration: line-through; }
.ll-item.off:hover { background: none; }
.ll-empty { padding: 14px 10px; color: var(--muted); font-size: 14px; }
.swap-btn {
  margin-top: 30px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); cursor: pointer;
  display: grid; place-items: center; font-size: 18px; transition: border-color .2s, transform .2s var(--spring), background .2s;
}
.swap-btn svg { transform: rotate(90deg); }
.swap-btn:hover { border-color: var(--ink); background: var(--lime-soft); }
.swap-btn.spin svg { animation: swapSpin .5s var(--spring); }

/* map */
.kmap {
  position: relative; height: 440px; border-radius: var(--radius); overflow: hidden; background: #2f3237; color: var(--white);
  user-select: none; -webkit-user-select: none; cursor: grab; touch-action: pan-y;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.kmap.grabbing { cursor: grabbing; }
.kmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; stroke: none; stroke-width: 1; fill: none; }
.km-neighbour { fill: #2c2f34; }
.km-sea { fill: #1c2731; }
.km-land { fill: #4a4f57; stroke: rgba(205,224,15,.45); stroke-width: .9; vector-effect: non-scaling-stroke; }
.km-grat line { stroke: rgba(255,255,255,.05); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.km-geo text { fill: rgba(255,255,255,.28); font-family: var(--serif); font-style: italic; text-anchor: middle; pointer-events: none; }
.km-geo text[data-k=gulf], .km-geo text[data-k=iraq], .km-geo text[data-k=saudi] { font-family: var(--font); font-style: normal; font-weight: 600; fill: rgba(255,255,255,.18); }
.km-halo { pointer-events: none; transition: opacity .4s; }
.km-dot { cursor: pointer; stroke: var(--ink); transition: r .25s var(--spring); }
.km-dot.z1 { fill: #CDE00F; } .km-dot.z2 { fill: #FFE100; } .km-dot.z3 { fill: #88C426; } .km-dot.z4 { fill: #F3EBD3; }
.km-dot.z5 { fill: #6b6f76; cursor: not-allowed; stroke-dasharray: 1 1; }
.km-dot:hover { stroke: var(--white); }
.km-labels text { fill: rgba(255,255,255,.75); font-family: var(--font); font-weight: 500; paint-order: stroke; stroke: #2f3237; stroke-width: .25em; stroke-linejoin: round; pointer-events: none; }
.km-pin .drop { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.km-pin.to .drop { fill: var(--ink); stroke: var(--lime); }
.km-pin .hole { fill: var(--ink); }
.km-pin.to .hole { fill: var(--lime); }
.km-pin text { font: 700 7px var(--font); fill: var(--lime); stroke: none; }
.km-pin.to text { fill: var(--ink); }
.km-pin .pulse { fill: none; stroke: var(--lime); stroke-width: 1.5; transform-origin: 0 0; animation: pinPulse 1.8s ease-out infinite; }
.km-pin { transition: opacity .3s; }
.km-plabel rect { fill: rgba(24,26,29,.88); stroke: rgba(205,224,15,.5); stroke-width: 1; }
.km-plabel text { fill: var(--white); font-family: var(--font); font-weight: 600; stroke: none; }
.rt-glow { fill: none; stroke: rgba(205,224,15,.18); stroke-linecap: round; }
.rt-line { fill: none; stroke: var(--lime); stroke-linecap: round; }
.rt-dash { fill: none; stroke: var(--ink); stroke-linecap: round; animation: dashMove 1s linear infinite; }
.km-route.draw .rt-line, .km-route.draw .rt-glow { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: routeDraw .9s var(--ease) forwards; }
.km-route.draw .rt-dash { opacity: 0; animation: dashMove 1s linear infinite, fade .3s .85s reverse both; }
.rt-truck .rt-truck-body > * { fill: var(--yellow); stroke: var(--ink); stroke-width: .9; }
.rt-truck .rt-truck-body path { fill: var(--white); }
.rt-truck .rt-truck-body circle { fill: var(--ink); stroke: var(--white); }
.kmap-hint {
  position: absolute; top: 12px; left: 12px; z-index: 2; max-width: calc(100% - 80px);
  display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 12px;
  background: rgba(24,26,29,.82); backdrop-filter: blur(6px); font-size: 13px; color: rgba(255,255,255,.85); pointer-events: none;
}
.kmap-hint b { color: var(--lime); }
.kmap-hint .loc-pin { width: 22px; height: 22px; font-size: 11px; }
.kmap-tools { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.kmap-tools button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(24,26,29,.82); color: var(--white);
  font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s, color .2s, transform .2s var(--spring);
}
.kmap-tools button svg { font-size: 17px; }
.kmap-tools button:hover { background: var(--lime); color: var(--ink); }
.kmap-tools button:active { transform: scale(.9); }
.kmap-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 12px; border-radius: 12px;
  background: rgba(24,26,29,.82); backdrop-filter: blur(6px); font-size: 11px; color: rgba(255,255,255,.8); max-width: calc(100% - 24px); pointer-events: none;
}
.kmap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kmap-legend span.off { color: rgba(255,255,255,.45); }
.kmap-tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; white-space: nowrap;
  background: var(--white); color: var(--ink); padding: 7px 11px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px;
  display: flex; flex-direction: column; animation: fade .15s;
}
.kmap-tip span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.kmap-tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--white); transform: rotate(45deg); }

/* route summary under the map */
.route-info {
  display: grid; grid-template-columns: 1fr minmax(120px, 1.1fr) 1fr; gap: 10px 14px; align-items: center; margin-top: 14px;
  padding: 16px; border-radius: var(--radius); background: var(--cream);
}
.route-info.pop-in { animation: fadeUp .45s var(--ease); }
.ri-end { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ri-end.b { flex-direction: row-reverse; text-align: end; }
.ri-end div { display: flex; flex-direction: column; min-width: 0; }
.ri-end strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-end small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ri-end.b small { justify-content: flex-end; }
.ri-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ri-mid small { font-size: 12px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ri-line { position: relative; width: 100%; height: 18px; }
.ri-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--ink-soft); opacity: .5; }
.ri-truck { position: absolute; top: 50%; left: 0; transform: translate(-50%, -55%); font-size: 18px; color: var(--ink); background: var(--yellow); border-radius: 6px; padding: 1px 3px; display: grid; animation: riTruck 2.6s var(--ease) infinite; }
[dir=rtl] .ri-truck { animation-name: riTruckRtl; }
.ri-rate { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line); font-size: 14px; }
.ri-rate span { color: var(--ink-soft); }
.ri-rate strong { font-size: 17px; font-variant-numeric: tabular-nums; }

/* move: property cards */
.prop-cards .choice-body { align-items: center; text-align: center; }
.prop-cards + .err + .collapse .collapse-inner { }

/* move: schedule */
.date-strip-wrap { display: flex; align-items: center; gap: 8px; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px; flex: 1; min-width: 0; }
.date-strip::-webkit-scrollbar { display: none; }
.ds-day {
  scroll-snap-align: start; flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 0;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color .2s, background .2s, color .2s, transform .25s var(--spring);
}
.ds-day small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ds-day small.mon { color: var(--green-dark); font-weight: 700; }
.ds-day strong { font-size: 20px; line-height: 1.2; }
.ds-day:hover { border-color: var(--ink); }
.ds-day.fri { background: var(--cream); }
.ds-day.selected { background: var(--ink); border-color: var(--ink); color: var(--lime); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(43,46,51,.25); }
.ds-day.selected small { color: rgba(255,255,255,.7); }
.ds-nav { flex-shrink: 0; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.slot-grid.swap .slot { animation: pop .35s var(--spring) both; }
.slot-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; font-size: 14px; color: var(--muted); }
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slot, .ins {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px 10px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--spring), background .25s;
}
.slot:hover, .ins:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.slot.is-selected, .ins.is-selected { border-color: var(--ink); background: linear-gradient(160deg, var(--lime-soft), var(--white) 70%); box-shadow: 0 0 0 3px var(--lime); }
.slot strong, .ins strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.slot small, .ins small { color: var(--muted); font-size: 12px; }
.slot .badge.rec { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); }
.slot-ico, .ins-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; font-size: 20px; margin-bottom: 4px; transition: background .3s, transform .4s var(--spring); }
.slot.is-selected .slot-ico, .ins.is-selected .ins-ico { background: var(--lime); transform: rotate(-6deg); }
.slot-grid { padding-top: 8px; }
.field.mt { margin-top: 22px; }

/* summary – route */
.mini-route { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--ink); position: relative; }
.mini-route i { position: absolute; width: 14px; height: 14px; font-size: 8px; font-style: normal; font-weight: 700; display: grid; place-items: center; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }
.mini-route i.a { left: 6px; bottom: 7px; background: var(--lime); color: var(--ink); }
.mini-route i.b { right: 6px; top: 7px; background: var(--white); color: var(--ink); opacity: .35; transition: opacity .3s; }
.mini-route span { position: absolute; left: 13px; bottom: 14px; width: 24px; height: 2px; background: var(--lime); transform-origin: left; transform: rotate(-45deg) scaleX(0); transition: transform .5s var(--ease); }
.mini-route.full i.b { opacity: 1; background: var(--lime); }
.mini-route.full span { transform: rotate(-45deg) scaleX(1); }
.sum-zone.has .mini-route { animation: pop .45s var(--spring); }
.sum-zone .arr { display: inline-block; color: var(--green-dark); }
.summary.is-move .sum-first { display: block; background: var(--cream); color: var(--ink-soft); }
.rv-zone { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-inline-start: 6px; }
.rv-zone::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 0 1.5px rgba(43,46,51,.25); }

@keyframes boxHop { to { transform: translateY(-6px) rotate(-4deg); } }
@keyframes roadMove { to { stroke-dashoffset: -18; } }
@keyframes truckBob { to { transform: translateY(-2px); } }
@keyframes swapSpin { from { transform: rotate(90deg) scale(.7); } to { transform: rotate(270deg); } }
@keyframes pinPulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
@keyframes routeDraw { to { stroke-dashoffset: 0; } }
@keyframes dashMove { to { stroke-dashoffset: -100; } }
@keyframes riTruck { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes riTruckRtl { 0% { left: 100%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }

@media (max-width: 900px) {
  .kmap { height: 380px; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-body { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; padding: 14px; align-items: center; }
  .service-art { grid-row: span 2; height: 92px; border-radius: 14px; }
  .service-art svg { width: 84px; height: 64px; }
  .service-text strong { font-size: 17px; }
  .service-text small { font-size: 13px; }
  .service-tags { grid-column: 2; }
  .service-tags span { font-size: 11px; padding: 3px 8px; }
  .service-card .check { top: 8px; inset-inline-end: 8px; width: 24px; height: 24px; }
  .route-fields { grid-template-columns: 1fr; gap: 0; }
  .route-fields .loc-field { margin-bottom: 12px; }
  .swap-btn { margin: -6px auto 6px; width: 38px; height: 38px; }
  .swap-btn svg { transform: none; }
  .kmap { height: 340px; margin: 0 -6px; }
  .kmap-hint { font-size: 12px; }
  .kmap-legend { font-size: 10px; gap: 3px 9px; padding: 6px 10px; }
  .route-info { grid-template-columns: 1fr 1fr; }
  .ri-mid { grid-column: 1 / -1; order: 3; }
  .ri-rate { order: 4; }
  .slot-grid, .ins-grid { grid-template-columns: 1fr; gap: 10px; }
  .slot, .ins { flex-direction: row; text-align: start; padding: 12px 14px; gap: 12px; }
  .slot .slot-ico, .ins .ins-ico { margin: 0; }
  .slot small, .ins small { margin-inline-start: auto; }
  .slot .badge.rec { left: auto; right: 12px; transform: none; }
  .prop-cards .choice-body { padding: 12px 6px !important; flex-direction: column !important; }
  .prop-cards .choice-illu { width: 48px !important; height: 48px !important; margin: 0 auto !important; }
  .prop-cards .choice-illu svg { width: 32px !important; height: 32px !important; }
  .prop-cards .choice-body strong { flex: none !important; }
  .prop-cards .choice-body small { display: none; }
  .ds-nav { display: none; }
}

/* move: addresses + uploads */
.addr-grid { display: grid; gap: 14px; }
.addr-card { border: 1.5px solid var(--sand); border-radius: var(--radius); padding: 16px; }
.addr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.addr-head div { display: flex; flex-direction: column; min-width: 0; }
.addr-head strong { font-size: 15px; }
.addr-area { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.addr-area i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(43,46,51,.25); }
.addr-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
.addr-fields .field { margin-bottom: 12px; min-width: 0; }
.addr-fields .field label { font-size: 13px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-fields .af-notes { grid-column: 1 / -1; margin-bottom: 0; }
.input-wrap.plain input { padding-inline: 12px; min-height: 46px; padding-block: 10px; font-size: 15px; }
.muted-inline { font-weight: 400; color: var(--muted); font-size: 13px; }
.upload-hint { font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.dropzone {
  display: flex; align-items: center; gap: 14px; padding: 18px; cursor: pointer; position: relative;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--cream);
  transition: border-color .2s, background .2s, transform .25s var(--spring);
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:hover, .dropzone.over { border-color: var(--green); background: var(--lime-soft); }
.dropzone.over { transform: scale(1.01); }
.dropzone:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.dropzone.is-full { opacity: .5; pointer-events: none; }
.dz-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; transition: transform .3s var(--spring); }
.dropzone:hover .dz-ico, .dropzone.over .dz-ico { transform: translateY(-3px); }
.dz-text { display: flex; flex-direction: column; gap: 2px; }
.dz-text strong { font-size: 15px; }
.dz-text small { font-size: 12px; color: var(--muted); }
.upload-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.upload-msgs li { margin-top: 8px; font-size: 13px; color: var(--danger); background: #fbeeea; border-radius: 10px; padding: 8px 12px; animation: fadeUp .3s var(--ease); transition: opacity .4s; }
.upload-msgs li.out { opacity: 0; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.file-grid:empty { display: none; }
.file-card { position: relative; border: 1.5px solid var(--sand); border-radius: 14px; overflow: hidden; background: var(--white); animation: pop .35s var(--spring); }
.fc-thumb { height: 104px; background: var(--cream); display: grid; place-items: center; overflow: hidden; }
.fc-thumb { position: relative; }
.fc-thumb img, .fc-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); }
.play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(24,26,29,.7); pointer-events: none; }
.play::after { content: ''; position: absolute; left: 12px; top: 9px; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; }
.rv-thumbs .th, .oc-photos .th { position: relative; display: inline-flex; }
.rv-thumbs .th .play, .oc-photos .th .play { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.rv-thumbs .th .play::after, .oc-photos .th .play::after { left: 6px; top: 4px; border-width: 4px; border-left-width: 6px; }
.fc-ico { font-size: 34px; color: var(--ink-soft); }
.file-card.pdf .fc-thumb { background: linear-gradient(160deg, #fbeeea, var(--cream)); }
.file-card.pdf .fc-ico { color: var(--danger); }
.file-card.busy .fc-thumb { animation: shimmer 1.2s linear infinite; background: linear-gradient(90deg, var(--cream) 30%, var(--sand) 50%, var(--cream) 70%) 0 0 / 300% 100%; }
.fc-info { padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fc-info strong { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-info span { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.fc-info .fc-opt { color: var(--green-dark); font-weight: 600; }
.fc-busy svg { animation: spin .8s linear infinite; }
.fc-remove { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(24,26,29,.75); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s var(--spring); }
.fc-remove:hover { background: var(--danger); transform: scale(1.1); }
.rv-thumbs { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.rv-thumbs img, .rv-thumbs i, .rv-thumbs video { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.rv-thumbs i { display: grid; place-items: center; background: var(--cream); font-size: 9px; font-style: normal; font-weight: 700; color: var(--muted); }
.rv-row small { color: var(--muted); font-weight: 400; }
@keyframes shimmer { to { background-position: -300% 0; } }

@media (max-width: 640px) {
  .addr-fields { grid-template-columns: 1fr 1fr; }
  .dropzone { padding: 14px; }
  .file-grid { grid-template-columns: repeat(2, 1fr); }
}

/* review: order card */
.order-card {
  --oc-line: rgba(255,255,255,.09);
  position: relative; margin-bottom: 26px; border-radius: 24px; color: var(--white); overflow: hidden;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(205,224,15,.22), transparent 70%),
    radial-gradient(420px 200px at 0% 100%, rgba(255,225,0,.10), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 26px),
    var(--ink);
  box-shadow: 0 18px 40px rgba(43,46,51,.28);
}
.order-card[hidden] { display: none; }
.order-card.in { animation: ocIn .7s var(--spring) both; }
.order-card.in > * { animation: fadeUp .5s var(--ease) both; }
.order-card.in > :nth-child(2) { animation-delay: .08s; }
.order-card.in > :nth-child(4) { animation-delay: .16s; }
.order-card.in > :nth-child(5) { animation-delay: .24s; }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0; }
.oc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.oc-brand div { display: flex; flex-direction: column; min-width: 0; }
.oc-brand small, .oc-end small, .oc-tile small, .oc-total small, .oc-when small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.55); }
.oc-brand strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-hex { width: 34px; height: 38px; flex-shrink: 0; background: var(--lime); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); box-shadow: inset 0 -10px 0 rgba(0,0,0,.12); animation: spinY 1.2s var(--ease); }
.oc-when { text-align: end; display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--oc-line); }
.oc-when strong { font-size: 18px; color: var(--lime); line-height: 1.1; }
.oc-route { display: grid; grid-template-columns: 1fr minmax(120px, 1fr) 1fr; gap: 14px; align-items: center; padding: 20px; }
.oc-end { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.oc-end.to, .oc-route > .oc-end:last-child { text-align: end; align-items: flex-end; }
.oc-end strong { font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.oc-end em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.4; }
.oc-zone { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); }
.oc-zone::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.oc-path { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.oc-path svg { width: 100%; height: 56px; overflow: visible; }
.oc-arc { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s .25s var(--ease) forwards; }
.oc-arc-dash { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 6; animation: dashMove 1.2s linear infinite; }
.oc-dot.a { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }
.oc-dot.b { fill: var(--ink); stroke: var(--lime); stroke-width: 2.5; }
.oc-truck > * { fill: var(--yellow); stroke: var(--ink); stroke-width: .8; }
.oc-truck path { fill: var(--white); }
.oc-truck circle { fill: var(--ink); stroke: var(--white); }
.oc-km { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.07); white-space: nowrap; }
.oc-cube { width: 46px; height: 50px; margin-bottom: 6px; display: grid; place-items: center; position: relative; }
.oc-cube::before { content: ''; position: absolute; left: -60%; right: -60%; top: 50%; border-top: 2px dashed rgba(205,224,15,.5); z-index: 0; }
.oc-cube span { position: relative; width: 40px; height: 44px; background: var(--lime); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); animation: spinY 1.2s var(--ease); }
.oc-perf { position: relative; height: 0; border-top: 2px dashed rgba(255,255,255,.14); margin: 0 18px; }
.oc-perf::before, .oc-perf::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); }
.oc-perf::before { left: -31px; } .oc-perf::after { right: -31px; }
.oc-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px 20px 6px; }
.oc-tile { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--oc-line); min-width: 0; }
.oc-tile.wide { grid-column: 1 / -1; }
.oc-tile > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oc-tile strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.oc-tile em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.55); }
.oc-ti { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: 17px; background: rgba(205,224,15,.14); color: var(--lime); }
.oc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.oc-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--lime); color: var(--ink); }
.oc-chip.muted { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.oc-photos { display: flex; margin-top: 4px; }
.oc-photos img, .oc-photos i, .oc-photos > b, .oc-photos video { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 2px solid var(--ink); margin-inline-end: -8px; display: grid; place-items: center; font-size: 9px; font-style: normal; font-weight: 700; background: #44484f; color: rgba(255,255,255,.7); }
.oc-photos > b { background: var(--lime); color: var(--ink); font-size: 11px; }
.oc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 20px 20px; }
.oc-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oc-who div { display: flex; flex-direction: column; min-width: 0; }
.oc-who strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-who small { font-size: 12px; color: rgba(255,255,255,.6); }
.oc-total { text-align: end; display: flex; flex-direction: column; }
.oc-total strong { font-size: clamp(24px, 3.4vw, 32px); color: var(--lime); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.oc-total em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.6); }
html[lang=ar] .oc-brand small, html[lang=ar] .oc-end small, html[lang=ar] .oc-tile small, html[lang=ar] .oc-total small, html[lang=ar] .oc-when small { letter-spacing: 0; text-transform: none; font-size: 12px; }
@keyframes ocIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@media (max-width: 640px) {
  .order-card { border-radius: 20px; margin-bottom: 20px; }
  .oc-top { padding: 16px 16px 0; }
  .oc-route { grid-template-columns: 1fr 1fr; padding: 16px; gap: 10px 12px; }
  .oc-path { grid-column: 1 / -1; order: 2; }
  .oc-path svg { height: 42px; }
  .oc-route > .oc-end:last-child { order: 1; }
  .oc-end strong { font-size: 19px; }
  .oc-tiles { grid-template-columns: 1fr; padding: 16px 16px 4px; }
  .oc-foot { padding: 12px 16px 16px; }
  .oc-perf { margin: 0 14px; }
  .oc-perf::before { left: -27px; } .oc-perf::after { right: -27px; }
}

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slideInR { from { opacity: 0; transform: translateX(40px); } }
@keyframes slideInL { from { opacity: 0; transform: translateX(-40px); } }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinY { from { transform: rotateY(180deg) scale(.6); } }
@keyframes flipIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { from { fill: transparent; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps li button .lbl { display: none; }
  .steps li button { justify-content: center; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .viewer { grid-template-columns: 1fr; }
  .viewer-info { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }

  /* Summary becomes a bottom sheet */
  .summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; transform: translateY(105%); transition: transform .45s var(--ease); }
  .summary.open { transform: translateY(0); }
  .summary-card { border-radius: 24px 24px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; animation: none; }
  .summary-card::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: -8px auto 14px; }
  .sheet-close { display: grid; place-items: center; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(24,26,29,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sheet-backdrop.show { opacity: 1; pointer-events: auto; }
  .layout.no-summary .summary { display: block; }

  /* Sticky bottom nav */
  .wizard { padding-bottom: 24px; }
  .wizard-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--sand); box-shadow: 0 -8px 24px rgba(43,46,51,.08);
  }
  .wizard-nav .btn-ghost { width: 50px; padding: 0; flex-shrink: 0; }
  .wizard-nav .btn-ghost span { display: none; }
  .wizard-nav .btn-ghost.hidden { display: none; }
  .wizard-nav .btn-primary { min-width: 0; flex: 1; max-width: 220px; }
  .mobile-total { display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; padding: 0; cursor: pointer; text-align: start; flex: 1; min-width: 0; }
  .mobile-total small { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
  .mobile-total small::after { content: '▴'; font-size: 10px; }
  .mobile-total strong { font-size: 17px; font-variant-numeric: tabular-nums; }
  .mobile-total[hidden] { display: none; }
  .shell { padding-bottom: 110px; }
  .toast { bottom: 96px; }
}

@media (max-width: 640px) {
  .topbar-help { display: none; }
  .zone-grid { grid-template-columns: 1fr 1fr; }
  .lg-hint { margin-inline-start: 0; flex-basis: 100%; }
  .unit-map { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); max-height: 300px; }
  .hero { padding: 24px 0 14px; }
  .hero .lead { font-size: 14px; }
  .progress-mobile { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
  .progress-mobile strong { color: var(--ink); font-size: 15px; }
  .steps { display: none; }
  .wizard { border-radius: 20px; margin: 0 -4px; }
  .step-head { gap: 12px; margin-bottom: 20px; }
  .step-num { width: 38px; height: 43px; font-size: 13px; }
  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; }
  .otp-inputs input { width: 100%; max-width: 64px; }
  .stage { height: 240px; }
  .dims { grid-template-columns: repeat(3, 1fr); }
  .zone-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .zone { padding: 12px; }
  .zone .iso { width: 36px; height: 36px; }
  .choice-grid.two:not(.compact) { grid-template-columns: 1fr; }
  .choice.big .choice-body { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
  .choice.big .choice-illu { width: 56px; height: 56px; margin: 0; }
  .choice.big .choice-illu svg { width: 38px; height: 38px; }
  .choice.big .choice-body strong { flex: 1; }
  .choice.big .choice-body small { flex-basis: 100%; }
  .choice-grid.compact .choice-body.row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .choice-grid.three { gap: 8px; }
  .choice-grid.purpose-grid { grid-template-columns: 1fr; }
  .purpose-grid .choice-body.row { flex-direction: row !important; align-items: center !important; }
  .choice-grid.three .choice-body.row { align-items: center; text-align: center; padding: 12px 6px; }
  .addon { flex-wrap: wrap; gap: 10px 12px; }
  .addon .qty { order: 5; margin-inline-start: 58px; }
  .months-control { gap: 16px; }
  .months-value strong { font-size: 42px; }
  .card-block { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

[dir=ltr] { unicode-bidi: isolate; }
.success strong[dir=ltr], .rv-row [dir=ltr] { white-space: nowrap; }
