/* ==========================================================================
   Imtihonly — dizayn tizimi
   Yorug' / tungi mavzu: <html data-theme="light|dark">, belgilanmasa tizim sozlamasi.
   ========================================================================== */

:root {
  /* Ranglar */
  --bg: #F4F6F2;
  --bg-glass: rgba(244, 246, 242, .78);
  --bg-tint: #E9F2EC;
  --surf: #FFFFFF;
  --surf-2: #E8EEE9;
  --ink: #0C1A14;
  --mute: #4B5B53;
  --line: #D8E0DA;
  --pri: #0A6B4B;
  --pri-text: #0A6B4B;
  --pri-ink: #FFFFFF;
  --pri-soft: #DCEDE4;
  --teal: #0E8C8C;
  --amber: #F2B33D;
  --amber-ink: #1D1504;
  --deep: #0D2A20;
  --danger: #B42318;
  --danger-soft: #FDE7E4;
  --ok: #0A6B4B;
  --ok-soft: #DCEDE4;
  --shadow: rgba(10, 60, 40, .38);
  --glow-1: rgba(10, 107, 75, .16);
  --glow-2: rgba(242, 179, 61, .20);
  --orb-1: rgba(14, 140, 140, .30);
  --orb-2: rgba(242, 179, 61, .32);
  --dot: rgba(12, 26, 20, .13);
  --glass: rgba(255, 255, 255, .70);
  --glass-line: rgba(12, 26, 20, .08);
  --hover: rgba(10, 107, 75, .07);
  --hl: #FBE7B5;
  --menu-bg: #FFFFFF;

  /* Ko'nikma ranglari */
  --c-listening: #0E8C8C;
  --c-reading: #0A6B4B;
  --c-writing: #B86E00;
  --c-speaking: #C2412A;

  /* Tipografiya */
  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* O'lchamlar */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --container: 1480px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1310; --bg-glass: rgba(10, 19, 16, .78); --bg-tint: #0D1915;
    --surf: #111D19; --surf-2: #1A2A24; --ink: #E6EFEA; --mute: #9DB0A6; --line: #24362F;
    --pri: #46C394; --pri-text: #6FD3AB; --pri-ink: #04170F; --pri-soft: #163A2D;
    --teal: #3FB8B8; --deep: #0F2E23; --danger: #FF8A7A; --danger-soft: #3A1714; --ok: #6FD3AB; --ok-soft: #163A2D;
    --shadow: rgba(0, 0, 0, .65); --glow-1: rgba(70, 195, 148, .20); --glow-2: rgba(242, 179, 61, .12);
    --orb-1: rgba(63, 184, 184, .26); --orb-2: rgba(242, 179, 61, .16); --dot: rgba(230, 239, 234, .10);
    --glass: rgba(17, 29, 25, .62); --glass-line: rgba(255, 255, 255, .08); --hover: rgba(255, 255, 255, .06); --hl: #4A3A12; --menu-bg: #13211C;
    --c-listening: #3FB8B8; --c-reading: #46C394; --c-writing: #F2B33D; --c-speaking: #F07A60;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1310; --bg-glass: rgba(10, 19, 16, .78); --bg-tint: #0D1915;
  --surf: #111D19; --surf-2: #1A2A24; --ink: #E6EFEA; --mute: #9DB0A6; --line: #24362F;
  --pri: #46C394; --pri-text: #6FD3AB; --pri-ink: #04170F; --pri-soft: #163A2D;
  --teal: #3FB8B8; --deep: #0F2E23; --danger: #FF8A7A; --danger-soft: #3A1714; --ok: #6FD3AB; --ok-soft: #163A2D;
  --shadow: rgba(0, 0, 0, .65); --glow-1: rgba(70, 195, 148, .20); --glow-2: rgba(242, 179, 61, .12);
  --orb-1: rgba(63, 184, 184, .26); --orb-2: rgba(242, 179, 61, .16); --dot: rgba(230, 239, 234, .10);
  --glass: rgba(17, 29, 25, .62); --glass-line: rgba(255, 255, 255, .08); --hover: rgba(255, 255, 255, .06); --hl: #4A3A12; --menu-bg: #13211C;
  --c-listening: #3FB8B8; --c-reading: #46C394; --c-writing: #F2B33D; --c-speaking: #F07A60;
  color-scheme: dark;
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--pri); color: var(--pri-ink); font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42px; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; border-radius: 13px; }
.btn-sm { min-height: 36px; padding: 7px 13px; font-size: 13.5px; border-radius: 10px; gap: 7px; }
.btn-primary { background: var(--pri); color: var(--pri-ink); box-shadow: 0 10px 22px -14px var(--pri); }
.btn-primary:hover { box-shadow: 0 14px 28px -14px var(--pri); }
.btn-ghost { background: var(--surf); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--pri); }
.btn-glass { background: var(--glass); border-color: var(--glass-line); color: var(--ink); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-amber { background: linear-gradient(135deg, #F7C65C, #E9A220); color: var(--amber-ink); box-shadow: 0 14px 30px -12px rgba(242, 179, 61, .7); }
.btn-white { background: #FFFFFF; color: #0A6B4B; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn-text { background: none; border: 0; padding: 6px 0; min-height: 0; color: var(--pri-text); }
.btn-text:hover { transform: none; text-decoration: underline; }
.btn-danger { background: var(--danger); color: #fff; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.icon-btn:hover { border-color: var(--pri); }

/* ---------- Belgi va chiplar ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pri-text); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--surf-2); font-size: 13px; font-weight: 500; }
.chip-soft { background: var(--pri-soft); color: var(--pri-text); }
.chip-amber { background: var(--amber); color: var(--amber-ink); font-weight: 700; letter-spacing: .04em; font-size: 12px; }
.chip-sample { background: var(--hl); color: var(--ink); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* ---------- Header va menyu ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg-glass); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg-glass); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #12875F, #0A6B4B); color: #fff;
  font-family: var(--f-display); font-weight: 700; font-size: 17px; box-shadow: 0 8px 18px -8px rgba(10, 107, 75, .8);
}
.logo-word { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent;
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; color: var(--ink);
  transition: background-color .2s ease;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-active { background: var(--surf-2); }
.nav-link svg { transition: transform .2s ease; }
/* Faqat strelka aylanadi — bayroq, avatar va boshqa ikonlar joyida qoladi */
.nav-link[aria-expanded="true"] svg:last-child:not(.flag) { transform: rotate(180deg); }
.nav-link .flag, .nav-link[aria-expanded="true"] .flag { transform: none !important; }
.submenu {
  position: absolute; top: calc(100% + 10px); left: -12px; z-index: 40; min-width: 320px;
  padding: 12px; border-radius: 20px; background: var(--menu-bg); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 30px 60px -20px var(--shadow), 0 2px 6px rgba(0, 0, 0, .06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .22s var(--ease), visibility .2s;
}
.nav-item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1025px) {
  .nav-item:hover > .submenu { opacity: 1; visibility: visible; transform: none; }
}
.submenu-wide { width: 640px; }
.submenu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.submenu-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; transition: background-color .2s ease; }
.submenu-item:hover, .submenu-item:focus-visible { background: var(--hover); }
.submenu-item strong { display: block; font-size: 15px; }
.submenu-item span.muted { font-size: 13px; }
.submenu-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.submenu-links a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; text-decoration: none; font-size: 14px; }
.submenu-links a:hover { background: var(--hover); }
.submenu-links svg { flex: none; color: var(--pri-text); margin-top: 2px; }
.submenu-links strong { display: block; font-size: 14px; }
.submenu-links .muted { font-size: 12.5px; }
.submenu-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surf-2); font-size: 14px; }
.submenu-foot a { font-weight: 600; color: var(--pri-text); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 3px; border-radius: 12px; background: var(--surf-2); }
.lang-switch button {
  min-width: 42px; height: 38px; padding: 0 10px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--mute); font-size: 13px; font-weight: 600;
}
.lang-switch button[aria-pressed="true"] { background: var(--surf); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.user-menu .submenu { left: auto; right: 0; min-width: 240px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri-text); font-weight: 700; }
.burger { display: none; }

/* Mobil menyu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: rgba(4, 14, 10, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mobile-nav.is-open { display: block; }
.mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); overflow-y: auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  background: var(--bg); display: flex; flex-direction: column; gap: 6px; animation: slideIn .28s var(--ease);
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.mobile-panel details { border-radius: 14px; }
.mobile-panel summary, .mobile-panel > a {
  display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 12px 14px;
  border-radius: 14px; font-weight: 600; text-decoration: none; cursor: pointer; list-style: none;
}
.mobile-panel summary::-webkit-details-marker { display: none; }
.mobile-panel summary:hover, .mobile-panel > a:hover { background: var(--surf-2); }
.mobile-panel details[open] summary svg { transform: rotate(180deg); }
.mobile-sub { display: flex; flex-direction: column; padding: 4px 0 8px 14px; }
.mobile-sub a { padding: 11px 14px; border-radius: 12px; text-decoration: none; }
.mobile-sub a:hover { background: var(--hover); }

@media (max-width: 1024px) {
  .main-nav, .hide-md { display: none !important; }
  .burger { display: inline-grid; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .header-row { gap: 10px; }
}

/* ---------- Skill tile ---------- */
.tile {
  width: 52px; height: 52px; border-radius: 15px; flex: none; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 19px; color: #fff;
  background: linear-gradient(140deg, var(--tint) 0%, color-mix(in srgb, var(--tint) 78%, #000) 100%);
  box-shadow: 0 12px 24px -10px var(--tint);
}
.tile-sm { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; box-shadow: none; }
.tint-listening { --tint: var(--c-listening); }
.tint-reading { --tint: var(--c-reading); }
.tint-writing { --tint: var(--c-writing); }
.tint-speaking { --tint: var(--c-speaking); }
.tint-other { --tint: var(--teal); }
[class*="tint-"] .tile { color: #fff; }
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .tile-sm { color: #06140F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile { color: #06140F; } }

/* ---------- Bo'limlar ---------- */
.section { padding-block: 64px; }
.section-sm { padding-block: 32px; }
.band { background: linear-gradient(180deg, var(--surf) 0%, var(--bg-tint) 100%); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-head .lead { max-width: 460px; color: var(--mute); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.025em; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.lead-lg { font-size: 17px; color: var(--mute); max-width: 580px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero va fon effektlari ---------- */
.fx-bg { position: relative; overflow: hidden; isolation: isolate; }
.fx-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(55% 65% at 85% 15%, var(--glow-1), transparent 70%),
    radial-gradient(45% 55% at 5% 95%, var(--glow-2), transparent 70%),
    linear-gradient(180deg, var(--bg-tint), transparent 60%);
}
.fx-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 25%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 50% 35%, #000 25%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; pointer-events: none; animation: drift 16s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; right: -120px; top: -140px; background: var(--orb-1); }
.orb-2 { width: 340px; height: 340px; left: -120px; bottom: -160px; background: var(--orb-2); animation-delay: -6s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.12); } }
.hero { padding-block: 44px 88px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-visual { flex: 1 1 420px; min-width: 0; max-width: 520px; margin: 0 auto; position: relative; padding-block: 20px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; color: var(--mute); }
.checks span { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { color: var(--pri); }
.grad-text {
  background: linear-gradient(100deg, var(--pri) 0%, var(--teal) 50%, var(--amber) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s linear infinite;
}
@keyframes shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-radius: 14px; font-size: 13px; font-weight: 600; box-shadow: 0 16px 32px -18px var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip .ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; }
@keyframes floaty { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
.result-card { border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 40px 80px -36px var(--shadow); }
.score-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: 14px; }
.bar { height: 10px; border-radius: 99px; background: var(--surf-2); overflow: hidden; }
.bar > span {
  display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--pri));
  transform-origin: left center; animation: grow 1.4s var(--ease) .3s both;
}
@keyframes grow { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
.band-scale { position: relative; height: 36px; }
.band-scale .track { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px; background: var(--surf-2); }
.band-scale .fill { position: absolute; left: 0; top: 10px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--pri)); transform-origin: left; animation: grow 1.4s var(--ease) .3s both; }
.band-scale .dot { position: absolute; top: 3px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--pri); border: 3px solid var(--surf); }
.band-scale .target { position: absolute; top: 2px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--amber); }
.band-scale .ticks { position: absolute; left: 0; right: 0; top: 22px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.live { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 179, 61, .55); } 50% { box-shadow: 0 0 0 8px rgba(242, 179, 61, 0); } }

