/* — mobil beýiklik: adres zolagy zynjyrlamasyny aýyrýar — */
@supports (height:100dvh){
  .app{min-height:100dvh}
  .auth{min-height:100dvh}
  #mkRoot{min-height:100dvh}
  .sheet,.mk-sheet{max-height:92dvh}
  .picker{height:82dvh}
}
/* — kademeli giriş animasiýasy (subtle) — */
@keyframes ahxRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
body[data-mode="shop"] #mkHome .mk-grid > .mk-card,
body[data-mode="shop"] #mkHome .mk-hs > *,
body[data-mode="shop"] #mkList .mk-grid > .mk-card,
body[data-mode="shop"] #mkList .mk-grid3 > *{
  animation:ahxRise .42s cubic-bezier(.2,.8,.2,1) both;
}
#mkHome .mk-grid>.mk-card:nth-child(2),#mkList .mk-grid>.mk-card:nth-child(2){animation-delay:.04s}
#mkHome .mk-grid>.mk-card:nth-child(3),#mkList .mk-grid>.mk-card:nth-child(3){animation-delay:.08s}
#mkHome .mk-grid>.mk-card:nth-child(4),#mkList .mk-grid>.mk-card:nth-child(4){animation-delay:.12s}
#mkHome .mk-grid>.mk-card:nth-child(5),#mkList .mk-grid>.mk-card:nth-child(5){animation-delay:.16s}
#mkHome .mk-grid>.mk-card:nth-child(n+6),#mkList .mk-grid>.mk-card:nth-child(n+6){animation-delay:.2s}
#hasapRoot #v-panel .grid2 > .stat{animation:ahxRise .4s cubic-bezier(.2,.8,.2,1) both}
#hasapRoot #v-panel .grid2 > .stat:nth-child(2){animation-delay:.05s}
#hasapRoot #v-panel .grid2 > .stat:nth-child(3){animation-delay:.1s}
#hasapRoot #v-panel .grid2 > .stat:nth-child(4){animation-delay:.15s}
#hasapRoot #v-panel .grid2 > .stat:nth-child(5){animation-delay:.2s}
#hasapRoot #v-panel .cars > .car{animation:ahxRise .4s cubic-bezier(.2,.8,.2,1) both}
#hasapRoot #v-panel .cars > .car:nth-child(2){animation-delay:.06s}
#hasapRoot #v-panel .cars > .car:nth-child(3){animation-delay:.12s}
/* — mikro-täsir: basyş — */
.btn:active,.mk-btn:active,.picker-field:active,.acct-item:active,.given-opt:active,.disclose:active{transform:scale(.985)}
.card.car:active,.card.lrow:active{transform:scale(.99)}
/* — pull-to-refresh görkeziji — */
#ahxPTR{position:fixed;top:0;left:50%;transform:translate(-50%,-46px);z-index:44;
  width:38px;height:38px;border-radius:50%;background:var(--surface);border:1px solid var(--line);
  box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .15s;pointer-events:none}
#ahxPTR svg{width:20px;height:20px;color:var(--accent)}
#ahxPTR.spin svg{animation:ahxSpin .8s linear infinite}
@keyframes ahxSpin{to{transform:rotate(360deg)}}
/* — başa dön düwmesi (Bazar) — */
#ahxTop{position:fixed;right:16px;z-index:45;
  bottom:calc(var(--mknav,68px) + 18px + env(safe-area-inset-bottom));
  width:44px;height:44px;border-radius:50%;background:var(--surface);border:1px solid var(--line);
  box-shadow:var(--shadow);color:var(--accent);display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;transform:translateY(12px) scale(.9);pointer-events:none;transition:.24s cubic-bezier(.2,.8,.2,1)}
#ahxTop.on{opacity:1;transform:none;pointer-events:auto}
#ahxTop:active{transform:scale(.9)}
#ahxTop svg{width:22px;height:22px}
/* — paýlaş düwmesi (ilan detaýy) — */
.ahx-share{flex:0 0 auto!important;width:54px!important;padding:0!important;
  display:flex;align-items:center;justify-content:center}
