/* ============================================================
   MIRAJ FOTOSTUDIO — dizayn tizimi

   Brend: qora, tilla, krem. Studiya pavilyonining o'zi —
   qorong'i fon, iliq yorug'lik.

   Tilla rang faqat ikki ish qiladi: asosiy amalni belgilaydi
   va tanlangan holatni ko'rsatadi. Bezak uchun ishlatilmaydi,
   aks holda arzon ko'rinadi.
   ============================================================ */

:root {
  /* --- brend --- */
  --qora:      #14120F;
  --qora-2:    #1D1A16;
  --qora-3:    #2A2620;
  --tilla:     #C9A227;
  --tilla-och: #E3C766;
  --tilla-fon: #FAF3DF;

  /* --- sirtlar --- */
  --qogoz:     #F4F2EE;
  --sirt:      #FFFFFF;
  --sirt-2:    #FAF9F7;
  --chiziq:    #E6E2DB;
  --chiziq-och:#F0EDE8;

  /* --- matn --- */
  --siyoh:     #14120F;
  --siyoh-80:  #4A453D;
  --xira:      #7A736A;
  --xira-och:  #A69E93;

  /* --- ma'no --- */
  --yashil:     #17825C;
  --yashil-fon: #E4F2EC;
  --qizil:      #C0392B;
  --qizil-fon:  #FBEAE8;
  --kok:        #2F6BAF;
  --kok-fon:    #E8F0F8;
  --sariq-fon:  #FBF1DA;

  --r-katta: 16px;
  --r:       12px;
  --r-mayda: 9px;
  --soat-h:  60px;

  --matn:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brend: 'Cormorant Garamond', Georgia, serif;

  --soya-1: 0 1px 2px rgba(20, 18, 15, .05);
  --soya-2: 0 6px 20px rgba(20, 18, 15, .10);
  --soya-3: 0 -10px 40px rgba(20, 18, 15, .22);
}

body.qora {
  --qogoz:     #14120F;
  --sirt:      #1D1A16;
  --sirt-2:    #232019;
  --chiziq:    #332E26;
  --chiziq-och:#282419;

  --siyoh:     #F4F2EE;
  --siyoh-80:  #C4BDB2;
  --xira:      #948C81;
  --xira-och:  #6E675E;

  --tilla-fon: #2C2412;
  --yashil:     #3DBF93;
  --yashil-fon: #10281F;
  --qizil:      #E57565;
  --qizil-fon:  #2E1714;
  --kok:        #6C9BF0;
  --kok-fon:    #151F2E;
  --sariq-fon:  #2C2412;

  --soya-1: none;
  --soya-2: 0 6px 20px rgba(0, 0, 0, .45);
  --soya-3: 0 -10px 40px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--qogoz);
  color: var(--siyoh);
  font-family: var(--matn);
  font-size: 15px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
/* Tugmalar va maydonlar matn rangini meros qilib oladi.
   Bo'lmasa brauzer o'zining qora rangini qo'yadi va qorong'i
   rejimda yozuv ko'rinmay qoladi. */
button, input, textarea, select { font-family: inherit; color: inherit; }
.yashirin { display: none !important; }
:focus-visible { outline: 2px solid var(--tilla); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   YUKLASH — brend paydo bo'ladigan yagona joy
   ============================================================ */
.parda {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: var(--qora); padding: 32px;
}
.spinner {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, .22);
  border-top-color: var(--tilla);
  animation: aylan .8s linear infinite;
}
@keyframes aylan { to { transform: rotate(360deg); } }

.xato-quti {
  max-width: 300px; text-align: center;
  font-size: 15px; color: #C4BDB2; line-height: 1.55;
}
.xato-quti p { margin: 0; }

/* ============================================================
   ILOVA KARKASI
   ============================================================ */
.ilova {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}

.bosh {
  flex: 0 0 auto;
  background: var(--qora);
  color: #F4F2EE;
  padding: max(10px, env(safe-area-inset-top)) 16px 14px;
}
.bosh-ram { max-width: 560px; margin: 0 auto; position: relative; }

.bosh-qator {
  display: flex; align-items: center; gap: 10px;
}

/* rasm faqat bosh sahifada ko'rinadi */
.banner-rasm { display: none; }
.bosh-nom {
  flex: 1; min-width: 0;
}
.bosh-nom h1 {
  margin: 0; font-size: 19px; font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bosh-nom p {
  margin: 2px 0 0; font-size: 12.5px;
  color: rgba(244, 242, 238, .55);
}
.bosh-belgi {
  font-family: var(--brend);
  font-size: 22px; color: var(--tilla);
  letter-spacing: .2em; padding-left: .2em;
}
.bosh-tugma {
  width: 36px; height: 36px; flex: 0 0 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(244, 242, 238, .14);
  border-radius: 10px;
  background: rgba(244, 242, 238, .06);
  color: #F4F2EE; font-size: 15px; cursor: pointer;
}
.bosh-tugma:active { background: rgba(244, 242, 238, .14); }

.sahifa {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 100px;
}
.sahifa-ich { max-width: 560px; margin: 0 auto; }

/* ============================================================
   PASTKI NAVIGATSIYA
   ============================================================ */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: var(--sirt);
  border-top: 1px solid var(--chiziq);
  box-shadow: 0 -2px 12px rgba(20, 18, 15, .05);
}
.nav-ich { display: flex; flex: 1; max-width: 560px; margin: 0 auto; }
.nav-tugma {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 0; background: none; cursor: pointer;
  color: var(--xira); padding: 6px 0 4px;
  border-radius: var(--r-mayda);
}
.nav-tugma span { font-size: 17px; line-height: 1; opacity: .75; }
.nav-tugma small { font-size: 10px; font-weight: 600; letter-spacing: -.01em; }
.nav-tugma.faol { color: var(--siyoh); }
.nav-tugma.faol span { opacity: 1; }
.nav-tugma.faol small { color: var(--tilla); }

/* ============================================================
   KARTALAR
   ============================================================ */
.karta {
  background: var(--sirt);
  border: 1px solid var(--chiziq);
  border-radius: var(--r-katta);
  box-shadow: var(--soya-1);
}

.stat-setka {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 12px;
}
.stat {
  background: var(--sirt);
  border: 1px solid var(--chiziq);
  border-radius: var(--r-katta);
  padding: 13px 14px;
  box-shadow: var(--soya-1);
}
.stat-bosh { display: flex; align-items: flex-start; gap: 8px; }
.stat-yorliq {
  flex: 1; font-size: 12px; color: var(--xira);
  font-weight: 600; line-height: 1.35;
}
.stat-belgi {
  flex: 0 0 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px; font-size: 13px;
  background: var(--chiziq-och);
}
.stat-belgi.tilla  { background: var(--tilla-fon); }
.stat-belgi.yashil { background: var(--yashil-fon); }
.stat-belgi.qizil  { background: var(--qizil-fon); }
.stat-belgi.kok    { background: var(--kok-fon); }
.stat-son {
  font-size: 25px; font-weight: 800;
  letter-spacing: -0.03em; margin-top: 7px;
}
.stat-son.mayda { font-size: 19px; }
.stat-izoh { font-size: 11.5px; color: var(--xira-och); margin-top: 2px; }

/* katta tushum kartasi */
.tushum-karta {
  background: var(--qora); color: #F4F2EE;
  border-radius: var(--r-katta);
  padding: 17px 18px;
  margin-bottom: 12px;
  box-shadow: var(--soya-2);
  position: relative; overflow: hidden;
}
.tushum-karta .yorliq {
  font-size: 12.5px; color: rgba(244, 242, 238, .55); font-weight: 600;
}
.tushum-karta .son {
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.035em; margin-top: 5px;
}
.tushum-karta .son em {
  font-size: 15px; font-style: normal; font-weight: 600;
  color: rgba(244, 242, 238, .5); margin-left: 3px;
}

