/* INCHUB 360: shared journey components (service page, checkout, portal). Tokens only, RTL via logical properties. */

/* Fields */
.f { display: grid; gap: 6px; }
.f > label, .f > .lbl { font-weight: 800; font-size: var(--ih-font-size-sm); }
.f .hint { font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); line-height: 1.6; }
.inp, .sel { font: inherit; font-size: 16px; inline-size: 100%; min-block-size: 48px; padding: 10px 14px; border: 1px solid var(--ih-border-strong, var(--ih-color-neutral-300)); border-radius: var(--ih-radius-md); background: var(--ih-surface); color: var(--ih-text); }
.sel { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 5px 5px; background-repeat: no-repeat; background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; padding-inline-end: 40px; }
[dir="rtl"] .sel { background-position: 15px 50%, 20px 50%; }
.inp:focus-visible, .sel:focus-visible { outline: 2px solid var(--ih-focus-ring); outline-offset: 1px; border-color: var(--ih-primary); }
.inp[aria-invalid="true"], .sel[aria-invalid="true"] { border-color: var(--ih-color-status-danger, var(--ih-color-orange-800)); }
.err { color: var(--ih-color-orange-800); font-size: var(--ih-font-size-xs); font-weight: 700; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* Multi-select chips (countries) */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; display: grid; gap: 2px; justify-items: start; padding: 10px 12px; padding-inline-end: 32px; min-block-size: 56px; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); background: var(--ih-surface); cursor: pointer; font-size: var(--ih-font-size-sm); font-weight: 700; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick small { font-weight: 500; color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.pick:has(input:checked) { border-color: var(--ih-primary); background: var(--ih-color-orange-50); box-shadow: inset 0 0 0 1px var(--ih-primary); }
.pick:has(input:focus-visible) { outline: 2px solid var(--ih-focus-ring); outline-offset: 2px; }
.pick .tick { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; inline-size: 18px; block-size: 18px; border-radius: 50%; border: 1px solid var(--ih-border); display: grid; place-items: center; font-size: 11px; color: transparent; }
.pick:has(input:checked) .tick { background: var(--ih-primary); border-color: var(--ih-primary); color: var(--ih-on-primary); }

/* Option cards (radio) */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); background: var(--ih-surface); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt b { font-size: var(--ih-font-size-sm); }
.opt span { font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); line-height: 1.55; }
.opt:has(input:checked) { border-color: var(--ih-primary); background: var(--ih-color-orange-50); box-shadow: inset 0 0 0 1px var(--ih-primary); }
.opt:has(input:focus-visible) { outline: 2px solid var(--ih-focus-ring); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); background: var(--ih-surface); cursor: pointer; font-size: var(--ih-font-size-sm); line-height: 1.55; }
.check input { inline-size: 20px; block-size: 20px; accent-color: var(--ih-primary); margin-block-start: 1px; flex: none; }
.check b { display: block; }
.check small { color: var(--ih-text-muted); }

/* Name check result */
.ncheck { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--ih-radius-md); font-size: var(--ih-font-size-sm); line-height: 1.55; }
.ncheck.ok { background: var(--ih-color-orange-50); border: 1px solid var(--ih-color-orange-200); }
.ncheck.warn { background: var(--ih-color-neutral-100); border: 1px solid var(--ih-color-neutral-300); }
.ncheck ih-hub { --ih-hub-size: 22px; flex: none; }

