/* iFix Mang'it — do'kon (docs/DIZAYN.md "Telefonning ichki dunyosi").
   base.css tokenlari + fx.css effektlari ustiga. Telefon (390px) — asosiy ekran.
   Unumdorlik: shisha (backdrop-filter) faqat yuqori panel, pastki orol, sotib olish paneli va oynalarda; ro'yxat kartalari — qattiq fon. */

:root {
  --pink: #FF5CA8; --cyan: #22C3EE;
  --tab-h: 64px; --gap: 12px;
  /* "Pul" tugmalari uchun issiq gradient — yorug' fonda oq matn o'qilishi uchun biroz to'qroq */
  --hot: linear-gradient(135deg, #F47A2C, #E2561B 55%, #D93A5E);
  --stage-bg: linear-gradient(165deg, #E3E8FF 0%, #EEE9FF 55%, #F7EFFA 100%);
  --stage-grid: rgba(57,73,245,.13);
  --tile-a: #F1F3FE; --tile-b: #E6EAFC;
  --card-hi: inset 0 1px 0 rgba(255,255,255,.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hot: linear-gradient(135deg, #FF7A30, #E8541E 50%, #DB3D63);
    --blob: linear-gradient(135deg, #4C5FF5, #8F4BEF);
    --stage-bg: linear-gradient(165deg, #1A2070 0%, #12164F 50%, #0B0E33 100%);
    --stage-grid: rgba(150,165,255,.12);
    --tile-a: #2A3394; --tile-b: #1B216A;
    --card-hi: inset 0 1px 0 rgba(255,255,255,.06);
  }
}
:root[data-theme="dark"] {
  --hot: linear-gradient(135deg, #FF7A30, #E8541E 50%, #DB3D63);
  --blob: linear-gradient(135deg, #4C5FF5, #8F4BEF);
  --stage-bg: linear-gradient(165deg, #1A2070 0%, #12164F 50%, #0B0E33 100%);
  --stage-grid: rgba(150,165,255,.12);
  --tile-a: #2A3394; --tile-b: #1B216A;
  --card-hi: inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---------- Umumiy ---------- */
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
.big-ic { width: 40px; height: 40px; }
.block { display: block; } .center { text-align: center; } .mt { margin-top: 14px; } .pre { white-space: pre-line; }
.ok-t { color: var(--signal); } .err-t, .danger-t { color: var(--danger); } .warn-t { color: var(--amber); } .link-t { color: var(--volt); font-weight: 600; }
.clamp1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.row.gap-s { display: flex; gap: 6px; align-items: center; }
body { padding-bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); }
#view { padding-top: 6px; outline: none; min-height: 60vh; overflow-x: clip; } /* 3D kirish (reveal) burilishlari gorizontal aylanish yaratmasin; sticky buzilmaydi */
h1 { font-size: 1.36rem; }
.section { margin: 26px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.section-head h2, .section > h2 { margin: 0; font-size: 1.06rem; letter-spacing: -.015em; }
.section > h2 { margin-bottom: 12px; }
.see-all { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 999px; background: var(--volt-soft); color: var(--volt); font-size: .82rem; }
.see-all .ic { width: 15px; height: 15px; }

/* Ro'yxatdagi kartalar — qattiq fon (shisha emas): o'rta Android'da silliq aylanish uchun */
#view .card { background: var(--surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow), var(--card-hi); border-radius: var(--r); padding: 14px; }
#view .card.flat { box-shadow: none; }
#view .card + .card, #view .card + .actions, #view .stack + .card, #view .card + details, #view details + .card, #view details + details { margin-top: 12px; }

/* Animatsiya tugagach transform ushlab qolinmasin (3D qiyshayish va bosilish ishlashi uchun) */
.stagger > * { animation-fill-mode: backwards !important; }
.stagger > *:nth-child(1) { animation-delay: .02s !important; } .stagger > *:nth-child(2) { animation-delay: .06s !important; }
.stagger > *:nth-child(3) { animation-delay: .1s !important; } .stagger > *:nth-child(4) { animation-delay: .14s !important; }
.stagger > *:nth-child(5) { animation-delay: .18s !important; } .stagger > *:nth-child(6) { animation-delay: .22s !important; }
.stagger > *:nth-child(7) { animation-delay: .26s !important; } .stagger > *:nth-child(8) { animation-delay: .3s !important; }
.stagger > *:nth-child(n+9) { animation-delay: .34s !important; }
.page-enter { animation-fill-mode: backwards !important; }
.pop-in { animation: popIn .45s var(--spring) backwards; }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(8px); } }
.leave { animation: leave .26s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(40px) scale(.96); } }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] > :not(summary) { animation: rise .3s var(--ease) backwards; }
.chev { transition: transform .3s var(--spring); }
details[open] .chev { transform: rotate(90deg); }
.meter-fill { animation: grow .9s var(--ease) .15s backwards; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.press:active { transform: scale(.96); }

/* ---------- Yuqori panel: suzib turgan shisha ---------- */
.topbar { position: sticky; top: 0; z-index: 30; padding: calc(env(safe-area-inset-top) + 8px) 10px 0; pointer-events: none; }
.topbar .top-in { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 7px; border-radius: 22px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line);
  box-shadow: 0 10px 30px -14px rgba(20,26,90,.35); transition: box-shadow .3s, background-color .3s; }
.topbar.scrolled .top-in { box-shadow: 0 16px 40px -14px rgba(10,14,60,.5); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); flex: none; border-radius: 14px; }
.brand img { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 6px 16px -6px var(--volt); }
.brand-t { white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: -.02em; }
.brand-t b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 620px) { .brand-t, .tier-pill { display: none; } }
.top-search { position: relative; flex: 1; min-width: 0; max-width: 560px; margin: 0 auto; }
.top-search .input { border-radius: 15px; padding: 6px 12px 6px 36px; min-height: 40px; background: var(--surface-2); border-color: transparent; font-size: .9rem; }
.top-search .input:focus { background: var(--surface-solid); box-shadow: 0 0 0 4px var(--volt-soft); border-color: var(--volt); }
.top-search-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 18px; height: 18px; }
.top-act { display: flex; align-items: center; gap: 2px; flex: none; }
.top-act .icon-btn { width: 38px; height: 38px; border-radius: 13px; color: var(--text); }
.top-act .icon-btn .ic { width: 20px; height: 20px; }
.top-act .icon-btn:hover { background: var(--surface-2); }
.lang-sel { appearance: none; font: inherit; font-family: var(--display); font-weight: 600; font-size: .7rem; color: var(--text); background: var(--surface-2); border: 1px solid transparent;
  border-radius: 12px; padding: 0 7px; height: 34px; min-width: 38px; cursor: pointer; text-align: center; letter-spacing: .02em; }
.lang-sel:focus-visible { outline: 2px solid var(--volt); outline-offset: 1px; }
.snd-btn { position: relative; }
.snd-btn[aria-pressed="false"] { opacity: .6; }
.snd-btn[aria-pressed="true"] .ic path:last-child { animation: sndWave 1.6s var(--ease) 1; }
@keyframes sndWave { 0% { opacity: 0; } 40% { opacity: 1; } }
.tier-pill { white-space: nowrap; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; }
body[data-route="search"] .top-search { visibility: hidden; }

/* ---------- Pastki menyu: shisha "orol" + suzuvchi tomchi ---------- */
.tabbar { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; width: min(calc(100% - 20px), 440px);
  padding: 6px; border-radius: 26px; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: 0 18px 40px -16px rgba(10,14,60,.55), inset 0 1px 0 rgba(255,255,255,.18); }
.tabbar-in { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: calc(var(--tab-h) - 12px); }
.tab-blob { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .62s var(--spring); pointer-events: none; z-index: 0; }
.tab-blob::before, .tab-blob::after { content: ''; position: absolute; inset: 0 3px; border-radius: 20px; transition: opacity .45s var(--ease); }
.tab-blob::before { background: var(--blob, var(--grad)); box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.3); }
.tab-blob::after { background: var(--hot); box-shadow: var(--glow-hot), inset 0 1px 0 rgba(255,255,255,.3); opacity: 0; }
.tab-blob.hot::before { opacity: 0; } .tab-blob.hot::after { opacity: 1; }
.tab-blob.moving::before, .tab-blob.moving::after { animation: blob .62s var(--ease); }
@keyframes blob { 0% { transform: none; } 35% { transform: scale(1.5, .78); border-radius: 30px; } 70% { transform: scale(.94, 1.06); } 100% { transform: none; } }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .68rem;
  font-weight: 600; min-height: 44px; border-radius: 20px; transition: color .35s var(--ease), transform .2s var(--spring); -webkit-user-select: none; user-select: none; }
