/* xorazmcha.uz v2 — "Ichan Qal'a": lojuvard va feruza majolika, qum rang qog'oz, girih naqshlari */

:root {
  --bg: #f5efe3;
  --bg2: #ede3cf;
  --surface: #fffcf6;
  --ink: #1b2430;
  --ink2: #3c4654;
  --muted: #7b7262;
  --line: #e3d7c1;
  --lapis: #16437e;
  --lapis-ink: #16437e;
  --turq: #0b8487;
  --turq-soft: #d5ece8;
  --clay: #ad4b24;
  --clay-soft: #f5e0d3;
  --gold: #b98a22;
  --btn: #16437e;
  --btn-hover: #0f3566;
  --btn-ink: #ffffff;
  --hover: #f3eadb;
  --shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 10px 28px -16px rgba(60, 40, 10, .28);
  --shadow-lg: 0 2px 4px rgba(60, 40, 10, .05), 0 24px 48px -24px rgba(30, 40, 80, .35);
  --r: 16px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d131b; --bg2: #111a25; --surface: #151f2b; --ink: #efe8da; --ink2: #cdc4b3; --muted: #978e7d;
    --line: #233142; --lapis: #8db3ee; --lapis-ink: #a9c6f3; --turq: #4cc7c3; --turq-soft: #12302f; --clay: #e9906a;
    --clay-soft: #36211a; --gold: #e2b85a; --btn: #3a72c8; --btn-hover: #4a82d6; --btn-ink: #fff; --hover: #1b2735;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d131b; --bg2: #111a25; --surface: #151f2b; --ink: #efe8da; --ink2: #cdc4b3; --muted: #978e7d;
  --line: #233142; --lapis: #8db3ee; --lapis-ink: #a9c6f3; --turq: #4cc7c3; --turq-soft: #12302f; --clay: #e9906a;
  --clay-soft: #36211a; --gold: #e2b85a; --btn: #3a72c8; --btn-hover: #4a82d6; --btn-ink: #fff; --hover: #1b2735;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- asos */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; border-radius: 6px; }

/* yozuv va mavzu almashtirgichlari */
.when-lat, .when-dark { display: none; }
[data-script="lat"] .when-lat { display: inline; }
[data-script="lat"] .when-cyr { display: none; }
:root[data-theme="dark"] .when-dark { display: inline-flex; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: inline-flex; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}

/* ---------- tugmalar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 0; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15px;
  cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--hover); }
.btn-light { background: #fff; color: #0e2f5c; }
.btn-light:hover { background: #f1ece2; }
.iconbtn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; color: var(--ink2); transition: background .15s;
}
.iconbtn:hover { background: var(--hover); }
.chip {
  height: 40px; min-width: 52px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink2); cursor: pointer;
}
.chip:hover { background: var(--hover); }
.link { color: var(--lapis-ink); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- yuqori panel */
.topbar {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-in { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(145deg, #1a4f93, #0e2f5c); color: #5fd3cf; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.brand-mark .i { width: 22px; height: 22px; stroke-width: 1.6; }
.nav { display: flex; gap: 2px; margin-left: 18px; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--ink2); font-weight: 500; font-size: 15px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.on { color: var(--lapis-ink); background: color-mix(in srgb, var(--lapis) 10%, transparent); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-add { height: 40px; padding: 0 14px; font-size: 14px; }
.me .ava { width: 40px; height: 40px; font-size: 14px; }
@media (max-width: 1180px) {
  .nav { margin-left: 4px; }
  .nav a span { display: none; }
  .nav a { padding: 0 10px; }
}
@media (max-width: 560px) {
  .topbar .brand-name { display: none; }
  .btn-add span { display: none; }
  .btn-add { width: 40px; padding: 0; }
  .nav a { padding: 0 8px; }
  .tools { gap: 6px; }
  .chip { min-width: 44px; padding: 0 8px; }
  .iconbtn { width: 38px; }
}

/* ---------- naqshlar */
.tileband {
  height: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Crect width='28' height='14' fill='%230e2f5c'/%3E%3Cpath d='M14 1l6 6-6 6-6-6z' fill='%2345c4c1'/%3E%3Cpath d='M14 4.5l2.5 2.5-2.5 2.5-2.5-2.5z' fill='%23fffcf6'/%3E%3Cpath d='M0 1l6 6-6 6M28 1l-6 6 6 6' fill='%23b98a22'/%3E%3C/svg%3E") repeat-x center / 28px 14px;
}

/* ---------- hero */
.hero {
  position: relative; z-index: 5; color: #f4efe6;
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(76, 199, 195, .28), transparent 60%),
    radial-gradient(800px 380px at -10% 110%, rgba(185, 138, 34, .22), transparent 60%),
    linear-gradient(165deg, #134680 0%, #0e2f5c 55%, #0a2448 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .9; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.1'%3E%3Crect x='27' y='27' width='42' height='42'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0l27 27M96 0L69 27M0 96l27-27M96 96L69 69M48 0v18.3M48 96V77.7M0 48h18.3M96 48H77.7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, transparent 100%);
}
.hero-in { position: relative; z-index: 2; padding: 72px 16px 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #8fe0dc; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.eyebrow .i { width: 16px; height: 16px; }
.eyebrow-dark { color: var(--turq); background: var(--turq-soft); box-shadow: none; }
.hero-title {
  margin-top: 22px; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 6.4vw, 64px); line-height: 1.08; letter-spacing: -.02em;
  max-width: 16ch; text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 500; color: #ffd98a; }
.hero-sub { margin-top: 18px; max-width: 54ch; color: rgba(244, 239, 230, .78); font-size: clamp(16px, 2vw, 18px); text-wrap: pretty; }
.hero-try { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; font-size: 14px; color: rgba(244, 239, 230, .65); }
.hero-try a {
  padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #f4efe6; font-family: var(--serif); font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background .15s;
}
.hero-try a:hover { background: rgba(255, 255, 255, .16); }

/* ---------- qidiruv */
.search { position: relative; display: flex; align-items: center; width: 100%; max-width: 680px; }
.search input {
  width: 100%; height: 54px; padding: 0 120px 0 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 500 16px var(--sans); outline: none; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--muted); font-weight: 400; }
.search input:focus { border-color: var(--turq); box-shadow: 0 0 0 4px color-mix(in srgb, var(--turq) 18%, transparent), var(--shadow); }
.search-ico { position: absolute; left: 16px; color: var(--muted); display: flex; pointer-events: none; }
.search-ico .i { width: 20px; height: 20px; }
.search-kbd {
  position: absolute; right: 112px; font: 600 12px var(--sans); color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 7px; background: var(--bg);
}
.search-go { position: absolute; right: 6px; height: 42px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.search-big { margin-top: 32px; }
.search-big input { height: 64px; border-radius: 18px; font-size: 18px; padding-left: 54px; padding-right: 136px; border-color: transparent; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55); }
.search-big .search-ico { left: 20px; }
.search-big .search-go { height: 50px; right: 7px; padding: 0 22px; border-radius: 13px; font-size: 15px; background: #0b8487; }
.search-big .search-go:hover { background: #097375; }
.search-big .search-kbd { right: 132px; }
@media (max-width: 560px) {
  .search-kbd { display: none; }
  .search input, .search-big input { padding-right: 104px; }
  .search-big input { height: 58px; font-size: 16px; }
  .search-big .search-go { height: 46px; padding: 0 14px; }
}
.sugg {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 90; display: none; text-align: left;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 6px; max-height: min(440px, 60vh); overflow-y: auto;
}
.search.open .sugg { display: block; }
.sugg-item { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; }
.sugg-item b { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.sugg-item span { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-item:hover, .sugg-item.active { background: var(--hover); }
.sugg-item.active b { color: var(--lapis-ink); }
.sugg-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.sugg-all { display: block; padding: 10px 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--lapis-ink); }

/* ---------- statistika */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: -1px; padding-top: 28px;
}
.stat { text-align: center; padding: 6px 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; color: var(--lapis-ink); letter-spacing: -.01em; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .stat:nth-child(3) { border-left: 0; }
}

/* ---------- bo'limlar va kartalar */
.section { padding-top: 40px; }
.section:last-of-type { padding-bottom: 64px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-title h1, .sec-title h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); letter-spacing: -.01em; }
.count { color: var(--muted); font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 22px 8px; }
.card-head h2 { font-family: var(--serif); font-size: 20px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 13px; font-weight: 600;
  background: var(--turq-soft); color: var(--turq);
}
.tag .i { width: 15px; height: 15px; }
.tag-clay { background: var(--clay-soft); color: var(--clay); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; color: var(--lapis-ink); font-size: 15px; }
.more .i { transition: transform .15s; }
.more:hover .i { transform: translateX(3px); }

/* so'z sarlavhalari */
.hw { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.hw a:hover { color: var(--lapis-ink); }
.hw-xl { font-size: clamp(42px, 7vw, 72px); line-height: 1.02; }
.hw-md { font-size: clamp(34px, 4.6vw, 46px); line-height: 1.05; margin-top: 18px; }
.hw-sm { font-size: 21px; line-height: 1.2; }
.alt { margin-top: 6px; color: var(--muted); font-size: 15px; letter-spacing: .02em; font-style: italic; font-family: var(--serif); }
.alt-lg { font-size: 18px; }
.meaning { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--ink2); text-wrap: pretty; }
.meaning-lg { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink); line-height: 1.6; margin-top: 8px; }
.example {
  position: relative; margin: 18px 0 0; padding: 14px 18px 14px 46px; border-radius: 12px; background: var(--clay-soft);
  font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink);
}
.example .i { position: absolute; left: 14px; top: 15px; color: var(--clay); width: 20px; height: 20px; }
.example-lg { font-size: 19px; margin-top: 8px; }

/* kun so'zi */
.daycard { position: relative; padding: 26px 26px 24px; overflow: hidden; }
.daycard::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; opacity: .5; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230b8487' stroke-opacity='.35' stroke-width='1.2'%3E%3Crect x='27' y='27' width='42' height='42'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Ccircle cx='48' cy='48' r='30'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.daycard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: grid; gap: 16px; min-width: 0; }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--turq) 40%, var(--line)); }
.tile > .i { margin-left: auto; color: var(--muted); }
.tile-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--turq-soft); color: var(--turq); }
.tile-ico .i { width: 24px; height: 24px; }
.tile-app .tile-ico { background: var(--clay-soft); color: var(--clay); }
.tile-txt { display: flex; flex-direction: column; min-width: 0; }
.tile-txt b { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.tile-txt small { color: var(--muted); font-size: 14px; }

/* reyting ro'yxatlari */
.popular { padding-bottom: 10px; }
.rank { list-style: none; margin: 0; padding: 4px 10px 6px; counter-reset: r; }
.rank li a, .leaders li {
  position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; isolation: isolate; transition: background .15s;
}
.rank li a:hover { background: var(--hover); }
.rank-n { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--muted); text-align: center; }
.rank li:nth-child(-n+3) .rank-n { color: var(--gold); }
.rank-w { display: flex; flex-direction: column; min-width: 0; }
.rank-w b { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.rank-w small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-v { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--ink2); }
.rank-bar {
  position: absolute; left: 54px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; z-index: -1; background: transparent;
}
.rank-bar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: inherit;
  background: linear-gradient(90deg, var(--turq), color-mix(in srgb, var(--turq) 30%, transparent));
}

/* alifbo */
.abc { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.abc-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 1 / 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .18s, border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.abc-tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .18s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='2'%3E%3Crect x='27' y='27' width='42' height='42'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E") center / 48px, linear-gradient(150deg, #1a4f93, #0e2f5c);
}
.abc-l { position: relative; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.abc-n { position: relative; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.abc-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; color: #fff; }
.abc-tile:hover::before { opacity: 1; }
.abc-tile:hover .abc-n { color: #8fe0dc; }
.abc-tile.is-empty { opacity: .45; }

/* so'z kartalari */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wordcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.wordcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--turq) 40%, var(--line)); }
.wordcard p { color: var(--ink2); font-size: 15px; line-height: 1.55; flex: 1; }
.wordcard-l {
  position: absolute; right: 14px; top: 6px; font-family: var(--serif); font-size: 64px; font-weight: 700; line-height: 1;
  color: color-mix(in srgb, var(--turq) 12%, transparent); pointer-events: none;
}
.by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); margin-top: 4px; min-width: 0; }
.by > span:not(.ava) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* avatarlar */
.ava {
  --h: 200; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover;
  background: hsl(var(--h) 45% 88%); color: hsl(var(--h) 50% 28%); font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
:root[data-theme="dark"] .ava:not(img) { background: hsl(var(--h) 30% 24%); color: hsl(var(--h) 60% 82%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ava:not(img) { background: hsl(var(--h) 30% 24%); color: hsl(var(--h) 60% 82%); } }
.ava-sm { width: 26px; height: 26px; font-size: 11px; }
.verified { display: inline-flex; margin-left: 5px; color: var(--turq); vertical-align: -2px; }
.verified .i { width: 16px; height: 16px; }

/* chaqiriq bloki */
.cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 36px; border-radius: 22px;
  color: #f4efe6; overflow: hidden;
  background: radial-gradient(600px 240px at 100% 0%, rgba(76, 199, 195, .3), transparent 60%), linear-gradient(150deg, #1a4f93, #0e2f5c);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.1'%3E%3Crect x='27' y='27' width='42' height='42'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0l27 27M96 0L69 27M0 96l27-27M96 96L69 69'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px;
}
.cta > * { position: relative; }
.cta h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); }
.cta p { margin-top: 8px; color: rgba(244, 239, 230, .78); max-width: 56ch; }
@media (max-width: 720px) { .cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; } }

