/* ===================================================================
   SafeStudy — "STIKER" KOMPONENT QATLAMI
   -------------------------------------------------------------------
   Dizayn tizimi: SafeStudy Design System (logodan olingan uslub).
   Bu fayl har bir sahifada ENG OXIRGI uslub sifatida ulanadi
   (sahifaning o'z <style> blokidan keyin), shuning uchun umumiy
   komponentlar — navbar, tugma, karta, forma, oyna — hamma joyda
   bir xil ko'rinadi.

   Uchta qoida:
     1. 2px kontur, hech qachon 1px emas.
        To'ldirilgan boshqaruvlar konturi --edge, oq stikerlar --outline.
     2. Qattiq soya: pastga siljigan, blursiz --edge qatlam
        (--sticker-sm 2px · --sticker-md 4px · --sticker-lg 6px).
     3. Hover — 2-3px ko'tariladi, soya o'sadi; Active — soya
        chuqurligiga tushadi, soya yo'qoladi.

   Ranglar faqat tokenlar orqali (style.css → 1-2 bo'limlar).
   =================================================================== */

/* -------------------------------------------------------------------
   0. ASOS: shriftlar, sarlavhalar, havolalar, fokus
   ------------------------------------------------------------------- */
html { background-color: var(--bg); }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.625;
  font-feature-settings: 'kern' 1;
}

h1, h2, h3, h4,
.page-header h1,
.page-header h2 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; line-height: 1.1; }
h2 { font-weight: 700; line-height: 1.2; }
h3, h4 { font-weight: 700; line-height: 1.3; }

a { color: var(--primary-text); }

::selection { background: var(--grape-soft); color: var(--ink); }

/* Fokus halqasi: 3px, 3px oraliq. Kunduzi grape, tunda sun. */
:focus-visible,
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"]):focus-visible {
  outline: var(--stroke-focus) solid var(--focus) !important;
  outline-offset: var(--stroke-focus);
}

/* Skroll paneli */
* { scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-subtle); background-clip: content-box; }

.skip-to-content {
  background: var(--grape);
  color: var(--on-grape);
  border: var(--stroke-line) solid var(--edge);
  box-shadow: var(--sticker-sm);
  font-family: var(--font-display);
}

/* Glassmorphism va nur sharlari DS'da yo'q */
.ss-orbs, .page-texture { display: none !important; }
.ss-sheen::after, .ss-sheen::before { display: none !important; }

/* Gradient sarlavha → bitta brend rangi */
.ss-gradient-text,
.gradient-text {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--grape) !important;
}

/* -------------------------------------------------------------------
   1. IKONKALAR — chiziqli, yumaloq uchli (DS: 24px setka, 2.25px chiziq)
   ------------------------------------------------------------------- */
.ss-icon,
.ss-icon.ic-14, .ss-icon.ic-16, .ss-icon.ic-18, .ss-icon.ic-24,
.ss-icon.ic-28, .ss-icon.ic-32, .ss-icon.ic-40, .ss-icon.ic-48,
.material-symbols-rounded,
.material-symbols-outlined,
.material-icons,
.material-symbols-rounded.filled,
.material-symbols-rounded.is-filled,
.nav-item .material-symbols-rounded,
.mobile-nav-item .material-symbols-rounded,
.mobile-sub-item .material-symbols-rounded,
.mobile-group-header .material-symbols-rounded,
.bottom-bar-item .material-symbols-rounded,
.theme-toggle-btn .material-symbols-rounded,
.mobile-toggle-btn .material-symbols-rounded,
.btn .material-symbols-rounded,
.dropdown-item .material-symbols-rounded,
.dropdown-trigger .material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.ss-icon.ic-14, .ss-icon.ic-16 { font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24; }

.ss-icon.ic-gold, .ss-icon.ic-fire { color: var(--sun-text); }
.ss-icon.ic-success { color: var(--success-text); }
.ss-icon.ic-danger  { color: var(--danger-text); }
.ss-icon.ic-info    { color: var(--primary-text); }
.ss-icon.ic-violet  { color: var(--grape); }

/* -------------------------------------------------------------------
   2. NAVBAR
   ------------------------------------------------------------------- */
.main-navbar {
  background: var(--surface);
  border-bottom: var(--stroke-line) solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.nav-container { height: var(--nav-height); gap: var(--space-3); }

.brand-link { color: var(--ink); }
.brand-logo { height: 36px; }
html.theme-light .brand-logo,
body.theme-light .brand-logo { filter: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--grape);
}
.brand-icon {
  background: var(--success);
  color: var(--on-success);
  border: var(--stroke-line) solid var(--edge);
  box-shadow: var(--sticker-sm);
  border-radius: var(--radius-md);
}

.nav-links { gap: var(--space-1); }

.nav-item,
.dropdown-trigger {
  height: 40px;
  padding: 3px 12px 0;
  gap: 6px;
  border-radius: var(--radius-md);
  border: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
}
.nav-item .material-symbols-rounded,
.dropdown-trigger .material-symbols-rounded {
  margin-top: -3px;
  opacity: 1;
  font-size: 19px;
}
.dropdown-trigger .drop-arrow { font-size: 18px; }
.nav-item:hover,
.dropdown-trigger:hover {
  color: var(--ink);
  background: var(--hover);
}
/* Mehmon menyusidagi "Bepul dars" — taklif, shuning uchun sariq (DS: sun) */
.nav-item--free { color: var(--sun-text); }
.nav-item--free .material-symbols-rounded { color: var(--sun-text); }
.nav-item--free:hover { color: var(--ink); background: var(--sun-soft); }
.nav-item.active,
.dropdown-trigger.active {
  color: var(--grape);
  background: var(--grape-soft);
  border-color: transparent;
  font-weight: 700;
}
.nav-item.active .material-symbols-rounded,
.dropdown-trigger.active .material-symbols-rounded { color: var(--grape); }
.nav-item::after,
.dropdown-trigger::after { display: none !important; }

/* Ochiladigan menyular: surface stiker + suzuvchi soya */
.dropdown-menu,
body.theme-light .dropdown-menu,
body.theme-dark .dropdown-menu,
.profile-dropdown {
  background: var(--surface) !important;
  border: var(--stroke-line) solid var(--outline) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--sticker-md), var(--float) !important;
  padding: 6px;
}
.dropdown-item {
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink);
  background: transparent !important;
  border: 0 !important;
  margin-bottom: 2px !important;
}
.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: var(--grape-soft) !important;
  color: var(--grape);
}
.dropdown-item:active { transform: translateY(1px); }
.dropdown-item.active { background: var(--grape-soft) !important; color: var(--grape); }
.dropdown-item .material-symbols-rounded { color: var(--ink-muted); }
.dropdown-item:hover .material-symbols-rounded { color: var(--grape); }
.drop-text-box strong { color: var(--ink) !important; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.drop-text-box span { color: var(--ink-muted); font-size: 12.5px; }
.dropdown-item:hover .drop-text-box strong { color: var(--grape) !important; }

/* Ochiluvchi menyu ikonkasi — stiker ikonka (SafeStudy.art), rang ikonkaning o'zida */
.drop-icon-box {
  background: var(--surface-sunken) !important;
  border: 0;
  box-shadow: none;
  border-radius: var(--radius-md);
}
.drop-icon-box .ill { width: 28px; height: 28px; }

.dropdown-divider { height: var(--stroke-line); background: var(--line); }

/* O'yin paneli (streak, coin, XP) */
.header-hud-strip {
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-pill);
}
.hud-item { font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.hud-item.streak,
html.theme-light .hud-item.streak,
body.theme-light .hud-item.streak { color: var(--sun-text); }
.hud-item.coins { color: var(--sun-text); }
.hud-item.xp { color: var(--success-text); }
.hud-divider { width: var(--stroke-line); background: var(--line); }

/* Profil tugmasi */
.profile-btn {
  background: var(--surface);
  border: var(--stroke-line) solid var(--outline);
  box-shadow: var(--sticker-sm);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.profile-btn:hover { border-color: var(--outline); transform: translateY(-2px); box-shadow: var(--sticker-md); }
.profile-btn:active { transform: translateY(2px); box-shadow: none; transition-duration: var(--dur-press); }
.user-avatar-badge,
.prof-drop-avatar {
  background: var(--primary-soft);
  border: var(--stroke-line) solid var(--outline);
}
.plan-pill {
  background: var(--sun);
  color: var(--on-sun);
  box-shadow: inset 0 0 0 var(--stroke-line) var(--edge);
  font-family: var(--font-sans);
  font-weight: 800;
  padding: 3px 8px 2px;
}
.profile-dropdown-header { border-bottom: var(--stroke-line) solid var(--line); }
.profile-dropdown-header strong { font-family: var(--font-display); }
.text-danger { color: var(--danger-text) !important; }

/* Mavzu va burger tugmalari — oq stiker ikonka tugma */
.theme-toggle-btn,
.mobile-toggle-btn,
.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: var(--stroke-line) solid var(--outline);
  color: var(--ink);
  box-shadow: var(--sticker-sm);
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease, background-color var(--dur-lift) ease;
}
.theme-toggle-btn:hover,
.mobile-toggle-btn:hover,
.mobile-drawer-close:hover {
  background: var(--surface);
  border-color: var(--outline);
  transform: translateY(-2px);
  box-shadow: var(--sticker-md);
}
.theme-toggle-btn:active,
.mobile-toggle-btn:active,
.mobile-drawer-close:active {
  transform: translateY(2px);
  box-shadow: none;
  background: var(--surface-sunken);
  transition-duration: var(--dur-press);
}
.theme-toggle-btn .material-symbols-rounded { font-size: 20px; }

/* Yuqori menyu ikonkalari — stiker SVG (SafeStudy.art, 19-bo'lim).
   2026-10-29 asoschi: 3D rasmlar (img/nav/*.webp) o'rniga yagona uslub.
   Hoverda ikonka ham bir oz ko'tariladi (DS: hoverda ko'tarilish). */
.nav-3d {
  width: 22px;
  height: 22px;
  flex: none;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.nav-item .nav-3d,
.dropdown-trigger .nav-3d {
  margin-top: -3px;
  transition: transform var(--dur-lift) var(--ease-spring);
}
.nav-item:hover .nav-3d,
.dropdown-trigger:hover .nav-3d,
.dropdown-trigger[aria-expanded="true"] .nav-3d { transform: translateY(-2px) rotate(-6deg); }
.hud-item .nav-3d { width: 20px; height: 20px; }
.theme-toggle-btn .nav-3d,
.mobile-toggle-btn .nav-3d { width: 24px; height: 24px; }
.dropdown-item .nav-3d { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) {
  .nav-item .nav-3d, .dropdown-trigger .nav-3d { transition: none; transform: none !important; }
}

/* -------------------------------------------------------------------
   3. MOBIL MENYU VA PASTKI PANEL
   ------------------------------------------------------------------- */
.mobile-drawer-overlay {
  background: var(--overlay);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.mobile-drawer-panel {
  background: var(--surface);
  border-left: var(--stroke-line) solid var(--outline);
  box-shadow: none;
}
.mobile-drawer-header,
.mobile-drawer-footer { border-color: var(--line); border-width: var(--stroke-line); }
.mobile-user-card {
  background: var(--surface);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-md);
}
.mobile-user-card .drawer-user-name { font-family: var(--font-display); font-size: 17px; }
/* Ikki ko'rsatkich (olov, XP) — 3 ustunda chapga surilib qolardi */
.mobile-stats-row { border-top: var(--stroke-line) solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-stat-box strong { font-family: var(--font-display); font-size: 15px; }
.mobile-nav-item {
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-muted);
  padding-top: 13px;
}
.mobile-nav-item:hover { background: var(--hover); color: var(--ink); }
.mobile-nav-item.active { background: var(--grape-soft); color: var(--grape); font-weight: 700; }
/* SVG ga aylanmagan (shrift bilan chiziladigan) ikonka ham 20px — yozuvlar bir chiziqda */
.mobile-nav-item > .material-symbols-rounded { flex: none; width: 20px; font-size: 20px; }
/* Pastki panelda bor bandlar telefonda yon menyuda takrorlanmaydi
   (planshetda pastki panel yo'q — u yerda ko'rinadi) */
@media (max-width: 768px) {
  .mobile-nav-item--tabbar,
  .mobile-nav-section--tabbar { display: none !important; }
  .mobile-nav-list > .mobile-nav-section:first-child,
  .mobile-nav-list > .mobile-nav-section--tabbar + .mobile-nav-section { margin-top: var(--space-2); }
}
/* Menyu guruhi — quti emas, kichik yorliq bilan ajraladi (Asosiy, Mashqlar, IELTS, Hisob) */
.mobile-nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-4);
}
.mobile-nav-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding: 0 14px 4px;
}
.mobile-nav-group {
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-lg);
}
.mobile-group-header { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.mobile-sub-item { color: var(--ink-muted); font-weight: 700; }
.mobile-sub-item.active { color: var(--grape); }

.mobile-bottom-bar {
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: var(--stroke-line) solid var(--line);
  box-shadow: none;
}
.bottom-bar-item {
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}
.bottom-bar-item::before {
  height: 4px;
  width: 30px;
  background: var(--grape);
  border-radius: 0 0 4px 4px;
}
.bottom-bar-item:hover,
.bottom-bar-item.active,
.bottom-bar-item.active .material-symbols-rounded { color: var(--grape); }
/* Menyu stikerlari (2026-10-30): pastki panel, yon menyu, profil menyusi.
   Faol bandda stiker bir oz ko'tariladi — rang o'zgarmaydi, yozuv binafsha. */
.bottom-bar-item .nav-3d { width: 26px; height: 26px; transition: transform var(--dur-lift) var(--ease-spring); }
.bottom-bar-item.active .nav-3d { transform: translateY(-2px) scale(1.08); }
.bottom-bar-item--cta { color: var(--success-text); }
.mobile-nav-item > .nav-3d { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { .bottom-bar-item .nav-3d { transition: none; transform: none !important; } }

/* -------------------------------------------------------------------
   4. SAHIFA TUZILMASI
   ------------------------------------------------------------------- */
.page-header h1,
.page-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.page-header p { color: var(--ink-muted); font-size: 16px; }

/* Segmentli tablar (DS Tabs) */
.section-nav-tabs {
  gap: 4px;
  padding: 4px 4px 6px;
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.section-tab-link {
  height: 40px;
  padding: 3px 16px 0;
  border: var(--stroke-line) solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-muted);
  background: transparent;
}
.section-tab-link .material-symbols-rounded { margin-top: -3px; }
.section-tab-link:hover { color: var(--ink); background: var(--hover); }
.section-tab-link.active {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--outline);
  box-shadow: var(--sticker-sm);
}

/* -------------------------------------------------------------------
   5. KARTALAR
   ------------------------------------------------------------------- */
.card,
.surface-panel,
.auth-card,
.quiz-box {
  background: var(--surface);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg);
}
.card:hover {
  transform: none;
  border-color: var(--outline);
  box-shadow: var(--sticker-lg);
}

/* Interaktiv karta: ko'tariladi, bosilganda pastga tushadi */
.category-card,
.goal-card {
  background: var(--surface);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-md);
  transition: transform .14s var(--ease-spring), box-shadow .14s ease, background-color .12s ease;
}
.category-card:hover,
.goal-card:hover {
  transform: translateY(-3px);
  border-color: var(--outline);
  box-shadow: 0 7px 0 0 var(--edge);
}
.category-card:active,
.goal-card:active {
  transform: translateY(3px);
  box-shadow: var(--sticker-sm);
  transition-duration: var(--dur-press);
}

.feat-card:hover,
.lesson-item-card:hover,
.master-track-card:hover,
.ss-lift:hover {
  transform: translateY(-3px);
}

/* Ikonka plitkalari — stiker */
.category-icon {
  border: var(--stroke-line) solid var(--edge);
  box-shadow: var(--sticker-sm);
  border-radius: var(--radius-md);
}
.cat-icon-blue    { background: var(--primary); color: var(--on-primary); }
.cat-icon-emerald { background: var(--success); color: var(--on-success); }
.cat-icon-amber   { background: var(--sun);     color: var(--on-sun); }
.cat-icon-rose    { background: var(--danger);  color: var(--on-danger); }
.cat-icon-cyan    { background: var(--primary); color: var(--on-primary); }

/* -------------------------------------------------------------------
   6. TUGMALAR (DS Button)
   ------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-hover: var(--surface);
  --btn-press: var(--surface-sunken);
  --btn-fg: var(--ink);
  --btn-edge: var(--outline);
  --btn-rest: var(--sticker-md);
  --btn-lift: var(--sticker-lg);
  --btn-drop: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 3px var(--space-6) 0;
  margin-bottom: var(--btn-drop);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: var(--stroke-line) solid var(--btn-edge);
  border-radius: var(--radius-md);
  box-shadow: var(--btn-rest);
  opacity: 1;
  cursor: pointer;
  user-select: none;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease, background-color var(--dur-lift) ease;
}
.btn .material-symbols-rounded,
.btn .ss-icon { margin-top: -3px; font-size: 20px; }
.btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-edge);
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--btn-lift);
  opacity: 1;
}
.btn:active {
  background: var(--btn-press);
  transform: translateY(var(--btn-drop));
  box-shadow: none;
  transition-duration: var(--dur-press);
}
/* Uzun yozuvli tugma o'z kengligidan chiqib ketmasin. nowrap bo'lganda matn
   tor ustunda (masalan IELTS Mock kartasi) ikki tomonga toshib, ikonka
   tugmadan tashqarida qolardi. Endi sig'masa matn ichkarida o'raladi. */
.btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.btn > .material-symbols-rounded,
.btn > .ss-icon,
.btn > svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .btn { padding-top: 7px; padding-bottom: 4px; }
}

.btn-primary {
  --btn-bg: var(--primary);
  --btn-hover: var(--primary-hover);
  --btn-press: var(--primary-press);
  --btn-fg: var(--on-primary);
  --btn-edge: var(--edge);
}
.btn-grape,
.btn-accent {
  --btn-bg: var(--grape);
  --btn-hover: var(--grape-hover);
  --btn-press: var(--grape-press);
  --btn-fg: var(--on-grape);
  --btn-edge: var(--edge);
}
.btn-emerald,
.btn-success {
  --btn-bg: var(--success);
  --btn-hover: var(--success-hover);
  --btn-press: var(--success);
  --btn-fg: var(--on-success);
  --btn-edge: var(--edge);
}
.btn-sun,
.btn-warning,
.btn-premium {
  --btn-bg: var(--sun);
  --btn-hover: var(--sun-hover);
  --btn-press: var(--sun);
  --btn-fg: var(--on-sun);
  --btn-edge: var(--edge);
}
.btn-danger {
  --btn-bg: var(--danger);
  --btn-hover: var(--danger-hover);
  --btn-press: var(--danger-hover);
  --btn-fg: var(--on-danger);
  --btn-edge: var(--edge);
}
.btn-secondary,
.btn-outline {
  --btn-bg: var(--surface);
  --btn-hover: var(--surface);
  --btn-press: var(--surface-sunken);
  --btn-fg: var(--ink);
  --btn-edge: var(--outline);
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-hover: var(--grape-soft);
  --btn-press: var(--grape-soft);
  --btn-fg: var(--grape);
  --btn-edge: transparent;
  --btn-rest: none;
  --btn-lift: none;
  --btn-drop: 0px;
}
.btn-ghost:hover, .btn-ghost:active { transform: none; }