.tab .ic { width: 23px; height: 23px; transition: transform .4s var(--spring); }
.tab:active { transform: scale(.92); }
.tab.on { color: #fff; }
.tab.on .ic { transform: translateY(-1px) scale(1.06); }
.tab-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab-ic { position: relative; display: inline-grid; place-items: center; }
.tab-cart:not(.on) { color: var(--solder); }
.tab-cart:not(.on) .tab-ic::before { content: ''; position: absolute; inset: -5px -9px; border-radius: 12px; background: var(--solder-soft); z-index: -1; }
.tab-badge { position: absolute; top: -8px; right: -13px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--solder); color: #fff;
  font: 700 .66rem/1 var(--display); display: grid; place-items: center; border: 2px solid var(--surface-solid); box-shadow: 0 4px 10px -3px var(--solder); }
.tab.on .tab-badge { background: #fff; color: #D2501A; border-color: transparent; }
.tab-dot { position: absolute; top: -2px; right: -4px; width: 10px; height: 10px; background: var(--danger); border-radius: 50%; border: 2px solid var(--surface-solid); }
.tab:focus-visible { outline: 2px solid var(--volt); outline-offset: -2px; }

/* ---------- Sahifa sarlavhasi ---------- */
.pg-head { display: flex; align-items: center; gap: 10px; margin: 8px 0 16px; min-height: 44px; }
.pg-head h1 { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.3rem; }
.pg-head h1 .muted { font-family: var(--font); font-weight: 500; font-size: .82rem; letter-spacing: 0; }
.back-btn, .pg-head .icon-btn { width: 44px; height: 44px; border-radius: 15px; background: var(--surface-solid); border: 1px solid var(--line); flex: none;
  box-shadow: 0 3px 0 var(--key-edge), 0 8px 16px -10px rgba(10,14,60,.4); transition: transform .2s var(--spring), box-shadow .15s; }
.back-btn:active, .pg-head .icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--key-edge); }
h2.lbl, .lbl { font-size: .82rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; display: block; font-family: var(--font); }

/* ---------- Keycap qo'shimchalari (base.css .key ustiga) ---------- */
.key { --edge: 5px; }
.key-row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 68px; padding: 12px 12px 12px 12px; }
.key-row .key-ic { flex: none; }
.key-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.key-row .key-t { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.key-s { display: flex; align-items: center; gap: 5px; }
.key-s.ok { color: var(--signal); font-weight: 600; }
.key-s.ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.key-go { position: absolute; right: 10px; top: 10px; width: 16px; height: 16px; color: var(--muted); opacity: .6; }
.key.nop { background: var(--surface-2); box-shadow: 0 3px 0 var(--key-edge); }
.key.nop .key-t { color: var(--muted); font-weight: 600; }
.key .badge { position: absolute; right: 10px; top: 10px; }
.key.wide { grid-column: 1 / -1; }
.key:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.keys + .keys { margin-top: 12px; }
.keys .skel { height: 68px; border-radius: 18px; }
.keys.dense { gap: 10px 10px; }
/* Tez harakat keycaplari: ikon tepada, sarlavha pastda */
.qkey { min-height: 104px; }
.qkey .key-t { font-size: .95rem; }
.qkey .key-ic { width: 44px; height: 44px; border-radius: 14px; }
.key .key-ic .ic { width: 22px; height: 22px; }

/* ---------- Bosh sahifa: qahramon ---------- */
.hero { margin: 4px 0 6px; }
.hero-copy > * { animation: heroUp .8s var(--spring) backwards; animation-delay: var(--d, 0s); }
@keyframes heroUp { from { opacity: 0; transform: perspective(900px) translateY(24px) rotateX(18deg); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line);
  font-size: .76rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 var(--signal); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.hero-h { font-size: clamp(1.5rem, 6.6vw, 2.3rem); line-height: 1.12; margin: 14px 0 8px; letter-spacing: -.025em; text-wrap: balance; }
.hero-sub { margin: 0 0 16px; font-size: .95rem; max-width: 34em; }
.hero-search { position: relative; display: flex; align-items: center; }
.hero-search > .ic { position: absolute; left: 16px; color: var(--volt); width: 22px; height: 22px; pointer-events: none; }
.hero-search .input { min-height: 58px; border-radius: 20px; padding: 10px 64px 10px 48px; font-size: 1rem; font-weight: 500; background: var(--surface-solid);
  border: 1.5px solid var(--line-2); box-shadow: 0 14px 32px -18px rgba(30,40,140,.45), var(--card-hi); }
.hero-search .input:focus { border-color: var(--volt); box-shadow: 0 0 0 5px var(--volt-soft), 0 14px 32px -18px rgba(30,40,140,.45); }
.hero-go { position: absolute; right: 7px; width: 46px; height: 46px; border-radius: 15px; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: var(--glow); transition: transform .2s var(--spring); }
.hero-go:active { transform: scale(.9); }
.hero-go .ic { width: 22px; height: 22px; stroke-width: 2.2; }
#hero-res:not(:empty) { margin-top: 12px; }

/* Sahna: 3D telefon + 2D afsona (legend) */
.stage { position: relative; margin-top: 18px; border-radius: 30px; overflow: hidden; isolation: isolate; background: var(--stage-bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; min-height: 330px;
  animation: stageIn .9s var(--ease) .18s backwards; }
@keyframes stageIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.stage::before { content: ''; position: absolute; left: -30%; right: -30%; bottom: -10%; height: 70%; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--stage-grid) 1px, transparent 1px) 0 0 / 30px 30px, linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px) 0 0 / 30px 30px;
  transform: perspective(380px) rotateX(62deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 85%); mask-image: linear-gradient(to top, #000 20%, transparent 85%); }
.stage::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 280px; height: 280px; left: 6%; top: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--volt) 42%, transparent), color-mix(in srgb, var(--plasma) 18%, transparent) 55%, transparent); filter: blur(10px); }
.stage-ph { position: relative; min-width: 0; }
.stage .ph3d { --w: 100px; --h: 204px; height: 320px; margin-left: 6px; animation: phoneIn 1.3s var(--spring) .3s backwards; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(70px) scale(.55) rotate(-14deg); } }
.stage .ph-rig { animation: explodeIn 1.5s var(--ease) .45s backwards, explode 5.5s ease-in-out 1.95s infinite alternate; }
@keyframes explodeIn { from { --ex: 0px; } to { --ex: 18px; } }
.stage .ph-l { border-radius: 20px; }
.stage .ph-cam { width: 40px; height: 40px; left: 8px; top: 8px; border-radius: 13px; }
.stage .ph-cam b { width: 15px; height: 15px; } .stage .ph-cam b:nth-child(1) { left: 4px; top: 4px; } .stage .ph-cam b:nth-child(2) { left: 21px; top: 12px; } .stage .ph-cam b:nth-child(3) { left: 4px; top: 21px; }
.stage .ph-battery .ph-face { inset: 50px 14px 20px; }
.stage .ph-screen .ph-face { border-radius: 16px; }
.stage .ph-time { font-size: 19px; top: 24px; }
.stage .ph-logo { font-size: 13px; bottom: 26px; }
.ph-l { outline: none; }
.ph-l:focus-visible .ph-face { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--volt); }
.ph-legend { list-style: none; margin: 0; padding: 18px 14px 18px 0; display: grid; gap: 8px; align-content: center; position: relative; z-index: 1; }
.ph-key { display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 8px; border-radius: 14px; color: var(--text); font-weight: 600; font-size: .82rem; line-height: 1.15;
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--key-edge), 0 8px 18px -12px rgba(10,14,60,.5);
  transition: transform .3s var(--spring), border-color .2s, box-shadow .2s, background-color .2s; animation: keyIn .6s var(--spring) backwards; animation-delay: calc(.6s + var(--i, 0) * .07s); min-height: 40px; }