.ahx-share svg{width:20px;height:20px}
/* — bergi hatarynda çalt Jaň / WhatsApp — */
.ahx-debt-actions{display:flex;gap:8px;margin-top:11px}
.ahx-debt-actions a{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;
  text-decoration:none;font-weight:800;font-size:12.5px;padding:9px 10px;border-radius:11px;
  border:1px solid var(--line);background:var(--surface-2);color:var(--ink);transition:transform .12s}
.ahx-debt-actions a.call{color:var(--accent)}
.ahx-debt-actions a.wa{background:rgba(37,211,102,.1);border-color:rgba(37,211,102,.32);color:#128C4B}
[data-theme="dark"] .ahx-debt-actions a.wa{color:#3ddc84}
.ahx-debt-actions a svg{width:15px;height:15px}
.ahx-debt-actions a:active{transform:scale(.97)}
/* — Bazar: soňky gözlegler — */
.ahx-recent{padding:0 16px 12px;margin-top:-2px}
.ahx-recent-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.ahx-recent-h span{font-size:11.5px;font-weight:800;color:var(--ink-faint);text-transform:uppercase;letter-spacing:.09em}
.ahx-recent-h button{background:none;border:0;color:var(--accent);font-weight:800;font-size:12.5px;cursor:pointer;padding:2px 4px}
.ahx-recent-chips{display:flex;flex-wrap:wrap;gap:7px}
.ahx-recent-chips button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);
  background:var(--surface);color:var(--ink-soft);font-weight:700;font-size:12.5px;
  padding:7px 12px;border-radius:999px;cursor:pointer;transition:transform .12s}
.ahx-recent-chips button:active{transform:scale(.94)}
.ahx-recent-chips button svg{width:13px;height:13px;opacity:.55;stroke:currentColor;fill:none;stroke-width:2}

