/* ============================================================
   منظومة الهيئة العربية للتصنيع الرقمية — نموذج تجريبي
   Institutional Arabic RTL identity
   ============================================================ */

:root{
  --navy:#0B2545;
  --navy-2:#16375C;
  --gold:#C9A227;
  --sand:#EFE9DE;
  --card:#FFFFFF;
  --line:#E2DED4;
  --muted:#5A6B80;
  --soft:#FBFAF6;
  --danger:#B4392F;
  --ok:#1F6B4A;
  --radius:18px;
  --shadow:0 2px 10px rgba(11,37,69,.07);
  --shadow-lg:0 10px 26px rgba(11,37,69,.12);
  --font-head:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'IBM Plex Sans Arabic',system-ui,-apple-system,'Segoe UI',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--sand);color:var(--navy);
  font-family:var(--font-body);font-size:15px;line-height:1.7;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
h1,h2,h3,h4{margin:0;font-family:var(--font-head);font-weight:800;line-height:1.4}
p{margin:0}
button{font:inherit;color:inherit;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}
input{font:inherit;color:inherit}
[hidden]{display:none!important}
:focus-visible{outline:3px solid rgba(201,162,39,.65);outline-offset:2px;border-radius:10px}
.ic{width:20px;height:20px;flex:0 0 auto;display:block}

/* ---------------- top bar ---------------- */
.topbar{
  position:sticky;top:0;z-index:60;
  background:rgba(239,233,222,.94);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  border-top:2px solid var(--gold);
}
.topbar-in{
  max-width:1180px;margin:0 auto;padding:10px 16px;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 190px}