/* Service page layout */
.svc-hero { padding-block: 40px 8px; display: grid; gap: 12px; }
.svc-hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.15; }
.svc-hero p { color: var(--ih-text-muted); font-size: var(--ih-font-size-md); max-inline-size: 640px; line-height: 1.7; }
.svc-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-facts span { border: 1px solid var(--ih-border); background: var(--ih-surface); border-radius: var(--ih-radius-pill); padding: 4px 12px; font-size: var(--ih-font-size-xs); font-weight: 700; }
.cfg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; padding-block: 20px 40px; }
.cfg { display: grid; gap: 22px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-lg); padding: 22px; }
.cfg-step { display: grid; gap: 10px; }
.cfg-step + .cfg-step { border-block-start: 1px solid var(--ih-border); padding-block-start: 20px; }
.cfg-step h2 { font-size: var(--ih-font-size-md); display: flex; gap: 10px; align-items: center; }
.cfg-step h2 i { font-style: normal; inline-size: 26px; block-size: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ih-text); color: var(--ih-bg); font-size: 13px; }
.cfg-step h2 small { font-weight: 500; color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.more { justify-self: start; font: inherit; font-size: var(--ih-font-size-sm); font-weight: 700; color: var(--ih-text-accent); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.cls-note { font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); background: var(--ih-color-neutral-100); border-radius: var(--ih-radius-md); padding: 8px 10px; line-height: 1.6; }

/* Price card */
.price { position: sticky; inset-block-start: 88px; display: grid; gap: 12px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-lg); padding: 20px; }
.price h3 { font-size: var(--ih-font-size-md); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price h3 em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--ih-color-orange-800); background: var(--ih-color-orange-100); border-radius: var(--ih-radius-pill); padding: 2px 8px; }
.pl { display: grid; gap: 4px; font-size: var(--ih-font-size-sm); padding-block-end: 10px; border-block-end: 1px dashed var(--ih-border); }
.pl > div { display: flex; justify-content: space-between; gap: 8px; }
.pl .c { font-weight: 800; }
.pl small { color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.ptotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: var(--ih-font-size-lg); }
.pnote { font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); line-height: 1.6; }
.pempty { font-size: var(--ih-font-size-sm); color: var(--ih-text-muted); }
.mbar { display: none; }

/* Below the configurator */
.svc-sec { padding-block: 36px; border-block-start: 1px solid var(--ih-border); display: grid; gap: 16px; }
.svc-sec h2 { font-size: clamp(22px, 3vw, 28px); }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.four > div { display: grid; gap: 6px; align-content: start; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); padding: 14px; font-size: var(--ih-font-size-sm); line-height: 1.6; }
.four ih-hub { --ih-hub-size: 28px; }
.four b { font-size: var(--ih-font-size-sm); }
.four span { color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); padding: 14px 16px; }
.faq summary { font-weight: 800; cursor: pointer; font-size: var(--ih-font-size-sm); }
.faq p { margin-block-start: 8px; color: var(--ih-text-muted); font-size: var(--ih-font-size-sm); line-height: 1.7; }

/* Minimal app header (checkout, portal) */
.app-head { position: sticky; inset-block-start: 0; z-index: 30; background: var(--ih-bg); border-block-end: 1px solid var(--ih-border); }
.app-head .bar { display: flex; align-items: center; gap: 12px; min-block-size: 64px; }
.app-head .grow { flex: 1; }
.app-head .secure { font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); font-weight: 700; }
.lang-mini { font: inherit; font-size: var(--ih-font-size-xs); border: 1px solid var(--ih-border); background: var(--ih-surface); border-radius: var(--ih-radius-pill); padding: 6px 10px; color: var(--ih-text); }

/* Checkout */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; padding-block: 28px 64px; }
.stepper { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-block-end: 16px; }
.stepper ih-hub { --ih-hub-size: 40px; }
.stepper ol { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: var(--ih-font-size-sm); color: var(--ih-text-muted); }
.stepper li[aria-current="step"] { color: var(--ih-text); font-weight: 800; }
.stepper li.done { color: var(--ih-text); }
.stepper li.done::before { content: "✓ "; color: var(--ih-text-accent); }
.panel { display: grid; gap: 18px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-lg); padding: 22px; }
.panel h1 { font-size: clamp(22px, 3vw, 28px); }
.panel > p { color: var(--ih-text-muted); line-height: 1.7; font-size: var(--ih-font-size-sm); }
.sso { display: grid; gap: 8px; }
.sso button { font: inherit; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; min-block-size: 50px; border-radius: var(--ih-radius-md); border: 1px solid var(--ih-border); background: var(--ih-surface); color: var(--ih-text); cursor: pointer; }
.sso button:hover { border-color: var(--ih-text); }
.sso .apple { background: var(--ih-text); color: var(--ih-bg); border-color: var(--ih-text); }
.or { display: flex; align-items: center; gap: 10px; color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.or::before, .or::after { content: ""; flex: 1; block-size: 1px; background: var(--ih-border); }
.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input { inline-size: 46px; block-size: 54px; text-align: center; font: inherit; font-size: 22px; font-weight: 800; border: 1px solid var(--ih-color-neutral-300); border-radius: var(--ih-radius-md); background: var(--ih-surface); color: var(--ih-text); }
.otp input:focus-visible { outline: 2px solid var(--ih-focus-ring); border-color: var(--ih-primary); }
.who { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--ih-radius-md); background: var(--ih-color-neutral-100); font-size: var(--ih-font-size-sm); }
.who b { flex: 1; overflow-wrap: anywhere; }
.linkbtn { font: inherit; font-size: var(--ih-font-size-xs); font-weight: 700; color: var(--ih-text-accent); background: none; border: 0; cursor: pointer; padding: 4px; }
.pay-box { border: 1px dashed var(--ih-color-neutral-300); border-radius: var(--ih-radius-md); padding: 14px; color: var(--ih-text-muted); font-size: var(--ih-font-size-sm); line-height: 1.6; }
.later { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--ih-radius-md); background: var(--ih-color-orange-50); border: 1px solid var(--ih-color-orange-200); font-size: var(--ih-font-size-sm); line-height: 1.6; }