.btn-sm {
  min-height: 36px;
  padding: 2px 14px 0;
  font-size: 14px;
  border-radius: var(--radius-sm);
  --btn-rest: var(--sticker-sm);
  --btn-lift: var(--sticker-md);
  --btn-drop: 2px;
}
.btn-sm .material-symbols-rounded,
.btn-sm .ss-icon { font-size: 17px; }
.btn-lg {
  min-height: 56px;
  padding: 3px var(--space-8) 0;
  font-size: 18px;
  border-radius: var(--radius-lg);
  --btn-rest: var(--sticker-lg);
  --btn-lift: 0 8px 0 0 var(--edge);
  --btn-drop: 6px;
}
.btn-block { display: flex; width: 100%; }

.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"],
.btn.is-disabled {
  --btn-bg: var(--surface-sunken);
  --btn-hover: var(--surface-sunken);
  --btn-press: var(--surface-sunken);
  --btn-fg: var(--ink-subtle);
  --btn-edge: var(--line-strong);
  border-style: dashed;
  box-shadow: none;
  transform: none;
  opacity: 1;
  cursor: not-allowed;
}
.btn.is-loading { opacity: .8; cursor: progress; }

/* Navbar ichidagi tugmalar — pastki soya joyi olinmaydi */
.nav-right .btn,
.landing-header-actions .btn { margin-bottom: 0; }
.nav-guest-login-btn,
.nav-guest-start-btn {
  min-height: 40px;
  padding: 3px 16px 0;
  font-size: 15px;
  border-radius: var(--radius-md);
  --btn-rest: var(--sticker-sm);
  --btn-lift: var(--sticker-md);
  --btn-drop: 2px;
}
.nav-guest-login-btn .material-symbols-rounded,
.nav-guest-start-btn .material-symbols-rounded { font-size: 18px; }

/* -------------------------------------------------------------------
   7. FORMALAR (DS Input)
   ------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--field);
  border: var(--stroke-line) solid var(--line-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-lift) ease, box-shadow var(--dur-lift) ease, background-color var(--dur-lift) ease;
}
input::placeholder,
textarea::placeholder { color: var(--ink-subtle); opacity: 1; }
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover { border-color: var(--ink-muted); }
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none !important;
  background-color: var(--surface);
  border-color: var(--grape);
  box-shadow: 0 0 0 4px var(--grape-soft);
}
input:disabled, select:disabled, textarea:disabled {
  background-color: var(--surface-sunken);
  color: var(--ink-subtle);
  border-style: dashed;
  cursor: not-allowed;
}
input[type="checkbox"],
input[type="radio"] { accent-color: var(--grape); }
input[type="range"] { accent-color: var(--grape); }

/* iPhone 16px dan kichik shriftli maydonga bosilganda sahifani kattalashtirib
   yuboradi. Sensorli telefonda maydonlar kamida 16px; ataylab kattaroq qilingan
   maydonlar (OTP, kod, to'lov summasi, SAT javobi, imlo) o'z o'lchamida qoladi. */
@media (max-width: 768px) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not(.kod-input):not(.otp-cell):not(.otp-input):not(.code-input):not(.spell-input):not(.pay-input-wrap *):not(.sat-spr-box *),
  select,
  textarea {
    font-size: 16px !important;
  }
}

.auth-input,
.form-input { min-height: 48px; }
.auth-label,
.form-label,
.field-label { font-family: var(--font-sans); font-weight: 800; font-size: 14px; color: var(--ink); }
.field-error { color: var(--danger-text); font-weight: 700; }

/* -------------------------------------------------------------------
   8. HABAR, OYNA, NISHON
   ------------------------------------------------------------------- */
.toast {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: var(--stroke-line) solid var(--outline) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--sticker-md), var(--float) !important;
  backdrop-filter: none !important;
  font-family: var(--font-sans);
  font-weight: 700;
}
.toast.success { background: var(--success-soft) !important; border-color: var(--success) !important; box-shadow: 0 4px 0 0 var(--success), var(--float) !important; }
.toast.error   { background: var(--danger-soft) !important;  border-color: var(--danger) !important;  box-shadow: 0 4px 0 0 var(--danger), var(--float) !important; }
.toast.warning { background: var(--sun-soft) !important;     border-color: var(--sun) !important;     box-shadow: 0 4px 0 0 var(--sun), var(--float) !important; }
.toast.info    { background: var(--primary-soft) !important; border-color: var(--primary) !important; box-shadow: 0 4px 0 0 var(--primary), var(--float) !important; }

.ss-modal,
.ss-limit-overlay {
  background: var(--overlay) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.ss-modal-card,
.ss-limit-sheet {
  background: var(--surface) !important;
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline) !important;
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg), var(--float) !important;
}
.ss-modal-close {
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  background: transparent;
}
.ss-modal-close:hover { background: var(--hover); color: var(--ink); }
.ss-limit-icon {
  background: var(--sun) !important;
  color: var(--on-sun) !important;
  border: var(--stroke-line) solid var(--edge);
  box-shadow: var(--sticker-sm);
  border-radius: var(--radius-lg) !important;
}
.ss-limit-title,
.ss-modal-head h2,
.ss-modal-head h3 { font-family: var(--font-display); font-weight: 800; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 1px 10px 0;
  border-radius: var(--radius-pill);
  background: var(--success-soft);
  color: var(--success-text);
  font-size: 13px;
  font-weight: 800;
}

/* Segment tanlagich (Parol | Email kodi ...) — DS Tabs */
.ss-segment,
.auth-tab-switch {
  background: var(--surface-sunken) !important;
  border: var(--stroke-line) solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 4px 4px 6px !important;
}
.ss-segment-btn,
.auth-tab-btn {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  color: var(--ink-muted) !important;
  border: var(--stroke-line) solid transparent !important;
  border-radius: var(--radius-md) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ss-segment-btn:hover,
.auth-tab-btn:hover { color: var(--ink) !important; background: var(--hover) !important; }
.ss-segment-btn.active,
.ss-segment-btn[aria-selected="true"],
.ss-segment-btn[aria-pressed="true"],
.auth-tab-btn.active {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--outline) !important;
  box-shadow: var(--sticker-sm) !important;
}

/* Kirish provayderlari (Google, Telegram) — oq stiker */
.auth-provider-btn {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: var(--stroke-line) solid var(--outline) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--sticker-md) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.auth-provider-btn:hover { transform: translateY(-2px); box-shadow: var(--sticker-lg) !important; }
.auth-provider-btn:active { transform: translateY(4px); box-shadow: none !important; transition-duration: var(--dur-press); }

/* Bosqichlar (onboarding) */
.step-circle {
  border: var(--stroke-line) solid var(--outline);
  font-family: var(--font-display);
  font-weight: 800;
}
.step-item.active .step-circle,
.step-item.done .step-circle,
.step-item.completed .step-circle {
  background: var(--grape);
  color: var(--on-grape);
  border-color: var(--edge);
  box-shadow: var(--sticker-sm);
}

/* Qiziqish chiplari, filtrlar */
.interest-chip,
.filter-chip {
  font-family: var(--font-display);
  font-weight: 700;
  border: var(--stroke-line) solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-muted);
}
.interest-chip:hover,
.filter-chip:hover { border-color: var(--grape); color: var(--grape); background: var(--grape-soft); }
.interest-chip.active,
.interest-chip.selected,
.filter-chip.active {
  background: var(--grape);
  color: var(--on-grape);
  border-color: var(--edge);
  box-shadow: var(--sticker-sm);
}

/* Javob plitkasi (quiz) */
.option-btn,
.opt-btn {
  background: var(--surface);
  color: var(--ink);
  border: var(--stroke-line) solid var(--line-strong);
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-weight: 600;
  transition: transform var(--dur-lift) ease, box-shadow var(--dur-lift) ease, border-color var(--dur-lift) ease, background-color var(--dur-lift) ease;
}
.option-btn:hover,
.opt-btn:hover {
  border-color: var(--outline);
  transform: translateY(-2px);
  box-shadow: var(--sticker-sm);
}
.option-btn.selected, .opt-btn.selected { background: var(--grape-soft); border-color: var(--grape); box-shadow: 0 3px 0 0 var(--grape); transform: none; }
.option-btn.correct,  .opt-btn.correct  { background: var(--success-soft); border-color: var(--success); box-shadow: 0 3px 0 0 var(--success); color: var(--ink); transform: none; }
.option-btn.wrong,    .opt-btn.wrong,
.option-btn.incorrect,.opt-btn.incorrect { background: var(--danger-soft); border-color: var(--danger); box-shadow: 0 3px 0 0 var(--danger); color: var(--ink); transform: none; }

/* Jadval */
.table th { font-family: var(--font-display); font-weight: 700; color: var(--ink-muted); }
.table td, .table th { border-color: var(--line); border-width: var(--stroke-line); }

/* Bo'sh holat, skelet */
.empty-state { color: var(--ink-muted); }
.ss-skeleton {
  background: var(--surface-sunken);
  background-image: none;
  animation: ssSkelPulse 1.2s ease-in-out infinite;
}
@keyframes ssSkelPulse { 50% { opacity: .55; } }

.info-banner {
  background: var(--primary-soft);
  border: var(--stroke-line) solid var(--primary);
  color: var(--ink);
  border-radius: var(--radius-lg);
}

/* Progress: 18px trek, konturli, chiziqli to'ldirish */
.ss-progress-bar {
  height: 18px;
  padding: 2px;
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-sizing: border-box;
}
.ss-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background-color: var(--primary);
  background-image: repeating-linear-gradient(-45deg, transparent 0 6px, var(--hover) 6px 12px);
}

/* -------------------------------------------------------------------
   9. DS TUGMA VA KARTA KLASSLARI — yangi sahifalar uchun
   (components/bundle.css dan; ism to'qnashuvi bo'lmasligi uchun
    ss- prefiksi saqlangan)
   ------------------------------------------------------------------- */
.ss-card {
  position: relative;
  display: block;
  padding: var(--space-6);
  background: var(--surface);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg);
  text-decoration: none;
}
.ss-card--flat { border-color: var(--line); box-shadow: none; }
.ss-card--interactive {
  box-shadow: var(--sticker-md);
  cursor: pointer;
  transition: transform .14s var(--ease-spring), box-shadow .14s ease;
}
.ss-card--interactive:hover { transform: translateY(-3px); box-shadow: 0 7px 0 0 var(--edge); }
.ss-card--interactive:active { transform: translateY(3px); box-shadow: var(--sticker-sm); transition-duration: var(--dur-press); }
.ss-card--sky   { background: var(--primary); color: var(--on-primary); border-color: var(--edge); }
.ss-card--grape { background: var(--grape);   color: var(--on-grape);   border-color: var(--edge); }
.ss-card--sun   { background: var(--sun);     color: var(--on-sun);     border-color: var(--edge); }
.ss-card--tint  { background: var(--grape-soft); }

.ss-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 1px 10px 0;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  background: var(--surface-sunken);
  color: var(--ink-muted);
}
.ss-badge--sky     { background: var(--primary-soft); color: var(--primary-text); }
.ss-badge--grape   { background: var(--grape-soft);   color: var(--grape); }
.ss-badge--success { background: var(--success-soft); color: var(--success-text); }
.ss-badge--warning { background: var(--sun-soft);     color: var(--sun-text); }
.ss-badge--danger  { background: var(--danger-soft);  color: var(--danger-text); }
.ss-badge--sun     { background: var(--sun); color: var(--on-sun); box-shadow: inset 0 0 0 var(--stroke-line) var(--edge); }

.ss-overline {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------
   10. HARAKATNI KAMAYTIRISH VA CHOP ETISH
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .category-card, .goal-card, .profile-btn, .theme-toggle-btn,
  .mobile-toggle-btn, .auth-provider-btn, .option-btn, .opt-btn, .ss-card {
    transition: none !important;
  }
  .btn:hover, .btn:active, .category-card:hover, .goal-card:hover,
  .profile-btn:hover, .option-btn:hover, .opt-btn:hover { transform: none !important; }
}

/* Chop etishda doim kunduzgi ranglar — oq qog'ozda oq matn bo'lmasin */
@media print {
  :root, html, body {
    --bg: #ffffff; --surface: #ffffff; --surface-sunken: #f3f5fb; --surface-raised: #e8effd; --field: #ffffff;
    --line: #dde3f5; --line-strong: #8f88bf; --edge: #2b1166; --outline: #2b1166;
    --ink: #1e0f4a; --ink-muted: #5a5480; --ink-subtle: #6f6b8e;
    --primary: #4ba9ff; --on-primary: #1e0f4a; --primary-soft: #e0f0ff; --primary-text: #0b5cb8;
    --grape: #6b3fd6; --on-grape: #ffffff; --grape-soft: #eee8ff;
    --sun: #ffc928; --on-sun: #1e0f4a; --sun-soft: #fff4cc; --sun-text: #8a5a00;
    --success: #3dbe4a; --on-success: #1e0f4a; --success-soft: #e3f8e5; --success-text: #1b7a2b;
    --danger: #d93a40; --on-danger: #ffffff; --danger-soft: #ffe8e8; --danger-text: #c42b31;
    color-scheme: light;
  }
}

/* ===================================================================
   11. SAHIFA KOMPONENTLARI → DS GURUHLARI
   -------------------------------------------------------------------
   Har bir sahifaning o'z klasslari (masalan .btn-hero-primary, .pr-card)
   shu yerda DS komponent guruhiga biriktiriladi. `:root:root body`
   prefiksi sahifa ichidagi `html.theme-light .x` kabi qoidalardan
   kuchliroq bo'lishi uchun (aniqlik 0,3,1+), shu fayl oxirgi yuklanadi.
   Yangi sahifa qo'shilsa — klassini mos guruhga yozing.
   =================================================================== */

/* ---------- 11.1 To'ldirilgan stiker tugmalar ---------- */
:root:root body :is(
  .btn-hero-primary, .btn-cyber-primary, .term-run-btn, .term-submit-btn,
  .btn-goto-quiz-mobile, .featured-dars-btn, .pbtn.main, .pr-cta.is-blue,
  .pay-submit, .sp-btn-primary, .hero-btn-primary, .ref-btn-telegram,
  .btn-main, .btn-tg, .ai-route-btn, .auth-submit, .btn-unified-next,
  .rep-btn-primary, .btn-plan-pro, .lst-play, .sp-mic, .audio-play-round, .lc-send,
  .click-flow-btn[aria-pressed="true"], .cd-exam-submit, .btn-start-exam
) {
  --ds-bg: var(--primary); --ds-hover: var(--primary-hover); --ds-press: var(--primary-press); --ds-fg: var(--on-primary);
}
:root:root body :is(
  .btn-next-lesson, .live-q-check-btn, .btn-check-3d, .btn-3d-emerald,
  .pr-cta.is-green, .btn-plan-max-green
) {
  --ds-bg: var(--success); --ds-hover: var(--success-hover); --ds-press: var(--success); --ds-fg: var(--on-success);
}
:root:root body :is(
  .btn-plan-max, .coach-hero-btn, .history-send-btn
) {
  --ds-bg: var(--sun); --ds-hover: var(--sun-hover); --ds-press: var(--sun); --ds-fg: var(--on-sun);
}
:root:root body :is(.coach-hero-btn.active) {
  --ds-bg: var(--danger); --ds-hover: var(--danger-hover); --ds-press: var(--danger-hover); --ds-fg: var(--on-danger);
}
:root:root body :is(
  .btn-hero-primary, .btn-cyber-primary, .term-run-btn, .term-submit-btn,
  .btn-goto-quiz-mobile, .featured-dars-btn, .pbtn.main, .pr-cta.is-blue,
  .pay-submit, .sp-btn-primary, .hero-btn-primary, .ref-btn-telegram,
  .btn-main, .btn-tg, .ai-route-btn, .auth-submit, .btn-unified-next,
  .rep-btn-primary, .btn-plan-pro, .lc-send, .click-flow-btn[aria-pressed="true"],
  .btn-next-lesson, .live-q-check-btn, .btn-check-3d, .btn-3d-emerald, .pr-cta.is-green,
  .btn-plan-max, .coach-hero-btn, .history-send-btn
) {
  background: var(--ds-bg) !important;
  color: var(--ds-fg) !important;
  border: var(--stroke-line) solid var(--edge) !important;
  box-shadow: var(--sticker-md) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease, background-color var(--dur-lift) ease !important;
}
:root:root body :is(
  .btn-hero-primary, .btn-cyber-primary, .term-run-btn, .term-submit-btn,
  .btn-goto-quiz-mobile, .featured-dars-btn, .pbtn.main, .pr-cta.is-blue,
  .pay-submit, .sp-btn-primary, .hero-btn-primary, .ref-btn-telegram,
  .btn-main, .btn-tg, .ai-route-btn, .auth-submit, .btn-unified-next,
  .rep-btn-primary, .btn-plan-pro, .lc-send, .click-flow-btn[aria-pressed="true"],
  .btn-next-lesson, .live-q-check-btn, .btn-check-3d, .btn-3d-emerald, .pr-cta.is-green,
  .btn-plan-max, .coach-hero-btn, .history-send-btn
):not(:disabled):not(.is-current):hover {
  background: var(--ds-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--sticker-lg) !important;
  opacity: 1 !important;
  filter: none !important;
}
:root:root body :is(
  .btn-hero-primary, .btn-cyber-primary, .term-run-btn, .term-submit-btn,
  .btn-goto-quiz-mobile, .featured-dars-btn, .pbtn.main, .pr-cta.is-blue,
  .pay-submit, .sp-btn-primary, .hero-btn-primary, .ref-btn-telegram,
  .btn-main, .btn-tg, .ai-route-btn, .auth-submit, .btn-unified-next,
  .rep-btn-primary, .btn-plan-pro, .lc-send, .click-flow-btn[aria-pressed="true"],
  .btn-next-lesson, .live-q-check-btn, .btn-check-3d, .btn-3d-emerald, .pr-cta.is-green,
  .btn-plan-max, .coach-hero-btn, .history-send-btn
):not(:disabled):active {
  background: var(--ds-press) !important;
  transform: translateY(4px) !important;
  box-shadow: none !important;
  transition-duration: var(--dur-press) !important;
}