@keyframes keyIn { from { opacity: 0; transform: translateX(26px) scale(.9); } }
.ph-key .kd { width: 26px; height: 26px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 55%, var(--plasma))); box-shadow: 0 4px 10px -4px var(--tone); }
.ph-key .kd .ic { width: 15px; height: 15px; stroke-width: 2; }
.ph-key span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ph-key.on, .ph-key:hover { transform: translateX(-6px); border-color: var(--tone); box-shadow: 0 3px 0 color-mix(in srgb, var(--tone) 60%, #000), 0 0 0 3px color-mix(in srgb, var(--tone) 20%, transparent); }
.ph-key:active { transform: translateX(-6px) translateY(2px); box-shadow: 0 1px 0 var(--key-edge); }
.ph-key:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.stage-hint { grid-column: 1 / -1; margin: -6px 0 0; padding: 0 16px 14px; font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stage-hint .ic { width: 15px; height: 15px; }
@media (min-width: 820px) {
  .hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; margin-top: 18px; }
  .stage { margin-top: 0; min-height: 400px; } .stage .ph3d { --w: 132px; --h: 268px; height: 400px; }
  .hero-h { font-size: 2.4rem; }
}

/* Brendlar qatori (bosh sahifa) */
.brand-row { margin: 20px -16px 0; padding: 4px 16px 10px; gap: 8px; scroll-padding-inline: 16px; }
.chips > * { flex: none; }
.bpill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; min-height: 42px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: .86rem; white-space: nowrap; flex: none; box-shadow: 0 3px 0 var(--key-edge); transition: transform .2s var(--spring), box-shadow .15s; }
.bpill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--key-edge); }
.bpill .mono { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 .8rem var(--display);
  background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 55%, var(--plasma))); }
.bpill.more { background: transparent; border-style: dashed; color: var(--volt); box-shadow: none; padding-left: 14px; }

.tier-card { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 16px; background: var(--solder-soft); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--solder) 35%, transparent); font-size: .88rem; }
.tier-card .ic { color: var(--solder); }
.quick { margin-top: 18px; }

/* Bannerlar */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
  margin: 22px -16px 0; padding: 4px 16px 10px; }
