/* ELTAAp mini app — iPhone-style: light grey ground, white cards, black accent,
   glass header and floating glass tab bar, photoreal 3D pictures (img/ui). */
:root {
  --bg: #EEEFF1; --card: #FFFFFF; --ink: #111111; --ink2: #3A3A3C; --mute: #6E6E73; --line: #D1D1D6; --field: #F2F2F7;
  --accent: #111111; --on-accent: #FFFFFF; --ok: #1E8E4E; --bad: #C2352B; --warn-bg: #FFF4CC; --warn: #6B5300;
  --banner: #2A1826;
  --glass: linear-gradient(100deg, rgba(214,244,228,.78) 0%, rgba(238,234,252,.68) 55%, rgba(255,241,232,.66) 100%);
  --glass2: linear-gradient(100deg, rgba(238,234,252,.75) 0%, rgba(245,245,247,.72) 55%, rgba(214,244,228,.72) 100%);
  --glass3: linear-gradient(135deg, rgba(255,236,228,.78), rgba(245,245,247,.72));
  --glass-edge: rgba(255,255,255,.92); --glass-shadow: 0 10px 30px rgba(20,30,40,.14);
  --pill: rgba(255,255,255,.62); --tab-on: rgba(17,17,17,.07);
  --r: 24px; --pad: 16px; --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --ink: #FFFFFF; --ink2: #D1D1D6; --mute: #98989F; --line: #38383A; --field: #2C2C2E;
  --accent: #FFFFFF; --on-accent: #000000; --ok: #30D158; --bad: #FF6B60; --warn-bg: #3A3110; --warn: #FFD66B;
  --glass: linear-gradient(100deg, rgba(40,58,50,.72) 0%, rgba(44,40,60,.66) 55%, rgba(58,44,40,.64) 100%);
  --glass2: linear-gradient(100deg, rgba(44,40,60,.72) 0%, rgba(36,36,38,.72) 55%, rgba(40,58,50,.72) 100%);
  --glass3: linear-gradient(135deg, rgba(58,44,40,.75), rgba(36,36,38,.72));
  --glass-edge: rgba(255,255,255,.14); --glass-shadow: 0 10px 30px rgba(0,0,0,.5);
  --pill: rgba(255,255,255,.1); --tab-on: rgba(255,255,255,.12);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 15px/1.4 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: none; }
.screen { min-height: 100vh; padding-bottom: calc(110px + var(--safe-b)); animation: in .25s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- glass ---------- */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge); }