/* ---------- 11.2 Oq (secondary) stiker tugmalar ---------- */
:root:root body :is(
  .btn-hero-secondary, .btn-plan-free, .btn-plan-start, .btn-continue-lesson,
  .btn-goto-theory-mobile, .sp-btn-secondary, .hero-btn-outline, .auth-secondary-btn,
  .btn-unified-back, .rep-btn-ghost, .btn-cyber-terminal, .pr-cta.is-ghost,
  .pr-cta.is-outline, .btn-export, .top-link-btn, .btn-back-hub, .lesson-nav-btn,
  .btn-exit-link, .icon-circle-btn, .ai-header-btn, .coach-icon-btn, .history-clear-btn,
  .pod-more, .rd-tool, .sp-icon-btn, .btn-tiny, .ico-btn
) {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: var(--stroke-line) solid var(--outline) !important;
  box-shadow: var(--sticker-sm) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease, background-color var(--dur-lift) ease !important;
}
:root:root body :is(
  .btn-hero-secondary, .btn-plan-free, .btn-plan-start, .btn-continue-lesson,
  .btn-goto-theory-mobile, .sp-btn-secondary, .hero-btn-outline, .auth-secondary-btn,
  .btn-unified-back, .rep-btn-ghost, .btn-cyber-terminal, .pr-cta.is-ghost,
  .pr-cta.is-outline, .btn-export, .top-link-btn, .btn-back-hub, .lesson-nav-btn,
  .btn-exit-link, .icon-circle-btn, .ai-header-btn, .coach-icon-btn, .history-clear-btn,
  .pod-more, .rd-tool, .sp-icon-btn, .btn-tiny, .ico-btn
):not(:disabled):not(.disabled):hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--sticker-md) !important;
  background: var(--surface) !important;
  border-color: var(--outline) !important;
}
:root:root body :is(
  .btn-hero-secondary, .btn-plan-free, .btn-plan-start, .btn-continue-lesson,
  .btn-goto-theory-mobile, .sp-btn-secondary, .hero-btn-outline, .auth-secondary-btn,
  .btn-unified-back, .rep-btn-ghost, .btn-cyber-terminal, .pr-cta.is-ghost,
  .pr-cta.is-outline, .btn-export, .top-link-btn, .btn-back-hub, .lesson-nav-btn,
  .btn-exit-link, .icon-circle-btn, .ai-header-btn, .coach-icon-btn, .history-clear-btn,
  .pod-more, .rd-tool, .sp-icon-btn, .btn-tiny, .ico-btn
):not(:disabled):active {
  background: var(--surface-sunken) !important;
  transform: translateY(2px) !important;
  box-shadow: none !important;
  transition-duration: var(--dur-press) !important;
}

/* O'chirilgan to'ldirilgan tugmalar */
:root:root body :is(
  .auth-submit, .btn-unified-next, .pay-submit, .live-q-check-btn, .btn-check-3d,
  .pr-cta, .sp-btn, .term-submit-btn, .term-run-btn
):disabled {
  background: var(--surface-sunken) !important;
  color: var(--ink-subtle) !important;
  border: var(--stroke-line) dashed var(--line-strong) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

/* ---------- 11.3 Stiker kartalar (asosiy konteynerlar) ---------- */
:root:root body :is(
  .shot, .onboarding-card, .dash-card, .greeting-card, .pr-card, .pr-panel,
  .setup-panel, .rep-card, .wr-panel, .lst-part-card, .sp-panel, .cyber-status-card,
  .results-card, .modal-card, .modal-box, .sp-modal-card, .lst-modal-card, .login-card,
  .section-card, .ref-card, .pbar, .sum-card, .info-card, .step-card, .dl-card,
  .privacy-box, .ep-card, .word-card-pro, .spell-card, .side-card, .question-card,
  .q-active-card, .pane-card, .cf-qcard, .sat-qcard, .modal-quiz-card, .lab-panel,
  .mock-hero-card, .dash-modal-card, .ss-card, .kid, .auth, .profile-hero, .form-card, .pathway-hero-card, .pathway-status-widget, .calendar-popover-panel, .ai-assistant-card, .ai-chat-card, .ai-card, .focus-bar
) {
  background-color: var(--surface) !important;
  border: var(--stroke-line) solid var(--outline) !important;
  box-shadow: var(--sticker-lg) !important;
  backdrop-filter: none !important;
}
/* Ota-ona kabineti: Focus holati — to'liq rangli kontur + yumshoq fon */
:root:root body .focus-bar.is-ok     { border-color: var(--success) !important; background-color: var(--success-soft) !important; }
:root:root body .focus-bar.is-warn   { border-color: var(--edge) !important;    background-color: var(--sun-soft) !important; }
:root:root body .focus-bar.is-danger { border-color: var(--danger) !important;  background-color: var(--danger-soft) !important; }
/* Stiker kartalar hoverda sakramaydi (interaktiv emas) */
:root:root body :is(.shot, .dash-card, .greeting-card, .pr-panel, .rep-card, .wr-panel, .sp-panel, .pane-card):hover {
  transform: none !important;
  box-shadow: var(--sticker-lg) !important;
}

/* ---------- 11.4 Interaktiv kartalar ---------- */
:root:root body :is(
  .mod-card, .plan-t, .lesson-item-card, .omni-academy-card, .cyber-lesson-card,
  .pod-card, .mock-mode-card, .cf-tile, .sat-domain, .plan-card, .module-compact-card,
  .quick-starter-btn, .match-card-tile, .chapter-world-card, .feat-card, .master-track-card,
  .category-card, .quiz-category-card, .stat-glow-card, .fp-plan
) {
  background-color: var(--surface) !important;
  border: var(--stroke-line) solid var(--outline) !important;
  box-shadow: var(--sticker-md) !important;
  backdrop-filter: none !important;
  transition: transform .14s var(--ease-spring), box-shadow .14s ease, background-color .12s ease !important;
}
:root:root body :is(
  .mod-card, .plan-t, .lesson-item-card, .omni-academy-card, .cyber-lesson-card,
  .pod-card, .mock-mode-card, .cf-tile, .sat-domain, .plan-card, .module-compact-card,
  .quick-starter-btn, .match-card-tile, .chapter-world-card, .feat-card, .master-track-card,
  .category-card, .quiz-category-card, .stat-glow-card, .fp-plan
):hover {
  transform: translateY(-3px) !important;
  border-color: var(--outline) !important;
  box-shadow: 0 7px 0 0 var(--edge) !important;
}
:root:root body :is(
  .mod-card, .plan-t, .lesson-item-card, .omni-academy-card, .cyber-lesson-card,
  .pod-card, .mock-mode-card, .cf-tile, .sat-domain, .plan-card, .module-compact-card,
  .quick-starter-btn, .match-card-tile, .chapter-world-card, .feat-card, .master-track-card,
  .category-card, .quiz-category-card, .stat-glow-card, .fp-plan
):active {
  transform: translateY(3px) !important;
  box-shadow: var(--sticker-sm) !important;
  transition-duration: var(--dur-press) !important;
}
/* Tanlangan interaktiv karta */
:root:root body :is(.plan-card, .goal-card, .pick-btn, .chip-item, .fp-plan):is(.selected, .active, [aria-pressed="true"], [aria-checked="true"]) {
  background-color: var(--grape-soft) !important;
  border-color: var(--grape) !important;
  box-shadow: 0 3px 0 0 var(--grape) !important;
  transform: none !important;
}

/* ---------- 11.5 Javob plitkalari ---------- */
:root:root body :is(
  .q-opt, .lst-opt, .cf-choice, .sat-choice, .quiz-choice-btn, .quiz-opt-btn,
  .live-opt-btn, .rd-opt, .option-card, .lesson-opt, .pick-btn, .chip-item, .goal-card
) {
  border-width: var(--stroke-line) !important;
  border-radius: var(--radius-lg) !important;
  transition: transform var(--dur-lift) ease, box-shadow var(--dur-lift) ease, border-color var(--dur-lift) ease, background-color var(--dur-lift) ease !important;
}
:root:root body :is(
  .q-opt, .lst-opt, .cf-choice, .sat-choice, .quiz-choice-btn, .quiz-opt-btn,
  .live-opt-btn, .rd-opt, .option-card, .pick-btn, .chip-item, .goal-card
):not(.correct):not(.wrong):not(.is-correct):not(.is-wrong):not(.selected):not(:disabled):not([aria-pressed="true"]):hover {
  border-color: var(--outline) !important;
  transform: translateY(-2px);
  box-shadow: var(--sticker-sm) !important;
}

/* ---------- 11.6 Segment tablar (DS Tabs) ---------- */
:root:root body :is(
  .lb-period-btn, .status-tab-btn, .view-btn, .tab-btn, .wr-switch button, .wr-tab,
  .lst-tab, .mode-tab, .pod-level-btn, .sp-seg button, .cd-pane-tabs button,
  .roadmap-tab-btn, .dock-tab, .f-tab, .mob-tab, .cyber-mob-tab, .seg button, .cf-part-tab
) {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-md) !important;
}
:root:root body :is(
  .lb-period-btn.active, .status-tab-btn.active, .view-btn.active, .tab-btn.active,
  .wr-switch button.on, .wr-tab.active, .wr-tab.on, .lst-tab.active, .lst-tab.on, .mode-tab.active,
  .pod-level-btn.active, .sp-seg button[aria-pressed="true"], .cd-pane-tabs button.active,
  .roadmap-tab-btn.active, .dock-tab.active, .f-tab.active, .mob-tab.active, .cyber-mob-tab.active,
  .cf-part-tab.active, [role="tab"][aria-selected="true"]:is(.lst-tab, .wr-tab, .mode-tab, .tab-btn, .mob-tab)
) {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: var(--stroke-line) solid var(--outline) !important;
  box-shadow: var(--sticker-sm) !important;
}

/* ---------- 11.7 Statistik raqamlar — displey shrift ---------- */
:root:root body :is(
  .hero-stat .v, .band-total b, .plan-t-price, .stat-value, .stat-num, .metric-value,
  .summary-val, .pr-price, .lb-score, .dash-stat-value, .mock-stat-value, .xp-value, .fp-plan-price
) {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 11.8 Suzuvchi chat tugmasi ---------- */
.ssc-fab {
  border: var(--stroke-line) solid var(--edge) !important;
  box-shadow: var(--sticker-md) !important;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease !important;
}
.ssc-fab:hover { transform: translateY(-2px) !important; box-shadow: var(--sticker-lg) !important; }
.ssc-fab:active { transform: translateY(4px) !important; box-shadow: none !important; }
/* Telefonda pastga aylantirilganda tugma o'ngga chiqib turadi (chat-widget.js watchScroll) */
.ssc-fab.is-away { transform: translateX(calc(100% + 28px)) !important; pointer-events: none; }
.ssc-panel {
  border: var(--stroke-line) solid var(--outline) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--sticker-lg), var(--float) !important;
}
/* Avatar — ustoz stikeri (SafeStudy.art('ustoz')), o'z konturi bor */
.ssc-ava { background: none !important; border: 0; }
.ssc-msg.user { background: var(--grape) !important; color: var(--on-grape) !important; }
.ssc-send { background: var(--primary) !important; color: var(--on-primary) !important; border: var(--stroke-line) solid var(--edge) !important; box-shadow: var(--sticker-sm); }
.ssc-head-name { font-family: var(--font-display); font-size: 16px; }
@media (max-width: 560px) {
  .ssc-panel { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
}

/* ---------- 11.10 IELTS Mock tahlili (js/mock-review.js) ----------
   Natijadan keyingi tahlil: bo'lim tablari, savol kartochkalari, writing
   mezonlari, keyingi qadam rejasi. Faqat DS tokenlari. */
.mr { margin: var(--space-6) 0; text-align: left; }
.mr-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.mr-sub { color: var(--ink-muted); font-size: 14px; margin: 0 0 var(--space-4); }
.mr-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.mr-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: var(--surface); color: var(--ink);
  border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-sm);
  cursor: pointer; transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.mr-tab:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.mr-tab:active { transform: translateY(2px); box-shadow: none; }
.mr-tab[aria-selected="true"] { background: var(--grape-soft); border-color: var(--grape); box-shadow: 0 3px 0 0 var(--grape); }
.mr-tab small { font-family: var(--font-sans); font-weight: 800; font-size: 12px; color: var(--ink-muted); }
.mr-panel {
  background: var(--surface); border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl); box-shadow: var(--sticker-lg); padding: var(--space-5);
}
.mr-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.mr-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-pill);
  border: var(--stroke-line) solid var(--outline); background: var(--surface-sunken);
  font-size: 12.5px; font-weight: 800; color: var(--ink);
}
.mr-chip.is-weak { background: var(--danger-soft); border-color: var(--danger); color: var(--danger-text); }
.mr-chip.is-strong { background: var(--success-soft); border-color: var(--success); color: var(--success-text); }
.mr-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.mr-toggle input { width: 18px; height: 18px; accent-color: var(--grape); }
.mr-list { display: grid; gap: 12px; }
.mr-q {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--radius-lg);
  border: var(--stroke-line) solid var(--outline); background: var(--surface);
}
.mr-q.is-wrong { background: var(--danger-soft); border-color: var(--danger); }
.mr-q.is-right { background: var(--surface); }
.mr-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  border: var(--stroke-line) solid var(--edge);
  background: var(--success); color: var(--on-success);
}
.mr-q.is-wrong .mr-num { background: var(--danger); color: var(--on-danger); }
.mr-prompt { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.5; margin: 0 0 6px; }
.mr-ans { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.mr-ans b { font-family: var(--font-display); }
.mr-ans .is-bad { color: var(--danger-text); }
.mr-ans .is-good { color: var(--success-text); }
.mr-why { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 6px 0 0; }
.mr-evidence {
  margin: 8px 0 0; padding: 8px 12px; border-radius: var(--radius-md);
  background: var(--sun-soft); border: var(--stroke-line) solid var(--outline);
  font-size: 13.5px; line-height: 1.55; color: var(--ink); font-style: italic;
}
.mr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mr-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-sm);
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.mr-btn:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.mr-btn:active { transform: translateY(2px); box-shadow: none; }
.mr-btn.is-playing { background: var(--primary); color: var(--on-primary); border-color: var(--edge); }
.mr-empty { text-align: center; color: var(--ink-muted); padding: var(--space-6) 0; font-size: 14px; }
/* Writing tahlili */
.mr-task { padding-bottom: var(--space-5); margin-bottom: var(--space-5); border-bottom: var(--stroke-line) solid var(--outline); }
.mr-task:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.mr-task-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mr-task-head h4 { font-family: var(--font-display); font-size: 18px; margin: 0; color: var(--ink); }
.mr-band {
  font-family: var(--font-display); font-weight: 800; font-size: 18px; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--grape); color: var(--on-grape); border: var(--stroke-line) solid var(--edge);
}
.mr-crit { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.mr-crit-box { padding: 12px; border-radius: var(--radius-lg); border: var(--stroke-line) solid var(--outline); background: var(--surface-sunken); }
.mr-crit-box h5 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.mr-crit-box h5 b { font-size: 17px; }
.mr-crit-box ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--ink); }
.mr-quote { display: block; margin: 0 0 6px; padding: 6px 10px; border-radius: var(--radius-md); border: var(--stroke-line) dashed var(--outline); background: var(--surface); font-size: 12.5px; font-style: italic; line-height: 1.5; color: var(--ink-muted); }
.mr-quote::before, .mr-quote::after { content: '"'; }
.mr-sec-h { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); margin: 14px 0 8px; }
.mr-fix { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--radius-md); border: var(--stroke-line) solid var(--outline); margin-bottom: 8px; font-size: 13.5px; line-height: 1.5; }
.mr-fix .was { color: var(--danger-text); text-decoration: line-through; }
.mr-fix .now { color: var(--success-text); font-weight: 700; }
.mr-fix .why { color: var(--ink-muted); }
.mr-plan { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.mr-next { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mr-next-card { padding: 14px; border-radius: var(--radius-lg); border: var(--stroke-line) solid var(--outline); background: var(--surface); box-shadow: var(--sticker-sm); }
.mr-next-card h5 { margin: 0 0 6px; font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.mr-next-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
/* Matndagi dalil oynasi */
.ds-dialog--doc { max-width: 760px; }
.mr-doc { white-space: pre-line; font-size: 15px; line-height: 1.8; color: var(--ink); max-height: 62vh; overflow-y: auto; padding-right: 6px; }
.mr-doc mark { background: var(--sun); color: var(--on-sun); border-radius: 4px; padding: 0 2px; box-shadow: 0 0 0 2px var(--edge); }
@media (max-width: 560px) {
  .mr-panel { padding: var(--space-4); }
  .mr-q { grid-template-columns: 32px 1fr; padding: 12px; }
  .mr-num { width: 30px; height: 30px; font-size: 13px; }
  .mr-toggle { margin-left: 0; }
}

/* ---------- 11.11 IELTS Speaking mock — AI Examiner (js/mock-speaking.js) ---------- */
.spk { max-width: 760px; margin: 0 auto; padding: var(--space-4); text-align: left; }
.spk-examiner {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: var(--space-4);
  background: var(--surface); border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl); box-shadow: var(--sticker-md);
}
.spk-avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--sun); color: var(--on-sun); border: var(--stroke-line) solid var(--edge);
}
.spk-avatar .material-symbols-rounded { font-size: 28px; }
.spk[data-state="speaking"] .spk-avatar { background: var(--primary); color: var(--on-primary); animation: spkPulse 1.2s ease-in-out infinite; }
.spk[data-state="listening"] .spk-avatar { background: var(--success); color: var(--on-success); }
@keyframes spkPulse { 50% { transform: scale(1.06); } }
.spk-head { display: grid; gap: 2px; flex: 1; min-width: 0; }
.spk-head b { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.spk-head span { font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }
.spk-textsw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.spk-textsw input { width: 18px; height: 18px; accent-color: var(--grape); }
.spk-question {
  font-family: var(--font-display); font-size: 20px; line-height: 1.45; font-weight: 700; color: var(--ink);
  margin: 0 0 var(--space-4); min-height: 58px;
}
.spk-question.is-hidden { color: transparent; text-shadow: 0 0 0 transparent; user-select: none; background: var(--surface-sunken); border-radius: var(--radius-md); }
.spk-card {
  padding: var(--space-4); margin-bottom: var(--space-4);
  background: var(--sun-soft); border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-lg); box-shadow: var(--sticker-sm);
}
.spk-card h4 { font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.spk-card p, .spk-card li { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 0; }
.spk-card ul { margin: 4px 0 8px; padding-left: 20px; }
.spk-notes {
  width: 100%; min-height: 84px; margin-top: 10px; padding: 10px; resize: vertical;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink); background: var(--surface);
  border: var(--stroke-line) solid var(--outline); border-radius: var(--radius-md);
}
.spk-prep { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.spk-prep[hidden] { display: none; }
.spk-prep b { font-family: var(--font-display); font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.spk-rec {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: var(--space-4);
  background: var(--success-soft); border: var(--stroke-line) solid var(--success); border-radius: var(--radius-lg);
}
.spk-rec[hidden], .spk-start[hidden], .spk-card[hidden] { display: none; }
.spk-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); border: 2px solid var(--edge); animation: spkPulse 1s ease-in-out infinite; }
#spk-time { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.spk-bars { display: inline-flex; align-items: center; gap: 3px; height: 26px; flex: 1; }
.spk-bars i { display: block; width: 5px; height: 4px; border-radius: 3px; background: var(--success-text); transition: height 90ms linear; }
.spk-start { display: grid; gap: var(--space-4); justify-items: start; }
.spk-quota { margin: 0; padding: 8px 12px; border-radius: var(--radius-md); border: var(--stroke-line) solid var(--outline); background: var(--success-soft); color: var(--success-text); font-weight: 700; font-size: 14px; }
.spk-quota.is-out { background: var(--sun-soft); color: var(--sun-text); }
.spk-quota a { color: inherit; text-decoration: underline; }
.spk-tips { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.spk-part { margin-bottom: 8px; border: var(--stroke-line) solid var(--outline); border-radius: var(--radius-md); padding: 10px 12px; background: var(--surface); }
.spk-part summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.spk-part summary small { font-family: var(--font-sans); color: var(--ink-muted); }
.spk-part[open] summary { margin-bottom: 8px; }
@media (max-width: 560px) {
  .spk { padding: var(--space-2) 0; }
  .spk-question { font-size: 18px; }
  .spk-textsw { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .spk-avatar, .spk-dot { animation: none !important; }
}

/* ---------- 11.12 IELTS Mock tahlil hisoboti va sertifikat (js/mock-report.js, sertifikat.html) ----------
   Natija sahifasi yuqorisi: xulosa, asosiy xatolar (sabab + misol + tuzatish),
   7 kunlik reja, PDF sertifikat. Faqat DS tokenlari. */
.rp { display: grid; gap: var(--space-5); margin: var(--space-6) 0; text-align: left; }
.rp[hidden] { display: none; }
.rp-block {
  background: var(--surface); border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl); box-shadow: var(--sticker-lg); padding: var(--space-5);
}
.rp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); }
.rp-h .material-symbols-rounded { color: var(--grape); font-size: 24px; }
.rp-lead { margin: 0 0 var(--space-4); color: var(--ink-muted); font-size: 14px; line-height: 1.55; }
.rp-summary { display: grid; grid-template-columns: 190px 1fr; gap: var(--space-5); align-items: start; }
.rp-overall {
  display: grid; justify-items: center; gap: 4px; padding: 18px 12px;
  background: var(--sun); color: var(--on-sun); border: var(--stroke-line) solid var(--edge);
  border-radius: var(--radius-lg); box-shadow: var(--sticker-md);
}
.rp-overall-label { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.rp-overall b { font-family: var(--font-display); font-size: 58px; line-height: 1; }
.rp-cefr { padding: 3px 12px; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); border: var(--stroke-line) solid var(--edge); font-weight: 800; font-size: 13px; }
.rp-lines { margin: 0 0 var(--space-4); padding-left: 20px; display: grid; gap: 6px; color: var(--ink); font-size: 14.5px; line-height: 1.55; }
.rp-bars { display: grid; gap: 8px; }
.rp-bar { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 10px; }
.rp-bar-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; color: var(--ink); }
.rp-bar-name .material-symbols-rounded { font-size: 18px; color: var(--grape); }
.rp-bar-track { height: 14px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: var(--stroke-line) solid var(--outline); overflow: hidden; }
.rp-bar-track i { display: block; height: 100%; background: var(--primary); border-right: var(--stroke-line) solid var(--outline); }
.rp-bar-val { font-family: var(--font-display); font-size: 17px; color: var(--ink); text-align: right; }

