:root {
  --archa: #1E4B3D; --archa-d: #163A2F; --barg: #E6EEE9; --mis: #D9962B;
  --siyoh: #1C1B18; --qogoz: #F5F1E8; --oq: #FFFFFF; --kul: #6B665C; --matn2: #3A3832;
  --chiziq: #E3DCCD; --chiziq2: #EEE8DC; --gisht: #B3402A;
  --bg: #F5F1E8; --txt: #1C1B18; --ink: #1C1B18; --archa-t: #1E4B3D; --on-bg: #F3F7F4; --sk1: #ECE6D9; --sk2: #F3EEE4;
  --r: 20px; --head: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.45 var(--body); }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--archa-t); text-decoration: none; }
.hidden { display: none !important; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--kul); font-size: 13px; }
.small { font-size: 12px; }
.h1 { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.h2 { font-size: 17px; font-weight: 800; margin: 0; }
.link { font-weight: 700; font-size: 14px; background: none; border: 0; color: var(--archa-t); padding: 6px 0; cursor: pointer; }

/* logo */
.logo { display: flex; align-items: center; gap: 9px; }
.logo-mark { width: 32px; height: 32px; flex: none; display: inline-block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 104'%3E%3Crect width='104' height='104' rx='26' fill='%231E4B3D'/%3E%3Cpath d='M26 54 L44 72 L80 32' fill='none' stroke='%23F5F1E8' stroke-width='13' stroke-linecap='square'/%3E%3Cpath d='M74.5 25.5 L84 25.5 L88.8 33.7 L84 42 L74.5 42 L69.7 33.7 Z' fill='%23D9962B'/%3E%3C/svg%3E") center/contain no-repeat; }
.logo-mark.big { width: 64px; height: 64px; }
.logo-word { font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--archa-t); }
.logo-word i { font-style: normal; color: var(--mis); }
.boot { min-height: 80vh; display: grid; place-items: center; }

/* kartalar */
.card { background: var(--oq); border-radius: var(--r); padding: 16px; }
.card.tight { padding: 14px; }
.list { background: var(--oq); border-radius: var(--r); padding: 4px 16px; }
.list > * + * { border-top: 1px solid var(--chiziq2); }
.hero { background: var(--archa); color: var(--qogoz); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.hero p { margin: 0; color: #CFDCD5; font-size: 14px; }
.hero .h1 { color: var(--qogoz); }

/* tugmalar */
.btn { border: 0; border-radius: 14px; min-height: 48px; padding: 0 20px; font-weight: 800; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--archa); color: var(--qogoz); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; }
.btn.mis { background: var(--mis); color: var(--siyoh); }
.btn.ghost { background: transparent; border: 1.5px solid var(--chiziq); color: var(--txt); }
.btn.danger { background: transparent; border: 1.5px solid #E7C6BD; color: var(--gisht); }
.btn.dark { background: var(--ink); color: var(--qogoz); }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--oq); display: grid; place-items: center; cursor: pointer; }
.sticky { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); padding-top: 8px; background: var(--bg); }

