/* ALIBOBO — uslublar */
:root {
  /* ALI BOBO brendi: logotipdagi to'q sariq #E59341 va qora #141414 */
  --bg: #f6f5f3; --surface: #fff; --surface2: #f3f1ee; --text: #141414; --muted: #5f5a54; --faint: #8d877f;
  --line: #e8e4de; --line2: #d9d2ca;
  --brand: #E59341; --brand2: #cc7a2a; --brand-ink: #a9570f; --brand-soft: #fcefe0; --ink: #141414; --gold: #cc7a2a;
  --up: #12a150; --down: #d93a3a; --warn: #c48a00; --up-soft: #e6f6ec; --down-soft: #fdeaea; --warn-soft: #fbf3d6;
  --s1: #E59341; --s2: #2b2b2b; --s3: #2f7fbf; --s4: #8b5cf6; --s5: #d93a3a;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,20,20,.05), 0 1px 3px rgba(20,20,20,.06);
  --font: "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f0f10; --surface: #18181a; --surface2: #222225; --text: #f1efec; --muted: #aaa39b; --faint: #7b756e;
  --line: #2b2b2e; --line2: #39393d;
  --brand: #f0a257; --brand2: #f5b477; --brand-ink: #f3aa66; --brand-soft: #35261a; --ink: #f1efec; --gold: #f0a257;
  --up: #2fc46d; --down: #f06363; --warn: #e3b23c; --up-soft: #10301e; --down-soft: #3a1717; --warn-soft: #3a300c;
  --s1: #f0a257; --s2: #d9d6d2; --s3: #5aa6e8; --s4: #a78bfa; --s5: #f06363;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h2 { font-size: 22px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* ---------------- navigatsiya */
.nav { border-top: 3px solid var(--brand); position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -.2px; }
.logo:hover { text-decoration: none; }
.logo-belgi { display: grid; place-items: center; border-radius: 9px; flex: none; }
.logo-belgi img { height: 38px; width: auto; display: block; }
.logo-belgi.katta img { height: 54px; }
.logo-yozuv { height: 17px; width: auto; display: block; }
[data-theme="dark"] .logo-yozuv { content: url("/static/brand/yozuv-oq.png"); }
[data-theme="dark"] .logo-belgi { background: #fff; padding: 3px 6px; }
.footer-brend { display: flex; gap: 14px; align-items: center; }
.footer-brend .logo-yozuv { height: 19px; }
.hero-belgi { display: inline-block; margin-bottom: 18px; }
.hero-belgi img { height: 118px; width: auto; display: block; }
[data-theme="dark"] .hero-belgi { background: #fff; padding: 12px 18px; border-radius: 22px; }
.menu { display: flex; gap: 2px; align-items: center; }
.menu a { color: var(--muted); padding: 7px 11px; white-space: nowrap; border-radius: 9px; font-weight: 500; }
.menu a:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.menu a.faol { color: var(--brand-ink); background: var(--brand-soft); }
.nav-o { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ikon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.ikon-btn:hover { background: var(--surface2); }
#menu-btn { display: none; }

.strip { border-top: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.strip-in { display: flex; gap: 26px; height: 36px; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 13px; }
.strip-in::-webkit-scrollbar { display: none; }
.strip-in a { color: var(--text); display: inline-flex; gap: 7px; align-items: baseline; }
.strip-in a b { font-weight: 600; }
.strip-in .muted { font-weight: 500; }

/* ---------------- qidiruv */
.qidiruv { position: relative; width: 280px; }
.qidiruv input { width: 100%; height: 40px; border-radius: 11px; border: 1px solid var(--line2); background: var(--surface2); padding: 0 14px 0 38px; outline: none; }
.qidiruv input:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-soft); }
.qidiruv .lupa { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.taklif { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.16); overflow: hidden; z-index: 60; }
.taklif a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; color: var(--text); }
.taklif a:hover, .taklif a.tanlangan { background: var(--surface2); text-decoration: none; }
.taklif .tk { font-weight: 700; min-width: 64px; }
.taklif .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taklif .br { font-size: 12px; color: var(--faint); }
.taklif .yoq { padding: 12px; color: var(--muted); }
.qidiruv.katta { width: 100%; max-width: 620px; }
.qidiruv.katta input { height: 54px; font-size: 17px; border-radius: 14px; padding-left: 46px; background: var(--surface); box-shadow: var(--shadow); }
.qidiruv.katta .lupa { left: 17px; }

/* ---------------- umumiy bloklar */
main { padding: 26px 20px 60px; min-height: 70vh; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card, .card + .grid2, .grid2 + .card, .grid2 + .grid2, .grid3 + .card, .card + .grid3 { margin-top: 18px; }
.grid2 > .card, .grid3 > .card, .grid-5-7 > .card { margin-top: 0; }
.grid2 > *, .grid3 > *, .grid-5-7 > *, .kat-ichi > *, .ball-karta > *, .kat-grid > *, .afzallik > * { min-width: 0; }
html, body { overflow-x: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h p { margin: 2px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: 18px; }
.sect-title { margin: 34px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.seg { display: inline-flex; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.seg button:hover { color: var(--text); }
.seg button.faol { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: var(--surface); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); }
.btn:hover { background: var(--surface2); text-decoration: none; }
.btn.asosiy { background: var(--brand); border-color: var(--brand); color: #141414; }
.btn.asosiy:hover { background: var(--brand2); border-color: var(--brand2); }
.btn.faol { color: var(--gold); border-color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--text); }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.xato { background: var(--down-soft); color: var(--down); border-radius: 12px; padding: 14px 16px; }
.eslatma { background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: var(--text); }
.eslatma b { color: var(--warn); }

/* yuklanmoqda */
.skelet { background: linear-gradient(90deg, var(--surface2) 25%, var(--line) 37%, var(--surface2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.yuklanmoqda { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 24px 4px; }
.aylana { width: 18px; height: 18px; border: 2.5px solid var(--line2); border-top-color: var(--brand); border-radius: 50%; animation: ayl .8s linear infinite; }
@keyframes ayl { to { transform: rotate(360deg); } }

/* ---------------- jadvallar */
.jadval-o { overflow-x: auto; }
table.jadval { width: 100%; border-collapse: collapse; font-size: 14px; }
.jadval th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.jadval td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.jadval tr:last-child td { border-bottom: 0; }
.jadval tbody tr:hover td { background: var(--surface2); }
.jadval .o { text-align: right; }
.jadval td.num, .jadval td.o { white-space: nowrap; } .jadval th.o { text-align: right; }
.jadval th.saral { cursor: pointer; user-select: none; }
.jadval th.saral:hover { color: var(--text); }
.jadval th.saral.faol { color: var(--brand-ink); }
.jadval .tk a { font-weight: 700; color: var(--text); }
.jadval .tk .nm { display: block; color: var(--muted); font-size: 12.5px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jadval tr.asosiy td { font-weight: 600; }
.jadval td.nom { white-space: nowrap; }
.jadval-yopishqoq th:first-child, .jadval-yopishqoq td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* ---------------- belgilar (badge) */
.ball { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 8px; border-radius: 8px; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.b-a { background: var(--up-soft); color: var(--up); }
.b-b { background: color-mix(in srgb, #84cc16 18%, var(--surface)); color: #4d7c0f; }
[data-theme="dark"] .b-b { color: #a3e635; }
.b-c { background: var(--warn-soft); color: var(--warn); }
.b-d { background: var(--down-soft); color: var(--down); }
.b-n { background: var(--surface2); color: var(--faint); }
.halol { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.h-Halol { background: var(--up-soft); color: var(--up); }
.h-Shubhali { background: var(--warn-soft); color: var(--warn); }
.h-Nohalol { background: var(--down-soft); color: var(--down); }
.h-Tekshirilmaydi, .h-yoq { background: var(--surface2); color: var(--muted); }
.ozg { display: inline-block; padding: 2px 8px; border-radius: 7px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ozg.up { background: var(--up-soft); } .ozg.down { background: var(--down-soft); }

/* ---------------- bosh sahifa */
.hero { text-align: center; padding: 46px 0 30px; }
.hero h1 { font-size: 42px; letter-spacing: -1px; max-width: 820px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.hero p { max-width: 640px; margin: 14px auto 26px; color: var(--muted); font-size: 17px; }
.hero .qidiruv { margin: 0 auto; }
.trend { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.trend .muted { font-size: 13px; margin-right: 4px; }
.bozor-kartalar { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.bk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: block; color: var(--text); box-shadow: var(--shadow); }
.bk:hover { border-color: var(--brand); text-decoration: none; }
.bk .t { font-size: 13px; color: var(--muted); font-weight: 600; }
.bk .v { font-size: 19px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.bk .r { display: flex; justify-content: space-between; align-items: flex-end; }
.royxat-kichik a { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); color: var(--text); }
.royxat-kichik a:last-child { border-bottom: 0; }
.royxat-kichik a:hover { text-decoration: none; background: var(--surface2); }
.royxat-kichik .tk { font-weight: 700; width: 64px; }
.royxat-kichik .nm { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kat-kartа, .kat-k { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kat-k .ik { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--brand); display: grid; place-items: center; font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.kat-k p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.afzallik { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------------- aksiya sahifasi */
.yol { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.yol a { color: var(--muted); }
.ak-bosh { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.ak-nom { display: flex; gap: 14px; align-items: center; }
.ak-logo { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; overflow: hidden; }
.ak-nom h1 { font-size: 26px; letter-spacing: -.4px; }
.ak-nom .meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ak-narx { text-align: right; }
.ak-narx .n { font-size: 34px; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; transition: color .3s; }
.ak-narx .n.yashil { color: var(--up); } .ak-narx .n.qizil { color: var(--down); }
.ak-narx .o { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ak-narx .h { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.nuqta-holat { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.nuqta-holat.ochiq { background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); animation: puls 2s infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 6px transparent; } }
.ak-tugmalar { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.tablar { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 20px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tablar a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tablar a:hover { color: var(--text); text-decoration: none; }
.tablar a.faol { color: var(--brand-ink); border-bottom-color: var(--brand); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; }
.stats > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.ball-karta { display: grid; grid-template-columns: 220px 1fr 1.1fr; gap: 20px; align-items: center; }
.ball-halqa { text-align: center; }
.ball-halqa svg { width: 150px; height: 150px; }
.ball-halqa .bh-son { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.ball-halqa .bh-baho { font-weight: 700; margin-top: 4px; }
.kat-qatorlar { display: flex; flex-direction: column; gap: 9px; }
.kat-qator { display: grid; grid-template-columns: 1fr 120px 40px; gap: 10px; align-items: center; font-size: 14px; color: var(--text); }
.kat-qator:hover { text-decoration: none; }
.kat-qator:hover span:first-child { color: var(--brand-ink); }
.chiziqcha { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.chiziqcha i { display: block; height: 100%; border-radius: 99px; }
.kat-qator b { text-align: right; font-variant-numeric: tabular-nums; }

.tomonlar ul { list-style: none; padding: 0; margin: 0; }
.tomonlar li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tomonlar li:last-child { border-bottom: 0; }
.tomonlar li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px; }
.tomonlar .kuchli li::before { background: var(--up-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2312a150' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.tomonlar .zaif li::before { background: var(--down-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%23d93a3a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.kat { scroll-margin-top: 110px; }
.kat-bosh { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.kat-bosh p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.kat-bosh .ball { font-size: 17px; height: 34px; min-width: 52px; }
.kat-ichi { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.mezon-jadval { width: 100%; border-collapse: collapse; font-size: 14px; }
.mezon-jadval td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.mezon-jadval tr:last-child td { border-bottom: 0; }
.mezon-jadval td:nth-child(2) { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mezon-jadval td:nth-child(3) { width: 92px; }
.mezon-jadval td:nth-child(4) { width: 38px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mezon-jadval .izoh { cursor: help; border-bottom: 1px dotted var(--faint); }
.mezon-jadval tr.bosh-q td { color: var(--faint); }

/* DCF */
.dcf-kirish { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.slayder label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.slayder label b { color: var(--text); font-variant-numeric: tabular-nums; }
.slayder input[type=range] { width: 100%; accent-color: var(--brand); }
.dcf-natija { display: flex; gap: 20px; margin: 16px 0 10px; flex-wrap: wrap; }
.dcf-natija > div { flex: 1; min-width: 130px; background: var(--surface2); border-radius: 12px; padding: 12px 14px; }
.dcf-natija .t { font-size: 12.5px; color: var(--muted); }
.dcf-natija .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.olchagich { position: relative; margin: 26px 0 30px; }
.olchagich .zonalar { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 12px; border-radius: 99px; overflow: hidden; }
.olchagich .zonalar i:nth-child(1) { background: var(--up); opacity: .75; }
.olchagich .zonalar i:nth-child(2) { background: var(--warn); opacity: .6; }
.olchagich .zonalar i:nth-child(3) { background: var(--down); opacity: .75; }
.olchagich .belgi { position: absolute; top: -8px; transform: translateX(-50%); text-align: center; font-size: 12px; font-weight: 700; white-space: nowrap; }
.olchagich .belgi::after { content: ""; display: block; width: 3px; height: 28px; margin: 2px auto 0; background: var(--text); border-radius: 2px; }
.olchagich .belgi span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); }
.olchagich .belgi.ong span { left: auto; right: 0; transform: none; }
.olchagich .belgi.chap span { left: 0; transform: none; }
.olchagich .nomlar { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }

/* halollik */
.halol-bosh { display: flex; gap: 18px; align-items: center; }
.halol-belgi { width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; flex: none; }
.halol-belgi.h-Halol { background: var(--up-soft); } .halol-belgi.h-Shubhali { background: var(--warn-soft); } .halol-belgi.h-Nohalol { background: var(--down-soft); }
.halol-belgi.h-Tekshirilmaydi { background: var(--surface2); }
.nisbat { padding: 12px 0; border-bottom: 1px solid var(--line); }
.nisbat:last-child { border-bottom: 0; }
.nisbat .ust { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.nisbat .ust b { font-variant-numeric: tabular-nums; }
.nisbat .bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface2); margin: 8px 0 4px; }
.nisbat .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.nisbat .bar .chegara { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); }
.nisbat .past { font-size: 12.5px; color: var(--muted); }
.manba-havola { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* yangiliklar */
.yangilik { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.yangilik:last-child { border-bottom: 0; }
.yangilik:hover { text-decoration: none; }
.yangilik:hover h4 { color: var(--brand-ink); }
.yangilik img { width: 150px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface2); }
.yangilik p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yangilik .m { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

/* skriner */
.filtrlar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filtrlar input[type=search], .filtrlar select { height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); padding: 0 12px; }
.filtrlar input[type=search] { width: 220px; }
.filtrlar label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); transition: width .5s; }
.mini-ball { display: inline-block; width: 22px; height: 22px; border-radius: 6px; font-size: 11px; line-height: 22px; text-align: center; font-weight: 700; margin-right: 2px; }

/* grafik */
.g-box { position: relative; width: 100%; }
.g-svg { display: block; overflow: visible; max-width: 100%; }
.g-grid { stroke: var(--line); stroke-width: 1; }
.g-nol { stroke: var(--line2); }
.g-lbl { fill: var(--faint); font-size: 11.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.g-lbl-chz { fill: var(--muted); }
.g-oldingi { stroke: var(--faint); stroke-dasharray: 3 4; }
.g-kursor { stroke: var(--faint); stroke-dasharray: 3 3; }
.g-nuqta { stroke: var(--surface); stroke-width: 2; }
.g-tip { position: absolute; display: none; pointer-events: none; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(16,24,40,.16); border-radius: 10px; padding: 8px 11px; font-size: 13px; z-index: 5; white-space: nowrap; }
.g-tip-s { color: var(--muted); font-size: 12px; }
.g-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.g-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.g-legend span { display: inline-flex; align-items: center; gap: 6px; }
.g-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.g-legend i.g-leg-chz { width: 14px; height: 0; border-top: 2.5px solid; border-radius: 0; }
.g-legend i.g-leg-k { border: 2px solid var(--faint); border-radius: 50%; background: transparent; }
.g-eps-k { fill: none; stroke: var(--faint); stroke-width: 2; }
.g-bosh { padding: 40px 0; text-align: center; color: var(--faint); font-size: 14px; }
.g-radar-halqa { fill: none; stroke: var(--line); }
.g-radar-halqa.tashqi { stroke: var(--line2); }
.g-radar-shakl { fill: var(--brand); fill-opacity: .22; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.g-radar-nuqta { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.g-radar-lbl { fill: var(--muted); font-size: 12px; font-family: var(--font); font-weight: 600; }
.g-radar-ball { fill: var(--text); font-size: 13px; font-weight: 800; }
.g-radar { margin: 0 auto; }
.g-mini { display: block; }
.davr-info { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.davr-info b { color: var(--text); font-variant-numeric: tabular-nums; }

/* tahlilchilar */
.maqsad-bar { position: relative; height: 10px; background: linear-gradient(90deg, var(--down-soft), var(--warn-soft), var(--up-soft)); border-radius: 99px; margin: 34px 6px 28px; }
.maqsad-bar .m { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--surface); }
.maqsad-bar .m span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; font-weight: 700; }
.maqsad-bar .m.joriy { background: var(--text); } .maqsad-bar .m.joriy span { bottom: 18px; }
.maqsad-bar .m.ort { background: var(--brand); } .maqsad-bar .m.ort span { top: 18px; color: var(--brand-ink); }
.maqsad-uchlar { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0 34px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer p { margin: 4px 0; max-width: 760px; }

/* ---------------- moslashuvchan */
@media (max-width: 1080px) {
  .ball-karta { grid-template-columns: 1fr 1fr; }
  .ball-karta .kat-qatorlar { grid-column: 1 / -1; }
  .kat-grid { grid-template-columns: repeat(2, 1fr); }
  .qidiruv { width: 240px; }
}
@media (max-width: 860px) {
  .grid2, .grid3, .grid-5-7, .kat-ichi, .afzallik { grid-template-columns: minmax(0, 1fr); }
  .nav-o .qidiruv { width: 190px; }
  .hero h1 { font-size: 30px; }
  .ak-narx { text-align: left; }
  .ak-narx .h, .ak-tugmalar { justify-content: flex-start; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; } main { padding: 18px 14px 50px; }
  .logo-yozuv { height: 14px; } .logo-belgi img { height: 32px; } .hero-belgi img { height: 90px; }
  .nav-o .qidiruv { display: none; }
  .ball-karta { grid-template-columns: minmax(0, 1fr); }
  .kat-grid { grid-template-columns: minmax(0, 1fr); }
  .ak-nom h1 { font-size: 21px; }
  .ak-narx .n { font-size: 28px; }
  .kat-qator { grid-template-columns: 1fr 80px 34px; }
  .dcf-kirish { grid-template-columns: 1fr; }
  .yangilik img { width: 96px; height: 70px; }
  .card { padding: 16px; }
}
[data-theme="dark"] .kat-k .ik { background: var(--brand-soft); }

/* ---------------- tashqi saytlar */
.saytlar { position: relative; }
.saytlar > button { border: 0; background: transparent; color: var(--muted); padding: 7px 11px; border-radius: 9px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.saytlar > button:hover, .saytlar.ochiq > button { background: var(--surface2); color: var(--text); }
.saytlar-panel { display: none; position: absolute; top: calc(100% + 10px); right: 0; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(20,20,20,.18); padding: 8px; z-index: 70; }
.saytlar.ochiq .saytlar-panel { display: block; }
.sayt-havola { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.sayt-havola:hover { background: var(--surface2); text-decoration: none; }
.sayt-havola .ik { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: #fff; flex: none; font-style: normal; }
.sayt-havola b { display: block; font-size: 14px; }
.sayt-havola span { color: var(--muted); font-size: 12.5px; }
.sayt-havola .ok { margin-left: auto; color: var(--faint); }
.tashqi { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 13px; }
.tashqi a { font-weight: 600; }
.tashqi.katta { gap: 10px; margin-top: 12px; }
.manba-holat { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip.xira { color: var(--muted); font-weight: 500; }
.chip.kichik { padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.matn-maydon { width: 100%; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; background: var(--surface); resize: vertical; font-family: inherit; }
.matn-maydon:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.footer-saytlar { min-width: 200px; }
.footer-saytlar #footer-saytlar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 6px; }
.footer-saytlar a { color: var(--muted); }
.footer-saytlar a:hover { color: var(--brand-ink); }
.tradingview-widget-container { border-radius: 10px; overflow: hidden; }

@media (max-width: 1180px) {
  .menu { display: none; position: absolute; top: 65px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 12px 24px rgba(20,20,20,.08); }
  .menu.ochiq { display: flex; }
  #menu-btn { display: grid; }
  .saytlar > button { width: 100%; text-align: left; }
  .saytlar-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 8px; }
}
.yangilik a h4 { color: var(--text); }

/* ---------------- ALI BOBO yordamchisi (Claude) */
.yr-btn { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 0; background: #141414; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 28px rgba(20,20,20,.28); cursor: pointer; }
.yr-btn:hover { background: #2a2a2a; }
.yr-btn[hidden] { display: none; }
.yr-ik { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #141414; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.yr { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 420px; height: min(640px, calc(100vh - 44px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(20,20,20,.28); display: flex; flex-direction: column; overflow: hidden; }
.yr[hidden] { display: none; }
.yr-bosh { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.yr-bosh > div { flex: 1; min-width: 0; }
.yr-bosh b { display: block; font-size: 15px; }
#yr-kontekst { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-tugma { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 16px; flex: none; }
.yr-tugma:hover { background: var(--line); color: var(--text); }
.yr-xabarlar { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.yr-x { max-width: 90%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.yr-x.user { align-self: flex-end; background: #141414; color: #fff; border-bottom-right-radius: 4px; }
[data-theme="dark"] .yr-x.user { background: var(--brand); color: #141414; }
.yr-x.assistant { align-self: flex-start; background: var(--surface2); border-bottom-left-radius: 4px; }
.yr-x p { margin: 0 0 8px; }
.yr-x p:last-child { margin-bottom: 0; }
.yr-x ul, .yr-x ol { margin: 4px 0 8px; padding-left: 20px; }
.yr-x li { margin: 2px 0; }
.yr-x code { background: var(--line); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.yr-x table { border-collapse: collapse; font-size: 12.5px; margin: 6px 0; display: block; overflow-x: auto; }
.yr-x td, .yr-x th { border: 1px solid var(--line2); padding: 3px 7px; text-align: left; }
.yr-x .xato { margin-top: 4px; font-size: 13px; }
.yr-sarlavha { font-weight: 700; }
.yr-holat { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.yr-yozmoqda { display: inline-flex; gap: 3px; }
.yr-yozmoqda i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: yrn 1s infinite; }
.yr-yozmoqda i:nth-child(2) { animation-delay: .15s; }
.yr-yozmoqda i:nth-child(3) { animation-delay: .3s; }
@keyframes yrn { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.yr-takliflar { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.yr-takliflar:empty { display: none; }
.yr-takliflar button { border: 1px solid var(--line2); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; color: var(--text); }
.yr-takliflar button:hover { border-color: var(--brand); color: var(--brand-ink); }
.yr-kiritish { display: flex; gap: 8px; padding: 10px 12px 8px; border-top: 1px solid var(--line); align-items: flex-end; }
.yr-kiritish textarea { flex: 1; resize: none; border: 1px solid var(--line2); border-radius: 12px; padding: 9px 12px; max-height: 140px; background: var(--surface); font-family: inherit; font-size: 14px; line-height: 1.4; }
.yr-kiritish textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.yr-kiritish button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--brand); color: #141414; font-size: 16px; cursor: pointer; flex: none; }
.yr-kiritish button:disabled { opacity: .5; cursor: default; }
.yr-izoh { font-size: 11.5px; color: var(--faint); text-align: center; padding: 0 12px 10px; }
.yr-sozlash { background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.yr-sozlash ol { padding-left: 18px; margin: 8px 0; }
.yr-sozlash li { margin: 4px 0; }
@media (max-width: 560px) {
  .yr { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .yr-btn span:last-child { display: none; }
  .yr-btn { padding: 7px; right: 14px; bottom: 14px; }
}

/* ---------------- tizimga kirgan foydalanuvchi */
.foydalanuvchi { display: flex; align-items: center; gap: 8px; }
.foydalanuvchi.hide { display: none; }