/* ══ TASARYM v2 · kompakt kartlar (mobil) ══ */
/* button-elementler reňki miras almaýar — garaňky temada gara ýazgy düzedişi */
#mkRoot .mk-card,#mkRoot .mk-seller,#mkRoot .mk-circ,#mkRoot .mk-ban{color:var(--ink)}
#mkRoot .mk-cn{color:var(--ink)}
#mkRoot .mk-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
#mkRoot .mk-card{width:clamp(142px,40vw,176px);border-radius:16px}
#mkRoot .mk-grid .mk-card{width:auto}
#mkRoot .mk-ph{aspect-ratio:16/11}
#mkRoot .mk-cb{padding:8px 10px 10px}
#mkRoot .mk-cn{font-size:13.5px;margin-bottom:2px}
#mkRoot .mk-cm{font-size:11.5px;margin-bottom:4px}
#mkRoot .mk-cp{font-size:14px}
#mkRoot .mk-fav{width:30px;height:30px}
#mkRoot .mk-fav svg{width:15px;height:15px}
#mkRoot .mk-vip{font-size:9px;padding:2.5px 6px;border-radius:5px}
@media(max-width:365px){#mkRoot .mk-grid{grid-template-columns:repeat(auto-fill,minmax(122px,1fr));gap:8px}}
/* VIP karusel — bir ekranda 3 ulag (arassa: at · ýyl · baha) */
#mkRoot .mk-track{gap:8px;padding-inline:12px}
#mkRoot .mk-slide{flex:0 0 calc((100% - 16px)/3);border-radius:15px;scroll-snap-align:start}
#mkRoot .mk-slide .mk-sph{aspect-ratio:3/4}
#mkRoot .mk-slide .mk-sinfo{padding:8px 9px}
#mkRoot .mk-slide .mk-sinfo .n{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mkRoot .mk-slide .mk-sinfo .m{font-size:10.5px;opacity:.82;margin-top:1px}
#mkRoot .mk-slide .mk-sinfo .pr{font-size:13px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mkRoot .mk-slide .mk-vip{font-size:8.5px;padding:2px 6px;top:7px;inset-inline-start:7px}
#mkRoot .mk-slide .mk-fav{width:27px;height:27px;top:5px;inset-inline-end:5px}
#mkRoot .mk-slide .mk-fav svg{width:14px;height:14px}
#mkRoot .mk-dots{display:none}
/* tegelekler — VIP bilen deň sütünler (diňe baş sahypadaky gorizontal hatarda) */
/* hakyky suratlar has aýdyň görünsin */
.ahx-banstack .mk-ad img.ld{opacity:.88}
.ahx-banstack .mk-adt{background:linear-gradient(90deg,rgba(7,35,28,.9) 22%,rgba(7,35,28,.04) 64%)}
#mkRoot .mk-ban .mk-bimg.ld{opacity:.72}
#mkRoot .mk-hs .mk-cl{font-size:11.5px}
#mkRoot .mk-hs .mk-cs{font-size:10px}
/* aşaky mahabat meýdanlary — "Mahabat meýdany" banner bilen deň ölçegde */
/* — sanaw akymynda mahabat bannerleri (7→15→7...) — */
#mkList .ahx-feed-ad{grid-column:1/-1;width:100%;aspect-ratio:21/8;min-height:112px;border-radius:18px}
#mkDetail .ahx-det-ad{display:block;margin:18px 0 4px;width:100%;aspect-ratio:21/8;min-height:132px;border-radius:20px}
.ahx-banstack{display:flex;flex-direction:column;gap:12px;padding:0 16px}
.ahx-banstack .mk-ad{width:100%;aspect-ratio:auto;min-height:142px;border-radius:22px}
.ahx-banstack .mk-adt b{font-size:17px}
.ahx-banstack .mk-adt i{font-size:13px}
/* dükan tegelekleri — hatarda takyk 5 sany, deň aralykly */
#mkRoot .mk-hs.ahx-five{gap:8px}
#mkRoot .mk-hs.ahx-five .mk-circ{width:calc((100% - 32px)/5)}
#mkRoot .mk-hs.ahx-five .mk-av{width:86%;max-width:56px}
#mkRoot .mk-hs.ahx-five .mk-cl{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mkRoot .mk-hs.ahx-five .mk-cs{display:none}
/* — giriş animasiýasy (grid kartlary, kademeli) — */
#mkRoot .mk-grid>*{animation:ahxRise .34s cubic-bezier(.2,.8,.2,1) both}
#mkRoot .mk-grid>*:nth-child(2){animation-delay:.04s}
#mkRoot .mk-grid>*:nth-child(3){animation-delay:.08s}
#mkRoot .mk-grid>*:nth-child(4){animation-delay:.12s}
#mkRoot .mk-grid>*:nth-child(5){animation-delay:.16s}
#mkRoot .mk-grid>*:nth-child(6){animation-delay:.2s}
body.ahx-typing #mkRoot .mk-grid>*{animation:none!important}
/* — basyşda surata ýumşak zoom — */
#mkRoot .mk-ph img,#mkRoot .mk-sph img{transition:transform .4s cubic-bezier(.2,.8,.2,1),opacity .45s}
#mkRoot .mk-card:active .mk-ph img{transform:scale(1.06)}
/* — ýapyşykly gözleg (sanaw görnüşi) — */
#mkList .mk-sb{position:sticky;top:0;z-index:24;padding-top:10px;margin-top:-10px;
  background:linear-gradient(180deg,var(--bg) 80%,transparent)}
/* — gözlegde arassala (✕) — */
.ahx-qclear{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:26px;height:26px;
  border-radius:50%;background:var(--line-2);border:0;color:var(--ink-soft);font-size:11px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}
.ahx-qclear:active{transform:translateY(-50%) scale(.88)}
.mk-si:has(.ahx-qclear) input{padding-right:42px}
/* — grid/setir görnüş çalşygy — */
#mkRoot .mk-rc{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ahx-vt{flex:0 0 auto;width:34px;height:30px;border-radius:9px;background:var(--surface);
  border:1px solid var(--line);color:var(--ink-soft);display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:transform .12s;box-shadow:var(--shadow-s)}
.ahx-vt:active{transform:scale(.9)}
.ahx-vt svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linejoin:round}
#mkRoot .mk-grid.ahx-rows{display:flex;flex-direction:column;gap:9px}
#mkRoot .mk-grid.ahx-rows .mk-card{flex-direction:row;width:100%;border-radius:15px}
#mkRoot .mk-grid.ahx-rows .mk-ph{width:126px;min-width:126px;aspect-ratio:4/3}
#mkRoot .mk-grid.ahx-rows .mk-cb{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:8px 12px}
#mkRoot .mk-grid.ahx-rows .mk-cn{font-size:14px}
#mkRoot .mk-grid.ahx-rows .mk-cp{font-size:14.5px}