/* belgilar */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill.green { background: var(--barg); color: var(--archa-t); }
.pill.gray { background: var(--chiziq2); color: var(--matn2); }
.pill.red { background: #F6E3DE; color: var(--gisht); }
.pill.mis { background: #F7E9CF; color: #7A520F; }
.pro { background: var(--ink); color: var(--mis); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 6px; border-radius: 6px; }
.star { color: var(--mis); }
.ava { width: 44px; height: 44px; border-radius: 14px; background: var(--archa); color: var(--qogoz); font-weight: 800; display: grid; place-items: center; flex: none; font-size: 15px; }
.ava.c1 { background: var(--mis); color: var(--siyoh); } .ava.c2 { background: var(--matn2); }
.ava.xl { width: 72px; height: 72px; border-radius: 22px; font-family: var(--head); font-weight: 600; font-size: 24px; }

/* kategoriyalar */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat { background: var(--oq); border: 0; border-radius: 16px; padding: 12px 2px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.2; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { border: 1.5px solid var(--chiziq); background: var(--oq); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; min-height: 40px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--qogoz); }

/* forma */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl { font-size: 13px; font-weight: 700; color: var(--matn2); }
.input { width: 100%; border: 1.5px solid var(--chiziq); background: var(--oq); border-radius: 14px; padding: 13px 14px; outline: none; min-height: 48px; }
.input:focus { border-color: var(--archa); }
textarea.input { min-height: 90px; resize: vertical; }
.err { color: var(--gisht); font-size: 13px; font-weight: 600; }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ph { aspect-ratio: 1; border-radius: 14px; background: var(--chiziq) center/cover no-repeat; position: relative; border: 0; }
.ph.add { display: grid; place-items: center; border: 1.5px dashed #CFC6B3; background: var(--oq); cursor: pointer; }
.ph .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: rgba(28,27,24,.75); color: #fff; font-weight: 800; cursor: pointer; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery img { height: 96px; width: 96px; object-fit: cover; border-radius: 14px; flex: none; }

/* tender va taklif */
.meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 12px; color: var(--kul); }
.meta b { display: block; font-size: 14px; color: var(--txt); }
.price { font-family: var(--head); font-weight: 600; font-size: 17px; white-space: nowrap; }
.bid.best { outline: 2px solid var(--archa); }
.code { font-family: var(--head); font-weight: 600; font-size: 40px; letter-spacing: 0.25em; text-align: center; color: var(--archa-t); }
.stars-in { display: flex; gap: 6px; justify-content: center; }
.stars-in button { border: 0; background: none; font-size: 34px; color: var(--chiziq); cursor: pointer; padding: 2px; }
.stars-in button.on { color: var(--mis); }
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat3 > div { background: var(--oq); border-radius: 16px; padding: 12px 8px; text-align: center; }
.stat3 b { display: block; font-family: var(--head); font-weight: 600; font-size: 20px; }
.empty { text-align: center; color: var(--kul); padding: 28px 16px; font-size: 14px; }
.notice { background: #F7E9CF; color: #5E3F0B; border-radius: 16px; padding: 12px 14px; font-size: 13px; font-weight: 600; }

/* admin (qorong'i) */
.admin { background: var(--siyoh); color: var(--qogoz); min-height: 100vh; }
.admin .card, .admin .list { background: #2A2925; }
.admin .list > * + * { border-color: #3A3832; }
.admin .muted { color: #B9B3A6; }
.admin .chip { background: #2A2925; border-color: #3A3832; color: var(--qogoz); }
.admin .chip.on { background: var(--mis); border-color: var(--mis); color: var(--siyoh); }
.admin .btn.ghost { border-color: #4A4842; color: var(--qogoz); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpis > div { background: #2A2925; border-radius: 18px; padding: 14px; }
.kpis b { display: block; font-family: var(--head); font-weight: 600; font-size: 24px; margin-top: 4px; }

/* pastki menyu */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--oq); border-top: 1px solid var(--chiziq);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--kul); min-height: 48px; justify-content: center; }
.nav a.on { color: var(--archa-t); font-weight: 800; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--qogoz);
  padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.ic { width: 24px; height: 24px; fill: none; stroke: var(--archa-t); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sk { background: linear-gradient(90deg, var(--sk1) 25%, var(--sk2) 50%, var(--sk1) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); height: 84px; }
@keyframes sk { to { background-position: -200% 0; } }
.admin .nav { background: #24231F; border-color: #34332E; }
.admin .nav a { color: #B9B3A6; } .admin .nav a.on { color: var(--mis); }
.btn .ic { stroke: currentColor; width: 20px; height: 20px; }
.check { display: flex; align-items: center; gap: 12px; background: var(--oq); border: 1.5px solid var(--chiziq); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 14px; }
.check input { width: 22px; height: 22px; accent-color: var(--archa); flex: none; }
.route { display: flex; align-items: center; gap: 8px; font-weight: 700; }

.cat { color: inherit; min-height: 84px; justify-content: center; font-size: 11.5px; }
.chip.sm { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.choice { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--oq); border: 2px solid transparent; border-radius: var(--r); padding: 16px; cursor: pointer; width: 100%; }
.choice b { display: block; font-size: 16px; margin-bottom: 2px; }
.choice .muted { display: block; }
.choice.on { border-color: var(--archa); background: var(--on-bg); }
.choice-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--barg); display: grid; place-items: center; flex: none; }
.step { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--qogoz); display: grid; place-items: center; font-weight: 800; flex: none; }
.step.ok { background: var(--archa); } .step .ic { stroke: var(--qogoz); width: 16px; height: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { background: var(--oq); border: 2px solid var(--chiziq); border-radius: 14px; padding: 12px; text-align: left; cursor: pointer; min-height: 48px; }
.seg button b { display: block; } .seg button span { display: block; font-size: 12px; color: var(--kul); margin-top: 2px; }
.seg button.on { border-color: var(--archa); background: var(--on-bg); }
.seg.sm button { padding: 10px; text-align: center; font-weight: 700; }
.tier { display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.tier-econom { background: var(--chiziq2); color: var(--matn2); }
.tier-standard { background: var(--barg); color: var(--archa-t); }
.tier-premium { background: var(--ink); color: var(--mis); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tiercard { background: var(--oq); border: 2px solid var(--chiziq); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; font-size: 12px; color: var(--matn2); cursor: pointer; }
.tiercard.on { border-color: var(--archa); background: var(--on-bg); }
.pack { flex: 1; background: var(--bg); border: 2px solid var(--chiziq); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; }
.pack span { font-family: var(--head); font-weight: 600; font-size: 15px; } .pack .small { font-family: var(--body); font-weight: 600; color: var(--kul); }
.pack[disabled] { opacity: .6; }
.hbar { display: grid; grid-template-columns: 110px 1fr 34px; gap: 8px; align-items: center; font-size: 13px; }
.hbar div { background: #3A3832; border-radius: 6px; height: 10px; overflow: hidden; } .hbar i { display: block; height: 100%; background: var(--mis); border-radius: 6px; }
.hbar b { text-align: right; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.kpis .hl { background: var(--archa); } .kpis .hl .muted { color: #CFDCD5; }
.admin .card .muted, .admin .kpis .muted { color: #B9B3A6; }
.admin .tier-econom { background: #3A3832; color: #E3DCCD; }
body.nonav { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
body.nonav .sticky { bottom: 0; padding-bottom: 8px; }

/* kirish sahifasi */
.in-hero { position: relative; overflow: hidden; padding: 24px 20px 20px; }
.in-hero .h1 { font-size: 23px; max-width: 92%; }
.in-mark { position: absolute; right: -46px; bottom: -46px; width: 130px; height: 130px; border-radius: 34px; border: 14px solid rgba(217,150,43,.22); transform: rotate(18deg); }
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.trust span { background: rgba(245,241,232,.12); color: var(--qogoz); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.chip.scen { font-size: 13.5px; }
.chip.scen.on { background: var(--archa); border-color: var(--archa); color: var(--qogoz); }
.howcard { gap: 14px; scroll-margin-top: 12px; }
.seg.mini { grid-template-columns: auto auto; gap: 4px; background: var(--chiziq2); border-radius: 12px; padding: 3px; }
.seg.mini button { border: 0; padding: 6px 12px; min-height: 32px; font-size: 13px; border-radius: 9px; background: transparent; }
.seg.mini button.on { background: var(--oq); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.fitline { background: var(--barg); color: var(--archa-t); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.steps li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 2px; background: var(--chiziq); }
.steps li b { display: block; font-size: 15px; } .steps li span { color: var(--kul); font-size: 13px; }
.st-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--barg); display: grid; place-items: center; flex: none; position: relative; }
.st-ic .ic { width: 22px; height: 22px; stroke: var(--archa-t); }
.st-ic i { position: absolute; right: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--mis); color: #fff; font: 800 11px/20px var(--body); text-align: center; font-style: normal; }
.anim li { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--oq); border-radius: 16px; padding: 14px 16px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--mis); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 8px 0 0; color: var(--matn2); font-size: 14px; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress div { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--kul); border-top: 3px solid var(--chiziq); padding-top: 8px; }
.progress div i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--chiziq); display: grid; place-items: center; font-size: 11px; }
.progress .done { border-color: var(--archa); color: var(--archa-t); } .progress .done i { background: var(--archa); color: #fff; }
.progress .cur { border-color: var(--mis); color: var(--txt); } .progress .cur i { background: var(--mis); color: #fff; }
@media (prefers-reduced-motion: reduce) { .anim li { animation: none; } }
.choice .link { font-size: 12.5px; white-space: nowrap; align-self: flex-start; }
/* v3.1: usta anketasi, bosh sahifa, ishlarim, narxlar */
.ava.lg { width: 56px; height: 56px; border-radius: 18px; font-size: 18px; }
.ph-ava { background-size: cover; background-position: center; background-color: var(--barg); }
.photo-pick { display: flex; gap: 14px; align-items: center; background: var(--oq); border-radius: var(--r); padding: 14px; }
.avatar-up { width: 84px; height: 84px; border-radius: 24px; flex: none; background: var(--barg) center/cover; display: grid; place-items: center; cursor: pointer; border: 2px dashed var(--chiziq); }
.avatar-up .ic { width: 28px; height: 28px; stroke: var(--archa-t); }
.catpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.catopt { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--oq); border: 2px solid var(--chiziq); border-radius: 14px; padding: 10px; cursor: pointer; }
.catopt .ic { width: 22px; height: 22px; stroke: var(--archa-t); flex: none; margin-top: 2px; }
.catopt b { display: block; font-size: 13.5px; line-height: 1.25; } .catopt span span { display: block; font-size: 11.5px; color: var(--kul); margin-top: 2px; line-height: 1.3; }
.catopt.on { border-color: var(--archa); background: var(--on-bg); }
.subbox { background: var(--chiziq2); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tgroup { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.dash-hero { background: var(--archa); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 16px; color: var(--qogoz); }
.earn { background: rgba(245,241,232,.08); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.earn > span { color: #CFDCD5; font-size: 13px; }
.earn b { font-family: var(--head); font-weight: 600; font-size: 30px; color: var(--mis); line-height: 1.15; } .earn small { font-size: 14px; color: var(--qogoz); }
.feedcta { gap: 12px; } .bignum { font-family: var(--head); font-weight: 600; font-size: 28px; color: var(--archa-t); min-width: 40px; text-align: center; }
.kpi4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi4 > div { background: var(--oq); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi4 b { font-family: var(--head); font-weight: 600; font-size: 22px; }
.req { display: flex; flex-direction: column; gap: 5px; }
.bar { height: 8px; background: var(--chiziq2); border-radius: 6px; overflow: hidden; } .bar.big { height: 10px; }
.bar i { display: block; height: 100%; background: var(--mis); border-radius: 6px; } .bar i.ok { background: var(--archa); }
.task { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--chiziq2); color: var(--txt); font-weight: 600; font-size: 14px; }
.tick { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--chiziq); flex: none; }
.method { gap: 10px; border: 2px solid transparent; } .method.on { border-color: var(--archa); }
.mhead { background: none; border: 0; padding: 0; cursor: pointer; gap: 12px; width: 100%; }
.cbox { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--chiziq); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.method.on .cbox { background: var(--archa); border-color: var(--archa); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--chiziq2); border-radius: 12px; padding: 3px; }
.seg3 button { border: 0; background: transparent; border-radius: 9px; padding: 8px 4px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--kul); }
.seg3 button.on { background: var(--oq); color: var(--archa-t); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.menu { display: flex; flex-direction: column; background: var(--bg); border-radius: 14px; overflow: hidden; }
.menu-i { display: flex; align-items: center; gap: 12px; padding: 13px 12px; color: var(--txt); font-weight: 700; border-bottom: 1px solid var(--chiziq2); }
.menu-i:last-child { border-bottom: 0; } .menu-i .ic { width: 20px; height: 20px; stroke: var(--archa-t); }
/* to'lov, taklif, kalkulyator */
.paycard { background: var(--ink); color: var(--qogoz); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.paycard span { color: #B9B3A6; font-size: 13px; } .paycard b { font-family: var(--head); font-weight: 600; font-size: 30px; color: var(--mis); } .paycard small { font-size: 14px; color: var(--qogoz); }
.paysteps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.paysteps li { counter-increment: st; background: var(--oq); border-radius: 18px; padding: 14px 14px 14px 52px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.paysteps li::before { content: counter(st); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--archa); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cardnum { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 14px; padding: 8px 8px 8px 12px; }
.cardnum span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 14.5px; }
.cardnum.dark { background: rgba(245,241,232,.1); color: var(--qogoz); }
.receipt { min-height: 120px; border: 2px dashed var(--chiziq); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; cursor: pointer; background: var(--bg) center/cover; color: var(--archa-t); font-weight: 700; }
.receipt .ic { width: 28px; height: 28px; stroke: var(--archa-t); }
.receipt.ok { min-height: 180px; border-style: solid; border-color: var(--archa); justify-content: flex-end; padding: 8px; }
.receipt.ok span { background: var(--archa); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.calc { background: var(--bg); border-radius: 14px; padding: 12px; } .calc summary { font-weight: 700; cursor: pointer; }
.sticky.row { display: flex; gap: 8px; }


/* ---------- tungi rejim ---------- */
[data-theme="dark"] { color-scheme: dark;
  --bg: #151512; --oq: #22211D; --txt: #F1ECE0; --kul: #A8A295; --matn2: #CFC9BB; --chiziq: #3A3832; --chiziq2: #2E2D28;
  --barg: #1F2B26; --archa-t: #7DBFA6; --gisht: #E5806A; --ink: #3A3832; --on-bg: #1F2B26; --sk1: #26251F; --sk2: #302F29; }
[data-theme="dark"] .ava.c2 { background: #3A3832; }
[data-theme="dark"] .chip.on { background: var(--mis); border-color: var(--mis); color: #1C1B18; }
[data-theme="dark"] .pill.red { background: #3A2420; }
[data-theme="dark"] .pill.mis { background: #3A2E14; color: #E8B65A; }
[data-theme="dark"] .notice { background: #33290F; color: #E8C57A; }
[data-theme="dark"] .btn.danger { border-color: #5A3029; }
[data-theme="dark"] .ph.add { border-color: #4A4842; }
[data-theme="dark"] .paycard { background: #2B2A26; }
[data-theme="dark"] .tier-premium, [data-theme="dark"] .pro { background: #2B2A26; }
[data-theme="dark"] .seg3 button.on, [data-theme="dark"] .seg.mini button.on { box-shadow: none; }
[data-theme="dark"] .logo-mark { filter: brightness(1.15); }
[data-theme="dark"] .ph .x { background: rgba(0,0,0,.7); }
[data-theme="dark"] img { opacity: .94; }
[data-theme="dark"] .admin { background: #1C1B18; }

/* ---------- sozlamalar: ko'rinish va hisobni o'chirish ---------- */
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-seg button { border: 2px solid var(--chiziq); background: var(--oq); border-radius: 14px; min-height: 48px; padding: 8px 6px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--txt); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.theme-seg button.on { border-color: var(--archa-t); background: var(--on-bg); color: var(--archa-t); }
.danger-zone { border: 1.5px solid #E7C6BD; background: transparent; }
[data-theme="dark"] .danger-zone { border-color: #5A3029; }
.danger-zone ul { margin: 0; padding-left: 18px; color: var(--matn2); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.btn.danger-fill { background: var(--gisht); color: #fff; }

/* ---------- admin: mini diagramma va voronka ---------- */
.pk > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk .top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pk b { margin-top: 0; font-size: 22px; }
.pk svg { width: 100%; height: 30px; display: block; margin-top: 4px; }
.pk .tr { font-size: 11px; font-weight: 800; white-space: nowrap; }
.tr.up { color: #7FC9A8; } .tr.down { color: #E5806A; } .tr.flat { color: #B9B3A6; }
.fun { display: flex; flex-direction: column; gap: 10px; }
.fun-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; font-size: 13px; }
.fun-row .bar { grid-column: 1 / -1; background: #3A3832; border-radius: 8px; height: 12px; overflow: hidden; }
.fun-row .bar i { display: block; height: 100%; border-radius: 8px; background: var(--mis); min-width: 3px; }
.fun-row small { color: #B9B3A6; font-size: 11px; margin-left: 6px; }
.fun-row .lose { grid-column: 1 / -1; font-size: 11px; color: #E5806A; margin-top: -2px; }

/* hudud: viloyat + tuman */
.place { display: flex; flex-direction: column; gap: 8px; }
.admin .input { background: #34332E; border-color: #4A4842; color: var(--qogoz); }

/* qirqish oynasi, asbob naborlari, narx qatorlari */
.cropov { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.78); display: grid; place-items: center; padding: 12px; overflow: auto; }
.cropin { background: var(--qogoz, #fff); color: var(--matn, #222); border-radius: 18px; padding: 14px; width: min(100%, 400px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
[data-theme="dark"] .cropin { background: #23221F; color: #F1EEE6; }
.cropbox { background: #000; border-radius: 10px; overflow: hidden; line-height: 0; }
.cropbox canvas { touch-action: none; cursor: grab; max-width: 100%; }
.kit, .plrow { border: 1.5px solid transparent; cursor: pointer; }
.kit.on { border-color: var(--archa-t, #1F5E4B); }
.plrow { background: none; padding: 8px 4px; font: inherit; color: inherit; align-items: center; }
.plrow.on { font-weight: 700; }
.kit.on .cbox, .plrow.on .cbox { background: var(--archa); border-color: var(--archa); }
.method.on .plrow:not(.on) .cbox { background: transparent; border-color: var(--chiziq); }
