/* ==========================================================================
   REFERENT NARX — dizayn tizimi
   --------------------------------------------------------------------------
   Vizual til: «Blister». Farmatsevtika bozorining eng tanish shakli — dori
   blisteri. Uning uchta elementi butun saytda takrorlanadi:

     1. KAPSULA  — brend belgisi, davlat chiplari, tugmalar (yumaloq uchlar)
     2. BLISTER KATAKLARI — bosh sahifa foni: navy ustidagi kuchsiz uyalar
     3. PERFORATSIYA — bo'limlar orasidagi nuqtali chiziq (blister yirtig'i)

   Rang: navy = davlat/rasmiy hujjat, tibbiy ko'k-yashil (teal) = harakat,
   klinik oq = ma'lumot yuzasi. Narx kataklarining ranglari Excel bilan bir
   xil bo'lib qoladi — ular ma'no tashiydi, bezak emas.
   ========================================================================== */

:root {
  color-scheme: light;

  /* asosiy */
  --navy:        #0f2440;
  --navy-2:      #16355c;
  --navy-3:      #2b5288;
  --teal:        #0e7f74;
  --teal-2:      #0b6960;
  --teal-yorug:  #e6f4f2;
  --teal-3:      #14a092;   /* yorug' teal — to'q fonda */

  /* matn va yuzalar */
  --matn:        #14202f;
  --matn-2:      #4a5a70;
  --matn-3:      #7d8a9c;
  --chiziq:      #dde3ec;
  --chiziq-2:    #eef1f6;
  --fon:         #f4f6fa;
  --oq:          #ffffff;

  /* ma'noli ranglar (Excel bilan bir xil) */
  --yashil:      #d8f0dc;
  --yashil-2:    #1c7a3a;
  --sariq:       #fdf0c4;
  --sariq-2:     #8a6100;
  --kulrang:     #e6e9ee;
  --qizil:       #fcdada;
  --qizil-2:     #a52020;

  --r:           10px;
  --r-kap:       999px;                      /* kapsula radiusi */
  --soya:        0 1px 2px rgba(15,36,64,.05), 0 4px 16px rgba(15,36,64,.06);
  --soya-2:      0 10px 34px rgba(15,36,64,.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.5;
  color: var(--matn); background: var(--fon);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================  sarlavha  === */

/* ================================================  valyuta chizig'i  ===
   Sahifaning eng tepasi: 8 ta reestr valyutasi va Markaziy bank kursi.
   Sarlavhadan bir oz to'qroq — u ustiga «yopishib» turganda ajralib tursin.
*/
.tiker {
  background: linear-gradient(90deg, #08172a 0%, #0a1b30 45%, #0c2138 100%);
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 12px; position: relative; z-index: 51; overflow: hidden;
}
.tiker::after {                        /* pastda nozik teal yorug'lik */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,160,145,.55), transparent);
}
.tiker-ich {
  max-width: 1480px; margin: 0 auto; padding: 0 22px;
  height: 36px; display: flex; align-items: center; gap: 16px;
}
.tiker-yorliq {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: rgba(255,255,255,.55); white-space: nowrap; letter-spacing: .02em;
  padding-right: 14px; border-right: 1px solid rgba(255,255,255,.1);
}
.jonli {                               /* «efir» nuqtasi */
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-3);
  box-shadow: 0 0 0 0 rgba(63,211,155,.55); animation: puls 2.4s ease-out infinite;
}
.tiker.taxminiy .jonli { background: #f0c274; animation: none; }
.tiker.taxminiy .tiker-yorliq { color: #f0c274; }

/* Lenta: ro'yxat ikki marta chizilgan, shuning uchun -50% ga surilsa
   uzilishsiz takrorlanadi. */
.tiker-oyna { flex: 1; overflow: hidden; -webkit-mask-image:
  linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent);
  mask-image:
  linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent); }
.tiker-lenta { display: flex; width: max-content; animation: oqim 48s linear infinite; }
.tiker-oyna:hover .tiker-lenta { animation-play-state: paused; }
.tiker-guruh { display: flex; align-items: center; }

