/* AnorSMM — dizayn tizimi
   Palitra anor mevasidan: po'chog'i (anor), donasi (seed), toji bargi (leaf), quruq po'stining oltin dog'i (rind).
   Shriftlar: Unbounded — sarlavha va raqamlar, Onest — matn. */

:root {
  --paper: #f7f3f5;
  --card: #ffffff;
  --sunk: #f0e9ed;
  --ink: #24132b;
  --ink-2: #5e4c66;
  --ink-3: #8b7a92;
  --line: #e7dce2;
  --anor: #a3163f;
  --anor-ink: #ffffff;
  --seed: #d63a5e;
  --anor-soft: #f8e3e9;
  --leaf: #2f7a55;
  --leaf-soft: #e1f1e8;
  --rind: #c98a1b;
  --rind-soft: #fbefd6;
  --bad: #b42318;
  --bad-soft: #fde7e4;
  --side: #24132b;
  --side-ink: #eadfee;
  --side-mute: #a593ad;
  --side-hi: #3a2444;
  --shadow: 0 1px 2px rgba(36, 19, 43, .06), 0 8px 24px -12px rgba(36, 19, 43, .18);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #160c1a; --card: #20132a; --sunk: #1b1022; --ink: #f4eaf0; --ink-2: #c9b8cf; --ink-3: #9583a0;
    --line: #36263f; --anor: #e14a6e; --anor-ink: #1a0b12; --seed: #ff6d8e; --anor-soft: #3a1626;
    --leaf: #5cc58f; --leaf-soft: #133626; --rind: #f0b44a; --rind-soft: #3a2a0e; --bad: #ff7a6b;
    --bad-soft: #3b1512; --side: #110816; --side-hi: #2a1832;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #160c1a; --card: #20132a; --sunk: #1b1022; --ink: #f4eaf0; --ink-2: #c9b8cf; --ink-3: #9583a0;
  --line: #36263f; --anor: #e14a6e; --anor-ink: #1a0b12; --seed: #ff6d8e; --anor-soft: #3a1626;
  --leaf: #5cc58f; --leaf-soft: #133626; --rind: #f0b44a; --rind-soft: #3a2a0e; --bad: #ff7a6b;
  --bad-soft: #3b1512; --side: #110816; --side-hi: #2a1832;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body);
  font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
img, svg { max-width: 100%; }
a { color: var(--anor); text-underline-offset: 3px; }
a:hover { color: var(--seed); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-2); }
.mute3 { color: var(--ink-3); }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 3px solid var(--seed); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Tugmalar va formalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .6rem 1.15rem; border-radius: var(--r-m); border: 1px solid transparent; font: 600 .95rem/1 var(--body);
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .08s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-anor { background: var(--anor); color: var(--anor-ink); }
.btn-anor:hover { background: var(--seed); color: var(--anor-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-soft { background: var(--anor-soft); color: var(--anor); }
.btn-soft:hover { color: var(--seed); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-ok { background: var(--leaf-soft); color: var(--leaf); }
.btn-sm { min-height: 34px; padding: .35rem .7rem; font-size: .85rem; border-radius: var(--r-s); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .35rem; }
.field { margin-bottom: 1rem; }
.hint { font-size: .82rem; color: var(--ink-2); margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url],
select, textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-s); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
  linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 2.2rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--anor); box-shadow: 0 0 0 3px var(--anor-soft); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--anor); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3.2rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none;
  color: var(--ink-2); font: 600 .8rem var(--body); padding: .5rem; cursor: pointer; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- Xabarlar ---------- */
