/* The EXPERT INDIA — app styles v2 (customer app, admin portal, policy pages)
   Brand = the logo: charcoal #2d2928 + orange #e08539 on warm light grey. Display type echoes the logo's heavy
   geometric sans (Montserrat); body in Mukta for Hinglish. Mobile-first: one 640px column, bottom tab bar,
   sticky action bar, bottom sheets. Motifs from the paperwork: "PAN INDIA" rubber stamp, a CONFIRMED stamp,
   dashed stamp-paper frame, perforated receipt edge, courier-style tracking line. */
:root {
  --bg: #f4f3f1;
  --surface: #ffffff;
  --surface-2: #f8f7f5;
  --ink: #2d2928;
  --ink-2: #4a4543;
  --muted: #6b6562;
  --line: #e6e2dd;
  --brand: #e08539;
  --on-brand: #2d2928;
  --brand-ink: #b0561a;
  --brand-soft: #fcefe3;
  --brand-line: #f0c9a4;
  --char-soft: #efedea;
  --hero: #2d2928;
  --hero-ink: #f7f3ee;
  --hero-muted: #cfc7c1;
  --info: #2a5ba8;
  --info-soft: #e7eefa;
  --ok: #19714a;
  --ok-soft: #e0f1e7;
  --warn: #8a6a00;
  --warn-soft: #faf1cf;
  --bad: #ad3131;
  --bad-soft: #f7e2e2;
  --scrim: rgba(20, 19, 18, .5);
  --shadow-1: 0 1px 2px rgba(45, 41, 40, .06);
  --shadow-2: 0 2px 6px rgba(45, 41, 40, .06), 0 12px 28px rgba(45, 41, 40, .1);
  --r-lg: 18px;
  --r-md: 14px;
  --f-display: "Montserrat", "Mukta", "Segoe UI", system-ui, sans-serif;
  --f-body: "Mukta", "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --bar-h: 60px;
  --tab-h: 66px;
  --cta-h: 74px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141312; --surface: #1d1b1a; --surface-2: #232120; --ink: #efedeb; --ink-2: #d6d1cc; --muted: #a8a29d; --line: #36322f;
    --brand: #ec9550; --on-brand: #1d1b1a; --brand-ink: #f3a76a; --brand-soft: #3a2a1d; --brand-line: #6e4c30; --char-soft: #2a2725;
    --hero: #262321; --hero-ink: #f7f3ee; --hero-muted: #b9b1aa;
    --info: #8fb3f2; --info-soft: #1d2a42; --ok: #5fd197; --ok-soft: #14301f; --warn: #e6c45c; --warn-soft: #352d12; --bad: #f08a8a; --bad-soft: #3b1b1b;
    --scrim: rgba(0, 0, 0, .6);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141312; --surface: #1d1b1a; --surface-2: #232120; --ink: #efedeb; --ink-2: #d6d1cc; --muted: #a8a29d; --line: #36322f;
  --brand: #ec9550; --on-brand: #1d1b1a; --brand-ink: #f3a76a; --brand-soft: #3a2a1d; --brand-line: #6e4c30; --char-soft: #2a2725;
  --hero: #262321; --hero-ink: #f7f3ee; --hero-muted: #b9b1aa;
  --info: #8fb3f2; --info-soft: #1d2a42; --ok: #5fd197; --ok-soft: #14301f; --warn: #e6c45c; --warn-soft: #352d12; --bad: #f08a8a; --bad-soft: #3b1b1b;
  --scrim: rgba(0, 0, 0, .6);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--bar-h) + 12px); scroll-padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom, 0px)); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; padding-top: env(safe-area-inset-top, 0px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); }