/* Portal */
.portal-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-block-size: calc(100dvh - 65px); }
.pside { background: var(--ih-color-neutral-950); color: var(--ih-color-neutral-100); padding: 16px 12px; display: grid; gap: 2px; align-content: start; }
.pside a { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: inherit; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-size: var(--ih-font-size-sm); }
.pside a:hover { background: var(--ih-color-neutral-900); }
.pside a[aria-current="page"] { background: var(--ih-color-neutral-800); font-weight: 800; color: var(--ih-color-neutral-50); }
.pside em { font-style: normal; font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 0 7px; background: var(--ih-primary); color: var(--ih-color-neutral-950); }
.pmain { padding: 24px clamp(16px, 3vw, 36px) 64px; display: grid; gap: 18px; align-content: start; max-inline-size: 1080px; }
.pmain h1 { font-size: clamp(22px, 3vw, 30px); }
.action { display: grid; gap: 12px; border: 1px solid var(--ih-color-orange-300); background: var(--ih-color-orange-50); border-radius: var(--ih-radius-lg); padding: 18px; }
.action.is-clear { border-color: var(--ih-border); background: var(--ih-surface); }
.action-h { display: flex; gap: 10px; align-items: center; }
.warn-ico { inline-size: 32px; block-size: 32px; flex: none; border-radius: 50%; background: var(--ih-primary); color: var(--ih-color-neutral-950); display: grid; place-items: center; font-weight: 800; }
.action.is-clear .warn-ico { background: var(--ih-color-neutral-950); color: var(--ih-primary); }
.action-h b { font-size: var(--ih-font-size-md); }
.action-h div > span { display: block; font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); }
.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); padding: 12px 14px; }
.req b { font-size: var(--ih-font-size-sm); }
.req small { grid-column: 1; color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); line-height: 1.55; }
.req .go { grid-row: 1 / span 2; grid-column: 2; }
.req.is-done { opacity: .75; }
.req.is-done b::before { content: "✓ "; color: var(--ih-text-accent); }
.req .sel { min-block-size: 40px; font-size: var(--ih-font-size-sm); }
.req-actions { display: flex; align-items: center; gap: 8px; }
.req-actions ih-hub { --ih-hub-size: 26px; }
.btn-sm { font: inherit; font-weight: 800; font-size: var(--ih-font-size-xs); min-block-size: 40px; padding: 8px 14px; border-radius: var(--ih-radius-pill); border: 1px solid var(--ih-primary); background: var(--ih-primary); color: var(--ih-on-primary); cursor: pointer; white-space: nowrap; }
.btn-sm.ghost { background: var(--ih-surface); color: var(--ih-text); border-color: var(--ih-border); }
.ocard { display: grid; gap: 14px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-lg); padding: 18px; }
.ocard-h { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; justify-content: space-between; }
.ocard-h b { font-size: var(--ih-font-size-md); }
.ocard-h span { font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); }
.trk4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.trk4 li { display: grid; gap: 6px; font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); line-height: 1.5; }
.trk4 li::before { content: ""; block-size: 6px; border-radius: 3px; background: var(--ih-color-neutral-200); }
.trk4 li.done { color: var(--ih-text); }
.trk4 li.done::before { background: var(--ih-primary); }
.trk4 li.now { color: var(--ih-text); font-weight: 800; }
.trk4 li.now::before { background: linear-gradient(90deg, var(--ih-primary) 40%, var(--ih-color-orange-200) 40%); }
[dir="rtl"] .trk4 li.now::before { background: linear-gradient(270deg, var(--ih-primary) 40%, var(--ih-color-orange-200) 40%); }
.ctry { display: grid; gap: 6px; }
.ctry > div { display: flex; justify-content: space-between; gap: 10px; font-size: var(--ih-font-size-sm); padding-block: 6px; border-block-start: 1px solid var(--ih-border); }
.ctry span { color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sugg { display: grid; gap: 8px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-lg); padding: 18px; }
.sugg h2 { font-size: var(--ih-font-size-md); }
.sugg a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-block-start: 1px solid var(--ih-border); color: var(--ih-text); text-decoration: none; font-size: var(--ih-font-size-sm); }
.sugg a small { display: block; color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.agent { display: flex; gap: 10px; align-items: center; font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); }
.agent .av { inline-size: 32px; block-size: 32px; border-radius: 50%; background: var(--ih-color-neutral-200); display: grid; place-items: center; font-weight: 800; color: var(--ih-text); }
.toast { position: fixed; inset-block-end: 20px; inset-inline-start: 50%; translate: -50% 0; z-index: 60; background: var(--ih-color-neutral-950); color: var(--ih-color-neutral-50); border-radius: var(--ih-radius-pill); padding: 10px 18px; font-size: var(--ih-font-size-sm); font-weight: 700; display: flex; gap: 8px; align-items: center; }
[dir="rtl"] .toast { translate: 50% 0; }
.toast ih-hub { --ih-hub-size: 20px; }