.rp-issues { display: grid; gap: 14px; }
.rp-issue {
  display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-lg);
  border: var(--stroke-line) solid var(--outline); background: var(--surface); box-shadow: var(--sticker-sm);
}
.rp-issue-head { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; }
.rp-issue-head h4 { margin: 2px 0 0; font-family: var(--font-display); font-size: 17px; line-height: 1.3; color: var(--ink); }
.rp-issue-n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--danger); color: var(--on-danger); border: var(--stroke-line) solid var(--edge);
  font-family: var(--font-display); font-weight: 800;
}
.rp-skill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; }
.rp-skill .material-symbols-rounded { font-size: 15px; }
.rp-lost { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--danger-soft); color: var(--danger-text); border: var(--stroke-line) solid var(--danger); font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.rp-why { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.rp-exs { display: grid; gap: 8px; }
.rp-ex {
  display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--surface-sunken); border: var(--stroke-line) solid var(--line);
}
.rp-ex-label { font-size: 12px; font-weight: 800; color: var(--ink-muted); }
.rp-ex-pair { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-display); font-size: 16px; }
.rp-ex-pair .material-symbols-rounded { font-size: 18px; color: var(--ink-muted); }
.rp-ex-pair .is-bad { color: var(--danger-text); text-decoration-thickness: 2px; }
.rp-ex-pair .is-good { color: var(--success-text); }
.rp-ex-note { font-size: 13px; line-height: 1.5; color: var(--ink); }
.rp-fix {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--success-soft); border: var(--stroke-line) solid var(--success); color: var(--ink); font-size: 14px; line-height: 1.55;
}
.rp-fix .material-symbols-rounded { flex: none; font-size: 19px; color: var(--success-text); }
.rp-issue .mr-btn { justify-self: start; }

.rp-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-plan li {
  display: grid; grid-template-columns: 74px 1fr 40px; gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--radius-lg); border: var(--stroke-line) solid var(--outline); background: var(--surface);
}
.rp-plan li b { font-family: var(--font-display); font-size: 15.5px; color: var(--ink); }
.rp-plan li p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }
.rp-day { padding: 6px 0; text-align: center; border-radius: var(--radius-md); background: var(--grape-soft); border: var(--stroke-line) solid var(--grape); font-weight: 800; font-size: 13px; color: var(--ink); }
.rp-go {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-sm);
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.rp-go:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.rp-go:active { transform: translateY(2px); box-shadow: none; }

.rp-cert { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-4); align-items: start; background: var(--sun-soft); }
.rp-cert-ic { width: 60px; height: 60px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--sun); color: var(--on-sun); border: var(--stroke-line) solid var(--edge); box-shadow: var(--sticker-sm); }
.rp-cert-ic .material-symbols-rounded { font-size: 32px; }
.rp-cert .rp-lead { margin-bottom: 6px; color: var(--ink); }
.rp-note { margin: 0 0 var(--space-4); font-size: 12.5px; color: var(--ink-muted); }
.rp-cert-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-cert-status { font-size: 13.5px; color: var(--ink); }
.rp-cert-status a { color: var(--primary-text); font-weight: 800; }

@media (max-width: 720px) {
  .rp-block { padding: 14px; }
  .rp-issue { padding: 12px; }
  .rp-summary { grid-template-columns: 1fr; }
  .rp-bar { grid-template-columns: 96px 1fr 40px; }
  .rp-issue-head { grid-template-columns: 32px 1fr; }
  .rp-lost { grid-column: 2; justify-self: start; }
  .rp-plan li { grid-template-columns: 1fr 38px; }
  .rp-day { grid-column: 1 / -1; justify-self: start; padding: 4px 12px; }
  .rp-cert { grid-template-columns: 1fr; }
}

/* Sertifikatni tekshirish sahifasi (sertifikat.html) */
.cv { width: 100%; max-width: 860px; margin: 0 auto; padding: var(--space-6) 16px; display: grid; gap: var(--space-5); }
.cv-status { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-lg); border: var(--stroke-line) solid var(--success); background: var(--success-soft); color: var(--ink); font-weight: 800; }
.cv-status.is-bad { border-color: var(--danger); background: var(--danger-soft); }
.cv-status .material-symbols-rounded { color: var(--success-text); }
.cv-status.is-bad .material-symbols-rounded { color: var(--danger-text); }
.cv-card { background: var(--surface); border: var(--stroke-line) solid var(--outline); border-radius: var(--radius-xl); box-shadow: var(--sticker-lg); padding: var(--space-5); display: grid; gap: var(--space-4); }
.cv-name { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.2; color: var(--ink); }
.cv-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--ink-muted); font-size: 14px; }
.cv-meta b { color: var(--ink); }
.cv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cv-mod { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: var(--radius-lg); border: var(--stroke-line) solid var(--outline); background: var(--surface-sunken); text-align: center; color: var(--ink); }
.cv-mod.is-overall { background: var(--sun); color: var(--on-sun); border-color: var(--edge); box-shadow: var(--sticker-sm); }
.cv-mod span { font-size: 12.5px; font-weight: 800; }
.cv-mod b { font-family: var(--font-display); font-size: 32px; line-height: 1.1; }
.cv-mod small { font-size: 12px; color: var(--ink-muted); }
.cv-mod.is-overall small { color: var(--on-sun); }
.cv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-form input { flex: 1 1 220px; }
.cv-note { margin: 0; font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 640px) { .cv-grid { grid-template-columns: repeat(2, 1fr); } .cv-mod.is-overall { grid-column: 1 / -1; } }

/* ---------- 11.13 CD-IELTS imtihon interfeysi (js/cd-exam.js, ielts-mock.html) ----------
   Haqiqiy kompyuter IELTS ekraniga yaqin: tinch, zich, chalg'itmaydigan.
   Sarlavha (nomzod · vaqt · sozlamalar) → ko'rsatma qatori → bo'lim → pastki
   navigatsiya (Part, savol raqamlari, Review). Stiker uslubi faqat
   boshqaruv elementlarida; savol matni oddiy, o'qishga qulay. */
body.exam-mode { overflow: hidden !important; }
body.exam-mode .ssc-root { display: none !important; }   /* chat tugmasi imtihonni yopmasin */

.exam-shell.cdx { position: fixed; inset: 0; z-index: 9999; display: none; flex-direction: column; background: var(--bg); color: var(--ink); }
.exam-shell.cdx.active { display: flex; }

/* Sarlavha */
.cdx-head {
  position: relative; flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 18px; background: var(--surface); border-bottom: var(--stroke-line) solid var(--line);
}
.cdx-head-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cdx-logo { height: 28px; width: auto; }
.cdx-cand { display: grid; min-width: 0; line-height: 1.2; }
.cdx-cand span { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdx-cand small { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.cdx-timer {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); border: var(--stroke-line) solid var(--outline);
}
.cdx-timer b { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.cdx-timer small { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }
.cdx-timer .material-symbols-rounded { font-size: 20px; color: var(--grape); }
.cdx-timer.is-warn { background: var(--sun-soft); border-color: var(--sun); }
.cdx-timer.is-danger { background: var(--danger-soft); border-color: var(--danger); }
.cdx-timer.is-danger b { color: var(--danger-text); }
.cdx-head-r { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
/* Audio holati ("Savollarni o'qing: 25 s") ustun kengligiga sig'masa qisqaradi —
   ilgari blok chapga, taymer ustiga chiqib, "qoldi" yozuvini yopardi */
.cdx-audio { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); min-width: 0; }
.cdx-audio[hidden] { display: none; }
.cdx-audio input { width: 96px; flex: none; accent-color: var(--grape); }
.cdx-audio > .material-symbols-rounded { flex: none; }
.cdx-audio-state { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.cdx-head-r > :not(.cdx-audio) { flex: none; }
@media (max-width: 1280px) { .exam-shell[data-section="listening"] .cdx-head .cd-autosave > span:last-child { display: none; } }
.cdx-icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--radius-md); cursor: pointer;
  background: var(--surface); color: var(--ink); border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-sm);
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.cdx-icon-btn:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.cdx-icon-btn:active { transform: translateY(2px); box-shadow: none; }
.cdx-icon-btn[hidden] { display: none; }
.cdx-head .cd-autosave { font-size: 12px; font-weight: 700; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 4px; }
.cdx-head .cd-autosave .material-symbols-rounded { font-size: 16px; }

/* Sozlamalar paneli */
.cdx-settings {
  position: absolute; right: 18px; top: calc(100% + 8px); z-index: 10003; width: 300px;
  padding: 14px; border-radius: var(--radius-lg); background: var(--surface);
  border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-md);
}
.cdx-settings[hidden] { display: none; }
.cdx-settings-h { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; }
.cdx-settings-h + .cdx-seg { margin-bottom: 12px; }
.cdx-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cdx-seg button {
  padding: 8px 6px; border-radius: var(--radius-md); cursor: pointer; font: 700 13px var(--font-sans);
  background: var(--surface-sunken); color: var(--ink); border: var(--stroke-line) solid var(--line);
}
.cdx-seg button[aria-pressed="true"] { background: var(--grape-soft); border-color: var(--grape); }

/* Ko'rsatma qatori */
.cdx-strip {
  flex: none; display: flex; align-items: baseline; gap: 12px; padding: 10px 22px;
  background: var(--surface-sunken); border-bottom: var(--stroke-line) solid var(--line);
}
.cdx-strip b { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.cdx-strip span { font-size: 14.5px; color: var(--ink); }

/* Bo'lim maydoni */
.cdx-body { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 0; display: block; }
.cdx-text-lg .cdx-body { zoom: 1.15; }
.cdx-text-xl .cdx-body { zoom: 1.3; }
.cdx-sheet { max-width: 920px; margin: 0 auto; padding: 22px 24px 48px; }
.cdx-empty { color: var(--ink-muted); padding: 24px; }

.cdx-instr { margin: 26px 0 12px; }
.cdx-instr:first-child { margin-top: 0; }
.cdx-instr h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.cdx-instr p { margin: 0 0 4px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.cdx-doc { margin: 0 0 18px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); border: var(--stroke-line) solid var(--line); }
.cdx-doc h4 { margin: 0 0 12px; text-align: center; font-family: var(--font-display); font-size: 16px; letter-spacing: .03em; color: var(--ink); }
.cdx-form { width: 100%; border-collapse: collapse; }
.cdx-form th, .cdx-form td { padding: 8px 6px; text-align: left; vertical-align: middle; border-bottom: var(--stroke-line) solid var(--line); font-size: 15px; color: var(--ink); }
.cdx-form tr:last-child th, .cdx-form tr:last-child td { border-bottom: 0; }
.cdx-form th { width: 38%; font-weight: 700; }
.cdx-form .is-example td { color: var(--ink-muted); }
.cdx-notes { margin-bottom: 12px; }
.cdx-notes h5 { margin: 10px 0 6px; font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.cdx-notes ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.cdx-notes li { font-size: 15px; line-height: 2; color: var(--ink); }

.cdx-gapwrap { display: inline; line-height: 2.1; border-radius: var(--radius-md); }
.cdx-gap {
  flex: none;
  display: inline-block; width: 168px; max-width: 100%; height: 36px; margin: 2px 4px; padding: 0 10px; vertical-align: middle;
  border-radius: var(--radius-md); background: var(--surface); color: var(--ink);
  border: var(--stroke-line) solid var(--outline); font: 700 15px var(--font-sans);
}
.cdx-gap::placeholder { color: var(--ink-muted); font-weight: 800; text-align: center; }
.cdx-gap:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.cdx-gap.filled { background: var(--primary-soft); }
.cdx-sel {
  flex: none; width: auto !important; min-height: 36px; height: 36px; min-width: 76px; margin: 0 4px; padding: 0 8px; vertical-align: middle; border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); border: var(--stroke-line) solid var(--outline); font: 800 14px var(--font-sans); cursor: pointer;
}
.cdx-sel.filled { background: var(--primary-soft); }
.cdx-sel:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.cdx-q { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius-lg); border: var(--stroke-line) solid transparent; }
.cdx-q.is-cur, .cdx-gapwrap.is-cur, tr.is-cur { background: var(--surface-sunken); }
.cdx-q.is-cur { border-color: var(--line); }
.cdx-q-h { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.cdx-q-line .cdx-q-h { margin: 0; align-items: center; }
.cdx-q-text { flex: 1 1 260px; }
.cdx-q-sub { margin: -4px 0 8px 38px; font-size: 14px; color: var(--ink); }
.cdx-qn {
  flex: none; min-width: 28px; height: 28px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); border: var(--stroke-line) solid var(--outline); font: 800 13.5px var(--font-display);
}
.cdx-q.is-cur .cdx-qn, tr.is-cur .cdx-qn { background: var(--primary); color: var(--on-primary); border-color: var(--edge); }
.cdx-opts { display: grid; gap: 6px; margin-left: 38px; }
.cdx-opt {
  display: grid; grid-template-columns: 20px 22px 1fr; gap: 8px; align-items: start; padding: 7px 10px; border-radius: var(--radius-md);
  font-size: 15px; line-height: 1.5; color: var(--ink); cursor: pointer; border: var(--stroke-line) solid transparent;
}
.cdx-opt:hover { background: var(--surface-sunken); }
.cdx-opt input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--grape); cursor: pointer; }
.cdx-opt b { font-family: var(--font-display); }
.cdx-opt:has(input:checked) { background: var(--grape-soft); border-color: var(--grape); }
.cdx-tf { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 38px; }
.cdx-tf .cdx-opt { grid-template-columns: 20px auto; border-color: var(--line); background: var(--surface); }
.cdx-optbox { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--surface-sunken); border: var(--stroke-line) dashed var(--line); }
.cdx-optbox h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.cdx-optbox p { display: grid; grid-template-columns: 36px 1fr; margin: 3px 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.cdx-optbox b { font-family: var(--font-display); }
.cdx-map { margin: 0 0 14px; overflow-x: auto; text-align: center; }
.cdx-map svg { max-width: 100%; height: auto; }
.cdx-grid-wrap { overflow-x: auto; }
.cdx-grid { border-collapse: collapse; min-width: 100%; }
.cdx-grid th, .cdx-grid td { padding: 8px; border-bottom: var(--stroke-line) solid var(--line); text-align: center; font-size: 14.5px; color: var(--ink); }
.cdx-grid thead th { font-family: var(--font-display); }
.cdx-grid tbody th { text-align: left; font-weight: 700; }
.cdx-grid tbody th .cdx-qn { margin-right: 8px; }
.cdx-grid input { width: 18px; height: 18px; accent-color: var(--grape); cursor: pointer; }

/* Listening boshlash oynasi */
.cdx-notice { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.cdx-notice-card {
  max-width: 560px; padding: 28px; border-radius: var(--radius-xl); text-align: center; display: grid; justify-items: center; gap: 10px;
  background: var(--surface); border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-lg);
}
.cdx-notice-card h2 { margin: 0; font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.cdx-notice-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.cdx-notice-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--radius-lg); background: var(--primary-soft); border: var(--stroke-line) solid var(--outline); }
.cdx-notice-ic .material-symbols-rounded { font-size: 34px; color: var(--ink); }