.flash { padding: .8rem 1rem; border-radius: var(--r-m); margin-bottom: 1rem; font-weight: 500; border: 1px solid; }
.flash-ok { background: var(--leaf-soft); color: var(--leaf); border-color: transparent; }
.flash-err { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.flash-warn { background: var(--rind-soft); color: var(--rind); border-color: transparent; }
.flash-info { background: var(--sunk); color: var(--ink-2); border-color: var(--line); }
.banner { background: var(--ink); color: var(--paper); text-align: center; font-size: .9rem; padding: .55rem 1rem; }
.banner a { color: inherit; }

/* ---------- Status nishonlari ---------- */
.st { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { background: var(--leaf-soft); color: var(--leaf); }
.st-run { background: var(--anor-soft); color: var(--anor); }
.st-wait { background: var(--rind-soft); color: var(--rind); }
.st-part { background: var(--rind-soft); color: var(--rind); }
.st-bad { background: var(--bad-soft); color: var(--bad); }
.st-mute { background: var(--sunk); color: var(--ink-3); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 6px;
  background: var(--sunk); color: var(--ink-2); vertical-align: middle; }
.tag-leaf { background: var(--leaf-soft); color: var(--leaf); }
.tag-anor { background: var(--anor-soft); color: var(--anor); }

/* ---------- Jadval ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .8rem; padding: .7rem .9rem;
  border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; }
td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.link-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.empty h3 { color: var(--ink); }

/* Kichik ekranda jadval -> ro'yxat */
@media (max-width: 720px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-l); color: var(--ink-2); font-size: .82rem; text-align: left; flex: none; }
  .table-stack td.num { text-align: right; }
  .table-stack .link-cell { max-width: 60vw; }
}

.pager { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: var(--r-s);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; padding: 0 .6rem; }
.pager .cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Umumiy bloklar ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.4rem; }
.card + .card { margin-top: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.stack > * + * { margin-top: 1.25rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; font-size: .92rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; word-break: break-word; }
details.faq { border-top: 1px solid var(--line); padding: 1rem 0; }
details.faq:last-child { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::after { content: "+"; font-family: var(--display); color: var(--anor); }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: .7rem 0 0; color: var(--ink-2); max-width: 70ch; }
.copy-row { display: flex; gap: .5rem; }
.copy-row input { font-family: ui-monospace, Menlo, monospace; font-size: .88rem; }
pre.code { background: var(--side); color: #f2e6f5; padding: 1rem 1.2rem; border-radius: var(--r-m); overflow-x: auto;
  font-size: .85rem; line-height: 1.6; margin: 0 0 1rem; }

/* =========================================================== Ommaviy sahifa */
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.pub-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.pub-head.scrolled { border-bottom-color: var(--line); }
.pub-head .wrap { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink);
  font: 700 1.15rem var(--display); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex: none; }