/* Kirish animatsiyasi (ko'rinadigan holatdan boshlanadi) */
.reveal { animation: up .8s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
@keyframes up { from { opacity: .35; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Kartalar ---------- */
.card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card-fx { position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.card-fx::after {
  content: ""; position: absolute; right: -90px; bottom: -110px; width: 240px; height: 240px; border-radius: 50%;
  background: var(--tint, var(--pri)); opacity: .10; filter: blur(50px); z-index: -1; transition: opacity .35s ease, transform .35s ease;
}
.card-fx:hover { transform: translateY(-6px); border-color: var(--tint, var(--pri)); box-shadow: 0 28px 56px -28px var(--tint, var(--pri)); }
.card-fx:hover::after { opacity: .38; transform: scale(1.15); }
.skill-card { display: flex; flex-direction: column; gap: 18px; }
.skill-card .top { display: flex; align-items: center; justify-content: space-between; }
.skill-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tint); text-decoration: none; padding: 6px 0; }
.skill-card .go::after { content: ""; position: absolute; inset: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.step { padding: 28px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: transform .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px var(--shadow); }
.step-num { align-self: flex-start; padding: 5px 10px; border-radius: 9px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: #fff; background: var(--tint); box-shadow: 0 10px 20px -10px var(--tint); }
:root[data-theme="dark"] .step-num { color: #06140F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-num { color: #06140F; } }
.step-title { font-family: var(--f-display); font-size: 19px; font-weight: 600; }

/* Nazariya bloki */
.deep-block {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); color: #EAF3EE;
  background: linear-gradient(160deg, #0F3A2B 0%, var(--deep) 55%, #071A13 100%);
  padding: 64px clamp(24px, 5vw, 72px); display: flex; flex-wrap: wrap; gap: 48px;
}
.deep-block::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 90% at 80% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 90% at 80% 20%, #000 20%, transparent 75%);
}
.deep-block::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 60% at 95% 0%, rgba(70, 195, 148, .42), transparent 70%), radial-gradient(35% 50% at 0% 100%, rgba(242, 179, 61, .22), transparent 70%);
}
.deep-block h2 { color: #fff; }
.deep-block .muted { color: #B9CFC4; }
.deep-block .eyebrow { color: #8FD9B8; }
.deep-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; }
.mod-card {
  padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}
.mod-card:hover { background: rgba(255, 255, 255, .11); border-color: rgba(143, 217, 184, .45); transform: translateY(-3px); }
.mod-card strong { color: #fff; }
.mod-card span { font-size: 14px; color: #B9CFC4; }

/* Tariflar — admin qo'shgan 3–5 ta tarifga moslashadigan kartalar */
.plans { display: grid; gap: 20px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.plans-1, .plans-2 { max-width: 760px; margin-inline: auto; }
.acc-blue   { --acc: #2453E0; --acc-2: #5B82FF; }
.acc-orange { --acc: #E0560F; --acc-2: #FF8A3D; }
.acc-green  { --acc: #0A7A52; --acc-2: #2DBA82; }
.acc-purple { --acc: #6D35D9; --acc-2: #9B6CFF; }
.acc-teal   { --acc: #0B7F86; --acc-2: #2DB8B8; }
.acc-rose   { --acc: #C42B5F; --acc-2: #F2648F; }
.plan-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px 24px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 7%, var(--surf)) 0%, var(--surf) 55%);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.plan-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); }
.plan-card::after {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -80px; top: -90px; border-radius: 50%;
  background: var(--acc-2); opacity: .10; filter: blur(40px); transition: opacity .3s ease;
}
.plan-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: 0 30px 60px -32px var(--acc); }
.plan-card:hover::after { opacity: .25; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; }
.plan-days { padding: 6px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.plan-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surf); color: var(--acc); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .25); }
.plan-name { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.plan-amount { display: flex; align-items: baseline; gap: 8px; }
.plan-amount b { font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.plan-amount span { font-size: 15px; font-weight: 600; color: var(--mute); }
.plan-old { font-size: 14px; color: var(--mute); }
.plan-tagline { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.plan-tagline svg { flex: none; color: var(--acc); margin-top: 2px; }
.plan-features { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features svg { flex: none; color: var(--acc); margin-top: 1px; }
.plan-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; font-size: 14.5px;
  border-radius: 12px; font-weight: 600; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 70%, var(--acc-2)));
  box-shadow: 0 10px 20px -14px var(--acc); transition: transform .2s var(--ease), box-shadow .25s ease;
}
.plan-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px var(--acc); }
.plan-card.is-popular { color: #fff; border-color: transparent; background: linear-gradient(160deg, var(--acc-2) 0%, var(--acc) 55%, color-mix(in srgb, var(--acc) 70%, #000) 100%); box-shadow: 0 40px 80px -36px var(--acc); }
.plan-card.is-popular::before { background: rgba(255, 255, 255, .35); }
.plan-card.is-popular::after { background: #F2B33D; opacity: .30; }
.plan-card.is-popular .plan-days { color: var(--acc); background: #fff; }
.plan-card.is-popular .plan-amount span, .plan-card.is-popular .plan-old { color: rgba(255, 255, 255, .8); }
.plan-card.is-popular .plan-tagline svg, .plan-card.is-popular .plan-features svg { color: #FCD46B; }
.plan-card.is-popular .plan-features { border-color: rgba(255, 255, 255, .3); }
.plan-card.is-popular .plan-cta { background: #fff; color: var(--acc); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .5); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ring::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), #F2B33D, #46C394, #0E8C8C, #F2B33D);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }

/* Bo'sh holat */
.empty {
  padding: 48px 28px; border-radius: 24px; border: 1.5px dashed var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 240px;
}
.empty .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--surf-2); display: grid; place-items: center; color: var(--mute); }
.empty strong { font-size: 17px; }
.empty p { max-width: 380px; color: var(--mute); font-size: 15px; }

/* Blog kartalari */
.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.post-cover { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--pri-soft), var(--bg-tint)); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 { font-size: 19px; line-height: 1.35; }

/* Fikrlar */
.quote { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.band-change { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-weight: 600; font-size: 14px; }
.band-change span { padding: 6px 10px; border-radius: 8px; background: var(--surf-2); }
.band-change span.to { background: var(--pri); color: var(--pri-ink); }

/* Aloqa */
.contact-block {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px); color: #EAF5EF;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(242, 179, 61, .28), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(63, 184, 184, .35), transparent 65%),
    linear-gradient(135deg, #0D3B2C 0%, #0A5A43 55%, #0E6E6E 100%);
  box-shadow: 0 40px 80px -50px rgba(10, 60, 40, .7);
}
.contact-block::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.cb-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.cb-orb-1 { width: 220px; height: 220px; right: -60px; bottom: -80px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%); animation: drift 18s ease-in-out infinite; }
.cb-orb-2 { width: 120px; height: 120px; left: 38%; top: -40px; background: radial-gradient(circle, rgba(242, 179, 61, .35), transparent 70%); animation: drift 14s ease-in-out infinite reverse; }
.cb-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.cb-lines path { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; }
.cb-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cb-info .h2 { color: #fff; }
.cb-info > p { color: #BFD8CC; max-width: 440px; }
.cb-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.cb-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.cb-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); min-width: 0; }
.cb-list small { display: block; font-size: 12px; color: #9FC2B3; }
.cb-list a, .cb-list li > span > span { color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.cb-list a:hover { text-decoration: underline; }
.cb-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(242, 179, 61, .18); color: #F7C65C; }
.cb-form { flex: 1 1 380px; min-width: 0; padding: clamp(20px, 3vw, 30px); border-radius: 22px; background: var(--surf); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .contact-block { background: radial-gradient(60% 90% at 100% 0%, rgba(242, 179, 61, .16), transparent 60%), linear-gradient(135deg, #0B2A20 0%, #0D3B2C 60%, #0B4646 100%); }
.contact-list { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px 16px; font-size: 15px; }
.contact-list dt { color: var(--mute); }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Formalar ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px var(--glow-1); }
.field .help { font-size: 13px; color: var(--mute); }
.field .errors { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--danger); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.form-errors { padding: 12px 16px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }

/* ---------- Ichki sahifa sarlavhasi ---------- */
.page-hero { padding-block: 18px 24px; border-bottom: 1px solid var(--line); }
.page-hero .inner { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { padding: 16px 20px; border-radius: 16px; min-width: 120px; }
.stat b { display: block; font-family: var(--f-display); font-size: 28px; font-weight: 600; }
.stat span { font-size: 13px; color: var(--mute); }

/* Filtrlar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: var(--surf-2); gap: 2px; }
.seg a { padding: 9px 14px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--mute); }
.seg a.is-active { background: var(--surf); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search input { width: 100%; min-height: 46px; padding: 12px 16px 12px 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); }

/* Test kartasi */
.test-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.test-meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* Jadval */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surf); }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 13px; font-weight: 600; color: var(--mute); background: var(--bg); }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination .is-current { background: var(--pri); color: var(--pri-ink); border-color: var(--pri); }

/* Xabarlar (toast) */
.toasts { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: 15px;
  box-shadow: 0 24px 48px -20px var(--shadow); animation: up .4s var(--ease) both;
}
.toast.success { border-left: 0; }
.toast .t-ico { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--pri); color: var(--pri-ink); }
.toast.error .t-ico { background: var(--danger); color: #fff; }
.toast.info .t-ico { background: var(--amber); color: var(--amber-ink); }
.toast button { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--mute); width: 32px; height: 32px; border-radius: 8px; }

/* Matn sahifalari */
.prose { max-width: 720px; font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--f-display); font-size: 24px; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* Kabinet */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.skill-stat { display: flex; flex-direction: column; gap: 14px; }
.skill-stat .val { font-family: var(--f-display); font-size: 34px; font-weight: 600; }
.status { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surf-2); }
.status.reviewed { background: var(--ok-soft); color: var(--ok); }
.status.submitted { background: var(--hl); }

/* Natija sahifasi */
.result-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.big-band { font-family: var(--f-display); font-size: clamp(56px, 8vw, 88px); font-weight: 600; line-height: 1; }
.review-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surf); }
.review-item .n { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: 14px; }
.review-item.ok .n { background: var(--ok-soft); color: var(--ok); }
.review-item.bad .n { background: var(--danger-soft); color: var(--danger); }
.review-item.neutral .n { background: var(--surf-2); }
.answer-pair { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, var(--bg), var(--bg-tint)); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-cols nav a { text-decoration: none; }
.footer-cols nav a:hover { color: var(--pri-text); }
.footer-title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.footer-bottom a { text-decoration: none; }

/* Xato sahifalari */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--f-display); font-size: clamp(80px, 14vw, 160px); font-weight: 700; line-height: 1; }

@media (max-width: 640px) {
  .section { padding-block: 52px; }
  .hero { padding-block: 28px 64px; }
  .float-chip { display: none; }
  .contact-list { grid-template-columns: 1fr; gap: 4px; }
  .contact-list dd { margin-bottom: 10px; }
}

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

/* ---------- Ko'nikma kartasi: rasm maydoni ---------- */
.skill-card { padding: 14px 14px 22px; }
.skill-card > :not(.skill-media) { padding-inline: 10px; }
.skill-media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 16px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--tint) 85%, #fff) 0%, var(--tint) 60%, color-mix(in srgb, var(--tint) 70%, #000) 100%);
}
.skill-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.skill-card:hover .skill-media img { transform: scale(1.06); }
.skill-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .35)); pointer-events: none; }
.skill-media.is-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(120deg, #000 20%, transparent 85%); mask-image: linear-gradient(120deg, #000 20%, transparent 85%);
}
.skill-media-letter { position: absolute; right: -4%; bottom: -18%; line-height: 1; color: rgba(255, 255, 255, .16); }
.skill-media-letter svg { width: 150px; height: 150px; }
.skill-media-lines { position: absolute; left: 22px; right: 40%; bottom: 26px; height: 46px; display: flex; align-items: flex-end; gap: 6px; }
.skill-media-lines i { flex: 1; border-radius: 4px; background: rgba(255, 255, 255, .55); animation: eq 1.8s ease-in-out infinite; }
.skill-media-lines i:nth-child(1) { height: 35%; } .skill-media-lines i:nth-child(2) { height: 70%; animation-delay: -.3s; }
.skill-media-lines i:nth-child(3) { height: 50%; animation-delay: -.6s; } .skill-media-lines i:nth-child(4) { height: 95%; animation-delay: -.9s; }
.skill-media-lines i:nth-child(5) { height: 60%; animation-delay: -1.2s; } .skill-media-lines i:nth-child(6) { height: 80%; animation-delay: -1.5s; }
.skill-media-lines i:nth-child(7) { height: 40%; animation-delay: -.45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.7); } 50% { transform: scaleY(1); } }
.skill-media-lines i { transform-origin: bottom; }
.skill-media-tile { position: absolute; left: 16px; top: 16px; z-index: 2; background: rgba(255, 255, 255, .22) !important; color: #fff !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; border: 1px solid rgba(255, 255, 255, .35); }
.skill-media-time { position: absolute; right: 14px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- To'rt qadam ---------- */
.steps-section { background: linear-gradient(180deg, var(--surf) 0%, var(--bg-tint) 100%); border-block: 1px solid var(--line); }
.steps-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); counter-reset: step; }
.flow-step {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 12px 12px 24px; border-radius: 24px;
  background: var(--surf); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.flow-step:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tint) 50%, var(--line)); box-shadow: 0 28px 56px -30px var(--tint); }
.flow-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 18px; display: grid; place-items: center;
  background: radial-gradient(80% 80% at 30% 20%, color-mix(in srgb, var(--tint) 30%, var(--surf)) 0%, color-mix(in srgb, var(--tint) 12%, var(--surf)) 60%, var(--surf-2) 100%);
}
.flow-media img { width: 100%; height: 100%; object-fit: cover; }
.flow-orbit, .flow-orbit::before {
  position: absolute; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--tint) 45%, transparent);
}
.flow-orbit { width: 64%; aspect-ratio: 1; animation: orbit 30s linear infinite; }
.flow-orbit::before { content: ""; inset: 18%; border-style: solid; border-color: color-mix(in srgb, var(--tint) 25%, transparent); }
.flow-orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tint) 25%, transparent); }
@keyframes orbit { to { transform: rotate(360deg); } }
.flow-icon {
  position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--tint) 80%, #fff), var(--tint));
  box-shadow: 0 18px 36px -14px var(--tint), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.flow-num { position: absolute; right: 14px; bottom: 6px; font-size: 54px; font-weight: 600; line-height: 1; color: color-mix(in srgb, var(--tint) 22%, transparent); }