.banners::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .banners { grid-auto-columns: calc(50% - 6px); } }
.banner { scroll-snap-align: start; position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; gap: 10px; min-height: 128px; border-radius: 24px;
  padding: 16px 18px; color: #fff; background: var(--grad); box-shadow: var(--glow); transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--spring); }
.banner::before { content: ''; position: absolute; z-index: -1; width: 190px; height: 190px; right: -50px; top: -70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent); }
.banner::after { content: ''; position: absolute; z-index: -1; width: 120px; height: 120px; right: 26px; bottom: -60px; border-radius: 34px; transform: rotate(28deg); border: 2px solid rgba(255,255,255,.22); }
.banner.bn-1 { background: var(--hot); box-shadow: var(--glow-hot); }
.banner.bn-2 { background: linear-gradient(135deg, #0E9F6E, #22C3EE); box-shadow: 0 8px 26px -8px rgba(34,195,238,.6); }
.bn-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bn-txt b { font: 700 1.05rem/1.2 var(--display); letter-spacing: -.02em; } .bn-txt small { opacity: .92; font-size: .84rem; line-height: 1.35; }
.bn-timer { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bn-timer .ic { width: 14px; height: 14px; }
.bn-go { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); }

/* Kun tovari */
.deal { display: flex; align-items: center; gap: 12px; color: var(--text); padding: 12px 14px; margin-bottom: 12px; position: relative; overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--solder) 55%, var(--line)) !important; }
.deal-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--hot); color: #fff; font: 700 .9rem var(--display); box-shadow: var(--glow-hot); }
.deal-k { display: block; color: var(--solder); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.deal-p { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.bundles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bundle { display: grid; gap: 8px; }
.bundle-items { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.bundle-items li { padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.bundle-items li a { color: var(--text); }
.bundle-foot { align-items: flex-end; }
.price.big { font-size: 1.6rem; }

/* ---------- Mahsulot kartasi ---------- */
.pgrid { display: grid; gap: 14px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.prow { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none;
  margin: 0 -16px; padding: 4px 16px 14px; }
.prow::-webkit-scrollbar { display: none; }
.prow > * { scroll-snap-align: start; }
@media (min-width: 640px) { .prow { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .prow { grid-auto-columns: calc(20% - 10px); } }
.pcard { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  isolation: isolate; color: var(--text); box-shadow: 0 4px 0 var(--key-edge), 0 14px 26px -18px rgba(10,14,60,.55), var(--card-hi);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--spring), box-shadow .25s; }
.pcard::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(200px 160px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.22), transparent 65%); }
.pcard.tilting::after { opacity: 1; }
.pcard:has(.pname:focus-visible) { outline: 3px solid var(--volt); outline-offset: 2px; }
.pimg { position: relative; aspect-ratio: 1 / .78; overflow: hidden; background: radial-gradient(120% 90% at 30% 15%, var(--tile-a), var(--tile-b)); }
.pimg::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 10%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,14,60,.28), transparent); pointer-events: none; }
.pimg img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.pimg-tags { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 2; }
.pimg-tags .badge { font-size: .64rem; padding: 2px 7px; }
.pbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pname { font-weight: 600; font-size: .86rem; line-height: 1.25; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pname::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* butun karta bosiladi */
.pname:focus-visible { outline: none; }
.pmeta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.qty-pill { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 7px; }
.qty-pill.ok { background: var(--signal-soft); color: var(--signal); } .qty-pill.warn { background: var(--amber-soft); color: var(--amber); }
.qty-pill.ok::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pfoot { margin-top: auto; display: flex; align-items: flex-end; gap: 6px; padding-top: 2px; }
.pprice { flex: 1; min-width: 0; line-height: 1.12; }
.pprice .price { font-size: 1.02rem; white-space: nowrap; }
.pprice .cur { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); margin-top: 1px; }
.plbl { display: block; font-size: .62rem; font-weight: 700; color: var(--solder); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
.price-sub { display: block; color: var(--muted); font-size: .72rem; text-decoration: line-through; font-weight: 500; font-family: var(--font); }
.add-btn { position: relative; z-index: 4; flex: none; appearance: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hot); color: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--solder) 55%, #400), 0 10px 20px -8px var(--solder); transition: transform .25s var(--spring), box-shadow .15s; }
.add-btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%); }
.add-btn:active { transform: translateY(2px) scale(.9); box-shadow: 0 1px 0 color-mix(in srgb, var(--solder) 55%, #400); }
.add-btn .ic { width: 20px; height: 20px; stroke-width: 2.6; position: relative; }
.add-btn.sm { width: 32px; height: 32px; } .add-btn.sm .ic { width: 16px; height: 16px; }
.add-btn.is-busy .ic { opacity: 0; } .add-btn.is-busy::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid #fff; border-color: #fff transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.qtag { font-size: .64rem; font-weight: 700; padding: 2px 6px; border-radius: 7px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.qtag.q-original { background: var(--volt-soft); color: var(--volt); border-color: transparent; }
.qtag.q-oled { background: color-mix(in srgb, var(--plasma) 14%, transparent); color: var(--plasma); border-color: transparent; }
.qtag.q-incell { background: color-mix(in srgb, var(--cyan) 16%, transparent); color: color-mix(in srgb, var(--cyan) 70%, var(--text)); border-color: transparent; }
.badge.demo { background: linear-gradient(135deg, #7B2FF0, #B26BFF); color: #fff; letter-spacing: .04em; }
.badge.sale { background: var(--hot); color: #fff; }
.badge .ic { width: 13px; height: 13px; vertical-align: -2px; }
.badge.info, .alert.info { background: var(--volt-soft); color: var(--volt); }
/* Rasm o'rnida: suzib turgan ikonka */
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--volt); position: relative; z-index: 1; }
.ph .ic { width: 42%; height: 42%; max-width: 64px; max-height: 64px; stroke-width: 1.4; filter: drop-shadow(0 10px 10px color-mix(in srgb, currentColor 35%, transparent)); transform: translateY(-6%); }
.ph-1 { color: var(--solder); } .ph-2 { color: var(--signal); } .ph-3 { color: var(--plasma); }
.ph-big .ic { max-width: 120px; max-height: 120px; }
/* Tez tanlash oynasi (kartadagi «+») */
.qpick { display: grid; gap: 8px; }
.qpick-i { appearance: none; font: inherit; color: var(--text); background: var(--surface-solid); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 10px 12px; display: flex;
  align-items: center; gap: 10px; cursor: pointer; text-align: left; min-height: 58px; box-shadow: 0 3px 0 var(--key-edge); transition: transform .2s var(--spring); }
.qpick-i:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--key-edge); }
.qpick-i:hover { border-color: var(--volt); }

/* ---------- Katalog ---------- */
.search-in { position: relative; display: block; margin-bottom: 12px; }
.search-in > .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--volt); pointer-events: none; width: 20px; height: 20px; }
.search-in .input { padding-left: 44px; border-radius: 18px; min-height: 54px; background: var(--surface-solid); font-weight: 500; box-shadow: 0 10px 26px -18px rgba(30,40,140,.45); }
.search-in .input:focus { box-shadow: 0 0 0 5px var(--volt-soft); }
.sm-in { min-height: 42px; padding: 8px 14px; border-radius: 14px; margin-bottom: 12px; }
#gm-res:not(:empty) { margin-bottom: 8px; }
.cat-chips { margin: 0 -16px 8px; padding: 2px 16px 8px; scroll-padding-inline: 16px; }
.chip .cnt { font-size: .72rem; font-weight: 700; opacity: .7; margin-left: 2px; }
.chip .ic { width: 16px; height: 16px; vertical-align: -3px; }
.chip { min-height: 38px; padding: 6px 13px; box-shadow: 0 2px 0 var(--key-edge); }
.chip.on, .chip[aria-pressed="true"] { box-shadow: var(--glow); }
a.chip { display: inline-flex; align-items: center; gap: 5px; color: var(--text); } a.chip.on { color: #fff; }
.chips.wrap-f { flex-wrap: wrap; overflow: visible; }
.filters { display: flex; gap: 8px; align-items: center; margin: 0 -16px 10px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters > * { flex: none; }
.sel-sm, select.input.sel-sm { width: auto; flex: 0 1 auto; max-width: 70vw; min-height: 38px; padding: 5px 30px 5px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  appearance: none; background: var(--surface-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A82B8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 9px center / 16px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid color-mix(in srgb, var(--text) 35%, transparent); flex: none; vertical-align: -2px; }
#p-more, #m-all { margin-top: 16px; }
.count-line { margin: -4px 0 12px; }
.search-big { display: flex; gap: 8px; } .search-big .input { border-radius: 16px; padding-left: 16px; min-height: 48px; }
.search-big .btn { border-radius: 16px; width: 48px; min-height: 48px; padding: 0; }
#s-models:not(:empty) { margin-bottom: 18px; }
.brand-head { display: flex; align-items: center; gap: 12px; }
.brand-head .key-ic { width: 44px; height: 44px; border-radius: 14px; flex: none; }

/* ---------- Qism sahifasi ---------- */
.part { display: grid; gap: 16px; }
@media (min-width: 820px) { .part { grid-template-columns: .95fr 1.05fr; align-items: start; gap: 28px; } .part-media { position: sticky; top: 90px; } }
.part-media { border-radius: 28px; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 11; max-height: 270px; width: 100%; position: relative; border: 1px solid var(--line);
  background: var(--stage-bg); box-shadow: var(--shadow-lg); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s var(--spring); }
@media (min-width: 820px) { .part-media { max-height: none; } }
.part-media::before { content: ''; position: absolute; inset: auto -20% -10% -20%; height: 60%; z-index: 0; pointer-events: none;
  background: linear-gradient(var(--stage-grid) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, var(--stage-grid) 1px, transparent 1px) 0 0 / 26px 26px;
  transform: perspective(300px) rotateX(60deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000, transparent 80%); mask-image: linear-gradient(to top, #000, transparent 80%); }
.part-media::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px 200px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.28), transparent 65%); }
.part-media.tilting::after { opacity: 1; }
.part-media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.part-media .ph .ic { width: 38%; height: 38%; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12%) rotate(-4deg); } }
.demo-note { position: absolute; left: 10px; bottom: 10px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; font-size: .74rem;
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent); padding: 6px 10px; border-radius: 12px; }
.part-crumb { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.part-crumb a { font-weight: 600; }
.part-title { font-size: 1.32rem; margin: 6px 0 14px; line-height: 1.18; }
.vkeys { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); margin-bottom: 16px; padding-bottom: 4px; }
.vkey { --edge: 4px; appearance: none; text-align: left; font: inherit; color: var(--text); background: var(--key-face), var(--surface-solid); border: 1.5px solid var(--line-2); border-radius: 16px;
  padding: 10px 24px 10px 12px; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 62px;
  box-shadow: 0 var(--edge) 0 var(--key-edge), 0 10px 18px -14px rgba(10,14,60,.5); transition: transform .25s var(--spring), box-shadow .15s, border-color .2s, background-color .2s; }