/* ---------- ichki sahifa sarlavhasi */
.pagehead { padding: 36px 0 8px; background: linear-gradient(180deg, var(--bg2), var(--bg)); border-bottom: 1px solid var(--line); }
.pagehead .search { margin: 0 auto; }
.pagehead-title { margin-top: 14px; font-family: var(--serif); font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.02em; }
.pagehead > .wrap > .muted { margin: 8px 0 22px; }
.pagehead:has(.search) { padding-bottom: 30px; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--lapis-ink); }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.crumbs span { color: var(--ink2); }

/* qidiruv natijalari */
.results { display: grid; gap: 10px; }
.result {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: 18px; align-items: baseline; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s;
}
.result:hover { border-color: color-mix(in srgb, var(--turq) 45%, var(--line)); background: color-mix(in srgb, var(--surface) 70%, var(--hover)); }
.result-w { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.result-w mark { background: none; color: var(--turq); }
.result-m { color: var(--ink2); font-size: 15px; }
.result-meta { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.result-meta .i { width: 15px; height: 15px; }
@media (max-width: 720px) { .result { grid-template-columns: 1fr; gap: 4px; } }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--turq-soft); color: var(--turq); }
.empty-mark .i { width: 28px; height: 28px; }
.empty h1, .empty h2 { font-family: var(--serif); font-size: 26px; }
.empty p { color: var(--muted); max-width: 46ch; }
.empty .search { margin-top: 12px; }