/* Reading / Writing: ikki ustun */
.cdx-split { height: 100%; display: grid; grid-template-columns: var(--cdx-left, 50%) 14px 1fr; min-height: 0; }
.cdx-pane { min-height: 0; height: 100%; overflow: auto; padding: 20px 24px 40px; }
.cdx-resizer { position: relative; cursor: col-resize; background: var(--surface-sunken); border-left: var(--stroke-line) solid var(--line); border-right: var(--stroke-line) solid var(--line); touch-action: none; }
.cdx-resizer::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 36px; transform: translate(-50%, -50%); border-radius: var(--radius-pill); background: var(--outline); }
.cdx-resizer:focus-visible { outline: none; background: var(--primary-soft); }
.cdx-pass-k { margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .06em; color: var(--grape); }
.cdx-pass-i { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.cdx-pass-t { margin: 6px 0 12px; font-family: var(--font-display); font-size: 22px; line-height: 1.3; color: var(--ink); }
.cdx-pass-body { white-space: pre-line; font-size: 16px; line-height: 1.75; color: var(--ink); }
.cdx-pass-body mark.cdx-mark, mark.cdx-mark { background: var(--sun-soft); color: var(--ink); border-bottom: var(--stroke-line) solid var(--sun); border-radius: 3px; cursor: pointer; }
.cdx-hl-pop {
  position: fixed; z-index: 10004; display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-md);
  background: var(--surface); border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-md);
}
.cdx-hl-pop[hidden] { display: none; }
.cdx-hl-pop button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm, 8px); background: transparent; color: var(--ink); font: 800 13px var(--font-sans); cursor: pointer; }
.cdx-hl-pop button:hover { background: var(--surface-sunken); }
.cdx-hl-pop .material-symbols-rounded { font-size: 18px; }
.cdx-task { font-size: 16px; line-height: 1.7; color: var(--ink); margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius-lg); border: var(--stroke-line) solid var(--line); background: var(--surface); }
.cdx-visual { margin: 0 0 14px; padding: 12px; border-radius: var(--radius-lg); border: var(--stroke-line) solid var(--line); background: var(--surface); overflow-x: auto; }
.cdx-visual-cap { margin: 0 0 8px; text-align: center; font-weight: 800; font-size: 14px; color: var(--ink); }
.cdx-write { display: flex; flex-direction: column; gap: 8px; }
.cdx-textarea {
  flex: 1; min-height: 320px; width: 100%; resize: none; padding: 16px; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); border: var(--stroke-line) solid var(--outline);
  font: 400 16px/1.75 var(--font-sans);
}
.cdx-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.cdx-words { margin: 0; font-weight: 800; font-size: 14px; color: var(--ink); }
.cdx-mtabs { display: none; }

/* Pastki panel */
.cdx-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 8px 14px; background: var(--surface); border-top: var(--stroke-line) solid var(--line);
}
.cdx-nav { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.cdx-part {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-md);
  background: var(--surface-sunken); color: var(--ink); border: var(--stroke-line) solid var(--line); font: inherit; cursor: pointer;
}
button.cdx-part:hover { border-color: var(--outline); }
.cdx-part b { font-family: var(--font-display); font-size: 14px; white-space: nowrap; }
.cdx-part small { font-size: 12.5px; font-weight: 800; color: var(--ink-muted); white-space: nowrap; }
.cdx-part.is-on { background: var(--surface); border-color: var(--outline); cursor: default; }
.cdx-nums { display: flex; gap: 4px; }
.cdx-num {
  position: relative; width: 30px; height: 30px; padding: 0; border-radius: var(--radius-sm, 8px); cursor: pointer;
  background: var(--surface); color: var(--ink); border: var(--stroke-line) solid var(--line); font: 800 13px var(--font-sans);
}
.cdx-num:hover { border-color: var(--outline); }
.cdx-num.is-done, .cdx-num.answered { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cdx-num.is-cur { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.cdx-num.is-flag::after { content: ''; position: absolute; top: -5px; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--sun); border: var(--stroke-line) solid var(--edge); }
.cdx-nav-note { font-size: 13.5px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.cdx-foot-r { flex: none; display: flex; align-items: center; gap: 8px; }
.cdx-count { font-size: 13px; font-weight: 800; color: var(--ink-muted); white-space: nowrap; }
.cdx-review {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--surface); color: var(--ink); border: var(--stroke-line) solid var(--outline); font: 800 13.5px var(--font-sans);
}
.cdx-review .material-symbols-rounded { font-size: 18px; }
.cdx-review[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); border-color: var(--edge); }
.cdx-review[hidden] { display: none; }

/* Kontrast rejimlari — rasmiy imtihondagidek absolyut oq/qora va sariq/qora */
.exam-shell.cdx-contrast-dark, .exam-shell.cdx-contrast-yellow {
  --bg: black; --surface: black; --surface-sunken: black; --line: white; --outline: white; --edge: white;
  --ink: white; --ink-muted: white; --primary-soft: black; --grape-soft: black; --sun-soft: black; --grape: white;
}
.exam-shell.cdx-contrast-yellow { --line: yellow; --outline: yellow; --edge: yellow; --ink: yellow; --ink-muted: yellow; --grape: yellow; }
.exam-shell.cdx-contrast-dark .cdx-seg button[aria-pressed="true"], .exam-shell.cdx-contrast-yellow .cdx-seg button[aria-pressed="true"] { background: var(--ink); color: black; }
.exam-shell.cdx-contrast-dark mark.cdx-mark, .exam-shell.cdx-contrast-yellow mark.cdx-mark { background: var(--ink); color: black; }

@media (max-width: 900px) {
  .cdx-head { grid-template-columns: 1fr auto; padding: 8px 12px; }
  .cdx-head-l .cdx-cand, .cdx-head .cd-autosave, .cdx-audio-state { display: none; }
  .cdx-timer { justify-self: end; padding: 4px 12px; }
  .cdx-timer b { font-size: 17px; }
  .cdx-timer small { display: none; }
  .cdx-head-r { grid-column: 1 / -1; justify-content: space-between; }
  .cdx-strip { padding: 8px 14px; flex-wrap: wrap; gap: 4px 10px; }
  .cdx-sheet { padding: 16px 14px 40px; }
  .cdx-mtabs { display: flex; gap: 6px; padding: 8px 12px; background: var(--surface); border-bottom: var(--stroke-line) solid var(--line); }
  .cdx-mtabs button { flex: 1; padding: 8px; border-radius: var(--radius-md); cursor: pointer; font: 800 14px var(--font-sans); background: var(--surface-sunken); color: var(--ink); border: var(--stroke-line) solid var(--line); }
  .cdx-mtabs button.is-on { background: var(--grape-soft); border-color: var(--grape); }
  .cdx-split { display: block; height: calc(100% - 54px); }
  .cdx-resizer { display: none; }
  .cdx-split[data-pane="text"] > .cdx-pane:last-child, .cdx-split[data-pane="q"] > .cdx-pane:first-child { display: none; }
  .cdx-pane { padding: 16px 14px 40px; }
  .cdx-opts, .cdx-tf { margin-left: 0; }
  .cdx-q-sub { margin-left: 0; }
  .cdx-form th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  .cdx-form td { display: block; }
  .cdx-foot { flex-wrap: wrap; padding: 8px 10px; }
  .cdx-nav { order: 2; width: 100%; }
  .cdx-foot-r { order: 1; width: 100%; justify-content: flex-end; }
  .cdx-count { margin-right: auto; }
  .cdx-settings { right: 10px; width: min(300px, calc(100vw - 20px)); }
}

/* ---------- 11.14 IELTS Mock bosh sahifasi (ielts-mock.html, js/mock-landing.js) ----------
   Bosh qism + progress, bo'lim tanlovi, Reading test kutubxonasi,
   format qo'llanmasi (akkordeon), natijalar tarixi. */
.ml { display: grid; gap: var(--space-8, 32px); }
.is-results .ml, .is-results #resume-banner { display: none !important; }
.ml-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-6); align-items: stretch;
  padding: clamp(20px, 4vw, 36px); border-radius: var(--radius-xl); background: var(--surface);
  border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-lg);
}
.ml-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--grape); }
.ml-kicker .material-symbols-rounded { font-size: 18px; }
.ml-title { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; color: var(--ink); }
.ml-lead { margin: 0 0 20px; max-width: 620px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.ml-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.ml-facts { list-style: none; display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 0; padding: 0; }
.ml-facts li { display: grid; line-height: 1.25; }
.ml-facts b { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.ml-facts span { font-size: 13px; color: var(--ink-muted); }

.ml-progress {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius-lg);
  background: var(--surface-sunken); border: var(--stroke-line) solid var(--outline);
}
.ml-pg-k { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.ml-pg-empty { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.ml-pg-band { display: flex; align-items: baseline; gap: 10px; }
.ml-pg-band b { font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--ink); }
.ml-pg-band span { font-size: 13px; color: var(--ink-muted); }
.ml-pg-mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ml-pg-mod {
  display: grid; justify-items: center; padding: 6px 4px; border-radius: var(--radius-md);
  background: var(--surface); border: var(--stroke-line) solid var(--line); font: 800 16px var(--font-display); color: var(--ink);
}
.ml-pg-mod small { font: 800 11px var(--font-sans); color: var(--ink-muted); }
.ml-pg-mod.is-off { color: var(--ink-muted); }
.ml-pg-meta { margin: 0; font-size: 13.5px; color: var(--ink); }
.ml-pg-link, .ml-pg-quota { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ml-pg-link { color: var(--primary-text); }
.ml-pg-quota { margin-top: auto; padding-top: 10px; border-top: var(--stroke-line) solid var(--line); }
.ml-pg-quota:empty { display: none; }
.ml-pg-link .material-symbols-rounded, .ml-pg-quota .material-symbols-rounded { font-size: 18px; color: var(--grape); }
.ml-pg-quota a { color: var(--primary-text); }

.ml-sec { display: grid; gap: 12px; }
.ml-h { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.ml-h .material-symbols-rounded { font-size: 26px; color: var(--grape); }
.ml-sub { margin: -4px 0 4px; font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); }
.ml-h3 { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.ml-h3 .material-symbols-rounded { font-size: 20px; color: var(--grape); }

.ml-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ml-mode {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-lg);
  background: var(--surface); border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-md);
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.ml-mode:hover { transform: translateY(-3px); box-shadow: var(--sticker-lg); }
.ml-mode h3 { margin: 0; font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.ml-mode p { margin: 0 0 6px; flex: 1; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.ml-mode .btn { align-self: flex-start; }
/* Bo'lim ikonkasi — stiker (data-ill), qutisiz */
.ml-mode-ic { display: block; width: 64px; height: 64px; }

.ml-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ml-test {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-sm);
}
.ml-test header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ml-test h3 { margin: 0; font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.ml-test ol { margin: 0; padding-left: 18px; flex: 1; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.ml-test .btn { align-self: flex-start; }
.ml-test-meta { margin: 0; font-size: 12.5px; color: var(--ink-muted); }
/* /ielts-listening: test tanlagich */
.lst-tests { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lst-test-link {
  padding: 7px 14px; border-radius: var(--radius-pill); text-decoration: none;
  font: 800 14px var(--font-display); color: var(--ink); background: var(--surface);
  border: var(--stroke-line) solid var(--outline); box-shadow: var(--sticker-sm);
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.lst-test-link:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.lst-test-link:active { transform: translateY(2px); box-shadow: none; }
.lst-test-link.is-on { background: var(--primary); color: var(--on-primary); border-color: var(--edge); }
.ml-test.is-done { background: var(--surface-sunken); }
.ml-chip { padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--primary-soft); color: var(--ink); border: var(--stroke-line) solid var(--outline); }
.ml-chip.is-done { background: var(--success-soft); border-color: var(--success); }

.ml-guide { display: grid; gap: 10px; }
.ml-acc { border-radius: var(--radius-lg); background: var(--surface); border: var(--stroke-line) solid var(--outline); overflow: hidden; }
.ml-acc summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 800; font-size: 16.5px; color: var(--ink);
}
.ml-acc summary::-webkit-details-marker { display: none; }
.ml-acc summary .material-symbols-rounded { font-size: 22px; color: var(--grape); }
.ml-acc-i { margin-left: auto; transition: transform var(--dur-lift) ease; }
.ml-acc[open] .ml-acc-i { transform: rotate(180deg); }
.ml-acc[open] summary { border-bottom: var(--stroke-line) solid var(--line); }
.ml-acc-body { padding: 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.ml-acc-body p { margin: 0 0 10px; }
.ml-acc-body h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 15.5px; color: var(--ink); }
.ml-acc-body ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.ml-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ml-note { margin: 6px 0 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-sunken); border: var(--stroke-line) solid var(--line); font-size: 13.5px; color: var(--ink); }
.ml-bands table { width: 100%; max-width: 300px; border-collapse: collapse; font-size: 13.5px; }
.ml-bands th, .ml-bands td { padding: 4px 8px; text-align: left; border-bottom: var(--stroke-line) solid var(--line); color: var(--ink); }
.ml-bands th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }

.ml-history { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ml-hist {
  display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; padding: 12px;
  border-radius: var(--radius-lg); background: var(--surface); border: var(--stroke-line) solid var(--outline);
}
.ml-hist-band { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--sun); color: var(--on-sun); border: var(--stroke-line) solid var(--edge); font: 800 22px var(--font-display); }
.ml-hist-body { display: grid; gap: 2px; min-width: 0; }
.ml-hist-body b { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.ml-hist-body small, .ml-hist-mods { font-size: 12.5px; color: var(--ink-muted); }
.ml-hist-cert { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunken); color: var(--ink); border: var(--stroke-line) solid var(--outline); }

@media (max-width: 960px) {
  .ml-hero { grid-template-columns: 1fr; }
  .ml-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ml-modes { grid-template-columns: 1fr; }
  .ml-cols { grid-template-columns: 1fr; gap: 6px; }
  .ml-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- 11.15 Lug'at — ixcham so'z qatori (vocabulary.html) ----------
   Ro'yxatda o'nlab qator yonma-yon turadi, shuning uchun katta karta
   soyasi (--sticker-lg) emas, kichik stiker soyasi. Hoverda ko'tariladi,
   bosilganda pastga tushadi. */
:root:root body .word-row {
  background-color: var(--surface) !important;
  border: var(--stroke-line) solid var(--outline) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--sticker-sm) !important;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) var(--ease-spring) !important;
}
:root:root body .word-row:not(.is-skeleton):hover { transform: translateY(-2px); box-shadow: var(--sticker-md) !important; }
:root:root body .word-row:not(.is-skeleton):has(.vrow-main:active) { transform: translateY(2px); box-shadow: none !important; transition-duration: 50ms !important; }
/* Holat: to'liq rangli kontur + yumshoq fon */
:root:root body .word-row.is-known { border-color: var(--success) !important; background-color: var(--success-soft) !important; }
:root:root body .word-row.is-learning { border-color: var(--edge) !important; background-color: var(--sun-soft) !important; }
@media (prefers-reduced-motion: reduce) {
  :root:root body .word-row { transition: none !important; }
  :root:root body .word-row:hover, :root:root body .word-row:has(.vrow-main:active) { transform: none; }
}

/* ---------- 11.9 Sarlavha klasslari — Baloo 2 ----------
   Sahifalardagi *-title / *-heading klasslari (subtitle emas) displey
   shriftda. :where() — aniqlik 0, sahifa o'lchamlari saqlanadi. */
:where([class*="title"], [class*="heading"], [class*="-name"]):not([class*="subtitle"]):not([class*="sub-title"]):not([class*="tagline"]):not(input):not(textarea):not(select):not(.material-symbols-rounded):not(.ss-icon) {
  font-family: var(--font-display);
}

/* ---------- 11.16 "Tez orada" qulfi (js/coming-soon.js) ----------
   Tayyor bo'lmagan bo'lim sahifasi o'rniga chiqadigan karta va
   menyudagi "Tez orada" nishoni. */
.ss-soon-pending body { visibility: hidden; }
[data-soon-hidden] { display: none !important; }
.ss-soon {
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--space-4) 120px;
}
.ss-soon__card {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg);
}
.ss-soon__icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-2);
}
.ss-soon__card h1 {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 34px;
  color: var(--ink);
}
.ss-soon__card p { margin: 0; max-width: 440px; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.ss-soon__card .ss-soon__hint { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.ss-soon__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.ss-soon__actions .btn { margin-bottom: 4px; }
.ss-soon__card .ss-badge .material-symbols-rounded { font-size: 16px; }
@media (max-width: 480px) {
  .ss-soon { padding-top: var(--space-6); }
  .ss-soon__card { padding: var(--space-6) var(--space-4); }
  .ss-soon__card h1 { font-size: 24px; line-height: 30px; }
  .ss-soon__actions { flex-direction: column; width: 100%; }
  .ss-soon__actions .btn { width: 100%; }
}
/* Menyudagi bo'lim nomi yonidagi nishon */
.ss-soon-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 6px;
  padding: 1px 8px 0;
  border-radius: var(--radius-pill);
  background: var(--sun-soft);
  color: var(--sun-text);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.drop-text-box .ss-soon-badge { color: var(--sun-text); font-size: 11px; }

/* ---------- 11.17 Mehmon uchun bo'lim tanishtiruvi (js/guest-intro.js) ----------
   Kirmagan odam IELTS, Darslar, Lug'at kabi sahifalarda kirish oynasi
   o'rniga ko'radigan karta: nima ekan, nima beradi va "Boshlash". */
[data-guest-hidden] { display: none !important; }
.ss-guest {
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--space-4) 120px;
}
.ss-guest__card {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--surface);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg);
}
.ss-guest__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.ss-guest__icon {
  width: 72px;
  height: 72px;
}
.ss-guest__card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 38px;
  color: var(--ink);
  text-wrap: balance;
}
.ss-guest__lead { margin: 0; max-width: 620px; font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.ss-guest__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ss-guest__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-lg);
}
.ss-guest__feature strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 16px; line-height: 22px; color: var(--ink); }
.ss-guest__feature span > span { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ss-guest__feature-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
}
.ss-guest__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ss-guest__actions .btn { margin-bottom: 4px; }
.ss-guest__note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 640px) {
  .ss-guest { padding-top: var(--space-6); }
  .ss-guest__card { padding: var(--space-6) var(--space-4); }
  .ss-guest__card h1 { font-size: 24px; line-height: 30px; }
  .ss-guest__features { grid-template-columns: 1fr; }
  .ss-guest__actions { flex-direction: column; }
  .ss-guest__actions .btn { width: 100%; }
}