.vkey:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--key-edge); transition-duration: .06s; }
.vkey[aria-checked="true"] { border-color: var(--volt); background: var(--volt-soft); box-shadow: 0 var(--edge) 0 color-mix(in srgb, var(--volt) 65%, #000), 0 0 0 3px color-mix(in srgb, var(--volt) 20%, transparent); }
.vkey:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.vq { font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vp b { white-space: nowrap; font-weight: 600; } .vp small { font-family: var(--font); font-size: .7rem; }
.vp { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: .76rem; color: var(--muted); font-weight: 600; letter-spacing: -.02em; }
.vkey[aria-checked="true"] .vp { color: var(--volt); }
.vdot { position: absolute; right: 10px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); } .vdot.ok { background: var(--signal); }
.vkey[aria-checked="true"] .vdot.ok { box-shadow: 0 0 0 3px var(--signal-soft); }
.vpanel { display: grid; gap: 12px; }
.vprice { display: flex; align-items: baseline; gap: 2px 10px; flex-wrap: wrap; }
.vprice .plbl { flex-basis: 100%; }
.vprice .price-sub { display: inline; font-size: .86rem; }
.br-line { margin: 0; display: flex; gap: 6px; align-items: center; }
.buy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buy-row .grow { flex: 1 1 140px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface-solid); padding: 2px; }
.qty-b { appearance: none; border: 0; background: var(--surface-2); color: var(--text); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  transition: transform .15s var(--spring), background-color .15s; }
.qty-b:disabled { opacity: .35; cursor: default; } .qty-b:not(:disabled):hover { background: var(--volt-soft); color: var(--volt); } .qty-b:active { transform: scale(.85); }
.qty-b .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.qty output { min-width: 32px; text-align: center; font: 700 .95rem var(--display); font-variant-numeric: tabular-nums; }
.tier-hint { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.link-row { display: flex; align-items: center; gap: 12px; color: var(--text); }
.facts { margin: 0; display: grid; gap: 8px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); display: flex; align-items: center; gap: 6px; } .facts dd { margin: 0; text-align: right; }

/* Pastki sotib olish paneli (shisha) */
.buybar { position: sticky; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); z-index: 8; display: flex; align-items: center; gap: 12px; margin: 22px 0 0;
  padding: 8px 8px 8px 16px; border-radius: 24px; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: 0 18px 40px -16px rgba(10,14,60,.55); animation: barUp .6s var(--spring) .2s backwards; }
@keyframes barUp { from { opacity: 0; transform: translateY(40px); } }
.buybar:empty { display: none; }
.bb-price { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.bb-price small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.bb-price .price { font-size: 1.12rem; white-space: nowrap; }
.btn.buy, .btn.hot { flex: 1; min-height: 54px; border-radius: 18px; border: 0; background: var(--hot); color: #fff; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--solder) 50%, #3a0a00), 0 14px 26px -10px var(--solder); text-shadow: 0 1px 1px rgba(80,20,0,.25); transition: transform .2s var(--spring), box-shadow .12s; }
.btn.buy::before, .btn.hot::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.3), transparent 55%); }
.btn.buy:active, .btn.hot:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--solder) 50%, #3a0a00); }
.btn.buy .ic, .btn.hot .ic { stroke-width: 2.4; }
.btn.hot.is-busy::after, .btn.buy.is-busy::after { border-color: #fff transparent #fff transparent; }
body[data-route="part"] #toasts { bottom: calc(var(--tab-h) + 100px + env(safe-area-inset-bottom)); }
body[data-route="cart"] #toasts { bottom: calc(var(--tab-h) + 120px + env(safe-area-inset-bottom)); }

/* ---------- Savat / rasmiylashtirish ---------- */
.cart-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.cline { display: flex; gap: 12px; align-items: center; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; padding: 10px 12px 10px 10px;
  box-shadow: 0 3px 0 var(--key-edge), 0 12px 22px -18px rgba(10,14,60,.5); }
.cline.warnl { border-color: var(--amber); }
.cthumb { flex: none; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--volt); background: radial-gradient(120% 90% at 30% 15%, var(--tile-a), var(--tile-b)); }
.cthumb .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.cline-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.cline-name { color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cline-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.cline-side .price { font-size: .95rem; }
.cline-side .icon-btn { width: 36px; height: 36px; color: var(--muted); border-radius: 12px; }
.cline-side .icon-btn:hover { color: var(--danger); background: var(--danger-soft); }
.cline-side .icon-btn .ic { width: 18px; height: 18px; }
.cline .qty-b { width: 32px; height: 32px; border-radius: 10px; } .cline .qty output { min-width: 26px; font-size: .86rem; }
@media (max-width: 380px) { .cthumb { display: none; } }
.summary { display: grid; gap: 8px; }
.cart-sum { position: sticky; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); z-index: 8; background: var(--glass) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important; backdrop-filter: var(--glass-blur) !important; border: 1px solid var(--glass-line) !important; border-radius: 24px !important;
  box-shadow: 0 18px 40px -16px rgba(10,14,60,.55) !important; padding: 12px 12px 12px 16px !important; }
.cart-sum .sum-row.total { border-top: 0; padding-top: 0; }
.cart-sum-in { display: flex; align-items: center; gap: 12px; }
.cart-sum-in .btn.hot { flex: 1 1 auto; min-width: 0; padding: 10px 14px; font-size: .96rem; white-space: nowrap; }
.cart-sum-in .bb-price { flex: none; }
@media (max-width: 420px) { .cart-sum-in .btn.hot .ic { display: none; } .cart-sum-in .bb-price .price { font-size: 1.02rem; } }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.sum-row.total { border-top: 1px dashed var(--line-2); padding-top: 10px; font-size: 1rem; align-items: baseline; } .sum-row.total .price { font-size: 1.3rem; }
.checkout { display: grid; gap: 12px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1fr 1fr; align-items: start; } .checkout #sum { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 90px; } }
fieldset.card { margin: 0; min-width: 0; } fieldset.card legend { font: 600 1rem var(--display); padding: 0; float: left; width: 100%; margin-bottom: 12px; letter-spacing: -.01em; }
fieldset.card legend + * { clear: both; }
fieldset.plain { border: 0; padding: 0; margin: 0; }
details.card > summary, details.more > summary { display: flex; align-items: center; gap: 12px; }
details.more:not(.card) > summary { color: var(--volt); font-weight: 600; font-size: .88rem; padding: 4px 0; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; padding-bottom: 4px; }
.opts.opts-1 { grid-template-columns: 1fr; } .opts.opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.opt > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px 6px; border: 1.5px solid var(--line-2);
  border-radius: 16px; height: 100%; background: var(--key-face), var(--surface-solid); min-height: 76px; font-size: .86rem; box-shadow: 0 4px 0 var(--key-edge);
  transition: transform .25s var(--spring), box-shadow .15s, border-color .2s, background-color .2s; }
