/* Self-hosted Vazirmatn (no Google Fonts; works when CDNs are blocked) */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/vazirmatn-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/vazirmatn-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/vazirmatn-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/vazirmatn-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/vazirmatn-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/vazirmatn-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/vazirmatn-arabic-800-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/vazirmatn-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --zo-navy: #0f172a;
  --zo-navy-2: #1a1c2e;
  --zo-gold: #d4af37;
  --zo-gold-soft: #f3d879;
  --zo-gold-wash: #fbf7ec;
  --zo-peach: #f6ead2;
  --zo-bg: #f8f4eb;
  --zo-card: #ffffff;
  --zo-text: #111827;
  --zo-muted: #6b7280;
  --zo-border: #ebe6dc;
  --zo-ok: #059669;
  --zo-danger: #e11d48;
  --zo-shadow: 0 14px 40px -22px rgb(15 23 42 / 28%);
  --radius: 1.35rem;
  --nav-h: 6.25rem;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  color: var(--zo-text);
  background: var(--zo-bg);
  -webkit-tap-highlight-color: transparent;
}
body { direction: rtl; }
.hidden { display: none !important; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 80% at 50% 0%, #1e293b 0%, var(--zo-navy) 55%, #020617 100%);
  color: #f8fafc; gap: .65rem;
}
.splash-glow {
  position: absolute; width: 18rem; height: 18rem; border-radius: 50%;
  background: rgb(212 175 55 / 16%); filter: blur(40px);
}
.splash-logo {
  width: 5.5rem; height: 5.5rem; border-radius: 1.25rem;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 55%); z-index: 1;
  animation: logoPop .7s cubic-bezier(.2,.9,.2,1);
}
.splash-word { font-size: 1.75rem; font-weight: 800; z-index: 1; }
.splash-sub { color: #94a3b8; font-size: .88rem; z-index: 1; text-align: center; padding: 0 1.5rem; }
.splash-bar {
  margin-top: 1.4rem; width: 7rem; height: .28rem; border-radius: 999px;
  background: rgb(255 255 255 / 12%); overflow: hidden; z-index: 1;
}
.splash-bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--zo-gold-soft), var(--zo-gold));
  animation: splashLoad 1.1s ease-in-out infinite;
}
@keyframes logoPop { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes splashLoad { from { transform: translateX(-120%); } to { transform: translateX(280%); } }

/* Onboarding */
.onboard {
  min-height: 100dvh; display: flex; flex-direction: column;
  padding: max(.75rem, env(safe-area-inset-top)) 1.1rem calc(1.25rem + env(safe-area-inset-bottom));
  background: var(--zo-bg);
}
.onboard-top { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.onboard-brand { font-weight: 800; flex: 1; }
.link-btn { border: 0; background: transparent; color: var(--zo-muted); font: inherit; font-weight: 700; cursor: pointer; }
.onboard-slides { flex: 1; display: flex; align-items: center; }
.onboard-slide { display: none; width: 100%; text-align: center; padding: .5rem .25rem 1rem; }
.onboard-slide.active { display: block; animation: fadeSlide .35s ease; }
.onboard-slide h1 { margin: 1rem 0 .45rem; font-size: 1.5rem; font-weight: 800; }
.onboard-slide p { margin: 0 auto; max-width: 22rem; color: var(--zo-muted); line-height: 1.65; }
.onboard-art {
  width: min(100%, 17rem); aspect-ratio: 1.1; margin: 0 auto; border-radius: 1.6rem;
  position: relative; overflow: hidden; box-shadow: var(--zo-shadow);
}
.art-missions { background: linear-gradient(160deg, #0f172a, #243044); }
.art-missions::before {
  content: ""; position: absolute; inset: 22% 18% 28%;
  background: linear-gradient(145deg, #f3d879, #b8860b); border-radius: .55rem;
  transform: skewY(-8deg); box-shadow: 0 10px 20px rgb(0 0 0 / 25%);
}
.art-missions::after {
  content: ""; position: absolute; width: .9rem; height: 1.2rem; right: 28%; top: 34%;
  background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .95;
}
.art-nav { background: linear-gradient(180deg, #ecfdf5, #d1fae5); }
.art-nav::after {
  content: ""; position: absolute; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--zo-gold); left: 50%; top: 52%; transform: translate(-50%,-50%);
  box-shadow: 0 0 0 .55rem rgb(212 175 55 / 25%), 0 0 0 6rem rgb(16 185 129 / 12%);
}
.art-qr { background: linear-gradient(180deg, #fff7ed, #f6ead2); }
.art-qr::before {
  content: ""; position: absolute; inset: 22%; border: 2px solid var(--zo-navy); border-radius: .6rem;
}
.art-qr::after {
  content: ""; position: absolute; inset: 36%; background: var(--zo-gold); border-radius: .25rem;
}
.onboard-dots { display: flex; justify-content: center; gap: .4rem; margin: .75rem 0 1rem; }
.onboard-dots span { width: .45rem; height: .45rem; border-radius: 999px; background: #d6d0c4; }
.onboard-dots span.active { width: 1.35rem; background: var(--zo-gold); }
.onboard-actions { display: flex; gap: .55rem; }
.onboard-actions .btn { flex: 1; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* App shell */
.app-shell {
  min-height: 100dvh; display: flex; flex-direction: column;
  max-width: 480px; margin: 0 auto; background: var(--zo-bg); position: relative;
}
.soft-header {
  position: sticky; top: 0; z-index: 30;
  padding: max(.85rem, env(safe-area-inset-top)) 1rem .35rem;
  background: linear-gradient(180deg, #fbf7ec 70%, transparent);
}
.hello-row { display: flex; align-items: center; gap: .75rem; }
.avatar-logo {
  width: 3rem; height: 3rem; border-radius: 999px; object-fit: cover;
  border: 2px solid #fff; box-shadow: var(--zo-shadow);
}
.hello-text { flex: 1; min-width: 0; }
.hello-hi { font-weight: 800; font-size: 1.05rem; }
.hello-loc { color: var(--zo-muted); font-size: .78rem; margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.conn-pills {
  display: flex; gap: .25rem; padding: .35rem .45rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--zo-border);
}
.dot { width: .45rem; height: .45rem; border-radius: 50%; background: #94a3b8; }
.dot[data-ok="1"] { background: #34d399; }
.dot[data-ok="0"] { background: #f87171; }
.dot[data-ok="2"] { background: #fbbf24; }
.icon-round {
  width: 2.4rem; height: 2.4rem; border-radius: .85rem; border: 1px solid var(--zo-border);
  background: #fff; color: var(--zo-navy); font: inherit; font-size: 1rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

.main {
  flex: 1;
  padding: .35rem 1rem calc(var(--nav-h) + 1.25rem + env(safe-area-inset-bottom));
}
.page { display: flex; flex-direction: column; gap: .85rem; }

/* Login */
.login-page { padding-top: .5rem; }
.login-hero { text-align: center; padding: 1rem .5rem .25rem; }
.login-icon { width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; box-shadow: var(--zo-shadow); }
.login-word { margin-top: .75rem; font-size: 1.7rem; font-weight: 800; }
.login-tag { margin: .35rem 0 0; color: var(--zo-muted); font-size: .9rem; line-height: 1.5; }
.login-tagline { margin: .35rem 0 0; color: #92400e; font-size: .82rem; font-weight: 700; }
.login-features { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.login-features span {
  font-size: .72rem; font-weight: 700; padding: .28rem .55rem; border-radius: 999px;
  background: rgb(212 175 55 / 14%); color: #92400e; border: 1px solid rgb(212 175 55 / 30%);
}
.login-h { margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 800; }
.rounded-logo { border-radius: .85rem; object-fit: cover; }

.card {
  background: var(--zo-card); border: 1px solid var(--zo-border);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--zo-shadow);
}
.label { display: block; font-size: .72rem; font-weight: 700; color: var(--zo-muted); margin: .65rem 0 .3rem; }
.input, textarea.input {
  width: 100%; background: #fff; border: 1px solid var(--zo-border);
  color: var(--zo-text); border-radius: 1rem; padding: .85rem .9rem; margin-bottom: .35rem; font: inherit;
}
.input:focus { outline: 2px solid rgb(212 175 55 / 45%); border-color: var(--zo-gold); }
.mono { font-family: ui-monospace, Consolas, monospace; direction: ltr; text-align: left; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: .8rem 1.1rem;
  cursor: pointer; font: inherit; font-weight: 800;
}
.btn-uber { background: var(--zo-navy); color: #fff; box-shadow: 0 10px 24px -14px rgb(15 23 42 / 70%); }
.btn-uber:active { transform: scale(.98); }
.btn-gold {
  background: linear-gradient(135deg, var(--zo-gold-soft), var(--zo-gold));
  color: #1f2937;
}
.btn-ghost { background: #fff; color: var(--zo-text); border: 1px solid var(--zo-border); }
.btn-sm { padding: .45rem .8rem; font-size: .8rem; }
.btn-block { width: 100%; margin-top: .65rem; }
.btn-circle {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 0;
  background: var(--zo-navy); color: #fff; cursor: pointer; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }

.go-online {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1rem;
  background: linear-gradient(135deg, #fff 0%, #fbf7ec 100%);
  border: 1px solid var(--zo-border);
  border-radius: 1.45rem;
  box-shadow: var(--zo-shadow);
  position: relative;
  overflow: hidden;
}
.go-online.is-online {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #243044 100%);
  border-color: rgb(212 175 55 / 35%);
  color: #f8fafc;
}
.go-online.is-online .muted,
.go-online.is-online .online-label { color: #f8fafc; }
.go-online.is-online .online-label.on { color: var(--zo-gold-soft); }
.go-online-visual {
  width: 4.2rem; height: 2.4rem; position: relative; overflow: hidden;
}
.kot-stage { display: grid; place-items: center; }
.kot-road {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-bottom: 2px dashed rgb(212 175 55 / 45%);
}
.kot-truck {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  color: var(--zo-navy);
  display: grid; place-items: center;
  filter: grayscale(.4); opacity: .7;
}
.go-online.is-online .kot-truck {
  color: var(--zo-gold-soft);
  filter: none; opacity: 1;
  animation: truckHaulOnline 2.85s infinite;
  animation-timing-function: cubic-bezier(0.12, 0.02, 0.82, 0.28);
}
.go-online-copy { min-width: 0; }

.online-label { font-weight: 800; font-size: 1.1rem; }
.online-label.on { color: var(--zo-ok); }
.switch { position: relative; width: 3.5rem; height: 2rem; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; cursor: pointer; background: #d6d0c4; border-radius: 999px; transition: .2s;
}
.slider::before {
  content: ""; position: absolute; height: 1.55rem; width: 1.55rem;
  right: .22rem; bottom: .22rem; background: #fff; border-radius: 50%; transition: .2s;
  box-shadow: 0 2px 6px rgb(0 0 0 / 18%);
}
.switch input:checked + .slider { background: var(--zo-navy); }
.switch input:checked + .slider::before { transform: translateX(-1.4rem); }

.big-switch { width: 4.2rem; height: 2.35rem; }
.big-switch .slider {
  display: flex; align-items: center; justify-content: flex-start; padding: 0 .35rem;
}
.big-switch .switch-cap {
  position: absolute; left: .4rem; font-size: .62rem; font-weight: 800; color: #fff;
  opacity: 0; transition: .2s;
}
.big-switch input:checked + .slider .switch-cap { opacity: 1; left: .45rem; }
.big-switch input:checked + .slider::before { transform: translateX(-1.75rem); }
.big-switch .slider::before {
  height: 1.85rem; width: 1.85rem; right: .25rem; bottom: .25rem;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Boarding-pass / air-ticket mission cards */
.ticket {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: var(--zo-shadow);
  border: 1px solid var(--zo-border);
  overflow: hidden;
  margin-bottom: .65rem;
  cursor: pointer;
}
.ticket:active { transform: scale(.99); }
.ticket-top {
  display: grid; grid-template-columns: 1fr auto;
  gap: .55rem; padding: .35rem 1rem .75rem;
  background: linear-gradient(180deg, #fffdf8, #fff);
}
.ticket-head {
  display: flex; justify-content: flex-end; align-items: center;
  padding: .55rem 1rem 0;
  background: linear-gradient(180deg, #fffdf8, #fffdf8);
}
.ticket-stub {
  position: static;
  z-index: 1;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em;
  color: #92400e; background: rgb(255 252 245 / 96%);
  border: 1px solid rgb(212 175 55 / 45%); border-radius: 999px;
  padding: .18rem .5rem;
  white-space: nowrap;
}
.ticket-route {
  display: flex; align-items: center; gap: .55rem;
}
.ticket-city {
  font-weight: 800; font-size: 1.05rem; line-height: 1.1;
  max-width: 38%; overflow: hidden; text-overflow: ellipsis;
}
.ticket-city small { display: block; font-size: .68rem; font-weight: 600; color: var(--zo-muted); margin-top: .15rem; }
.ticket-haul {
  flex: 1; display: flex; align-items: center; gap: .25rem; color: var(--zo-gold); min-width: 3.5rem;
  position: relative; overflow: hidden; height: 1.55rem; direction: ltr;
}
.ticket-haul .dash {
  flex: 1; height: 0; border-top: 2px dashed rgb(212 175 55 / 55%);
}
.ticket-haul .truck-haul {
  position: absolute; top: 50%; left: 0;
  width: 2.55rem; height: 1.25rem;
  color: var(--zo-navy);
  filter: drop-shadow(0 1px 1px rgb(15 23 42 / 22%));
}

/* Side truck · left → right · slow then gas */
.truck-anim {
  animation: truckHaul 2.85s infinite;
  animation-timing-function: cubic-bezier(0.12, 0.02, 0.82, 0.28);
  will-change: transform;
}
.ticket-haul .truck-anim {
  transform: translate(-80%, -50%);
  animation-name: truckHaul;
}
.ticket-truck-badge .truck-anim {
  width: 1.9rem; height: .95rem;
  transform-origin: center;
  animation-name: truckNudge;
  animation-duration: 1.45s;
  animation-timing-function: ease-in-out;
}
.tl-step.current .truck-anim,
.tl-item.current .truck-anim,
.jewel-cta .truck-anim {
  animation: truckNudge 1.45s ease-in-out infinite;
}
@keyframes truckHaul {
  0% { transform: translate(-85%, -50%) scale(0.96); }
  22% { transform: translate(-40%, -52%) scale(1); }
  45% { transform: translate(0%, -50%) scale(1); }
  72% { transform: translate(58%, -48%) scale(1.04); }
  100% { transform: translate(120%, -50%) scale(1); }
}
@keyframes truckHaulOnline {
  0% { transform: translateX(-110%); }
  20% { transform: translateX(-55%); }
  45% { transform: translateX(-5%); }
  75% { transform: translateX(55%); }
  100% { transform: translateX(120%); }
}
@keyframes truckNudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(2px); }
  70% { transform: translateX(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .truck-anim,
  .go-online.is-online .kot-truck,
  .logi-truck-lane svg { animation: none !important; }
}

/* Carousel replaces horizontal scroll */
.carousel {
  position: relative;
  margin-bottom: .55rem;
}
.carousel.is-empty { display: none; }
.carousel-viewport {
  overflow: hidden;
  border-radius: 1.25rem;
  direction: ltr;
}
.carousel-track {
  display: flex;
  transition: transform .38s cubic-bezier(.22,.7,.3,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 .05rem;
  box-sizing: border-box;
  direction: rtl;
}
.carousel-slide .ticket { margin-bottom: 0; width: 100%; }
.carousel-btn {
  position: absolute; top: 42%; transform: translateY(-50%);
  z-index: 3; width: 2rem; height: 2rem; border-radius: 999px;
  border: 1px solid var(--zo-border); background: rgb(255 255 255 / 92%);
  color: var(--zo-navy); font-size: 1rem; line-height: 1; cursor: pointer;
  box-shadow: var(--zo-shadow);
  display: grid; place-items: center;
  unicode-bidi: isolate; direction: ltr;
}
.carousel-btn.prev { left: .35rem; right: auto; }
.carousel-btn.next { right: .35rem; left: auto; }
.carousel-dots {
  display: flex; justify-content: center; gap: .35rem; margin-top: .55rem;
}
.carousel-dot {
  width: .45rem; height: .45rem; border-radius: 999px; border: 0;
  background: #d6d0c4; padding: 0; cursor: pointer;
}
.carousel-dot.active {
  width: 1.1rem; background: var(--zo-navy);
}

#heroCarousel .ticket-head,
#heroCarousel .ticket-top {
  background: linear-gradient(145deg, #f8efd6, #f0d78a 55%, #e4c15a);
}
#heroCarousel .ticket-bottom { background: linear-gradient(90deg, #fff8e7, #fff); }
.ticket-truck-badge {
  width: 2.6rem; height: 2.6rem; border-radius: .85rem;
  background: linear-gradient(145deg, #0f172a, #243044); color: var(--zo-gold-soft);
  display: grid; place-items: center; flex-shrink: 0; align-self: end;
  margin-top: .35rem;
}
.ticket-truck-badge svg { width: 1.85rem; height: .85rem; }
.ticket-perf {
  position: relative; height: 1.1rem;
  background: repeating-linear-gradient(90deg, transparent 0 6px, #f3f4f6 6px 7px);
}
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: 50%; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--zo-bg); transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px var(--zo-border);
}
.ticket-perf::before { right: -.55rem; }
.ticket-perf::after { left: -.55rem; }
.ticket-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: .65rem;
  padding: .7rem 1rem .85rem;
  background: linear-gradient(90deg, #fbf7ec, #fff);
}
.ticket-meta { font-size: .75rem; color: var(--zo-muted); min-width: 0; flex: 1; }
.ticket-meta strong { display: block; color: var(--zo-navy); font-size: .82rem; margin-bottom: .1rem; }
.ticket-barcode {
  width: 4.2rem; height: 1.6rem; flex-shrink: 0;
  background: repeating-linear-gradient(90deg,
    #111 0 1px, transparent 1px 2px,
    #111 2px 3px, transparent 3px 5px,
    #111 5px 6px, transparent 6px 7px);
  opacity: .75; border-radius: 2px;
}

.nav-svg {
  width: 1.35rem; height: 1.35rem; display: block; margin-bottom: .15rem;
}
.nav-item.active .nav-svg {
  filter: drop-shadow(0 0 6px rgb(243 216 121 / 45%));
}
.nav-item.active[data-tab="active"] .nav-svg {
  animation: truckNudge 1.5s ease-in-out infinite;
}

@media (max-width: 380px) {
  .go-online { grid-template-columns: 1fr auto; }
  .go-online-visual { display: none; }
}

.section-label {
  font-weight: 800; font-size: 1.05rem; margin: .35rem 0 .55rem;
}
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

/* legacy hero-card kept for unused styles */
.hero-card {
  min-width: min(100%, 19.5rem); scroll-snap-align: start;
  background: linear-gradient(145deg, #f8efd6 0%, #f0d78a 48%, #e4c15a 100%);
  border-radius: 1.5rem; padding: 1.05rem 1.1rem; position: relative; overflow: hidden;
  box-shadow: 0 16px 36px -18px rgb(184 134 11 / 55%);
  color: var(--zo-navy);
}
.hero-card::before {
  content: ""; position: absolute; inset: auto -10% -35% 40%; height: 9rem;
  background: radial-gradient(circle, rgb(255 255 255 / 35%), transparent 65%);
  pointer-events: none;
}
.hero-eyebrow { font-size: .72rem; font-weight: 700; opacity: .75; }
.hero-title { font-size: 1.15rem; font-weight: 800; margin: .2rem 0 .45rem; }
.hero-meta { font-size: .78rem; opacity: .8; direction: ltr; text-align: right; }
.hero-body { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: .65rem; }
.gold-bar-3d {
  width: 5.2rem; height: 3.6rem; position: relative; flex-shrink: 0;
  transform: rotate(-12deg);
}
.gold-bar-3d .face {
  position: absolute; inset: 0; border-radius: .45rem;
  background: linear-gradient(160deg, #ffe9a0, #d4af37 45%, #9a7b1a);
  box-shadow: 0 8px 16px rgb(0 0 0 / 18%);
}
.gold-bar-3d .path {
  position: absolute; inset: 28% 18% 32%;
  border: 2px solid #fff; border-radius: 999px; border-left: 0; border-bottom: 0;
  opacity: .9;
}
.gold-bar-3d .pin {
  position: absolute; width: .7rem; height: .9rem; right: 18%; top: 14%;
  background: #fff; clip-path: polygon(50% 100%, 0 35%, 100% 35%);
}

.search-row { margin-bottom: .55rem; }
.search-input {
  width: 100%; border: 1px solid var(--zo-border); background: #fff;
  border-radius: 999px; padding: .8rem 1rem; font: inherit; box-shadow: var(--zo-shadow);
}
.chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .35rem; margin-bottom: .55rem; }
.chip {
  flex-shrink: 0; border: 1px solid var(--zo-border); background: #fff; color: var(--zo-text);
  border-radius: 999px; padding: .45rem .85rem; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.chip.active { background: var(--zo-navy); color: #fff; border-color: var(--zo-navy); }

.soft-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-bottom: .55rem; }
.kpi {
  text-align: center; padding: .65rem .3rem; background: #fff;
  border: 1px solid var(--zo-border); border-radius: 1.1rem; box-shadow: var(--zo-shadow);
}
.kpi-n { display: block; font-weight: 800; color: var(--zo-navy); font-size: 1.15rem; }
.kpi-l { font-size: .7rem; color: var(--zo-muted); }

.job-list { display: flex; flex-direction: column; gap: .55rem; }
.job-row {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--zo-border); border-radius: 1.25rem;
  padding: .85rem .9rem; box-shadow: var(--zo-shadow); cursor: pointer;
}
.job-row:active { transform: scale(.99); }
.job-ico {
  width: 3rem; height: 3rem; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(145deg, #fff6d8, #f0d78a);
  display: grid; place-items: center; position: relative;
}
.job-ico::after {
  content: ""; width: 1.35rem; height: .85rem; border-radius: .2rem;
  background: linear-gradient(160deg, #ffe9a0, #b8860b); transform: skewY(-10deg);
}
.job-body { flex: 1; min-width: 0; }
.job-title { font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-sub { color: var(--zo-muted); font-size: .78rem; margin-top: .15rem; }
.job-chevron {
  width: 1.75rem; height: 1.75rem; border-radius: 999px; background: #f3f4f6;
  color: var(--zo-muted); display: grid; place-items: center; font-size: .85rem; flex-shrink: 0;
}
.badge {
  display: inline-flex; padding: .12rem .5rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; margin-top: .3rem;
  background: rgb(212 175 55 / 16%); color: #92400e;
}
.badge-green { background: rgb(5 150 105 / 12%); color: #047857; }
.badge-amber { background: rgb(245 158 11 / 14%); color: #b45309; }
.badge-blue { background: rgb(37 99 235 / 10%); color: #1d4ed8; }
.badge-indigo { background: rgb(79 70 229 / 10%); color: #4338ca; }
.badge-red { background: rgb(220 38 38 / 12%); color: #b91c1c; }

.hist-hint { margin: -.25rem 0 .7rem; line-height: 1.45; }
.hist-card .ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.hist-card .badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.hist-detail {
  padding: .75rem .85rem .9rem;
  border-top: 1px dashed rgb(15 23 42 / 10%);
  background: linear-gradient(180deg, #fafafa, #fff);
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.hist-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .78rem;
}
.hist-row span { color: var(--zo-muted); flex-shrink: 0; }
.hist-row strong { text-align: left; font-weight: 700; color: var(--zo-navy); }
.hist-map { margin-top: .35rem; border-radius: .75rem; overflow: hidden; min-height: 140px; }
.hist-tl { display: flex; flex-direction: column; gap: .35rem; }
.hist-tl-item {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem .55rem;
  border-radius: .55rem;
  background: #f8fafc;
  font-size: .75rem;
}
.nav-item.active[data-tab="history"] .nav-svg { color: var(--zo-gold-soft); }

.muted { color: var(--zo-muted); font-size: .9rem; }
.tiny { font-size: .78rem; }
.err { color: var(--zo-danger); font-size: .88rem; }
.ok { color: var(--zo-ok); font-size: .88rem; }
.empty { text-align: center; padding: 1.75rem .75rem; color: var(--zo-muted); }
.gold-illus {
  width: 4.8rem; height: 4.8rem; margin: 0 auto .85rem; border-radius: 1.2rem;
  background:
    linear-gradient(145deg, #fff6d8, #e8c96a),
    radial-gradient(circle at 30% 30%, #fff, transparent 50%);
  box-shadow: var(--zo-shadow); position: relative;
}
.gold-illus::after {
  content: ""; position: absolute; inset: 32% 22%; border-radius: .3rem;
  background: linear-gradient(160deg, #ffe9a0, #b8860b); transform: skewY(-8deg);
}

/* Live tracking */
.live-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem;
}
.live-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.live-wrap { display: flex; flex-direction: column; gap: .75rem; }
.pad { padding: 1rem; }
.live-float {
  background: #fff; border: 1px solid var(--zo-border); border-radius: 1.25rem;
  padding: .9rem 1rem; box-shadow: var(--zo-shadow);
  display: flex; align-items: center; gap: .75rem;
}
.live-float .job-ico { background: linear-gradient(145deg, #e8f0ff, #c7d7fe); }
.live-float .job-ico::after { background: linear-gradient(160deg, #93c5fd, #1d4ed8); }
.map-stage {
  position: relative; border-radius: 1.4rem; overflow: hidden;
  border: 1px solid var(--zo-border); background: #eef1f4; min-height: 210px;
  box-shadow: var(--zo-shadow);
}
.map-frame { width: 100%; height: 220px; border: 0; display: block; background: #e5e7eb; }
.map-card { position: relative; overflow: hidden; }
.gold-route-deco {
  position: absolute; inset: auto -20% -40% 30%; height: 10rem; pointer-events: none;
  background: radial-gradient(circle, rgb(212 175 55 / 18%), transparent 60%);
}

.courier-card {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--zo-border); border-radius: 1.25rem;
  padding: .85rem 1rem; box-shadow: var(--zo-shadow);
}
.courier-card img { width: 2.75rem; height: 2.75rem; border-radius: 999px; }
.courier-card strong { display: block; font-size: .95rem; }
.call-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0;
  background: #10b981; color: #fff; margin-right: auto; cursor: pointer; font-size: 1rem;
}

.timeline {
  background: linear-gradient(180deg, #fff, #fffdf8);
  border: 1px solid var(--zo-border);
  border-radius: 1.35rem;
  padding: 1rem .95rem 1.05rem;
  box-shadow: var(--zo-shadow);
  overflow: hidden;
}
.tl-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-bottom: .55rem;
}
.tl-head h3 { margin: 0; font-size: .95rem; font-weight: 800; }
.tl-pct {
  font-size: .72rem; font-weight: 800; color: #92400e;
  background: rgb(212 175 55 / 18%); border: 1px solid rgb(212 175 55 / 35%);
  border-radius: 999px; padding: .2rem .55rem;
}
.tl-progress {
  height: .4rem; border-radius: 999px; background: #ece7db; overflow: hidden; margin-bottom: .85rem;
}
.tl-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--zo-gold-soft), var(--zo-gold), var(--zo-navy));
  border-radius: 999px; transition: width .4s ease;
}
.tl-carousel {
  margin: 0 0 .55rem;
  padding: 0 .1rem;
}
.tl-carousel .carousel-btn {
  top: 38%;
  width: 1.75rem;
  height: 1.75rem;
  font-size: .85rem;
}
.tl-carousel .carousel-viewport {
  border-radius: .85rem;
  margin: 0 1.35rem;
}
.tl-rail-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: .35rem .15rem .15rem;
  direction: rtl;
}
.tl-step {
  flex: 1 1 0; max-width: 5rem; min-width: 3.6rem; border: 0; background: transparent;
  padding: 0; font: inherit; color: var(--zo-muted);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.tl-ico {
  width: 2.15rem; height: 2.15rem; border-radius: .75rem;
  display: grid; place-items: center;
  background: #f3f4f6; color: #94a3b8;
  border: 1px solid #e5e7eb;
}
.tl-ico svg { width: 1.1rem; height: 1.1rem; }
.tl-step-label {
  font-size: .58rem; font-weight: 700; line-height: 1.25; text-align: center;
  max-width: 4.4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tl-step.done .tl-ico {
  background: var(--zo-navy); color: var(--zo-gold-soft); border-color: var(--zo-navy);
}
.tl-step.current .tl-ico {
  background: linear-gradient(145deg, var(--zo-gold-soft), var(--zo-gold));
  color: var(--zo-navy); border-color: transparent;
  box-shadow: 0 0 0 4px rgb(212 175 55 / 22%);
}
.tl-step.current { color: var(--zo-navy); }
.tl-step.done { color: var(--zo-navy); }
.tl-rail-seg {
  flex: 0 0 .55rem; align-self: center; height: 2px; margin-top: -.85rem;
  background: #e5e7eb; border-radius: 2px;
}
.tl-rail-seg.lit,
.tl-step.done + .tl-rail-seg {
  background: linear-gradient(90deg, var(--zo-navy), var(--zo-gold));
}

.tl-list { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 2rem 1fr auto; gap: .55rem .65rem;
  align-items: start; position: relative; padding: .55rem 0;
  border-top: 1px dashed #ebe6da;
}
.tl-item:first-child { border-top: 0; padding-top: .15rem; }
.tl-dot {
  width: 2rem; height: 2rem; border-radius: .7rem;
  background: #f3f4f6; color: #94a3b8;
  display: grid; place-items: center; z-index: 1; flex-shrink: 0;
  border: 1px solid #e5e7eb;
}
.tl-dot svg { width: 1rem; height: 1rem; }
.tl-item.done .tl-dot { background: var(--zo-navy); color: var(--zo-gold-soft); border-color: var(--zo-navy); }
.tl-item.current .tl-dot {
  background: linear-gradient(145deg, var(--zo-gold-soft), var(--zo-gold));
  color: var(--zo-navy); border-color: transparent;
  box-shadow: 0 0 0 3px rgb(212 175 55 / 25%);
}
.tl-copy { min-width: 0; }
.tl-title { font-weight: 800; font-size: .86rem; line-height: 1.3; }
.tl-sub { color: var(--zo-muted); font-size: .72rem; margin-top: .12rem; line-height: 1.35; }
.tl-now, .tl-check {
  font-size: .62rem; font-weight: 800; align-self: center;
  border-radius: 999px; padding: .2rem .45rem; white-space: nowrap;
}
.tl-now { background: rgb(212 175 55 / 20%); color: #92400e; }
.tl-check { background: #ecfdf5; color: #047857; }

.live-wrap { display: flex; flex-direction: column; gap: .75rem; }
.live-wrap > .ticket { margin-bottom: 0; }

.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .75rem; margin: .35rem 0;
}
.detail-grid div { font-size: .88rem; }
.detail-grid span { display: block; color: var(--zo-muted); font-size: .72rem; margin-bottom: .12rem; }

/* Jewelry / paper security tag — delivery details */
.jewel-tag {
  position: relative;
  margin-top: .35rem;
  padding: 1.35rem 1rem 0.9rem;
  background:
    linear-gradient(180deg, #fffef9 0%, #fbf6ea 48%, #f7efd8 100%);
  border: 1px solid rgb(212 175 55 / 40%);
  border-radius: 1.15rem 1.15rem 1.35rem 1.35rem;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 80%) inset,
    0 14px 32px -18px rgb(120 90 20 / 35%);
  overflow: hidden;
}
.jewel-tag::before {
  content: "";
  position: absolute; inset: .45rem;
  border: 1px dashed rgb(212 175 55 / 35%);
  border-radius: .9rem;
  pointer-events: none;
}
.jewel-tag-hole {
  position: absolute; top: .55rem; left: 50%; transform: translateX(-50%);
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--zo-bg);
  box-shadow:
    inset 0 0 0 2px rgb(212 175 55 / 55%),
    0 1px 2px rgb(0 0 0 / 12%);
  z-index: 2;
}
.jewel-tag-string {
  position: absolute; top: -.15rem; left: 50%; transform: translateX(-50%);
  width: 2px; height: .75rem;
  background: linear-gradient(#c9a227, #d4af37);
  opacity: .7; z-index: 1;
}
.jewel-tag-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin: .55rem 0 .85rem; padding: 0 .15rem;
}
.jewel-brand {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 800; font-size: .88rem; color: var(--zo-navy);
}
.jewel-brand svg { color: var(--zo-gold); flex-shrink: 0; }
.jewel-seal {
  font-size: .58rem; font-weight: 800; letter-spacing: .06em;
  color: #92400e; background: rgb(212 175 55 / 18%);
  border: 1px solid rgb(212 175 55 / 40%); border-radius: 999px;
  padding: .22rem .5rem; white-space: nowrap;
}
.jewel-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
  margin-bottom: .75rem;
}
.jewel-field {
  display: flex; align-items: flex-start; gap: .65rem;
  background: rgb(255 255 255 / 78%);
  border: 1px solid rgb(212 175 55 / 22%);
  border-radius: .9rem;
  padding: .7rem .75rem;
  min-width: 0;
  text-align: right;
}
.jewel-field-wide { grid-column: 1 / -1; }
.jf-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .28rem;
  justify-content: center;
}
.jf-ico {
  width: 2rem; height: 2rem; border-radius: .65rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0f172a, #243044);
  color: var(--zo-gold-soft);
  flex-shrink: 0;
  margin-top: .1rem;
}
.jf-ico svg { width: 1.05rem; height: 1.05rem; }
.jf-label {
  display: block; font-size: .7rem; font-weight: 700; color: var(--zo-muted);
  line-height: 1.3; text-align: right;
}
.jf-val {
  display: block; font-size: .88rem; font-weight: 800; color: var(--zo-navy);
  line-height: 1.45; word-break: break-word;
  text-align: justify; text-align-last: right;
}
.jf-val.jf-fa {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-variant-numeric: normal;
  letter-spacing: .04em;
  direction: rtl;
  unicode-bidi: embed;
  text-align: right;
  text-align-last: right;
}
.jf-val.jf-code {
  font-family: ui-monospace, Consolas, monospace;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  text-align-last: left;
  font-size: .78rem;
  word-break: break-all;
}
.jewel-nav {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem;
}
.jewel-map-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  text-decoration: none; color: var(--zo-navy);
  background: #fff; border: 1px solid rgb(212 175 55 / 35%);
  border-radius: 999px; padding: .4rem .7rem;
  font-size: .72rem; font-weight: 700;
}
.jewel-map-chip svg { width: .95rem; height: .95rem; color: var(--zo-gold); }
.jewel-actions {
  display: flex; flex-direction: column; gap: .45rem;
}
.jewel-cta {
  width: 100%; gap: .45rem; border-radius: 1rem !important;
  padding: .9rem 1rem !important;
}
.jewel-cta svg { flex-shrink: 0; color: var(--zo-gold-soft); }
.btn-gold.jewel-cta svg { color: var(--zo-navy); }
.jewel-wait {
  display: block; text-align: center; font-size: .8rem; font-weight: 700;
  color: #92400e; background: rgb(212 175 55 / 16%);
  border: 1px solid rgb(212 175 55 / 35%); border-radius: .9rem;
  padding: .7rem .75rem;
}
.jewel-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  margin-top: .75rem; padding-top: .55rem;
  border-top: 1px dashed rgb(212 175 55 / 40%);
  font-size: .65rem; font-weight: 700; color: #92723a;
}
.jewel-foot .mono { font-size: .65rem; opacity: .85; }

.call-btn {
  display: inline-flex; align-items: center; justify-content: center;
}
.call-btn svg { display: block; }

.account-hero { display: flex; align-items: center; gap: .75rem; }
.gps-readout { font-size: .95rem; margin: .75rem 0; word-break: break-all; }
.conn-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: .85rem;
}
.conn-grid div {
  background: var(--zo-gold-wash); border-radius: .85rem; padding: .55rem; text-align: center; font-size: .82rem;
}
.conn-grid span { display: block; color: var(--zo-muted); font-size: .7rem; margin-bottom: .2rem; }

/* GPS + Account logistics redesign */
.logi-hero {
  display: grid; grid-template-columns: 1.4fr auto;
  gap: .75rem; align-items: center;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #243044 100%);
  color: #f8fafc;
  border-radius: 1.35rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 16px 36px -18px rgb(15 23 42 / 55%);
  margin-bottom: .65rem;
  overflow: hidden;
  position: relative;
}
.logi-hero::after {
  content: ""; position: absolute; inset: auto -20% -55% 35%; height: 9rem;
  background: radial-gradient(circle, rgb(212 175 55 / 28%), transparent 65%);
  pointer-events: none;
}
.logi-hero-copy { position: relative; z-index: 1; min-width: 0; }
.logi-kicker {
  font-size: .68rem; font-weight: 800; color: var(--zo-gold-soft);
  letter-spacing: .03em; margin-bottom: .25rem;
}
.logi-hero h2 {
  margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; line-height: 1.35;
}
.logi-hero p {
  margin: 0; font-size: .78rem; line-height: 1.55; color: #cbd5e1;
}
.logi-hero-visual { position: relative; z-index: 1; width: 5.2rem; }
.logi-truck-lane {
  height: 2.4rem; overflow: hidden; position: relative;
  border-bottom: 2px dashed rgb(212 175 55 / 40%);
  direction: ltr;
}
.logi-truck-lane svg {
  position: absolute; top: 50%; left: 0; color: var(--zo-gold-soft);
  animation: truckLane 2.9s infinite;
  animation-timing-function: cubic-bezier(0.12, 0.02, 0.82, 0.28);
}
@keyframes truckLane {
  0% { transform: translate(-110%, -50%); }
  22% { transform: translate(-40%, -50%); }
  48% { transform: translate(5%, -50%); }
  78% { transform: translate(70%, -50%); }
  100% { transform: translate(130%, -50%); }
}
.account-banner {
  grid-template-columns: auto 1fr;
  background: linear-gradient(145deg, #f8efd6, #f0d78a 50%, #e4c15a);
  color: var(--zo-navy);
}
.account-banner .logi-kicker { color: #92400e; }
.account-banner p { color: #5b4a22; }
.account-banner .rounded-logo {
  width: 3.4rem; height: 3.4rem; border-radius: 1rem;
  box-shadow: 0 8px 18px -10px rgb(15 23 42 / 45%);
}

.logi-card {
  background: linear-gradient(180deg, #fffef9, #fbf6ea);
  border: 1px solid rgb(212 175 55 / 35%);
  border-radius: 1.25rem;
  padding: .95rem;
  box-shadow: var(--zo-shadow);
  min-height: 11.5rem;
}
.logi-card-head {
  display: flex; align-items: flex-start; gap: .65rem;
  margin-bottom: .75rem;
}
.gps-carousel .carousel-viewport { margin: 0 1.4rem; }
.gps-carousel .carousel-btn { top: 46%; }
.gps-coords {
  display: grid; grid-template-columns: 1fr; gap: .45rem;
  margin-bottom: .55rem;
}
.gps-coord {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  background: rgb(255 255 255 / 75%);
  border: 1px solid rgb(212 175 55 / 22%);
  border-radius: .85rem;
  padding: .55rem .7rem;
}
.gps-coord span {
  font-size: .7rem; font-weight: 700; color: var(--zo-muted); flex-shrink: 0;
}
.gps-coord strong {
  font-size: .88rem; font-weight: 800; color: var(--zo-navy);
  text-align: left; direction: ltr; unicode-bidi: isolate;
}
.gps-coord strong.jf-fa {
  direction: ltr; text-align: left; font-family: 'Vazirmatn', Tahoma, sans-serif;
  letter-spacing: .03em; unicode-bidi: isolate;
}
.conn-pills {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem;
  margin-bottom: .65rem;
}
.conn-pill {
  text-align: center;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(212 175 55 / 28%);
  background: #fff;
  border-radius: .9rem;
  padding: .65rem .35rem;
}
.conn-pill span {
  display: block; font-size: .68rem; font-weight: 700; color: var(--zo-muted); margin-bottom: .25rem;
}
.conn-pill strong { font-size: .88rem; font-weight: 800; color: var(--zo-navy); }
.logi-actions {
  display: flex; flex-direction: column; gap: .45rem; margin-top: .35rem;
}
.logi-actions .jewel-cta svg { color: var(--zo-gold-soft); }
.logi-actions .btn-ghost.jewel-cta svg { color: var(--zo-gold); }

.account-tag { margin-top: .15rem; }
.account-actions { margin-top: .35rem; }
.account-actions .btn-ghost.jewel-cta svg { color: var(--zo-gold); }

@media (max-width: 380px) {
  .logi-hero { grid-template-columns: 1fr; }
  .logi-hero-visual { width: 100%; }
}

/* Floating dark nav — like mockup */
.bottom-nav.floating-nav {
  position: fixed; bottom: calc(.75rem + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100% - 1.75rem));
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: .1rem; padding: .45rem .3rem;
  background: var(--zo-navy); border-radius: 1.35rem; border: 0;
  box-shadow: 0 18px 40px -12px rgb(15 23 42 / 55%); z-index: 40;
}
.nav-item {
  border: 0; background: transparent; color: #94a3b8;
  font: inherit; font-size: .62rem; font-weight: 700;
  padding: .35rem .05rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
}
.nav-item.active { color: var(--zo-gold-soft); }
.nav-ico {
  width: 1.3rem; height: 1.3rem; display: block;
  border: 2px solid currentColor; border-radius: .35rem;
}
.ico-list {
  background:
    linear-gradient(currentColor, currentColor) center 30%/70% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 50%/70% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 70%/70% 2px no-repeat;
}
.ico-active { border-radius: 50%; }
.ico-gps {
  border-radius: 50%;
  background: radial-gradient(circle at center, currentColor 22%, transparent 24%);
}
.ico-user {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, currentColor 18%, transparent 19%),
    radial-gradient(ellipse at 50% 85%, currentColor 32%, transparent 33%);
}

.modal {
  position: fixed; inset: 0; z-index: 60; background: rgb(15 23 42 / 45%);
  display: flex; align-items: flex-end; justify-content: center; padding: .75rem;
}
.modal-card {
  width: min(480px, 100%); max-height: 92dvh; overflow: auto;
  background: #fff; border-radius: 1.35rem; padding: 1rem; box-shadow: var(--zo-shadow);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 1.05rem; }
.scan-box {
  width: 100%; aspect-ratio: 4/3; background: #0f172a; border-radius: 1rem;
  overflow: hidden; margin: .75rem 0;
}
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + .5rem);
  transform: translateX(-50%); z-index: 70;
  max-width: min(420px, calc(100% - 1.5rem));
  background: var(--zo-navy); color: #f8fafc;
  padding: .75rem 1.1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  box-shadow: var(--zo-shadow);
}
.foot-note { text-align: center; color: var(--zo-muted); font-size: .75rem; margin: .35rem 0 0; }

@media (min-width: 720px) {
  .app-shell {
    min-height: calc(100vh - 2rem); margin-top: 1rem; margin-bottom: 1rem;
    border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--zo-border);
  }
}