.flow-media:not(.is-placeholder) .flow-num { color: rgba(255, 255, 255, .85); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.flow-body { display: flex; flex-direction: column; gap: 8px; padding-inline: 10px; }
.flow-step .step-num { font-family: var(--f-body); font-size: 12px; letter-spacing: .04em; }
@media (min-width: 1100px) {
  .flow-step:not(:last-child)::after {
    content: ""; position: absolute; z-index: 2; top: calc(12px + (100% - 24px) * 0); right: -22px; width: 22px; height: 2px;
    top: 120px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
  }
}

/* ==========================================================================
   Platforma ichki qismi: yon menyu va sahifalar
   ========================================================================== */
.app-shell { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-block: 20px 48px; }
.app-side { flex: 1 1 240px; max-width: 260px; position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 16px; }
.app-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--mute); transition: background-color .2s ease, color .2s ease; }
.side-link:hover { background: var(--hover); color: var(--ink); }
.side-link.is-active { background: var(--pri-soft); color: var(--pri-text); font-weight: 600; box-shadow: inset 3px 0 0 var(--pri); }
.side-promo {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; color: #EAF3EE; font-size: 14px;
  background: radial-gradient(80% 80% at 100% 0%, rgba(242, 179, 61, .35), transparent 60%), linear-gradient(160deg, #0F3A2B, #071A13);
}
.side-promo strong { font-family: var(--f-display); font-size: 17px; color: #fff; }
.side-promo span { color: #B9CFC4; }
.side-promo .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 900px) {
  .app-side { position: static; max-width: 100%; width: 100%; min-width: 0; flex-basis: 100%; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 6px; }
  .side-link { flex: none; min-height: 40px; }
  .side-link.is-active { box-shadow: inset 0 -3px 0 var(--pri); }
  .side-promo { display: none; }
}

.app-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.app-title h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; }

/* Katta ko'nikma tablari */
.skill-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); }
.skill-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px; border-radius: 13px; text-decoration: none; font-weight: 600; color: var(--mute); transition: background-color .2s ease, color .2s ease; }
.skill-tab:hover { background: var(--hover); color: var(--ink); }
.skill-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--tint) 70%, #000)); box-shadow: 0 12px 24px -12px var(--tint); }
.skill-tab .tile { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; box-shadow: none; }
.skill-tab.is-active .tile { background: rgba(255, 255, 255, .22); color: #fff !important; }
@media (max-width: 640px) { .skill-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Savol turi chiplari */
.type-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.type-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color .2s ease, background-color .2s ease; }
.type-chip:hover { border-color: var(--tint); }
.type-chip b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surf-2); font-size: 12px; text-align: center; }
.type-chip.is-active { border-color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, var(--surf)); color: var(--tint); }
.type-chip.is-active b { background: var(--tint); color: #fff; }

/* Filtr paneli */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); }
.toolbar select, .toolbar .input { min-height: 42px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.toolbar .search { flex: 1 1 200px; }
.toolbar .search input { min-height: 42px; background: var(--bg); }

/* Qiyinlik va holat belgilari */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-easy { background: #DDF3E6; color: #0B6B3F; }
.pill-medium { background: #FCEFCF; color: #8A5A00; }
.pill-hard { background: #FBE1DD; color: #A12A16; }
.pill-new { background: var(--surf-2); color: var(--mute); }
.pill-done { background: var(--pri-soft); color: var(--pri-text); }
.pill-progress { background: #E2E9FB; color: #2846A8; }
.pill-locked { background: var(--surf-2); color: var(--mute); }
:root[data-theme="dark"] .pill-easy { background: #133A27; color: #7BE0A9; }
:root[data-theme="dark"] .pill-medium { background: #3A2E10; color: #F4C76A; }
:root[data-theme="dark"] .pill-hard { background: #3D1A15; color: #FF9C8A; }
:root[data-theme="dark"] .pill-progress { background: #1C2747; color: #9DB4FF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill-easy { background: #133A27; color: #7BE0A9; }
  :root:not([data-theme="light"]) .pill-medium { background: #3A2E10; color: #F4C76A; }
  :root:not([data-theme="light"]) .pill-hard { background: #3D1A15; color: #FF9C8A; }
  :root:not([data-theme="light"]) .pill-progress { background: #1C2747; color: #9DB4FF; }
}
.table .q-title { display: flex; flex-direction: column; gap: 2px; }
.table .q-title a { font-weight: 600; text-decoration: none; }
.table .q-title a:hover { color: var(--pri-text); }
.table .q-title span { font-size: 13px; color: var(--mute); white-space: normal; }
.table tbody tr { transition: background-color .15s ease; }
.table tbody tr:hover { background: var(--hover); }
.table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--mute); }
.table-foot .pagination { margin: 0; }

/* Statistika kartalari */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px; }
.stat-card { padding: 18px 20px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.stat-card b { font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1.1; }
.stat-card span { font-size: 14px; color: var(--mute); }
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--tint, var(--pri)); opacity: .10; }

/* Mashq sahifasi */
.practice-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); }
.practice-id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.practice-id b { font-family: var(--f-mono); }
.practice-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.practice-grid.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .practice-grid { grid-template-columns: minmax(0, 1fr); } }
.practice-passage { font-family: var(--f-serif); font-size: 17px; line-height: 1.75; display: flex; flex-direction: column; gap: 14px; }
.practice-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.goto { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); }
.goto input { width: 72px; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); text-align: center; }
.q-card.is-ok { border-color: var(--ok); background: var(--ok-soft); }
.q-card.is-bad { border-color: var(--danger); background: var(--danger-soft); }
.q-feedback { padding-left: 46px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.history-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history-list li:last-child { border-bottom: 0; }

/* Lug'at kartochkasi */
.flash { perspective: 1200px; }
.flash-inner { position: relative; min-height: 300px; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.flash.is-flipped .flash-inner { transform: rotateY(180deg); }
.flash-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; padding: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
}
.flash-front { background: linear-gradient(150deg, #12875F, #0A6B4B 55%, #083D2C); color: #fff; box-shadow: 0 40px 80px -40px rgba(10, 107, 75, .8); }
.flash-back { background: var(--surf); border: 1px solid var(--line); transform: rotateY(180deg); }
.flash-word { font-family: var(--f-display); font-size: clamp(32px, 5vw, 48px); font-weight: 600; }
.progress-ring { --p: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: 15px;
  background: radial-gradient(closest-side, var(--surf) 78%, transparent 80% 100%), conic-gradient(var(--tint, var(--pri)) calc(var(--p) * 1%), var(--surf-2) 0); }
.topic-card { display: flex; gap: 18px; align-items: center; text-decoration: none; }

/* Mini ustunli grafik */
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.mini-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.mini-chart .col i { width: 100%; max-width: 38px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--tint, var(--pri)), color-mix(in srgb, var(--tint, var(--pri)) 55%, transparent)); transform-origin: bottom; animation: rise 1s var(--ease) both; }
.mini-chart .col b { font-family: var(--f-mono); font-size: 12px; }
@keyframes rise { from { transform: scaleY(.15); } to { transform: none; } }
.ring-progress { height: 8px; border-radius: 99px; background: var(--surf-2); overflow: hidden; }
.ring-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--tint, var(--pri)); }

/* Materiallar */
.material-body h2 { font-family: var(--f-display); font-size: 22px; margin-top: 1.4em; }
.material-body ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surf-2); align-self: flex-start; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--mute); }
.tabs a.is-active { background: var(--surf); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---------- Submenyu: rangli ikonkalar va chizmali fon ---------- */
.submenu { isolation: isolate; overflow: hidden; }
.submenu::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 100% 0%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .2) 100%);
  mask-image: linear-gradient(160deg, #000 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .2) 100%);
}
.submenu::after {
  content: ""; position: absolute; z-index: -1; right: 18px; top: 14px; width: 120px; height: 120px; pointer-events: none;
  border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--teal) 30%, transparent);
  box-shadow: inset 0 0 0 18px color-mix(in srgb, var(--teal) 4%, transparent);
  animation: orbit 40s linear infinite;
}
.nav-item.is-open > .submenu .submenu-item, .nav-item:hover > .submenu .submenu-item { animation: subIn .35s var(--ease) both; }
.submenu .submenu-item:nth-child(2) { animation-delay: .03s; } .submenu .submenu-item:nth-child(3) { animation-delay: .06s; }
.submenu .submenu-item:nth-child(4) { animation-delay: .09s; } .submenu .submenu-item:nth-child(5) { animation-delay: .12s; }
@keyframes subIn { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.menu-ico {
  width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center;
  color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, var(--surf));
  border: 1px solid color-mix(in srgb, var(--tint) 22%, transparent);
  transition: transform .25s var(--ease), background-color .25s ease, color .25s ease;
}
.submenu-item:hover .menu-ico { transform: rotate(-6deg) scale(1.06); background: var(--tint); color: #fff; }
.submenu-item.tint-listening { --tint: #0E9AA7; } .submenu-item.tint-reading { --tint: #6D5BD0; }
.submenu-item.tint-writing { --tint: #D98A0B; } .submenu-item.tint-speaking { --tint: #E0486B; }
:root[data-theme="dark"] .submenu-item.tint-listening { --tint: #3FC7D2; }
:root[data-theme="dark"] .submenu-item.tint-reading { --tint: #9C8CFF; }
:root[data-theme="dark"] .submenu-item.tint-writing { --tint: #F2B33D; }
:root[data-theme="dark"] .submenu-item.tint-speaking { --tint: #FF7A98; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .submenu-item.tint-listening { --tint: #3FC7D2; }
  :root:not([data-theme="light"]) .submenu-item.tint-reading { --tint: #9C8CFF; }
  :root:not([data-theme="light"]) .submenu-item.tint-writing { --tint: #F2B33D; }
  :root:not([data-theme="light"]) .submenu-item.tint-speaking { --tint: #FF7A98; }
}
.menu-ico.sm { width: 38px; height: 38px; border-radius: 11px; }

/* ---------- Tinglash pleyeri, transcript, taymer, limit ---------- */
.speech { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; font-family: var(--f-body);
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 14%, var(--surf)), var(--surf)); border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line)); }
.speech-play { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0E9AA7, #0A6B4B); box-shadow: 0 10px 22px -12px #0E9AA7; }
.speech-wave { flex: 1 1 60px; min-width: 0; display: flex; align-items: center; gap: 4px; height: 28px; }
.speech-wave i { flex: 1; height: 30%; border-radius: 3px; background: color-mix(in srgb, var(--teal) 45%, transparent); transition: height .2s ease; }
.speech.is-playing .speech-wave i { animation: eq 1s ease-in-out infinite; height: 90%; }
.speech.is-playing .speech-wave i:nth-child(odd) { animation-delay: -.35s; height: 60%; }
.speech.is-playing .speech-wave i:nth-child(3n) { animation-delay: -.7s; height: 100%; }
.speech select { min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); }
.speech-note { flex-basis: 100%; font-size: 12.5px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 40px; height: 22px; border-radius: 99px; background: var(--surf-2); border: 1px solid var(--line); position: relative; transition: background-color .2s ease; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--pri); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.transcript { padding: 16px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line); font-size: 16px; }
.practice-timer { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.start-overlay { position: absolute; inset: -6px; z-index: 5; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
  background: color-mix(in srgb, var(--deep) 88%, transparent); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.start-overlay .muted { color: #B9CFC4; max-width: 340px; }
.start-btn { width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2DBA82, #0A6B4B); box-shadow: 0 0 0 10px rgba(45, 186, 130, .18), 0 20px 40px -14px #0A6B4B; animation: pulse 2.4s ease-in-out infinite; }
.timer-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surf-2); font-size: 14px; }
.timer-chip.is-low { background: #FBE3D9; color: #8A2A0A; }
.quota-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 14px;
  background: color-mix(in srgb, var(--amber) 14%, var(--surf)); border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line)); }
.quota-note a { margin-left: auto; font-weight: 700; color: var(--pri-text); text-decoration: none; }
.quota-note.is-out { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.side-quota { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); font-size: 13.5px; }
.side-quota strong { font-size: 14px; }
.side-quota .row { justify-content: space-between; flex-wrap: nowrap; }
.side-quota .ring-progress { height: 6px; }
.streak { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700;
  color: #8A3B00; background: linear-gradient(135deg, #FFE3B3, #FFC56B); }
:root[data-theme="dark"] .streak { color: #3A1A00; }

/* ---------- Testlar, kinolar, audiolar ---------- */
.quiz-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.media-card { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 18px; text-decoration: none; }
.media-card > :not(.media-cover) { padding-inline: 6px; }
.media-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; display: grid; place-items: center; color: rgba(255, 255, 255, .85);
  background: radial-gradient(70% 90% at 20% 10%, color-mix(in srgb, var(--tint) 70%, #fff) 0%, var(--tint) 45%, color-mix(in srgb, var(--tint) 45%, #000) 100%); }
.media-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.4px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%); mask-image: linear-gradient(135deg, #000, transparent 75%); }
.media-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-card:hover .media-cover img { transform: scale(1.05); }
.media-cover-ico { position: relative; opacity: .5; }
.media-play { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--tint); background: rgba(255, 255, 255, .92); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.media-card:hover .media-play { transform: scale(1.1); }
.media-time { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 8px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); }
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 20px; overflow: hidden; background: #0B1411; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #B9CFC4; text-align: center; padding: 20px;
  background: radial-gradient(60% 80% at 80% 0%, rgba(224, 72, 107, .35), transparent 70%), linear-gradient(160deg, #1A2A24, #071A13); }
.video-empty strong { color: #fff; }
.vocab-list { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.vocab-list dt { font-weight: 700; color: var(--pri-text); }
.vocab-list dd { margin: 0; color: var(--mute); }
.plan-limit span { opacity: .9; }
.week-dots { display: inline-flex; gap: 6px; }
.week-dots i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; color: #B9CFC4; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.week-dots i.on { color: #3A1A00; background: linear-gradient(135deg, #FFE3B3, #FFC56B); border-color: transparent; }

/* ---------- To'lov ---------- */
.checkout-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-steps li { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--mute); background: var(--surf); border: 1px solid var(--line); }
.checkout-steps b { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); background: var(--surf-2); color: var(--ink); }
.checkout-steps .is-active { color: var(--ink); border-color: var(--pri); box-shadow: 0 0 0 3px var(--glow-1); }
.checkout-steps .is-active b { background: var(--pri); color: var(--pri-ink); }
.checkout-steps .is-done b { background: var(--pri-soft); color: var(--pri-text); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: minmax(0, 1fr); } }
.checkout-summary { position: sticky; top: 96px; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.pay-method { position: relative; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method-body { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surf); border: 1.5px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease); }
.pay-method:hover .pay-method-body { transform: translateY(-2px); }
.pay-method input:checked + .pay-method-body { border-color: var(--pri); box-shadow: 0 0 0 4px var(--glow-1), 0 18px 36px -24px var(--pri); }
.pay-method input:focus-visible + .pay-method-body { outline: 3px solid var(--amber); outline-offset: 2px; }
.pay-check { margin-left: auto; width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: transparent; }
.pay-method input:checked + .pay-method-body .pay-check { background: var(--pri); border-color: var(--pri); color: var(--pri-ink); }
.pay-badge { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 20px; color: #fff; }
.pay-payme { background: linear-gradient(135deg, #2FD3D3, #0BA3B2); }
.pay-click { background: linear-gradient(135deg, #3D8BFF, #1F5FD6); }
.pay-paynet { background: linear-gradient(135deg, #36B37E, #1E8A5A); }
.pay-card { background: linear-gradient(135deg, #6D5BD0, #4B3BB0); }
.pay-wallet { background: linear-gradient(135deg, #2A2F35, #0F1215); }
.pay-cash { background: linear-gradient(135deg, #F2B33D, #D98A0B); }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.pay-amount b { font-family: var(--f-display); font-size: 26px; }
.pay-instructions { padding: 16px; border-radius: 14px; border: 1px dashed var(--line); font-size: 15px; }
.pay-instructions p + p { margin-top: 8px; }
.pay-result { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--surf-2); }
.pay-result.ok { background: var(--ok-soft); color: var(--ok); }
.pay-result.wait { background: #E2E9FB; color: #2846A8; }
.pay-result.bad { background: var(--danger-soft); color: var(--danger); }
.pay-status-pending { background: #FCEFCF; color: #8A5A00; }
.pay-status-submitted { background: #E2E9FB; color: #2846A8; }
.pay-status-approved { background: var(--pri-soft); color: var(--pri-text); }
.pay-status-rejected { background: var(--danger-soft); color: var(--danger); }
.pay-status-cancelled { background: var(--surf-2); color: var(--mute); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border-radius: 16px; border: 1.5px dashed var(--line); background: var(--bg); text-align: center; cursor: pointer; transition: border-color .2s ease; }
.dropzone:hover { border-color: var(--pri); }
.dropzone svg { color: var(--pri-text); }

/* ---------- Til menyusi ---------- */
.lang-toggle { gap: 6px; border: 1px solid var(--line); background: var(--surf); min-height: 44px; }
.lang-menu .submenu { left: auto; right: 0; width: 250px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lang-option { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; align-items: center; color: var(--ink); }
.lang-code { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--pri-text); background: var(--pri-soft); }
.lang-option.is-current { background: var(--hover); }
.lang-tick { margin-left: auto; color: var(--pri); }
.lang-sub::after { display: none; }


/* ==========================================================================
   Testlar to'plami: kartochka / ro'yxat ko'rinishi
   ========================================================================== */
.collection-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.collection-count { font-size: 14px; }
.view-toggle { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surf-2); border: 1px solid var(--line); }
.view-toggle button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--mute); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"] { background: var(--surf); color: var(--pri-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (max-width: 480px) { .view-toggle button span { display: none; } }
.collection[data-view="grid"] .collection-list { display: none; }
.collection[data-view="list"] .collection-grid { display: none; }
.collection .collection-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.test-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; margin-top: auto; }
.test-band { font-size: 14px; color: var(--mute); }
.test-band b { color: var(--pri-text); font-family: var(--f-mono); }
.list-title { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.list-title b { font-weight: 600; }
.list-title:hover b { color: var(--pri-text); }
.tile-xs { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; box-shadow: none; flex: none; }
.chip-xs { padding: 2px 8px; font-size: 11px; }
.pill-free { background: var(--pri-soft); color: var(--pri-text); }
.pagination a[aria-label] { font-size: 20px; }

/* ==========================================================================
   Bosh sahifa: maslahatlar va natijalar
   ========================================================================== */
.tips-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.tip-card { position: relative; display: flex; flex-direction: column; padding: 0; text-decoration: none; overflow: hidden; }
.tip-card.tc-1 { --tint: var(--pri); } .tip-card.tc-2 { --tint: var(--teal); } .tip-card.tc-3 { --tint: var(--amber); } .tip-card.tc-4 { --tint: #6D35D9; }
.tip-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--tint) 20%, var(--surf)); }
.tip-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tip-card:hover .tip-cover img { transform: scale(1.05); }
.tip-num { position: absolute; left: 14px; top: 14px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tip-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.tip-card h3 { font-size: 17px; line-height: 1.3; }
.tip-card p { font-size: 14px; }
.tip-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--pri-text); }
.tip-card:hover .tip-more svg { transform: translateX(4px); }
.tip-more svg { transition: transform .2s var(--ease); }
.section-head + .collection .collection-bar { margin-top: -14px; }
.collection-list td.time { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Ixcham sahifa sarlavhasi (ko'nikma sahifalari) va zamonaviy ko'rsatkichlar
   ========================================================================== */
.page-hero .h1, .page-hero-title { font-size: clamp(26px, 3vw, 38px) !important; letter-spacing: -.02em; }
.page-hero .lead-lg { font-size: 16px; max-width: 620px; }
.skill-hero .hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.skill-hero .inner { gap: 10px; }
.skill-hero .title-row { display: flex; align-items: center; gap: 14px; }
.skill-hero .title-row .tile { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
.skill-hero .title-row .eyebrow { display: block; font-size: 11px; margin-bottom: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero-meta { display: flex; align-items: stretch; padding: 6px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 40px -30px var(--shadow); }
.hero-meta-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.hero-meta-item + .hero-meta-item { border-left: 1px solid var(--line); }
.hero-meta-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--tint, var(--pri)); background: color-mix(in srgb, var(--tint, var(--pri)) 13%, var(--surf)); }
.hero-meta-item b { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 600; line-height: 1.1; }
.hero-meta-item span:not(.hero-meta-ico) { font-size: 12.5px; color: var(--mute); }
@media (max-width: 560px) {
  .hero-meta { width: 100%; }
  .hero-meta-item { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
  .hero-meta-ico { width: 32px; height: 32px; border-radius: 10px; }
}
.auth-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: color-mix(in srgb, var(--amber) 16%, var(--surf)); border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line)); }
.auth-note svg { flex: none; margin-top: 2px; color: #B07A00; }

/* ==========================================================================
   Ro'yxat asboblari: qidiruv + filtr belgisi + ko'rinish belgilari, ochiladigan filtr
   ========================================================================== */
.list-tools { margin-bottom: 16px; }
.lt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lt-bar .search { flex: 1 1 260px; max-width: 420px; }
.lt-bar .search input { min-height: 42px; padding-block: 9px; }
.lt-count { font-size: 14px; }
.lt-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.icon-group { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surf-2); border: 1px solid var(--line); }
.icon-tg { position: relative; width: 36px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--mute); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.icon-tg:hover { color: var(--ink); }
.icon-tg[aria-pressed="true"] { background: var(--surf); color: var(--pri-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.icon-tg-solo { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf); }
.icon-tg-solo[aria-expanded="true"], .icon-tg-solo.has-active { color: var(--pri-text); border-color: var(--pri); background: var(--pri-soft); }
.icon-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--pri); color: var(--pri-ink); }
.flt-panel { margin-top: 10px; padding: 16px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 20px 40px -30px var(--shadow); transform-origin: top; animation: fltIn .22s var(--ease); }
.flt-panel[hidden] { display: none !important; }
@keyframes fltIn { from { opacity: 0; transform: translateY(-6px) scaleY(.97); } }
.flt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.flt-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mute); }
.flt-field select { min-height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 500; }
.flt-field select:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px var(--glow-1); }
.flt-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.collection-bar { margin-bottom: 14px; }

/* Qulf (bepul tarifdagilar uchun yopiq kontent) */
.card-lock { position: absolute; z-index: 2; left: 52px; top: 18px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #FFF4D6; color: #A86E00; border: 1px solid #F2D58A; box-shadow: 0 6px 14px -8px rgba(168, 110, 0, .6); }
.test-card { position: relative; }
.test-card.is-locked .display { opacity: .82; }
.lock-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: -18px; margin-top: 18px; border-radius: 50%; background: #FFF4D6; color: #A86E00; border: 1.5px solid var(--surf); }
.lock-btn, .go-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; text-decoration: none; }
.lock-btn { background: #FFF4D6; color: #A86E00; border: 1px solid #F2D58A; }
.go-btn { background: var(--surf-2); color: var(--mute); }
.go-btn:hover { background: var(--pri); color: var(--pri-ink); }
.table td.r, .table th.r { text-align: right; }
tr.is-locked .list-title b { color: var(--mute); }
:root[data-theme="dark"] .card-lock, :root[data-theme="dark"] .lock-btn, :root[data-theme="dark"] .lock-dot { background: #3A2E10; color: #F5C870; border-color: #5A4515; }

/* Sahifalash */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pager-info { font-size: 13.5px; font-family: var(--f-mono); }
.pager-pages { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); }
.pager-num, .pager-btn { min-width: 36px; height: 36px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); transition: background-color .15s ease; }
.pager-num:hover, .pager-btn:hover { background: var(--surf-2); }
.pager-num.is-current { background: var(--pri); color: var(--pri-ink); box-shadow: 0 6px 14px -8px var(--pri); }
.pager-btn.is-off { color: var(--line); pointer-events: none; }
.pager-gap { min-width: 22px; text-align: center; color: var(--mute); }
@media (max-width: 520px) { .pager { justify-content: center; } .pager-info { width: 100%; text-align: center; } }

/* Mock testlar: rangli ixcham ko'rsatkichlar */
.kpi-pills { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.kpi-pill { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; text-decoration: none; color: var(--kc-ink); background: var(--kc-bg); border: 1.5px solid transparent; transition: transform .15s var(--ease), border-color .15s ease; }
.kpi-pill:hover { transform: translateY(-2px); }
.kpi-pill.is-active { border-color: var(--kc-ink); box-shadow: 0 10px 20px -16px var(--kc-ink); }
.kpi-pill b { margin-left: auto; font-family: var(--f-display); font-size: 22px; font-weight: 600; color: var(--ink); }
.kp-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.6px solid currentColor; }
.kp-label { font-weight: 600; font-size: 14.5px; }
.kp-blue { --kc-bg: #E3E8FC; --kc-ink: #3046B8; } .kp-green { --kc-bg: #DDF4E3; --kc-ink: #187A3C; }
.kp-amber { --kc-bg: #FBEDCB; --kc-ink: #8C5A00; } .kp-purple { --kc-bg: #EFE2FB; --kc-ink: #7A35C2; }
:root[data-theme="dark"] .kp-blue { --kc-bg: #1C2547; --kc-ink: #9DB0FF; } :root[data-theme="dark"] .kp-green { --kc-bg: #133A27; --kc-ink: #7BE0A9; }
:root[data-theme="dark"] .kp-amber { --kc-bg: #3A2E10; --kc-ink: #F5C870; } :root[data-theme="dark"] .kp-purple { --kc-bg: #2E1C47; --kc-ink: #C9A2FF; }
.time-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--teal) 12%, var(--surf)); color: var(--teal); }
.mock-table th { background: color-mix(in srgb, #3046B8 7%, var(--bg)); }
.mock-name { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.mock-name a { text-decoration: none; color: var(--ink); } .mock-name a:hover { color: var(--pri-text); }
.mini-skills { display: inline-flex; gap: 4px; }
.mini-skills i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--tint); }
.st-text { font-weight: 600; font-size: 14px; }
.st-lock { color: #9B4DD0; } .st-done { color: #187A3C; } .st-prog { color: #2846A8; } .st-new { color: var(--mute); }
.lt-head { align-items: center; margin-bottom: 16px; }
.lt-head .lt-count { font-family: var(--f-body); font-size: 14px; font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.quiz-card .card-lock { left: 62px; top: 20px; }

/* Natija: javoblar xaritasi (1 2 3 …) */
.answer-map { padding: 20px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); }
.amap-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.amap-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--mute); }
.amap-legend li { display: inline-flex; align-items: center; gap: 6px; }
.amap-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.amap-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.amap-n { height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--f-mono); font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s var(--ease), box-shadow .15s ease; }
.amap-n:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px currentColor; }
.amap-n:focus-visible { outline: 3px solid var(--glow-1); outline-offset: 2px; }
.am-ok { background: #DDF4E3; color: #157A3A; border-color: #9FDCB2; }
.am-bad { background: #FDE2DE; color: #B42318; border-color: #F4A99F; }
.am-partial { background: #FDF0C7; color: #8C5A00; border-color: #F0CF73; }
.am-empty, .am-review { background: var(--surf-2); color: var(--mute); border-color: var(--line); }
.amap-legend .am-ok { background: #3DBA6A; } .amap-legend .am-bad { background: #E5483A; } .amap-legend .am-partial { background: #EBB52A; } .amap-legend .am-empty { background: var(--line); }
:root[data-theme="dark"] .am-ok { background: #133A27; color: #7BE0A9; border-color: #1F5A3D; }
:root[data-theme="dark"] .am-bad { background: #3A1714; color: #FF9F8F; border-color: #5A2520; }
:root[data-theme="dark"] .am-partial { background: #3A2E10; color: #F5C870; border-color: #5A4515; }
.review-item, .q-card { scroll-margin-top: 96px; }
.review-item:target, .q-card:target, .review-item.is-flash, .q-card.is-flash { animation: flashQ 1.6s ease; }
@keyframes flashQ { 0%, 40% { box-shadow: 0 0 0 4px var(--glow-1); } 100% { box-shadow: none; } }
.review-item.rv-partial { border-color: #F0CF73; background: color-mix(in srgb, #FDF0C7 50%, var(--surf)); }
.q-card.rv-partial { border-color: #F0CF73; }
.review-item.rv-partial .n { background: #FDF0C7; color: #8C5A00; }
@media (prefers-reduced-motion: no-preference) { html:has(.answer-map) { scroll-behavior: smooth; } }

/* Yon menyu: rangli belgilar */
.side-ico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--tint); background: color-mix(in srgb, var(--tint) 13%, var(--surf)); transition: transform .2s var(--ease), background-color .2s ease, color .2s ease; }
.side-link:hover .side-ico { transform: rotate(-6deg) scale(1.05); }
.side-link.is-active .side-ico { background: var(--tint); color: #fff; box-shadow: 0 6px 14px -8px var(--tint); }
.side-link { gap: 10px; min-height: 44px; padding: 6px 10px; }

/* Kurs modullari: rangli chiziqli effektlar */
.lines-section { position: relative; isolation: isolate; overflow: hidden; }
.bg-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.bg-lines path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 10; opacity: .5; animation: lineFlow 40s linear infinite; }
.bg-lines .l1 { stroke: var(--c-reading); } .bg-lines .l2 { stroke: var(--c-writing); animation-duration: 55s; } .bg-lines .l3 { stroke: var(--c-listening); opacity: .3; animation-direction: reverse; }
@keyframes lineFlow { to { stroke-dashoffset: -600; } }
.course-card, .feature-list { position: relative; overflow: hidden; isolation: isolate; }
.course-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--tint), color-mix(in srgb, var(--tint) 40%, var(--amber))); }
.course-lines { position: absolute; right: 0; bottom: 0; width: 75%; height: 70%; z-index: -1; pointer-events: none; }
.course-lines path { fill: none; stroke: var(--tint, var(--pri)); stroke-width: 2; opacity: .18; transition: opacity .3s ease, transform .5s var(--ease); }
.course-lines path:nth-child(2) { opacity: .12; } .course-lines path:nth-child(3) { opacity: .08; }
.course-card:hover .course-lines path { opacity: .35; }
.course-card:hover .course-lines { transform: translateY(-4px); transition: transform .5s var(--ease); }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-list.fl-amber { --tint: #D98A00; } .feature-list.fl-green { --tint: var(--pri); }
.feature-list h2 { display: flex; align-items: center; gap: 12px; }
.fl-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--tint), color-mix(in srgb, var(--tint) 70%, #000)); box-shadow: 0 10px 20px -12px var(--tint); }
.fl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fl-items li { position: relative; padding: 10px 12px 10px 40px; border-radius: 12px; background: color-mix(in srgb, var(--tint) 7%, var(--surf)); font-size: 15px; }
.fl-items li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.feature-mini { position: relative; overflow: hidden; }
.feature-mini::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%); }

/* Ochiladigan filtr tugmalari (Daraja / Holati) */
.dd-bar { gap: 10px; }
.dd-bar .time-chip { margin-left: auto; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 130px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.dd-btn:hover { border-color: color-mix(in srgb, var(--pri) 50%, var(--line)); }
.dd-btn svg { transition: transform .2s var(--ease); color: var(--mute); }
.dd.is-open .dd-btn { border-color: var(--pri); box-shadow: 0 0 0 4px var(--glow-1); }
.dd.is-open .dd-btn svg { transform: rotate(180deg); }
.dd-btn.is-set { background: var(--pri-soft); border-color: var(--pri); color: var(--pri-text); }
.dd-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 180px; padding: 8px; border-radius: 14px; background: var(--menu-bg, var(--surf)); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px var(--shadow); display: none; flex-direction: column; gap: 2px; }
.dd.is-open .dd-menu { display: flex; animation: fltIn .18s var(--ease); }
.dd-title { padding: 6px 10px 4px; font-size: 12px; font-weight: 600; color: var(--mute); }
.dd-opt { padding: 9px 10px; border-radius: 9px; font-size: 14.5px; text-decoration: none; color: var(--ink); }
.dd-opt:hover { background: var(--hover); }
.dd-opt.is-current { background: var(--pri-soft); color: var(--pri-text); font-weight: 600; }
.reset-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--pri-text); text-decoration: none; }
.reset-link:hover { text-decoration: underline; }
@media (max-width: 640px) { .dd-bar .time-chip { margin-left: 0; width: 100%; justify-content: center; } }
.review-item.rv-empty .n { background: var(--surf-2); color: var(--mute); }
.review-item.rv-empty { border-style: dashed; }

/* To'lov: avtomatik / chek bilan, karta, kutish */
.pm-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; vertical-align: middle; }
.pm-tag.auto { background: #DDF4E3; color: #157A3A; } .pm-tag.manual { background: #FDF0C7; color: #8C5A00; }
.pay-method.is-soon { opacity: .55; cursor: not-allowed; }
.pay-method.is-soon .pay-method-body { border-style: dashed; }
.pay-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--mute); }
.pay-notes li { display: flex; gap: 8px; align-items: flex-start; } .pay-notes svg { flex: none; margin-top: 2px; color: var(--pri); }
.pay-auto { display: flex; flex-direction: column; gap: 14px; }
.pay-wait { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 14px; background: color-mix(in srgb, var(--teal) 9%, var(--surf)); border: 1px solid color-mix(in srgb, var(--teal) 25%, var(--line)); }
.pay-spinner { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--teal) 25%, transparent); border-top-color: var(--teal); animation: spinA 1s linear infinite; }
@keyframes spinA { to { transform: rotate(360deg); } }
.card-transfer { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; max-width: 420px; padding: 22px; border-radius: 20px; color: #fff;
  background: radial-gradient(80% 120% at 100% 0%, rgba(242, 179, 61, .45), transparent 60%), linear-gradient(135deg, #0D3B2C, #0A6B4B 60%, #0E8C8C); box-shadow: 0 24px 40px -24px rgba(10, 60, 40, .8); }
.card-transfer::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 24px solid rgba(255, 255, 255, .08); }
.ct-chip { width: 42px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #F7D774, #C99A2E); }
.ct-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.ct-number { font-size: clamp(20px, 3vw, 26px); font-weight: 600; letter-spacing: .08em; }
.ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; position: relative; z-index: 1; }
.ct-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ct-copy.ghost { border-color: var(--line); background: var(--surf-2); color: var(--ink); }
.copy-row { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.pay-howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }

/* Footer: rangli chiziqlar va urg'ular */
.site-footer { position: relative; isolation: isolate; overflow: hidden; border-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c-reading), var(--c-listening), var(--amber), var(--c-speaking)); }
.footer-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.footer-lines path { fill: none; stroke-width: 2; stroke-linecap: round; }
.footer-lines .fl1 { stroke: color-mix(in srgb, var(--c-reading) 18%, transparent); }
.footer-lines .fl2 { stroke: color-mix(in srgb, var(--amber) 28%, transparent); stroke-dasharray: 6 10; animation: lineFlow 50s linear infinite; }
.footer-lines .fl3 { stroke: color-mix(in srgb, var(--c-listening) 14%, transparent); }
.footer-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.footer-glow.g1 { width: 320px; height: 320px; left: -100px; bottom: -160px; background: color-mix(in srgb, var(--c-listening) 22%, transparent); }
.footer-glow.g2 { width: 280px; height: 280px; right: -80px; top: -140px; background: color-mix(in srgb, var(--amber) 22%, transparent); }
.footer-cols nav { --fc: var(--pri); }
.footer-cols nav.fc-green { --fc: var(--c-reading); } .footer-cols nav.fc-teal { --fc: var(--c-listening); } .footer-cols nav.fc-amber { --fc: #D98A00; }
.footer-cols nav .footer-title { display: inline-flex; align-items: center; gap: 8px; color: var(--fc); }
.footer-cols nav .footer-title::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--fc); }
.footer-cols nav a { position: relative; width: fit-content; transition: color .15s ease, transform .2s var(--ease); }
.footer-cols nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--fc); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.footer-cols nav a:hover { color: var(--fc); transform: translateX(3px); }
.footer-cols nav a:hover::after { transform: scaleX(1); }
.rv-audio { display: block; width: 100%; max-width: 420px; height: 38px; margin-top: 10px; }

/* Bildirishnomalar */
.notif-btn { position: relative; }
.notif-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #E5483A; color: #fff; border: 2px solid var(--bg); animation: pnPulse 2s ease-in-out infinite; }
@keyframes pnPulse { 50% { box-shadow: 0 0 0 5px rgba(229, 72, 58, .18); } }
.notif-menu { width: min(380px, calc(100vw - 24px)); right: 0; left: auto; padding: 8px; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.notif-item { position: relative; display: flex; gap: 12px; padding: 10px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.notif-item:hover { background: var(--hover); }
.notif-item.is-unread { background: color-mix(in srgb, var(--pri) 6%, transparent); }
.notif-item.is-unread::after { content: ""; position: absolute; right: 10px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--pri); }
.notif-ico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--nc, var(--pri)); background: color-mix(in srgb, var(--nc, var(--pri)) 13%, var(--surf)); }
.notif-item.k-success { --nc: #157A3A; } .notif-item.k-warning { --nc: #C27400; } .notif-item.k-payment { --nc: #2453E0; } .notif-item.k-review { --nc: #7A4DF0; } .notif-item.k-news { --nc: #E0486B; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 14px; font-size: 13.5px; }
.notif-text b { font-size: 14px; font-weight: 600; }
.notif-text span { color: var(--mute); }
.notif-text small { color: var(--mute); font-size: 12px; }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 10px; color: var(--mute); font-size: 14px; }
.notif-all { display: block; text-align: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--pri-text); text-decoration: none; }
.notif-list { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); }

/* ==========================================================================
   Kabinet: Amaliyot kartochkalari, Bo'lim testlari grafigi, Telegram
   ========================================================================== */
.dash-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1180px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dash-sec { display: flex; flex-direction: column; gap: 14px; }
.dash-sec-head { display: flex; align-items: center; gap: 12px; }
.dash-sec-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surf-2); color: var(--ink); flex: none; }
.prac-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.prac-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; text-decoration: none; color: #13261F; background: var(--pc-bg); border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s; }
.prac-card:hover { transform: translateY(-3px); border-color: var(--pc-ink); box-shadow: 0 16px 28px -20px var(--pc-ink); }
.pc-speaking { --pc-bg: #CFE6FF; --pc-ink: #1E66C9; } .pc-writing { --pc-bg: #FFF1B8; --pc-ink: #B07A00; }
.pc-reading { --pc-bg: #C9F5DC; --pc-ink: #11834A; } .pc-listening { --pc-bg: #FFD3D8; --pc-ink: #C2304A; }
.pc-top { display: flex; align-items: center; gap: 10px; }
.pc-top b { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.pc-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--pc-ink); box-shadow: 0 4px 10px -6px var(--pc-ink); }
.pc-line { font-size: 14.5px; font-weight: 500; }
.pc-bar { position: relative; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, #fff 0 12px, transparent 12px 18px); }
.pc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--pc-ink); }
.pc-foot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 13px; line-height: 1.3; }
.pc-foot b { font-size: 15px; } .pc-total { text-align: right; }
:root[data-theme="dark"] .prac-card { color: #13261F; }

.sec-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border-radius: 14px; background: var(--surf-2); width: fit-content; max-width: 100%; }
.sec-tab { flex: none; padding: 8px 16px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--mute); cursor: pointer; }
.sec-tab[aria-selected="true"] { background: var(--surf); color: var(--pri-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sec-panel { padding: 18px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); }
.sec-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.sec-big { font-family: var(--f-display); font-size: 22px; }
.sec-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); }
.sec-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 6px; }
.lg-score { background: var(--tint); } .lg-date { background: color-mix(in srgb, var(--tint) 20%, var(--surf)); }
.sec-chart { display: grid; grid-template-columns: 34px 1fr; gap: 6px; height: 260px; }
.sec-y { display: flex; flex-direction: column; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--mute); padding-bottom: 20px; text-align: right; }
.sec-y span { transform: translateY(50%); } .sec-y span:first-child { transform: translateY(0); }
.sec-plot { position: relative; padding-bottom: 20px; }
.sec-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.sec-bars { position: absolute; inset: 0 0 0 0; display: flex; align-items: flex-end; gap: 10px; padding: 0 6px 20px; }
.sec-bar { position: relative; flex: 1; max-width: 56px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sec-bar i { height: var(--h); width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--tint), color-mix(in srgb, var(--tint) 60%, var(--surf))); transform-origin: bottom; animation: pnGrow .8s var(--ease) both; }
.sec-val { position: absolute; bottom: calc(var(--h) + 4px); font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sec-bar small { position: absolute; bottom: -18px; font-size: 10.5px; color: var(--mute); font-family: var(--f-mono); }
@keyframes pnGrow { from { transform: scaleY(0); } }
.sec-empty { position: absolute; inset: 0 0 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--mute); font-size: 14px; text-align: center; }
.sec-note { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--mute); }