.opt:active > span { transform: translateY(3px); box-shadow: 0 1px 0 var(--key-edge); }
.opt > span .ic { color: var(--volt); width: 22px; height: 22px; } .opt > span small { color: var(--muted); font-size: .7rem; line-height: 1.15; }
.opt input:checked + span { border-color: var(--volt); background: var(--volt-soft); box-shadow: 0 4px 0 color-mix(in srgb, var(--volt) 65%, #000), 0 0 0 3px color-mix(in srgb, var(--volt) 18%, transparent); }
.opt input:checked + span .ic { animation: pop .45s var(--spring); }
.opt input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 2px; }
.opt.off { opacity: .5; cursor: not-allowed; }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.switch input { width: 20px; height: 20px; accent-color: var(--volt); flex: none; margin-top: 1px; }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; min-height: 46px; border-bottom: 1px solid var(--line); cursor: pointer; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--volt); }
.f > .lbl { margin-bottom: 6px; }
label.f { margin-bottom: 10px; }
.menu-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--volt-soft); color: var(--volt); flex: none; }
.menu-ic .ic { width: 19px; height: 19px; }

/* ---------- Buyurtmalar ---------- */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 3px; gap: 2px; margin-bottom: 14px; }
.seg-i { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .84rem; color: var(--muted); padding: 7px 14px; border-radius: 11px; cursor: pointer;
  min-height: 36px; display: inline-flex; align-items: center; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg-i.on { background: var(--surface-solid); color: var(--text); box-shadow: 0 2px 0 var(--key-edge), 0 6px 14px -8px rgba(10,14,60,.4); }
.seg.sm { margin: 0; } .seg.sm .seg-i { padding: 5px 9px; font-size: .76rem; min-height: 32px; }
.order-row { display: flex; gap: 12px; align-items: center; color: var(--text); padding: 12px 14px !important; }
.order-ic { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--volt-soft); color: var(--volt); }
.end-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.timeline { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); padding-bottom: 14px; position: relative; font-size: .9rem; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line-2); border-radius: 2px; }
.timeline li.done:not(:last-child)::after { background: var(--signal); }
.tl-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; background: var(--surface-solid); }
.tl-dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.timeline li.done { color: var(--text); } .timeline li.done .tl-dot { background: var(--signal); border-color: var(--signal); color: #fff; }
.timeline li.on { color: var(--text); font-weight: 700; } .timeline li.on .tl-dot { background: var(--volt); border-color: var(--volt); color: #fff; box-shadow: 0 0 0 5px var(--volt-soft); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--volt) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.olist { list-style: none; padding: 0; margin: 0 0 10px; }
.olist li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: .9rem; }
.olist a { color: var(--text); font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; } .actions .btn { flex: 1 1 150px; }
.alert { padding: 12px 14px; border-radius: 16px; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; color: inherit; font-size: .9rem; }
.alert.err { background: var(--danger-soft); color: var(--danger); } .alert.warn { background: var(--amber-soft); color: var(--amber); }
.due-banner small { opacity: .85; font-weight: 500; }
.stars-in { display: flex; gap: 4px; } .stars-in button { appearance: none; border: 0; background: transparent; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--line-2); border-radius: 12px; transition: transform .2s var(--spring), color .15s; }
.stars-in button .ic { width: 30px; height: 30px; } .stars-in button.on { color: #FFB020; transform: scale(1.12); } .stars-in button.on .ic { fill: currentColor; }
.stars { display: inline-flex; gap: 1px; color: var(--line-2); } .stars .on { color: #FFB020; } .stars .ic { width: 16px; height: 16px; } .stars .on .ic { fill: currentColor; }
/* Buyurtma berildi — bayram holati */
.done-card { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 28px 18px 22px !important;
  background: var(--stage-bg) !important; border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--line)) !important; }
.done-card::before { content: ''; position: absolute; z-index: -1; width: 320px; height: 320px; left: 50%; top: -130px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 35%, transparent), transparent); }
.done-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2BE3A4, #0E9F6E); color: #fff;
  box-shadow: 0 0 0 10px var(--signal-soft), 0 16px 34px -10px #0E9F6E; position: relative; }
.done-ic::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--signal); animation: ring 1.6s var(--ease) .3s 2 backwards; opacity: 0; }
@keyframes ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
.done-ic .ic { width: 38px; height: 38px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 0; animation: tick .6s var(--ease) .35s backwards; }
@keyframes tick { from { stroke-dashoffset: 30; } }
.done-t { font: 700 1.2rem/1.2 var(--display); letter-spacing: -.02em; margin-top: 8px; }
.done-card .btn { margin-top: 6px; }