.pub-nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.pub-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.pub-nav a:not(.btn):hover, .pub-nav a.on { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-s);
  width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .pub-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); padding: 1rem 16px 1.5rem; gap: .25rem; border-bottom: 1px solid var(--line); }
  .pub-nav.open { display: flex; }
  .pub-nav a:not(.btn) { padding: .7rem 0; font-size: 1.05rem; }
  .pub-nav .btn { margin-top: .5rem; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1.2rem;
  max-width: 13ch; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-ctas .btn { min-height: 52px; padding-inline: 1.5rem; font-size: 1rem; }
.hero-facts { display: flex; gap: 2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-facts div { font-size: .88rem; color: var(--ink-2); }
.hero-facts b { display: block; font: 700 1.35rem var(--display); color: var(--ink); letter-spacing: -.02em; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* Kalkulyator — sahifaning asosiy elementi */
.calc-stage { position: relative; }
.calc-stage .seeds { position: absolute; left: -96px; bottom: -78px; width: 230px; height: 230px; z-index: 0; transform: rotate(160deg);
  pointer-events: none; opacity: .9; }
.calc { position: relative; z-index: 1; background: var(--card); border-radius: 28px; padding: 1.6rem;
  box-shadow: var(--shadow); border: 1px solid var(--line); }
.calc-title { font-weight: 600; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.calc-title span { font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px;
  padding: .45rem .9rem; font: 600 .87rem var(--body); cursor: pointer; min-height: 38px; }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qty-row { display: grid; grid-template-columns: 1fr 120px; gap: .75rem; align-items: center; }
input[type=range] { width: 100%; accent-color: var(--anor); height: 28px; }
.price-out { margin: 1.4rem 0 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.price-out .big { font: 700 clamp(2rem, 5vw, 2.8rem)/1 var(--display); letter-spacing: -.04em; color: var(--anor); }
.price-out .big small { font-size: .4em; color: var(--ink-2); letter-spacing: 0; margin-left: .2rem; font-weight: 600; }
.price-out .per { font-size: .85rem; color: var(--ink-2); text-align: right; }
.svc-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }

/* Bo'limlar */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-tight { padding-top: 0; }
.sec h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.025em; max-width: 22ch; }
.sec .intro { color: var(--ink-2); max-width: 56ch; margin-bottom: 2.4rem; font-size: 1.05rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; margin: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { list-style: none; padding: 1.4rem 1.6rem 0 0; counter-increment: s; }
.steps li::before { content: counter(s); font: 700 2.6rem/1 var(--display); color: var(--anor); display: block; margin-bottom: .9rem; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); } }

.why { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.why-list h3 { font-family: var(--body); font-weight: 700; font-size: 1.02rem; letter-spacing: 0; margin-bottom: .35rem; }
.why-list p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.why-list svg { width: 26px; height: 26px; color: var(--anor); margin-bottom: .6rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .why-list { grid-template-columns: 1fr; } }

.band { background: var(--ink); color: var(--paper); border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.band h2 { color: var(--paper); }
.band p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.band pre.code { background: rgba(255, 255, 255, .06); margin: 0; }
.band .btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, .25); }
:root[data-theme="dark"] .band, .band { --band-ink: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: var(--card); border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .band h2, :root:not([data-theme="light"]) .band { color: var(--ink); } }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

.pay-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.pay-row span { border: 1px solid var(--line); border-radius: 10px; padding: .45rem .8rem; font-weight: 700; font-size: .88rem; background: var(--card); }

.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

.pub-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .9rem; color: var(--ink-2); }
.pub-foot .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.pub-foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.pub-foot a { color: var(--ink-2); text-decoration: none; }
.pub-foot a:hover { color: var(--ink); }

/* Xizmatlar sahifasi */
.svc-tools { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; align-items: center; }
.svc-tools input { max-width: 360px; }
.cat-block { margin-bottom: 2rem; }
.cat-block h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.page-head { padding: 2.5rem 0 1.5rem; }
.page-head p { color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; font-size: 1.15rem; }
.prose li { margin-bottom: .35rem; }

/* =========================================================== Kirish sahifalari */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.auth-art { background: var(--side); color: var(--side-ink); padding: 3rem; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; }
.auth-art .logo { color: #fff; position: relative; z-index: 1; }
.auth-pitch { position: relative; z-index: 1; }
.auth-art blockquote { margin: 0 0 1.4rem; font: 700 clamp(1.6rem, 2.8vw, 2.4rem)/1.12 var(--display); letter-spacing: -.025em; color: #fff;
  max-width: 14ch; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; max-width: 40ch; }
.auth-points li { display: flex; gap: .65rem; align-items: flex-start; color: var(--side-ink); font-size: .98rem; }
.auth-points li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(214, 58, 94, .25);
  color: #ff8fa8; display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: .1rem; }
.auth-art .seeds { position: absolute; right: -80px; bottom: -60px; width: 420px; height: 420px; opacity: .5; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 16px 1.5rem; gap: 1.2rem; }
.auth-box { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 2rem;
  box-shadow: var(--shadow); }
.auth-box h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.auth-box .sub { color: var(--ink-2); margin-bottom: 1.4rem; }
.auth-foot { font-size: .85rem; color: var(--ink-3); text-align: center; }
.auth-foot a { color: var(--ink-2); text-decoration: none; }
.oauth { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.oauth .btn { background: var(--card); border-color: var(--line); color: var(--ink); min-height: 50px; }
.oauth .btn:hover { border-color: var(--ink-3); }
.oauth svg { width: 20px; height: 20px; }
.tg-widget { display: flex; justify-content: center; min-height: 40px; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--ink-3); font-size: .85rem; margin: 1.2rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { text-align: center; margin-top: 1.4rem; color: var(--ink-2); font-size: .95rem; }
.otp { font: 700 1.6rem var(--display); letter-spacing: .35em; text-align: center; }
.auth-box .btn-block { min-height: 52px; font-size: 1rem; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: 100vh; }
  .auth-art { padding: 1.4rem 18px 4.2rem; gap: 1.4rem; min-height: auto; }
  .auth-art blockquote { font-size: 1.55rem; margin-bottom: .9rem; max-width: 18ch; }
  .auth-points { gap: .45rem; }
  .auth-points li { font-size: .9rem; }
  .auth-points li:nth-child(n+3) { display: none; }
  .auth-art .seeds { width: 230px; height: 230px; right: -60px; bottom: -40px; opacity: .45; }
  .auth-main { margin-top: -3rem; padding: 0 14px 1.5rem; justify-content: flex-start; position: relative; z-index: 2; }
  .auth-box { padding: 1.5rem 1.25rem; border-radius: 22px; }
  .auth-box h1 { font-size: 1.5rem; }
}

/* =========================================================== Panel */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 1.3rem 1rem; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 1.2rem; overflow-y: auto; }
.side .logo { color: #fff; padding: 0 .5rem; }
.side .logo:hover { color: #fff; }
.side-bal { background: var(--side-hi); border-radius: var(--r-m); padding: 1rem; }
.side-bal small { color: var(--side-mute); font-size: .8rem; display: block; }
.side-bal b { display: block; font: 700 1.35rem var(--display); color: #fff; letter-spacing: -.02em; margin: .15rem 0 .7rem; }
.side-bal .btn { width: 100%; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: .75rem; color: var(--side-ink); text-decoration: none; padding: .62rem .75rem;
  border-radius: 10px; font-weight: 500; font-size: .95rem; }
.side nav a svg { width: 19px; height: 19px; opacity: .75; flex: none; }
.side nav a:hover { background: var(--side-hi); color: #fff; }
.side nav a.on { background: var(--side-hi); color: #fff; box-shadow: inset 3px 0 0 var(--seed); }
.side nav a.on svg { opacity: 1; color: var(--seed); }
.side nav .grp { color: var(--side-mute); font-size: .76rem; padding: .9rem .75rem .3rem; }
.side .badge { margin-left: auto; background: var(--seed); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px;
  padding: .05rem .45rem; }
.side-foot { margin-top: auto; border-top: 1px solid var(--side-hi); padding-top: 1rem; display: flex; align-items: center; gap: .7rem; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who small { color: var(--side-mute); font-size: .78rem; }
.side-foot form { margin: 0; }
.icon-btn { background: none; border: 0; color: var(--side-mute); cursor: pointer; padding: .45rem; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { color: #fff; background: var(--side-hi); }
.icon-btn svg { width: 19px; height: 19px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--anor); color: #fff; display: grid; place-items: center;
  font: 700 .9rem var(--display); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.main-head h1 { margin: 0; }
.main-head p { margin: .35rem 0 0; color: var(--ink-2); }
.topbar { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(20, 8, 24, .5); z-index: 40; display: none; }
  .scrim.open { display: block; }
  .topbar { display: flex; align-items: center; gap: .75rem; padding: .7rem 16px; background: var(--side); color: #fff;
    position: sticky; top: 0; z-index: 30; }
  .topbar .logo { color: #fff; font-size: 1rem; }
  .topbar .bal { margin-left: auto; font: 700 .92rem var(--display); color: #fff; text-decoration: none; }
  .topbar .icon-btn { color: #fff; }
  .main { padding-top: 1.4rem; }
}

/* Panel: yangi buyurtma */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1100px) { .order-grid { grid-template-columns: 1fr; } }
.svc-desc { background: var(--sunk); border-radius: var(--r-m); padding: 1rem 1.1rem; font-size: .92rem; white-space: pre-line;
  color: var(--ink-2); margin-bottom: 1rem; }
.svc-desc:empty { display: none; }
.charge { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-top: 1px dashed var(--line);
  margin-top: .5rem; gap: 1rem; flex-wrap: wrap; }
.charge b { font: 700 1.8rem var(--display); color: var(--anor); letter-spacing: -.03em; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-m);
  overflow: hidden; border: 1px solid var(--line); margin-bottom: 1.25rem; }
.mini-stats div { background: var(--card); padding: 1rem; }
.mini-stats small { color: var(--ink-2); font-size: .8rem; }
.mini-stats b { display: block; font: 700 1.05rem var(--display); white-space: nowrap; letter-spacing: -.02em; margin-top: .2rem; }
.recent li { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line);
  font-size: .9rem; }
.recent { padding: 0; margin: 0; }
.recent li:last-child { border-bottom: 0; }
.recent .t { min-width: 0; }
.recent .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.recent .t small { color: var(--ink-3); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filters .chip { text-decoration: none; display: inline-flex; align-items: center; }
.filters form { margin-left: auto; display: flex; gap: .5rem; }
.filters input { min-height: 40px; max-width: 240px; }
@media (max-width: 720px) { .filters form { margin-left: 0; width: 100%; } .filters input { max-width: none; } }

.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.method { border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.25rem; background: var(--card); }
.method h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; }
.method p { font-size: .9rem; color: var(--ink-2); }
.method .instr { white-space: pre-line; background: var(--sunk); border-radius: var(--r-s); padding: .8rem; font-size: .9rem;
  margin-bottom: 1rem; color: var(--ink); }
.amount-presets { display: flex; gap: .4rem; flex-wrap: wrap; margin: -.4rem 0 1rem; }
.amount-presets button { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 8px;
  padding: .3rem .6rem; font: 600 .82rem var(--body); cursor: pointer; }
.amount-presets button:hover { color: var(--anor); border-color: var(--anor); }

.thread { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.25rem; }
.msg { max-width: 80%; padding: .85rem 1rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); white-space: pre-line; }
.msg small { display: block; color: var(--ink-3); font-size: .75rem; margin-top: .4rem; }
.msg.me { align-self: flex-end; background: var(--anor-soft); border-color: transparent; border-bottom-right-radius: 4px; }
.msg.staff { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.staff b { color: var(--anor); font-size: .82rem; display: block; margin-bottom: .2rem; }
@media (max-width: 600px) { .msg { max-width: 92%; } }

.linked { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.linked:last-child { border-bottom: 0; }
.linked svg { width: 26px; height: 26px; flex: none; }
.linked .t { flex: 1; min-width: 0; }
.linked .t small { display: block; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.linked form { margin: 0; }
.qr { background: #fff; display: inline-block; border-radius: var(--r-m); padding: .5rem; border: 1px solid var(--line); }
.qr svg { display: block; width: 190px; height: 190px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; font: 600 1.05rem ui-monospace, Menlo, monospace;
  background: var(--sunk); padding: 1rem; border-radius: var(--r-m); max-width: 380px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.two > .card + .card { margin-top: 0; }

/* =========================================================== Admin */
.app-admin .side { box-shadow: inset 4px 0 0 var(--seed); }
.admin-mark { background: var(--seed); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 6px; padding: .1rem .4rem; margin-left: .3rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.1rem; text-decoration: none; color: inherit; }
.kpi small { color: var(--ink-2); font-size: .82rem; }
.kpi b { display: block; font: 700 1.35rem var(--display); letter-spacing: -.02em; margin: .25rem 0 .1rem; color: var(--ink); }
.kpi span { font-size: .8rem; color: var(--ink-3); }
.kpi.alert { border-color: var(--seed); box-shadow: inset 0 3px 0 var(--seed); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 1rem; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.bars .col { width: 100%; background: var(--anor); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.bars .b:hover .col { background: var(--seed); }
.bars small { font-size: .66rem; color: var(--ink-3); white-space: nowrap; }
.h0{height:0%}.h1{height:1%}.h2{height:2%}.h3{height:3%}.h4{height:4%}.h5{height:5%}.h6{height:6%}.h7{height:7%}.h8{height:8%}.h9{height:9%}
.h10{height:10%}.h11{height:11%}.h12{height:12%}.h13{height:13%}.h14{height:14%}.h15{height:15%}.h16{height:16%}.h17{height:17%}.h18{height:18%}.h19{height:19%}
.h20{height:20%}.h21{height:21%}.h22{height:22%}.h23{height:23%}.h24{height:24%}.h25{height:25%}.h26{height:26%}.h27{height:27%}.h28{height:28%}.h29{height:29%}
.h30{height:30%}.h31{height:31%}.h32{height:32%}.h33{height:33%}.h34{height:34%}.h35{height:35%}.h36{height:36%}.h37{height:37%}.h38{height:38%}.h39{height:39%}
.h40{height:40%}.h41{height:41%}.h42{height:42%}.h43{height:43%}.h44{height:44%}.h45{height:45%}.h46{height:46%}.h47{height:47%}.h48{height:48%}.h49{height:49%}
.h50{height:50%}.h51{height:51%}.h52{height:52%}.h53{height:53%}.h54{height:54%}.h55{height:55%}.h56{height:56%}.h57{height:57%}.h58{height:58%}.h59{height:59%}
.h60{height:60%}.h61{height:61%}.h62{height:62%}.h63{height:63%}.h64{height:64%}.h65{height:65%}.h66{height:66%}.h67{height:67%}.h68{height:68%}.h69{height:69%}
.h70{height:70%}.h71{height:71%}.h72{height:72%}.h73{height:73%}.h74{height:74%}.h75{height:75%}.h76{height:76%}.h77{height:77%}.h78{height:78%}.h79{height:79%}
.h80{height:80%}.h81{height:81%}.h82{height:82%}.h83{height:83%}.h84{height:84%}.h85{height:85%}.h86{height:86%}.h87{height:87%}.h88{height:88%}.h89{height:89%}
.h90{height:90%}.h91{height:91%}.h92{height:92%}.h93{height:93%}.h94{height:94%}.h95{height:95%}.h96{height:96%}.h97{height:97%}.h98{height:98%}.h99{height:99%}.h100{height:100%}
.inline-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; flex-wrap: wrap; }
.inline-form input, .inline-form select { min-height: 36px; padding: .35rem .6rem; width: auto; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.imp-group { border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: .75rem; background: var(--card); }
.imp-group > summary { padding: .8rem 1rem; cursor: pointer; font-weight: 600; display: flex; gap: .8rem; align-items: center; }
.imp-group > summary small { color: var(--ink-3); font-weight: 500; margin-left: auto; }
.imp-group table { border-top: 1px solid var(--line); }
.sticky-bar { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding: 1rem 0; margin-top: 1rem;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; z-index: 5; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--ink-3); }
.status-dot.on { background: var(--leaf); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Hero sahifa yuklanishidagi yagona animatsiya: anor donalari */
@media (prefers-reduced-motion: no-preference) {
  .seeds circle { transform-origin: center; transform-box: fill-box; animation: seed-in .7s cubic-bezier(.2, .8, .2, 1.3) both; }
  .seeds circle:nth-child(3n) { animation-delay: .08s; }
  .seeds circle:nth-child(3n+1) { animation-delay: .16s; }
  .seeds circle:nth-child(4n) { animation-delay: .24s; }
  @keyframes seed-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

/* Yordamchi */
.btn-reset { border: 0; cursor: pointer; font-family: inherit; }
.w-80 { width: 90px !important; }
.w-110 { width: 120px !important; }
.chk { width: 18px; height: 18px; accent-color: var(--anor); }
.amt-plus { color: var(--leaf); }

/* Buyurtma: qidiruv va sevimlilar */
.o-search { position: relative; }
.o-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--shadow); max-height: 420px; overflow-y: auto; }
.o-results button { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); padding: .7rem .9rem; font: inherit; color: var(--ink); cursor: pointer; }
.o-results button:last-child { border-bottom: 0; }
.o-results button:hover, .o-results button.act { background: var(--sunk); }
.o-results .rid { font: 700 .75rem var(--body); background: var(--ink); color: var(--paper); border-radius: 6px; padding: .1rem .4rem; }
.o-results .rname { font-size: .9rem; line-height: 1.35; }
.o-results .rname small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: .15rem; }
.o-results .rprice { font-weight: 700; color: var(--anor); white-space: nowrap; font-size: .9rem; }
.o-results .rempty { padding: 1rem; color: var(--ink-2); font-size: .9rem; }
.svc-row { display: flex; gap: .5rem; }
.svc-row select { flex: 1; min-width: 0; }
.fav-btn { flex: none; width: 46px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-s); font-size: 1.2rem;
  color: var(--ink-3); cursor: pointer; }
.fav-btn[aria-pressed="true"] { color: var(--rind); border-color: var(--rind); background: var(--rind-soft); }

/* =========================================================== To'lov */
.btn-lg { min-height: 54px; font-size: 1.02rem; }
.pay-active { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-color: var(--rind); background: var(--rind-soft); margin-bottom: 1.25rem; }
.pay-active p { margin: .2rem 0 0; }
.topup { max-width: 760px; }
.step-title { display: flex; align-items: center; gap: .6rem; font-family: var(--body); font-weight: 700; font-size: 1.02rem; margin: 0 0 .9rem; }
.step-title span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font: 700 .8rem var(--display); }
.method-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 1.6rem; }
.mp { position: relative; cursor: pointer; margin: 0; font-weight: 400; }
.mp input { position: absolute; opacity: 0; pointer-events: none; }
.mp-body { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem; border: 2px solid var(--line); border-radius: var(--r-m);
  background: var(--card); transition: border-color .15s, box-shadow .15s; }
.mp-body b { font-size: 1rem; }
.mp-body small { color: var(--ink-2); font-size: .84rem; }
.mp-body .tag { align-self: flex-start; margin-top: .3rem; }
.mp:hover .mp-body { border-color: var(--ink-3); }
.mp input:checked + .mp-body { border-color: var(--anor); box-shadow: 0 0 0 4px var(--anor-soft); }
.mp input:focus-visible + .mp-body { outline: 3px solid var(--seed); outline-offset: 2px; }
.mp-logo { align-self: flex-start; font: 800 .78rem/1 var(--display); letter-spacing: .04em; padding: .4rem .55rem; border-radius: 7px; color: #fff; margin-bottom: .3rem; }
.mp-humo { background: #00a0e3; }
.mp-uzcard { background: #1d3f8f; }
.mp-crypto { background: #26a17b; letter-spacing: .1em; }
.amount-box { position: relative; }
.amount-box input { font: 700 1.5rem var(--display); min-height: 62px; padding-right: 5rem; letter-spacing: -.01em; }
.amount-box .unit { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 700; }
.amount-presets { margin: .6rem 0 .3rem; }
.pay-wrap { max-width: 640px; }
.pay-card > * + * { margin-top: 1.1rem; }
.pay-amount { text-align: center; padding: .5rem 0 0; }
.pay-amount small { display: block; color: var(--ink-2); }
.pay-big { font: 700 clamp(2.2rem, 7vw, 3.1rem)/1.1 var(--display); letter-spacing: -.035em; color: var(--anor); margin: .35rem 0 .7rem; }
.pay-big em { font-style: normal; font-size: .4em; color: var(--ink-2); letter-spacing: 0; }
.pay-cardnum { background: var(--sunk); border-radius: var(--r-m); padding: 1rem 1.1rem; }
.pay-cardnum small { display: block; color: var(--ink-2); }
.cardline { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: .3rem 0; flex-wrap: wrap; }
.mono-num { font: 700 1.35rem var(--display); letter-spacing: .06em; }
.pay-steps { margin: 0; padding-left: 1.2rem; color: var(--ink-2); }
.pay-steps li { margin-bottom: .35rem; }
.pay-steps b { color: var(--ink); }
.pay-wait { display: flex; align-items: center; gap: .9rem; border: 1px dashed var(--line); border-radius: var(--r-m); padding: .9rem 1rem; }
.pay-wait small { display: block; color: var(--ink-2); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--anor-soft); border-top-color: var(--anor); flex: none;
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.pay-done { text-align: center; padding: 2.5rem 1.5rem; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center;
  font: 700 2rem var(--display); margin: 0 auto 1rem; }
.pay-sent label { margin-top: .4rem; }
.pre { white-space: pre-line; display: block; }
.row-off td { opacity: .55; }
.topup + .two, #history { margin-top: 1.25rem; }