img { max-width: 100%; }
a { color: var(--brand-ink); }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.wrap { max-width: 640px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: grid; gap: 12px; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* ---------- app bar ---------- */
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.appbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--bar-h); }
.bar-left { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo { display: block; height: 38px; width: auto; max-width: 100%; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.bar-title { font: 700 17px/1.2 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-actions { display: flex; gap: 8px; flex: none; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; padding: 0;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn.ghost { border-color: transparent; background: transparent; margin-left: -10px; }
.icon-btn.call { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.icon-btn.wa { color: var(--ok); }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; box-shadow: 0 0 0 2px var(--surface); }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tab-h); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font: 600 12px/1.2 var(--f-body); position: relative; touch-action: manipulation; }
.tab .ti { width: 54px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s, color .2s; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tab[aria-current="page"] .ti { background: var(--brand-soft); color: var(--brand-ink); }
.tab .dot { position: absolute; top: 6px; left: calc(50% + 10px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
main.view { padding-top: 16px; padding-bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom, 0px)); min-height: 70vh; }
body.no-tabs .tabbar { display: none; }
body.no-tabs main.view { padding-bottom: calc(var(--cta-h) + 32px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .tabbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h)); bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
  .tabbar .wrap { display: flex; gap: 6px; height: 50px; }
  .tab { flex-direction: row; gap: 6px; padding: 0 10px; font-size: 15px; }
  .tab .ti { width: 34px; height: 30px; }
  .tab svg { width: 19px; height: 19px; }
  .tab .dot { position: static; }
  body.no-tabs .tabbar { display: block; }
  main.view { padding-bottom: 60px; }
  body.no-tabs main.view { padding-bottom: calc(var(--cta-h) + 40px); }
  html { scroll-padding-top: calc(var(--bar-h) + 64px); scroll-padding-bottom: 16px; }
}

/* ---------- type ---------- */
.eyebrow { font: 800 11.5px/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.h1, .title { font: 800 24px/1.2 var(--f-display); letter-spacing: -.01em; margin: 4px 0 6px; }
.h2 { font: 700 18px/1.25 var(--f-display); margin: 0; }
.lead { color: var(--muted); margin: 0; max-width: 62ch; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.section-h h2 { font: 700 17px/1.25 var(--f-display); margin: 0; }
.section-h a, .section-h span { font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.back svg { width: 18px; height: 18px; }

/* ---------- home ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.hello .h1 { margin: 2px 0 0; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: var(--hero-ink); padding: 20px 18px 18px;
  background: radial-gradient(130% 120% at 100% 0%, #5a4232 0%, var(--hero) 55%);
}
.hero::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(224, 133, 57, .5); border-radius: 12px; pointer-events: none; }
.hero > * { position: relative; }
.hero h2 { font: 800 22px/1.22 var(--f-display); margin: 0 92px 12px 0; }
.hero h2 em { font-style: normal; color: var(--brand); }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--hero-muted); }
.ticks li { display: flex; gap: 8px; align-items: center; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232d2928' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"), var(--brand); }
.stamp {
  position: absolute; right: 14px; top: 16px; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  border: 2px solid var(--brand); color: var(--brand); font: 800 10px/1.2 var(--f-display); letter-spacing: .1em; transform: rotate(12deg);
  box-shadow: inset 0 0 0 4px var(--hero), inset 0 0 0 5px var(--brand);
}
.hero-cta { display: flex; gap: 10px; }
.hero-cta .btn { flex: 1; padding-inline: 10px; font-size: 15px; white-space: nowrap; }
.btn.on-dark { background: transparent; color: var(--hero-ink); border-color: rgba(247, 243, 238, .35); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.qt { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); font: 700 12.5px/1.2 var(--f-body); text-align: center; touch-action: manipulation; }
.qt .ic { width: 58px; height: 58px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-ink); box-shadow: var(--shadow-1); transition: transform .1s; }
.qt .ic svg { width: 27px; height: 27px; }
.qt:active .ic { transform: scale(.94); }
.how { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.how::-webkit-scrollbar { display: none; }
.how li { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 4px; align-content: start; }
.how .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); font: 800 13px/28px var(--f-display); text-align: center; }
.how b { font-size: 15.5px; }
.how span { font-size: 14px; color: var(--muted); }
@media (min-width: 600px) { .how { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.active-strip { display: grid; gap: 10px; margin-top: 14px; }
.trust { display: grid; gap: 10px; margin-top: 22px; }
.assure { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--ok-soft); color: var(--ink); border-radius: var(--r-md); padding: 12px 14px; font-size: 14.5px; }
.assure svg { width: 22px; height: 22px; color: var(--ok); margin-top: 1px; }
.assure b { display: block; }
.assure.warm { background: var(--brand-soft); }
.assure.warm svg { color: var(--brand-ink); }

/* ---------- chips + service list ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.chips::-webkit-scrollbar { display: none; }
.chips-sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h)); z-index: 5; background: var(--bg); padding-top: 8px; }
@media (min-width: 900px) { .chips-sticky { top: calc(env(safe-area-inset-top, 0px) + var(--bar-h) + 50px); } }
.chipbtn { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 14px/1 var(--f-body); padding: 9px 14px; border-radius: 999px; cursor: pointer; touch-action: manipulation; }
.chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.group-h { font: 800 12px/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); touch-action: manipulation; transition: transform .08s, border-color .15s; }
.svc:active { transform: scale(.99); }
.svc:hover { border-color: var(--brand-line); }
.svc-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.svc-ic svg { width: 22px; height: 22px; }
.svc-ic.lg { width: 62px; height: 62px; border-radius: 20px; }
.svc-ic.lg svg { width: 30px; height: 30px; }
.svc-ic.sm { width: 38px; height: 38px; border-radius: 12px; }
.svc-ic.sm svg { width: 19px; height: 19px; }
.svc-main { min-width: 0; display: grid; gap: 1px; }
.svc-name { font-weight: 700; line-height: 1.3; }
.svc-meta, .svc-note { font-size: 13px; color: var(--muted); }
.svc-price { font: 500 15px/1.2 var(--f-mono); white-space: nowrap; color: var(--ink); text-align: right; }
.svc-price.q { font: 700 13px/1.2 var(--f-body); color: var(--muted); }
.svc-price s { display: block; font-size: 12px; color: var(--muted); }
.svc-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.pick { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.pick svg, .pickbig svg { width: 20px; height: 20px; }
.pick[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #2d2928; }
.pickbig[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); z-index: 29; background: var(--ink); color: var(--surface); box-shadow: var(--shadow-2); }
.cartbar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.cartbar .cart-sum { flex: 1; display: grid; line-height: 1.2; }
.cartbar .cart-sum span { font-family: var(--f-mono); font-size: 14px; opacity: .85; }
.cartbar .linkbtn { color: var(--surface); opacity: .8; }
body.no-tabs .cartbar { bottom: calc(var(--cta-h) + env(safe-area-inset-bottom, 0px)); }
body.has-cart .view { padding-bottom: 150px; }
@media (min-width: 900px) { .cartbar { bottom: 0; } body.no-tabs .cartbar { bottom: var(--cta-h); } }
.mini-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.mini-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.doc-for { font-size: 12.5px; color: var(--brand-ink); font-weight: 700; margin-top: 2px; }
.paidbar { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 6px 0 10px; border-radius: var(--r-sm, 10px); background: var(--surface-2); overflow: hidden; font-size: 14px; }
.paidbar span { position: relative; z-index: 1; }
.paidbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ok-soft, #e0f1e7); }
.client-box { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-md); border: 1.5px dashed var(--brand); background: var(--brand-soft); }
.client-box > b { font-size: 15px; }
.cp-field > summary { cursor: pointer; color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.locked-doc { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-md); border: 1.5px dashed var(--line); background: var(--surface); }
.locked-doc svg { width: 30px; height: 30px; color: var(--brand-ink); }
.locked-doc span { display: block; font-size: 14px; color: var(--muted); }
.svc-no { display: none; }

/* ---------- search ---------- */
.search { position: relative; margin: 6px 0 12px; display: block; }
.search input[type="search"] { padding-left: 44px; border-radius: 14px; background: var(--surface); }
.search svg { position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 700 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer; text-align: center; touch-action: manipulation;
  transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:hover { border-color: var(--brand-line); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.dark, .btn.gold { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: progress; }
.btn svg { width: 19px; height: 19px; flex: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1 1 auto; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 14px; font-weight: 700; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.field small { color: var(--muted); font-size: 13px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: var(--surface); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.otp { letter-spacing: .5em; font-family: var(--f-mono); font-size: 22px !important; text-align: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: 11px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.card + .card { margin-top: 12px; }
.card-h { font: 700 16px/1.3 var(--f-display); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-h span { font: 600 13px var(--f-body); color: var(--muted); }
.chips-row, .chips.static { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.chip.gold { background: var(--char-soft); color: var(--ink); }
.chip.plain { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); padding: 32px 18px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); display: grid; gap: 12px; justify-items: center; }
.empty strong { color: var(--ink); font-size: 18px; }
.empty svg { width: 40px; height: 40px; color: var(--brand); }

/* ---------- service page ---------- */
.svc-hero { display: grid; gap: 10px; justify-items: start; margin-bottom: 16px; }
.svc-hero .h1 { margin: 2px 0 0; }
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { font: 600 26px/1.1 var(--f-mono); }
.price.q { font: 800 20px/1.2 var(--f-display); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; line-height: 1.4; }
.checklist .bx { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--brand); margin-top: 1px; }
.checklist li.opt .bx { border-style: dashed; border-color: var(--muted); }
.checklist li.info .bx { border-radius: 50%; border-color: var(--ink-2); }
.checklist .tag { color: var(--muted); font-size: 13px; }
.flow4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.flow4 li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; font: 600 12.5px/1.25 var(--f-body); color: var(--ink-2); }
.flow4 .ic { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand-ink); }
.flow4 .ic svg { width: 21px; height: 21px; }
.flow4 li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: calc(50% + 24px); width: calc(100% - 44px); border-top: 2px dashed var(--brand-line); }

/* ---------- sticky action bar ---------- */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(45, 41, 40, .07); padding-bottom: env(safe-area-inset-bottom, 0px); }
.cta-bar .wrap { display: flex; align-items: center; gap: 14px; min-height: var(--cta-h); padding-block: 10px; }
.cta-sum { display: grid; line-height: 1.2; flex: none; }
.cta-sum span { font-size: 12.5px; color: var(--muted); }
.cta-sum b { font: 600 19px/1.2 var(--f-mono); }
.cta-bar .btn { flex: 1; }

/* ---------- order wizard ---------- */
.wiz { list-style: none; margin: 6px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wiz li { display: grid; gap: 6px; font: 700 12.5px/1.2 var(--f-body); color: var(--muted); }
.wiz li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.wiz li.done { color: var(--ink-2); }
.wiz li.done::before, .wiz li.now::before { background: var(--brand); }
.wiz li.now { color: var(--ink); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 13px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.doc.need { border-color: var(--brand-line); }
.doc-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); margin-top: 1px; display: grid; place-items: center; }
.doc.need .doc-mark { border-color: var(--brand); }
.doc.ok .doc-mark { background: var(--ok); border-color: var(--ok); }
.doc.ok .doc-mark::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: rotate(-45deg) translate(1px, -1px); }
.doc-body { min-width: 0; display: grid; gap: 7px; }
.doc-name { font-weight: 700; line-height: 1.35; }
.doc-name .tag { font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 4px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.fchip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.fchip button svg { width: 14px; height: 14px; }
.prog { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.upl { position: relative; overflow: hidden; }
.upl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.files li span { min-width: 0; overflow-wrap: anywhere; }
.preview-docs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.info-list { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- status ---------- */
.pill { display: inline-block; font: 800 11.5px/1.2 var(--f-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pill.draft, .pill.awaiting_payment, .pill.quote { background: var(--warn-soft); color: var(--warn); }
.pill.new { background: var(--brand-soft); color: var(--brand-ink); }
.pill.in_progress, .pill.filed { background: var(--info-soft); color: var(--info); }
.pill.need_info { background: var(--bad-soft); color: var(--bad); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.cancelled, .pill.discarded { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.late { color: var(--bad); font-weight: 700; }
.list { display: grid; gap: 10px; }
.req { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); touch-action: manipulation; transition: transform .08s; }
.req:active { transform: scale(.99); }
.req-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.req-top b { display: block; line-height: 1.3; }
.req-top .mono { font-size: 12.5px; color: var(--muted); }
.bar4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bar4 i { height: 5px; border-radius: 3px; background: var(--line); }
.bar4 i.on { background: var(--brand); }
.req[data-s="done"] .bar4 i.on { background: var(--ok); }
.req[data-s="need_info"] .bar4 i.on { background: var(--bad); }
.order-card { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }

/* tracking: hero + 4 step progress + courier timeline */
.thero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--line); --st: var(--brand); }
.thero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--st); }
.thero[data-s="done"] { --st: var(--ok); }
.thero[data-s="need_info"] { --st: var(--bad); }
.thero[data-s="in_progress"], .thero[data-s="filed"] { --st: var(--info); }
.thero[data-s="draft"], .thero[data-s="quote"], .thero[data-s="awaiting_payment"] { --st: var(--warn); }
.thero[data-s="cancelled"], .thero[data-s="discarded"] { --st: var(--muted); }
.thero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.thero .h1 { font-size: 21px; margin: 10px 0 2px; }
.thero .big { font: 800 17px/1.3 var(--f-display); color: var(--st); margin: 10px 0 2px; }
.thero p { margin: 0; color: var(--ink-2); font-size: 15px; }
.idcopy { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; color: var(--ink-2); }
.idcopy svg { width: 14px; height: 14px; }
.steps4 { list-style: none; margin: 18px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps4 li { position: relative; display: grid; justify-items: center; gap: 6px; font: 700 12px/1.2 var(--f-body); color: var(--muted); text-align: center; }
.steps4 li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.steps4 li:first-child::before { display: none; }
.steps4 .dt { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.steps4 li.on { color: var(--ink); }
.steps4 li.on::before { background: var(--st); }
.steps4 li.on .dt { border-color: var(--st); background: var(--st); }
.steps4 li.on .dt::after { content: ""; width: 7px; height: 4px; border-left: 2px solid var(--surface); border-bottom: 2px solid var(--surface); transform: rotate(-45deg) translate(1px, -1px); }
.steps4 li.now { color: var(--ink); }
.steps4 li.now .dt { border-color: var(--st); box-shadow: 0 0 0 4px var(--char-soft); }
.steps4 li.now::before { background: var(--st); }
.track { list-style: none; margin: 0; padding: 0; }
.track li { position: relative; padding: 0 0 18px 30px; }
.track li::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child { padding-bottom: 0; }
.track li:last-child::before { display: none; }
.track li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); box-sizing: border-box; }
.track li.first::after { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.track b { display: block; font-weight: 700; line-height: 1.35; }
.track p { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.track time { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline li { position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline time { display: block; color: var(--muted); font-size: 12.5px; }

/* callouts */
.callout { border-radius: var(--r-md); padding: 13px 14px; background: var(--char-soft); color: var(--ink); display: grid; gap: 4px; }
.callout b { color: var(--ink); }
.callout.gold { background: var(--brand-soft); }
.callout.gold b { color: var(--brand-ink); }
.callout.bad { background: var(--bad-soft); }
.callout.bad b { color: var(--bad); }
.callout.ok { background: var(--ok-soft); }
.callout.ok b { color: var(--ok); }
.callout p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* receipt with perforated top edge */
.receipt { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 4px 14px 14px; padding: 18px 16px 14px; margin-top: 8px; }
.receipt::before { content: ""; position: absolute; left: -1px; right: -1px; top: -7px; height: 8px; background: radial-gradient(circle at 7px 0, transparent 6px, var(--surface) 6.5px) repeat-x; background-size: 14px 8px; }
.receipt .line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.receipt .line:last-of-type { border-bottom: 0; }
.receipt .line .amt { font-family: var(--f-mono); white-space: nowrap; }
.receipt .total { font-weight: 800; font-size: 18px; }
.paid-tag { color: var(--ok); font-weight: 700; font-size: 13px; white-space: nowrap; }
.due-tag { color: var(--warn); font-weight: 700; font-size: 13px; }

/* success: tick + CONFIRMED stamp */
.success { text-align: center; display: grid; justify-items: center; gap: 10px; padding-top: 10px; }
.success .h1 { margin: 6px 0 0; }
.success p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.tick { width: 92px; height: 92px; }
.tick circle { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 5; stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw .6s ease-out forwards; }
.tick path { fill: none; stroke: var(--ok); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .35s .45s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-stamp {
  display: inline-block; font: 800 20px/1 var(--f-display); letter-spacing: .16em; color: var(--brand-ink); border: 3px solid currentColor; border-radius: 10px;
  padding: 9px 14px 8px; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 4px currentColor; animation: stamp .45s .65s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes stamp { from { transform: rotate(-6deg) scale(2); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.success .receipt { width: 100%; text-align: left; }
.success .btn { width: 100%; }

/* notices + account */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.notice.unread { background: var(--brand-soft); border-color: var(--brand-line); }
.notice .nd { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 7px; }
.notice.unread .nd { background: var(--brand); }
.notice b { display: block; line-height: 1.35; }
.notice p { margin: 2px 0; color: var(--ink-2); font-size: 14.5px; }
.notice time { font-size: 12.5px; color: var(--muted); }
.profile { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--surface); font: 800 20px/1 var(--f-display); display: grid; place-items: center; }
.profile b { display: block; font-size: 18px; }
.rowlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 15px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; }
.rowlink:last-child { border-bottom: 0; }
.rowlink svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.rowlink.bad { color: var(--bad); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }

/* details & kv */
details.more { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
details.more summary, details.card summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details.more summary::-webkit-details-marker, details.card summary::-webkit-details-marker { display: none; }
details.more summary::after, details.card summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 4px; }
details[open].more summary::after, details[open].card summary::after { transform: rotate(-135deg); }
details.card[open] summary { margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 80; background: var(--scrim); display: grid; place-items: center; padding: 24px; }
#overlayText { white-space: pre-line; overflow-wrap: anywhere; }
.overlay .box { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 22px 24px; display: grid; justify-items: center; gap: 12px; max-width: 320px; text-align: center; box-shadow: var(--shadow-2); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px); width: max-content;
  bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-2);
}
body.no-tabs .toast { bottom: calc(var(--cta-h) + 16px + env(safe-area-inset-bottom, 0px)); }
.toast.bad { background: var(--bad); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 24px; } body.no-tabs .toast { bottom: calc(var(--cta-h) + 20px); } }
.sheet-wrap { position: fixed; inset: 0; z-index: 85; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out; }
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0;
  padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: grid; gap: 12px; animation: up .24s cubic-bezier(.2, .8, .2, 1);
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; margin-bottom: 4px; }
.sheet h3 { font: 800 19px/1.3 var(--f-display); margin: 0; }
.sheet p { margin: 0; color: var(--ink-2); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.skel { border-radius: var(--r-lg); height: 92px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* language: English by default, customer can switch to Hindi */
.lang-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 15px/1 var(--f-body); cursor: pointer; box-shadow: var(--shadow-1); }
.lang-btn svg { width: 18px; height: 18px; color: var(--brand-ink); }
.lang-btn:active { transform: scale(.97); }
.lang-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lang-card > div:first-child { display: grid; gap: 1px; min-width: 0; }
.langseg { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.langseg button { border: 0; background: none; min-height: 40px; padding: 0 16px; border-radius: 9px; font: 700 15px/1 var(--f-body); color: var(--muted); cursor: pointer; }
.langseg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.sheet-list { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
/* Hindi (Devanagari): one font family for headings, no letter-spacing (it breaks the top line of the letters), a little more line height */
html[lang^="hi"] { --f-display: "Mukta", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; }
html[lang^="hi"] body *:not(.mono):not(.stamp):not(.confirm-stamp):not(.eyebrow):not(.idcopy) { letter-spacing: normal !important; }
html[lang^="hi"] .h1, html[lang^="hi"] .hero h2, html[lang^="hi"] .thero .big, html[lang^="hi"] .section-h h2, html[lang^="hi"] .sheet h3 { line-height: 1.35; }

/* footer + policy pages */
.foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--muted); }
.doc-page { padding-block: 22px 60px; }
.doc-page h1 { font: 800 28px/1.2 var(--f-display); margin: 6px 0 4px; }
.doc-page h2 { font: 700 18px/1.3 var(--f-display); margin: 26px 0 6px; }
.doc-page p, .doc-page li { max-width: 68ch; }
.doc-page .updated { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.price { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.price th, table.price td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.price th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
table.price td.num { font-family: var(--f-mono); white-space: nowrap; color: var(--ink); }
table.price tr:last-child td { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .tick circle, .tick path { stroke-dashoffset: 0; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