@media (max-width: 960px) {
  .cfg-wrap, .co, .pgrid { grid-template-columns: 1fr; }
  .price { position: static; }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-shell { grid-template-columns: 1fr; }
  .pside { display: flex; overflow-x: auto; gap: 4px; padding: 8px 12px; position: sticky; inset-block-start: 65px; z-index: 20; }
  .pside a { white-space: nowrap; padding: 8px 12px; }
}
@media (max-width: 760px) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts { grid-template-columns: 1fr; }
  .cfg, .panel { padding: 16px; }
  .app-head .secure { display: none; }
  /* Mobile: total + continue pinned to the bottom */
  .mbar { display: flex; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ih-surface); border-block-start: 1px solid var(--ih-border); }
  .mbar b { font-size: var(--ih-font-size-lg); }
  .mbar small { display: block; font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); }
  .has-mbar { padding-block-end: 84px; }
  .price .btn--block { display: none; }
  .trk4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req { grid-template-columns: 1fr; }
  .req .go { grid-row: auto; grid-column: 1; }
}
@media (max-width: 400px) { .four { grid-template-columns: 1fr; } .otp input { inline-size: 40px; block-size: 50px; } }
@media (max-width: 760px) { .has-mbar .proto-flag { inset-block-end: 84px; } }

/* Service hero art: one light SVG per service. transform/opacity only; paused off-screen and for reduced motion */
.svc-hero--art { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 24px; }
.svc-hero-txt { display: grid; gap: 12px; }
.tm-art { inline-size: 100%; block-size: auto; overflow: visible; }
.tm-orbit { fill: none; stroke: var(--ih-color-neutral-300); stroke-width: 1.5; stroke-dasharray: 3 7; transform-origin: 160px 120px; animation: tm-orbit 40s linear infinite; }
.tm-pins circle { fill: var(--ih-surface); stroke: var(--ih-color-neutral-300); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: tm-pin 6s ease-in-out infinite; }
.tm-pins circle:nth-child(2) { animation-delay: .5s; } .tm-pins circle:nth-child(3) { animation-delay: 1s; } .tm-pins circle:nth-child(4) { animation-delay: 1.5s; }
.tm-card rect { fill: var(--ih-surface); stroke: var(--ih-color-neutral-300); stroke-width: 1.5; }
.tm-word { font: 800 26px/1 Manrope, sans-serif; fill: var(--ih-text); letter-spacing: .04em; }
.tm-rule { stroke: var(--ih-color-neutral-200); stroke-width: 6; stroke-linecap: round; }
.tm-seal circle { fill: var(--ih-primary); }
.tm-seal text { font: 800 14px/1 Manrope, sans-serif; fill: var(--ih-color-neutral-950); }
.tm-seal { transform-box: fill-box; transform-origin: center; animation: tm-seal 6s cubic-bezier(.34, 1.56, .64, 1) infinite; }
@keyframes tm-orbit { to { transform: rotate(360deg); } }
@keyframes tm-pin { 0%, 15% { fill: var(--ih-surface); transform: scale(1); } 25%, 85% { fill: var(--ih-primary); stroke: var(--ih-primary); transform: scale(1.15); } 100% { fill: var(--ih-surface); transform: scale(1); } }
@keyframes tm-seal { 0%, 30% { opacity: 0; transform: scale(1.6) rotate(-20deg); } 40%, 88% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(1); } }
.is-offscreen * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .tm-art * { animation: none !important; } .tm-seal { opacity: 1; } .tm-pins circle { fill: var(--ih-primary); stroke: var(--ih-primary); } }
@media (max-width: 760px) { .svc-hero--art { grid-template-columns: 1fr; } .tm-art { display: none; } }