.tg-card { padding: 18px; border-radius: 20px; background: linear-gradient(160deg, #E8F4FF, #F4FAFF 60%, var(--surf)); border: 1px solid #CFE3F7; display: flex; flex-direction: column; gap: 14px; }
:root[data-theme="dark"] .tg-card { background: linear-gradient(160deg, #10263A, var(--surf)); border-color: #1E3A55; }
.tg-logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #2AABEE; flex: none; }
.tg-body { display: flex; flex-direction: column; gap: 12px; }
.tg-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); }
.tg-preview b { display: block; } .tg-preview small { color: var(--mute); font-size: 13px; }
.tg-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 700; background: linear-gradient(140deg, var(--pri), var(--teal)); flex: none; }
.tg-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tg-points li { display: flex; gap: 8px; align-items: center; } .tg-points svg { color: #2AABEE; flex: none; }
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; font-weight: 600; text-decoration: none; color: #fff; background: #2AABEE; box-shadow: 0 10px 20px -12px #2AABEE; }
.tg-btn:hover { background: #1E96D6; }
.hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.hist-row:hover { background: var(--hover); }
.hist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .hist-main small, .hist-end small { color: var(--mute); font-size: 12px; }
.hist-end { display: flex; flex-direction: column; align-items: flex-end; }
.hist-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hist-empty img { width: 100%; border-radius: 14px; }

/* Kirish yoki ro'yxatdan o'tish (modal va sahifa) */
.modal-open { overflow: hidden; }
.auth-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.auth-modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(8, 20, 15, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.modal-box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(22px, 4vw, 32px); border-radius: 24px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); animation: popIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--surf-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.auth-choice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.ac-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--pri), var(--teal)); box-shadow: 0 14px 28px -14px var(--pri); }
.ac-title { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.auth-choice > p { font-size: 14.5px; max-width: 380px; }
.ac-actions { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.ac-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; text-align: left; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); background: var(--surf); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.ac-card:hover, .ac-card:focus-visible { border-color: var(--pri); transform: translateY(-2px); box-shadow: 0 12px 24px -18px var(--pri); outline: none; }
.ac-card b { display: block; font-size: 15.5px; } .ac-card small { color: var(--mute); font-size: 13px; }
.ac-card-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.ac-login .ac-card-ico { background: var(--surf-2); color: var(--ink); }
.ac-signup { background: var(--pri); border-color: var(--pri); color: var(--pri-ink); }
.ac-signup small { color: color-mix(in srgb, var(--pri-ink) 75%, transparent); }
.ac-signup .ac-card-ico { background: rgba(255, 255, 255, .18); color: #fff; }
.ac-perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--mute); }
.ac-perks li { display: inline-flex; align-items: center; gap: 6px; } .ac-perks svg { color: var(--pri); }
.auth-required-card { width: min(500px, 100%); padding: clamp(24px, 4vw, 36px); border-radius: 24px; }

/* Mobil: sarlavha tugmalari sig'ishi uchun */
@media (max-width: 560px) {
  .header-actions { gap: 6px; }
  .header-actions .theme-btn { display: none; }
  .lang-toggle { padding-inline: 8px; gap: 4px; }
  .lang-toggle > svg:last-child { display: none; }
  .notif-menu { position: fixed; left: 12px !important; right: 12px !important; top: 68px; width: auto; }
}
/* (kichik ekranda ham bayroq ko'rinadi) */
.app-main { min-width: 0; max-width: 100%; }
/* Aylantiriladigan konteynerlar ichidagi absolute elementlar sahifani kengaytirmasin */
.table-wrap, .side-nav, .type-row, .sec-tabs, .pn-tabs, .seg, .collection-list { position: relative; }
html, body { overflow-x: clip; }
@media (max-width: 560px) {
  .prac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prac-card { padding: 12px; gap: 8px; }
  .pc-top b { font-size: 15px; } .pc-ico { width: 32px; height: 32px; }
  .pc-line { font-size: 13px; }
  .deep-block .grid-auto-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .deep-block .mod-card { padding: 12px 14px; }
  .sec-chart { height: 220px; }
}
.prac-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .prac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notif-menu::before, .notif-menu::after { display: none !important; }

/* ===== Standart savol navigatsiya paneli (qbar) — Oldingi · Qayta · Yuborish · Keyingi · O'tish ===== */
.qbar {
  position: sticky; bottom: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap;
  padding: 10px 14px; margin-top: 4px;
  background: color-mix(in srgb, var(--surf) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 14px 36px -18px var(--shadow), 0 1px 0 rgba(255,255,255,.5) inset;
}
.qbar-group { display: flex; align-items: center; gap: 6px; }
.qb {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 62px; padding: 4px 6px; border: 0; background: none; color: var(--ink);
  font: 600 12px/1.1 var(--f-body, inherit); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border-radius: 14px; transition: color .15s ease;
}
.qb-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surf); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.qb:hover .qb-ico { border-color: var(--pri); color: var(--pri-text); background: var(--pri-soft); transform: translateY(-1px); box-shadow: 0 6px 14px -8px var(--shadow); }
.qb:active .qb-ico { transform: scale(.94); }
.qb:focus-visible { outline: none; }
.qb:focus-visible .qb-ico { outline: 3px solid var(--glow-1); outline-offset: 2px; border-color: var(--pri); }
.qb-txt { color: var(--mute); }
.qb:hover .qb-txt { color: var(--ink); }
.qb:disabled, .qb.is-disabled { cursor: not-allowed; opacity: .42; pointer-events: none; }