/* ---------- Profil ---------- */
.guest { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 26px 18px !important; background: var(--stage-bg) !important; }
.guest .ic.big-ic { color: #fff; }
.guest-ic { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow); margin-bottom: 4px; }
.user-card { display: flex; gap: 14px; align-items: center; position: relative; overflow: hidden; isolation: isolate; background: var(--stage-bg) !important; padding: 16px !important; }
.user-card::after { content: ''; position: absolute; z-index: -1; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--plasma) 30%, transparent), transparent); }
.avatar { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font: 700 1.4rem var(--display); color: #fff; background: var(--grad); flex: none;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.35); text-transform: uppercase; }
.user-card .row.gap-s { margin-top: 6px; flex-wrap: wrap; }
.user-card .icon-btn { background: var(--surface-solid); border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 14px; }
.hist-line { margin-top: 6px; }
.hist-line:not(:empty) { animation: rise .3s var(--ease) backwards; }
.bal-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; color: var(--text); padding: 12px !important; }
.bal-strip > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.bal-strip small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.bal-strip b { font: 700 .82rem var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-strip .debt b { color: var(--amber); }
.usta-cta { display: flex; gap: 12px; align-items: center; color: var(--text); background: linear-gradient(135deg, var(--solder-soft), var(--volt-soft)) !important; }
.usta-cta small { display: block; color: var(--muted); } .usta-cta > .ic:first-child { color: var(--solder); width: 28px; height: 28px; }
.bot-card { display: flex; gap: 12px; align-items: center; color: var(--text); }
.bot-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff; flex: none; box-shadow: 0 8px 18px -8px #229ED9; }
.bot-card.on .bot-ic { background: linear-gradient(135deg, #2BE3A4, #0E9F6E); }
.menu { padding: 4px 14px !important; }
.menu-i { display: flex; align-items: center; gap: 12px; min-height: 56px; color: var(--text); border-bottom: 1px solid var(--line); flex-wrap: wrap; padding: 6px 0; }
.menu-i:last-child { border-bottom: 0; }
.menu-i .grow { font-weight: 600; }
.key .key-badge { position: absolute; right: 10px; top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 3px 0 var(--key-edge), 0 12px 22px -18px rgba(10,14,60,.5); min-width: 0; }
.tile::before { content: ''; position: absolute; right: -24px; top: -24px; width: 70px; height: 70px; border-radius: 50%; background: var(--volt-soft); }
.tile small { color: var(--muted); font-size: .74rem; position: relative; } .tile b { font: 700 1.05rem var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; position: relative; overflow-wrap: anywhere; }
.tile.warn { border-color: color-mix(in srgb, var(--amber) 60%, var(--line)); } .tile.warn b { color: var(--amber); } .tile.warn::before { background: var(--amber-soft); }
.tile.err { border-color: color-mix(in srgb, var(--danger) 60%, var(--line)); } .tile.err b { color: var(--danger); } .tile.err::before { background: var(--danger-soft); }
.tile.wide { margin-top: 4px; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--signal), var(--amber), var(--danger)); background-size: 300% 100%; border-radius: 999px; }
.ledger { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ledger li { display: flex; gap: 10px; align-items: center; padding: 12px 14px !important; }
.amt { font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; } .amt.pos { color: var(--signal); } .amt.neg { color: var(--danger); }
.intro { display: flex; gap: 12px; align-items: flex-start; } .intro > .ic { color: var(--solder); width: 28px; height: 28px; } .intro p { margin: 0; }
.special-form textarea.input { min-height: 70px; }
.offer { display: flex; gap: 16px; flex-wrap: wrap; background: var(--solder-soft); border-radius: 14px; padding: 10px 14px; margin-top: 8px; }
.offer > div { display: flex; flex-direction: column; } .offer small { color: var(--muted); }
.notif { position: relative; }
.notif.new { border-left: 4px solid var(--volt) !important; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .benefits li { display: flex; gap: 10px; align-items: center; }
.benefits .ic { color: #fff; background: var(--signal); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; }
.contact-card { display: grid; gap: 12px; } .contact-who { display: flex; gap: 14px; align-items: center; }
.contact-who > .ic { color: #fff; width: 52px; height: 52px; padding: 13px; border-radius: 18px; background: var(--grad); box-shadow: var(--glow); }
.contact-who p { margin: 2px 0 0; }
.contact-btns { display: flex; gap: 10px; flex-wrap: wrap; } .contact-btns .btn { flex: 1 1 170px; min-height: 50px; }
.track-card .contact-who > .ic { background: var(--hot); box-shadow: var(--glow-hot); }
.branch { display: grid; gap: 6px; } .branch a { color: var(--volt); }
.contact-line { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--muted); font-size: .9rem; } .contact-line .ic { color: var(--volt); }

/* ---------- Usta ---------- */
.ref-card h2 { display: flex; gap: 8px; align-items: center; } .ref-code { font-family: var(--mono); font-size: 1.15rem; font-weight: 800; letter-spacing: .1em; padding: 8px 14px;
  border: 2px dashed var(--solder); border-radius: 12px; color: var(--solder); background: var(--solder-soft); }
.ref-code.sm { font-size: .95rem; padding: 2px 8px; }
.freq { padding: 10px 14px !important; }
.job { display: grid; gap: 8px; }
.job-money { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; }
.pick-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pick-list button { appearance: none; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--surface-solid); border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; min-height: 46px; }
.pick-list li:last-child button { border-bottom: 0; } .pick-list button:hover { background: var(--surface-2); }
.calc-out { display: grid; gap: 8px; }
.say { text-align: center; padding: 16px; border-radius: 20px; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.say small { display: block; opacity: .9; } .say b { font: 700 1.8rem var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.guide h2 { margin-bottom: 10px; }

/* ---------- Bo'sh holat / skelet ---------- */
.empty { padding: 36px 18px; }
.empty.card { display: grid; justify-items: center; gap: 10px; text-align: center; }
.empty p { margin: 0; max-width: 28em; color: var(--muted); }
.empty-t { font: 600 1.05rem var(--display); color: var(--text); letter-spacing: -.01em; }
.empty-ic { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--glow);
  transform: rotate(-8deg); animation: emptyFloat 4s ease-in-out infinite; margin-bottom: 6px; position: relative; }
.empty-ic::after { content: ''; position: absolute; inset: -8px; border-radius: 34px; border: 1.5px dashed color-mix(in srgb, var(--volt) 40%, transparent); }
@keyframes emptyFloat { 50% { transform: rotate(-3deg) translateY(-6px); } }
.empty-ic .ic { width: 38px; height: 38px; stroke-width: 1.6; }
.empty .btn { margin-top: 6px; }
.skel-page { display: grid; gap: 12px; }
.skel-card { display: grid; gap: 8px; padding: 0 0 12px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface-solid); }
.skel-card .skel { border-radius: 8px; margin: 0 12px; }
.skel-card .sk-img { aspect-ratio: 1 / .78; border-radius: 0; margin: 0; }
.skel-card .sk-l { height: 12px; width: 78%; } .skel-card .sk-s { height: 18px; width: 50%; }
.boot { display: grid; gap: 12px; }
.skel-hero { height: 330px; border-radius: 30px; }
#recent-orders:not(:empty) { margin-bottom: 12px; } #due:empty { display: none; } #due .alert { margin: 12px 0 0; }

/* Keng ekran */
@media (min-width: 900px) {
  .tabbar { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .part-media, .banner { transform: none !important; }
  .hero-copy > *, .stage, .stage .ph3d, .ph-key, .buybar { animation: none !important; opacity: 1 !important; }
  .tab-blob { transition: none !important; }
}
.model-key { min-height: 78px; gap: 8px; padding-right: 12px; }
.model-key .key-t { font-size: .95rem; }
.model-key .key-txt .key-s { margin: 0 0 1px; font-size: .72rem; }
.order-row .price { font-size: .92rem; white-space: nowrap; }
.order-row .grow { min-width: 0; }
.order-row .badge { flex: none; }
#view .empty.card { padding: 34px 18px 28px; }
/* Tungi rejimda volt→plasma tugmalarida oq matn o'qilishi uchun to'qroq gradient */
.btn.primary, .chip.on, .chip[aria-pressed="true"], .hero-go, .say { background: var(--blob, var(--grad)); }

/* ================= 4-raund: ish quroli uslubi (B2B do'kon, arzon Android uchun yengil) ================= */
/* Pastki menyu: 5 ta tab, tomchi o'rniga sokin indikator */
.tabbar-in { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tab-blob { width: 20%; transition: transform .22s ease; }
.tab-blob::before, .tab-blob::after { inset: 4px 6px; border-radius: 12px; box-shadow: none; }
.tab-blob.moving::before, .tab-blob.moving::after { animation: none; }
.tab { font-size: .64rem; }
.tab .ic { width: 22px; height: 22px; transition: none; }
/* Og'ir effektlar do'konda o'chiq: qiyshayish, kirish animatsiyalari, porlash */
body [data-tilt], .pcard, .key { transform: none !important; }
.stagger > *, .key, .pop-in { animation: none !important; }
.add-btn { box-shadow: none; width: 38px; height: 38px; }
/* Qarz banneri: qizil, yopib bo'lmaydi */
.debt-slot:empty { display: none; }
.debt-alert { margin: 4px 0 12px; border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); font-size: .88rem; }
.debt-alert b { font-weight: 600; } .debt-alert small { opacity: .85; margin-top: 2px; }
/* Bosh sahifa qidiruvi */
.home-search { margin: 4px 0 14px; }
.home-search .hero-search { margin: 0; }
/* Brend panjarasi (3 ustun, ixcham plitka) */
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .bgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.btile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 600; text-align: center; }
.btile-m { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--volt-soft); color: var(--volt); font-weight: 700; font-size: 1rem; }
.btile-m .ic { width: 18px; height: 18px; }
.btile-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.btile.more { color: var(--volt); }
.btile:active { background: var(--volt-soft); }
/* Qism turlari: gorizontal chiplar */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cchip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: .84rem; font-weight: 500; min-height: 40px; }
.cchip .ic { width: 18px; height: 18px; color: var(--volt); }
/* Tez harakatlar: 4 ustunli ikonka qatori */
.quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.qbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: .74rem; text-align: center; line-height: 1.2; }
.qbtn-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--line); color: var(--volt); }
.qbtn-ic .ic { width: 22px; height: 22px; }
/* Karta: savatdagi son stepperi va «Bo'lsa olardim» */
.pact { position: relative; z-index: 4; flex: none; display: flex; align-items: center; }
.cstep { display: inline-flex; align-items: center; border-radius: 999px; background: var(--solder); color: #fff; height: 38px; }
.cstep-b { appearance: none; border: 0; background: transparent; color: inherit; width: 34px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.cstep-b:disabled { opacity: .45; } .cstep-b .ic { width: 18px; height: 18px; }
.cstep output { min-width: 18px; text-align: center; font-weight: 700; font-size: .9rem; }
.wish-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--volt); text-decoration: none; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.wish-btn .ic { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .tab-blob { transition: none; } }

/* ===== Qism sahifasi (Aros tuzilishi, o'z palitramiz) ===== */
body.on-part .topbar { display: none; }
/* Mahsulot sahifasida pastki menyu yashiriladi — xarid paneli ekran tagida turadi */
body.on-part .tabbar { display: none; }
body.on-part .buybar { bottom: calc(12px + env(safe-area-inset-bottom)); }
body.on-part main, body.on-part #app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.pd-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; margin: 0 -16px 10px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: var(--ink); border-bottom: 1px solid var(--line); }
.pd-top .icon-btn { width: 42px; height: 42px; border-radius: 14px; flex: none; }
.pd-top-t { flex: 1; min-width: 0; margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fav[aria-pressed="true"] { color: var(--danger); } #fav[aria-pressed="true"] .ic { fill: currentColor; }
.pd { display: grid; gap: 14px; }
@media (min-width: 820px) { .pd { grid-template-columns: 1fr 1fr; align-items: start; } }
.pd-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-height: 56vh; padding: 12px; border: 1px solid var(--line);
  border-radius: 22px; background: #fff; overflow: hidden; cursor: zoom-in; font: inherit; color: #5B6290; }
.pd-media:disabled { cursor: default; }
.pd-media img { width: 100%; height: 100%; object-fit: contain; }
.pd-media .ph { width: 100%; height: 100%; display: grid; place-items: center; background: none; }
.pd-media .ph .ic { width: 34%; height: 34%; animation: none; }
.pd-media .demo-note { position: absolute; left: 10px; top: 10px; }
.pd-info { display: grid; gap: 10px; min-width: 0; }
.pd-price { display: grid; gap: 4px; }
.pd-prow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pd-big { font-size: 1.9rem; line-height: 1.1; }
.pd-usd { padding: 3px 10px; border-radius: 999px; background: var(--signal-soft); color: var(--signal); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.pd-off { padding: 2px 7px; border-radius: 8px; background: var(--danger); color: #fff; font-weight: 700; font-size: .75rem; }
.pd-left { padding: 2px 8px; border-radius: 8px; background: var(--solder-soft); color: var(--solder); font-weight: 700; font-size: .75rem; }
.pd-name { margin: 0; font-weight: 600; line-height: 1.35; }
.pd-name .muted { font-weight: 500; font-size: .85rem; }
.pd-rate { display: flex; align-items: center; gap: 2px; color: var(--line-2); } .pd-rate .ic { width: 18px; height: 18px; }
.pd-rate span { margin-left: 6px; }
.pd-lbl { font-size: .9rem; color: var(--muted); } .pd-lbl b { color: var(--text); }
.pd-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-col { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid var(--surface-solid); box-shadow: 0 0 0 1px var(--line-2); padding: 0; cursor: pointer; }
.pd-col[aria-checked="true"] { box-shadow: 0 0 0 2px var(--volt); }
.pd-vrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: 0 -2px; overscroll-behavior-x: contain; scrollbar-width: none; }
.pd-vrow::-webkit-scrollbar { display: none; }
.pd-v { position: relative; flex: 0 0 auto; min-width: 128px; max-width: 170px; scroll-snap-align: start; display: grid; gap: 2px; text-align: left; padding: 10px 12px;
  border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface-solid); color: var(--text); font: inherit; cursor: pointer; }
.pd-v[aria-checked="true"] { border-color: var(--volt); box-shadow: 0 0 0 1px var(--volt); background: var(--volt-soft); }
.pd-v:focus-visible, .pd-col:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.pd-v .pd-off { position: absolute; top: -7px; right: 8px; }
.pd-vq { font-size: .92rem; } .pd-vs { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-vp { font-weight: 700; color: var(--solder); white-space: nowrap; } .pd-vp small { font-weight: 500; color: var(--muted); }
.pd-v .vdot { position: absolute; right: 10px; bottom: 10px; }
.pd-stock { display: grid; gap: 10px; }
.pd-st-h { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-br { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pd-br li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.pd-br li .ic { width: 16px; height: 16px; color: var(--muted); }
.pd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-two .btn { min-height: 48px; font-size: .88rem; }
.pd-bar { padding: 8px; gap: 10px; }
.pd-bar .qty { flex: none; }
.pd-bar .btn.buy { min-width: 0; flex-direction: column; gap: 0; line-height: 1.15; }
.pd-bar .btn.buy > .ic { display: none; }
.pd-bar-sum { font-size: .78rem; font-weight: 600; opacity: .9; }
.pd-zoom { position: fixed; inset: 0; z-index: 100; background: rgba(5,7,25,.92); display: grid; place-items: center; padding: 16px; }
.pd-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 12px; touch-action: pinch-zoom; }
.pd-zoom-x { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 12px; }
@media (prefers-reduced-motion: reduce) { .pd-bar { animation: none; } .pd-vrow { scroll-behavior: auto; } }
/* Mahsulot sahifasi: yuqoridagi savat belgisi va soni */
.pd-cart { position: relative; }
.pd-cart .tab-ic { position: relative; display: inline-flex; }
.pd-cart .tab-badge { position: absolute; top: -6px; right: -8px; }