/* Price promise */
.promise { border-radius: var(--ih-radius-md); background: var(--ih-color-neutral-100); padding: 10px 12px; font-size: var(--ih-font-size-xs); line-height: 1.6; }
.promise b { font-size: var(--ih-font-size-sm); }
.promise ul { margin: 4px 0 0; padding-inline-start: 18px; display: grid; gap: 2px; }
.lbl { font-weight: 800; font-size: var(--ih-font-size-sm); }

/* Checkout: back + stepper span the page, so the form and order card start on the same line */
.co-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block-start: 24px; }
.co-top .stepper { margin: 0; }
.co { padding-block: 16px 48px; }
.back { font: inherit; font-weight: 800; font-size: var(--ih-font-size-sm); display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding: 8px 16px; border-radius: var(--ih-radius-pill); border: 1px solid var(--ih-border); background: var(--ih-surface); color: var(--ih-text); cursor: pointer; }
.back:hover { border-color: var(--ih-text); }
.back:focus-visible { outline: 2px solid var(--ih-focus-ring); outline-offset: 2px; }
.trust { display: grid; gap: 6px; font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); line-height: 1.6; border-block-start: 1px solid var(--ih-border); padding-block-start: 12px; }
.panel .hint a, .co-foot a { color: var(--ih-text-accent); }
.co-foot { border-block-start: 1px solid var(--ih-border); padding-block: 18px; font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); }
.co-foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.co-foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.opts:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .opts:has(> :nth-child(3)) { grid-template-columns: 1fr; } }