/* ---------- so'z sahifasi */
.word-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; padding-top: 16px; }
@media (max-width: 960px) { .word-layout { grid-template-columns: 1fr; } }
.entry { position: relative; padding: 34px 38px 28px; overflow: hidden; }
@media (max-width: 560px) { .entry { padding: 24px 20px 22px; } }
.entry-ornament {
  position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: .55; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%2316437e' stroke-opacity='.16' stroke-width='.9'%3E%3Crect x='27' y='27' width='42' height='42'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Ccircle cx='48' cy='48' r='30'/%3E%3Ccircle cx='48' cy='48' r='40'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.entry-top .muted { display: inline-flex; align-items: center; gap: 6px; }
.entry-top .i { width: 16px; height: 16px; }
.entry-body { margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--line); }
.label { margin-top: 18px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turq); }
.label:first-child { margin-top: 0; }
.entry-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: 12px; }
.author > div { display: flex; flex-direction: column; line-height: 1.35; }
.author b { font-weight: 600; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn { height: 40px; font-size: 14px; padding: 0 14px; }
.side { display: grid; gap: 16px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager-a { display: flex; align-items: center; gap: 10px; padding: 14px 14px; transition: border-color .15s, transform .15s; min-width: 0; }
.pager-a:hover { border-color: color-mix(in srgb, var(--turq) 45%, var(--line)); }
.pager-a > span { display: flex; flex-direction: column; min-width: 0; }
.pager-a small { color: var(--muted); font-size: 12px; }
.pager-a b { font-family: var(--serif); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager-next { justify-content: flex-end; text-align: right; grid-column: 2; }
.pager-a .i { color: var(--muted); }
.side-card { padding-bottom: 20px; }
.side-card .card-head h2 { font-size: 17px; }
.side-card .more { margin: 8px 22px 0; }
.mini { list-style: none; margin: 0; padding: 4px 10px 0; }
.mini a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 10px; }
.mini a:hover { background: var(--hover); }
.mini b { font-family: var(--serif); font-weight: 600; }
.mini small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* izohlar */
.comments .btn { margin-top: 16px; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.citem { display: flex; gap: 14px; padding: 18px 20px; }
.chead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.citem p { margin-top: 4px; color: var(--ink2); }

/* ---------- harf sahifasi */
.letterhead { display: flex; align-items: center; gap: 20px; }
.letterhead-l {
  display: grid; place-items: center; width: 84px; height: 84px; flex: none; border-radius: 22px; color: #fff;
  font-family: var(--serif); font-size: 46px; font-weight: 600; box-shadow: var(--shadow-lg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='1.5'%3E%3Crect x='27' y='27' width='42' height='42'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E") center / 100%, linear-gradient(150deg, #1a4f93, #0e2f5c);
}
.letterhead h1 { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); letter-spacing: -.01em; }
.letterhead p { color: var(--muted); margin-top: 4px; }
.abc-strip { display: flex; gap: 6px; overflow-x: auto; padding: 22px 0 18px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.abc-strip a {
  display: grid; place-items: center; min-width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-family: var(--serif); font-weight: 600; font-size: 17px; transition: background .15s, color .15s;
}
.abc-strip a:hover { background: var(--hover); }
.abc-strip a.on { background: var(--btn); border-color: var(--btn); color: #fff; }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.entryrow { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.entryrow:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--turq) 40%, var(--line)); }
.entryrow p { color: var(--ink2); font-size: 14.5px; line-height: 1.5; flex: 1; }
.entryrow .muted { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; }
.entryrow .i { width: 14px; height: 14px; }
.pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pages a, .pages span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pages a { border: 1px solid var(--line); background: var(--surface); }
.pages a:hover { background: var(--hover); }
.pages a.on { background: var(--btn); border-color: var(--btn); color: #fff; }
.pages span { color: var(--muted); }

/* ---------- reyting sahifasi */
.leaders { list-style: none; margin: 0; padding: 4px 10px 12px; }
.leaders li { grid-template-columns: 30px 44px 1fr auto; }
.leader-name { display: flex; flex-direction: column; min-width: 0; }
.leader-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-name small { font-size: 13px; }
.leader-n { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--lapis-ink); font-variant-numeric: tabular-nums; }
.leaders .rank-bar { left: 98px; }
.podium .rank-n { color: var(--gold); font-size: 17px; }
.podium.p1 .ava { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold); }
.grid-top { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .grid-top { grid-template-columns: 1fr; } }

/* ---------- pastki qism */
.foot { margin-top: 24px; background: #0b1f3d; color: #d8d2c6; }
.foot .tileband { height: 12px; background-size: 24px 12px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 28px; align-items: start; padding-top: 40px; padding-bottom: 28px; }
.foot .brand { color: #fff; }
.foot-brand p { margin-top: 12px; color: #9fa9b8; font-size: 14.5px; max-width: 44ch; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 15px; }
.foot-links a { color: #c9d2de; }
.foot-links a:hover { color: #fff; }
.play {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #fff; transition: background .15s;
}
.play:hover { background: rgba(255, 255, 255, .12); }
.play .i { width: 28px; height: 28px; color: #7ee2a0; }
.play span { display: flex; flex-direction: column; line-height: 1.2; }
.play small { font-size: 12px; color: #9fa9b8; }
.play b { font-size: 17px; }
.foot-copy { padding-bottom: 26px; font-size: 13px; color: #7d889a; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 18px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

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

/* =====================================================================
   2.0 — asosiy sayt: kirish, profil, so'z qo'shish, chat, saqlanganlar
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-login { height: 40px; padding: 0 14px; font-size: 14px; }
.btn-login .i { color: #229ED9; }
.btn-wide { width: 100%; height: 50px; font-size: 16px; }
.stretch::after { content: ""; position: absolute; inset: 0; }
.leaders li { position: relative; }
.leaders li:hover { background: var(--hover); }

/* xabarlar */
.flashes { display: grid; gap: 8px; padding-top: 16px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 15px; border: 1px solid; }
.flash .i { margin-top: 2px; }
.flash-ok { background: var(--turq-soft); color: var(--turq); border-color: color-mix(in srgb, var(--turq) 30%, transparent); }
.flash-err { background: var(--clay-soft); color: var(--clay); border-color: color-mix(in srgb, var(--clay) 30%, transparent); }
.flash span { color: var(--ink); }
.notice {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 18px; border-radius: 14px;
  background: color-mix(in srgb, #229ED9 12%, var(--surface)); border: 1px solid color-mix(in srgb, #229ED9 30%, var(--line)); font-size: 15px;
}
.notice > .i:first-child { color: #229ED9; width: 22px; height: 22px; }
.notice > .i:last-child { margin-left: auto; color: var(--muted); }

/* mobil pastki menyu */
.tabbar { display: none; }
@media (max-width: 720px) {
  .nav, .btn-add, .me, .btn-login { display: none !important; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); padding: 6px 0; }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--lapis-ink); }
  .tabbar .tab-add {
    justify-self: center; width: 52px; height: 52px; border-radius: 17px; justify-content: center; margin-top: -18px; color: #fff;
    background: linear-gradient(150deg, #1a4f93, #0e2f5c); box-shadow: 0 10px 24px -10px rgba(14, 47, 92, .8), inset 0 0 0 1px rgba(255, 255, 255, .12);
  }
  .tabbar .tab-add .i { width: 26px; height: 26px; color: #5fd3cf; }
  .brand-name { display: inline !important; }
  .foot { padding-bottom: 8px; }
}

/* so'z sahifasi: saqlash, izoh formasi */
.hw-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.iconbtn-lg { width: 48px; height: 48px; border-radius: 14px; flex: none; margin-top: 8px; }
.iconbtn-lg .i { width: 22px; height: 22px; }
.bm.on { background: var(--turq-soft); border-color: color-mix(in srgb, var(--turq) 40%, transparent); color: var(--turq); }
.bm.on .i { fill: currentColor; }
a.author:hover b { color: var(--lapis-ink); }
.cform { display: flex; gap: 14px; padding: 18px 20px; margin-top: 16px; }
.cform-body { flex: 1; display: grid; gap: 10px; justify-items: end; }
.cform textarea, .field input, .field textarea, .admin-form input, .chat-form input {
  width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 12px 14px;
  font: 400 16px/1.5 var(--sans); outline: none; transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.cform textarea:focus, .field input:focus, .field textarea:focus, .admin-form input:focus, .chat-form input:focus {
  border-color: var(--turq); box-shadow: 0 0 0 4px color-mix(in srgb, var(--turq) 16%, transparent);
}
.readmark { display: inline-flex; margin-left: 6px; color: var(--turq); vertical-align: -1px; }
.readmark .i { width: 16px; height: 16px; }
.entryrow.is-read { opacity: .78; }

/* formalar */
.form { display: grid; gap: 16px; }
.form-pad { padding: 4px 22px 22px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink2); }
.field em { color: var(--clay); font-style: normal; }
.hint { font-size: 13px; color: var(--muted); min-height: 18px; }
.hint.warn { color: var(--clay); font-weight: 600; }
.hint a { text-decoration: underline; text-underline-offset: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.phone-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.phone-in:focus-within { border-color: var(--turq); box-shadow: 0 0 0 4px color-mix(in srgb, var(--turq) 16%, transparent); }
.phone-in b { padding: 0 4px 0 14px; color: var(--muted); font-weight: 600; }
.phone-in input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.switch { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line); transition: background .15s; margin-top: 1px; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.switch input:checked + .switch-ui { background: var(--turq); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--turq); outline-offset: 2px; }
.switch > span:last-child { display: flex; flex-direction: column; }
.switch small { font-size: 13px; }

/* so'z qo'shish */
.add-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .add-layout { grid-template-columns: 1fr; } }
.formcard { padding: 26px; }
.formcard-head { display: flex; gap: 16px; margin-bottom: 20px; }
.formcard-head h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.tips { padding: 22px; display: grid; gap: 14px; }
.tips h2 { font-family: var(--serif); font-size: 19px; }
.tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink2); }
.tips li { display: flex; gap: 10px; }
.tips li .i { color: var(--turq); margin-top: 3px; }
.tips-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.tips-stats div { display: flex; flex-direction: column; }
.tips-stats b { font-family: var(--serif); font-size: 26px; color: var(--lapis-ink); }
.tips-stats span { font-size: 13px; color: var(--muted); }
.mylist { display: grid; gap: 8px; }
.myrow { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; }
.myrow-main { display: flex; flex-direction: column; min-width: 0; }
.myrow-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.hw:hover { color: var(--lapis-ink); }
@media (max-width: 560px) { .myrow { grid-template-columns: 1fr auto; } .myrow > .muted { display: none; } }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--turq-soft); color: var(--turq); }
.badge-wait { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.badge-no { background: var(--clay-soft); color: var(--clay); }

/* kirish */
.login { max-width: 520px; margin: 24px auto 0; padding: 38px 30px 30px; text-align: center; display: grid; gap: 16px; justify-items: center; position: relative; overflow: hidden; }
.login::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.1' stroke-width='1.1'%3E%3Crect x='27' y='27' width='42' height='42'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px, linear-gradient(165deg, #134680, #0e2f5c);
}
.login > * { position: relative; }
.login-art { margin-top: 36px; }
.brand-mark-xl { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 0 0 6px var(--surface), var(--shadow-lg); }
.brand-mark-xl .i { width: 42px; height: 42px; }
.login h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 30px); }
.login > p { max-width: 40ch; }
.bonus { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); }
.bonus > .i { width: 28px; height: 28px; color: var(--gold); }
.bonus div { display: flex; flex-direction: column; }
.bonus span { font-size: 13.5px; color: var(--ink2); }
.tg-widget { min-height: 48px; display: flex; justify-content: center; }

/* profil */
.pagehead-profile { padding-bottom: 28px; }
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-head .pagehead-title { margin-top: 0; font-size: clamp(26px, 4vw, 38px); }
.profile-head .muted { margin: 4px 0 0 !important; }
.profile-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.profile-acts form { margin: 0; }
.ava-xl { width: 88px; height: 88px; font-size: 30px; box-shadow: 0 0 0 4px var(--surface), var(--shadow); }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .pstats { grid-template-columns: repeat(2, 1fr); } }
.pstat { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.pstat b { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--lapis-ink); line-height: 1.1; }
.pstat span { color: var(--ink2); font-size: 14px; }
.pstat small { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--turq), var(--lapis)); }
.meter-lg { height: 10px; }
.wallet { padding: 24px; display: grid; gap: 14px; align-content: start; }
.wallet-top { display: flex; align-items: center; gap: 14px; }
.wallet-top > div { display: flex; flex-direction: column; }
.wallet .tile-ico { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.wallet-sum { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; }
.wdlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wdlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.wdlist li > span:first-child { display: flex; flex-direction: column; }
.wdlist small { font-size: 12.5px; }
.admin-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-style: dashed; }
.admin-box > b { display: inline-flex; align-items: center; gap: 6px; color: var(--clay); }
.admin-box form { margin: 0; display: flex; gap: 8px; }
.admin-form input { width: 220px; padding: 9px 12px; }
.grid-user { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .grid-user { grid-template-columns: 1fr; } }
.entries-2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.citem-sm { padding: 14px 18px; }
.citem-sm .hw { font-size: 17px; font-weight: 600; }

/* chat */
.chat { display: flex; flex-direction: column; overflow: hidden; }
.msgs { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; height: min(62vh, 620px); overflow-y: auto; scroll-behavior: smooth; }
.msgs-empty { margin: auto; }
.msg { display: flex; align-items: flex-end; gap: 10px; max-width: min(78%, 560px); }
.msg-b { padding: 10px 14px 8px; border-radius: 16px 16px 16px 6px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.msg-n { display: block; font-size: 13px; font-weight: 600; color: var(--turq); margin-bottom: 2px; }
.msg p { overflow-wrap: anywhere; }
.msg time { display: block; font-size: 11.5px; color: var(--muted); text-align: right; margin-top: 2px; }
.msg-me { align-self: flex-end; }
.msg-me .msg-b { background: var(--btn); border-color: var(--btn); color: #fff; border-radius: 16px 16px 6px 16px; }
.msg-me time { color: rgba(255, 255, 255, .7); }
.chat-form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { padding: 12px 14px; }
.chat-form .btn { width: 48px; padding: 0; flex: none; }
.chat-login { justify-content: center; }

/* tablar */
.tabs { display: flex; gap: 6px; margin: 18px 0 2px; overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink2); cursor: pointer; white-space: nowrap;
}
.tab.on { background: var(--btn); border-color: var(--btn); color: #fff; }
.tab span:empty { display: none; }
.tab span { font-size: 12px; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, currentColor 16%, transparent); }
.btn-clear { margin-top: 22px; }

/* savollar */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 10px; }
.qa { padding: 0; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 600; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { color: var(--muted); transition: transform .2s; flex: none; }
.qa[open] summary .i { transform: rotate(45deg); color: var(--turq); }
.qa p { padding: 0 20px 20px; color: var(--ink2); }
.play-light { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.play-light small { color: var(--muted); }
.play-light:hover { background: var(--hover); }

/* qidiruv ro'yxati boshqa bloklar ustida (hero kesmasin) */
.hero, .pagehead { position: relative; }
.pagehead { z-index: 4; }
.search.open { z-index: 90; }
.hero ~ .tileband { position: relative; z-index: 1; }
.msg > a, .citem > a, .cform > .ava { flex: none; }
.chat-login .btn { width: auto; padding: 0 20px; }