.brand-txt{display:flex;flex-direction:column;min-width:0}
.brand-txt strong{font-family:var(--font-head);font-weight:800;font-size:13.5px;line-height:1.35;color:var(--navy)}
.brand-txt span{font-size:11px;color:var(--muted);line-height:1.4}
.logo-sm{
  width:40px;height:40px;flex:0 0 auto;border:1.4px dashed #B9B3A4;border-radius:11px;
  background:var(--soft);display:grid;place-items:center;color:#8B8577;font-size:9px;
  font-family:var(--font-body);font-weight:500;line-height:1;
}
.segmented{
  display:flex;gap:4px;padding:4px;background:#fff;border:1px solid var(--line);
  border-radius:999px;box-shadow:var(--shadow);
}
.seg{
  border:0;background:transparent;color:var(--muted);
  font-family:var(--font-head);font-weight:700;font-size:13.5px;
  padding:8px 16px;border-radius:999px;min-height:40px;
  transition:background .18s ease,color .18s ease;
}
.seg.is-active{background:var(--navy);color:#fff}

/* ---------------- stage ---------------- */
.stage{max-width:1180px;margin:0 auto;padding:18px 14px 4px;display:flex;justify-content:center}
.view{width:100%}
.view-app{display:flex;flex-direction:column;align-items:center;gap:10px}

/* ---------------- phone frame ---------------- */
.phone{
  position:relative;width:min(392px,100%);
  background:linear-gradient(155deg,#16375C 0%,#0B2545 62%,#081c34 100%);
  padding:9px;border-radius:46px;
  box-shadow:0 30px 60px -24px rgba(11,37,69,.55),0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone::after{
  content:'';position:absolute;inset:4px;border-radius:42px;
  border:1px solid rgba(255,255,255,.09);pointer-events:none;
}
.phone-screen{
  position:relative;display:flex;flex-direction:column;
  height:clamp(460px,calc(100dvh - 232px),716px);
  background:var(--sand);border-radius:38px;overflow:hidden;
}
.statusbar{
  flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;
  padding:9px 22px 2px;font-size:11.5px;font-weight:600;color:var(--navy);
}
.sb-island{width:70px;height:20px;border-radius:999px;background:var(--navy);opacity:.92}
.sb-icons{display:flex;align-items:center;gap:5px;color:var(--navy)}
.screen-scroll{
  flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;
  padding:0 15px 16px;scrollbar-width:none;
}
.screen-scroll::-webkit-scrollbar{display:none}
.frame-caption{font-size:11.5px;color:var(--muted);text-align:center;max-width:340px;line-height:1.6}

/* ---------------- bottom tabs ---------------- */
.tabbar{
  flex:0 0 auto;display:grid;grid-template-columns:repeat(4,1fr);
  background:#fff;border-top:1px solid var(--line);padding:6px 4px 8px;
}
.tab{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;
  background:none;border:0;padding:7px 2px;border-radius:12px;min-height:52px;
  color:var(--muted);font-family:var(--font-body);font-size:11.5px;font-weight:500;
  transition:color .18s ease;
}
.tab .ic{width:22px;height:22px}
.tab.is-active{color:var(--navy);font-weight:700}
.tab.is-active::before{
  content:'';position:absolute;top:-1px;width:26px;height:3px;border-radius:0 0 4px 4px;background:var(--gold);
}
.tab-dot{
  position:absolute;top:4px;inset-inline-start:calc(50% + 8px);
  min-width:16px;height:16px;padding:0 4px;border-radius:999px;
  background:var(--gold);color:#fff;font-size:10px;font-weight:700;
  display:grid;place-items:center;line-height:1;
}

/* ---------------- generic blocks ---------------- */
.screen-pad{display:flex;flex-direction:column;gap:14px;padding:12px 0 4px}
.page-title{font-size:20px;font-weight:800}
.page-sub{font-size:12.5px;color:var(--muted);line-height:1.7;margin-top:-8px}
.section-title{font-size:15px;font-weight:800;margin-top:2px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:52px;padding:0 18px;border-radius:14px;border:1px solid transparent;
  font-family:var(--font-head);font-weight:700;font-size:15.5px;
  transition:transform .12s ease,box-shadow .2s ease,background-color .18s ease,border-color .18s ease;
}
.btn .ic{width:18px;height:18px}
.btn.primary{background:var(--navy);color:#fff;min-height:56px;box-shadow:0 8px 18px -10px rgba(11,37,69,.7)}
.btn.primary:active{transform:scale(.985)}
.btn.ghost{background:#fff;color:var(--navy);border-color:var(--line)}
.btn.danger{background:var(--danger);color:#fff}
.btn.danger-ghost{background:#fff;color:var(--danger);border-color:#EFC9C4}
.btn.tiny{min-height:40px;font-size:13px;padding:0 14px;border-radius:11px}
.btn.block{width:100%}
.btn[disabled]{opacity:.42;cursor:not-allowed;box-shadow:none}
.btn.danger-text{color:var(--danger)}
@media(hover:hover){.btn.ghost:hover{border-color:#CBD5E1;background:#FDFCF9}}

.link-gold{
  background:none;border:0;padding:2px 6px;border-radius:8px;
  font-size:12.5px;font-weight:700;color:var(--navy);
  border-bottom:1.5px solid var(--gold);line-height:1.4;
}
.back-link{
  align-self:flex-start;display:inline-flex;align-items:center;gap:4px;
  background:none;border:0;padding:4px 2px;font-size:12.5px;font-weight:600;color:var(--muted);
}
.back-link .ic{width:15px;height:15px}

/* ---------------- logo + system head ---------------- */
.logo-banner{
  width:100%;min-height:62px;border:1.5px dashed #B9B3A4;border-radius:14px;
  background:var(--soft);display:flex;align-items:center;justify-content:center;
  color:#8B8577;font-size:11.5px;text-align:center;padding:8px 12px;line-height:1.5;
}
.sys-head{display:flex;align-items:flex-start;gap:10px}
.sys-head-txt{display:flex;flex-direction:column;gap:6px;min-width:0}
.sys-title{font-size:18px;font-weight:800;line-height:1.45}
.sys-title.sm{font-size:16px}
.chip-demo{
  align-self:flex-start;display:inline-flex;align-items:center;gap:5px;
  background:rgba(201,162,39,.15);color:var(--navy);
  border:1px solid rgba(201,162,39,.55);border-radius:999px;
  padding:2px 9px;font-size:11px;font-weight:600;font-family:var(--font-head);line-height:1.6;
}
.lead{font-size:13px;color:var(--muted);line-height:1.7}

/* ---------------- search ---------------- */
.field-search{
  display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);
  border-radius:14px;padding:0 12px;height:52px;box-shadow:var(--shadow);
}
.field-search input{
  flex:1 1 auto;border:0;background:transparent;height:100%;font-size:15px;outline:none;min-width:0;
}
.field-search input::-webkit-search-cancel-button,
.field-search input::-webkit-search-decoration{display:none}
.fs-ico{color:var(--muted);display:grid;place-items:center}
.fs-ico .ic{width:19px;height:19px}
.fs-clear{
  display:none;width:28px;height:28px;border-radius:50%;border:0;
  background:#F1EEE7;color:var(--navy);place-items:center;flex:0 0 auto;
}
.fs-clear .ic{width:14px;height:14px}
.field-search:has(input:not(:placeholder-shown)) .fs-clear{display:grid}

/* ---------------- unit list ---------------- */
.group{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.group-title{
  font-size:12.5px;font-weight:700;color:var(--muted);
  display:flex;align-items:center;gap:8px;letter-spacing:0;
}
.group-title::after{content:'';flex:1 1 auto;height:1px;background:var(--line)}
.unit-card{
  display:flex;align-items:center;gap:11px;width:100%;text-align:start;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;
  box-shadow:var(--shadow);transition:border-color .18s ease,backdrop-filter .2s ease,transform .12s ease;
}
.unit-card:active{transform:scale(.995)}
.unit-card.is-selected{border-color:var(--navy);background:#fff;box-shadow:0 4px 16px rgba(11,37,69,.13)}
.unit-ico{
  width:40px;height:40px;border-radius:12px;background:rgba(11,37,69,.06);
  display:grid;place-items:center;color:var(--navy);flex:0 0 auto;
}
.unit-ico .ic{width:20px;height:20px}
.unit-body{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1 1 auto}
.unit-body strong{font-family:var(--font-head);font-size:14px;font-weight:700;line-height:1.45}
.unit-body small{font-size:11.5px;color:var(--muted)}
.unit-mark{
  width:24px;height:24px;border-radius:50%;border:1.5px solid #DCD6C8;
  display:grid;place-items:center;color:#fff;flex:0 0 auto;
}
.unit-card.is-selected .unit-mark{background:var(--navy);border-color:var(--navy)}
.unit-mark .ic{width:13px;height:13px;stroke-width:2.8}
.unit-card:not(.is-selected) .unit-mark .ic{display:none}

.empty,.empty-soft{
  display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
  background:var(--soft);border:1px dashed var(--line);border-radius:14px;padding:18px 14px;
  font-size:12.5px;color:var(--muted);line-height:1.7;
}
.empty-soft{flex-direction:row;align-items:flex-start;text-align:start;gap:8px;padding:12px}
.empty-soft .ic{width:16px;height:16px;color:var(--gold);margin-top:2px}
.empty-ico{
  width:44px;height:44px;border-radius:50%;background:#F1EEE7;
  display:grid;place-items:center;color:var(--muted);
}
.sticky-cta{
  position:sticky;bottom:0;margin-top:auto;padding-top:10px;
  background:linear-gradient(to top,var(--sand) 62%,rgba(239,233,222,0));
}

/* ---------------- forms ---------------- */
.form-card{
  display:flex;flex-direction:column;gap:14px;background:#fff;
  border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);
}
.field{display:flex;flex-direction:column;gap:6px}
.field-label{
  font-family:var(--font-head);font-weight:700;font-size:13.5px;
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.field-label em{
  font-style:normal;font-size:10.5px;font-weight:500;color:var(--muted);
  background:#F4F1EA;border-radius:6px;padding:1px 6px;line-height:1.6;
}
.field input{
  height:52px;border:1px solid var(--line);border-radius:12px;padding:0 14px;
  background:#FCFBF8;font-size:15px;transition:border-color .18s,background .18s,box-shadow .18s;
}
.field input:focus{outline:none;border-color:var(--navy);background:#fff;box-shadow:0 0 0 3px rgba(11,37,69,.08)}
.field-hint{font-size:11.5px;color:var(--muted);display:flex;gap:6px;align-items:flex-start;line-height:1.65}
.field-hint .ic{width:14px;height:14px;margin-top:3px;flex:0 0 auto}
.field-hint.warn{color:#8A5A12}
.field-error{
  font-size:12px;font-weight:600;color:var(--danger);
  background:#FBEDEB;border:1px solid #EFC9C4;border-radius:10px;padding:8px 12px;
}
.avatar-row{display:flex;align-items:center;gap:12px}
.avatar-ph{
  width:62px;height:62px;border-radius:16px;background:#EDEAE3;border:1px dashed #C9C3B5;
  display:grid;place-items:center;color:#9A9484;flex:0 0 auto;
}
.avatar-ph .ic{width:28px;height:28px}
.avatar-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.avatar-txt strong{font-family:var(--font-head);font-size:13px;font-weight:700}
.avatar-txt small{font-size:11.5px;color:var(--muted);line-height:1.6}
.seg-list{display:flex;flex-direction:column;gap:8px}
.seg-pill{
  min-height:48px;border:1px solid var(--line);background:#fff;border-radius:12px;
  text-align:start;padding:6px 14px;font-size:14px;font-weight:500;
  display:flex;align-items:center;gap:10px;transition:border-color .16s,background .16s;
}
.seg-pill::before{
  content:'';width:16px;height:16px;border-radius:50%;border:1.6px solid #D8D2C4;flex:0 0 auto;
}
.seg-pill.is-on{border-color:var(--navy);background:rgba(11,37,69,.05);font-weight:700}
.seg-pill.is-on::before{border-color:var(--navy);border-width:5px}
.unit-chip{
  display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);
  border-inline-start:3px solid var(--gold);border-radius:12px;padding:9px 12px;
  font-size:12.5px;font-weight:600;box-shadow:var(--shadow);
}
.unit-chip .ic{width:16px;height:16px;color:var(--navy)}

/* ---------------- hero / home ---------------- */
.sys-hero{
  position:relative;background:#fff;border:1px solid var(--line);
  border-radius:20px;padding:15px;box-shadow:var(--shadow);overflow:hidden;
  display:flex;flex-direction:column;gap:12px;
}
.sys-hero::before{content:'';position:absolute;inset-inline:0;top:0;height:2px;background:var(--gold)}
.hero-top{display:flex;align-items:flex-start;gap:10px}
.hero-txt{display:flex;flex-direction:column;gap:6px;min-width:0}
.unit-line{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  border-top:2px solid var(--gold);padding-top:10px;font-size:12.5px;
}
.ul-label{color:var(--muted);font-size:11.5px}
.unit-line strong{font-family:var(--font-head);font-size:13.5px;font-weight:700;flex:1 1 120px}
.greet{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;flex-wrap:wrap}
.greet strong{font-family:var(--font-head);font-weight:700}
.pill-soft{
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:2px 10px;font-size:11px;color:var(--muted);font-weight:500;
}

/* ---------------- service cards ---------------- */
.services-grid{display:grid;gap:10px;grid-template-columns:1fr}
.service-card{
  display:flex;align-items:center;gap:12px;width:100%;text-align:start;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:13px;box-shadow:var(--shadow);
  transition:transform .14s ease,box-shadow .2s ease,border-color .2s ease;
}
.service-card:active{transform:scale(.99)}
@media(hover:hover){.service-card:hover{border-color:#CBD5E1;box-shadow:var(--shadow-lg)}}
.svc-ico{
  width:44px;height:44px;border-radius:13px;background:var(--navy);color:var(--gold);
  display:grid;place-items:center;flex:0 0 auto;
}
.svc-ico .ic{width:22px;height:22px;stroke-width:1.9}
.svc-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.svc-body strong{font-family:var(--font-head);font-size:14.5px;font-weight:800;line-height:1.4}
.svc-body small{font-size:11.5px;color:var(--muted);line-height:1.6}
.svc-cta{color:#B9B3A4;flex:0 0 auto;display:grid;place-items:center}
.svc-cta .ic{width:17px;height:17px}

.notice-card{
  display:flex;gap:9px;align-items:flex-start;background:var(--soft);
  border:1px solid var(--line);border-inline-start:3px solid var(--gold);
  border-radius:14px;padding:11px 13px;font-size:12px;color:#41546B;line-height:1.7;
}
.notice-card .ic{width:16px;height:16px;color:var(--gold);margin-top:3px;flex:0 0 auto}

/* ---------------- orders ---------------- */
.order-list{display:flex;flex-direction:column;gap:11px}
.order-card{
  display:flex;flex-direction:column;gap:7px;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:13px;box-shadow:var(--shadow);
  border-inline-start:3px solid var(--gold);
}
.order-card.is-confirmed{border-inline-start-color:var(--ok)}
.order-card.is-cancelled{border-inline-start-color:var(--danger);opacity:.78}
.oc-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.oc-num{
  font-family:var(--font-head);font-weight:800;font-size:13.5px;
  font-variant-numeric:tabular-nums;letter-spacing:.3px;color:var(--navy);
}
.status{
  font-size:11px;font-weight:600;padding:2px 9px;border-radius:999px;
  border:1px solid transparent;white-space:nowrap;
}
.is-pending .status{color:#8A5A12;background:#FDF6E3;border-color:#EEDCA4}
.is-confirmed .status{color:#1F6B4A;background:#EDF7F1;border-color:#BFE3D0}
.is-cancelled .status{color:#8C2E26;background:#FBEDEB;border-color:#EFC9C4}
.oc-title{font-size:14.5px;font-weight:800}
.oc-unit{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.oc-unit .ic{width:15px;height:15px;flex:0 0 auto}
.oc-date{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.oc-date .ic{width:14px;height:14px}
.oc-details{border-top:1px dashed var(--line);padding-top:7px;margin-top:2px}
.oc-details summary{
  cursor:pointer;font-size:12px;font-weight:600;color:var(--navy);
  list-style:none;display:flex;align-items:center;gap:6px;
}
.oc-details summary::-webkit-details-marker{display:none}
.oc-details summary::after{
  content:'';width:7px;height:7px;border-inline-end:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;transform:rotate(45deg);margin-inline-start:2px;
  transition:transform .2s ease;margin-bottom:3px;
}
.oc-details[open] summary::after{transform:rotate(-135deg);margin-bottom:-2px}
.oc-rows{display:flex;flex-direction:column;gap:5px;padding-top:8px}
.oc-rows div{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.oc-rows span{color:var(--muted)}
.oc-rows strong{font-weight:600;text-align:end}
.oc-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}

/* ---------------- account ---------------- */
.profile-card{
  display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);
}
.profile-avatar{
  width:60px;height:60px;border-radius:16px;background:rgba(11,37,69,.07);
  display:grid;place-items:center;color:var(--navy);flex:0 0 auto;
}
.profile-avatar .ic{width:28px;height:28px}
.profile-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.profile-txt strong{font-family:var(--font-head);font-size:15.5px;font-weight:800}
.profile-txt small{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.info-list{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:4px 14px;box-shadow:var(--shadow);
}
.info-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 0;border-bottom:1px solid #F1EEE7;font-size:13px;
}
.info-row:last-child{border-bottom:0}
.info-row > span{color:var(--muted);font-size:12.5px;flex:0 0 auto}
.info-row > strong{font-weight:600;text-align:end;font-size:13px}
.info-row .masked{font-variant-numeric:tabular-nums;letter-spacing:1px;color:var(--navy)}

/* ---------------- overlays ---------------- */
.overlay-layer{
  position:absolute;inset:0;z-index:70;display:flex;justify-content:center;align-items:flex-end;
}
.overlay-layer.overlay-web{position:fixed;inset:0;align-items:center;padding:16px}
.overlay-backdrop{
  position:absolute;inset:0;background:rgba(11,37,69,.52);
  backdrop-filter:blur(4px);animation:fadeIn .2s ease;
}
.sheet{
  position:relative;z-index:1;width:100%;max-height:92%;background:#fff;
  border-radius:24px 24px 0 0;display:flex;flex-direction:column;
  box-shadow:0 -16px 50px rgba(11,37,69,.35);
  animation:riseIn .3s cubic-bezier(.22,1,.36,1);
}
.overlay-web .sheet{
  max-width:520px;border-radius:22px;max-height:min(86vh,720px);animation:popIn .24s ease;
}
.sheet-grip{width:44px;height:4px;border-radius:999px;background:#DCD6C8;margin:8px auto 0;flex:0 0 auto}
.overlay-web .sheet-grip{display:none}
.sheet-head{
  display:flex;align-items:flex-start;gap:10px;padding:14px 16px 10px;
  border-bottom:1px solid var(--line);flex:0 0 auto;
}
.sheet-head-txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.sheet-eyebrow{font-size:11px;color:var(--muted);line-height:1.6}
.sheet-head h2{font-size:17px;font-weight:800}
.icon-btn{
  width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;
  display:grid;place-items:center;color:var(--navy);flex:0 0 auto;
}
.icon-btn .ic{width:16px;height:16px}
.progress{display:flex;gap:5px;padding:10px 16px 0;flex:0 0 auto}
.progress span{height:4px;border-radius:999px;background:#E6E1D6;flex:1 1 0;transition:background .2s ease}
.progress span.on{background:var(--gold)}
.sheet-body{padding:14px 16px;overflow-y:auto;flex:1 1 auto;display:flex;flex-direction:column;gap:12px}
.sheet-foot{
  display:flex;gap:10px;padding:12px 16px 16px;border-top:1px solid var(--line);
  background:#fff;flex:0 0 auto;border-radius:0 0 22px 22px;
}
.sheet-foot .btn{flex:1 1 0}
.step-head{display:flex;flex-direction:column;gap:3px}
.step-count{font-size:11.5px;color:var(--muted);font-weight:600}
.step-head h3{font-size:16px;font-weight:800}
.step-note{
  display:flex;gap:7px;align-items:flex-start;font-size:11.5px;color:var(--muted);line-height:1.7;
}
.step-note .ic{width:14px;height:14px;margin-top:3px;color:var(--gold);flex:0 0 auto}
.options{display:flex;flex-direction:column;gap:8px}
.option{
  display:flex;align-items:center;gap:10px;min-height:52px;padding:9px 13px;
  border:1px solid var(--line);border-radius:13px;background:#fff;text-align:start;
  font-size:14px;font-weight:500;
  transition:border-color .16s,background .16s,transform .1s;
}
.option:active{transform:scale(.995)}
.option > span:first-child{flex:1 1 auto;line-height:1.5}
.opt-check{
  width:22px;height:22px;border-radius:50%;border:1.5px solid #DCD6C8;
  display:grid;place-items:center;color:transparent;flex:0 0 auto;
}
.opt-check .ic{width:13px;height:13px;stroke-width:2.8}
.option.is-selected{border-color:var(--navy);background:rgba(11,37,69,.045);font-weight:700}
.option.is-selected .opt-check{background:var(--navy);border-color:var(--navy);color:#fff}
.review{background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:2px 14px}
.review-row{
  display:flex;justify-content:space-between;gap:12px;padding:10px 0;
  border-bottom:1px dashed #E7E2D7;font-size:13px;
}
.review-row:last-child{border-bottom:0}
.review-row > span{color:var(--muted);flex:0 0 auto;font-size:12.5px}
.review-row > strong{font-weight:700;text-align:end}
.sheet.dialog{
  max-width:420px;max-height:none;padding:20px 18px 16px;border-radius:22px;
  align-self:center;margin:0 12px;text-align:center;gap:0;
}
.overlay-web .sheet.dialog{margin:0}
.dialog-ico{
  width:52px;height:52px;border-radius:50%;display:grid;place-items:center;
  margin:0 auto 10px;background:#FBEDEB;color:var(--danger);
}
.dialog-ico .ic{width:24px;height:24px}
.sheet.dialog h3{font-size:17px;margin-bottom:6px}
.sheet.dialog p{font-size:13px;color:var(--muted);line-height:1.75}
.sheet.dialog p strong{color:var(--navy);font-weight:700}
.dialog-actions{display:flex;gap:10px;margin-top:16px}
.dialog-actions .btn{flex:1 1 0}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes riseIn{from{transform:translateY(24px);opacity:.4}to{transform:translateY(0);opacity:1}}
@keyframes popIn{from{transform:scale(.96);opacity:0}to{transform:scale(1);opacity:1}}

/* ---------------- toast ---------------- */
.toast-host{
  position:fixed;left:0;right:0;bottom:22px;z-index:300;display:flex;
  justify-content:center;padding:0 16px;pointer-events:none;
}
.toast{
  background:var(--navy);color:#fff;padding:10px 18px;border-radius:999px;
  font-size:13px;font-weight:600;max-width:min(430px,100%);text-align:center;
  box-shadow:0 14px 30px -12px rgba(11,37,69,.7);
  opacity:0;transform:translateY(10px);transition:opacity .22s ease,transform .22s ease;
  line-height:1.6;
}
.toast-host.is-on .toast{opacity:1;transform:translateY(0)}

/* ---------------- footer ---------------- */
.page-foot{max-width:720px;margin:18px auto 34px;padding:0 16px;text-align:center;display:flex;flex-direction:column;gap:10px}
.foot-note{
  font-size:12.5px;color:var(--navy);background:#fff;border:1px solid var(--line);
  border-inline-start:3px solid var(--gold);border-radius:12px;padding:10px 14px;
  box-shadow:var(--shadow);line-height:1.75;
}
.foot-fine{font-size:11px;color:var(--muted);line-height:1.8}

/* ============================================================
   WEB VIEW
   ============================================================ */
.view-web{display:flex;flex-direction:column}
.web-shell{
  background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;
  box-shadow:0 24px 60px -34px rgba(11,37,69,.5);min-height:calc(100dvh - 260px);
  display:flex;flex-direction:column;
}
.web-top{
  background:linear-gradient(180deg,#16375C,#0B2545);color:#fff;
  border-top:3px solid var(--gold);
  padding:12px 18px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;
}
.web-brand{display:flex;align-items:center;gap:10px;min-width:0}
.web-brand .logo-sm{
  border-color:rgba(255,255,255,.35);color:rgba(255,255,255,.72);
  background:rgba(255,255,255,.07);
}
.web-brand strong{display:block;font-family:var(--font-head);font-weight:800;font-size:14.5px;color:#fff;line-height:1.45}
.web-brand small{display:block;font-size:11px;color:rgba(255,255,255,.72);line-height:1.6}
.web-nav{display:flex;gap:2px;margin-inline-start:auto;flex-wrap:wrap}
.web-nav button{
  border:0;background:transparent;color:rgba(255,255,255,.78);
  font-family:var(--font-head);font-weight:700;font-size:13.5px;
  padding:8px 14px;border-radius:10px;min-height:42px;
  transition:background .18s ease,color .18s ease;
}
.web-nav button.is-active{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 -2px 0 var(--gold)}
.web-body{flex:1 1 auto;background:var(--sand);padding:22px 18px 34px}
.web-body > .screen-pad{max-width:1000px;margin:0 auto;gap:16px;padding-top:0}

.view-web .sys-title{font-size:26px;line-height:1.4}
.view-web .sys-title.sm{font-size:22px}
.view-web .page-title{font-size:26px}
.view-web .page-sub{font-size:14px;max-width:66ch;margin-top:-10px}
.view-web .section-title{font-size:18px}
.view-web .lead{font-size:14px}
.view-web .sys-hero{padding:22px;border-radius:20px;gap:16px}
.view-web .logo-banner{min-height:74px;font-size:12.5px}
.view-web .services-grid{grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:14px}
.view-web .service-card{padding:16px;min-height:98px}
.view-web .svc-body strong{font-size:15.5px}
.view-web .svc-body small{font-size:12.5px}
.view-web .seg-list{flex-direction:row;flex-wrap:wrap}
.view-web .seg-pill{flex:1 1 200px;min-height:52px}
.view-web .form-card{padding:22px;gap:16px}
.view-web .field input{height:54px;font-size:15.5px}
.view-web .sticky-cta{position:static;background:none;padding-top:0;max-width:340px}
.view-web .unit-card{padding:14px}
.view-web .unit-body strong{font-size:14.5px}
.view-web .order-card{padding:16px}
.view-web .info-row{padding:13px 0;font-size:13.5px}
.view-web .btn.primary{max-width:340px}
.view-web .sticky-cta .btn.block{max-width:340px}

/* ---------------- responsive ---------------- */
@media (max-width:560px){
  .topbar-in{padding:9px 12px;gap:8px}
  .brand{flex:1 1 100%}
  .segmented{margin-inline-start:0;width:100%;justify-content:space-between}
  .seg{flex:1 1 0;padding:8px 10px}
  .stage{padding:12px 10px 2px}
  .view-web .sys-title{font-size:21px}
  .view-web .page-title{font-size:21px}
  .web-top{padding:11px 14px}
  .web-body{padding:16px 12px 26px}
  .web-nav{width:100%;margin-inline-start:0;overflow-x:auto;flex-wrap:nowrap}
  .web-nav button{flex:0 0 auto}
}
@media (max-width:360px){
  .phone{padding:7px;border-radius:40px}
  .phone-screen{border-radius:34px;height:clamp(440px,calc(100dvh - 226px),700px)}
  .screen-scroll{padding:0 12px 14px}
  .statusbar{padding:8px 16px 2px}
}

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

/* ---------------- print ---------------- */
@media print{
  .topbar,.page-foot,.frame-caption,.toast-host,.tabbar,.overlay-layer{display:none!important}
  body{background:#fff}
  .phone{box-shadow:none;background:#fff;border:1px solid #ccc}
}