.qb-submit {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 6px 22px 6px 7px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 15px/1 var(--f-body, inherit); letter-spacing: .01em; color: #fff;
  background: linear-gradient(135deg, #2A7CF6 0%, #1557D6 100%);
  box-shadow: 0 10px 22px -10px rgba(21, 87, 214, .75), 0 1px 0 rgba(255,255,255,.35) inset;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
}
.qb-submit-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset; }
.qb-submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 26px -12px rgba(21, 87, 214, .85), 0 1px 0 rgba(255,255,255,.35) inset; }
.qb-submit:active:not(:disabled) { transform: scale(.97); }
.qb-submit:focus-visible { outline: 3px solid rgba(42, 124, 246, .35); outline-offset: 3px; }
.qb-submit:disabled { cursor: not-allowed; background: linear-gradient(135deg, #9DB7E6, #8AA6DA); box-shadow: none; opacity: .7; }
.qb-submit.is-live { animation: qbLive 1.6s ease-in-out infinite; }
@keyframes qbLive { 0%, 100% { box-shadow: 0 10px 22px -10px rgba(21,87,214,.75), 0 0 0 0 rgba(42,124,246,.45); } 50% { box-shadow: 0 10px 22px -10px rgba(21,87,214,.75), 0 0 0 9px rgba(42,124,246,0); } }

.qb-goto { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surf-2, var(--bg)); font-size: 13px; color: var(--mute); }
.qb-goto-l { font-weight: 600; }
.qb-goto input { width: 52px; height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surf); color: var(--ink); text-align: center; font: 600 14px/1 var(--f-mono, monospace); -moz-appearance: textfield; }
.qb-goto input::-webkit-outer-spin-button, .qb-goto input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qb-goto input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px var(--glow-1); }
.qb-goto-t { font-family: var(--f-mono, monospace); font-weight: 600; color: var(--ink); }
.qb-go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--pri); color: var(--pri-ink); cursor: pointer; transition: transform .15s ease; }
.qb-go:hover { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .qb-submit.is-live { animation: none; } .qb-ico, .qb-submit { transition: none; } }
@media (max-width: 640px) {
  .qbar { position: static; gap: 8px 6px; padding: 8px 8px; border-radius: 18px; }
  .qb { min-width: 50px; font-size: 11px; }
  .qb-ico { width: 36px; height: 36px; }
  .qb-submit { min-height: 42px; padding-right: 16px; font-size: 14px; }
  .qb-submit-ico { width: 28px; height: 28px; }
  .qb-goto { order: 5; }
}
@media (max-width: 400px) { .qb-txt { font-size: 10.5px; } .qbar-group { gap: 2px; } }
.icon-btn-sm { width: 34px; height: 34px; min-width: 34px; }

/* ===== AI tahlil: tugma, javoblar ro'yxati, natija oynasi ===== */
.ai-btn-wrap { display: inline-flex; }
.ai-btn {
  display: inline-flex; align-items: center; gap: 0; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  font: 700 13.5px/1 var(--f-body, inherit); color: #fff; background: linear-gradient(110deg, #7C3AED, #A855F7 55%, #EC4899);
  box-shadow: 0 8px 20px -10px rgba(124, 58, 237, .8); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ai-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 24px -10px rgba(124, 58, 237, .9); }