.kotirovka {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 4px 13px; border-radius: var(--r-kap); cursor: default;
  transition: background .15s ease;
}
.kotirovka:hover { background: rgba(255,255,255,.07); }
.kotirovka .bayroq { flex: none; display: block; }
.kotirovka b {
  font-weight: 600; font-size: 11px; letter-spacing: .05em; color: #7fdccf;
}
.kotirovka i {
  font-style: normal; font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.94); font-weight: 500;
}
/* O'sish/tushish: rang YOLG'IZ ma'no tashimaydi — strelka va ishora bilan. */
.kotirovka s {
  text-decoration: none; font-size: 10.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  padding: 1px 5px; border-radius: 4px;
  color: rgba(255,255,255,.5); background: rgba(255,255,255,.07);
}
.kotirovka.o-sdi s  { color: #3fd39b; background: rgba(63,211,155,.13); }
.kotirovka.tushdi s { color: #ff8a82; background: rgba(255,138,130,.13); }
.tiker.taxminiy .kotirovka i { color: rgba(255,255,255,.6); }
.tiker.taxminiy .kotirovka s { display: none; }

@media (max-width: 760px) {
  .tiker-ich { padding: 0 14px; gap: 10px; height: 34px; }
  .tiker-yorliq { font-size: 11px; padding-right: 10px; }
  .kotirovka { padding: 4px 9px; gap: 5px; }
}
@media (max-width: 460px) {
  .tiker-yorliq span:not(.jonli) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tiker-lenta { animation: none; }
  .tiker-oyna { overflow-x: auto; scrollbar-width: none; }
  .tiker-oyna::-webkit-scrollbar { display: none; }
  .tiker-guruh[aria-hidden="true"] { display: none; }
}

.bosh {
  background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 2px 12px rgba(0,0,0,.16);
}
/* blister kataklari — juda kuchsiz, faqat sezilib turadi */
.bosh::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='36'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075'%3E%3Crect x='4' y='5' width='20' height='11' rx='5.5'/%3E%3Crect x='32' y='5' width='20' height='11' rx='5.5'/%3E%3Crect x='18' y='21' width='20' height='11' rx='5.5'/%3E%3C/g%3E%3C/svg%3E");
}
.bosh-ich {
  max-width: 1480px; margin: 0 auto; padding: 0 22px; position: relative;
  height: 58px; display: flex; align-items: center; gap: 24px;
}
.brend { display: flex; align-items: center; gap: 11px; font-weight: 650;
         letter-spacing: -.012em; color: #fff; font-size: 15px; }
.brend:hover { text-decoration: none; }
.brend small { display: block; font-weight: 400; font-size: 10px;
               color: rgba(255,255,255,.55); letter-spacing: .06em;
               text-transform: uppercase; margin-top: -1px; }
/* kapsula — ikki yarmi, ikki rang: ikki narx solishtiriladi */
.kapsula { width: 30px; height: 15px; flex: none; }
.brend .soz { letter-spacing: -.02em; font-size: 16px; }
.brend .soz em { font-style: normal; color: #7fd8cd; font-weight: 640; }
.kirish-karta .brend .soz em { color: var(--teal); }

.menyu { display: flex; gap: 3px; margin-left: 4px; }
.menyu a {
  color: rgba(255,255,255,.72); padding: 6px 13px; border-radius: var(--r-kap);
  font-size: 13.5px; font-weight: 500;
}
.menyu a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.menyu a.faol { background: rgba(255,255,255,.15); color: #fff; }

.bosh-ong { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.til-tanlov { display: flex; gap: 1px; background: rgba(255,255,255,.09);
              border-radius: var(--r-kap); padding: 2px; }
.til-tanlov a { font-size: 11px; font-weight: 600; letter-spacing: .05em;
                color: rgba(255,255,255,.6); padding: 4px 9px;
                border-radius: var(--r-kap); }
.til-tanlov a:hover { color: #fff; text-decoration: none; }
.til-tanlov a.faol { background: rgba(255,255,255,.2); color: #fff; }

.limit-chip {
  font-size: 12px; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08); padding: 5px 12px; border-radius: var(--r-kap);
  display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums;
}
.limit-bar { width: 50px; height: 4px; border-radius: 2px;
             background: rgba(255,255,255,.2); overflow: hidden; }
.limit-bar i { display: block; height: 100%; background: #4fd1a5; }
.limit-bar i.kam { background: #f0c35c; }
.limit-bar i.yoq { background: #ef7676; }
.fv-chip { font-size: 12.5px; color: rgba(255,255,255,.85); }
.fv-chip b { color: #fff; font-weight: 600; }

@media (max-width: 880px) {
  .bosh::before { opacity: .22; }
  .qutcha { padding: 11px 14px; min-width: 0; }
  .qutcha .qiy { font-size: 20px; }
  .bosh-ich { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px 16px; }
  .menyu { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .bosh-ong { gap: 10px; }
  .fv-chip { display: none; }
}

/* ============================================================  tuzilma  === */

.sahn { max-width: 1480px; margin: 0 auto; padding: 26px 22px 60px; }
.sahn.tor { max-width: 880px; }
@media (max-width: 640px) { .sahn { padding: 18px 16px 44px; } }

h1 { font-size: 23px; font-weight: 640; letter-spacing: -.024em; margin: 0 0 4px; }
h2 { font-size: 15px; font-weight: 620; letter-spacing: -.012em; margin: 0 0 12px; }
.tavsif { color: var(--matn-2); font-size: 13.5px; margin: 0 0 22px; }

.karta {
  background: var(--oq); border: 1px solid var(--chiziq);
  border-radius: var(--r); box-shadow: var(--soya);
}
.karta + .karta { margin-top: 18px; }
.karta-bosh {
  padding: 14px 18px; border-bottom: 1px solid var(--chiziq-2);
  display: flex; align-items: center; gap: 12px;
}
.karta-bosh h2 { margin: 0; }
.karta-tan { padding: 18px; }

.ustun-2 { display: grid; grid-template-columns: 1fr 320px; gap: 18px;
           align-items: start; }
@media (max-width: 1000px) { .ustun-2 { grid-template-columns: 1fr; } }

/* perforatsiya — blister yirtig'i */
.perf { height: 1px; background-image: radial-gradient(circle, var(--chiziq) 1.4px, transparent 1.5px);
        background-size: 10px 1px; margin: 0; border: none; }

/* ==============================================================  forma  === */

.maydon label {
  display: block; font-size: 12px; font-weight: 600; color: var(--matn-2);
  margin-bottom: 5px; letter-spacing: .01em;
}
.maydon label span { font-weight: 400; color: var(--matn-3); }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
  color: var(--matn); background: var(--oq);
  border: 1px solid var(--chiziq); border-radius: 9px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
/* Parol maydoni — «ko'rsatish» tugmasi (static/parol.js) */
.parol-qobiq { position: relative; display: block; }
.parol-qobiq input { padding-right: 46px; }
.parol-ko-z {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--matn-3); cursor: pointer;
}
.parol-ko-z:hover { color: var(--matn); background: rgba(15,36,64,.06); }
.parol-ko-z:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.parol-ko-z[aria-pressed="true"] { color: var(--teal); }
input:focus, select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,127,116,.14);
}
input.katta { padding: 14px 16px; font-size: 16px; border-radius: var(--r-kap);
              padding-left: 44px; }
.qidiruv-belgi { position: absolute; left: 16px; top: 50%; margin-top: -9px;
                 color: var(--matn-3); pointer-events: none; }

.tugma {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-size: 14px; font-weight: 580; font-family: inherit;
  border: 1px solid transparent; border-radius: var(--r-kap); cursor: pointer;
  background: var(--teal); color: #fff; transition: background .12s, transform .06s;
}
.tugma:hover { background: var(--teal-2); text-decoration: none; }
.tugma:active { transform: translateY(1px); }
.tugma:disabled { opacity: .7; cursor: default; }
.tugma.ikkilamchi { background: var(--oq); color: var(--matn);
                    border-color: var(--chiziq); }
.tugma.ikkilamchi:hover { background: var(--chiziq-2); }
.tugma.kichik { padding: 7px 14px; font-size: 13px; }
.tugma.oq-tugma { background: #fff; color: var(--navy); font-weight: 620; }
.tugma.oq-tugma:hover { background: #e7eef8; color: var(--navy); }

.qo-shimcha-ochish {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; color: var(--teal); font-weight: 540; user-select: none;
}
.qo-shimcha-ochish::before {
  content: ""; width: 14px; height: 8px; border-radius: var(--r-kap);
  border: 1.5px solid currentColor; transition: background .12s;
}
details[open] .qo-shimcha-ochish::before { background: currentColor; }
.qo-shimcha-ochish::-webkit-details-marker { display: none; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.shartlar-belgi { display: flex; gap: 10px; align-items: flex-start; font-size: 13px;
                  color: var(--matn-2); margin-bottom: 18px; cursor: pointer; }
.shartlar-belgi input { width: auto; margin-top: 2px; }

/* ===========================================================  xabarlar  === */

.xabar {
  padding: 12px 15px; border-radius: var(--r); font-size: 13.5px;
  border: 1px solid; margin-bottom: 16px;
}
.xabar.xato { background: #fdf1f1; border-color: #f2c9c9; color: var(--qizil-2); }
.xabar.ogoh { background: #fdf8e8; border-color: #f0e0ae; color: var(--sariq-2); }
.xabar.malumot { background: var(--teal-yorug); border-color: #c4e3de; color: #0a5a52; }

/* =============================================================  xulosa  === */

.xulosa { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.qutcha {
  background: var(--oq); border: 1px solid var(--chiziq); border-radius: var(--r);
  padding: 13px 17px; min-width: 128px; box-shadow: var(--soya); flex: 1 1 128px;
  position: relative; overflow: hidden;
}
.qutcha::after {                      /* chap chetdagi kapsula chizig'i */
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: var(--r-kap); background: var(--chiziq);
}
.qutcha.yaxshi::after { background: var(--yashil-2); }
.qutcha.ogoh::after { background: var(--sariq-2); }
.qutcha .qiy { font-size: 23px; font-weight: 640; letter-spacing: -.024em;
               line-height: 1.15; font-variant-numeric: tabular-nums; }
.qutcha .yor { font-size: 11px; color: var(--matn-3); text-transform: uppercase;
               letter-spacing: .06em; margin-top: 3px; font-weight: 560; }
.qutcha.ogoh .qiy { color: var(--sariq-2); }
.qutcha.yaxshi .qiy { color: var(--yashil-2); }

/* =============================================================  jadval  === */

.jadval-asboblar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.asbob {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 12.5px; font-weight: 520; color: var(--matn-2);
  background: var(--oq); border: 1px solid var(--chiziq);
  border-radius: var(--r-kap); padding: 6px 13px; font-family: inherit;
  user-select: none;
}
.asbob:hover { border-color: var(--teal); color: var(--teal); }
.asbob.faol { background: var(--teal-yorug); border-color: #bfe0db; color: var(--teal-2); }
.asbob input { display: none; }
.asbob .nuqta { width: 7px; height: 7px; border-radius: 50%; background: var(--chiziq); }
.asbob.faol .nuqta { background: var(--teal); }
.asbob-soni { margin-left: auto; font-size: 12px; color: var(--matn-3);
              font-variant-numeric: tabular-nums; }

.ustun-menyu { position: relative; }
.ustun-royxat {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px;
  background: var(--oq); border: 1px solid var(--chiziq); border-radius: var(--r);
  box-shadow: var(--soya-2); padding: 6px;
}
.ustun-royxat label {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--matn);
}
.ustun-royxat label:hover { background: var(--chiziq-2); }
.ustun-royxat input { width: auto; margin: 0; accent-color: var(--teal); }

.jadval-o { overflow: auto; border-radius: var(--r); border: 1px solid var(--chiziq);
            background: var(--oq); box-shadow: var(--soya); }
/* Kenglik QAT'IY belgilanadi: reestrlarda bo'sh joysiz juda uzun matnlar
   uchraydi («480mg+550mg+590mg+…», Rossiyaning butun yuridik yozuvi). Erkin
   joylashuvda ular ustunni cho'zib, qo'shni ustun ustiga chiqib ketardi. */
table.j {
  border-collapse: separate; border-spacing: 0; font-size: 13px;
  table-layout: fixed; width: 100%; min-width: 1040px;   /* 10 davlat bir qarashda */
}
table.j th, table.j td {
  padding: 9px 11px; border-bottom: 1px solid var(--chiziq-2);
  text-align: left; vertical-align: top;
}
table.j thead th {
  position: sticky; top: 0; z-index: 3;
  background: var(--navy-2); color: #fff; font-weight: 580; font-size: 12px;
  letter-spacing: .01em; white-space: nowrap; border-bottom: none;
  user-select: none;
}
table.j thead th.saralanadi { cursor: pointer; }
table.j thead th.saralanadi:hover { background: var(--navy-3); }
table.j thead th .ok { opacity: 0; margin-left: 4px; font-size: 10px; }
table.j thead th.s-asc .ok, table.j thead th.s-desc .ok { opacity: 1; }
table.j thead th.s-desc .ok { display: inline-block; transform: rotate(180deg); }
/* Davlat ustuni sarlavhasi: bayroq + nom, pastida valyuta kodi —
   birja taxtasidagi instrument yorlig'i kabi. */
/* Davlat ustuni sarlavhasi — birja taxtasidagi instrument yorlig'i:
   bayroq tepada, davlat nomi ostida, eng pastda valyuta kodi. Tik
   joylashuv nomga butun ustun kengligini beradi, shu sababli u kesilmaydi. */
table.j thead th.dav { text-align: right; padding: 8px 7px 7px; }
table.j thead th.dav .dav-bosh {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
table.j thead th.dav .bayroq {
  flex: none; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}
table.j thead th.dav .nom {
  font-size: 11px; line-height: 1.2; max-width: 100%; text-align: right;
  white-space: normal; overflow-wrap: anywhere;
}
/* saralash strelkasi faqat saralanganda joy egallaydi — aks holda
   «Qozog'iston» kabi nomlar keraksiz ikkinchi qatorga tushardi */
table.j thead th.dav:not(.s-asc):not(.s-desc) .ok { display: none; }
table.j thead th .kurs-kichik { display: block; font-size: 9.5px; font-weight: 500;
                                color: #b9c6d8; white-space: nowrap; }
table.j thead th .val { display: block; font-weight: 600; font-size: 9.5px;
                        color: #7fdccf; letter-spacing: .08em; }
table.j tbody tr:hover td { background: #fafbfd; }
/* ustun kengliklari — qat'iy joylashuv uchun */
table.j col.c-tr     { width: 30px; }
table.j col.c-dori   { width: 15%; }
table.j col.c-doza   { width: 14%; }
table.j col.c-ishlab { width: 12%; }
/* davlat ustunlari qolgan joyni teng bo'lib oladi */
@media (max-width: 1360px) {
  table.j col.c-dori   { width: 13%; }
  table.j col.c-doza   { width: 12%; }
  table.j col.c-ishlab { width: 10%; }
}
table.j td.dori .mnn {
  display: block; margin-top: 2px; font-size: 11px; font-weight: 500;
  color: var(--matn-3); overflow-wrap: anywhere;
}
table.j td.dori .brend-nom { font-weight: 600; -webkit-line-clamp: 2; }

table.j td.tr { color: var(--matn-3); font-variant-numeric: tabular-nums; }
table.j td.inn { font-weight: 560; }
table.j td.doza { color: var(--matn-2); }
table.j td.ishlab { color: var(--matn-3); font-size: 12px; }
table.j td.inn, table.j td.doza, table.j td.ishlab, table.j td.dori {
  overflow-wrap: anywhere;              /* bo'shliqsiz uzun matn ham bo'linadi */
}
table.j td .qisqa {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; cursor: help;
}
table.j td.doza .qisqa { -webkit-line-clamp: 2; }

/* Narx katagi — kotirovka: raqamlar bir xil kenglikda, ustunma-ustun
   tik turadi, shunda ko'z solishtirishga qiynalmaydi. */
td.narx {
  text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
  cursor: pointer; position: relative; font-weight: 600; font-size: 13px;
  transition: background .18s ease, box-shadow .18s ease;
}
td.narx.yashil  { background: var(--yashil); color: #124a26; }
td.narx.sariq   { background: var(--sariq);  color: #6e4d00; }
td.narx.kulrang { background: var(--kulrang); }
td.narx.qizil   { background: var(--qizil); }
td.narx.xoli    { background: var(--oq); color: var(--matn-3); }
/* §3.3 parallel import — faqat ma'lumot. Rang bilan bir qatorda chiziqli
   naqsh va «P.I.» yorlig'i: rangni ajrata olmaydigan ko'z ham farqni ko'radi. */
td.narx.parallel {
  background: repeating-linear-gradient(135deg, #f3f0fa 0 6px, #e9e3f5 6px 12px);
  color: #5b4a86;
}
td.narx.parallel .pi-narx { font-style: italic; }
td.narx .bel.pi {
  background: #5b4a86; color: #fff; opacity: 1;
  padding: 0 4px; border-radius: 3px; font-style: normal; letter-spacing: .02em;
}
/* Misr — narxni foydalanuvchi o'zi kiritadi */
td.narx.kiritish { background: var(--oq); }
td.narx.qo_lda   { background: #e3eefa; color: #1d4f86; }
input.qo-lda-kirit {
  width: 100%; box-sizing: border-box; min-width: 0;
  border: 1px dashed #9db4d3; border-radius: 6px; background: transparent;
  padding: 4px 6px; font: inherit; font-weight: 600; color: inherit;
  font-variant-numeric: tabular-nums;
}
input.qo-lda-kirit:focus { outline: 2px solid var(--teal); outline-offset: 0; border-style: solid; background: #fff; }
input.qo-lda-kirit::placeholder { color: #b6bfcc; font-weight: 400; }
.qo-lda-forma {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 12px 0 4px; padding: 10px 14px;
  border: 1px solid #d5e2f2; border-radius: 10px; background: #f4f8fd;
}
.qo-lda-matn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #1d4f86; }
.legenda i.qo-lda-namuna { background: #e3eefa; border: 1px dashed #9db4d3; }
.legenda i.pi-namuna {
  background: repeating-linear-gradient(135deg, #f3f0fa 0 3px, #d9d0ee 3px 6px);
  border: 1px solid #b9acd9;
}
table.j tbody tr:hover td.narx.yashil  { background: #cfeed6; }
table.j tbody tr:hover td.narx.sariq   { background: #fbe9ae; }
td.narx .bel { font-size: 10px; opacity: .75; margin-left: 3px; }
td.narx .bo-sh { color: #b6bfcc; }
td.narx .narx-yoq { font-size: 11px; font-weight: 500; opacity: .8; }
td.narx.tanlangan { outline: 2px solid var(--teal); outline-offset: -2px; }

.j-yashirin { display: none !important; }
/* Qat'iy joylashuvda (`table-layout: fixed`) kataklarni yashirish yetmaydi —
   `col` kengligi joyni band qilib turadi. Shuning uchun uni ham nolga tushiramiz. */
table.j col.j-yashirin { display: table-column !important; width: 0 !important;
                         visibility: collapse; }

/* --- telefon: jadval kartalarga aylanadi ----------------------------------- */

@media (max-width: 900px) {
  .jadval-o { overflow: visible; border: none; background: none; box-shadow: none; }
  table.j { table-layout: auto; min-width: 0; }
  table.j, table.j tbody, table.j tr, table.j td { display: block; width: auto; }
  table.j thead, table.j colgroup { display: none; }
  table.j tr {
    background: var(--oq); border: 1px solid var(--chiziq); border-radius: var(--r);
    box-shadow: var(--soya); margin-bottom: 12px; padding: 12px 14px 8px;
    position: relative;
  }
  table.j td { border: none; padding: 3px 0; max-width: none !important; }
  table.j td::before {
    content: attr(data-yorliq); display: block; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: .06em; color: var(--matn-3);
    font-weight: 600; margin-bottom: 1px;
  }
  table.j td.tr {
    position: absolute; right: 12px; top: 12px; width: auto;
    font-size: 11px; color: var(--matn-3);
  }
  table.j td.tr::before { display: none; }
  table.j td.dori { font-size: 15px; font-weight: 620; padding-right: 40px; }
  table.j td .qisqa { -webkit-line-clamp: 4; }

  /* narx kataklari — ichki to'r */
  table.j td.narx {
    display: inline-flex; flex-direction: column; align-items: flex-start;
    width: calc(33.333% - 6px); margin: 4px 3px 0 0; padding: 7px 9px;
    border-radius: 8px; text-align: left; font-size: 13px;
  }
  table.j td.narx::before { margin-bottom: 2px; }
  table.j td.narx.xoli { background: var(--chiziq-2); }
  table.j tbody tr:hover td { background: none; }
  table.j tbody tr:hover td.narx.yashil { background: var(--yashil); }
  table.j tbody tr:hover td.narx.sariq { background: var(--sariq); }
}

/* ===========================================================  izohlar  === */

/* sichqoncha bilan — suzuvchi oyna */
.izoh-oyna {
  position: fixed; z-index: 200; max-width: 480px;
  background: #0d1a2b; color: #e7edf6; font-size: 12px; line-height: 1.55;
  padding: 12px 14px; border-radius: 10px; white-space: pre-wrap;
  box-shadow: var(--soya-2); pointer-events: none; opacity: 0;
  transition: opacity .1s; font-family: ui-monospace, "SF Mono", Menlo,
  Consolas, monospace;
}
.izoh-oyna.ko-rin { opacity: 1; }

/* bosilganda — yopiladigan panel (telefonda pastdan chiqadi) */
.izoh-panel {
  position: fixed; z-index: 220; right: 22px; bottom: 22px; width: 460px;
  max-width: calc(100vw - 32px); max-height: 70vh; overflow: auto;
  background: #0d1a2b; color: #e7edf6; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(8,18,32,.4); padding: 16px 18px 18px;
  font-size: 12.5px; line-height: 1.6; white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: opacity .14s, transform .14s;
}
.izoh-panel.ko-rin { transform: none; opacity: 1; pointer-events: auto; }
.izoh-panel-bosh {
  display: flex; align-items: center; gap: 10px; margin: -4px -4px 10px 0;
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600;
  color: #fff;
}
.izoh-panel-bosh .davlat { display: flex; align-items: center; gap: 8px; }
.izoh-panel-bosh .narx { margin-left: auto; font-variant-numeric: tabular-nums;
                         color: #7fe0c4; }
.izoh-yop {
  background: rgba(255,255,255,.12); border: none; color: #fff; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; font-size: 15px; line-height: 1;
  font-family: inherit; flex: none;
}
.izoh-yop:hover { background: rgba(255,255,255,.22); }
@media (max-width: 720px) {
  .izoh-panel { left: 0; right: 0; bottom: 0; width: auto; max-width: none;
                border-radius: 16px 16px 0 0; max-height: 78vh; }
  .izoh-oyna { display: none; }
}

/* ==========================================================  legenda  === */

.legenda { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px;
           color: var(--matn-2); margin-top: 12px; }
.legenda i { display: inline-block; width: 14px; height: 8px;
             border-radius: var(--r-kap); margin-right: 6px; vertical-align: 0;
             border: 1px solid rgba(0,0,0,.08); }

/* ============================================================  tablar  === */

.tablar { display: flex; gap: 2px; border-bottom: 1px solid var(--chiziq);
          margin: 26px 0 0; overflow-x: auto; }
.tablar button {
  background: none; border: none; font-family: inherit; font-size: 13.5px;
  font-weight: 540; color: var(--matn-2); padding: 10px 15px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tablar button:hover { color: var(--matn); }
.tablar button.faol { color: var(--teal-2); border-bottom-color: var(--teal); }
.tablar button .son {
  display: inline-block; background: var(--chiziq-2); color: var(--matn-2);
  border-radius: var(--r-kap); padding: 1px 8px; font-size: 11px; margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.tab-tan { display: none; padding-top: 18px; }
.tab-tan.faol { display: block; }

/* =============================================================  hisob  === */

.hisob-satr { border: 1px solid var(--chiziq); border-radius: var(--r);
              background: var(--oq); padding: 15px 17px; margin-bottom: 10px;
              box-shadow: var(--soya); }
.hisob-satr h3 { font-size: 13px; font-weight: 600; margin: 0 0 10px;
                 color: var(--matn-2); }
.hisob-qiy { display: flex; gap: 26px; flex-wrap: wrap; }
.hisob-qiy div .q { font-size: 17px; font-weight: 620; font-variant-numeric: tabular-nums; }
.hisob-qiy div .y { font-size: 11px; color: var(--matn-3); text-transform: uppercase;
                    letter-spacing: .05em; }
/* Kotirovkalar ro'yxati — birja taxtasidagi qatorlar: bayroq, davlat,
   reestrdagi asl narx va uning so'mdagi ko'rinishi. */
.kotirovka-ro { display: grid; gap: 4px; margin-top: 13px;
                grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.kt {
  display: grid; grid-template-columns: auto 1fr auto auto auto;
  align-items: center; gap: 9px;
  padding: 7px 12px; border-radius: 9px; background: var(--chiziq-2);
  border: 1px solid transparent; transition: background .16s ease,
          border-color .16s ease, transform .16s ease;
}
.kt:hover { background: var(--oq); border-color: var(--chiziq);
            transform: translateX(2px); box-shadow: var(--soya); }
.kt .bayroq { flex: none; box-shadow: 0 0 0 1px rgba(15,36,64,.14); }
.kt-dav { font-size: 12.5px; font-weight: 550; color: var(--matn-2);
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-asl, .kt-uzs { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kt-asl { font-size: 12.5px; color: var(--matn-2); }
.kt-uzs { font-size: 13.5px; font-weight: 640; color: var(--matn); }
.kt-asl em, .kt-uzs em { font-style: normal; font-size: 10px; font-weight: 600;
                         letter-spacing: .05em; color: var(--matn-3); }
.kt-strelka { color: var(--teal); font-size: 12px; opacity: .6; }
@media (max-width: 520px) {
  .kt { grid-template-columns: auto 1fr auto; gap: 7px; padding: 8px 10px; }
  .kt-asl, .kt-strelka { display: none; }
}

/* ============================================================  kirish  === */

.kirish-sahn { min-height: 100vh; display: grid; place-items: center; padding: 20px;
               background: linear-gradient(160deg, #0f2440, #0a1c33 55%, #123a52); }
.kirish-sahn::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='36'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05'%3E%3Crect x='4' y='5' width='20' height='11' rx='5.5'/%3E%3Crect x='32' y='5' width='20' height='11' rx='5.5'/%3E%3Crect x='18' y='21' width='20' height='11' rx='5.5'/%3E%3C/g%3E%3C/svg%3E");
}
.kirish-karta { width: 380px; max-width: 100%; background: #fff; border-radius: 16px;
                padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.34);
                position: relative; }
.kirish-karta .brend { color: var(--navy); margin-bottom: 4px; }
.kirish-karta .brend small { color: var(--matn-3); }
.kirish-karta .tavsif { margin-bottom: 22px; font-size: 13px; }

/* =============================================================  tarix  === */

.tarix-ro { list-style: none; margin: 0; padding: 0; }
.tarix-ro li { border-bottom: 1px solid var(--chiziq-2); }
.tarix-ro li:last-child { border-bottom: none; }
.tarix-ro a { display: flex; align-items: center; gap: 12px; padding: 10px 2px;
              color: var(--matn); flex-wrap: wrap; }
.tarix-ro a:hover { text-decoration: none; color: var(--teal-2); }
.tarix-ro .nom { font-weight: 550; flex: 1; min-width: 120px; }
.tarix-ro .meta { font-size: 11.5px; color: var(--matn-3); white-space: nowrap; }
.rozetka { font-size: 11px; font-weight: 600; padding: 2px 9px;
           border-radius: var(--r-kap); background: var(--chiziq-2);
           color: var(--matn-2); white-space: nowrap; }
.rozetka.yaxshi { background: var(--yashil); color: var(--yashil-2); }
.rozetka.ogoh { background: var(--sariq); color: var(--sariq-2); }
.rozetka.yoq { background: var(--qizil); color: var(--qizil-2); }

.bo-sh-holat { text-align: center; padding: 40px 20px; color: var(--matn-3);
               font-size: 13.5px; }

/* =============================================================  futer  === */

.futer { max-width: 1480px; margin: 0 auto; padding: 22px; font-size: 12px;
         color: var(--matn-3); display: flex; gap: 18px; flex-wrap: wrap;
         border-top: 1px solid var(--chiziq); }
.yuklanmoqda { display: none; }
.yuklanmoqda.faol { display: inline-flex; }
@keyframes aylan { to { transform: rotate(360deg); } }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35);
        border-top-color: #fff; border-radius: 50%; animation: aylan .7s linear infinite; }

/* =======================================================  takliflar  === */

.taklif-o { position: relative; }
.takliflar {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 40;
  background: var(--oq); border: 1px solid var(--chiziq); border-radius: 12px;
  box-shadow: var(--soya-2); overflow: hidden; max-height: 340px; overflow-y: auto;
}
.taklif {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 15px;
  cursor: pointer; border-bottom: 1px solid var(--chiziq-2);
}
.taklif:last-child { border-bottom: none; }
.taklif:hover, .taklif.faol { background: var(--teal-yorug); }
.taklif .tn { font-weight: 560; font-size: 14px; }
.taklif .ti { font-size: 12px; color: var(--matn-3); flex: 1;
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taklif .td { font-size: 11.5px; color: var(--teal-2); background: var(--teal-yorug);
              border-radius: var(--r-kap); padding: 2px 10px; white-space: nowrap;
              margin-left: auto; }

/* «yoki» ajratgichi — perforatsiya chizig'i uslubida */
.yoki {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 14px;
  color: var(--matn-3); font-size: 12px; text-transform: uppercase;
  letter-spacing: .09em; font-weight: 600;
}
.yoki::before, .yoki::after {
  content: ""; flex: 1; height: 1px;
  background-image: linear-gradient(to right, var(--chiziq) 0 4px,
                                     transparent 4px 9px);
  background-size: 9px 1px;
}

/* =======================================================  tanishtiruv  === */

.qahramon {
  background: linear-gradient(165deg, #0f2440 0%, #0a1c33 52%, #14405a 100%);
  color: #fff; padding: 64px 22px 70px; position: relative; overflow: hidden;
}
.qahramon::before {              /* blister kataklari */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='54'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Crect x='6' y='8' width='30' height='16' rx='8'/%3E%3Crect x='48' y='8' width='30' height='16' rx='8'/%3E%3Crect x='27' y='31' width='30' height='16' rx='8'/%3E%3C/g%3E%3C/svg%3E");
}
.qahramon::after {               /* pastdagi teal yorug'lik */
  content: ""; position: absolute; left: 50%; bottom: -160px; width: 620px;
  height: 320px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(20,160,145,.3), transparent 68%);
  pointer-events: none;
}
.qahramon-ich { max-width: 1000px; margin: 0 auto; text-align: center;
                position: relative; z-index: 1; }
.qahramon h1 { font-size: 40px; line-height: 1.14; letter-spacing: -.032em;
               margin: 0 0 16px; font-weight: 660; }
.qahramon p { font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.8);
              max-width: 680px; margin: 0 auto 30px; }
.qahramon .tugmalar { display: flex; gap: 10px; justify-content: center;
                      flex-wrap: wrap; }
.qahramon .tugma { padding: 14px 28px; font-size: 15px; }
.qahramon .tugma.ikkilamchi { background: rgba(255,255,255,.1); color: #fff;
                              border-color: rgba(255,255,255,.26); }
.qahramon .tugma.ikkilamchi:hover { background: rgba(255,255,255,.18); }
@media (max-width: 640px) {
  .qahramon { padding: 44px 18px 50px; }
  .qahramon h1 { font-size: 27px; }
  .qahramon p { font-size: 15px; }
}

.raqamlar { display: flex; gap: 42px; justify-content: center; flex-wrap: wrap;
            margin-top: 46px; }
.raqamlar div { text-align: center; }
.raqamlar .q { font-size: 27px; font-weight: 650; letter-spacing: -.024em;
               font-variant-numeric: tabular-nums; }
.raqamlar .y { font-size: 11px; color: rgba(255,255,255,.55);
               text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
@media (max-width: 640px) { .raqamlar { gap: 26px; } .raqamlar .q { font-size: 22px; } }

.bo-lim { padding: 54px 22px; }
.bo-lim-ich { max-width: 1100px; margin: 0 auto; }
.bo-lim h2 { font-size: 25px; letter-spacing: -.024em; margin: 0 0 8px;
             text-align: center; font-weight: 640; }
.bo-lim .kirish-matn { text-align: center; color: var(--matn-2); font-size: 14.5px;
                       max-width: 620px; margin: 0 auto 34px; }
.bo-lim.oq { background: var(--oq); border-top: 1px solid var(--chiziq);
             border-bottom: 1px solid var(--chiziq); }

.xususiyatlar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .xususiyatlar { grid-template-columns: 1fr; } }
.xususiyat { background: var(--oq); border: 1px solid var(--chiziq);
             border-radius: var(--r); padding: 22px; box-shadow: var(--soya);
             position: relative; }
.xususiyat::before {                       /* kichik kapsula belgisi */
  content: ""; display: block; width: 26px; height: 7px; border-radius: var(--r-kap);
  background: linear-gradient(90deg, var(--navy) 50%, var(--teal) 50%);
  margin-bottom: 13px;
}
.bo-lim.oq .xususiyat { background: var(--fon); box-shadow: none; }
.xususiyat h3 { font-size: 15px; margin: 0 0 8px; font-weight: 620; }
.xususiyat p { margin: 0; font-size: 13.5px; color: var(--matn-2); line-height: 1.6; }

/* ====================================================  BOZOR TAXTASI  ===
   8 ta reestr — birja taxtasi ko'rinishida. Har bir katak: bayroq, davlat,
   bugungi kurs va kunlik o'zgarish. O'zgarish rangi YOLG'IZ ishlamaydi —
   yonida har doim strelka va ishora turadi. */

.taxta {
  background: linear-gradient(180deg, #0f2440 0%, #0c1e37 100%);
  border-radius: 16px; padding: 16px; box-shadow: var(--soya-2);
  max-width: 1100px; margin: 0 auto; position: relative; overflow: hidden;
}
.taxta::before {                       /* blister kataklari — juda kuchsiz */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='46'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05'%3E%3Crect x='5' y='7' width='26' height='14' rx='7'/%3E%3Crect x='41' y='7' width='26' height='14' rx='7'/%3E%3Crect x='23' y='27' width='26' height='14' rx='7'/%3E%3C/g%3E%3C/svg%3E");
}
.taxta-bosh {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 2px 6px 14px; position: relative;
}
.taxta-nom { display: inline-flex; align-items: center; gap: 8px; color: #fff;
             font-size: 12px; font-weight: 600; letter-spacing: .07em;
             text-transform: uppercase; }
.taxta-sana { color: rgba(255,255,255,.5); font-size: 11.5px; }

.taxta-setka {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  position: relative;
}
@media (max-width: 900px) { .taxta-setka { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .taxta-setka { grid-template-columns: 1fr; } }

.taxta-katak {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 13px 14px 11px; color: #fff;
  transition: transform .22s cubic-bezier(.22,.8,.3,1), background .22s ease,
              border-color .22s ease;
  animation: kirib .5s cubic-bezier(.22,.8,.3,1) var(--kechikish, 0ms) both;
}
.taxta-katak:hover {
  transform: translateY(-3px); background: rgba(255,255,255,.09);
  border-color: rgba(127,220,207,.34);
}
.tk-bosh { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.tk-bosh .bayroq { flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tk-dav { font-size: 12.5px; font-weight: 560; color: rgba(255,255,255,.88);
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-narx {
  font-size: 21px; font-weight: 640; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.tk-narx small { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.45);
                 margin-left: 5px; letter-spacing: 0; }
.tk-past { display: flex; align-items: center; justify-content: space-between;
           gap: 8px; margin-top: 7px; }
.tk-val { font-size: 11px; font-weight: 600; letter-spacing: .06em;
          color: #7fdccf; }
.tk-ozg { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
          padding: 2px 7px; border-radius: var(--r-kap);
          color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.taxta-katak.o-sdi  .tk-ozg { color: #3fd39b; background: rgba(63,211,155,.15); }
.taxta-katak.tushdi .tk-ozg { color: #ff8a82; background: rgba(255,138,130,.15); }
/* chap chekkada yupqa yo'nalish chizig'i — rangdan tashqari ikkinchi ishora */
.taxta-katak.o-sdi  { border-left: 2px solid rgba(63,211,155,.5); }
.taxta-katak.tushdi { border-left: 2px solid rgba(255,138,130,.5); }

.tarif-setka { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
               max-width: 900px; margin: 0 auto; }
@media (max-width: 860px) { .tarif-setka { grid-template-columns: 1fr; } }
.tarif { background: var(--oq); border: 1px solid var(--chiziq); border-radius: 14px;
         padding: 26px; box-shadow: var(--soya); display: flex; flex-direction: column; }
.tarif.tanlangan { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,127,116,.1),
                   var(--soya); }
.tarif .nom { font-size: 12px; font-weight: 640; text-transform: uppercase;
              letter-spacing: .07em; color: var(--matn-3); }
.tarif .narx { font-size: 30px; font-weight: 660; letter-spacing: -.028em;
               margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.tarif .narx small { font-size: 13px; font-weight: 450; color: var(--matn-3);
                     letter-spacing: 0; }
.tarif ul { list-style: none; padding: 0; margin: 18px 0 22px; font-size: 13.5px;
            color: var(--matn-2); }
.tarif ul li { padding: 5px 0 5px 26px; position: relative; }
.tarif ul li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 15px; height: 6px;
  border-radius: var(--r-kap); background: var(--teal); opacity: .55;
}
.tarif .tugma { margin-top: auto; }

/* ------------------------------------------------ narx tarqalish chizig'i
   Bitta o'q — so'mdagi narx. Har bir davlat bitta nuqta; kim qayerda
   turgani yozuv bilan (rang bilan emas) ko'rsatiladi: eng chap va eng
   o'ng qiymat yorliqlangan, qolganlari sichqoncha tegganda ochiladi. */

/* Narx oralig'i — eng pastdan eng yuqorigacha bo'lgan yo'l, unda har bir
   davlat o'z bayrog'i bilan turadi. Bitta rang, to'g'ridan-to'g'ri yorliq:
   kim qayerda turgani bayroqdan ko'rinadi, rangdan emas. */
.tarqalish { position: relative; height: 58px; margin: 18px 12px 2px; }
.tq-yol {
  position: absolute; left: 0; right: 0; top: 20px; height: 6px;
  border-radius: var(--r-kap); background: var(--chiziq);
  overflow: hidden;
}
.tq-toldirish {
  position: absolute; inset: 0; border-radius: var(--r-kap);
  background: linear-gradient(90deg, #7fd8cd, var(--teal) 60%, var(--navy-3));
  transform-origin: left; animation: oraliq_tol .8s cubic-bezier(.22,.8,.3,1) both;
}
.tq-nuqta {
  position: absolute; top: 11px; margin-left: -12px;
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 6px; background: var(--oq);
  box-shadow: 0 1px 4px rgba(15,36,64,.3); cursor: help;
  transition: transform .14s cubic-bezier(.22,.8,.3,1);
}
.tq-nuqta .bayroq { display: block; border-radius: 2px; }
.tq-nuqta:hover { transform: scale(1.3) translateY(-2px); z-index: 3; }
.tq-yorliq {
  position: absolute; top: 40px; font-size: 11px; color: var(--matn-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tq-yorliq.chap { left: 0; }
.tq-yorliq.ong { right: 0; }
.tq-izoh { margin: 2px 0 0; font-size: 12.5px; color: var(--sariq-2);
           font-weight: 520; }

/* ==========================================================================
   HARAKAT VA RANG
   Qoida: animatsiya diqqatni tortmaydi — sahifa ochilganda mazmun yumshoq
   joyiga tushadi, bosilganda javob beradi, xolos. Ma'lumot ranglariga
   (yashil/sariq/kulrang/qizil) hech qanday animatsiya tegmaydi.
   ========================================================================== */

@keyframes kirib {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  0%   { opacity: 0; transform: scale(.4); }
  70%  { transform: scale(1.14); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes nur {
  0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}
@keyframes suz {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
/* tiker lentasi — ro'yxat ikki marta chizilgan, -50% uzilishsiz qaytaradi */
@keyframes oqim { from { transform: translateX(0); }
                  to   { transform: translateX(-50%); } }
/* «efir» nuqtasi — kurs jonli ekanini bildiradi */
@keyframes puls {
  0%   { box-shadow: 0 0 0 0 rgba(63,211,155,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(63,211,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,211,155,0); }
}
/* qahramon fonidagi kapsulalar — juda sekin suzadi */
@keyframes suzish {
  0%, 100% { transform: translate3d(0,0,0) rotate(var(--bur, 0deg)); }
  50%      { transform: translate3d(0,-22px,0) rotate(calc(var(--bur, 0deg) + 6deg)); }
}
/* narx katagi yangilanganda — bir marta yonib o'chadi (birja taxtasidagidek) */
@keyframes yonish {
  0%   { box-shadow: inset 0 0 0 2px rgba(20,160,145,.55); }
  100% { box-shadow: inset 0 0 0 2px rgba(20,160,145,0); }
}
/* skroll bilan chiqadigan bo'limlar */
@keyframes chiqish {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* --- bosh sahifa: bosqichma-bosqich kirish --- */
.qahramon h1 { animation: kirib .6s cubic-bezier(.22,.8,.3,1) both; }
.qahramon p  { animation: kirib .6s cubic-bezier(.22,.8,.3,1) .1s both; }
.qahramon .tugmalar { animation: kirib .6s cubic-bezier(.22,.8,.3,1) .2s both; }
.raqamlar div { animation: kirib .55s cubic-bezier(.22,.8,.3,1) both; }
.raqamlar div:nth-child(1) { animation-delay: .30s; }
.raqamlar div:nth-child(2) { animation-delay: .38s; }
.raqamlar div:nth-child(3) { animation-delay: .46s; }
.raqamlar div:nth-child(4) { animation-delay: .54s; }
.qahramon::after { animation: nur 7s ease-in-out infinite; }

/* --- kartalar: ko'tarilish va bosqichli kirish --- */
.xususiyat, .tarif, .bayroq {
  animation: kirib .5s cubic-bezier(.22,.8,.3,1) both;
  transition: transform .16s cubic-bezier(.22,.8,.3,1), box-shadow .16s;
}
.xususiyat:nth-child(1), .tarif:nth-child(1), .bayroq:nth-child(1) { animation-delay: .04s; }
.xususiyat:nth-child(2), .tarif:nth-child(2), .bayroq:nth-child(2) { animation-delay: .10s; }
.xususiyat:nth-child(3), .tarif:nth-child(3), .bayroq:nth-child(3) { animation-delay: .16s; }
.xususiyat:nth-child(4), .bayroq:nth-child(4) { animation-delay: .22s; }
.xususiyat:nth-child(5), .bayroq:nth-child(5) { animation-delay: .28s; }
.xususiyat:nth-child(6), .bayroq:nth-child(6) { animation-delay: .34s; }
.bayroq:nth-child(7) { animation-delay: .40s; }
.bayroq:nth-child(8) { animation-delay: .46s; }

.xususiyat:hover, .tarif:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,36,64,.11);
}
.bayroq:hover { transform: translateY(-2px); }

/* --- xususiyat kartalari: har biriga o'z rangi (faqat bezak) --- */
.xususiyat:nth-child(1)::before { background: linear-gradient(90deg,#1e4d8c 50%,#13a0a0 50%); }
.xususiyat:nth-child(2)::before { background: linear-gradient(90deg,#1a5f7a 50%,#18b08a 50%); }
.xususiyat:nth-child(3)::before { background: linear-gradient(90deg,#3c4f8f 50%,#5b8ad4 50%); }
.xususiyat:nth-child(4)::before { background: linear-gradient(90deg,#14607a 50%,#2bb3c9 50%); }
.xususiyat:nth-child(5)::before { background: linear-gradient(90deg,#4a4784 50%,#8a7fd6 50%); }
.xususiyat:nth-child(6)::before { background: linear-gradient(90deg,#0f6b5c 50%,#31c39a 50%); }

/* --- davlat chiplariga rangli nuqta --- */
.bayroq { display: inline-flex; align-items: center; gap: 9px; }
.bayroq::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--nuq, var(--teal));
}
.bayroqlar .bayroq:nth-child(1) { --nuq: #2f6fbe; }
.bayroqlar .bayroq:nth-child(2) { --nuq: #12a08f; }
.bayroqlar .bayroq:nth-child(3) { --nuq: #4f8f3f; }
.bayroqlar .bayroq:nth-child(4) { --nuq: #c08a2b; }
.bayroqlar .bayroq:nth-child(5) { --nuq: #b05a4a; }
.bayroqlar .bayroq:nth-child(6) { --nuq: #6b6ad0; }
.bayroqlar .bayroq:nth-child(7) { --nuq: #2a8fb0; }
.bayroqlar .bayroq:nth-child(8) { --nuq: #8a6bb8; }

/* --- bo'limlar orasida yumshoq rang o'tishi --- */
.bo-lim:nth-of-type(odd) { background: linear-gradient(180deg, var(--fon), #eef3f8); }
.bo-lim.oq { background: var(--oq); }

/* --- tugmalar: gradient va javob --- */
.tugma:not(.ikkilamchi):not(.oq-tugma) {
  background: linear-gradient(135deg, #12958a, #0b6960);
  box-shadow: 0 2px 10px rgba(11,105,96,.26);
}
.tugma:not(.ikkilamchi):not(.oq-tugma):hover {
  background: linear-gradient(135deg, #0f8a80, #0a5b53);
  box-shadow: 0 5px 18px rgba(11,105,96,.34);
  transform: translateY(-1px);
}
.tugma { transition: background .14s, box-shadow .16s, transform .12s; }
.tugma:active { transform: translateY(1px); box-shadow: none; }

/* --- natija sahifasi: xulosa kartalari va jadval qatorlari --- */
.xulosa .qutcha { animation: kirib .45s cubic-bezier(.22,.8,.3,1) both; }
.xulosa .qutcha:nth-child(1) { animation-delay: .02s; }
.xulosa .qutcha:nth-child(2) { animation-delay: .07s; }
.xulosa .qutcha:nth-child(3) { animation-delay: .12s; }
.xulosa .qutcha:nth-child(4) { animation-delay: .17s; }
.xulosa .qutcha:nth-child(5) { animation-delay: .22s; }

table.j tbody tr { animation: kirib .34s ease-out both; }
table.j tbody tr:nth-child(1)  { animation-delay: .02s; }
table.j tbody tr:nth-child(2)  { animation-delay: .04s; }
table.j tbody tr:nth-child(3)  { animation-delay: .06s; }
table.j tbody tr:nth-child(4)  { animation-delay: .08s; }
table.j tbody tr:nth-child(5)  { animation-delay: .10s; }
table.j tbody tr:nth-child(6)  { animation-delay: .12s; }
table.j tbody tr:nth-child(7)  { animation-delay: .14s; }
table.j tbody tr:nth-child(8)  { animation-delay: .16s; }
table.j tbody tr:nth-child(n+9) { animation-delay: .18s; }

td.narx { transition: background .14s, outline-color .14s; }

/* --- narx tarqalishi: nuqtalar birin-ketin paydo bo'ladi --- */
.tq-nuqta { animation: pop .4s cubic-bezier(.3,1.4,.5,1) both; }
.tq-nuqta:nth-child(2) { animation-delay: .05s; }
.tq-nuqta:nth-child(3) { animation-delay: .10s; }
.tq-nuqta:nth-child(4) { animation-delay: .15s; }
.tq-nuqta:nth-child(5) { animation-delay: .20s; }
.tq-nuqta:nth-child(6) { animation-delay: .25s; }
.tq-nuqta:nth-child(7) { animation-delay: .30s; }
.tq-nuqta:nth-child(8) { animation-delay: .35s; }
.tq-nuqta:nth-child(9) { animation-delay: .40s; }

/* --- takliflar ro'yxati --- */
.takliflar { animation: suz .16s ease-out both; }
.taklif { transition: background .1s; }

/* --- limit chizig'i to'lib boradi --- */
.limit-bar i { transition: width .8s cubic-bezier(.22,.8,.3,1); }

/* --- yuklanish: kapsula to'ladi --- */
.spin {
  width: 22px; height: 10px; border: none; border-radius: var(--r-kap);
  background: rgba(255,255,255,.3); position: relative; animation: none;
  overflow: hidden;
}
.spin::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-kap);
  background: #fff; transform-origin: left;
  animation: toladi 1.1s cubic-bezier(.4,0,.2,1) infinite;
}
/* narx oralig'i chizig'i — chapdan o'ngga to'ladi va KO'RINIB QOLADI
   (`toladi` esa bir marta yugurib o'chadigan boshqa effekt) */
@keyframes oraliq_tol {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes toladi {
  0%   { transform: scaleX(0); opacity: .9; }
  70%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* --- tablar: pastki chiziq suriladi --- */
.tablar button { transition: color .14s, border-color .2s; }

/* --- harakatni kamaytirish so'ralganda hammasi o'chadi --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* ==============================================  QO'SHIMCHA HARAKAT  ===
   Qoida o'zgarmaydi: harakat diqqatni tortmaydi, ma'lumot ranglariga
   (yashil/sariq/kulrang/qizil) tegmaydi va `prefers-reduced-motion`
   yoqilganda butunlay o'chadi. */

/* Qahramon fonida sekin suzuvchi kapsulalar — «blister» motivi harakatda */
.kapsulalar { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.kapsulalar i {
  position: absolute; display: block; border-radius: var(--r-kap);
  border: 1.5px solid rgba(255,255,255,.09);
  background: linear-gradient(115deg, rgba(127,216,205,.07), rgba(43,82,136,.07));
  animation: suzish var(--davom, 16s) ease-in-out var(--kech, 0s) infinite;
}
.kapsulalar i:nth-child(1) { width: 132px; height: 62px; left: 6%;  top: 16%;
                             --bur: -18deg; --davom: 17s; }
.kapsulalar i:nth-child(2) { width: 88px;  height: 42px; left: 84%; top: 24%;
                             --bur: 24deg;  --davom: 21s; --kech: -4s; }
.kapsulalar i:nth-child(3) { width: 168px; height: 76px; left: 72%; top: 66%;
                             --bur: -9deg;  --davom: 25s; --kech: -9s; }
.kapsulalar i:nth-child(4) { width: 62px;  height: 30px; left: 18%; top: 72%;
                             --bur: 33deg;  --davom: 19s; --kech: -6s; }
.kapsulalar i:nth-child(5) { width: 104px; height: 50px; left: 45%; top: 8%;
                             --bur: 12deg;  --davom: 23s; --kech: -12s; }

/* Skroll bilan chiqadigan bo'limlar (app.js sinf qo'shadi) */
[data-chiqadi] { opacity: 0; }
[data-chiqadi].ko-rindi { animation: chiqish .65s cubic-bezier(.22,.8,.3,1) both; }
.harakatsiz [data-chiqadi] { opacity: 1; animation: none; }

/* Jadval qatorlari — sahifa ochilganda navbat bilan tushadi */
table.j tbody tr { animation: kirib .4s cubic-bezier(.22,.8,.3,1) both; }
table.j tbody tr:nth-child(1) { animation-delay: .02s; }
table.j tbody tr:nth-child(2) { animation-delay: .05s; }
table.j tbody tr:nth-child(3) { animation-delay: .08s; }
table.j tbody tr:nth-child(4) { animation-delay: .11s; }
table.j tbody tr:nth-child(5) { animation-delay: .14s; }
table.j tbody tr:nth-child(n+6) { animation-delay: .16s; }

/* Narx katagi ustiga kelganda — kotirovka taxtasidagidek yonib qo'yadi */
td.narx.yashil:hover, td.narx.sariq:hover { animation: yonish .7s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .kapsulalar { display: none; }
  [data-chiqadi] { opacity: 1 !important; animation: none !important; }
  table.j tbody tr { animation: none; }
  td.narx:hover { animation: none; }
  .taxta-katak { animation: none; }
}

/* Narx katagi va info kataklar — 10 davlat sig'ishi uchun ixchamroq */
table.j td.narx { padding-left: 7px; padding-right: 8px; }
table.j th, table.j td.dori, table.j td.doza, table.j td.ishlab { padding-left: 9px; padding-right: 9px; }
table.j td.tr, table.j th:first-child { padding-left: 8px; padding-right: 4px; }
@media (max-width: 1360px) { table.j td.narx { font-size: 12.5px; } }

/* AQSh dollarida — ikkinchi jadval */
.usd-blok { margin-top: 30px; }
.usd-bosh { margin-bottom: 10px; }
.usd-bosh .tavsif { margin: 0 0 4px; }
.usd-kurs { margin: 0; font-size: 13px; color: var(--matn-2); }
.usd-taxminiy { margin-left: 8px; color: #9a6a00; font-weight: 600; }
table.usd-jadval td.narx { cursor: help; }