/* ── Service template (stages/service) ── */
.badge { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--ih-color-orange-800); background: var(--ih-color-orange-100); border-radius: var(--ih-radius-pill); padding: 1px 8px; margin-inline-start: 4px; white-space: nowrap; vertical-align: 1px; }
.opt .add, .check .add { font-weight: 800; color: var(--ih-text); font-size: var(--ih-font-size-xs); }
.check { align-items: center; }
.check > span:nth-of-type(1) { flex: 1; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stepper-n { display: flex; align-items: center; gap: 10px; }
.stepper-n button { font: inherit; font-size: 20px; font-weight: 800; inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1px solid var(--ih-border); background: var(--ih-surface); color: var(--ih-text); cursor: pointer; }
.stepper-n button:hover { border-color: var(--ih-text); }
.stepper-n output { min-inline-size: 32px; text-align: center; font-size: var(--ih-font-size-lg); font-weight: 800; }
.dom { grid-template-columns: minmax(0, 1fr) 96px auto; }
/* Requirements gate */
.req-gate { background: var(--ih-color-neutral-100); border-radius: var(--ih-radius-md); padding: 16px !important; border-block-start: 0 !important; }
.req-gate h2 i { background: var(--ih-primary) !important; color: var(--ih-color-neutral-950) !important; }
.gq { display: grid; gap: 8px; padding-block: 10px; border-block-start: 1px solid var(--ih-border); }
.gq-q b { display: block; font-size: var(--ih-font-size-sm); }
.gq-q small { color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); line-height: 1.55; }
.seg { display: inline-flex; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 72px; min-block-size: 44px; padding: 8px 16px; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-pill); background: var(--ih-surface); font-weight: 800; font-size: var(--ih-font-size-sm); }
.seg input:checked + span { border-color: var(--ih-text); background: var(--ih-text); color: var(--ih-bg); }
.seg input:focus-visible + span { outline: 2px solid var(--ih-focus-ring); outline-offset: 2px; }
.block { display: grid; gap: 10px; justify-items: start; border-radius: var(--ih-radius-md); padding: 12px 14px; background: var(--ih-surface); border: 1px solid var(--ih-color-orange-300); border-inline-start: 4px solid var(--ih-primary); font-size: var(--ih-font-size-sm); line-height: 1.6; }
.block.is-warn { border-color: var(--ih-border); border-inline-start-color: var(--ih-color-neutral-600); }
.btn-fix { min-block-size: 40px; padding: 8px 14px; font-size: var(--ih-font-size-xs); }
.price [aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pl small.ln { display: block; color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); font-weight: 500; }
.pl > div > span:last-child { white-space: nowrap; font-weight: 700; }
.eta { font-size: var(--ih-font-size-sm); font-weight: 700; background: var(--ih-color-orange-50); border-radius: var(--ih-radius-md); padding: 8px 10px; }
.renew { font-size: var(--ih-font-size-xs); line-height: 1.6; color: var(--ih-text-muted); border: 1px dashed var(--ih-border); border-radius: var(--ih-radius-md); padding: 8px 10px; }
.renew b { color: var(--ih-text); }
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rel a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); background: var(--ih-surface); color: var(--ih-text); text-decoration: none; font-size: var(--ih-font-size-sm); }
.rel a:hover { border-color: var(--ih-text); }
.rel a span:not(.flip) { color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.rel .flip { justify-self: end; color: var(--ih-text-accent); }
.em-l { fill: none; stroke: var(--ih-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.em-w { stroke: var(--ih-primary); stroke-width: 4; }
.em-f { fill: var(--ih-primary); }
.em-h { fill: var(--ih-surface); }
.sv-tick { fill: none; stroke: var(--ih-color-neutral-950); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .opts--3, .opts:has(> :nth-child(4)) { grid-template-columns: 1fr; } .rel { grid-template-columns: 1fr; } .dom { grid-template-columns: 1fr 88px; } .dom .btn { grid-column: 1 / -1; } }
.cfg-step > .hint { font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); line-height: 1.6; }
/* Banks: grouped list + money-back bar (approved status-success token) */
.bk-g { font-weight: 800; font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-block-start: 6px; }
:lang(ar) .bk-g { text-transform: none; letter-spacing: 0; }
.mbg { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--ih-radius-md); padding: 10px 12px; font-size: var(--ih-font-size-sm); line-height: 1.6;
  background: var(--ih-color-status-success-bg); color: var(--ih-text); border: 1px solid color-mix(in srgb, var(--ih-color-status-success) 35%, transparent); }
.mbg > span { flex: none; inline-size: 22px; block-size: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--ih-color-status-success); color: var(--ih-color-neutral-50); }
.mbg b { color: var(--ih-color-status-success); }
.mbg.is-branch { background: var(--ih-color-neutral-100); border-color: var(--ih-border); }
.mbg.is-branch > span { background: var(--ih-color-neutral-600); font-style: italic; }