.ai-btn:focus-visible { outline: 3px solid rgba(168, 85, 247, .4); outline-offset: 2px; }
.ai-btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.ai-btn-tag { display: inline-flex; align-items: center; gap: 2px; align-self: stretch; padding: 0 9px; background: #fff; color: #7C3AED; font-weight: 800; letter-spacing: .02em; }
.ai-btn-txt { padding: 9px 4px 9px 11px; white-space: nowrap; }
.ai-btn-end { display: grid; place-items: center; padding: 0 10px 0 4px; }
.ai-btn.is-done { background: linear-gradient(110deg, #6D28D9, #8B5CF6); }
.ai-btn.is-busy { background: linear-gradient(110deg, #8B5CF6, #C084FC); cursor: progress; }
.ai-btn.is-failed { background: linear-gradient(110deg, #DC2626, #F97316); }
.ai-btn.is-failed .ai-btn-tag { color: #DC2626; }
.ai-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: aiSpin .8s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }

.ans-panel { display: grid; gap: 12px; }
.ans-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ans-head .h3 { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pri); color: var(--pri-ink); font: 700 12px/1 var(--f-body, inherit); }
.ans-quota { font-size: 13px; }
.ans-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ans-row {
  display: grid; grid-template-columns: auto minmax(140px, 1fr) auto minmax(200px, 1.3fr) auto; align-items: center; gap: 12px 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--pri-soft) 35%, var(--surf));
}
.ans-row:not(.has-audio) { grid-template-columns: auto 1fr auto; }
.ans-who { display: grid; gap: 2px; min-width: 0; }
.ans-who b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ans-who span { font-size: 12.5px; }
.ans-audio { width: 100%; height: 38px; }
.ans-del { margin: 0; }
@media (max-width: 760px) {
  .ans-row { grid-template-columns: auto 1fr auto; }
  .ans-row .ai-btn-wrap { grid-column: 1 / -1; grid-row: 2; }
  .ans-row .ans-audio { grid-column: 1 / -1; grid-row: 3; }
  .ans-row .ans-del { grid-column: 3; grid-row: 1; }
}

.ai-toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translateX(-50%); max-width: min(92vw, 520px);
  display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #1F1235; color: #fff;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); font-size: 14px; animation: aiIn .2s ease-out; transition: opacity .4s ease; }
.ai-toast a { color: #E9D5FF; font-weight: 700; }
.ai-toast.is-out { opacity: 0; }
@keyframes aiIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

html.has-modal { overflow: hidden; }
.ai-modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; background: rgba(12, 10, 24, .55); backdrop-filter: blur(3px); animation: aiFade .18s ease-out; }
.ai-modal[hidden] { display: none; }
@keyframes aiFade { from { opacity: 0; } to { opacity: 1; } }
.ai-modal-box { position: relative; width: min(1000px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 22px; background: var(--surf); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: aiPop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes aiPop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.ai-modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surf); color: var(--ink); cursor: pointer; }
.ai-modal-x:hover { border-color: #A855F7; color: #7C3AED; }

.aiv { display: grid; grid-template-columns: 280px 1fr; min-height: 420px; }
.aiv-side { display: grid; align-content: start; gap: 18px; padding: 22px 20px; border-right: 1px solid var(--line); background: color-mix(in srgb, #F5F3FF 60%, var(--surf)); border-radius: 22px 0 0 22px; }
.aiv-id { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.aiv-id strong { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiv-logo { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #F97316, #EC4899 55%, #8B5CF6); }
.aiv-tag, .aiv-new { padding: 2px 6px; border-radius: 6px; font: 800 11px/1.2 var(--f-body, inherit); color: #fff; background: linear-gradient(110deg, #7C3AED, #EC4899); }
.aiv-score { display: grid; justify-items: center; gap: 8px; text-align: center; }
.aiv-score-l { font: 600 20px/1.2 var(--f-display, inherit); background: linear-gradient(110deg, #DB2777, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aiv-gauge { position: relative; width: 170px; }
.aiv-gauge svg { width: 100%; display: block; overflow: visible; }
.aiv-gauge path { fill: none; stroke-width: 12; stroke-linecap: round; }
.aiv-gauge-trk { stroke: color-mix(in srgb, var(--line) 80%, transparent); }
.aiv-gauge-val { stroke-dasharray: calc(var(--p) * 1px) 100; animation: aiGauge .9s cubic-bezier(.2,.8,.2,1); }
@keyframes aiGauge { from { stroke-dasharray: 0 100; } }
.aiv-band { position: absolute; left: 0; right: 0; bottom: 4px; font: 700 34px/1 var(--f-display, inherit); }
.aiv-min, .aiv-max { position: absolute; bottom: -18px; font-size: 13px; font-weight: 600; color: var(--mute); }
.aiv-min { left: 4px; } .aiv-max { right: 4px; }
.aiv-chip { margin-top: 16px; padding: 7px 14px; border-radius: 10px; background: color-mix(in srgb, #10B981 14%, var(--surf)); border: 1px solid color-mix(in srgb, #10B981 30%, transparent); font-size: 13px; font-weight: 600; }
.aiv-score small { font-size: 12px; line-height: 1.4; }
.aiv-crit { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.aiv-sec { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.aiv-bar { display: grid; grid-template-columns: 1fr 70px auto; align-items: center; gap: 10px; font-size: 13px; }
.aiv-bar i { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.aiv-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #F97316, #EC4899, #8B5CF6); animation: aiGrow .8s ease-out; }
@keyframes aiGrow { from { width: 0; } }
.aiv-main { display: grid; align-content: start; gap: 14px; padding: 20px 22px 24px; min-width: 0; }
.aiv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-right: 44px; }
.aiv-tabs { display: inline-flex; border-bottom: 2px solid var(--line); }
.aiv-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 0; background: none; color: var(--mute); font: 600 14px/1 var(--f-body, inherit); cursor: pointer; border-radius: 10px 10px 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.aiv-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(110deg, #C026D3, #7C3AED); border-bottom-color: #7C3AED; }
.aiv-actions { display: flex; gap: 8px; }
.aiv-link, .aiv-next { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; }
.aiv-link { color: #2563EB; }
.aiv-next { color: #2563EB; border: 1.5px solid #2563EB; }
.aiv-next:hover, .aiv-link:hover { background: color-mix(in srgb, #2563EB 8%, transparent); }
.aiv-alert { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, #EF4444 45%, transparent); background: color-mix(in srgb, #EF4444 8%, var(--surf)); color: #DC2626; font-size: 14px; }
.aiv-wait { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; color: var(--mute); }
.aiv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aiv-speed { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.aiv-speed b { color: #DB2777; }
.aiv-summary { margin: 0; font-size: 15px; line-height: 1.6; }
.aiv-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surf); }
.aiv-card p, .aiv-card ul, .aiv-card ol { margin: 0; line-height: 1.6; }
.aiv-card ul, .aiv-card ol { padding-left: 20px; }
.aiv-audio { width: 100%; height: 40px; }
.aiv-words { font-size: 15px; line-height: 2.1; }
.aiv-words span { padding: 2px 4px; border-radius: 4px; }
.aiv-words .w-avg { background: #FEF3C7; color: #92400E; }
.aiv-words .w-bad { background: #FEE2E2; color: #B91C1C; }
.aiv-counts { display: flex; flex-wrap: wrap; gap: 10px; }
.aiv-counts span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 8px; font-size: 13px; border: 1px solid; }
.aiv-counts b { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--surf); font-size: 12.5px; }
.c-good { border-color: #A7F3D0 !important; background: #ECFDF5; color: #065F46; }
.c-avg { border-color: #FDE68A !important; background: #FFFBEB; color: #92400E; }
.c-bad { border-color: #FECACA !important; background: #FEF2F2; color: #991B1B; }
.aiv-good { border-color: color-mix(in srgb, #10B981 35%, var(--line)); }
.aiv-warn { border-color: color-mix(in srgb, #F59E0B 40%, var(--line)); }
.aiv-model { background: color-mix(in srgb, #8B5CF6 6%, var(--surf)); }
.aiv-fix s { color: #B91C1C; }
.aiv-fix b { color: #047857; }
:root[data-theme="dark"] .aiv-side { background: color-mix(in srgb, #2E1065 30%, var(--surf)); }
:root[data-theme="dark"] .aiv-words .w-avg { background: rgba(245, 158, 11, .2); color: #FCD34D; }
:root[data-theme="dark"] .aiv-words .w-bad { background: rgba(239, 68, 68, .22); color: #FCA5A5; }
:root[data-theme="dark"] .c-good { background: rgba(16,185,129,.12); color: #6EE7B7; border-color: rgba(16,185,129,.35) !important; }
:root[data-theme="dark"] .c-avg { background: rgba(245,158,11,.12); color: #FCD34D; border-color: rgba(245,158,11,.35) !important; }
:root[data-theme="dark"] .c-bad { background: rgba(239,68,68,.12); color: #FCA5A5; border-color: rgba(239,68,68,.35) !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aiv-side { background: color-mix(in srgb, #2E1065 30%, var(--surf)); }
  :root:not([data-theme="light"]) .aiv-words .w-avg { background: rgba(245, 158, 11, .2); color: #FCD34D; }
  :root:not([data-theme="light"]) .aiv-words .w-bad { background: rgba(239, 68, 68, .22); color: #FCA5A5; }
  :root:not([data-theme="light"]) .c-good { background: rgba(16,185,129,.12); color: #6EE7B7; border-color: rgba(16,185,129,.35) !important; }
  :root:not([data-theme="light"]) .c-avg { background: rgba(245,158,11,.12); color: #FCD34D; border-color: rgba(245,158,11,.35) !important; }
  :root:not([data-theme="light"]) .c-bad { background: rgba(239,68,68,.12); color: #FCA5A5; border-color: rgba(239,68,68,.35) !important; }
}
@media (max-width: 760px) {
  .aiv { grid-template-columns: 1fr; }
  .aiv-side { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
  .aiv-main { padding: 16px; }
  .ai-modal { padding: 0; place-items: end center; }
  .ai-modal-box { border-radius: 22px 22px 0 0; max-height: 94dvh; }
}
@media (prefers-reduced-motion: reduce) { .aiv-gauge-val, .aiv-bar em, .ai-modal-box, .ai-spin { animation: none; } }
.rv-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .rv-rec .rv-audio { flex: 1 1 240px; }

/* ===================================================================
   Ikki domen, hamyon, kurslar, imtihon turlari (2026-11)
   =================================================================== */
.app-main .container { padding-inline: 0; max-width: none; }
.app-site-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); text-decoration: none; border: 1px solid var(--line); transition: color .15s ease, border-color .15s ease; }
.app-site-link:hover { color: var(--pri-text); border-color: var(--pri); }

/* Tepadagi balans */
.balance-chip { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 4px 6px 4px 5px; border-radius: 14px; text-decoration: none; color: var(--ink); background: linear-gradient(135deg, color-mix(in srgb, var(--pri-soft) 85%, var(--surf)), var(--surf)); border: 1px solid color-mix(in srgb, var(--pri) 28%, var(--line)); transition: transform .15s var(--ease), box-shadow .15s ease, border-color .15s ease; }
.balance-chip:hover { transform: translateY(-1px); border-color: var(--pri); box-shadow: 0 8px 18px -12px var(--shadow); }
.balance-chip:focus-visible { outline: 3px solid var(--glow-1); outline-offset: 2px; }
.balance-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pri); color: var(--pri-ink); }
.balance-txt { display: flex; flex-direction: column; line-height: 1.1; }
.balance-txt small { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.balance-txt b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.balance-plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--pri-text); background: var(--surf); border: 1px solid var(--line); }
@media (max-width: 720px) { .balance-txt small, .balance-plus { display: none; } .balance-chip { height: 40px; padding-right: 10px; } .balance-ico { width: 30px; height: 30px; } }
@media (max-width: 420px) { .balance-txt b { font-size: 12.5px; } }
.side-badge { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--pri-text); background: var(--pri-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.mobile-balance { display: flex !important; align-items: center; gap: 10px; padding: 12px 14px !important; border-radius: 14px; background: var(--pri-soft); color: var(--pri-text) !important; font-weight: 600; }
.mobile-balance b { margin-left: auto; }

.app-footer { border-top: 1px solid var(--line); padding-block: 18px; font-size: 13px; color: var(--mute); }
.app-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.app-footer a { color: var(--mute); text-decoration: none; } .app-footer a:hover { color: var(--pri-text); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-warning { background: #FDF0C7; color: #7A4E00; }
.plan-alt { display: block; font-size: 12.5px; color: var(--mute); margin-top: -4px; }
.chip-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); font: 600 13px/1 var(--f-mono); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.chip-btn:hover, .chip-btn:focus-visible { border-color: var(--pri); background: var(--pri-soft); outline: none; }

/* Hamyon */
.wallet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; }
@media (max-width: 900px) { .wallet-grid { grid-template-columns: 1fr; } }
.wallet-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #127A55 0%, #0D2A20 70%); box-shadow: 0 24px 48px -30px var(--shadow); min-height: 240px; }
.wallet-lines { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; pointer-events: none; }
.wallet-lines path { fill: none; stroke: rgba(143, 217, 184, .28); stroke-width: 1.4; }
.wallet-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #9FD8BF; font-weight: 600; }
.wallet-amount { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.02em; }
.wallet-alt { color: #B9CFC4; font-size: 14px; margin-top: -6px; }
.wallet-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #CFE3D9; margin-top: auto; position: relative; }
.wallet-card .row { position: relative; }
.wallet-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.wallet-topup { display: flex; flex-direction: column; gap: 14px; }
.amount-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surf); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.amount-input:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--glow-1); }
.amount-input .input { border: 0; box-shadow: none; font-size: 22px; font-weight: 700; padding: 12px 14px; background: transparent; }
.amount-input .input:focus { outline: none; box-shadow: none; }
.amount-cur { padding: 0 16px; font-weight: 700; color: var(--mute); }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pay-methods-sm .pay-method-body { padding: 10px 12px; border-radius: 14px; }
.pay-methods-sm .pay-badge { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
.wallet-open { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 13px; }
.wallet-open a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wallet-open a .pill { margin-left: auto; }
.wt-amount.is-plus { color: var(--ok); font-weight: 700; } .wt-amount.is-minus { color: var(--danger); font-weight: 700; }
.pill.wt-topup { background: var(--ok-soft); color: var(--ok); } .pill.wt-purchase { background: #E8E6FB; color: #4B3DB5; }
.pill.wt-refund { background: var(--danger-soft); color: var(--danger); } .pill.wt-adjust { background: #FDF0C7; color: #7A4E00; }
.pay-badge.pay-balance { background: linear-gradient(135deg, #0A8F5F, #0A6B4B); }
.pay-method.is-short { opacity: .62; } .pay-method.is-short .pay-method-body { cursor: not-allowed; }

/* Kurslar */
.crs-page { display: flex; flex-direction: column; gap: 20px; }
.crs-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.crs-tabs a .mono { font-size: 12px; color: var(--mute); }
.crs-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.crs-cover { position: relative; display: block; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #0D2A20, #127A55 60%, #0E8C8C); overflow: hidden; }
.crs-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crs-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crs-cover svg path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.4; }
.crs-play { position: absolute; left: 18px; bottom: 16px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.95); color: #0A6B4B; box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); transition: transform .2s var(--ease); }
.crs-card:hover .crs-play { transform: scale(1.08); }
.crs-badge { position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font: 700 13px/1 var(--f-mono); }
.crs-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.crs-body p { font-size: 14.5px; margin: 0; }
.crs-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.crs-teacher { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.crs-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--pri-text); }
.crs-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; justify-content: space-between; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: radial-gradient(120% 160% at 0% 0%, #127A55 0%, #0D2A20 65%); color: #fff; }
.crs-hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.crs-hero-lines path { fill: none; stroke: rgba(143, 217, 184, .25); stroke-width: 1.4; }
.crs-hero-copy { position: relative; flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.crs-hero-copy .eyebrow { color: #8FD9B8; } .crs-hero-copy h1 { color: #fff; } .crs-hero-copy .lead { color: #CFE3D9; }
.crs-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: #CFE3D9; }
.crs-stats span { display: inline-flex; align-items: center; gap: 6px; }
.crs-buy { position: relative; flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--surf); color: var(--ink); box-shadow: 0 24px 40px -28px rgba(0,0,0,.6); align-self: flex-start; }
.crs-buy-cover { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.crs-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.crs-price b { font-family: var(--f-display); font-size: 28px; letter-spacing: -.02em; }
.crs-price s { color: var(--mute); font-size: 14px; } .crs-price small { flex-basis: 100%; color: var(--mute); font-size: 12.5px; }
.crs-owned { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 14px; margin: 0; }
.crs-balance { font-size: 13.5px; color: var(--mute); margin: 0; }
.crs-plan-note { font-size: 13px; margin: 0; }
.crs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px; align-items: start; }
@media (max-width: 960px) { .crs-layout { grid-template-columns: 1fr; } }
.crs-module { padding: 0; overflow: hidden; margin-bottom: 10px; }
.crs-module summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.crs-module summary::-webkit-details-marker { display: none; }
.crs-module summary > svg { margin-left: auto; transition: transform .2s ease; }
.crs-module[open] summary > svg { transform: rotate(180deg); }
.crs-mod-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--pri-soft); color: var(--pri-text); font-weight: 700; flex: none; }
.crs-mod-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crs-lessons { list-style: none; margin: 0; padding: 0 10px 10px; border-top: 1px solid var(--line); }
.crs-lessons a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.crs-lessons a:hover { background: var(--hover); }
.crs-l-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surf-2); color: var(--mute); flex: none; }
.crs-l-title { flex: 1; min-width: 0; }
.crs-outcomes ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.crs-outcomes li { display: flex; gap: 8px; align-items: flex-start; } .crs-outcomes li svg { color: var(--ok); flex: none; margin-top: 3px; }
.grp-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.grp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grp-fmt { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.grp-offline { background: #FCE9D9; color: #9A4A0B; } .grp-online { background: #DDEEFF; color: #1D5FB8; }
.grp-seats { font-size: 12.5px; font-weight: 600; color: var(--ok); } .grp-seats.is-closed { color: var(--danger); }
.grp-card p { margin: 0; font-size: 14.5px; }
.grp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--mute); }
.grp-facts li { display: flex; gap: 8px; align-items: center; }
.grp-foot { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.grp-foot b { font-size: 17px; } .grp-foot small { color: var(--mute); } .grp-foot .crs-go { margin-left: auto; margin-top: 0; padding-top: 0; }
.grp-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; }
.grp-fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); }
.grp-fact > small { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.grp-fact b { font-size: 15.5px; } .grp-fact b small, .grp-fact > small.mono { text-transform: none; letter-spacing: 0; }
.grp-apply { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .grp-apply { position: static; } }
.mod-kind { display: inline-flex !important; align-items: center; gap: 5px; font-size: 11.5px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8FD9B8 !important; }
.mod-price { font-family: var(--f-mono); color: var(--amber); font-size: 13.5px; margin-top: 4px; }

/* Imtihon turlari */
.ex-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.ex-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surf); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; transition: border-color .15s ease, transform .15s var(--ease); }
.ex-jump a:hover { border-color: var(--tint, var(--pri)); transform: translateY(-1px); }
.ex-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.ex-format { display: flex; flex-direction: column; gap: 8px; } .ex-format p { margin: 0; }
.ex-note { background: var(--pri-soft); border-color: transparent; }
.ex-sec { scroll-margin-top: 90px; }
.ex-sec:nth-of-type(even) { background: color-mix(in srgb, var(--tint) 5%, transparent); }
.ex-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .ex-row { grid-template-columns: 1fr; } }
.ex-head { display: flex; flex-direction: column; gap: 14px; }
.ex-head p { margin: 0; }
.ex-ico { --tint: inherit; color: var(--tint); }
.ex-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.ex-stats span { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); min-width: 84px; }
.ex-stats b { font-size: 20px; color: var(--tint); } .ex-stats small { font-size: 12px; color: var(--mute); }
.ex-count { font-weight: 600; color: var(--tint, var(--pri-text)); margin: 0; }
.ex-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.ex-list h3 { margin: 0 0 10px; font-size: 16px; font-family: var(--f-display); }
.ex-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ex-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 3px solid color-mix(in srgb, var(--tint) 45%, transparent); }
.ex-list li b { font-size: 14.5px; } .ex-list li span { font-size: 13.5px; }
#mock, #formats { scroll-margin-top: 90px; }
@media (max-width: 520px) {
  .app-header .logo-word { display: none; }
  .app-header .lang-menu { display: none; }   /* til mobil menyuda bor */
  .app-header .header-actions { gap: 6px; }
}
.ex-jump a:last-child .tile { background: #7A4DF0; color: #fff; }

/* Kurslar katalogi (mohirdev uslubida): rasmli kartochka, o'quvchilar soni, qisqa tavsif, narx */
.mc-page { gap: 22px; }
.mc-head { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.mc-head h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.02em; margin: 0; }
.mc-head p { margin: 0; max-width: 560px; }
.mc-tabs { display: flex; justify-content: center; gap: 4px 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.mc-tabs a { position: relative; padding: 12px 16px; color: var(--mute); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 10px 10px 0 0; transition: color .15s ease, background .15s ease; }
.mc-tabs a:hover { color: var(--ink); background: var(--hover); }
.mc-tabs a.is-active { color: var(--pri-text); }
.mc-tabs a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pri); }
.mc-tabs a:focus-visible { outline: 3px solid var(--glow-1); outline-offset: -3px; }
@media (max-width: 720px) {
  .mc-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 12px; }
  .mc-tabs::-webkit-scrollbar { display: none; }
  .mc-tabs a { white-space: nowrap; padding: 10px 12px; font-size: 14px; }
}
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.mc-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease; }
.mc-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px var(--shadow); border-color: color-mix(in srgb, var(--pri) 30%, var(--line)); }
.mc-card:focus-visible { outline: 3px solid var(--glow-1); outline-offset: 2px; }
.mc-cover { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; background: #E6EEF7; }
.mc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.mc-card:hover .mc-cover img { transform: scale(1.04); }
.mc-cover[class*="tone-"] { display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 16px 18px; color: #fff; }
.tone-blue { background: linear-gradient(135deg, #2F80ED 0%, #1D5FD1 55%, #0F3E9C 100%); }
.tone-navy { background: linear-gradient(135deg, #1E2A4A 0%, #0D1730 100%); }
.tone-teal { background: linear-gradient(135deg, #12A3A3 0%, #0B6E78 100%); }
.tone-violet { background: linear-gradient(135deg, #7A4DF0 0%, #4B2BB3 100%); }
.tone-green { background: linear-gradient(135deg, #17A06B 0%, #0A5F42 100%); }
.tone-sunset { background: linear-gradient(135deg, #F59E0B 0%, #E0561F 100%); }
.mc-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mc-lines path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.4; }
.mc-brand { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; opacity: .92; }
.mc-brand .logo-mark { width: 20px; height: 20px; font-size: 12px; border-radius: 6px; box-shadow: none; background: rgba(255,255,255,.95); color: #0A6B4B; }
.mc-cover-title { position: relative; font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2vw, 25px); line-height: 1.1; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 92%; margin-top: 4px; }
.mc-cover-author { position: relative; margin-top: auto; font-size: 12px; opacity: .85; }
.mc-cat { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #13241D; font-size: 11.5px; font-weight: 700; box-shadow: 0 4px 10px -6px rgba(0,0,0,.4); }
.mc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.mc-students { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--mute); }
.mc-title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-text { margin: 0; font-size: 14px; color: var(--mute); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 14px; }
.mc-price small { color: var(--mute); font-size: 13px; }
.mc-price b { font-family: var(--f-display); font-size: 21px; font-weight: 700; color: #1D6BF0; letter-spacing: -.01em; }
.mc-price b.is-free { color: var(--ok); }
.mc-price s { color: var(--mute); font-size: 13px; }
:root[data-theme="dark"] .mc-price b:not(.is-free) { color: #6FA5FF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mc-price b:not(.is-free) { color: #6FA5FF; } }

/* Superadmin: ro'yxat/kartochka almashtirgich (hamma uchun) va kartochka ko'rinishi */
.dd-bar-end { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dd-bar .dd-bar-end .time-chip { margin-left: 0; }
.view-admin { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 3px 3px 3px 10px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--amber) 60%, var(--line)); background: color-mix(in srgb, var(--amber) 8%, var(--surf)); }
.view-admin-l { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #8A5A00; white-space: nowrap; }
:root[data-theme="dark"] .view-admin-l { color: var(--amber); }
.collection-bar .view-admin { margin-left: auto; }
.xt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.xt-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surf); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease; }
.xt-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tint, var(--pri)); opacity: .85; }
.xt-mock::before { background: linear-gradient(90deg, var(--c-listening, #0E9AA7), var(--c-reading, #0A6B4B), var(--c-writing, #B26A00), var(--c-speaking, #C2410C)); }
.xt-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px var(--shadow); border-color: color-mix(in srgb, var(--tint, var(--pri)) 35%, var(--line)); }
.xt-card.is-locked { opacity: .78; }
.xt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.xt-title { margin: 0; font-size: 17px; line-height: 1.3; }
.xt-title a { color: var(--ink); text-decoration: none; }
.xt-title a::after { content: ""; position: absolute; inset: 0; }
.xt-title a:focus-visible { outline: none; } .xt-card:focus-within { outline: 3px solid var(--glow-1); outline-offset: 2px; }
.xt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--mute); }
.xt-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.xt-foot .btn { position: relative; z-index: 1; }
.xt-result { display: flex; flex-direction: column; gap: 1px; }
.xt-result small { font-size: 11.5px; color: var(--mute); }
.xt-result b { font-size: 20px; }
.st-text svg { vertical-align: -2px; margin-right: 3px; }

/* ===== Dars sahifasi va himoyalangan video pleyer ===== */
.lesson-page main { background: linear-gradient(180deg, color-mix(in srgb, var(--pri-soft) 55%, transparent) 0, transparent 280px); }
.lp { display: flex; flex-direction: column; gap: 18px; padding-block: 18px 40px; }
.lp-top { display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); }
.lp-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--surf-2); transition: background .15s ease; }
.lp-back:hover { background: var(--pri-soft); color: var(--pri-text); }
.lp-course { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lp-course small { color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-course strong { font-size: 15px; }
.lp-progress { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--mute); }
.lp-progress-bar { width: 160px; height: 8px; border-radius: 999px; background: var(--surf-2); overflow: hidden; }
.lp-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pri), #12A3A3); }
@media (max-width: 640px) { .lp-progress-bar { width: 70px; } .lp-top { gap: 10px; } }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 22px; align-items: start; }
@media (max-width: 1020px) { .lp-grid { grid-template-columns: 1fr; } }
.lp-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lp-title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.2; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surf-2); color: var(--mute); }
.lp-chip.is-done { background: var(--ok-soft); color: var(--ok); }
.lp-finish { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-body { display: flex; flex-direction: column; gap: 10px; }
.lp-body h2 { margin: 0; }
.lp-nav { display: flex; justify-content: space-between; gap: 10px; }
.lp-nav .btn.is-disabled { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.lp-hint { display: flex; align-items: center; gap: 6px; justify-content: flex-end; font-size: 13px; margin: -8px 0 0; }
.lp-locked { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: clamp(32px, 6vw, 64px) 20px; border-radius: var(--r-xl); background: var(--surf); border: 1px dashed var(--line); }
.lp-locked-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--pri-soft); color: var(--pri-text); }
.lp-locked h1 { margin: 0; }
.lp-side { position: sticky; top: 88px; padding: 0; overflow: hidden; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
@media (max-width: 1020px) { .lp-side { position: static; max-height: none; } }
.lp-side-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lp-side > .lp-mod:first-of-type { margin-top: 4px; }
.lp-side { overflow-y: auto; }
.lp-mod { padding: 8px 8px 4px; }
.lp-mod-title { display: block; padding: 6px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.lp-mod ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 14px; transition: background .15s ease; }
a.lp-item:hover { background: var(--hover); }
.lp-item.is-current { background: var(--pri-soft); color: var(--pri-text); font-weight: 600; }
.lp-item.is-locked { color: var(--mute); cursor: not-allowed; opacity: .7; }
.lp-item-ico { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surf-2); color: var(--mute); font-size: 11.5px; font-weight: 700; }
.lp-item.is-done .lp-item-ico { background: var(--ok); color: #fff; }
.lp-item.is-current .lp-item-ico { background: var(--pri); color: var(--pri-ink); }
.lp-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.lp-item-title { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lp-item-bar { height: 3px; border-radius: 3px; background: var(--surf-2); overflow: hidden; }
.lp-item-bar span { display: block; height: 100%; background: var(--pri); }
.lp-item-min { font-size: 12px; color: var(--mute); }

.vp { position: relative; border-radius: 20px; overflow: hidden; background: #050B09; box-shadow: 0 28px 60px -34px rgba(0,0,0,.55); user-select: none; -webkit-user-select: none; outline: none; }
.vp:focus-visible { box-shadow: 0 0 0 3px var(--glow-1), 0 28px 60px -34px rgba(0,0,0,.55); }
.vp-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vp:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
.vp:fullscreen .vp-stage { aspect-ratio: auto; flex: 1; }
.vp-video, .vp-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.vp-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.vp-big { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgba(10, 107, 75, .92); box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 18px 40px -12px rgba(0,0,0,.6); transition: transform .2s var(--ease), opacity .2s ease; }
.vp-big:hover { transform: translate(-50%, -50%) scale(1.06); }
.vp.is-started .vp-big { opacity: 0; pointer-events: none; }
.vp:not(.is-ready) .vp-big { opacity: .55; }
.vp-mark-fixed { position: absolute; z-index: 3; right: 14px; top: 12px; font: 700 12px/1 var(--f-display); letter-spacing: .02em; color: rgba(255,255,255,.38); text-shadow: 0 1px 2px rgba(0,0,0,.4); pointer-events: none; }
.vp-mark { position: absolute; z-index: 3; padding: 4px 9px; border-radius: 8px; font: 700 13px/1.2 var(--f-mono); color: rgba(255,255,255,.62); background: rgba(0,0,0,.18); text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; opacity: 0; transition: opacity .8s ease; white-space: nowrap; }
.vp-mark.is-on { opacity: 1; }
.vp-toast { position: absolute; z-index: 5; left: 50%; top: 16px; transform: translateX(-50%); max-width: 90%; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #fff; background: rgba(15, 22, 19, .88); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); text-align: center; }
.vp-done { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: rgba(5, 18, 13, .78); backdrop-filter: blur(4px); }
.vp-done[hidden] { display: none; }
.vp-done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); }
.vp-done strong { font-size: 20px; }
.vp-done-close { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.vp-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(180deg, #0B1712, #07110D); color: #E7F2EC; }
.vp-btn { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background .15s ease; }
.vp-btn:hover, .vp-btn:focus-visible { background: rgba(255,255,255,.1); outline: none; }
.vp-ico-pause { display: none; } .vp.is-playing .vp-ico-pause { display: inline; } .vp.is-playing .vp-ico-play { display: none; }
.vp-time { font-size: 12.5px; color: #B9CFC4; white-space: nowrap; }
.vp-track { position: relative; flex: 1; height: 26px; cursor: pointer; display: flex; align-items: center; min-width: 60px; }
.vp-track::before { content: ""; position: absolute; left: 0; right: 0; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); }
.vp-watched, .vp-played { position: absolute; left: 0; height: 6px; border-radius: 6px; pointer-events: none; }
.vp-watched { background: rgba(143, 217, 184, .32); }
.vp-played { background: linear-gradient(90deg, #22C08A, #12A3A3); }
.vp-knob { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(34,192,138,.35); pointer-events: none; }
.vp-track:focus-visible { outline: 2px solid #8FD9B8; outline-offset: 2px; border-radius: 6px; }
.vp-speed { height: 32px; padding: 0 6px; border-radius: 9px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; font: 600 12.5px/1 var(--f-mono); cursor: pointer; }
.vp-speed option { color: #111; }
.vp.is-muted [data-vp-mute] { color: #F59E0B; }
@media (max-width: 560px) { .vp-time { display: none; } .vp-bar { gap: 4px; padding: 8px; } .vp-btn { width: 34px; height: 34px; } .vp-big { width: 64px; height: 64px; } }
.vp-text { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 34px 20px; color: #E7F2EC; background: radial-gradient(120% 140% at 0% 0%, #127A55 0%, #0D2A20 70%); }
.vp-text .muted { color: #B9CFC4; }
.vp-text-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.12); }
.crs-l-ico.is-done { background: var(--ok); color: #fff; }
.crs-mine { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--mute); }
.crs-mine .lp-progress-bar { flex: 1; width: auto; }

/* Ko'nikma plitkalarida harf o'rniga ikon */
.tile svg { flex: none; }
.mini-skills i svg { width: 13px; height: 13px; }

/* ---------- Til: faqat bayroqchalar ---------- */
.flag { display: block; flex: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
:root[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.lang-toggle { gap: 6px; padding-inline: 11px; }
.lang-toggle .flag { width: 24px; height: 17px; }
.lang-menu .submenu.lang-sub { width: auto; min-width: 0; flex-direction: row; gap: 4px; padding: 6px; }
.lang-flag { display: grid; place-items: center; width: 50px; height: 42px; border: 0; border-radius: 10px; background: none; cursor: pointer; position: relative; transition: background .15s, transform .15s; }
.lang-flag:hover { background: var(--hover); transform: translateY(-1px); }
.lang-flag:focus-visible { outline: 2px solid var(--pri); outline-offset: 1px; }
.lang-flag.is-current { background: var(--pri-soft); box-shadow: inset 0 0 0 2px var(--pri); }
.lang-switch button { display: grid; place-items: center; min-width: 52px; }
.lang-switch button[aria-pressed="false"] .flag { opacity: .7; }
.lang-switch button[aria-pressed="false"]:hover .flag { opacity: 1; }

/* ---------- Hisob menyusi (ixcham) ---------- */
.user-menu .submenu.um-menu { min-width: 0; width: 230px; padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.um-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.um-head span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.um-head b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-head small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; text-align: left; transition: background .12s; }
.um-item svg { color: var(--mute); flex: none; }
.um-item:hover, .um-item:focus-visible { background: var(--hover); }
.um-item:hover svg { color: var(--pri); }
.um-sep { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.um-danger:hover, .um-danger:hover svg { color: #D64545; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar { overflow: hidden; }

/* ===================== Profil ===================== */
.pf-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 12px; }
.pf-card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pf-avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none;
  background: linear-gradient(140deg, var(--pri) 0%, color-mix(in srgb, var(--pri) 60%, #0E9AA7) 100%); color: #fff; font: 700 32px/1 var(--f-display); margin-bottom: 8px; box-shadow: 0 0 0 4px var(--pri-soft); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar-lg { width: 96px; height: 96px; margin: 0; font-size: 36px; }
.pf-name { font-size: 17px; overflow-wrap: anywhere; }
.pf-sub { color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }
.pf-meter { width: 100%; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 13px; color: var(--mute); }
.pf-meter b { color: var(--ink); }
.pf-meter i { display: block; height: 6px; border-radius: 6px; background: var(--surf-2); overflow: hidden; }
.pf-meter em { display: block; height: 100%; border-radius: inherit; background: var(--pri); transition: width .4s; }
.pf-nav { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.pf-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.pf-nav a svg { color: var(--mute); flex: none; }
.pf-nav a:hover { background: var(--hover); }
.pf-nav a.is-active { background: var(--pri-soft); color: var(--pri-text); font-weight: 650; }
.pf-nav a.is-active svg { color: var(--pri-text); }
.pf-ok { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--pri); color: #fff; }
.pf-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pf-form { display: flex; flex-direction: column; gap: 18px; }
.pf-head h2 { margin-bottom: 4px; }
.pf-head p { font-size: 14.5px; max-width: 620px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-grid-3 { grid-template-columns: 90px 1fr 1.4fr; }
.pf-sep { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--mute); }
.pf-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pf-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.pf-photo { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 16px; background: var(--surf-2); }
.pf-photo input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pf-photo label.btn { cursor: pointer; }
.pf-photo:focus-within label.btn { outline: 2px solid var(--pri); outline-offset: 2px; }
.pf-photo .err { color: #C53A2A; }
.pf-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mute); cursor: pointer; }
.pf-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--pri-soft); color: var(--pri-text); font-size: 14px; }
.pf-note svg { flex: none; margin-top: 2px; }
.tg-linked { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surf-2); }
.tg-linked > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tg-linked .tg-logo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #229ED9; color: #fff; flex: none; }
.tg-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.tg-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.tg-steps b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri-text); font-size: 14px; flex: none; }
.ip-count { padding: 6px 12px; border-radius: 999px; background: var(--surf-2); font-weight: 700; font-size: 14px; }
.ip-list, .ip-pick { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ip-list li, .ip-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.ip-list li.is-current { border-color: color-mix(in srgb, var(--pri) 45%, var(--line)); background: color-mix(in srgb, var(--pri-soft) 45%, transparent); }
.ip-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surf-2); color: var(--mute); flex: none; }
.ip-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ip-main small { color: var(--mute); font-size: 12.5px; }
.ip-main .pill { font-size: 11px; padding: 2px 8px; vertical-align: middle; }
.ip-opt { cursor: pointer; transition: border-color .15s, background .15s; }
.ip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ip-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: border .15s; }
.ip-opt:has(input:checked) { border-color: #D64545; background: color-mix(in srgb, #D64545 7%, transparent); }
.ip-opt:has(input:checked) .ip-radio { border: 6px solid #D64545; }
.ip-opt:has(input:focus-visible) { outline: 2px solid var(--pri); outline-offset: 2px; }
@media (max-width: 900px) {
  .pf-layout { grid-template-columns: 1fr; }
  .pf-side { position: static; }
  .pf-card { flex-direction: row; text-align: left; flex-wrap: wrap; gap: 4px 14px; padding: 16px; }
  .pf-card .pf-avatar { width: 56px; height: 56px; font-size: 22px; margin: 0; }
  .pf-card .pf-name { flex: 1; align-self: center; }
  .pf-card .pf-sub { display: none; }
  .pf-meter { margin-top: 6px; }
  .pf-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .pf-nav::-webkit-scrollbar { display: none; }
  .pf-nav a { white-space: nowrap; flex: none; padding: 9px 12px; }
}
@media (max-width: 600px) {
  .pf-grid, .pf-grid-3 { grid-template-columns: 1fr; }
  .pf-photo { flex-direction: column; align-items: flex-start; }
  .pf-actions .btn { width: 100%; }
  .ip-list li { flex-wrap: wrap; }
  .ip-list li form { width: 100%; }
  .ip-list li form .btn { width: 100%; }
}

/* ===================== Reyting ===================== */
.rank-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink);
  background: linear-gradient(150deg, color-mix(in srgb, #F5B301 16%, var(--surf)) 0%, var(--surf) 60%); border: 1px solid color-mix(in srgb, #F5B301 35%, var(--line));
  transition: transform .18s, box-shadow .18s; }
.rank-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(180, 120, 0, .6); }
.rank-card:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; }
.rank-top { display: flex; align-items: center; gap: 12px; }
.rank-medal { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, #F5B301, #E07B00); color: #fff; flex: none; box-shadow: 0 10px 20px -10px #E07B00; }
.rank-title { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.rank-title small { font-size: 13px; color: var(--mute); }
.rank-title .display { font-size: 28px; }
.rank-of { font-size: 15px; color: var(--mute); font-weight: 600; }
.rank-none { font-size: 15px; }
.rank-go { color: var(--mute); }
.rank-hint { font-size: 13.5px; color: var(--mute); }
.rank-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rank-list li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .tile-xs { width: 26px; height: 26px; border-radius: 8px; }
.rank-more { font-size: 14px; font-weight: 600; color: var(--pri-text); }
.rk-scopes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; margin-bottom: 18px; }
.rk-scopes a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; }
.rk-scopes a svg { color: var(--tint, var(--mute)); }
.rk-scopes a:hover { border-color: color-mix(in srgb, var(--tint, var(--pri)) 50%, var(--line)); }
.rk-scopes a.is-active { background: var(--tint, var(--pri)); border-color: transparent; color: #fff; }
.rk-scopes a.is-active svg { color: #fff; }
.rk-me { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--surf); border: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.rk-me-rank { display: flex; flex-direction: column; line-height: 1.1; padding-right: 18px; border-right: 1px solid var(--line); }
.rk-me-rank small { font-size: 12.5px; color: var(--mute); }
.rk-me-rank b { font-size: 34px; color: var(--pri-text); }
.rk-me-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; font-size: 15px; font-weight: 600; }
.rk-me-text small { font-weight: 400; font-size: 13px; }
.rk-podium { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-bottom: 22px; }
.rk-p { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px 16px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); text-align: center; min-width: 0; }
.rk-p b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-p small { color: var(--mute); font-size: 12.5px; }
.rk-p1 { order: 2; padding-top: 26px; background: linear-gradient(170deg, color-mix(in srgb, #F5B301 20%, var(--surf)), var(--surf)); border-color: color-mix(in srgb, #F5B301 45%, var(--line)); }
.rk-p2 { order: 1; }
.rk-p3 { order: 3; }
.rk-p.is-me { box-shadow: 0 0 0 2px var(--pri); }
.rk-ava { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri-text); font: 700 22px/1 var(--f-display); margin-bottom: 6px; }
.rk-p1 .rk-ava { width: 74px; height: 74px; font-size: 26px; box-shadow: 0 0 0 3px #F5B301; }
.rk-r2 .rk-ava { box-shadow: 0 0 0 3px #A9B4C2; }
.rk-r3 .rk-ava { box-shadow: 0 0 0 3px #CD8A4F; }
.rk-p1.rk-r2 .rk-ava { box-shadow: 0 0 0 3px #A9B4C2; }
.rk-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rk-ava i { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--f-body); font-style: normal; color: #fff; background: #A9B4C2; border: 2px solid var(--surf); }
.rk-r1 .rk-ava i { background: #E0A100; }
.rk-r3 .rk-ava i { background: #C07A3D; }
.rk-score { font-size: 22px; font-weight: 700; }
.rk-rank { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 10px; background: var(--surf-2); font-weight: 700; font-size: 14px; }
.rk-rank.top1 { background: #F5B301; color: #3A2A00; }
.rk-rank.top2 { background: #D3DAE3; color: #2B3440; }
.rk-rank.top3 { background: #E8B488; color: #4A2A10; }
.rk-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; flex: none; }
.rk-table tr.is-me td { background: color-mix(in srgb, var(--pri-soft) 60%, transparent); }
.rk-table tr.rk-gap td { text-align: center; color: var(--mute); padding: 4px; }
.rk-foot { font-size: 13px; margin-top: 14px; }
@media (max-width: 600px) {
  .rk-podium { gap: 8px; }
  .rk-p { padding: 14px 6px 12px; border-radius: 16px; }
  .rk-ava { width: 48px; height: 48px; font-size: 18px; }
  .rk-p1 .rk-ava { width: 58px; height: 58px; }
  .rk-score { font-size: 18px; }
  .rk-me { padding: 14px 16px; gap: 12px; }
  .rk-me-rank { padding-right: 12px; }
  .rk-me-rank b { font-size: 28px; }
}

/* ===================== Matnni belgilash ===================== */
mark.hl { color: inherit; border-radius: 3px; padding: 1px 0 !important; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: box-shadow .12s; }
mark.hl.hl-yellow { background: #FFE768; }
mark.hl.hl-green { background: #8EF08A; }
mark.hl.hl-blue { background: #A9D8FF; }
mark.hl.hl-pink { background: #FFB8D9; }
:root[data-theme="dark"] mark.hl { color: #0C1A14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) mark.hl { color: #0C1A14; } }
mark.hl:focus-visible, mark.hl.is-active { outline: none; box-shadow: 0 0 0 2px var(--ink); }
mark.hl.has-note { border-bottom: 2px dotted rgba(0, 0, 0, .55); }
mark.hl.has-note:not(.hl-cont)::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 3px; vertical-align: -2px; border-radius: 4px;
  background: var(--pri) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 8h12M6 13h8'/%3E%3C/svg%3E") center/11px no-repeat; }
.hl-root ::selection, .hl-root::selection { background: rgba(10, 107, 75, .28); }
.hl-bar { position: fixed; z-index: 120; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; background: #10211A; color: #fff;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .5); animation: hlIn .14s ease-out; }
.hl-sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; transition: transform .12s; }
.hl-sw:hover { transform: scale(1.12); }
.hl-sw:focus-visible, .hl-act:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hl-sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px #10211A, 0 0 0 4px #fff; }
.hl-sw-yellow { background: #FFE768; } .hl-sw-green { background: #8EF08A; } .hl-sw-blue { background: #A9D8FF; } .hl-sw-pink { background: #FFB8D9; }
.hl-div { width: 1px; height: 22px; background: rgba(255, 255, 255, .2); margin: 0 4px; }
.hl-act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #fff; font: 600 13.5px/1 var(--f-body); cursor: pointer; }
.hl-act:hover { background: rgba(255, 255, 255, .12); }
.hl-bar:not(.is-edit) .hl-del { display: none; }
.hl-del:hover { background: rgba(255, 90, 90, .25); }
.hl-pop { position: fixed; z-index: 121; width: min(320px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .45); animation: hlIn .14s ease-out; }
.hl-pop-title { font-weight: 700; font-size: 14px; }
.hl-pop textarea { width: 100%; resize: vertical; min-height: 84px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surf-2); color: var(--ink); font: 15px/1.45 var(--f-body); }
.hl-pop textarea:focus { outline: 2px solid var(--pri); outline-offset: 0; }
.hl-pop-row { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes hlIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hl-bar, .hl-pop { animation: none; } }
.hl-notes-wrap { position: relative; }
.hl-notes-btn { position: relative; }
.hl-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--pri); color: #fff; font-size: 11px; font-style: normal; display: grid; place-items: center; }
.hl-notes { position: absolute; right: 0; top: calc(100% + 8px); z-index: 110; width: min(360px, calc(100vw - 24px)); max-height: 60vh; overflow: auto; padding: 8px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .4); }
.hl-notes-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px; }
.hl-notes-empty { padding: 4px 8px 10px; font-size: 14px; color: var(--mute); }
.hl-notes ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-notes li button { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.hl-notes li button:hover, .hl-notes li button:focus-visible { background: var(--hover); }
.hl-notes q { font-size: 14px; font-family: var(--f-serif); display: block; }
.hl-notes small { display: block; font-size: 13px; margin-top: 3px; color: var(--ink); white-space: pre-wrap; }
.hl-notes small.muted { color: var(--mute); }
.hl-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 4px; }
.hl-dot.hl-yellow { background: #FFE768; } .hl-dot.hl-green { background: #8EF08A; } .hl-dot.hl-blue { background: #A9D8FF; } .hl-dot.hl-pink { background: #FFB8D9; }
@media (max-width: 700px) { .hl-notes { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; } }
.um-menu::after, .um-menu::before { display: none !important; }
.ip-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-nav a .pf-ok svg { color: #fff; }
.pf-head.row > div { flex: 1; min-width: 220px; }

/* ===================== AI test baholash (natija sahifasi) ===================== */
.res-band-row { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.res-raw { display: flex; flex-direction: column; padding-bottom: 14px; line-height: 1.15; }
.res-raw b { font-size: 30px; }
.res-raw b small { font-size: 18px; color: var(--mute); }
.res-raw > small { color: var(--mute); font-size: 13px; }
.ai-rv { display: flex; flex-direction: column; gap: 14px; padding: 22px; margin-bottom: 26px; max-width: 920px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, color-mix(in srgb, #7C5CFF 9%, var(--surf)), var(--surf) 55%); border: 1px solid color-mix(in srgb, #7C5CFF 26%, var(--line)); }
.ai-rv-head { display: flex; align-items: center; gap: 12px; }
.ai-rv-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(140deg, #7C5CFF, #3BA7FF); }
.ai-rv-title { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.ai-rv-title b { font-size: 17px; }
.ai-rv-band { display: flex; flex-direction: column; align-items: center; padding: 6px 16px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); line-height: 1.1; }
.ai-rv-band small { font-size: 11.5px; color: var(--mute); }
.ai-rv-band b { font-size: 28px; color: #6A4CF0; }
:root[data-theme="dark"] .ai-rv-band b { color: #B4A3FF; }
.ai-rv .btn { align-self: flex-start; }
.ai-rv-wait { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.ai-rv-err { color: var(--danger); font-size: 14.5px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, #7C5CFF 25%, transparent); border-top-color: #7C5CFF; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.ai-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ai-cols b { font-size: 14px; }
.ai-cols ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; display: flex; flex-direction: column; gap: 4px; }
.ai-crit { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; }
.ai-crit-i { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 13.5px; align-items: center; }
.ai-crit-i b { font-size: 15px; }
.ai-crit-i i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 6px; background: var(--surf-2); overflow: hidden; }
.ai-crit-i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7C5CFF, #3BA7FF); }
.rv-ai { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #7C5CFF 7%, var(--surf-2)); font-size: 14.5px; }
.rv-ai p { margin: 4px 0 0; }
.rv-ai q { display: block; margin-top: 6px; font-family: var(--f-serif); font-style: italic; color: var(--mute); font-size: 14px; }
.rv-ai-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #6A4CF0; }
:root[data-theme="dark"] .rv-ai-tag { color: #B4A3FF; }
.rv-qband { display: inline-flex; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, #7C5CFF 10%, var(--surf-2)); font-size: 13.5px; }
.wt-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surf); border: 1px solid var(--line); }
.wt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wt-words { font-size: 13px; color: var(--mute); padding: 4px 10px; border-radius: 999px; background: var(--surf-2); }
.wt-band { margin-left: auto; display: flex; align-items: baseline; gap: 6px; }
.wt-band small { color: var(--mute); font-size: 13px; }
.wt-band b { font-size: 26px; color: #6A4CF0; }
:root[data-theme="dark"] .wt-band b { color: #B4A3FF; }
.wt-q { font-weight: 600; }
.wt-essay { border: 1px solid var(--line); border-radius: 12px; }
.wt-essay summary { cursor: pointer; padding: 11px 14px; font-weight: 600; font-size: 14.5px; }
.wt-text { padding: 0 14px 14px; font-family: var(--f-serif); font-size: 16px; line-height: 1.7; white-space: normal; }
.wt-fix ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.wt-fix li { padding: 8px 12px; border-radius: 10px; background: var(--surf-2); }
.wt-fix s { color: var(--danger); }
.wt-fix ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.wt-fix small { display: block; color: var(--mute); margin-top: 2px; }
/* Bo'lim testlari kartasi: natija + band */
.xt-score { display: inline-flex; align-items: baseline; gap: 6px; }
.xt-score em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mute); }
.xt-band { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--pri-soft); color: var(--pri-text); font-size: 13px; font-weight: 700; }
.xt-band.is-ai { background: color-mix(in srgb, #7C5CFF 14%, var(--surf)); color: #6A4CF0; }
:root[data-theme="dark"] .xt-band.is-ai { color: #B4A3FF; }

/* ===================== Biz haqimizda ===================== */
.ab-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ab-js [data-reveal].is-in { opacity: 1; transform: none; }
.ab-hero { position: relative; overflow: hidden; padding: 72px 0 56px; background:
  radial-gradient(60% 80% at 85% 20%, color-mix(in srgb, var(--pri) 18%, transparent), transparent 70%),
  radial-gradient(50% 60% at 10% 90%, color-mix(in srgb, #F5B301 14%, transparent), transparent 70%); }
.ab-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.ab-h1 { font-family: var(--f-display); font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 18px; }
.ab-grad { background: linear-gradient(100deg, var(--pri), #0E9AA7 55%, #6D5BD0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--mute); max-width: 560px; }
.ab-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ab-hero-art { position: relative; height: 380px; }
.ab-orb { position: absolute; inset: 40px; border-radius: 50%; background: conic-gradient(from 120deg, var(--pri), #0E9AA7, #6D5BD0, #F5B301, var(--pri)); filter: blur(46px); opacity: .35; animation: abSpin 18s linear infinite; }
.ab-float, .ab-overall { position: absolute; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 18px; background: color-mix(in srgb, var(--surf) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35); line-height: 1.15; animation: abBob 6s ease-in-out infinite; }
.ab-float small, .ab-overall small { font-size: 12px; color: var(--mute); }
.ab-float b { font: 700 28px/1.1 var(--f-display); }
.ab-f1 { top: 10px; left: 6%; } .ab-f2 { top: 34px; right: 2%; animation-delay: -1.5s; }
.ab-f3 { bottom: 40px; left: 0; animation-delay: -3s; } .ab-f4 { bottom: 8px; right: 10%; animation-delay: -4.5s; }
.ab-f1 b { color: var(--c-listening); } .ab-f2 b { color: var(--c-reading); } .ab-f3 b { color: var(--c-writing); } .ab-f4 b { color: var(--c-speaking); }
.ab-overall { top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 22px 30px; align-items: center; background: var(--pri); color: #fff; border: 0; animation: none; box-shadow: 0 30px 60px -24px var(--pri); }
.ab-overall small { color: rgba(255, 255, 255, .8); }
.ab-overall b { font: 700 54px/1 var(--f-display); }
@keyframes abBob { 50% { transform: translateY(-10px); } }
@keyframes abSpin { to { transform: rotate(360deg); } }
.ab-stats-wrap { margin-top: -20px; position: relative; z-index: 1; }
.ab-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 22px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .3); overflow: hidden; }
.ab-stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 26px 12px; text-align: center; }
.ab-stats li + li { border-left: 1px solid var(--line); }
.ab-stats b { font-size: clamp(28px, 3.4vw, 40px); color: var(--pri-text); }
.ab-stats span { color: var(--mute); font-size: 14px; }
.ab-why { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ab-p { font-size: 16.5px; margin-top: 12px; max-width: 560px; }
.ab-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ab-vs-col { padding: 22px; border-radius: 20px; border: 1px solid var(--line); }
.ab-vs-col ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.ab-vs-col li { display: flex; gap: 8px; }
.ab-vs-col.is-old { background: var(--surf-2); color: var(--mute); }
.ab-vs-col.is-old li::before { content: "✕"; color: var(--danger); font-weight: 700; }
.ab-vs-col.is-new { background: linear-gradient(160deg, color-mix(in srgb, var(--pri) 12%, var(--surf)), var(--surf)); border-color: color-mix(in srgb, var(--pri) 35%, var(--line)); }
.ab-vs-col.is-new li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.ab-sec-head { margin-bottom: 26px; }
.ab-steps { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.ab-step-list { display: flex; flex-direction: column; gap: 8px; }
.ab-step { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surf); text-align: left; cursor: pointer; color: var(--ink); font: inherit; transition: border-color .2s, background .2s, transform .2s; }
.ab-step i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surf-2); font-style: normal; font-weight: 700; flex: none; transition: background .2s, color .2s; }
.ab-step span { display: flex; flex-direction: column; }
.ab-step small { color: var(--mute); font-size: 13px; }
.ab-step:hover { transform: translateX(3px); }
.ab-step:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.ab-step.is-active { border-color: var(--pri); background: var(--pri-soft); }
.ab-step.is-active i { background: var(--pri); color: #fff; }
.ab-panel.is-active { animation: abFade .35s ease; }
@keyframes abFade { from { opacity: 0; transform: translateY(8px); } }
.ab-mock { border-radius: 20px; border: 1px solid var(--line); background: var(--surf); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .4); }
.ab-mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--surf-2); border-bottom: 1px solid var(--line); }
.ab-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.ab-mock-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 230px; }
.ab-mock-body > p { color: var(--mute); }
.ab-skill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-chip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--tint) 12%, var(--surf)); font-weight: 600; }
.ab-chip b { color: var(--tint); font-family: var(--f-mono); }
.ab-lessons { display: flex; flex-direction: column; gap: 8px; }
.ab-lessons span { padding: 10px 14px; border-radius: 12px; background: var(--surf-2); font-size: 14.5px; }
.ab-lessons .is-done { color: var(--ok); } .ab-lessons .is-cur { background: var(--pri-soft); color: var(--pri-text); font-weight: 600; } .ab-lessons .is-lock { color: var(--mute); }
.ab-exam { display: flex; flex-direction: column; gap: 12px; font-family: var(--f-serif); font-size: 17px; }
.ab-exam mark { background: #8EF08A; color: #0C1A14; border-radius: 3px; }
.ab-timer { align-self: center; font: 700 18px var(--f-mono); padding: 6px 16px; border-radius: 999px; background: var(--pri-soft); color: var(--pri-text); }
.ab-qnav { display: flex; gap: 6px; font-family: var(--f-body); }
.ab-qnav i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surf-2); font-style: normal; font-size: 13px; font-weight: 600; }
.ab-qnav i.on { background: var(--pri); color: #fff; } .ab-qnav i.fl { box-shadow: inset 0 0 0 2px #E39A12; }
.ab-ai { display: flex; flex-direction: column; gap: 12px; }
.ab-ai-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: linear-gradient(120deg, #7C5CFF, #3BA7FF); color: #fff; font-size: 12px; font-weight: 700; }
.ab-ai s { color: var(--danger); } .ab-ai ins { color: var(--ok); text-decoration: none; font-weight: 600; }
.ab-bars { display: flex; flex-direction: column; gap: 8px; }
.ab-bars i { position: relative; display: block; padding: 6px 10px; border-radius: 8px; background: var(--surf-2); font-style: normal; font-size: 13px; overflow: hidden; z-index: 0; }
.ab-bars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, color-mix(in srgb, #7C5CFF 30%, transparent), color-mix(in srgb, #3BA7FF 30%, transparent)); z-index: -1; }
.ab-calc-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.ab-calc { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 24px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35); }
.ab-range { display: flex; flex-direction: column; gap: 8px; }
.ab-range span { display: flex; justify-content: space-between; font-weight: 600; }
.ab-range output { font-family: var(--f-mono); color: var(--tint); }
.ab-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--tint) var(--p, 50%), var(--surf-2) var(--p, 50%)); cursor: pointer; }
.ab-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--tint); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.ab-range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--tint); }
.ab-range input:focus-visible { outline: 2px solid var(--tint); outline-offset: 4px; }
.ab-calc-out { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.ab-calc-out small { color: var(--mute); }
.ab-calc-out b { font-size: 48px; color: var(--pri-text); }
.ab-calc-out b.is-pop { animation: abPop .3s ease; }
.ab-calc-out .muted { font-family: var(--f-mono); font-size: 13px; }
@keyframes abPop { 50% { transform: scale(1.12); } }
.ab-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-val { padding: 24px; border-radius: 22px; background: var(--surf); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.ab-val:hover { box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35); }
.ab-val p { color: var(--mute); font-size: 14.5px; }
.ab-val-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--tint), color-mix(in srgb, var(--tint) 70%, #000)); box-shadow: 0 12px 24px -12px var(--tint); }
.ab-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.ab-faq { display: flex; flex-direction: column; gap: 10px; }
.ab-faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surf); }
.ab-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary svg { flex: none; transition: transform .25s; color: var(--pri); }
.ab-faq details[open] summary svg { transform: rotate(45deg); }
.ab-faq details p { padding: 0 20px 18px; color: var(--mute); }
.ab-faq summary:focus-visible { outline: 2px solid var(--pri); outline-offset: -2px; border-radius: 16px; }
.ab-contact { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: center; padding: 36px; border-radius: 28px; color: #fff;
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, #0E9AA7 60%, transparent), transparent 60%), linear-gradient(140deg, var(--pri), color-mix(in srgb, var(--pri) 70%, #000)); }
.ab-contact .ab-p { color: rgba(255, 255, 255, .85); }
.ab-contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ab-contact-list li { display: flex; gap: 10px; align-items: center; }
.ab-contact-list a { color: #fff; }
@media (max-width: 980px) {
  .ab-hero-grid, .ab-why, .ab-calc-wrap, .ab-faq-wrap { grid-template-columns: 1fr; }
  .ab-hero-art { height: 300px; }
  .ab-steps { grid-template-columns: 1fr; }
  .ab-step-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .ab-step-list::-webkit-scrollbar { display: none; }
  .ab-step { flex: none; }
  .ab-step small { display: none; }
  .ab-values { grid-template-columns: repeat(2, 1fr); }
  .ab-contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ab-hero { padding: 40px 0 40px; }
  .ab-hero-art { height: 250px; }
  .ab-float b { font-size: 22px; }
  .ab-overall b { font-size: 40px; }
  .ab-stats { grid-template-columns: repeat(2, 1fr); }
  .ab-stats li:nth-child(3) { border-left: 0; }
  .ab-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-vs, .ab-values { grid-template-columns: 1fr; }
  .ab-contact { padding: 26px; }
  .ab-cta .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ab-orb, .ab-float { animation: none; } }

/* =====================================================================
   MOBIL UI/UX (telefon va planshet) — ilova uslubidagi tajriba
   ===================================================================== */
.tabbar, .mobile-cta, .ms-handle { display: none; }

@media (max-width: 900px) {
  /* --- Pastki navigatsiya (kabinet) --- */
  .tabbar { position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    background: color-mix(in srgb, var(--surf) 88%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .35); }
  .tb-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 4px 2px;
    border: 0; background: none; color: var(--mute); font: 600 11px/1.1 var(--f-body); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tb-ico { width: 52px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .2s, color .2s, transform .15s; overflow: hidden; }
  .tb-ico img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
  .tb-item.is-active { color: var(--pri-text); }
  .tb-item.is-active .tb-ico { background: var(--pri-soft); color: var(--pri-text); }
  .tb-item:active .tb-ico { transform: scale(.9); }
  .tb-item:focus-visible { outline: none; }
  .tb-item:focus-visible .tb-ico { box-shadow: 0 0 0 2px var(--pri); }
  body.section-app:has(.tabbar) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body.section-app:has(.tabbar) .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.section-app:has(.tabbar) .app-footer { display: none; }

  /* Kabinet: yon menyu o'rniga pastki navigatsiya; sarlavha ixcham */
  body.section-app:has(.tabbar) .app-side { display: none; }
  body.section-app:has(.tabbar) .app-header .burger,
  body.section-app:has(.tabbar) .app-header .theme-btn,
  body.section-app:has(.tabbar) .app-header .lang-menu { display: none; }
  .app-shell { padding-block: 14px 28px; gap: 14px; }

  /* --- Menyu: pastdan chiqadigan oyna (bottom sheet) --- */
  .mobile-panel.is-sheet { top: auto; left: 0; right: 0; width: 100%; max-height: 88vh; border-radius: 26px 26px 0 0;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); animation: sheetUp .32s cubic-bezier(.2, .8, .2, 1); gap: 12px; }
  .mobile-panel.is-sheet .ms-handle { display: block; width: 42px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 4px; }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
}
.ms-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ms-head .row { gap: 8px; }
.ms-user { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ms-user .avatar { width: 46px; height: 46px; flex: none; }
.ms-user-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.ms-user-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-user-txt small { color: var(--mute); font-size: 13px; }
.ms-user > svg { color: var(--mute); }
.ms-plus { margin-left: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pri); color: #fff; }
.ms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 6px; border-radius: 18px;
  background: var(--surf); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.2;
  -webkit-tap-highlight-color: transparent; transition: transform .15s, border-color .15s; }
.ms-tile:active { transform: scale(.96); }
.ms-tile:hover { border-color: color-mix(in srgb, var(--tint) 45%, var(--line)); }
.ms-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--tint), color-mix(in srgb, var(--tint) 72%, #000)); box-shadow: 0 10px 20px -12px var(--tint); }

@media (max-width: 600px) {
  /* --- Umumiy: o'qishga qulay, katta bosiladigan maydonlar --- */
  .btn { min-height: 46px; }
  .btn-sm { min-height: 40px; }
  input, select, textarea { font-size: 16px; } /* iOS sahifani kattalashtirmasin */
  .container { padding-inline: 16px; }
  .app-title h1 { font-size: 24px; }
  .app-title > p { display: none; }
  .header-row { gap: 8px; }
  .balance-chip .balance-txt small, .balance-chip .balance-plus { display: none; }
  .balance-chip { padding: 5px 10px 5px 5px; }

  /* Ko'nikma tablari — gorizontal chiplar */
  .skill-tabs { display: flex; overflow-x: auto; gap: 8px; padding: 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .skill-tabs::-webkit-scrollbar { display: none; }
  .skill-tab { flex: none; scroll-snap-align: start; padding: 10px 14px; }

  /* Jadval → kartochkalar */
  .table-cards { border: 0; background: none; box-shadow: none; overflow: visible; }
  .table-cards .table, .table-cards tbody { display: block; }
  .table-cards thead { display: none; }
  .table-cards tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main status" "diff res" "act act"; gap: 10px 12px; align-items: center; padding: 16px; margin-bottom: 10px;
    border-radius: 18px; background: var(--surf); border: 1px solid var(--line); }
  .table-cards td { display: flex; align-items: center; gap: 8px; padding: 0 !important; border: 0 !important; text-align: left !important; min-width: 0; }
  .table-cards td[data-label]::before { content: attr(data-label); color: var(--mute); font-size: 12px; font-weight: 500; }
  .table-cards .td-main { grid-area: main; align-self: start; }
  .table-cards td:nth-child(2) { grid-area: diff; }
  .table-cards td:nth-child(3) { grid-area: res; justify-content: flex-end; }
  .table-cards .td-main a { font-size: 16px; }
  .table-cards .td-status { grid-area: status; justify-content: flex-end; align-self: start; }
  .table-cards .td-date { display: none; }
  .table-cards .td-act { grid-area: act; }
  .table-cards .td-act .btn, .table-cards .td-act .lock-btn { width: 100%; justify-content: center; }

  /* --- Ma'lumot sayti: pastda doimiy «Boshlash» paneli --- */
  .mobile-cta { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surf) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
    animation: sheetUp .4s ease .6s both; }
  body.section-main:has(.mobile-cta) { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  body.section-main:has(.mobile-cta) .toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  /* Kartochkalar: bir ustun, ixcham */
  .xt-grid, .crs-grid { grid-template-columns: 1fr !important; }
  .card { border-radius: 18px; }
}
@media (hover: none) {
  .btn:active, .xt-card:active, .crs-card:active { transform: scale(.98); }
}
@media (max-width: 600px) {
  .filters .seg, .app-title .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .filters .seg::-webkit-scrollbar { display: none; }
  .filters .seg a { flex: none; }
}
@media (max-width: 600px) {
  .table-cards .q-title, .table-cards .q-title a, .table-cards .q-title span { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
  .table-cards .td-main { overflow: hidden; }
}

/* Grid ustunlari ichki kontent (gorizontal menyu, uzun matn) tufayli kengayib ketmasin */
.app-main, .pf-main, .pf-side, .pf-layout > * { min-width: 0; }
@media (max-width: 900px) {
  .pf-layout { grid-template-columns: minmax(0, 1fr); }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  /* Barcha segment-filtrlar bir qatorda, yonga suriladi */
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .seg::-webkit-scrollbar { display: none; }
  .seg > a, .seg > button { flex: none; white-space: nowrap; }
  .pf-head.row { flex-direction: column; align-items: stretch !important; }

  /* Jadval → kartochka (avtomatik) */
  .table-auto { border: 0; background: none; box-shadow: none; overflow: visible; }
  .table-auto table, .table-auto tbody { display: block; width: 100%; }
  .table-auto thead { display: none; }
  .table-auto tr { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; margin-bottom: 10px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); }
  .table-auto td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 !important; border: 0 !important; text-align: right !important; min-width: 0; font-size: 14.5px; }
  .table-auto td[data-label]::before { content: attr(data-label); color: var(--mute); font-size: 12.5px; font-weight: 500; text-align: left; flex: none; }
  .table-auto td:first-child { justify-content: flex-start; text-align: left !important; }
  .table-auto td:first-child::before { display: none; }
  .table-auto td:first-child .q-title, .table-auto td:first-child .q-title span { white-space: normal; }
  .table-auto td:last-child:has(.btn) { justify-content: stretch; }
  .table-auto td:last-child:has(.btn)::before { display: none; }
  .table-auto td:last-child .btn { width: 100%; justify-content: center; }
  .table-auto td:empty { display: none; }
}
@media (max-width: 600px) {
  .table-auto td:first-child { flex-wrap: wrap; row-gap: 4px; }
  .table-auto td:first-child > * { min-width: 0; max-width: 100%; }
  .table-auto td:first-child .row { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .pf-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); scroll-padding-inline: 16px; }
  .pf-nav.at-end { -webkit-mask-image: none; mask-image: none; }
}