/* ══ MODERN SAÝLAÝJY (native select ýerine) ══ */
select[data-ahxsel]{display:none!important}
.ahx-sel{display:flex;align-items:center;gap:11px;width:100%;background:var(--surface);
  border:1px solid var(--line);border-radius:13px;padding:9px 12px;cursor:pointer;text-align:left;
  min-height:48px;box-shadow:var(--shadow-s);font-family:inherit;transition:border-color .15s,transform .12s}
.ahx-sel:active{border-color:var(--accent);transform:scale(.995)}
.ahx-sel .av{width:32px;height:32px;min-width:32px;border-radius:9px;background:var(--accent-soft);
  color:var(--accent-d);display:grid;place-items:center;font-weight:800;font-size:14px;text-transform:uppercase}
.ahx-sel.empty .av{background:var(--line-2);color:var(--ink-faint)}
.ahx-sel .av.sw{border-radius:50%;border:1.5px solid var(--line)}
.ahx-sel .tx{flex:1;min-width:0;font-weight:700;font-size:15px;color:var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ahx-sel.empty .tx{color:var(--ink-faint);font-weight:600}
.ahx-sel>svg{color:var(--ink-faint);flex:0 0 auto;transition:transform .2s}
/* — saýlaýjy sahypajygy — */
.ahx-pk-scrim{position:fixed;inset:0;background:rgba(19,32,28,.52);z-index:125;opacity:0;
  pointer-events:none;transition:.2s}
.ahx-pk-scrim.on{opacity:1;pointer-events:auto}
.ahx-pk{position:fixed;left:50%;bottom:0;transform:translate(-50%,102%);width:100%;
  max-width:var(--mkw,600px);z-index:126;background:var(--bg);border-radius:24px 24px 0 0;
  max-height:76vh;display:flex;flex-direction:column;visibility:hidden;
  transition:transform .3s cubic-bezier(.32,.72,0,1),visibility .3s;
  box-shadow:0 -12px 44px rgba(0,0,0,.25)}
.ahx-pk.on{transform:translate(-50%,0);visibility:visible}
.ahx-pk-h{padding:8px 16px 12px;border-bottom:1px solid var(--line)}
.ahx-pk-grab{width:38px;height:4px;border-radius:99px;background:var(--line);margin:2px auto 12px}
.ahx-pk-tr{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ahx-pk-tr b{font-size:17px;font-weight:800;letter-spacing:-.01em}
.ahx-pk-x{width:32px;height:32px;border-radius:10px;background:var(--surface);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--ink-soft);cursor:pointer;font-size:13px}
.ahx-pk-s{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);
  border-radius:13px;padding:0 13px;margin-top:12px}
.ahx-pk-s svg{width:16px;height:16px;stroke:var(--ink-faint);fill:none;stroke-width:2;flex:0 0 auto}
.ahx-pk-s input{border:0;background:transparent;padding:12px 0;font-size:16px;color:var(--ink);
  outline:none;box-shadow:none;flex:1;min-width:0;font-family:inherit}
.ahx-pk-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:8px 10px calc(18px + env(safe-area-inset-bottom))}
.ahx-pk-it{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border-radius:12px;
  background:none;border:0;cursor:pointer;text-align:left;font-size:15px;font-weight:700;
  color:var(--ink);font-family:inherit;transition:background .12s}
.ahx-pk-it:active{background:var(--surface)}
.ahx-pk-it.on{background:var(--accent-soft)}
.ahx-pk-it .av{width:32px;height:32px;min-width:32px;border-radius:9px;background:var(--surface-2);
  border:1px solid var(--line);display:grid;place-items:center;font-weight:800;font-size:13.5px;
  color:var(--ink-soft);text-transform:uppercase}