/* Instant checks: ✓ available (success token) · ✕ taken (danger token) · i specialist check (neutral) */
.nc-wrap { position: relative; display: flex; align-items: center; }
.nc-wrap .nc-inp { padding-inline-end: 110px; }
.nc-suf { position: absolute; inset-inline-end: 44px; font-weight: 800; font-size: var(--ih-font-size-sm); color: var(--ih-text-muted); pointer-events: none; }
.nc-ico { position: absolute; inset-inline-end: 12px; inline-size: 24px; block-size: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.nc-ico.is-ok { background: var(--ih-color-status-success); color: var(--ih-color-neutral-50); }
.nc-ico.is-bad { background: var(--ih-color-status-danger); color: var(--ih-color-neutral-50); }
.nc-ico.is-manual { background: var(--ih-color-neutral-600); color: var(--ih-color-neutral-50); font-style: italic; }
.nc { display: flex; gap: 10px; align-items: flex-start; margin-block-start: 8px; padding: 10px 12px; border-radius: var(--ih-radius-md); font-size: var(--ih-font-size-sm); line-height: 1.55; }
.nc b { display: block; }
.nc small { color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.nc ih-hub { --ih-hub-size: 22px; flex: none; }
.nc-b { flex: none; inline-size: 22px; block-size: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--ih-color-neutral-50); }
.nc--ok { background: var(--ih-color-status-success-bg); } .nc--ok .nc-b { background: var(--ih-color-status-success); } .nc--ok b { color: var(--ih-color-status-success); }
.nc--bad { background: var(--ih-color-status-danger-bg); } .nc--bad .nc-b { background: var(--ih-color-status-danger); } .nc--bad b { color: var(--ih-color-status-danger); }
.nc--manual { background: var(--ih-color-neutral-100); } .nc--manual .nc-b { background: var(--ih-color-neutral-600); font-style: italic; }
.nc--wait { background: var(--ih-color-neutral-100); align-items: center; }
.nc-alts { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 6px; }
.chip-btn { font: inherit; font-size: var(--ih-font-size-xs); font-weight: 700; min-block-size: 36px; padding: 6px 12px; border-radius: var(--ih-radius-pill); border: 1px solid var(--ih-border); background: var(--ih-surface); color: var(--ih-text); cursor: pointer; }
.chip-btn:hover { border-color: var(--ih-text); }
.dom1 { grid-template-columns: minmax(0, 1fr) auto; }
.dres { display: grid; gap: 6px; margin-block-start: 10px; }
.dr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-block-size: 48px; padding: 8px 14px; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); background: var(--ih-surface); cursor: pointer; font-size: var(--ih-font-size-sm); }
.dr input { position: absolute; opacity: 0; pointer-events: none; }
.dr:has(input:checked) { border-color: var(--ih-primary); background: var(--ih-color-orange-50); box-shadow: inset 0 0 0 1px var(--ih-primary); }
.dr:has(input:focus-visible) { outline: 2px solid var(--ih-focus-ring); outline-offset: 2px; }
.dr.is-taken { cursor: default; color: var(--ih-text-muted); background: var(--ih-color-neutral-50); }
.dr-n { font-weight: 700; overflow-wrap: anywhere; text-align: start; }
.dr .ok { color: var(--ih-color-status-success); font-weight: 800; font-size: var(--ih-font-size-xs); }
.dr .bad { color: var(--ih-color-status-danger); font-weight: 800; font-size: var(--ih-font-size-xs); }
.dr-p { font-weight: 800; font-size: var(--ih-font-size-xs); min-inline-size: 70px; text-align: end; }
.tmres { display: grid; gap: 6px; } .tm-sim { margin: 4px 0; padding-inline-start: 18px; font-size: var(--ih-font-size-xs); }
.dr-alt { position: absolute; inset-block-start: -8px; inset-inline-end: 12px; margin: 0; }