/* ---------- 11.x Tariflar: promo-kod va ushlangan balans banneri (pricing.html) ---------- */
.promo-banner {
  display: flex; align-items: center; gap: 12px;
  width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 10px 16px;
  border-radius: var(--radius-lg);
  background: var(--success-soft); border: var(--stroke-line) solid var(--success);
  color: var(--ink); font-size: 15px; line-height: 1.4;
  box-shadow: var(--sticker-sm);
}
.promo-banner b { font-family: var(--font-display); font-weight: 800; }
.promo-banner-ic {
  display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px;
  border-radius: var(--radius-md);
  background: var(--success); color: var(--on-success);
  border: var(--stroke-line) solid var(--edge);
}
/* To'lanmagan buyurtmada ushlab turilgan balans — qaytarish tugmasi bilan */
.promo-banner.is-held { background: var(--sun-soft); border-color: var(--sun); flex-wrap: wrap; }
.promo-banner.is-held .promo-banner-ic { background: var(--sun); color: var(--on-sun); }
.promo-banner.is-held .held-text { flex: 1 1 260px; min-width: 0; }
.promo-banner.is-held .btn { flex: 0 0 auto; }
/* ---------- 11.x Creator shartlari ro'yxati (creator.html ariza, creator-panel.html rozilik oynasi) ---------- */
.ss-terms {
  margin-top: 22px; padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
}
.ss-terms__title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); }
.ss-terms__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.ss-terms__list b { color: var(--ink); }
.ss-terms--scroll { max-height: min(52vh, 420px); overflow-y: auto; }
#cp-terms .ss-terms { margin-top: 0; }
.ss-terms--details { width: 100%; margin-top: 4px; padding: 12px 14px; }
.ss-terms--details > summary { margin: 0; cursor: pointer; font-size: 15px; }
.ss-terms--details > .ss-terms__list { margin-top: 10px; }
:root:root body .ss-terms-card { max-width: 600px; }
.ss-terms-consent {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px;
  border-radius: var(--radius-lg); background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  font-size: 14px; line-height: 1.5; color: var(--ink); cursor: pointer;
}
.ss-terms-consent input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; }
.ss-terms-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ss-terms-actions .btn { flex: 1 1 200px; }

/* Market balans qatorida ushlangan summa (market.html) */
.mk-held { font-size: 12px; font-weight: 700; color: var(--sun-text); }

/* ===================================================================
   12. DS DIALOG — JS orqali ochiladigan oynalar uchun (ai-learning.js,
   common.js). Tuzilma: .ds-overlay > .ds-dialog > __icon, __title,
   __body, __actions.
   =================================================================== */
.ds-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: var(--overlay);
  overflow-y: auto;
}
.ds-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: var(--space-6);
  background: var(--surface);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg), var(--float);
  font-family: var(--font-sans);
  animation: dsPop .18s var(--ease-spring) both;
}
.ds-dialog--wide { max-width: 520px; }
@keyframes dsPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ds-dialog__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); padding-right: 36px; }
.ds-dialog__head .ds-dialog__icon { margin-bottom: 0; }
.ds-dialog__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  border: var(--stroke-line) solid var(--edge);
  box-shadow: var(--sticker-sm);
  background: var(--sun);
  color: var(--on-sun);
}
.ds-dialog__icon .material-symbols-rounded { font-size: 28px; }
.ds-dialog__icon--grape   { background: var(--grape);   color: var(--on-grape); }
.ds-dialog__icon--primary { background: var(--primary); color: var(--on-primary); }
.ds-dialog__icon--success { background: var(--success); color: var(--on-success); }
.ds-dialog__icon--danger  { background: var(--danger);  color: var(--on-danger); }
.ds-dialog__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 30px;
  color: var(--ink);
  text-wrap: balance;
}
.ds-dialog__head .ds-dialog__title { margin: 0; font-size: 22px; line-height: 28px; }
.ds-dialog__sub { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.ds-dialog__body { margin: 0 0 var(--space-5); font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.ds-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
.ds-dialog__actions .btn { margin-bottom: 4px; }
.ds-dialog__actions--stack { flex-direction: column; align-items: stretch; }
.ds-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.ds-dialog__close:hover { background: var(--hover); color: var(--ink); }

.ds-note {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin-bottom: var(--space-5);
  padding: 12px 14px;
  background: var(--primary-soft);
  border: var(--stroke-line) solid var(--primary);
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}
.ds-note .material-symbols-rounded { color: var(--primary-text); font-size: 20px; flex: none; }
.ds-alert {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: var(--stroke-line) solid var(--danger);
  background: var(--danger-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.ds-alert .material-symbols-rounded { color: var(--danger-text); flex: none; }
.ds-alert--success { border-color: var(--success); background: var(--success-soft); margin-bottom: var(--space-4); }
.ds-alert--success .material-symbols-rounded { color: var(--success-text); }
.ds-muted-center { text-align: center; padding: 24px 12px; color: var(--ink-muted); font-size: 14px; }

.ds-tone-success { color: var(--success-text) !important; }
.ds-tone-primary { color: var(--primary-text) !important; }
.ds-tone-danger  { color: var(--danger-text) !important; }
.ds-tone-sun     { color: var(--sun-text) !important; }
.ds-tone-grape   { color: var(--grape) !important; }

.ds-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-bottom: var(--space-5); text-align: center; }
.ds-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 8px;
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12px; font-weight: 700; color: var(--ink-muted);
}
.ds-stat b { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
@media (max-width: 480px) {
  .ds-dialog { padding: var(--space-5); }
  .ds-stat b { font-size: 14px; white-space: nowrap; }
  .ds-dialog__actions { flex-direction: column-reverse; align-items: stretch; }
  .ds-dialog__actions .btn { width: 100%; }
}
.ds-overlay { align-items: center; justify-content: center; }
.ds-dialog__actions--grid { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--space-4); }
.ds-dialog__actions--grid .btn { padding-left: 12px; padding-right: 12px; font-size: 15px; }
.ds-bal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
.ds-bal {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: var(--stroke-line) solid var(--edge);
  box-shadow: var(--sticker-sm);
}
.ds-bal b { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 28px; font-variant-numeric: tabular-nums; }
.ds-bal--success { background: var(--success); color: var(--on-success); }
.ds-bal--sun { background: var(--sun); color: var(--on-sun); }
.ds-bal .ss-overline { color: inherit; opacity: .8; }
.ds-panel {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-lg);
}
.ds-panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.ds-panel__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.ds-panel__hint { display: flex; align-items: center; gap: 6px; margin-top: var(--space-2); font-size: 13px; font-weight: 700; }
.ds-panel__hint .material-symbols-rounded { font-size: 18px; }
.ds-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-3); }
.ds-chip {
  height: 32px;
  padding: 1px 12px 0;
  border: var(--stroke-line) solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: 700 13px/1 var(--font-sans);
  cursor: pointer;
}
.ds-chip:hover { border-color: var(--grape); color: var(--grape); background: var(--grape-soft); }
.ds-input-row { display: flex; gap: var(--space-2); align-items: flex-start; }
.ds-input-row input { flex: 1; min-width: 0; padding: 0 14px; font-size: 16px; font-weight: 700; }
.ds-input-row .btn { margin-bottom: 4px; }
.ds-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: var(--space-2); font-size: 14px; font-weight: 600; color: var(--ink); }
.ds-price-grid > div { display: flex; align-items: center; gap: 6px; }
.ds-price-grid .material-symbols-rounded { font-size: 18px; color: var(--ink-muted); }
.ds-price-grid b { margin-left: auto; font-family: var(--font-display); color: var(--sun-text); }
.ds-link-list { display: grid; gap: var(--space-2); }
.ds-link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: var(--stroke-line) solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.ds-link-row > span { flex: 1; }
.ds-link-row:hover { border-color: var(--grape); background: var(--grape-soft); color: var(--grape); }
@media (max-width: 480px) {
  .ds-dialog__actions--grid, .ds-bal-grid { grid-template-columns: 1fr; }
}

/* Emoji o'rnidagi ikonka — matn bilan bir qatorda */
.ds-emo {
  font-size: 1.15em !important;
  vertical-align: -0.2em;
  line-height: 1;
}

/* O'zlashtirish o'lchagichi — AI o'quv tahlili kartasi (dashboard) */
.ds-topic-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.ds-topic__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2);
  margin-bottom: 6px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.ds-topic__name { min-width: 0; overflow-wrap: anywhere; }
.ds-topic__val { flex: none; font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.ds-meter {
  height: 12px;
  overflow: hidden;
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-pill);
}
.ds-meter__fill { height: 100%; border-radius: var(--radius-pill); background: var(--primary); }
.ds-meter--success .ds-meter__fill { background: var(--success); }
.ds-meter--sun .ds-meter__fill { background: var(--sun); }
.ds-meter--danger .ds-meter__fill { background: var(--danger); }
.ds-steps { margin: 0 0 var(--space-3); padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: var(--ink); }
.ds-actions-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ds-actions-row .btn { flex: 1 1 200px; }

/* Yashil eslatma — muvaffaqiyat xabari (dars natijasi) */
.ds-note--success { background: var(--success-soft); border-color: var(--success); }
.ds-note--success .material-symbols-rounded { color: var(--success-text); }

/* Xatolar ustida ishlash kartalari — dars natijasi oynasi (lesson.html) */
.ds-review { display: grid; gap: var(--space-3); margin: var(--space-2) 0 var(--space-5); }
.ds-review__item {
  padding: 14px 16px;
  background: var(--surface);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sticker-sm);
}
.ds-review__meta { margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.ds-review__q { margin-bottom: 10px; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 22px; color: var(--ink); overflow-wrap: anywhere; }
.ds-review__row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: baseline; margin-bottom: 4px; font-size: 14px; line-height: 20px; }
.ds-review__label { font-size: 13px; font-weight: 800; }
.ds-review__label--bad { color: var(--danger-text); }
.ds-review__label--good { color: var(--success-text); }
.ds-review__val { overflow-wrap: anywhere; }
.ds-review__val--bad { color: var(--ink-muted); text-decoration: line-through; }
.ds-review__val--good { color: var(--ink); font-weight: 700; }
.ds-review__why {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 10px; padding-top: 10px;
  border-top: var(--stroke-line) solid var(--line);
  font-size: 14px; line-height: 20px; color: var(--ink);
}
.ds-review__why .material-symbols-rounded { flex: none; font-size: 18px; color: var(--sun-text); }
@media (max-width: 340px) {
  .ds-review__row { grid-template-columns: 1fr; gap: 0; margin-bottom: 8px; }
}

/* ===================================================================
   13. ULASHISH OYNASI — natija kartochkasi (js/share-card.js).
   Tuzilma: .ds-overlay > .ds-dialog.ds-share > __preview, __actions, __ref
   =================================================================== */
.ds-share { padding-top: var(--space-5); }
.ds-share__preview {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  margin: 0 auto var(--space-5);
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sticker-md);
  overflow: hidden;
}
.ds-share__preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ds-share__loading { padding: var(--space-4); font-size: 14px; font-weight: 700; color: var(--ink-muted); text-align: center; }
.ds-share__actions { display: grid; gap: var(--space-3); }
.ds-share__actions .btn { gap: var(--space-2); }
.ds-share__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.ds-share__row .btn { padding-left: var(--space-2); padding-right: var(--space-2); font-size: 14px; }
.ds-share__ref {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin: var(--space-4) 0 0;
  padding: 12px 14px;
  background: var(--sun-soft);
  border: var(--stroke-line) solid var(--sun);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 19px;
  color: var(--ink);
}
.ds-share__ref:empty { display: none; }
.ds-share__ref .material-symbols-rounded { flex: none; font-size: 20px; color: var(--sun-text); }
.ds-share-trigger { gap: var(--space-2); }
.ds-share [hidden], .ds-share-trigger[hidden] { display: none !important; }
@media (max-height: 720px) { .ds-share__preview { max-width: 210px; } }
@media (max-width: 400px) {
  .ds-share__preview { max-width: 220px; margin-bottom: var(--space-4); }
  .ds-share__ref { margin-top: var(--space-3); }
  .ds-share__row { grid-template-columns: 1fr; }
}
/* Har qanday DS oyna ochiq bo'lsa, suzuvchi chat tugmasi (z-index juda
   yuqori) oyna mazmunini yopmasin */
body:has(.ds-overlay) .ssc-fab { opacity: 0; pointer-events: none; }

/* Kichik "Ulashish" tugmasi — AI Ustoz javobi pufakchasi ichida (voice-coach.js) */
.ds-share-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 8px 0 -2px auto;
  padding: 3px 10px 3px 7px;
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 18px;
  cursor: pointer;
  transition: transform 120ms var(--ease-spring), color 120ms, border-color 120ms, background 120ms;
}
.ds-share-mini:hover { color: var(--grape); border-color: var(--grape); background: var(--grape-soft); transform: translateY(-1px); }
.ds-share-mini:active { transform: translateY(1px); }
.ds-share-mini .material-symbols-rounded { font-size: 15px; }
/* AI Ustoz javobi ostidagi amallar qatori: Qayta, Sekinroq, Ulashish (voice-coach.js) */
.bubble-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.bubble-actions .ds-share-mini { margin: 0; }
/* Qatorda ulashish — faqat ikonka (nomi aria-label'da): uch tugma telefonda bir qatorga sig'sin */
.bubble-actions .ds-share-mini:not(.vc-replay) { font-size: 0; gap: 0; padding: 3px 7px; }
.bubble-actions .ds-share-mini:not(.vc-replay) .material-symbols-rounded { font-size: 16px; }
.vc-replay.is-playing,
.vc-replay.is-playing:hover { color: var(--on-primary); background: var(--primary); border-color: var(--edge); }

/* ===================================================================
   14. MAQOLA SAHIFALARI — SEO namunalar va so'z ro'yxatlari
   (scripts/seo/build_seo_pages.js yig'adi: /ielts-writing-namuna,
   /inglizcha-sozlar). Kartalar — .card, nishonlar — .ss-badge.
   =================================================================== */
.ds-article {
  width: 100%;               /* body flex-ustun: busiz telefonda kengayib ketadi */
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) 112px;
  color: var(--ink);
}
.ds-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px;
  margin-bottom: var(--space-4);
  font-size: 13px; font-weight: 700; line-height: 20px; color: var(--ink-muted);
}
.ds-crumbs a { color: var(--grape); text-decoration: none; }
.ds-crumbs a:hover { text-decoration: underline; }
.ds-crumbs .material-symbols-rounded { font-size: 16px; color: var(--ink-subtle); }
.ds-article__head h1 {
  margin: 6px 0 12px;
  font-family: var(--font-display); font-size: clamp(28px, 5.2vw, 40px); font-weight: 800; line-height: 1.15;
  color: var(--ink); text-wrap: balance;
}
.ds-article__lead { margin: 0; font-size: 17px; line-height: 28px; color: var(--ink-muted); }
.ds-article__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.ds-article__badges .ss-badge { text-decoration: none; gap: 4px; }
.ds-article__badges .material-symbols-rounded { font-size: 16px; }
.ds-article__sec { margin-top: var(--space-6); }
.ds-article__sec.card { padding: var(--space-6); }
.ds-article__sec h2 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 var(--space-3);
  font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 28px; color: var(--ink);
}
.ds-article__sec h2 > .material-symbols-rounded { font-size: 24px; color: var(--grape); }
.ds-article__note { margin: 0 0 var(--space-3); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); }
.ds-prompt {
  white-space: pre-line;
  padding: var(--space-4);
  background: var(--surface-sunken);
  border: var(--stroke-line) solid var(--line);
  border-radius: var(--radius-md);
  font-size: 16px; line-height: 26px;
}
.ds-essay p { margin: 0 0 14px; font-size: 16.5px; line-height: 28px; }
.ds-essay p:last-child { margin-bottom: 0; }
.ds-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; line-height: 25px; }
.ds-steps li::marker { font-family: var(--font-display); font-weight: 800; color: var(--grape); }
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds-chips li {
  padding: 5px 12px;
  background: var(--grape-soft);
  border: var(--stroke-line) solid var(--grape);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; line-height: 20px; color: var(--ink);
}
.ds-table { overflow-x: auto; border: var(--stroke-line) solid var(--line); border-radius: var(--radius-md); }
.ds-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ds-table th, .ds-table td { padding: 10px 12px; text-align: left; border-bottom: var(--stroke-line) solid var(--line); white-space: nowrap; }
.ds-table thead th { background: var(--surface-sunken); font-family: var(--font-display); font-weight: 800; }
.ds-table tbody tr:last-child th, .ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-table tbody th { font-weight: 800; }
.ds-map { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.ds-map > div { padding: var(--space-4); background: var(--surface-sunken); border: var(--stroke-line) solid var(--line); border-radius: var(--radius-md); }
.ds-map h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.ds-map ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.ds-crit { display: grid; gap: var(--space-3); margin: 0; }
.ds-crit > div { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: var(--stroke-line) solid var(--line); }
.ds-crit > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ds-crit dt { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 21px; }
.ds-crit dt small { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: var(--ink-muted); }
.ds-crit dd { margin: 0; font-size: 15px; line-height: 23px; }
.ds-cta {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--sun-soft);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-md);
}
.ds-cta h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 30px; }
.ds-cta p { margin: 0 0 var(--space-4); font-size: 16px; line-height: 25px; color: var(--ink); }
.ds-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.ds-cta__actions .btn { gap: 8px; text-decoration: none; }
.ds-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); }
.ds-related__card { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4) var(--space-5); color: var(--ink); text-decoration: none; }
.ds-related__card b { font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 23px; }
.ds-related__card small { font-size: 13px; line-height: 19px; color: var(--ink-muted); font-weight: 600; }
.ds-more { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-4); font-family: var(--font-display); font-weight: 800; color: var(--grape); text-decoration: none; }
.ds-more:hover { text-decoration: underline; }
.ds-faq { display: grid; gap: var(--space-2); }
.ds-faq details { border: var(--stroke-line) solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.ds-faq summary { padding: 12px 16px; cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 22px; }
.ds-faq details[open] summary { border-bottom: var(--stroke-line) solid var(--line); }
.ds-faq p { margin: 0; padding: 12px 16px; font-size: 15px; line-height: 24px; color: var(--ink); }
/* So'z ro'yxati */
.ds-words-tools { position: sticky; top: calc(var(--safe-area-top, 0px) + 8px); z-index: 5; margin-top: var(--space-6); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-3); }
/* Qidiruv maydoni: konteyner DS input ko'rinishida, ichidagi input shaffof */
.ds-search {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  background: var(--field);
  border: var(--stroke-line) solid var(--line-strong);
  border-radius: var(--radius-md);
  cursor: text;
  transition: border-color 120ms, box-shadow 120ms;
}
.ds-search:focus-within { border-color: var(--grape); box-shadow: 0 0 0 3px var(--grape-soft); }
.ds-search .material-symbols-rounded { flex: none; font-size: 22px; color: var(--ink-muted); }
.ds-search input,
.ds-search input:focus {
  flex: 1; min-width: 0; height: 100%;
  padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.ds-search input::placeholder { color: var(--ink-subtle); font-weight: 500; }
.ds-search input::-webkit-search-cancel-button { cursor: pointer; }
.ds-letters { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-letters::-webkit-scrollbar { display: none; }
.ds-letters a {
  flex: none; display: grid; place-items: center; min-width: 32px; height: 32px;
  border: var(--stroke-line) solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; color: var(--ink); text-decoration: none;
}
.ds-letters a:hover { border-color: var(--grape); color: var(--grape); background: var(--grape-soft); }
.ds-letter { margin-top: var(--space-6); scroll-margin-top: 140px; } /* yopishqoq qidiruv paneli (~120px) ostida qolmasin */
.ds-letter h2 { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--grape); }
.ds-words { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); }
.ds-word { padding: 12px 14px; background: var(--surface); border: var(--stroke-line) solid var(--line); border-radius: var(--radius-lg); }
.ds-word__head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.ds-word__head b { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 24px; }
.ds-word__tr { font-weight: 800; color: var(--success-text); }
.ds-word__say {
  margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px;
  border: var(--stroke-line) solid var(--line); border-radius: var(--radius-pill); background: var(--surface);
  color: var(--grape); cursor: pointer;
}
.ds-word__say:hover { border-color: var(--grape); background: var(--grape-soft); }
.ds-word__say .material-symbols-rounded { font-size: 18px; }
.ds-word__def { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ds-word__ex { margin: 4px 0 0; font-size: 14px; line-height: 20px; font-style: italic; color: var(--ink); }
.ds-word[hidden], .ds-letter[hidden], .ds-word__say[hidden] { display: none; }
@media (max-width: 640px) {
  .ds-article { padding-top: var(--space-4); }
  .ds-article__sec.card, .ds-cta { padding: var(--space-5) var(--space-4); }
  .ds-crit > div { grid-template-columns: 1fr; gap: 4px; }
  .ds-map { grid-template-columns: 1fr; }
  .ds-cta__actions .btn { flex: 1 1 100%; }
  .ds-words-tools { top: calc(var(--safe-area-top, 0px) + 6px); }
  /* Telefonda harflar bir qatorda suriladi — yopishqoq panel ekranni egallamasin */
  .ds-letters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
}
/* Daraja testi (/daraja-testi, js/placement.js): savol kartasi va natija */
.ds-quiz-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.ds-quiz-card { margin-top: var(--space-5); padding: var(--space-6); }
.ds-quiz-kind { margin: 0 0 var(--space-3); font-size: 13px; font-weight: 800; letter-spacing: .03em; color: var(--ink-muted); }
.ds-quiz-q {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display); font-size: clamp(22px, 4.4vw, 30px); font-weight: 800; line-height: 1.3;
  color: var(--ink); text-wrap: balance;
}
.ds-quiz-blank { display: inline-block; min-width: 88px; margin: 0 4px; border-bottom: 4px solid var(--grape); }
.ds-quiz-word { display: inline-block; padding: 4px 16px; background: var(--grape-soft); border: var(--stroke-line) solid var(--grape); border-radius: var(--radius-md); }
.ds-quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.ds-quiz-opts .option-btn {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 14px;
  justify-content: flex-start; width: 100%;
  text-align: left; font-size: 16px; line-height: 22px; cursor: pointer;
}
/* Test paytida suzuvchi chat tugmasi javob tugmalarini to'smasin */
body:has(:not([hidden]) > .ds-quiz-card) .ssc-fab { display: none; }
.ds-quiz-letter {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border: var(--stroke-line) solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--ink-muted);
}
.ds-quiz-opts .option-btn.selected .ds-quiz-letter { border-color: var(--grape); color: var(--grape); }
.ds-quiz-hint { margin: var(--space-4) 0 0; font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.ds-quiz-actions { display: flex; justify-content: flex-end; margin-top: var(--space-3); }
.ds-level {
  display: flex; align-items: center; gap: var(--space-6);
  padding: var(--space-6);
  background: var(--surface);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg);
}
.ds-level__badge {
  flex: none; display: grid; place-items: center; align-content: center;
  width: 150px; height: 150px;
  background: var(--sun); color: var(--on-sun);
  border: var(--stroke-line) solid var(--edge); border-radius: var(--radius-xl);
  box-shadow: var(--sticker-md);
}
.ds-level__badge small { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: .12em; }
.ds-level__badge b { font-family: var(--font-display); font-size: 72px; font-weight: 800; line-height: 1; }
.ds-level__body h1 { margin: 4px 0 8px; font-family: var(--font-display); font-size: clamp(26px, 4.6vw, 36px); font-weight: 800; line-height: 1.15; }
.ds-level__body p { margin: 0; font-size: 16px; line-height: 25px; color: var(--ink); }
@media (max-width: 640px) {
  .ds-quiz-card { padding: var(--space-5) var(--space-4); }
  .ds-quiz-opts { grid-template-columns: 1fr; }
  .ds-level { flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-5) var(--space-4); }
  .ds-level__badge { width: 112px; height: 112px; }
  .ds-level__badge b { font-size: 52px; }
}