.ahx-pk-it.on .av{background:var(--accent);border-color:transparent;color:#fff}
.ahx-pk-it .av.sw{border-radius:50%;border:1.5px solid var(--line)}
.ahx-pk-it .ck{margin-left:auto;color:var(--accent);opacity:0;flex:0 0 auto}
.ahx-pk-it.on .ck{opacity:1}
.ahx-pk-it .ck svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.6;
  stroke-linecap:round;stroke-linejoin:round;display:block}
.ahx-pk-none{text-align:center;padding:28px 16px;color:var(--ink-faint);font-size:13.5px;font-weight:600}

/* ══ HAMBURGER MENÝU (Bazar) ══ */
.ahx-menu{position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);width:38px;height:38px;
  border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--surface);
  border:1px solid var(--line);box-shadow:var(--shadow-s);color:var(--ink);cursor:pointer;transition:transform .12s}
#mkRoot[data-sub="1"] .ahx-menu{display:none}
#mkRoot .mk-brand{display:none}
.ahx-menu:active{transform:translateY(-50%) scale(.9)}
.ahx-menu svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round}
.ahx-dr-scrim{position:fixed;inset:0;background:rgba(19,32,28,.5);z-index:118;opacity:0;
  pointer-events:none;transition:.22s}
.ahx-dr-scrim.on{opacity:1;pointer-events:auto}
.ahx-dr{position:fixed;top:0;bottom:0;inset-inline-start:0;width:min(80vw,320px);z-index:119;
  background:var(--bg);transform:translateX(-105%);visibility:hidden;
  transition:transform .3s cubic-bezier(.32,.72,0,1),visibility .3s;
  box-shadow:12px 0 44px rgba(0,0,0,.22);display:flex;flex-direction:column;
  border-radius:0 22px 22px 0}
.ahx-dr.on{transform:none;visibility:visible}
.ahx-dr-h{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:calc(env(safe-area-inset-top) + 14px) 16px 13px;border-bottom:1px solid var(--line)}
.ahx-dr-b{display:flex;align-items:center;gap:9px}
.ahx-dr-b img{border-radius:22%;display:block}
.ahx-dr-b .wm{font-weight:800;font-size:18px;letter-spacing:-.02em}
.ahx-dr-b .wm .a{color:var(--accent)} .ahx-dr-b .wm .g{color:var(--gold)}
.ahx-dr-x{width:32px;height:32px;border-radius:10px;background:var(--surface);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--ink-soft);cursor:pointer;font-size:13px}
.ahx-dr-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:10px 10px calc(16px + env(safe-area-inset-bottom))}
.ahx-dr-it{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border-radius:13px;
  background:none;border:0;cursor:pointer;text-align:left;font-family:inherit;transition:background .12s}
.ahx-dr-it:active{background:var(--surface)}
.ahx-dr-it .ic{width:36px;height:36px;min-width:36px;border-radius:11px;background:var(--accent-soft);
  color:var(--accent);display:grid;place-items:center}
.ahx-dr-it.gold .ic{background:linear-gradient(135deg,#D2B06A,#9C7734);color:#fff}
.ahx-dr-it .ic svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.ahx-dr-it .tx{flex:1;min-width:0}
.ahx-dr-it .t1{display:block;font-weight:800;font-size:14.5px;color:var(--ink)}
.ahx-dr-it .t2{display:block;font-size:11.5px;color:var(--ink-faint);margin-top:1px}
.ahx-dr-it .ch{color:var(--ink-faint);flex:0 0 auto}
.ahx-dr-it .ch svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round}
.ahx-dr-div{height:1px;background:var(--line);margin:8px 12px}
/* — sheet sürkeme wagtynda geçişi öçürmek üçin kömekçi — */
.ahx-drag{transition:none!important}
/* — sanlar üýtgände ýumşak — */
#hasapRoot #v-panel .hero .big,#hasapRoot #v-panel .stat .v{will-change:contents}
@media(prefers-reduced-motion:reduce){
  #mkHome .mk-grid>.mk-card,#mkHome .mk-hs>*,#mkList .mk-grid>*,#mkList .mk-grid3>*,
  #hasapRoot #v-panel .grid2>.stat,#hasapRoot #v-panel .cars>.car{animation:none!important}
}