/* Office locations: pick the exact place before paying */
.locs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.loc { position: relative; display: grid; gap: 8px; align-content: start; padding: 14px; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-md); background: var(--ih-surface); cursor: pointer; }
.loc input { position: absolute; opacity: 0; pointer-events: none; }
.loc:hover { border-color: var(--ih-text); }
.loc:has(input:checked) { border-color: var(--ih-primary); background: var(--ih-color-orange-50); box-shadow: inset 0 0 0 1px var(--ih-primary); }
.loc:has(input:focus-visible) { outline: 2px solid var(--ih-focus-ring); outline-offset: 2px; }
.loc-top { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.loc-top b { display: block; font-size: var(--ih-font-size-sm); }
.loc-top small { color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.loc-pin { inline-size: 34px; block-size: 34px; border-radius: 10px; background: var(--ih-color-neutral-950); display: grid; place-items: center; }
.loc-pin svg { inline-size: 20px; block-size: 20px; } .loc-pin path { fill: var(--ih-primary); } .loc-pin circle { fill: var(--ih-color-neutral-950); }
.loc-price { text-align: end; } .loc-price b { font-size: var(--ih-font-size-md); }
.loc-addr { font-size: var(--ih-font-size-xs); color: var(--ih-text-muted); }
.loc-inc { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: var(--ih-font-size-xs); }
.loc-inc li::before { content: "✓ "; color: var(--ih-color-status-success); font-weight: 800; }
.loc-left { justify-self: start; font-size: 10.5px; font-weight: 800; border-radius: var(--ih-radius-pill); padding: 2px 8px; background: var(--ih-color-status-success-bg); color: var(--ih-color-status-success); }
.loc-left.is-low { background: var(--ih-color-orange-100); color: var(--ih-color-orange-800); }
.loc-tick { position: absolute; inset-block-start: -8px; inset-inline-end: -8px; inline-size: 22px; block-size: 22px; border-radius: 50%; display: none; place-items: center; background: var(--ih-primary); color: var(--ih-color-neutral-950); font-weight: 800; font-size: 12px; }
.loc:has(input:checked) .loc-tick { display: grid; }
@media (max-width: 760px) { .locs { grid-template-columns: 1fr; } }

/* Portal: address card + mailbox */
.addr-line { font-size: var(--ih-font-size-md); font-weight: 700; line-height: 1.6; }
.addr-act { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pill { font-size: 10.5px; font-weight: 800; border-radius: var(--ih-radius-pill); padding: 2px 10px; background: var(--ih-color-neutral-100); color: var(--ih-text-muted); }
.pill.is-ok { background: var(--ih-color-status-success-bg); color: var(--ih-color-status-success); }
.btn-sm:disabled { opacity: .45; cursor: not-allowed; }
.mails { list-style: none; margin: 0; padding: 0; display: grid; }
.mail { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding-block: 12px; border-block-start: 1px solid var(--ih-border); }
.mail.is-new .mail-b b::after { content: ""; display: inline-block; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--ih-primary); margin-inline-start: 8px; vertical-align: 2px; }
.env { inline-size: 36px; block-size: 36px; border-radius: 10px; background: var(--ih-color-neutral-100); display: grid; place-items: center; font-size: 18px; }
.mail-b { display: grid; gap: 2px; }
.mail-b small { color: var(--ih-text-muted); font-size: var(--ih-font-size-xs); }
.mail-st { font-size: var(--ih-font-size-xs); font-weight: 700; color: var(--ih-text-accent); }
.mail-a { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fwd { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px; border-radius: var(--ih-radius-md); background: var(--ih-color-neutral-100); }
.scan-dlg { border: 0; border-radius: var(--ih-radius-lg); padding: 16px; inline-size: min(460px, 92vw); background: var(--ih-surface); color: var(--ih-text); }
.scan-dlg::backdrop { background: color-mix(in srgb, var(--ih-color-neutral-950) 55%, transparent); }
.letter-bg { fill: var(--ih-color-neutral-50); stroke: var(--ih-border); }
.scan-h { display: flex; justify-content: space-between; align-items: center; margin-block-end: 10px; }
.letter { inline-size: 100%; block-size: auto; color: var(--ih-text); }
@media (max-width: 760px) { .mail { grid-template-columns: 36px minmax(0, 1fr); } .mail-a { grid-column: 1 / -1; justify-content: flex-start; } }
.refund-rule { font-size: var(--ih-font-size-xs); line-height: 1.6; color: var(--ih-text); background: var(--ih-color-status-success-bg); border-radius: var(--ih-radius-md); padding: 8px 10px; }
.help-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.help-row .wa { border: 1px solid var(--ih-border); background: var(--ih-surface); }

/* Service pages: a large Hub turning very slowly in the background, far right (owner request).
   Physical right in every language (the Hub is never mirrored). One GPU transform; paused for reduced motion. */
.bg-fan { position: fixed; inset-block-start: 16vh; right: calc(var(--bg-fan) * -0.32); --bg-fan: min(48vw, 680px); inline-size: var(--bg-fan); block-size: var(--bg-fan); z-index: 0; pointer-events: none; opacity: .08; animation: bg-fan-turn 120s linear infinite; will-change: transform; }
.bg-fan ih-hub { --ih-hub-size: var(--bg-fan); color: var(--ih-text); }
@keyframes bg-fan-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bg-fan { animation: none; } }
@media (max-width: 760px) { .bg-fan { --bg-fan: 90vw; right: -45vw; inset-block-start: 30vh; opacity: .06; } }
@media print { .bg-fan { display: none; } }
body:has(.bg-fan) > main, body:has(.bg-fan) > .site-footer, body:has(.bg-fan) > .mbar { position: relative; z-index: 1; }
/* Portal: review invitation after a completed order */
.review-ask { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 18px; border-radius: var(--ih-radius-lg); background: var(--ih-surface); border: 1px solid var(--ih-border); border-inline-start: 4px solid #00B67A; }
.review-ask > div { flex: 1; min-inline-size: 220px; } .review-ask p { color: var(--ih-text-muted); font-size: var(--ih-font-size-sm); line-height: 1.6; }
.review-star { inline-size: 36px; block-size: 36px; display: grid; place-items: center; background: #00B67A; color: var(--ih-color-neutral-50); font-size: 20px; border-radius: 6px; }
/* Checkout: discount coupon (codes live in Stripe as promotion codes) */
#coupon { display: grid; gap: 6px; }
.cp-form { display: flex; gap: 8px; } .cp-form .inp { flex: 1; min-inline-size: 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.cp-on { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--ih-color-status-success-bg); color: var(--ih-color-status-success); font-size: 13px; font-weight: 700; }
.cp-on .linkbtn { font-size: 12px; }
.pl s.was { color: var(--ih-text-muted); font-weight: 600; margin-inline-end: 4px; text-decoration-thickness: 1.5px; }