/* ===================================================================
   13. YO'RIQNOMA — birinchi kirishda menyu bandlari bittadan yoritiladi
   (js/nav-tour.js). Tuzilma: .ds-tour-layer > .ds-tour-scrim,
   .ds-tour-spot (nishon atrofidagi fokus halqasi), .ds-tour (karta).
   =================================================================== */
.ds-tour-layer {
  position: fixed;
  inset: 0;
  z-index: 1000000;
}
/* Sahifa bosilmasin: yo'riqnoma paytida havolalar ishlamaydi */
.ds-tour-scrim { position: absolute; inset: 0; }
/* Nishonsiz qadam (salom, yakun) — markazda, butun ekran qoraytiriladi */
.ds-tour-layer.is-centered {
  display: grid;
  place-items: center;
  padding: var(--space-4);
}
.ds-tour-layer.is-centered .ds-tour-scrim { background: var(--overlay); }
.ds-tour-layer.is-centered .ds-tour { position: relative; }
/* Teshik: nishondan tashqari hamma joy qoraytiriladi, nishon ochiq qoladi */
.ds-tour-spot {
  position: fixed;
  display: none;
  border: 3px solid var(--focus);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px var(--overlay);
  pointer-events: none;
  transition: left .2s var(--ease-spring), top .2s var(--ease-spring),
              width .2s var(--ease-spring), height .2s var(--ease-spring);
}
.ds-tour {
  position: fixed;
  z-index: 1;
  width: min(360px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: var(--space-5);
  background: var(--surface);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg), var(--float);
  font-family: var(--font-sans);
  animation: dsPop .18s var(--ease-spring) both;
}
.ds-tour__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.ds-tour__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
}
.ds-tour__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.ds-tour__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: var(--stroke-line) solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.ds-tour__close:hover { background: var(--surface-sunken); color: var(--ink); }
.ds-tour__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 26px;
  color: var(--ink);
}
.ds-tour__text {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: var(--ink);
}
.ds-tour__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-4) 0;
}
.ds-tour__dots i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line);
}
.ds-tour__dots i.on { width: 20px; background: var(--grape); }
.ds-tour__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}
@media (prefers-reduced-motion: reduce) {
  .ds-tour, .ds-tour-spot { animation: none; transition: none; }
}

/* Navbar: HUD bandlari tugma (klaviaturadan ham ochiladi), mobil
   menyudagi "Yo'riqnoma" ham tugma — brauzer uslubi olib tashlanadi */
button.hud-item { color: inherit; line-height: inherit; }
button.mobile-nav-item {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

/* Suzuvchi chat tugmasi yo'riqnoma yoki yon menyu ustida turmasin —
   telefonda u yo'riqnomaning "Keyingisi" tugmasini to'sib qo'yardi */
body:has(.ds-tour-layer) .ssc-fab,
body:has(.mobile-drawer-panel.open) .ssc-fab { opacity: 0; pointer-events: none; }

/* Telefon va planshet (<=1280px): olov va XP yuqori panelda emas, yon
   menyudagi foydalanuvchi kartasida. Hamyon tugmasi — 16-bo'lim. */
@media (max-width: 1280px) {
  .main-navbar .nav-right .header-hud-strip { display: none !important; }
}
/* Tugma bandi havola bandlari bilan bir xil balandlikda (UA line-height: normal edi) */
button.mobile-nav-item { line-height: inherit; }
.mobile-theme-item { display: none !important; }
/* Eng tor telefonlar (360-400px): logo + hamyon + 3 tugma sig'maydi
   (320px da yuqori panel 372px bo'lib ekrandan chiqardi) — mavzu tugmasi
   yon menyuga o'tadi */
@media (max-width: 400px) {
  .main-navbar .theme-toggle-btn { display: none !important; }
  .mobile-theme-item { display: flex !important; }
}
/* Noutbuklar (1281-1500px, ayniqsa 1366): style.css dagi eski qoidalar
   HUD ni butunlay yashirardi — u paytda unda so'm balansi ham bor edi.
   Endi 3 ta element qoldi va o'lchov bo'yicha 1281px da ham menyu
   qirqilmasdan sig'adi, shuning uchun olov va XP qaytadi. */
@media (min-width: 1281px) and (max-width: 1500px) {
  .main-navbar .nav-right .header-hud-strip { display: flex !important; }
  .main-navbar .nav-right .header-hud-strip .hud-item.streak { display: flex !important; }
  .main-navbar .nav-right .header-hud-strip .hud-divider { display: block !important; }
}

/* ===================================================================
   15. XUSH KELIBSIZ TAKLIFI — yangi hisobga 72 soatlik chegirma
   (js/welcome-offer.js, 2026-10-16). Sariq "sovg'a" stiker: sun-soft fon,
   2px kontur, qattiq soya; taymer — JetBrains Mono (DS: faqat taymer).
   Tuzilma: .wo-card > .wo-ic, .wo-body (.wo-over, .wo-title, .wo-text),
   .wo-timer (.wo-clock > .wo-unit), .wo-actions, .wo-x.
   Narx yonidagi eski narx: .wo-was (tariflar, Market, onboarding).
   =================================================================== */
.wo-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "ic body" "timer timer" "actions actions";
  gap: var(--space-3) var(--space-4);
  align-items: center;
  padding: var(--space-4);
  background: var(--sun-soft);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-md);
}
.wo-ic {
  grid-area: ic;
  align-self: start;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sun);
  color: var(--on-sun);
  border: var(--stroke-line) solid var(--edge);
  box-shadow: var(--sticker-sm);
}
.wo-body { grid-area: body; min-width: 0; padding-right: 28px; }
.wo-over {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sun-text);
}
.wo-title {
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.wo-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.wo-timer { grid-area: timer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.wo-timer-label { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.wo-clock { display: inline-flex; align-items: flex-start; gap: 4px; }
.wo-clock > i { font-style: normal; font-family: var(--font-mono); font-weight: 700; font-size: 20px; line-height: 40px; color: var(--ink-muted); }
.wo-unit { display: grid; justify-items: center; gap: 2px; }
.wo-unit b {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 40px;
  padding: 0 6px;
  background: var(--surface);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-sm);
  box-shadow: var(--sticker-sm);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.wo-unit small { font-size: 11px; font-weight: 700; color: var(--ink-muted); }
.wo-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wo-actions .btn { flex: 1 1 130px; min-width: 0; padding-left: 10px; padding-right: 10px; }
@media (max-width: 520px) {
  .wo-card { padding: var(--space-3) var(--space-3) var(--space-4); gap: var(--space-3); }
  .wo-ic { width: 40px; height: 40px; }
  .wo-ic svg { width: 22px; height: 22px; }
  .wo-text { font-size: 14px; }
  .wo-unit b { min-width: 40px; height: 36px; font-size: 17px; }
  .wo-clock > i { line-height: 36px; font-size: 18px; }
}
.wo-x {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: var(--stroke-line) solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.wo-x:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.wo-x:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 900px) {
  .wo-card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic body timer" "ic actions timer"; padding: var(--space-5); }
  .wo-card:not(:has(.wo-actions)) { grid-template-areas: "ic body timer"; }
  .wo-timer { flex-direction: column; align-items: flex-end; justify-content: center; gap: var(--space-2); }
  .wo-actions .btn { flex: 0 0 auto; }
  .wo-card:has(.wo-x) .wo-timer { padding-right: 36px; }
  .wo-body { padding-right: 0; }
}
/* Eski narx (chizilgan) va chegirma belgisi narx yonida */
.wo-was {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-subtle);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wo-note { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--sun-text); }
.wo-note .wo-was { font-size: 14px; margin-right: 4px; }

/* ===================================================================
   16. HAMYON: PUL TUGMASI, HAMYON OYNASI, LIMIT OYNASIDAGI PAKETLAR
   (common.js). SafeCoin 2026-10-16 da olib tashlandi — yagona pul so'm
   balansi. Yuqori panelda bitta stiker tugma (hamyon + summa + "+"),
   bosilsa hamyon: balans, to'ldirish, Market paketlarim, tarix.
   Telefonda profil tugmasi yashirin: profil pastki menyuda.
   =================================================================== */
.hdr-money { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.money-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 12px 0 8px;
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sticker-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.money-chip:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.money-chip:active { transform: translateY(2px); box-shadow: none; transition-duration: var(--dur-press); }
.money-chip__ico { width: 20px; height: 20px; flex: none; display: block; }
.money-chip__val { padding-top: 2px; }
.money-chip__unit { padding-top: 2px; font-size: 12px; font-weight: 700; opacity: .75; }
.money-chip--bal .money-chip__val { color: var(--success-text); }
.money-chip--bal { margin-right: 6px; }
.money-chip__plus {
  position: absolute;
  top: -8px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: var(--stroke-line) solid var(--edge);
  border-radius: 50%;
  background: var(--success);
  color: var(--on-success);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
@media (pointer: coarse) {
  .money-chip { height: 44px; }
}

/* 2026-10-28: yuqori panelda hamyon o'rniga Tariflar va Market — bitta
   oq stiker tugma, ichida ikki havola va o'rtada ajratuvchi chiziq
   (HUD bandidagidek). Butun tugma hoverda ko'tariladi, bosilganda tushadi;
   faol sahifa — grape-soft fon. Telefonda (<=600px) faqat ikonkalar. */
.hdr-shop {
  display: flex;
  align-items: center;
  flex: none;
  height: 40px;
  padding: 0 3px;
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--sticker-sm);
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.hdr-shop:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.hdr-shop:has(.shop-chip:active) { transform: translateY(2px); box-shadow: none; transition-duration: var(--dur-press); }
.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 8px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-lift) ease;
}
.shop-chip:hover { color: var(--ink); background: var(--hover); }
.shop-chip.active { background: var(--grape-soft); color: var(--grape); }
.shop-chip__txt { padding-top: 2px; }
.hdr-shop__divider {
  flex: none;
  width: var(--stroke-line);
  height: 20px;
  margin: 0 3px;
  border-radius: var(--stroke-line);
  background: var(--line);
}
.shop-chip .nav-3d { transition: transform var(--dur-lift) var(--ease-spring); }
.shop-chip:hover .nav-3d { transform: rotate(-6deg) scale(1.08); }
@media (pointer: coarse) {
  .hdr-shop { height: 44px; }
  .shop-chip { height: 36px; }
}
@media (max-width: 600px) {
  .shop-chip { width: 38px; padding: 0; justify-content: center; }
  .shop-chip__txt {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .shop-chip .nav-3d { width: 24px; height: 24px; }
  .hdr-shop__divider { margin: 0 2px; }
}
@media (max-width: 360px) {
  .shop-chip { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr-shop, .shop-chip, .shop-chip .nav-3d { transition: none; }
}

/* Telefon: profil tugmasi pastki menyuda bor, yuqori panelda takrorlanmaydi */
@media (max-width: 768px) {
  .main-navbar .nav-right .user-profile-menu { display: none !important; }
  .main-navbar .nav-right { gap: var(--space-2) !important; }
}
/* Tor ekranda "so'm" tushadi — hamyon ikonkasi tugmani baribir tanitadi */
@media (max-width: 480px) {
  .money-chip__unit { display: none; }
}
@media (max-width: 360px) {
  .main-navbar .brand-logo { height: 28px !important; }
  .money-chip { gap: 4px; padding: 0 9px 0 6px; font-size: 14px; }
  .money-chip__ico { width: 18px; height: 18px; }
}

/* Yon menyu: hamyon tugmasi */
.drawer-money { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.drawer-money__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: var(--stroke-line) solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--sticker-sm);
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.drawer-money__btn:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.drawer-money__btn:active { transform: translateY(2px); box-shadow: none; transition-duration: var(--dur-press); }
.drawer-money__btn > img,
.drawer-money__btn > .ill { flex: none; width: 24px; height: 24px; }
.drawer-money__btn--bal { background: var(--success-soft); color: var(--ink); }
.drawer-money__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-money__txt small { font-size: 12px; font-weight: 700; opacity: .8; }
.drawer-money__txt b { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 22px; font-variant-numeric: tabular-nums; }
.drawer-money__go { font-size: 22px; opacity: .7; }
.mobile-nav-item--danger,
.mobile-nav-item--danger:hover { color: var(--danger-text); }

/* Hamyon oynasi (minimalist): bitta asosiy raqam, bitta asosiy tugma,
   qolgani tinch matn va ro'yxat — paketlarim va tarix. */
.ds-dialog__icon--sun { background: var(--sun); color: var(--on-sun); }
.wl-sheet { max-width: 440px; padding: var(--space-6); }
.wl-sheet .wl-ic { flex: none; }
.wl-head { margin-bottom: var(--space-5); padding-right: 40px; }
.wl-title { margin: 0 0 var(--space-1); font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--ink); }
.wl-sub { margin: 0; font-size: 15px; color: var(--ink-muted); }
.wl-sub b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-label { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.wl-note { margin: var(--space-2) 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* Balans raqami */
.wl-amount { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-5); }
.wl-amount b { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wl-amount > span { font-size: 14px; font-weight: 700; color: var(--ink-muted); }

/* Almashtirish */

/* Pastki tinch havolalar */
.wl-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-4); margin-top: var(--space-5); }
.wl-text-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 var(--space-2);
  background: none; border: 0; border-radius: var(--radius-md);
  color: var(--ink-muted);
  font: 700 15px/1 var(--font-display);
  text-decoration: none;
  cursor: pointer;
}
.wl-text-btn:hover { color: var(--ink); background: var(--hover); }
.wl-sheet > .wl-text-btn { display: flex; width: 100%; margin-top: var(--space-2); }

.wl-uses { margin-top: var(--space-6); padding-top: var(--space-5); border-top: var(--stroke-line) solid var(--line); }
.wl-uses ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.wl-uses li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.wl-uses li .wl-ic { color: var(--ink-muted); }
.wl-uses li small { color: var(--ink-muted); font-weight: 600; font-size: 13px; }
.wl-uses li b { margin-left: auto; padding-left: 8px; font-family: var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-sec-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.wl-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  color: var(--primary-text);
  font: 700 14px/1 var(--font-display);
  text-decoration: none;
}
.wl-link:hover { background: var(--hover); color: var(--ink); }
.wl-uses li.wl-empty { display: block; color: var(--ink-muted); font-weight: 600; line-height: 1.5; }
.wl-note--ok { color: var(--success-text); font-weight: 700; }
/* To'lanmagan buyurtmada ushlab turilgan balans — qaytarish tugmasi bilan */
.wl-held {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3); padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--sun-soft);
  border: var(--stroke-line) solid var(--sun);
}
.wl-held[hidden] { display: none; }
.wl-held p { flex: 1 1 200px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.wl-held .btn { flex: 0 0 auto; }

/* To'lovlar tarixi: nomi, sababi va sanasi, o'ngda +/- summa */
.wl-uses .wl-hist { gap: 0; }
.wl-uses .wl-hist li {
  align-items: flex-start;
  padding: var(--space-2) 0;
  border-bottom: var(--stroke-line) solid var(--line);
}
.wl-uses .wl-hist li:last-child { border-bottom: 0; }
.wl-hist__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.wl-uses .wl-hist__txt b { margin-left: 0; padding-left: 0; white-space: normal; font-family: var(--font-sans); font-weight: 700; font-size: 14px; }
.wl-hist__txt small { overflow-wrap: anywhere; }
.wl-uses .wl-hist__amt { font-size: 15px; }
.wl-hist__amt.is-in { color: var(--success-text); }
.wl-hist__amt.is-out { color: var(--ink); }
.wl-sheet { max-height: calc(100dvh - 32px); overflow-y: auto; }

/* Limit oynasidagi Market paketlari (SafeStudy.limits.show) */
.ss-limit-actions { flex-wrap: wrap; }
.ss-limit-actions .btn { min-width: 0; white-space: nowrap; }
.ss-limit-packs { margin: var(--space-4) 0 var(--space-2); text-align: left; }
.ss-limit-packs__title { margin-bottom: var(--space-2); font: 700 15px/1.3 var(--font-display); color: var(--ink); }
.ss-limit-packs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ss-pack {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 10px 10px 14px;
  background: var(--surface);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sticker-sm);
}
.ss-pack__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-pack__txt b { font: 800 15px/1.25 var(--font-display); color: var(--ink); }
.ss-pack__txt small { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.ss-pack__buy { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-limit-packs__msg { margin: var(--space-2) 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.ss-limit-packs__msg.is-warn { color: var(--ink); font-weight: 600; }
.ss-limit-packs__alt { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

@media (max-width: 400px) {
  .wl-sheet { padding: var(--space-5); }
  .wl-amount b { font-size: 30px; }
  .ss-pack { gap: var(--space-2); padding-left: 12px; }
  .ss-pack__buy { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .money-chip, .drawer-money__btn { transition: none; }
}

/* ===================================================================
   17. FIKR OYNASI — 5 yulduzli baho + izoh (js/feedback.js, 2026-10-16)
   Tuzilma: .ds-overlay > .ds-dialog.ds-fb > __stars > __star (svg),
   __label, textarea.ds-fb__text, __reward, __error, .ds-dialog__actions.
   =================================================================== */
.ds-fb__stars { display: flex; justify-content: center; gap: var(--space-2); margin: var(--space-2) 0 var(--space-1); }
.ds-fb__star {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 120ms var(--ease-spring);
}
.ds-fb__star svg { width: 44px; height: 44px; overflow: visible; }
.ds-fb__star path {
  fill: var(--surface-sunken);
  stroke: var(--line-strong);
  stroke-width: 2px;
  stroke-linejoin: round;
}
.ds-fb__star.is-on path { fill: var(--sun); stroke: var(--edge); }
.ds-fb__star.is-on svg { filter: drop-shadow(0 2px 0 var(--edge)); }
.ds-fb__star:hover { transform: translateY(-2px); }
.ds-fb__star:active { transform: translateY(1px); transition-duration: 50ms; }
.ds-fb__label {
  margin: 0 0 var(--space-4);
  text-align: center;
  font: 700 16px/22px var(--font-display);
  color: var(--ink-muted);
}
.ds-fb .form-label { display: block; margin-bottom: var(--space-2); font-weight: 700; color: var(--ink); }
.ds-fb__text { width: 100%; min-height: 96px; box-sizing: border-box; resize: vertical; }
.ds-fb__reward {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-4);
  padding: 10px 12px;
  background: var(--sun-soft);
  border: var(--stroke-line) solid var(--sun);
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}
.ds-fb__reward .material-symbols-rounded { flex: none; font-size: 20px; color: var(--sun-text); }
.ds-fb__reward b { font-family: var(--font-display); color: var(--sun-text); }
.ds-fb__reward.is-ready { background: var(--success-soft); border-color: var(--success); }
.ds-fb__reward.is-ready .material-symbols-rounded,
.ds-fb__reward.is-ready b { color: var(--success-text); }
.ds-fb__error {
  margin: 0 0 var(--space-4);
  padding: 10px 12px;
  background: var(--danger-soft);
  border: var(--stroke-line) solid var(--danger);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--danger-text);
}
@media (max-width: 380px) {
  .ds-fb__star { width: 44px; height: 44px; }
  .ds-fb__star svg { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-fb__star { transition: none; }
  .ds-fb__star:hover, .ds-fb__star:active { transform: none; }
}

/* ===================================================================
   18. AI USTOZ TAKLIFI — bepul daqiqalar tugagach 1 soatlik chegirma
   (functions/lib/ustoz-offer.js, 2026-10-17). Limit oynasida
   (SafeStudy.limits.show) va Market'da bir xil sariq "sovg'a" stiker:
   sun-soft fon, 2px kontur, qattiq soya; taymer — JetBrains Mono.
   Tuzilma: .ss-uoffer > __ic, __txt (b, small), __time (small, b).
   Taklif paketi qatori: .ss-pack--offer, izohi .ss-pack__deal.
   =================================================================== */
.ss-uoffer {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding: 12px 14px;
  background: var(--sun-soft);
  color: var(--ink);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--sticker-sm);
  text-align: left;
}
.ss-uoffer__ic {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--sun); color: var(--on-sun);
  border: var(--stroke-line) solid var(--edge);
  box-shadow: var(--sticker-sm);
}
.ss-uoffer__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-uoffer__txt b { font: 800 16px/1.25 var(--font-display); color: var(--ink); }
.ss-uoffer__txt small { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink-muted); }
.ss-uoffer__time { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ss-uoffer__time small { font-size: 12px; font-weight: 700; color: var(--sun-text); }
.ss-uoffer__time b {
  font: 700 17px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding: 6px 8px;
  background: var(--surface);
  border: var(--stroke-line) solid var(--outline);
  border-radius: var(--radius-sm);
}
.ss-pack--offer { background: var(--sun-soft); }
.ss-pack__txt small.ss-pack__deal { color: var(--sun-text); font-weight: 800; }
.ss-pack__buy s { font-weight: 600; opacity: .75; margin-right: 2px; }
.mk-uoffer { margin-top: 24px; }
.mk-uoffer .ss-uoffer { margin: 0; }

@media (max-width: 400px) {
  .ss-uoffer { gap: 10px; padding: 10px 12px; }
  .ss-uoffer__ic { width: 40px; height: 40px; }
  .ss-uoffer__time b { font-size: 16px; padding: 6px; }
}

/* Paketli limit oynasi (.ss-limit-sheet--packs): bir ekranga sig'adi.
   Telefon — pastki varaq, paketlar qator; kompyuter — keng oyna, paketlar yonma-yon karta. */
.ss-limit-sheet--packs { position: relative; text-align: left; }
.ss-limit-x {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink-muted);
  background: transparent;
  border: var(--stroke-line) solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.ss-limit-x:hover { color: var(--ink); background: var(--surface-sunken); border-color: var(--line); }
.ss-limit-x:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ss-limit-sheet--packs .ss-limit-head { display: flex; align-items: center; gap: var(--space-3); padding-right: 48px; }
.ss-limit-sheet--packs .ss-limit-icon { flex: none; width: 52px; height: 52px; margin: 0; }
.ss-limit-sheet--packs .ss-limit-head__txt { min-width: 0; }
.ss-limit-sheet--packs .ss-limit-title { margin: 0 0 2px; text-align: left; font-size: 21px; line-height: 1.2; text-wrap: balance; }
.ss-limit-sheet--packs .ss-limit-text { margin: 0; text-align: left; font-size: 14px; line-height: 1.45; }
.ss-limit-sheet--packs .ss-limit-meter { margin: var(--space-3) 0 0; }
.ss-limit-sheet--packs .ss-uoffer { margin-top: var(--space-3); }
.ss-limit-sheet--packs .ss-limit-packs { margin: var(--space-3) 0 0; }
.ss-limit-sheet--packs .ss-limit-packs__msg { margin-top: 6px; font-size: 12.5px; }
.ss-limit-sheet--packs .ss-limit-actions { flex-direction: row; gap: var(--space-2); margin-top: var(--space-3); }
.ss-limit-sheet--packs .ss-limit-actions .btn { flex: 1; width: auto; min-height: 44px; }

@media (max-width: 560px) {
  .ss-limit-sheet.ss-limit-sheet--packs {
    padding: 8px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 8px);
  }
  .ss-limit-sheet--packs .ss-limit-grip { margin-bottom: 6px; }
  .ss-limit-sheet--packs .ss-limit-x { top: 8px; right: 8px; }
  .ss-limit-sheet--packs .ss-limit-icon { width: 44px; height: 44px; }
  .ss-limit-sheet--packs .ss-limit-title { font-size: 19px; }
  .ss-limit-sheet--packs .ss-limit-text { font-size: 13.5px; }
  .ss-limit-sheet--packs .ss-pack { padding: 6px 6px 6px 12px; }
  /* Chegirma chizilgan eski narxda ko'rinib turibdi — qator bitta satr */
  .ss-limit-sheet--packs .ss-pack__deal { display: none; }
  .ss-limit-sheet--packs .ss-pack__buy { min-height: 44px; }
  .ss-limit-sheet--packs .ss-limit-packs__title { margin-bottom: 6px; font-size: 14px; }
  .ss-limit-sheet--packs .ss-limit-packs ul { gap: 6px; }
  .ss-limit-sheet--packs .ss-uoffer__time small { display: none; }
}

@media (min-width: 561px) {
  .ss-limit-sheet.ss-limit-sheet--packs { max-width: 680px; padding: 28px; max-height: calc(100dvh - 40px); }
  .ss-limit-sheet--packs .ss-limit-packs ul { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-3); }
  .ss-limit-sheet--packs .ss-pack { flex-direction: column; align-items: stretch; gap: var(--space-3); padding: 16px; }
  .ss-limit-sheet--packs .ss-pack__txt b { font-size: 17px; }
  .ss-limit-sheet--packs .ss-pack__buy { width: 100%; justify-content: center; min-height: 48px; margin-top: auto; }
  .ss-limit-sheet--packs .ss-uoffer { padding: 16px 18px; }
  .ss-limit-sheet--packs .ss-uoffer__txt b { font-size: 18px; }
  .ss-limit-sheet--packs .ss-uoffer__time b { font-size: 22px; padding: 8px 10px; }
  .ss-limit-sheet--packs .ss-limit-actions { justify-content: flex-end; }
  .ss-limit-sheet--packs .ss-limit-actions .btn { flex: 0 1 auto; min-width: 170px; }
}