/* ---------- header capsule ---------- */
.bar { position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; gap: 10px; height: 56px; margin: 10px var(--pad) 0; padding: 0 7px 0 18px; border-radius: 28px; }
.bar.with-back { padding-left: 6px; }
.bar .logo { width: 62px; height: 25px; color: var(--ink); }
.bar .ttl { flex: 1; min-width: 0; }
.bar .ttl b { display: block; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.2px; }
.bar .ttl span { display: block; font-size: 12px; line-height: 15px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .sp { flex: 1; }
.round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; background: var(--pill); color: var(--ink); }
.round svg { width: 20px; height: 20px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 22px; background: var(--pill); }
.lang button { height: 36px; min-width: 46px; padding: 0 12px; border-radius: 18px; font-size: 14px; font-weight: 500; }
.lang button.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pill-btn { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--pill); font-size: 14px; font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 22px; border-radius: 27px; font-weight: 600; font-size: 16px; transition: transform .12s, opacity .12s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn.sm { width: auto; min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 20px; }
.btn-dark { background: var(--accent); color: var(--on-accent); }
.btn-light { background: var(--card); color: var(--ink); }
.btn-soft { background: var(--field); color: var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- home: banner carousel ---------- */
.banner { padding-top: 14px; }
.slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: none; width: 100%; height: 196px; border-radius: 26px; overflow: hidden; scroll-snap-align: start; background: var(--banner); color: #fff; text-align: left; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 60%; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,24,38,0) 44%, rgba(42,24,38,.8) 62%); }
.slide .txt { position: absolute; z-index: 1; left: 55%; right: 14px; top: 26px; bottom: 18px; display: flex; flex-direction: column; }
.slide h2 { margin: 0; font-size: 24px; line-height: 26px; font-weight: 800; letter-spacing: -.3px; }
.slide p { margin: 8px 0 0; font-size: 13px; line-height: 17px; color: #E6DCE3; }
.slide .go { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; font-size: 14px; font-weight: 700; }
.slide .go svg { width: 15px; height: 15px; }
.slide .stats { display: flex; gap: 6px; margin-top: auto; }
.slide .stats div { padding: 6px 9px; border-radius: 12px; background: rgba(255,255,255,.14); font-size: 11px; line-height: 13px; color: #E6DCE3; }
.slide .stats b { display: block; font-size: 15px; line-height: 18px; color: #fff; }
.dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: all .2s; }
.dots span.on { width: 18px; background: var(--ink); }

/* ---------- sector chips with 3D pictures ---------- */
.srow { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--pad) 2px; scrollbar-width: none; }
.srow::-webkit-scrollbar { display: none; }
.schip { flex: none; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 14px 0 6px; border-radius: 20px; background: var(--card); font-size: 13.5px; line-height: 16px; font-weight: 500; text-align: left; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.schip.on { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 600; }
.schip .pic { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; background: #fff; }
.schip .pic img { width: 100%; height: 100%; object-fit: contain; }
.schip span:last-child { max-width: 9.5em; }

/* ---------- shelves ---------- */
.sh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 24px 20px 12px; }
.sh-head h3 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.3px; }
.see { flex: none; font-size: 15px; color: var(--mute); }
.sh-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--pad) 4px; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.sh-row::-webkit-scrollbar { display: none; }

/* ---------- product card ---------- */
.pcard { position: relative; display: flex; flex-direction: column; padding: 8px 8px 10px; border-radius: var(--r); background: var(--card); }
.pcard.mini { flex: none; width: 166px; scroll-snap-align: start; }
.pc-main { display: flex; flex-direction: column; flex: 1; text-align: left; }
.pc-pic { position: relative; display: block; height: 140px; border-radius: 18px; overflow: hidden; background: #fff; }
.pgrid .pc-pic { height: auto; aspect-ratio: 1.12; }
.pc-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transition: transform .3s; }
.pc-main:active .pc-pic img { transform: scale(1.03); }
.pc-pic .st { position: absolute; top: 6px; right: 6px; }
.pcard b { display: block; padding: 10px 4px 0; font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sub { display: block; padding: 0 4px; font-size: 12.5px; line-height: 17px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding-left: 4px; min-height: 34px; }
.price { display: inline-flex; align-items: baseline; gap: 3px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.price small { font-size: 11.5px; font-weight: 500; color: var(--mute); }
.locked { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; line-height: 15px; color: var(--mute); }
.locked svg { width: 13px; height: 13px; }
.add { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 17px; background: var(--accent); color: var(--on-accent); }
.add svg { width: 18px; height: 18px; }
.add.in { background: var(--field); color: var(--ink); }
.fav { position: absolute; left: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.88); color: #111; }
.fav svg { width: 17px; height: 17px; }
.fav.on svg { fill: currentColor; }
.st { padding: 4px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.st.low { background: var(--warn-bg); color: var(--warn); }
.st.soon { background: rgba(255,255,255,.92); color: #48484A; }

/* ---------- catalogue ---------- */
.searchrow { position: sticky; top: 76px; z-index: 15; display: flex; gap: 8px; padding: 12px var(--pad) 0; }
.searchrow .search { flex: 1; min-width: 0; }
/* so‘m / $ switch (only for approved companies, prices in dollars by the Asia Alliance Bank rate) */
.cur { flex: none; display: flex; gap: 2px; height: 48px; padding: 4px; border-radius: 24px; background: var(--card); box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.cur button { min-width: 44px; padding: 0 12px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--mute); }
.cur button.on { background: var(--ink); color: var(--card); }
.pricebox span.alt { margin-top: 2px; font-size: 14px; line-height: 18px; color: var(--ink); font-weight: 600; }
.pricebox span.rate { margin: 1px 0 6px; font-size: 11.5px; }
.cur.in-box { align-self: flex-start; height: 36px; padding: 3px; background: var(--field); box-shadow: none; }
.cur.in-box button { min-width: 36px; padding: 0 9px; font-size: 13px; border-radius: 15px; }
.search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 24px; background: var(--card); color: var(--mute); box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.search svg { width: 19px; height: 19px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--pad) 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--card); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px var(--pad) 0; }
.empty { margin: 20px var(--pad); padding: 24px; border-radius: var(--r); background: var(--card); text-align: center; color: var(--mute); font-size: 14px; }
.empty .btn { margin-top: 14px; }

/* ---------- product page ---------- */
.pp-hero { position: relative; height: 340px; margin: 10px 12px 0; border-radius: 34px; overflow: hidden; background: #fff; }
.pp-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.pp-hero .fb { object-fit: cover; }
.pp-top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; }
.pp-top .round { width: 46px; height: 46px; border-radius: 23px; }
.pp-top .fav { position: static; width: 46px; height: 46px; border-radius: 23px; }
.pp-top .fav svg { width: 20px; height: 20px; }
.pp-info { padding: 16px 20px 0; }
.pp-meta { font-size: 13px; color: var(--mute); }
.pp-info h1 { margin: 4px 0 0; font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -.4px; overflow-wrap: anywhere; }
.pp-ref { margin: 4px 0 0; font-size: 15px; line-height: 20px; color: var(--ink2); }
.pp-note { margin: 8px 0 0; font-size: 13px; color: var(--mute); }
.pricebox { display: flex; align-items: center; gap: 12px; margin: 14px var(--pad) 0; padding: 12px 14px; border-radius: 20px; background: var(--card); }
.pricebox .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; background: var(--field); }
.pricebox .ico svg { width: 18px; height: 18px; }
.pricebox b { display: block; font-size: 15px; line-height: 19px; }
.pricebox .big { font-size: 22px; line-height: 26px; font-weight: 800; }
.pricebox span { display: block; font-size: 12.5px; line-height: 16px; color: var(--mute); }
.label { margin: 18px 20px 8px; font-size: 13px; font-weight: 600; color: var(--mute); }
.group { margin: 14px var(--pad) 0; padding-left: 16px; border-radius: 22px; background: var(--card); }
.grow { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 12px 8px 0; border-bottom: .5px solid var(--line); width: 100%; text-align: left; }
.grow:last-child { border-bottom: 0; }
.grow .t { flex: 1; min-width: 0; }
.grow .t b { display: block; font-size: 15px; line-height: 19px; font-weight: 600; }
.grow .t span { display: block; font-size: 12.5px; line-height: 16px; color: var(--mute); }
.switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--line); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
:root[data-theme="dark"] .switch.on::after { background: #000; }
.stepper { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 20px; background: var(--field); }
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 17px; background: var(--card); }
.stepper button svg { width: 16px; height: 16px; }
.stepper input { width: 52px; height: 34px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 16px; outline: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rm-link { display: block; margin: 14px auto 0; font-size: 14px; color: var(--bad); }

/* ---------- bottom dock and floating tab bar ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px var(--pad) calc(16px + var(--safe-b)); background: linear-gradient(rgba(0,0,0,0), var(--bg) 32%); }
:root[data-theme="light"] .dock { background: linear-gradient(rgba(238,239,241,0), var(--bg) 32%); }
.dock .btn { box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.dock .note { margin: 0 0 10px; text-align: center; font-size: 12.5px; color: var(--mute); }
.tabbar { position: fixed; left: var(--pad); right: 88px; bottom: calc(18px + var(--safe-b)); z-index: 35; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; height: 62px; padding: 0 5px; border-radius: 31px; background: var(--glass2); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 52px; border-radius: 26px; font-size: 10px; font-weight: 500; color: var(--ink2); }
.tab svg { width: 24px; height: 24px; }
.tab.on { background: var(--tab-on); color: var(--ink); font-weight: 600; }
.tab .tb { position: absolute; top: 3px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.fab { position: fixed; right: var(--pad); bottom: calc(18px + var(--safe-b)); z-index: 35; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 31px; background: var(--glass3); color: var(--ink); }
.fab svg { width: 24px; height: 24px; }

/* ---------- sections ---------- */
.sec { padding: 0 var(--pad); }
.sec-title { margin: 26px 20px 12px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.3px; }
.steps { display: grid; gap: 8px; padding: 0 var(--pad); }
.step { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--card); }
.step .n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.step b { display: block; font-size: 15px; }
.step span { font-size: 13px; color: var(--mute); }
.foot { display: grid; gap: 2px; padding: 28px var(--pad) 8px; text-align: center; font-size: 12px; color: var(--mute); }
.foot b { color: var(--ink); }
.foot a { font-weight: 600; color: var(--ink); }

/* ---------- request ---------- */
.wiz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 14px 20px 0; }
.wiz-step { display: grid; gap: 6px; text-align: left; min-width: 0; cursor: default; }
.wiz-step.past { cursor: pointer; }
.wiz-step .wbar { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.wiz-step.on .wbar, .wiz-step.past .wbar { background: var(--ink); }
.wiz-step .wlbl { font-size: 11px; font-weight: 500; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-step.on .wlbl { color: var(--ink); font-weight: 700; }
.wiz-step.past .wlbl { color: var(--ink2); }
.items { display: grid; gap: 10px; padding: 16px var(--pad) 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); background: var(--card); }
.item-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.item img { flex: none; width: 76px; height: 76px; border-radius: 18px; object-fit: cover; object-position: 72% 50%; background: #fff; }
.item .t { flex: 1; min-width: 0; }
.item b { display: block; font-size: 15px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t > span { display: block; font-size: 12.5px; line-height: 17px; color: var(--mute); }
.item .t .locked, .item .t .price { margin-top: 4px; }
.item .rm { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 18px; background: var(--field); color: var(--mute); }
.item .rm svg { width: 16px; height: 16px; }
.add-more { display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; border-radius: 25px; border: 1.5px dashed var(--line); font-size: 15px; font-weight: 600; }
.add-more svg { width: 18px; height: 18px; }
.card { margin: 14px var(--pad) 0; padding: 16px; border-radius: 24px; background: var(--card); }
.card h2 { margin: 0; font-size: 21px; line-height: 26px; font-weight: 700; }
.card > p { margin: 6px 0 0; font-size: 14px; line-height: 19px; color: var(--mute); }
.caps { margin: 18px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .4px; color: var(--mute); text-transform: uppercase; }
.box-field { display: block; margin: 14px var(--pad) 0; padding: 12px 16px; border-radius: 22px; background: var(--card); }
.box-field > span { display: block; font-size: 12px; line-height: 15px; color: var(--mute); }
.box-field textarea, .box-field input { width: 100%; margin-top: 4px; padding: 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 16px; line-height: 21px; }
.field { display: block; margin-top: 12px; }
.field > label { display: block; margin: 0 0 6px 4px; font-size: 13px; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 13px 16px; border: 1.5px solid transparent; border-radius: 16px; background: var(--field); font-size: 16px; outline: 0; transition: border-color .15s; }
.field textarea { resize: none; line-height: 21px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.err input, .field.err textarea { border-color: var(--bad); }
.msg { margin: 6px 0 0 4px; font-size: 12.5px; color: var(--bad); }
.send-err { margin: 14px var(--pad) 0; padding: 12px 14px; border-radius: 16px; background: rgba(194,53,43,.1); color: var(--bad); font-size: 13.5px; }
.send-err a { font-weight: 700; text-decoration: underline; }
.or { margin-top: 8px; text-align: center; font-size: 13px; color: var(--mute); }
.verified { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--field); }
.verified .ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 15px; background: var(--ok); color: #fff; }
.verified .ok svg { width: 16px; height: 16px; }
.verified b { display: block; font-size: 15px; }
.verified span { display: block; font-size: 12px; color: var(--mute); }
.verified button { margin-left: auto; font-size: 13.5px; font-weight: 600; text-decoration: underline; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px var(--pad) 0; padding: 3px; border-radius: 12px; background: rgba(118,118,128,.14); }
.seg button { height: 36px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.seg button.on { background: var(--card); box-shadow: 0 3px 8px rgba(0,0,0,.12); font-weight: 600; }
.choices { display: grid; gap: 8px; padding: 14px var(--pad) 0; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 22px; background: var(--card); text-align: left; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.choice .ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--field); }
.choice .ic svg { width: 22px; height: 22px; }
.choice .t { flex: 1; min-width: 0; }
.choice .t b { display: block; font-size: 15px; }
.choice .t span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--mute); margin-top: 2px; }
.choice .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.choice.on { box-shadow: inset 0 0 0 2px var(--ink); }
.choice.on .ic { background: var(--accent); color: var(--on-accent); }
.choice.on .dot { box-shadow: inset 0 0 0 7px var(--ink); }
.choice.off { opacity: .6; }
.choice.off .dot { display: grid; place-items: center; box-shadow: none; color: var(--mute); }
.choice.off .dot svg { width: 16px; height: 16px; }
.summary { margin: 14px var(--pad) 0; padding-left: 16px; border-radius: 22px; background: var(--card); }
.srow-s { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 12px 0; border-bottom: .5px solid var(--line); font-size: 14px; line-height: 1.4; }
.srow-s:last-child { border-bottom: 0; }
.srow-s > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.srow-s span { display: block; font-size: 12px; color: var(--mute); }
.srow-s ul { margin: 2px 0 0; padding-left: 18px; }
.srow-s .link { flex: none; font-size: 13.5px; }

/* ---------- maps ---------- */
.map { position: relative; height: 320px; margin: 12px var(--pad) 0; border-radius: 26px; overflow: hidden; background: #E9ECE6; }
.map .leaf { position: absolute; inset: 0; }
.map .hint { position: absolute; left: 50%; top: 12px; z-index: 500; transform: translateX(-50%); padding: 7px 12px; border-radius: 16px; font-size: 12.5px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.map .pin { position: absolute; left: 50%; top: 50%; z-index: 500; width: 38px; height: 52px; margin: -52px 0 0 -19px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); transition: transform .15s; }
.map.moving .pin { transform: translateY(-8px); }
.map .me { position: absolute; right: 12px; bottom: 12px; z-index: 500; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; color: var(--ink); }
.map .me svg { width: 20px; height: 20px; }
.map .fail { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #48484A; font-size: 13.5px; }
.map.small { height: 190px; }
.leaflet-control-attribution { font-size: 9px !important; }
.wh { display: flex; align-items: center; gap: 12px; margin: 12px var(--pad) 0; padding: 14px 16px; border-radius: 22px; background: var(--card); }
.wh .t { flex: 1; min-width: 0; }
.wh b { display: block; font-size: 15px; }
.wh span { display: block; font-size: 12.5px; color: var(--mute); }
.hint-line { display: flex; gap: 8px; margin: 10px 20px 0; font-size: 12.5px; line-height: 17px; color: var(--mute); }
.hint-line svg { width: 16px; height: 16px; }

/* ---------- profile ---------- */
.hello { display: flex; align-items: center; gap: 14px; margin: 14px var(--pad) 0; padding: 16px; border-radius: 24px; background: var(--card); }
.av { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 27px; background: var(--accent); color: var(--on-accent); font-size: 22px; font-weight: 700; }
.hello > div > span { display: block; font-size: 12.5px; color: var(--mute); }
.hello > div > b { display: block; font-size: 18px; }
.vline { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12.5px; font-style: normal; color: var(--ok); }
.vline svg { width: 14px; height: 14px; }
.cstat { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: var(--field); color: var(--ink2); }
.cstat.approved { background: rgba(30,142,78,.14); color: var(--ok); }
.cstat.pending { background: var(--warn-bg); color: var(--warn); }
.cstat.rejected { background: rgba(194,53,43,.12); color: var(--bad); }
.orders { display: grid; gap: 10px; padding: 0 var(--pad); }
.ocard { padding: 14px; border-radius: 22px; background: var(--card); }
.otop { display: flex; align-items: center; gap: 8px; }
.otop b { font-size: 16px; }
.odate { flex: 1; font-size: 12px; color: var(--mute); }
.ost { padding: 4px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 700; background: var(--field); color: var(--mute); white-space: nowrap; }
.ost.s-new { background: var(--warn-bg); color: var(--warn); }
.ost.s-confirmed, .ost.s-ready, .ost.s-shipped { background: rgba(30,142,78,.14); color: var(--ok); }
.ost.s-canceled { background: rgba(194,53,43,.12); color: var(--bad); }
.olines { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; }
.olines li.gone { color: var(--mute); text-decoration: line-through; }
.ometa { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.ometa svg { width: 15px; height: 15px; }
.btn.repeat { margin-top: 12px; min-height: 44px; }
.contacts { margin: 0 var(--pad); padding: 6px 16px 16px; border-radius: 24px; background: var(--card); }
.contacts .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: .5px solid var(--line); }
.contacts .row svg { width: 20px; height: 20px; }
.contacts .row b { font-size: 17px; }
.contacts .btns { display: grid; gap: 8px; margin-top: 14px; }
.seg.lang-seg { margin-top: 0; }

/* ---------- done ---------- */
.done { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 24px calc(32px + var(--safe-b)); text-align: center; }
.done .ok { display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 22px; border-radius: 44px; background: var(--accent); color: var(--on-accent); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.done .ok svg { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.done h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.3px; }
.done p { max-width: 32ch; margin: 0 0 8px; color: var(--mute); }
.done .demo { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); font-size: 12.5px; }
.done .btns { display: grid; gap: 8px; width: 100%; max-width: 360px; margin-top: 26px; }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 60; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 16px; background: rgba(28,28,30,.94); color: #fff; font-size: 13.5px; font-weight: 500; transform: translate(-50%, 20px); opacity: 0; transition: all .25s; pointer-events: none; text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 560px) {
  .screen { max-width: 560px; margin-left: auto; margin-right: auto; }
  .tabbar { left: calc(50% - 264px); right: calc(50% - 192px); }
  .fab { right: calc(50% - 264px); }
  .dock { padding-left: calc(50% - 264px); padding-right: calc(50% - 264px); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- v1.3: registration gate, masked prices, reference dollars, debt ---------- */
.qprice { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.qprice b { font-size: 15px; font-weight: 700; color: var(--mute); }
.qprice b small { font-size: 11.5px; font-weight: 500; }
.qprice i { font-style: normal; font-size: 10.5px; line-height: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pricebox .big.q { color: var(--mute); }
.pricebox span.usd { margin-top: 6px; font-size: 11px; line-height: 14px; color: var(--mute); opacity: .8; }
.regcard { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px; }
.regcard b { display: block; font-size: 15px; line-height: 19px; }
.regcard span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 16px; color: var(--mute); }
.regcard .btn { grid-column: 1 / -1; min-height: 46px; font-size: 15px; }
.rc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; background: var(--field); }
.rc-ic svg { width: 18px; height: 18px; }
.fine { margin: 8px 4px 0; font-size: 12px; line-height: 16px; color: var(--mute); }
.quiet-link { display: block; margin: 18px auto 0; padding: 0 28px; max-width: 420px; font-size: 12.5px; line-height: 17px; color: var(--mute); text-align: center; text-decoration: underline; text-underline-offset: 2px; }
.field select { width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 16px; background: var(--field); color: var(--ink); font-size: 16px; outline: 0; appearance: none; }
.grow.off { opacity: .55; }
.sheet-dim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.38); animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; display: grid; gap: 10px; padding: 26px var(--pad) calc(20px + var(--safe-b)); border-radius: 28px 28px 0 0; background: var(--card); text-align: center; animation: up .28s cubic-bezier(.2,.9,.3,1); }
.sheet h2 { margin: 0; font-size: 22px; line-height: 27px; }
.sheet p { margin: 0 0 8px; font-size: 14.5px; line-height: 20px; color: var(--mute); }
.sheet .link { justify-self: center; margin-top: 4px; font-size: 14px; color: var(--mute); }
.sheet-ic { justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 28px; background: var(--field); }
.sheet-ic svg { width: 24px; height: 24px; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.debtcard { border: 1.5px solid rgba(194,53,43,.35); }
.debtcard .dhead { display: flex; align-items: center; gap: 8px; color: var(--bad); }
.debtcard .dhead svg { width: 20px; height: 20px; }
.debtcard .dat { margin-bottom: 6px; font-size: 13px; color: var(--mute); }
.debtcard .dsum { margin: 6px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.debtcard p { margin: 0 0 12px; font-size: 13px; color: var(--mute); }