.oqim {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  background: var(--yashil-fon); color: var(--yashil);
}
.oqim.past { background: var(--qizil-fon); color: var(--qizil); }
.tushum-karta .oqim {
  position: absolute; top: 17px; right: 18px;
  background: rgba(23, 130, 92, .22); color: #6FD9AF;
}
.tushum-karta .oqim.past { background: rgba(192, 57, 43, .22); color: #F0958A; }

/* ============================================================
   BO'LIM SARLAVHASI
   ============================================================ */
.bolim-sarlavha {
  display: flex; align-items: baseline; gap: 8px;
  margin: 20px 2px 10px;
}
.bolim-sarlavha h2 {
  flex: 1; margin: 0;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em;
}
.bolim-sarlavha .qosh {
  font-size: 12.5px; color: var(--xira); font-weight: 600;
}

/* ============================================================
   ZAKAZ QATORI
   ============================================================ */
.zakaz-qator {
  display: flex; gap: 11px;
  padding: 12px;
  background: var(--sirt);
  border: 1px solid var(--chiziq);
  border-radius: var(--r-katta);
  margin-bottom: 9px;
  cursor: pointer;
  box-shadow: var(--soya-1);
  transition: transform .1s ease;
}
.zakaz-qator:active { transform: scale(.99); }

.avatar {
  flex: 0 0 46px; height: 46px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
  color: #fff; letter-spacing: -0.02em;
}
.avatar.mayda { flex: 0 0 38px; height: 38px; font-size: 14px; border-radius: 10px; }

.zq-tana { flex: 1; min-width: 0; }
.zq-bosh { display: flex; align-items: center; gap: 7px; }
.zq-raqam { font-size: 11.5px; color: var(--xira); font-weight: 700; }
.zq-ism {
  font-size: 15px; font-weight: 700; letter-spacing: -0.015em;
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zq-tel { font-size: 12.5px; color: var(--xira); }
.zq-meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 6px; font-size: 11.5px; color: var(--xira);
}
.zq-meta span { display: inline-flex; align-items: center; gap: 4px; }
.zq-pul {
  display: flex; gap: 10px; margin-top: 6px;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.zq-pul b { font-weight: 700; }
.zq-pul .qarz { color: var(--qizil); }
.zq-pul .tolangan { color: var(--yashil); }

/* holat nishoni */
.nishon {
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: -0.01em; white-space: nowrap;
  background: var(--chiziq-och); color: var(--xira);
}
.nishon.sariq  { background: var(--sariq-fon);  color: #8A6D15; }
.nishon.yashil { background: var(--yashil-fon); color: var(--yashil); }
.nishon.qizil  { background: var(--qizil-fon);  color: var(--qizil); }
.nishon.kok    { background: var(--kok-fon);    color: var(--kok); }
body.qora .nishon.sariq { color: var(--tilla-och); }

/* ============================================================
   QIDIRUV VA FILTR
   ============================================================ */
.qidiruv {
  display: flex; align-items: center; gap: 9px;
  background: var(--sirt);
  border: 1px solid var(--chiziq);
  border-radius: var(--r);
  padding: 0 13px;
  margin-bottom: 11px;
}
.qidiruv span { color: var(--xira-och); font-size: 14px; }
.qidiruv input {
  flex: 1; border: 0; background: none;
  padding: 12px 0; font-size: 15px; color: var(--siyoh);
}
.qidiruv input:focus { outline: none; }

.filtrlar {
  display: flex; gap: 7px;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 12px; padding-bottom: 2px;
}
.filtrlar::-webkit-scrollbar { display: none; }
.filtr {
  flex: 0 0 auto;
  border: 1px solid var(--chiziq);
  background: var(--sirt); color: var(--xira);
  border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.filtr.faol { background: var(--qora); border-color: var(--qora); color: #F4F2EE; }
.filtr b { font-weight: 700; opacity: .6; margin-left: 3px; }

/* ============================================================
   KALENDAR
   ============================================================ */
.kunlar {
  display: flex; gap: 5px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 12px;
}
.kunlar::-webkit-scrollbar { display: none; }
.kun {
  flex: 0 0 auto; width: 46px; padding: 7px 0;
  border: 1px solid var(--chiziq);
  border-radius: var(--r);
  background: var(--sirt);
  text-align: center; cursor: pointer;
}
.kun small { display: block; font-size: 10px; font-weight: 700; color: var(--xira); }
.kun b {
  display: block; font-size: 16px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--siyoh);
}
.kun.dam small, .kun.dam b { color: var(--qizil); }

.kun.tanlangan { background: var(--qora); border-color: var(--qora); }
.kun.tanlangan small { color: var(--tilla); }
.kun.tanlangan b { color: #F4F2EE; }

/* Qorong'i rejimda tanlangan kun fon bilan qo'shilib ketmasin */
body.qora .kun.tanlangan {
  background: var(--tilla-fon);
  border-color: var(--tilla);
}
body.qora .kun.tanlangan small { color: var(--tilla); }
body.qora .kun.tanlangan b { color: #F4F2EE; }

.jadval { display: flex; }
.soatlar { flex: 0 0 40px; position: relative; }
.soat-belgi {
  position: absolute; left: 0; width: 100%;
  font-size: 11px; font-weight: 600; color: var(--xira-och);
  transform: translateY(-6px);
}
.zonalar { flex: 1; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.zonalar::-webkit-scrollbar { display: none; }

.zona-ustun {
  flex: 1 0 124px; position: relative;
  border: 1px solid var(--chiziq);
  border-radius: var(--r);
  background: var(--sirt);
  overflow: hidden;
  box-shadow: var(--soya-1);
}
.zona-sarlavha {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 9px;
  font-size: 11.5px; font-weight: 700;
  background: var(--sirt);
  border-bottom: 1px solid var(--chiziq);
  white-space: nowrap; overflow: hidden;
}
.zona-sarlavha::before {
  content: ''; flex: 0 0 7px; height: 7px;
  border-radius: 2px; background: var(--zr, var(--xira));
}
.zona-sarlavha span { overflow: hidden; text-overflow: ellipsis; }

.setka { position: relative; }
.setka-chiziq { position: absolute; left: 0; right: 0; border-top: 1px solid var(--chiziq-och); }
.bosh-joy { position: absolute; left: 0; right: 0; cursor: pointer; }
.bosh-joy:active { background: var(--chiziq-och); }

.blok {
  position: absolute; left: 4px; right: 4px;
  border-radius: var(--r-mayda);
  padding: 5px 7px;
  font-size: 11px; line-height: 1.35;
  overflow: hidden; cursor: pointer; z-index: 2;
  border: 1px solid transparent; border-left-width: 3px;
}
.blok b {
  display: block; font-weight: 700; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.blok small { opacity: .8; font-size: 10px; }
.blok.bekor {
  background: transparent !important;
  border-style: dashed; border-left-style: dashed; color: var(--xira);
}
.blok.bekor b { text-decoration: line-through; font-weight: 600; }

.bufer {
  position: absolute; left: 4px; right: 4px; z-index: 1;
  border-radius: 0 0 var(--r-mayda) var(--r-mayda);
  background: currentColor; opacity: .16;
}
.hozir {
  position: absolute; left: 0; right: 0; z-index: 4;
  border-top: 1.5px solid var(--tilla); pointer-events: none;
}
.hozir::before {
  content: ''; position: absolute; left: 0; top: -3.5px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--tilla);
}

/* ============================================================
   GRAFIK
   ============================================================ */
.grafik {
  display: flex; align-items: flex-end; gap: 2px;
  height: 92px; margin-top: 12px;
}
.ustun {
  flex: 1; min-width: 0;
  background: var(--chiziq);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}
.ustun.baland { background: var(--tilla); }
.grafik-izoh {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 10.5px; color: var(--xira-och);
}

/* ============================================================
   TUGMALAR
   ============================================================ */
.asosiy-tugma {
  width: 100%; border: 0; border-radius: var(--r);
  background: var(--qora); color: #F4F2EE;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  padding: 15px; cursor: pointer;
  box-shadow: var(--soya-1);
  transition: transform .1s ease;
}
.asosiy-tugma:active { transform: scale(.985); }
.asosiy-tugma[disabled] { opacity: .45; }

.tilla-tugma {
  width: 100%; border: 0; border-radius: var(--r);
  background: var(--tilla); color: #14120F;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  padding: 15px; cursor: pointer;
  transition: transform .1s ease;
}
.tilla-tugma:active { transform: scale(.985); }

.ikkilamchi {
  flex: 1; border: 1px solid var(--chiziq);
  background: var(--sirt); color: var(--siyoh);
  border-radius: var(--r); padding: 12px 14px;
  font-size: 13.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.ikkilamchi:active { background: var(--chiziq-och); }
.ikkilamchi.xavf { color: var(--qizil); border-color: rgba(192, 57, 43, .3); }

.tugmalar { display: flex; flex-wrap: wrap; gap: 8px; }
.tugmalar .asosiy-tugma, .tugmalar .tilla-tugma { flex: 1 1 100%; }

.mayda-tugma {
  border: 1px solid var(--chiziq);
  background: var(--sirt-2); color: var(--siyoh-80);
  border-radius: 999px; padding: 8px 13px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.mayda-tugma:active { background: var(--chiziq-och); }
.mayda-tugma.xavf { color: var(--qizil); border-color: rgba(192, 57, 43, .28); }

.qoshimcha-tugma {
  width: 100%; margin-top: 10px;
  border: 1px dashed var(--chiziq);
  background: none; color: var(--xira);
  border-radius: var(--r); padding: 13px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.qoshimcha-tugma:active { background: var(--chiziq-och); }

/* suzuvchi tugma */
.suzuvchi {
  position: fixed; right: 16px; bottom: 82px; z-index: 29;
  width: 52px; height: 52px; border-radius: 16px;
  border: 0; background: var(--qora); color: var(--tilla);
  font-size: 24px; cursor: pointer;
  box-shadow: var(--soya-2);
}
.suzuvchi:active { transform: scale(.94); }

/* ============================================================
   OYNA
   ============================================================ */
.oyna-parda {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(20, 18, 15, .5);
  animation: paydo .18s ease;
}
@keyframes paydo { from { opacity: 0; } }

.oyna {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-height: 94vh; display: flex; flex-direction: column;
  background: var(--qogoz);
  border-radius: var(--r-katta) var(--r-katta) 0 0;
  box-shadow: var(--soya-3);
  animation: kotaril .26s cubic-bezier(.32, .72, 0, 1);
  max-width: 560px; margin: 0 auto;
}
@keyframes kotaril { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .oyna, .oyna-parda, .xabar { animation: none; }
  .spinner { animation-duration: 2.4s; }
  .zakaz-qator:active, .asosiy-tugma:active, .tilla-tugma:active, .suzuvchi:active { transform: none; }
}

.oyna-bosh {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid var(--chiziq);
}
.oyna-bosh h2 {
  flex: 1; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
}
.yop-tugma {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--chiziq-och); color: var(--xira);
  font-size: 13px; cursor: pointer;
}
.oyna-tana { flex: 1; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
.oyna-oyoq {
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--chiziq); background: var(--qogoz);
}

/* ============================================================
   BO'LIMLAR (forma ichida)
   ============================================================ */
.bolimlar { display: flex; flex-direction: column; gap: 12px; }
.bolim {
  border: 1px solid var(--chiziq);
  border-radius: var(--r-katta);
  background: var(--sirt);
  overflow: hidden; box-shadow: var(--soya-1);
}
.bolim-bosh {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--chiziq-och);
  background: var(--sirt-2);
}
.bolim-raqam {
  flex: 0 0 21px; height: 21px;
  display: grid; place-items: center; border-radius: 7px;
  background: var(--tilla-fon); color: #8A6D15;
  font-size: 11px; font-weight: 800;
}
body.qora .bolim-raqam { color: var(--tilla-och); }
.bolim-nom { flex: 1; font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; }
.bolim-xulosa {
  font-size: 11.5px; color: var(--xira); text-align: right; max-width: 58%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bolim-tana { padding: 14px; }

/* ============================================================
   MAYDONLAR
   ============================================================ */
.maydon { margin-bottom: 16px; }
.maydon:last-child { margin-bottom: 0; }
.maydon > label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 700; color: var(--siyoh);
}
.yordam { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--xira); }

input[type=text], input[type=tel], input[type=number],
input[type=date], input[type=time], textarea, select {
  width: 100%; padding: 12px 13px;
  border: 1px solid var(--chiziq); border-radius: var(--r);
  background: var(--sirt); color: var(--siyoh);
  font-size: 16px; font-variant-numeric: tabular-nums;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input::placeholder, textarea::placeholder { color: var(--xira-och); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--tilla);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}
textarea { min-height: 70px; resize: vertical; line-height: 1.5; }

.qator { display: flex; gap: 9px; }
.qator > * { flex: 1; min-width: 0; }

.pul-qator {
  display: flex; align-items: center;
  border: 1px solid var(--chiziq); border-radius: var(--r);
  background: var(--sirt); overflow: hidden;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.pul-qator input {
  flex: 1; min-width: 0; border: 0; background: none;
  padding: 12px 13px; font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  color: var(--siyoh); text-align: right;
}
.pul-qator input:focus { outline: none; box-shadow: none; }
.pul-qator:focus-within {
  border-color: var(--tilla); box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}
.pul-qator > span {
  flex: 0 0 auto; padding-right: 13px;
  font-size: 12px; font-weight: 600; color: var(--xira);
}
.pul-qator.kichik { flex: 0 0 102px; }
.pul-qator.kichik input { padding: 9px 10px; font-size: 14px; }
.pul-qator.kichik > span { display: none; }

/* tez summa tugmalari */
.tez-summa { display: flex; gap: 6px; margin-top: 8px; }
.tez-summa button {
  flex: 1; border: 1px solid var(--chiziq);
  background: var(--sirt); color: var(--siyoh-80);
  border-radius: var(--r-mayda); padding: 9px 4px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.tez-summa button:active { background: var(--tilla-fon); border-color: var(--tilla); }

/* ============================================================
   CHIPLAR
   ============================================================ */
.chiplar { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--chiziq);
  background: var(--sirt); color: var(--siyoh-80);
  border-radius: 999px; padding: 9px 14px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.chip.tanlangan {
  background: var(--qora); border-color: var(--qora); color: #F4F2EE; font-weight: 700;
}
.chip[data-rang].tanlangan {
  background: color-mix(in srgb, var(--cr) 13%, var(--sirt));
  border-color: var(--cr); color: var(--cr);
}
.vaqt-chip {
  border: 1px solid var(--chiziq);
  border-left: 3px solid var(--vr, var(--xira));
  border-radius: var(--r-mayda);
  background: var(--sirt); color: var(--siyoh);
  font-size: 14.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 10px 13px; cursor: pointer;
}
.vaqt-chip:active { background: var(--tilla-fon); }

.varaqlar { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.varaqlar::-webkit-scrollbar { display: none; }
.varaq {
  flex: 0 0 auto; border: 1px solid var(--chiziq);
  background: var(--sirt); color: var(--xira);
  border-radius: 999px; padding: 9px 15px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.varaq.tanlangan { background: var(--qora); border-color: var(--qora); color: #F4F2EE; }

/* ============================================================
   TARKIB VA XIZMATLAR
   ============================================================ */
.tarkib {
  border: 1px solid var(--chiziq); border-radius: var(--r);
  background: var(--sirt); overflow: hidden;
}
.tarkib-qator {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-bottom: 1px solid var(--chiziq-och);
  font-size: 14px; cursor: pointer;
}
.tarkib-qator:last-child { border-bottom: 0; }
.tarkib-qator .tn { flex: 1; }
.tarkib-qator .belgi {
  flex: 0 0 19px; height: 19px;
  border: 1.5px solid var(--chiziq); border-radius: 6px;
  display: grid; place-items: center; font-size: 11px; color: transparent;
}
.tarkib-qator.bor .belgi { background: var(--yashil); border-color: var(--yashil); color: #fff; }
.tarkib-qator.yoq { color: var(--xira-och); }
.tarkib-qator.yoq .tn { text-decoration: line-through; }
.tarkib-qator .ochir {
  flex: 0 0 26px; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: none;
  color: var(--xira); font-size: 12px; cursor: pointer;
}

.xizmat {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 0; border-bottom: 1px solid var(--chiziq-och);
}
.xizmat:last-of-type { border-bottom: 0; }
.xizmat.faol {
  background: var(--tilla-fon); border-radius: var(--r);
  border-bottom: 0; padding: 9px 10px; margin: 5px 0;
}
.xizmat .nom { flex: 1; font-size: 14px; min-width: 0; }
.xizmat .nom small { display: block; color: var(--xira); font-size: 11px; margin-top: 1px; }
.xizmat .nom-input { padding: 8px 10px; font-size: 14px; }
.xizmat .ochir {
  flex: 0 0 28px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: none;
  color: var(--xira); font-size: 12px; cursor: pointer;
}
.sanoq {
  display: flex; align-items: center; flex: 0 0 auto;
  border: 1px solid var(--chiziq); border-radius: var(--r);
  overflow: hidden; background: var(--sirt);
}
.sanoq button {
  width: 32px; height: 36px; border: 0; background: none;
  color: var(--siyoh-80); font-size: 17px; cursor: pointer;
}
.sanoq .son {
  width: 22px; text-align: center; font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   JADVALLAR VA QATORLAR
   ============================================================ */
.hisob-jadval { border-top: 1px solid var(--chiziq-och); }
.hq {
  display: flex; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--chiziq-och); font-size: 14px;
}
.hq:last-child { border-bottom: 0; }
.hq .k { flex: 1; color: var(--xira); }
.hq .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.hq.chegirma .v { color: var(--qizil); }

.q {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--chiziq-och); font-size: 14px;
}
.q:last-child { border-bottom: 0; }
.q .k { flex: 0 0 40%; color: var(--xira); font-size: 13px; }
.q .v { flex: 1; text-align: right; font-weight: 600; }
.q.katta .v { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.q .v.yashil { color: var(--yashil); }
.q .v.qizil { color: var(--qizil); }
.q .v.kichik { font-weight: 400; font-size: 12.5px; color: var(--siyoh-80); }
.q .v a { color: var(--kok); text-decoration: none; font-weight: 700; }
.mayda-royxat { margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--chiziq-och); }
.mayda-royxat .q { font-size: 12.5px; padding: 7px 0; }
.mayda-royxat .q .k { flex: 1; }

.jami-quti {
  display: flex; align-items: baseline; gap: 10px;
  padding: 13px 15px; margin-bottom: 11px;
  background: var(--sirt); border: 1px solid var(--chiziq);
  border-radius: var(--r-katta); box-shadow: var(--soya-1);
}
.jami-quti .yorliq { flex: 1; font-size: 12.5px; color: var(--xira); font-weight: 700; }
.jami-quti .son {
  font-size: 23px; font-weight: 800; letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.jami-quti .son em { font-size: 12px; font-style: normal; font-weight: 600; color: var(--xira); }

/* ============================================================
   MOLIYA AMALLARI
   ============================================================ */
.amal {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--chiziq-och);
}
.amal:last-child { border-bottom: 0; }
.amal-belgi {
  flex: 0 0 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px; font-size: 14px;
  background: var(--yashil-fon); color: var(--yashil);
}
.amal-belgi.chiqim { background: var(--qizil-fon); color: var(--qizil); }
.amal-tana { flex: 1; min-width: 0; }
.amal-nom {
  font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.amal-sana { font-size: 11.5px; color: var(--xira); margin-top: 1px; }
.amal-summa {
  font-size: 13.5px; font-weight: 800; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--yashil);
}
.amal-summa.chiqim { color: var(--qizil); }

/* ============================================================
   HOLAT, ESLATMA, XABAR
   ============================================================ */
.holat-bolim { padding: 14px; }
.holat-qator { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.holat-izoh { flex: 1; font-size: 12.5px; color: var(--xira); line-height: 1.4; }

.eslatma {
  padding: 11px 13px; background: var(--chiziq-och);
  border-radius: var(--r); font-size: 12.5px;
  color: var(--siyoh-80); line-height: 1.5;
}
.eslatma.ogoh { background: var(--qizil-fon); color: var(--qizil); }

.bosh-holat {
  text-align: center; padding: 34px 20px;
  color: var(--xira); font-size: 13.5px; line-height: 1.55;
}
.bosh-holat b {
  display: block; color: var(--siyoh);
  font-size: 15.5px; font-weight: 700; margin-bottom: 5px;
}
.bosh-holat .belgi { font-size: 30px; display: block; margin-bottom: 10px; opacity: .45; }

.xabar {
  position: fixed; left: 50%; bottom: 92px; z-index: 70;
  transform: translateX(-50%); max-width: 86vw;
  padding: 12px 18px; border-radius: 999px;
  background: var(--qora); color: #F4F2EE;
  font-size: 13.5px; font-weight: 600; text-align: center;
  box-shadow: var(--soya-2);
  animation: xabarChiq .2s cubic-bezier(.32, .72, 0, 1);
}
.xabar.xato { background: var(--qizil); color: #fff; }
@keyframes xabarChiq { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* ============================================================
   SOZLAMALAR
   ============================================================ */
.sozlama-karta {
  border: 1px solid var(--chiziq); border-radius: var(--r-katta);
  background: var(--sirt); padding: 14px; margin-bottom: 10px;
  box-shadow: var(--soya-1);
}
.sozlama-karta.ochirilgan { opacity: .55; box-shadow: none; }
.sk-bosh { display: flex; align-items: center; gap: 9px; }
.sk-nuqta { flex: 0 0 9px; height: 9px; border-radius: 3px; }
.sk-nom {
  flex: 1; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sk-narx {
  font-size: 13px; font-weight: 700; color: var(--xira);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sk-tarkib { margin-top: 7px; font-size: 12.5px; color: var(--xira); line-height: 1.5; }
.sk-tugmalar { display: flex; gap: 7px; margin-top: 12px; }

.ranglar { display: flex; gap: 9px; flex-wrap: wrap; }
.rang-tugma {
  width: 36px; height: 36px; border: 2px solid transparent;
  border-radius: 10px; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
}
.rang-tugma.tanlangan { border-color: var(--qora); box-shadow: inset 0 0 0 2px var(--sirt); }

/* menyu qatorlari */
.menyu-qator {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--sirt);
  border: 1px solid var(--chiziq); border-radius: var(--r);
  margin-bottom: 8px; cursor: pointer;
}
.menyu-qator:active { background: var(--chiziq-och); }
.menyu-belgi {
  flex: 0 0 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--chiziq-och); font-size: 15px;
}
.menyu-tana { flex: 1; min-width: 0; }
.menyu-nom { font-size: 14.5px; font-weight: 700; }
.menyu-izoh { font-size: 12px; color: var(--xira); margin-top: 1px; }
.menyu-ok { color: var(--xira-och); font-size: 16px; }

/* zona kartasi (bo'sh vaqtlar) */
.zona-karta {
  border: 1px solid var(--chiziq); border-radius: var(--r-katta);
  padding: 14px; margin-bottom: 10px; background: var(--sirt);
  box-shadow: var(--soya-1);
}
.zona-karta-bosh { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.zona-karta-bosh .nuqta { flex: 0 0 9px; height: 9px; border-radius: 3px; }
.zona-karta-bosh .zona-nom { flex: 1; font-size: 14.5px; font-weight: 700; }
.vaqt-chiplar { display: flex; flex-wrap: wrap; gap: 7px; }

/* yo'riqnoma */
.yoriq-qadam { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--chiziq-och); }
.yoriq-qadam:last-child { border-bottom: 0; }
.yoriq-belgi {
  flex: 0 0 30px; height: 30px; display: grid; place-items: center;
  border-radius: 9px; background: var(--tilla-fon); font-size: 15px;
}
.yoriq-matn { flex: 1; font-size: 13.5px; line-height: 1.55; color: var(--siyoh-80); }
.yoriq-matn b { display: block; color: var(--siyoh); font-size: 14px; font-weight: 700; margin-bottom: 2px; }

/* ============================================================
   HISOBLAR (kassa va kartalar)
   ============================================================ */
.hisob-karta {
  background: var(--sirt);
  border: 1px solid var(--chiziq);
  border-radius: var(--r-katta);
  padding: 13px 14px;
  margin-bottom: 9px;
  box-shadow: var(--soya-1);
}
.hk-bosh { display: flex; align-items: center; gap: 11px; }
.hk-belgi {
  flex: 0 0 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px; font-size: 14px;
  background: var(--tilla-fon); color: #8A6D15;
}
body.qora .hk-belgi { color: var(--tilla-och); }
.hk-belgi.naqd { background: var(--yashil-fon); color: var(--yashil); }
.hk-nom {
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hk-egasi { font-size: 11.5px; color: var(--xira); margin-top: 1px; }
.hk-summa {
  font-size: 15px; font-weight: 800; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--yashil);
}
.hk-summa.chiqim { color: var(--qizil); }

.hk-tafsilot {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 11px; padding-top: 10px;
  border-top: 1px solid var(--chiziq-och);
}
.hk-bolak {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--chiziq-och);
  font-size: 11.5px; color: var(--xira);
}
.hk-bolak b {
  font-size: 12px; font-weight: 700; color: var(--siyoh);
  font-variant-numeric: tabular-nums;
}
.hk-bolak.manfiy b { color: var(--qizil); }
.hk-yoq { font-size: 12px; color: var(--xira-och); }

/* hisob tanlash chipi */
.hisob-chip { display: inline-flex; align-items: center; gap: 6px; }
.hisob-chip .hb { font-size: 12px; opacity: .7; }

/* kategoriya ostidagi mayda izoh */
.q .k .kb, .q .k small {
  display: block; font-size: 11px; color: var(--xira-och);
  margin-top: 2px; font-weight: 400;
}

/* statistika ulushi */
.q { position: relative; }
.ulush {
  position: absolute; left: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--tilla); opacity: .55;
  max-width: 100%;
}

/* ============================================================
   BREND BELGISI
   Oq ramka ichida M, ostida MIRAJ va yil.
   ============================================================ */
.brend { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.brend-kv {
  border-radius: 12px;
  display: grid; place-items: center;
  padding: 14%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.brend-matn { text-align: center; }
.brend-nom {
  font-weight: 600; letter-spacing: .34em;
  padding-left: .34em; line-height: 1;
}
.brend-yil {
  font-family: var(--brend);
  font-style: italic;
  color: var(--tilla);
  margin-top: 4px; line-height: 1;
}

.bosh-brend { flex: 0 0 auto; margin-right: 2px; }
.bosh-brend .brend-kv { border-radius: 9px; }

/* ============================================================
   RASMLAR
   ============================================================ */
.avatar.rasmli { padding: 0; overflow: hidden; background: var(--chiziq-och); }
.avatar.rasmli img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rasm-lenta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 7px;
}
.rasm-kv {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--chiziq-och);
  border: 1px solid var(--chiziq);
}
.rasm-kv img {
  width: 100%; height: 100%;
  object-fit: cover; display: block; cursor: pointer;
}
.rasm-ochir {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(20, 18, 15, .68);
  color: #F4F2EE; font-size: 10px; cursor: pointer;
}
.rasm-ochir:active { background: var(--qizil); }

.rasm-katta { text-align: center; }
.rasm-katta img {
  width: 100%; max-height: 62vh;
  object-fit: contain;
  border-radius: var(--r);
  background: var(--chiziq-och);
}
.rasm-boshqaruv {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
}
.rasm-boshqaruv .ikkilamchi { flex: 0 0 56px; }
.rasm-sanoq {
  flex: 1; font-size: 13px; font-weight: 700; color: var(--xira);
  font-variant-numeric: tabular-nums;
}


/* ============================================================
   BOSHLANISH EKRANI
   O'lchami qat'iy — 4:5 karta. Ekran balandligiga cho'zilmaydi.
   ============================================================ */
.splash {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #100E0B;
  border: 1px solid rgba(201, 162, 39, .22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 26px 22px 22px;
}

/* studiya chirog'i — belgi orqasidagi iliq yorug'lik */
.splash-nur {
  position: absolute;
  top: 14%; left: 50%;
  width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -32%);
  background: radial-gradient(circle,
    rgba(201, 162, 39, .26) 0%,
    rgba(201, 162, 39, .10) 34%,
    rgba(16, 14, 11, 0) 64%);
  pointer-events: none;
}

/* ramkadan ajratib turadigan ingichka ichki chiziq */
.splash::after {
  content: '';
  position: absolute; inset: 9px;
  border: 1px solid rgba(244, 242, 238, .10);
  border-radius: 12px;
  pointer-events: none;
}

.splash-ich {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  flex: 1; justify-content: center;
}

.splash-belgi .brend-kv {
  box-shadow: 0 6px 26px rgba(201, 162, 39, .28);
}

.splash-shior {
  font-family: var(--brend);
  font-style: italic;
  font-size: 19px; line-height: 1.34;
  color: rgba(244, 242, 238, .82);
  text-align: center;
  letter-spacing: .012em;
}

.splash .spinner { position: relative; z-index: 1; margin-top: 4px; }

/* ============================================================
   HISOB-KITOB QATORLARI (kirim + / chiqim − / qoldiq =)
   ============================================================ */
.hk-hisob {
  margin-top: 11px; padding-top: 10px;
  border-top: 1px solid var(--chiziq-och);
}
.hkq {
  display: flex; align-items: baseline; gap: 9px;
  padding: 6px 0;
  font-size: 13.5px;
}
.hkq-belgi {
  flex: 0 0 16px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--xira-och);
}
.hkq-nom { flex: 1; color: var(--xira); }
.hkq-summa {
  font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hkq-summa.qizil { color: var(--qizil); }
.hkq-summa.yashil { color: var(--yashil); }

.hkq.yakuniy {
  margin-top: 4px; padding-top: 9px;
  border-top: 1px solid var(--chiziq);
}
.hkq.yakuniy .hkq-belgi { color: var(--siyoh); }
.hkq.yakuniy .hkq-nom { color: var(--siyoh); font-weight: 700; }
.hkq.yakuniy .hkq-summa { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }

.hk-summa.kirim { color: var(--yashil); }
.hisob-karta.ogohli { border-color: rgba(192, 57, 43, .35); }
.hisob-karta.jami-karta {
  background: var(--sirt-2);
  border-style: dashed;
}
.jami-karta .hk-hisob { margin-top: 0; padding-top: 0; border-top: 0; }

/* narxi kelishiladigan xizmat */
.xizmat .nom small.kelishiladi { color: var(--tilla); font-weight: 600; }
body:not(.qora) .xizmat .nom small.kelishiladi { color: #8A6D15; }

/* ============================================================
   DAVOMIYLIK TANLAGICHI
   ============================================================ */
.davom-qol {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 10px 12px;
  background: var(--chiziq-och);
  border-radius: var(--r);
  flex-wrap: wrap;
}
.davom-yorliq {
  font-size: 12.5px; color: var(--xira); font-weight: 600;
  margin-right: 4px;
}
.davom-qol .sanoq { background: var(--sirt); }
.davom-qol .sanoq .son { width: 26px; }

/* ============================================================
   SANA VA YIL TANLASH
   ============================================================ */
.bosiladigan { cursor: pointer; }
.bosiladigan::after {
  content: '';
  display: inline-block; width: .36em; height: .36em; margin-left: .5em;
  border-right: 1.8px solid var(--xira); border-bottom: 1.8px solid var(--xira);
  transform: rotate(45deg) translateY(-.2em); vertical-align: middle;
}

.oylar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.oy-tugma {
  border: 1px solid var(--chiziq);
  background: var(--sirt); color: var(--siyoh-80);
  border-radius: var(--r-mayda);
  padding: 11px 4px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.oy-tugma.tanlangan {
  background: var(--qora); border-color: var(--qora); color: #F4F2EE;
}
.yil-soni { opacity: .55; font-weight: 600; }

.kun-setka {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.ks-bosh {
  text-align: center; font-size: 10.5px; font-weight: 700;
  color: var(--xira-och); padding-bottom: 4px;
}
.ks-kun {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: var(--sirt-2); color: var(--siyoh);
  border-radius: var(--r-mayda);
  font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.ks-kun.dam { color: var(--qizil); }
.ks-kun.bugun { border-color: var(--tilla); }
.ks-kun.tanlangan {
  background: var(--qora); color: #F4F2EE; border-color: var(--qora);
}
.ks-kun:active { background: var(--tilla-fon); }

.sana-lenta {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 11px;
  background: var(--tilla-fon);
  border-radius: var(--r);
}
.sl-matn {
  flex: 1; font-size: 13px; font-weight: 700; color: #8A6D15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.qora .sl-matn { color: var(--tilla-och); }
.sana-lenta .mayda-tugma { padding: 6px 11px; font-size: 12px; }

.bolim-xulosa .mayda-tugma { padding: 5px 11px; margin-left: 4px; }

/* ============================================================
   KATTA AMAL TUGMASI (sahifa tepasida)
   ============================================================ */
.katta-tugma {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--chiziq);
  border-radius: var(--r-katta);
  background: var(--sirt);
  box-shadow: var(--soya-1);
  cursor: pointer;
  text-align: left;
  transition: transform .1s ease;
}
.katta-tugma:active { transform: scale(.99); background: var(--tilla-fon); }

.kt-belgi {
  flex: 0 0 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--tilla-fon);
  color: #8A6D15;
  font-size: 19px;
}
body.qora .kt-belgi { color: var(--tilla-och); }

.kt-matn { flex: 1; min-width: 0; }
.kt-matn b {
  display: block;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--siyoh);
}
.kt-matn small {
  display: block; margin-top: 2px;
  font-size: 12.5px; color: var(--xira);
}
.kt-ok { color: var(--xira-och); font-size: 18px; }

/* ============================================================
   BO'SH ORALIQLAR
   ============================================================ */
.oraliqlar { display: flex; flex-direction: column; gap: 10px; }

.oraliq {
  border: 1px solid var(--chiziq);
  border-radius: var(--r);
  padding: 11px 12px;
  background: var(--sirt-2);
}
.oraliq.sigmaydi { opacity: .6; }

.oraliq-bosh {
  display: flex; align-items: baseline; gap: 9px;
  margin-bottom: 9px;
}
.oraliq-vaqt {
  flex: 1; font-size: 14.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.oraliq-uzunlik {
  font-size: 11.5px; color: var(--xira); font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--chiziq-och);
  white-space: nowrap;
}
.oraliq-yoq { font-size: 12.5px; color: var(--xira); }
.oraliq-eng-kech {
  display: block; margin-top: 8px;
  font-size: 11.5px; color: var(--xira-och);
}

.band-royxat {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--chiziq-och);
}
.band-yorliq { font-size: 11.5px; color: var(--xira); font-weight: 700; }
.band-vaqt {
  font-size: 11.5px; color: var(--xira);
  padding: 4px 9px; border-radius: 999px;
  background: var(--chiziq-och);
  font-variant-numeric: tabular-nums;
}

/* ---------- qo'lda kiritilgan vaqt javobi ---------- */
.tekshir-javob {
  margin-top: 12px; padding: 14px;
  border-radius: var(--r-katta);
  border: 1px solid var(--chiziq);
  background: var(--sirt);
}
.tekshir-javob.yashil { border-color: rgba(23, 130, 92, .4); background: var(--yashil-fon); }
.tekshir-javob.qizil { border-color: rgba(192, 57, 43, .4); background: var(--qizil-fon); }

.tj-bosh { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.tj-belgi {
  flex: 0 0 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 12px; color: #fff;
}
.yashil .tj-belgi { background: var(--yashil); }
.qizil .tj-belgi { background: var(--qizil); }
.tj-bosh b { font-size: 15px; font-weight: 700; }
.yashil .tj-bosh b { color: var(--yashil); }
.qizil .tj-bosh b { color: var(--qizil); }

.tj-sabab { font-size: 13px; line-height: 1.5; color: var(--siyoh-80); }
.tj-taklif { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--chiziq); }
.tj-yorliq {
  display: block; margin-bottom: 8px;
  font-size: 12px; font-weight: 700; color: var(--xira);
}

/* ============================================================
   VAQT HOLATI (zakaz formasida)
   ============================================================ */
.vaqt-band, .vaqt-bosh {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 9px; padding: 10px 12px;
  border-radius: var(--r);
  font-size: 12.5px; line-height: 1.45;
}
.vaqt-band { background: var(--qizil-fon); color: var(--qizil); }
.vaqt-bosh { background: var(--yashil-fon); color: var(--yashil); }

.vb-belgi {
  flex: 0 0 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 10px; color: #fff;
}
.vaqt-band .vb-belgi { background: var(--qizil); }
.vaqt-bosh .vb-belgi { background: var(--yashil); }
.vb-matn { flex: 1; }
.vb-matn b { display: block; font-weight: 700; margin-bottom: 2px; }
.vb-satr { opacity: .9; }

/* ============================================================
   RASXOD YOZUVI VA TARIXI
   ============================================================ */
.rasxod-qator { margin-bottom: 0; }
.rasxod-qator .bolim-xulosa .mayda-tugma { padding: 5px 10px; font-size: 12px; }

.kun-ajratgich {
  margin: 14px 2px 8px;
  font-size: 12px; font-weight: 700; color: var(--xira);
  letter-spacing: .01em;
}

.rasxod-yozuv {
  background: var(--sirt);
  border: 1px solid var(--chiziq);
  border-radius: var(--r);
  padding: 12px 13px;
  margin-bottom: 8px;
  box-shadow: var(--soya-1);
}
.ry-bosh { display: flex; align-items: baseline; gap: 10px; }
.ry-nom {
  flex: 1; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ry-summa {
  font-size: 14.5px; font-weight: 800; color: var(--qizil);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ry-meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 6px; font-size: 11.5px; color: var(--xira);
}
.ry-valyuta { color: var(--tilla); font-weight: 600; }
body:not(.qora) .ry-valyuta { color: #8A6D15; }
.ry-izoh {
  margin-top: 8px; padding-top: 7px;
  border-top: 1px solid var(--chiziq-och);
  font-size: 12.5px; color: var(--siyoh-80); line-height: 1.45;
}

/* ============================================================
   BOSH SAHIFA BANNERI
   Studiya rasmi ustida sarlavha va tugmalar turadi.
   Rasm ustidagi yozuv o'qilishi uchun tepasidan qorayadi.
   ============================================================ */
.bosh-banner {
  position: relative;
  min-height: 176px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 16px;
  background-image: image-set(
    url('bosh-rasm.webp') type('image/webp'),
    url('bosh-rasm.jpg') type('image/jpeg')
  );
  background-image: url('bosh-rasm.jpg');   /* eski brauzerlar uchun */
  background-image: -webkit-image-set(
    url('bosh-rasm.webp') type('image/webp'),
    url('bosh-rasm.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 38%;
}

/* rasm ustidagi qoraytirish — yozuv va tugmalar aniq ko'rinsin */
.bosh-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(12, 10, 8, .62) 0%,
      rgba(12, 10, 8, .28) 34%,
      rgba(12, 10, 8, .74) 100%);
  pointer-events: none;
}

.bosh-banner .bosh-qator { position: relative; z-index: 1; }

.bosh-banner .bosh-nom h1 {
  font-size: 20px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}
.bosh-banner .bosh-nom p {
  color: rgba(244, 242, 238, .82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

/* tugmalar rasmdan ajralib tursin */
.bosh-banner .bosh-tugma {
  background: rgba(12, 10, 8, .5);
  border-color: rgba(244, 242, 238, .26);
  backdrop-filter: blur(6px);
}
@supports not (backdrop-filter: blur(1px)) {
  .bosh-banner .bosh-tugma { background: rgba(12, 10, 8, .68); }
}
.bosh-banner .bosh-tugma:active { background: rgba(244, 242, 238, .22); }

.bosh-banner .bosh-brend .brend-kv {
  box-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

@media (min-width: 520px) {
  .bosh-banner { min-height: 208px; }
}

/* ============================================================
   BOSH SAHIFA BANNERI

   Rasm o'z nisbatida turadi (cho'zilmaydi, kesilmaydi) va
   mazmun kengligidan oshmaydi. Logotip o'rtada butun ko'rinadi,
   yozuv va tugmalar esa eng pastda — ustiga tushmaydi.
   ============================================================ */
.bosh-banner { padding: max(0px, env(safe-area-inset-top)) 0 0; }

.bosh-banner .bosh-ram {
  aspect-ratio: 1200 / 669;
  max-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 var(--r-katta) var(--r-katta);
}

.bosh-banner .banner-rasm {
  display: block;
  position: absolute; inset: 0;
}
.bosh-banner .banner-rasm img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

/* pastki qismini qoraytiramiz — yozuv aniq o'qilsin,
   logotip esa ochiq qoladi */
.bosh-banner .bosh-ram::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56%;
  background: linear-gradient(to bottom,
    rgba(10, 8, 7, 0) 0%,
    rgba(10, 8, 7, .55) 52%,
    rgba(10, 8, 7, .88) 100%);
  pointer-events: none;
}

.bosh-banner .bosh-qator {
  position: relative; z-index: 1;
  width: 100%;
  padding: 0 14px 13px;
}

.bosh-banner .bosh-nom h1 {
  font-size: 19px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}
.bosh-banner .bosh-nom p {
  color: rgba(244, 242, 238, .86);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .65);
}

/* tugmalar rasmdan ajralib tursin */
.bosh-banner .bosh-tugma {
  background: rgba(12, 10, 8, .55);
  border-color: rgba(244, 242, 238, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bosh-banner .bosh-tugma { background: rgba(12, 10, 8, .74); }
}
.bosh-banner .bosh-tugma:active { background: rgba(244, 242, 238, .24); }

.bosh-banner .bosh-brend .brend-kv { box-shadow: 0 2px 16px rgba(0, 0, 0, .5); }

/* Juda tor ekranda tugmalar siqilib qolmasin */
@media (max-width: 360px) {
  .bosh-banner .bosh-qator { gap: 6px; padding: 0 11px 11px; }
  .bosh-banner .bosh-nom h1 { font-size: 17px; }
}


/* ============================================================
   IKONKALAR VA ANIMATSIYALAR
   SVG ikonkalar (ikon.js). Rangni atrofdagi matndan oladi.
   Faqat transform / opacity / stroke-dashoffset animatsiya qilinadi,
   shuning uchun sekin telefonlarda ham yengil.
   ============================================================ */
.ik {
  width: 1em; height: 1em; flex: none;
  display: inline-block; vertical-align: -.16em;
  overflow: visible;
  transition: transform .22s cubic-bezier(.3, 1.4, .5, 1);
}
.ik-satr { width: .95em; height: .95em; margin: 0 .12em; }

/* --- o'lchamlar: har bir joyda ikonka shu joy uchun mos --- */
.bosh-tugma .ik { width: 18px; height: 18px; display: block; }
.nav-tugma span { display: grid; place-items: center; }
.nav-tugma span .ik { width: 22px; height: 22px; display: block; }
.suzuvchi .ik { width: 24px; height: 24px; display: block; margin: 0 auto; stroke-width: 2.2; }
.stat-belgi .ik { width: 15px; height: 15px; }
.oqim .ik { width: 12px; height: 12px; stroke-width: 2.4; }
.qidiruv > .ik { width: 16px; height: 16px; color: var(--xira-och); }
.zq-meta .ik { width: 1.05em; height: 1.05em; opacity: .7; vertical-align: -.18em; }
.kt-belgi .ik { width: 22px; height: 22px; }
.kt-ok .ik, .menyu-ok .ik { width: 18px; height: 18px; display: block; }
.menyu-belgi .ik { width: 18px; height: 18px; }
.yoriq-belgi .ik { width: 17px; height: 17px; }
.hk-belgi .ik, .amal-belgi .ik { width: 18px; height: 18px; }
.amal-belgi .ik { stroke-width: 2.1; }
.hb .ik { width: 14px; height: 14px; vertical-align: -.2em; }
.bosh-holat .belgi .ik { width: 38px; height: 38px; display: block; margin: 0 auto; stroke-width: 1.4; }
.tj-belgi .ik { width: 14px; height: 14px; stroke-width: 2.8; }
.vb-belgi .ik { width: 11px; height: 11px; stroke-width: 3.2; }
.tarkib-qator .belgi .ik { width: 12px; height: 12px; stroke-width: 3.2; }
.yop-tugma .ik { width: 14px; height: 14px; stroke-width: 2.2; }
.rasm-ochir .ik { width: 12px; height: 12px; stroke-width: 2.4; }
.ochir .ik { width: 14px; height: 14px; }
.mayda-tugma .ik, .ikkilamchi .ik { width: 15px; height: 15px; vertical-align: -.22em; }
.blok b .ik { width: .95em; height: .95em; margin-left: .25em; }

/* --- animatsiya kadrlari --- */
@keyframes ikPop {
  0%   { transform: scale(.4) rotate(-14deg); opacity: 0; }
  60%  { transform: scale(1.16) rotate(3deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes ikBur {
  0%   { transform: rotate(-120deg) scale(.3); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes ikCiz    { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ikCiz2   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ikSuz {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes ikTitra {
  0%, 100% { transform: none; }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(3deg); }
}
@keyframes ikAyl    { to { transform: rotate(360deg); } }
@keyframes ikO      { from { transform: scaleY(.08); } to { transform: scaleY(1); } }
@keyframes ikQisish {
  0%, 92%, 100% { transform: scaleY(1); }
  96%           { transform: scaleY(.12); }
}
@keyframes ikTepa {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes ikPast {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* --- tepadagi tugmalar: rejim va ko'z almashganda --- */
.ik-oy, .ik-quyosh { animation: ikBur .55s cubic-bezier(.3, 1.3, .5, 1); }
.ik-koz, .ik-kozYopiq { animation: ikPop .4s cubic-bezier(.3, 1.5, .5, 1); }
.ik-koz .ik-a { transform-origin: 12px 12px; animation: ikQisish 6s 2s infinite; }
.ik-quyosh .ik-a { transform-origin: 12px 12px; animation: ikAyl 24s linear infinite; }
.bosh-tugma:active .ik { transform: scale(.85); }
.ik-savol, .ik-odam { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.bosh-tugma:active .ik-savol { transform: rotate(-14deg) scale(.9); }

/* --- pastki menyu: faol bo'lim ikonkasi sakraydi --- */
.nav-tugma.faol span .ik { animation: ikPop .5s cubic-bezier(.3, 1.6, .5, 1); }
.nav-tugma:active span .ik { transform: scale(.86); }

/* --- ko'rsatkichlar (bosh sahifa) --- */
.stat-belgi .ik { animation: ikPop .55s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.stat:nth-child(2) .stat-belgi .ik { animation-delay: .06s; }
.stat:nth-child(3) .stat-belgi .ik { animation-delay: .12s; }
.stat:nth-child(4) .stat-belgi .ik { animation-delay: .18s; }
.stat-belgi .ik-soat .ik-a { transform-origin: 12px 12px; animation: ikAyl 8s linear infinite; }
.stat-belgi .ik-soat .ik-b { transform-origin: 12px 12px; animation: ikAyl 96s linear infinite; }
.oqim .ik-tepa { animation: ikTepa .55s .1s cubic-bezier(.3, 1.3, .5, 1) backwards; }
.oqim .ik-past { animation: ikPast .55s .1s cubic-bezier(.3, 1.3, .5, 1) backwards; }

/* --- bo'sh holatlar: ikonka yengil suzadi --- */
.bosh-holat .belgi .ik { animation: ikPop .55s cubic-bezier(.3, 1.5, .5, 1), ikSuz 3.4s 1s ease-in-out infinite; }
.bosh-holat .belgi .ik-belgi .ik-ciz { animation: ikCiz .6s .25s ease-out backwards; }
.bosh-holat .belgi .ik-grafik .ik-a, .bosh-holat .belgi .ik-grafik .ik-b, .bosh-holat .belgi .ik-grafik .ik-c { animation-duration: .7s; }

/* --- belgi (galochka) chiziladi --- */
.ik-ciz { stroke-dasharray: 1; stroke-dashoffset: 0; animation: ikCiz .45s .05s ease-out backwards; }
.tarkib-qator.bor .belgi .ik-ciz { animation: ikCiz2 .3s ease-out; }
.tarkib-qator.yoq .belgi .ik-ciz { animation: none; }

/* --- xato va ogohlantirish: bir marta silkinadi --- */
.ik-ogoh, .ik-ogohDoira { animation: ikTitra .7s .15s ease-in-out; transform-origin: 50% 60%; }
.ik-yopDoira { animation: ikPop .5s cubic-bezier(.3, 1.5, .5, 1) backwards; }

/* --- yopish / o'chirish: bosilganda aylanadi --- */
.yop-tugma:active .ik-yop, .ochir:active .ik-yop, .rasm-ochir:active .ik-yop, .mayda-tugma:active .ik-yop,
.yop-tugma:hover .ik-yop, .ochir:hover .ik-yop, .rasm-ochir:hover .ik-yop { transform: rotate(90deg); }

/* --- grafik ustunlari o'sib chiqadi --- */
.ik-grafik .ik-a, .ik-grafik .ik-b, .ik-grafik .ik-c {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: ikO .6s cubic-bezier(.3, 1.2, .5, 1) backwards;
}
.ik-grafik .ik-b { animation-delay: .08s; }
.ik-grafik .ik-c { animation-delay: .16s; }

/* --- sozlamalar: surgichlar siljiydi --- */
.ik-sozlama .ik-a, .ik-sozlama .ik-b { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.menyu-qator:active .ik-sozlama .ik-a, .menyu-qator:hover .ik-sozlama .ik-a { transform: translateX(-4.5px); }
.menyu-qator:active .ik-sozlama .ik-b, .menyu-qator:hover .ik-sozlama .ik-b { transform: translateX(4.5px); }

/* --- qidiruv: fokusda lupa qimirlaydi --- */
.qidiruv:focus-within > .ik-qidiruv { animation: ikTitra .55s ease-in-out; color: var(--tilla); }

/* --- strelkalar: bosilganda oldinga siljiydi --- */
.katta-tugma:active .kt-ok .ik, .menyu-qator:active .menyu-ok .ik,
.katta-tugma:hover .kt-ok .ik, .menyu-qator:hover .menyu-ok .ik { transform: translateX(3px); }
.mayda-tugma:active .ik-chap, .ikkilamchi:active .ik-chap { transform: translateX(-3px); }
.mayda-tugma:active .ik-ong, .ikkilamchi:active .ik-ong { transform: translateX(3px); }

/* --- yuqoridagi/pastdagi plus tugmasi --- */
.suzuvchi:active .ik { transform: rotate(90deg) scale(.9); }
.suzuvchi:not(.yashirin) .ik { animation: ikPop .5s .1s cubic-bezier(.3, 1.6, .5, 1) backwards; }

/* --- hisob turi va ro'yxat ikonkalari bosilganda --- */
.zakaz-qator:active .zq-meta .ik { opacity: 1; }
.menyu-qator:active .menyu-belgi .ik { transform: scale(.9); }

/* --- harakatni kamaytirish sozlamasi yoqilgan bo'lsa animatsiyalar o'chadi --- */
@media (prefers-reduced-motion: reduce) {
  .ik, .ik * { animation: none !important; transition: none !important; }
}


/* ============================================================
   TEPADAGI TUGMALAR — hamma sahifada bir xil, tor ekranda siqilmaydi
   Tugmalar bitta guruhda, o'ng tomonda; sarlavha kerak bo'lsa 2 qatorga o'tadi.
   ============================================================ */
.bosh-qator { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.bosh-banner .bosh-qator {
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}
.bosh-tugmalar { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.bosh-tugmalar .bosh-tugma { flex: 0 0 auto; }
.bosh-brend { flex: 0 0 auto; }

/* sarlavha bitta qatorda kesilmaydi, 2 qatorgacha o'raladi */
.bosh-nom h1 {
  white-space: normal; line-height: 1.15;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-overflow: clip;
  overflow-wrap: anywhere;
}
.bosh-nom p { line-height: 1.3; }

@media (max-width: 400px) {
  .bosh-tugmalar { gap: 5px; }
  .bosh-tugma { width: 34px; height: 34px; border-radius: 9px; }
  .bosh-tugma .ik { width: 17px; height: 17px; }
  .bosh-qator { gap: 8px; }
  .bosh-nom p { font-size: 12px; }
}
@media (max-width: 340px) {
  .bosh-tugmalar { gap: 4px; }
  .bosh-tugma { width: 32px; height: 32px; border-radius: 8px; }
  .bosh-tugma .ik { width: 16px; height: 16px; }
  .bosh-qator { gap: 6px; }
  .bosh-brend { display: none; }
  .bosh-banner .bosh-nom h1, .bosh-nom h1 { font-size: 16.5px; }
}


/* ============================================================
   TUGMALAR HAMMA BO'LIMDA BIR JOYDA — yuqori o'ng burchak
   Oldin bosh sahifada rasm ostida, boshqa bo'limlarda tepada turib,
   bo'limlar orasida o'tganda sakrab yurardi.
   ============================================================ */
.bosh-banner .bosh-qator { position: static; }
.bosh-banner .bosh-brend, .bosh-banner .bosh-nom { position: relative; z-index: 1; }
.bosh-banner .bosh-tugmalar {
  position: absolute; z-index: 2; margin: 0;
  top: max(10px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}

/* rasm bloki matnga qarab torayib ketmasin — doim to'liq kenglikda */
.bosh-banner .bosh-ram { width: 100%; }