/* Mavzu qulflangan sahifada (<html data-theme-lock>, masalan AI Ustoz) mobil
   menyudagi "Kunduzgi / tungi rejim" bandi ishlamaydi — tor ekrandagi
   `display: flex !important` qoidasidan ham ustun yashiriladi */
.mobile-theme-item[hidden] { display: none !important; }

/* ===================================================================
   19. STIKER IKONKALAR — SafeStudy.art(name) (common.js SS_ART)
   Qalin kontur + pastga siljigan qattiq soya (`.sh`). Ranglar faqat
   tokenlardan: asosiy — osmon, urg'u — sariq, yashil — "bajarildi".
   --ill-paper: "oq qog'oz" qismlar; --ill-bg-line: fon ustidagi chiziqlar.
   Tungi rejimda ikkalasi ochadi — aks holda to'q fonda yo'qoladi.
   =================================================================== */
:where(.ill) {
  --ill-paper: var(--surface);
  --ill-bg-line: var(--edge);
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
html:not(.theme-light) .ill { --ill-paper: var(--ink); --ill-bg-line: var(--ink-muted); }
.ill .o, .ill .s-sky, .ill .s-sun, .ill .s-green, .ill .s-red, .ill .s-white {
  stroke: var(--edge);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ill .o { fill: none; }
.ill .ob { fill: none; stroke: var(--ill-bg-line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill .sh { fill: var(--edge); }
.ill .s-sky { fill: var(--primary); }
.ill .s-sun { fill: var(--sun); }
.ill .s-green { fill: var(--success); }
.ill .s-red { fill: var(--danger); }
.ill .s-white { fill: var(--ill-paper); }
.ill .ink { fill: var(--edge); }
.ill .ln { fill: none; stroke: var(--line-strong); stroke-width: 2.5; stroke-linecap: round; }
.ill .ln-w { stroke: var(--ill-paper); }
.ill .r-sun { fill: none; stroke: var(--sun); stroke-width: 4.5; stroke-linecap: round; }

/* ===================================================================
   20. PLITKA VA KARTALAR — bosh sahifadan (dashboard.html, 2026-10-30)
   Umumiy stiker komponentlari (hozircha dashboard.html da): .db-tile (katta bo'lim
   plitkasi), .db-mini (kichik plitka), .db-card (yon karta), .db-chip,
   .db-continue (asosiy harakat kartasi), .db-quest (vazifa qatori),
   .db-link, .db-sec-title. Ikonka joyi: .db-tile__art / .db-mini__art /
   .db-continue__art ichiga SafeStudy.art(name). Panjara (grid) va
   sahifaga xos joylashuv sahifaning o'zida qoladi.
   =================================================================== */
.db-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px 0 8px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: var(--stroke-line) solid var(--outline);
    box-shadow: var(--sticker-sm);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.db-chip__ic { width: 26px; height: 26px; flex-shrink: 0; }
.db-chip__bar {
    width: 64px;
    height: 8px;
    margin-left: 4px;
    border-radius: var(--radius-pill);
    background: var(--surface-sunken);
    overflow: hidden;
}
.db-chip__bar i { display: block; height: 100%; width: 0; background: var(--sun); border-radius: inherit; }
/* --- Davom ettirish: oq stiker karta, asosiy harakat — osmon tugma --- */
.db-continue {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--surface);
    color: var(--ink);
    border: var(--stroke-line) solid var(--outline);
    box-shadow: var(--sticker-lg);
}
.db-continue__art { width: 104px; height: 104px; flex-shrink: 0; }
.db-continue__body { flex: 1; min-width: 0; }
.db-continue__kicker {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grape);
    margin: 0;
}
.db-continue__title {
    font-family: var(--font-display);
    font-size: clamp(21px, 2.8vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    margin: 2px 0 var(--space-3);
    text-wrap: balance;
}
.db-continue__row { display: flex; align-items: center; gap: var(--space-3); max-width: 420px; }
.db-continue__bar {
    flex: 1;
    height: 14px;
    border-radius: var(--radius-pill);
    background: var(--surface-sunken);
    border: var(--stroke-line) solid var(--outline);
    overflow: hidden;
}
.db-continue__bar i { display: block; height: 100%; width: 0; background: var(--success); border-radius: var(--radius-pill); }
.db-continue__pct { font-family: var(--font-display); font-weight: 800; font-size: 15px; min-width: 42px; }
.db-continue .btn { flex-shrink: 0; margin-bottom: 4px; }
@media (max-width: 640px) {
    .db-continue { flex-wrap: wrap; padding: var(--space-5); gap: var(--space-4); }
    .db-continue__art { width: 72px; height: 72px; }
    .db-continue .btn { width: 100%; }
}
.db-tile {
    --t-soft: var(--surface);
    --t-line: var(--outline);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-height: 168px;
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    background: var(--t-soft);
    border: var(--stroke-line) solid var(--outline);
    box-shadow: var(--sticker-md);
    color: var(--ink);
    text-decoration: none;
    transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.db-tile:hover { transform: translateY(-3px); box-shadow: var(--sticker-lg); }
.db-tile:active { transform: translateY(3px); box-shadow: var(--sticker-sm); transition-duration: var(--dur-press); }
.db-tile:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: 3px; }
.db-tile__art { width: 72px; height: 72px; margin-bottom: var(--space-2); }
.db-tile__title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    margin: var(--space-1) 0 0;
}
.db-tile__desc { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
.db-tile__pct {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: var(--stroke-line) solid var(--outline);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
}
/* AI Ustoz — sahifadagi yagona to'liq rangli karta: logodagi osmon
   fonida ustozning haqiqiy yuzi (js/ustoz-face.js), sichqonchaga qaraydi */
.db-tile--hero {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--edge);
    box-shadow: var(--sticker-lg);
    min-height: 200px;
    overflow: hidden;
}
.db-tile--hero:hover { box-shadow: 0 9px 0 0 var(--edge); }
.db-tile--hero .db-tile__title { font-size: 26px; margin-top: var(--space-2); }
.db-tile--hero .db-tile__desc { color: var(--on-primary); font-size: 15px; }
.db-tile__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: var(--space-3);
    min-height: 40px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    border: var(--stroke-line) solid var(--edge);
    box-shadow: var(--sticker-sm);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}
.db-arrow { width: 18px; height: 18px; flex-shrink: 0; }
/* --- Tezkor mashqlar (kichik plitkalar) --- */
.db-sec-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 var(--space-3);
}
.db-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: var(--stroke-line) solid var(--outline);
    box-shadow: var(--sticker-sm);
    color: var(--ink);
    text-decoration: none;
    text-align: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform var(--dur-lift) var(--ease-spring), box-shadow var(--dur-lift) ease;
}
.db-mini:hover { transform: translateY(-2px); box-shadow: var(--sticker-md); }
.db-mini:active { transform: translateY(2px); box-shadow: none; transition-duration: var(--dur-press); }
.db-mini:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: 3px; }
.db-mini__art { width: 44px; height: 44px; }
/* --- Yon kartalar --- */
.db-card {
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: var(--stroke-line) solid var(--outline);
    box-shadow: var(--sticker-md);
}
.db-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
.db-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}
.db-card__note { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.db-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--grape);
    text-decoration: none;
}
.db-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Kunlik vazifalar */
.db-quest {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-top: var(--stroke-line) solid var(--line);
    color: var(--ink);
    text-decoration: none;
}
.db-quest:first-of-type { border-top: 0; padding-top: 0; }
.db-quest:last-child { padding-bottom: 0; }
.db-quest__ic { width: 40px; height: 40px; }
.db-quest__name { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; }
.db-quest__bar {
    display: block;
    height: 8px;
    margin-top: 6px;
    border-radius: var(--radius-pill);
    background: var(--surface-sunken);
    overflow: hidden;
}
.db-quest__bar i { display: block; height: 100%; background: var(--success); border-radius: inherit; }
.db-quest__xp {
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--sun-soft);
    color: var(--sun-text);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.db-quest.is-done .db-quest__name { color: var(--ink-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.db-quest.is-done .db-quest__xp { background: var(--success-soft); color: var(--success-text); }
.db-empty { margin: 0; font-size: 14px; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
    .db-tile, .db-mini { transition: none; }
    .db-tile:hover, .db-tile:active, .db-mini:hover, .db-mini:active { transform: none; }
}
