/* ============================================================================
   Zex-lo — Landing & Auth design foundation
   index.html + accounts/login.html + accounts/register.html shu faylni ishlatadi.
   Uslub: editorial-clean (style_guide.md §0 ustuvorlik, §31 motion).
   Har rang WCAG AA bo'yicha hisoblab tanlangan, taxmin qilinmagan.
   ============================================================================ */

/* ── Fonts (self-hosted; Google Fonts <link> ishlatilmaydi) ───────────────── */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Neytrallar — sof #fff/#000 EMAS, yashil tomonga sal bo'yalgan */
  --bg:          #f5f7f6;
  --surface:     #fbfcfb;
  --surface-2:   #eef1f0;
  --border:      #dfe5e3;
  --border-soft: #e9edec;

  /* Matn — kontrast o'lchangan: 17.3 / 8.9 / 5.7 */
  --text:        #141917;
  --text-2:      #3f4a47;
  --text-muted:  #5b6764;

  /* Accent — BITTA. Gradient yo'q. #047857 oq matn bilan 5.48:1 (AA ✓) */
  --accent:       #047857;
  --accent-hover: #065f46;
  --accent-soft:  #e6f4ef;   /* fon uchun, matn uchun EMAS */
  --accent-mark:  #10b981;   /* faqat bezak/ikona, matn uchun ishlatilmaydi */
  --on-accent:    #ffffff;

  /* Radius — BITTA shkala (style_guide §30.3 Shape Lock) */
  --r-card: 12px;
  --r-ctl:  8px;
  --r-pill: 999px;

  /* Easing — style_guide §31.1 */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Soyalar — fon rangiga bo'yalgan, sof qora emas */
  --shadow-sm: 0 1px 2px rgba(20, 25, 23, .05);
  --shadow-md: 0 4px 16px rgba(20, 25, 23, .07);
  --shadow-lg: 0 12px 40px rgba(20, 25, 23, .10);

  /* Tipografika */
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body:    'InterVar', system-ui, sans-serif;

  --shell: 1200px;
}

/* Dark — birinchi tashrifda tizim sozlamasi (ilgari doim 'light' edi) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0b0f0e;
    --surface:     #131917;
    --surface-2:   #1a2220;
    --border:      #26302d;
    --border-soft: #1e2724;
    --text:        #e8edeb;
    --text-2:      #a8b5b1;
    --text-muted:  #8b9a95;
    --accent:       #34d399;
    --accent-hover: #6ee7b7;
    --accent-soft:  #10231c;
    --accent-mark:  #34d399;
    --on-accent:    #0b0f0e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  }
}

/* Qo'lda tanlangan tema tizim sozlamasidan ustun */
:root[data-theme="dark"] {
  --bg:          #0b0f0e;
  --surface:     #131917;
  --surface-2:   #1a2220;
  --border:      #26302d;
  --border-soft: #1e2724;
  --text:        #e8edeb;
  --text-2:      #a8b5b1;
  --text-muted:  #8b9a95;
  --accent:       #34d399;
  --accent-hover: #6ee7b7;
  --accent-soft:  #10231c;
  --accent-mark:  #34d399;
  --on-accent:    #0b0f0e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.zx {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.zx h1, .zx h2, .zx h3, .zx h4, .zx .display {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

/* Tipografik shkala — clamp bilan, alohida mobil override kerak emas */
.zx-h1  { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem);  font-weight: 600; }
.zx-h2  { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);  font-weight: 600; }
.zx-h3  { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);   font-weight: 600; }
.zx-lead{ font-size: clamp(1rem, .95rem + .35vw, 1.15rem); color: var(--text-2);
          line-height: 1.6; max-width: 62ch; }
.zx-body{ color: var(--text-2); max-width: 65ch; }
.zx-small { font-size: .875rem; color: var(--text-muted); }

.zx-shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 1.25rem; }
.zx-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.zx-section + .zx-section { border-top: 1px solid var(--border-soft); }

/* ── Tugmalar ────────────────────────────────────────────────────────────── */
.zx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; line-height: 1;
  padding: .8rem 1.35rem;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;          /* CTA wrap taqiqi — skill §4.5 */
  transition: transform 140ms var(--ease-out),
              background-color 160ms var(--ease-out),
              border-color 160ms var(--ease-out);
}
.zx-btn:active { transform: scale(0.97); }   /* skill §31.5 — bir zumlik javob */

.zx-btn-primary { background: var(--accent); color: var(--on-accent); }
.zx-btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.zx-btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.zx-btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

.zx-btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.zx-btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.zx-btn-block { width: 100%; }

/* ── Forma ───────────────────────────────────────────────────────────────── */
.zx-field { display: flex; flex-direction: column; gap: .4rem; }
.zx-label {
  font-size: .85rem; font-weight: 600; color: var(--text);
}
.zx-input {
  width: 100%;
  font-family: var(--font-body); font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  padding: .78rem .9rem;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
/* placeholder kontrasti AA (5.7:1) — xira kulrang ishlatilmaydi */
.zx-input::placeholder { color: var(--text-muted); opacity: 1; }
.zx-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.zx-input:focus-visible { outline: none; }
.zx-help  { font-size: .8rem; color: var(--text-muted); }
.zx-error { font-size: .82rem; color: #b42318; }
:root[data-theme="dark"] .zx-error { color: #fda29b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .zx-error { color: #fda29b; }
}

/* Klaviatura fokusi har doim ko'rinadi */
.zx a:focus-visible, .zx button:focus-visible, .zx .zx-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-ctl);
}

/* ── Sirt / karta ────────────────────────────────────────────────────────── */
.zx-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
/* Karta ichida karta YO'Q (impeccable anti-pattern) — ichki guruh chiziq bilan */
.zx-divide > * + * { border-top: 1px solid var(--border-soft); }

.zx-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
}

/* ── Navbar (uch sahifada bir xil) ───────────────────────────────────────── */
.zx-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.zx-nav-inner {
  height: 64px;                       /* skill: nav <= 80px, bitta qator */
  display: flex; align-items: center; gap: 1.5rem;
}
.zx-brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
  white-space: nowrap;          /* "Zex-lo" defis bo'yicha bo'linib ketmasin */
  flex-shrink: 0;
}
.zx-brand i { color: var(--accent); }
.zx-nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
/* Auth tugmalari navLinks ICHIDA: desktopda o'ng chetda, mobilda ochiladigan
   menyu ichida. Ilgari ular doim panelda turardi va 375px'da sig'masdi
   (brend + tema + til + 2 tugma + hamburger = gorizontal scroll). */
.zx-nav-auth { display: inline-flex; align-items: center; gap: .5rem; margin-left: .75rem; }
/* Desktop nusxasi — til tanlagichdan KEYIN turadi (foydalanuvchi so'rovi).
   Ikki nusxa bir vaqtda hech qachon ko'rinmaydi: 1025px dan boshlab panel
   nusxasi, undan tor ekranda menyu nusxasi. */
.zx-nav-auth-bar { display: inline-flex; align-items: center; gap: .5rem; }
@media (min-width: 1025px) { .zx-nav-auth { display: none; } }
@media (max-width: 1024px) { .zx-nav-auth-bar { display: none; } }
.zx-nav-link {
  font-size: .9rem; color: var(--text-2); text-decoration: none;
  padding: .45rem .7rem; border-radius: var(--r-ctl);
  white-space: nowrap;          /* "Become a Teacher" ikki qatorga tushmasin */
  transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.zx-nav-link:hover { color: var(--text); background: var(--surface-2); }
.zx-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-ctl); color: var(--text-2); cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 160ms var(--ease-out);
}
.zx-icon-btn:active { transform: scale(0.97); }
.zx-icon-btn:hover { border-color: var(--text-muted); color: var(--text); }

/* Menyu tugmasi CSS bilan boshqariladi — JS resize listeneriga bog'lanmaydi
   (bog'langanda tugma mobilda ham yashirin qolib ketardi) */
.zx-nav-toggle { display: none; }

/* 1024px — 5 ta havola + tema + til + tugma bitta qatorga sig'adigan eng kichik
   kenglik. Avval 860px edi: 860-1000px oralig'ida brend va "Become a Teacher"
   ikki qatorga tushib navbar buzilardi. */
@media (max-width: 1024px) {
  .zx-nav-toggle { display: inline-flex; }
  .zx-nav-links.zx-collapse { display: none; }
  .zx-nav-links.zx-collapse.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: .75rem 1.25rem; gap: .15rem;
    z-index: 100;
  }
  .zx-nav-links.zx-collapse.open .zx-nav-link { padding: .6rem .7rem; }
  .zx-nav-links.zx-collapse.open .zx-nav-auth {
    margin: .6rem 0 0; padding-top: .75rem;
    border-top: 1px solid var(--border-soft);
    display: flex; gap: .5rem;
  }
  .zx-nav-links.zx-collapse.open .zx-nav-auth .zx-btn { flex: 1; }
}

/* ── Motion (style_guide §31) ────────────────────────────────────────────── */
@keyframes zx-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.zx-rise { animation: zx-rise 380ms var(--ease-out) both; }
.zx-rise-2 { animation-delay: 60ms; }
.zx-rise-3 { animation-delay: 120ms; }

/* Faqat transform/opacity — layout xossalari animatsiya qilinmaydi */
.zx-lift { transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.zx-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

@media (prefers-reduced-motion: reduce) {
  .zx *, .zx *::before, .zx *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
   AUTH (au-) — login.html + register.html BIR XIL layout ishlatadi.
   Ikkala sahifada takrorlanmaydi, shu yerda bitta manbada turadi.
   ============================================================================ */
.au-page {
  min-height: calc(100dvh - 64px);        /* h-screen emas — iOS barqarorligi */
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}

.au-aside {
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.au-aside-inner { max-width: 30rem; width: 100%; margin-left: auto; }
.au-headline {
  font-family: var(--font-display); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.022em; margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
}
.au-sub { margin: .9rem 0 0; color: var(--text-2); max-width: 34ch; }

.au-points { margin-top: 2.5rem; }
.au-point {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}
.au-point i { color: var(--accent); font-size: 1.05rem; line-height: 1.5; }
.au-point strong { display: block; font-size: .95rem; font-weight: 600; }
.au-point span { font-size: .875rem; color: var(--text-muted); }
.au-foot { margin-top: 2.5rem; font-size: .8rem; color: var(--text-muted); }

.au-main {
  padding: clamp(2rem, 4vw, 3.5rem) 1.25rem;
  display: flex; align-items: center; justify-content: flex-start;
}
.au-form { width: 100%; max-width: 24rem; }
.au-title { font-size: 1.75rem; font-weight: 600; }
.au-switch { margin: .5rem 0 0; font-size: .9rem; color: var(--text-muted); }
.au-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.au-switch a:hover { text-decoration: underline; }

.au-fields { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.au-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.au-forgot { font-size: .8rem; color: var(--text-muted); text-decoration: none; }
.au-forgot:hover { color: var(--accent); }

.au-input-wrap { position: relative; display: flex; }
.au-input-wrap .zx-input { padding-right: 2.6rem; }
.au-eye {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: var(--text-muted); border-radius: var(--r-ctl);
  transition: color 140ms var(--ease-out);
}
.au-eye:hover { color: var(--text); }

.au-submit { margin-top: 1.6rem; }
.au-submit:disabled { opacity: .55; cursor: not-allowed; }
.au-submit:disabled:active { transform: none; }

.au-or {
  display: flex; align-items: center; gap: .9rem;
  margin: 1.4rem 0;
  font-size: .78rem; color: var(--text-muted);
}
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.au-google {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .75rem 1rem;
  font-size: .9rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  transition: transform 140ms var(--ease-out), border-color 160ms var(--ease-out);
}
.au-google:hover { border-color: var(--text-muted); color: var(--text); }
.au-google:active { transform: scale(0.97); }

.au-terms { margin-top: 1rem; font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.au-terms a { color: var(--text-2); text-decoration: underline; }
.au-terms a:hover { color: var(--accent); }

.au-alert {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .8rem .9rem;
  font-size: .875rem; line-height: 1.5;
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  background: var(--surface);
}
.au-alert i { flex-shrink: 0; margin-top: .15rem; }
.au-alert.error   { border-color: #f0c2bd; background: #fef4f3; color: #7a2019; }
.au-alert.success { border-color: #b9e2cf; background: #f0faf5; color: #14563b; }
.au-alert.warning { border-color: #f0dcae; background: #fdf8ec; color: #6b4f16; }
:root[data-theme="dark"] .au-alert.error   { border-color:#5b241f; background:#2a1512; color:#fda29b; }
:root[data-theme="dark"] .au-alert.success { border-color:#1d4a37; background:#0f2419; color:#6ee7b7; }
:root[data-theme="dark"] .au-alert.warning { border-color:#54431a; background:#2a2211; color:#fbdc8a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .au-alert.error   { border-color:#5b241f; background:#2a1512; color:#fda29b; }
  :root:not([data-theme="light"]) .au-alert.success { border-color:#1d4a37; background:#0f2419; color:#6ee7b7; }
  :root:not([data-theme="light"]) .au-alert.warning { border-color:#54431a; background:#2a2211; color:#fbdc8a; }
}

/* ── Parol kuchi va talablar (faqat register) ────────────────────────────── */
.au-strength {
  height: 3px; margin-top: .55rem;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
/* width EMAS, scaleX — layout qayta hisoblanmaydi (style_guide §31.5) */
.au-strength-fill {
  height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: var(--text-muted);
  transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.au-strength-fill.weak   { background: #d92d20; }
.au-strength-fill.medium { background: #b54708; }
.au-strength-fill.strong { background: var(--accent); }
:root[data-theme="dark"] .au-strength-fill.weak   { background: #f97066; }
:root[data-theme="dark"] .au-strength-fill.medium { background: #fdb022; }

.au-reqs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem;
  margin-top: .7rem;
}
.au-req {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--text-muted);
  transition: color 160ms var(--ease-out);
}
.au-req i { font-size: .8rem; }
.au-req.ok { color: var(--accent); }

.au-match { display: none; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .8rem; }
.au-match.ok, .au-match.bad { display: flex; }
.au-match.ok  { color: var(--accent); }
.au-match.bad { color: #d92d20; }
:root[data-theme="dark"] .au-match.bad { color: #f97066; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .au-match.bad { color: #f97066; }
  :root:not([data-theme="light"]) .au-strength-fill.weak   { background: #f97066; }
  :root:not([data-theme="light"]) .au-strength-fill.medium { background: #fdb022; }
}

@media (max-width: 900px) {
  .au-page { grid-template-columns: 1fr; min-height: 0; }
  .au-aside { border-right: 0; border-bottom: 1px solid var(--border); padding: 2rem 1.25rem; }
  .au-aside-inner { margin-left: 0; max-width: none; }
  .au-points { margin-top: 1.5rem; }
  .au-point { padding: .85rem 0; }
  .au-foot { display: none; }
  .au-main { justify-content: center; padding: 2rem 1.25rem 3rem; }
}
@media (max-width: 420px) {
  .au-reqs { grid-template-columns: 1fr; }
}

/* ============================================================================
   LANDING HERO (hx-) — index.html
   ============================================================================ */
.hx { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hx-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hx-copy { max-width: 34rem; }
/* Hero tepa padding <= 6rem (skill §4.7) — kontent ekran o'rtasiga suzib ketmaydi */
.hx-title { margin-top: 1.1rem; }
.hx-sub   { margin: 1rem 0 0; }
.hx-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
/* Uchinchi darajali harakat — tugma EMAS: sign-up bilan raqobatlashmasligi
   uchun ataylab oddiy matn havolasi (skill: bitta bo'limda bitta yetakchi CTA) */
.hx-note {
  margin: 1rem 0 0;
  font-size: .85rem; color: var(--text-muted); line-height: 1.6;
}
.hx-note a {
  color: var(--text-2); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color 140ms var(--ease-out);
}
.hx-note a:hover { color: var(--accent); }
.hx-count {
  margin: 1.4rem 0 0;
  font-size: .875rem; color: var(--text-muted);
}
.hx-count strong {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--text); font-weight: 600;
}

/* Hero demo — bazadagi HAQIQIY savol (skrinshot ham, soxta UI ham emas).
   Ataylab brauzer oynasiga o'xshatilmagan: toolbar/nuqta/chrome yo'q, bu
   kontent bloki (skill §9.F "div-based fake product UI" taqiqi). */
.hx-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.hx-demo-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: .85rem; border-bottom: 1px solid var(--border-soft);
}
.hx-demo-kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
}
.hx-demo-tag { font-size: .75rem; color: var(--text-muted); }

.hx-demo-source {
  margin: .95rem 0 .35rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}
.hx-demo-excerpt {
  margin: 0; font-size: .84rem; line-height: 1.65; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hx-demo-q {
  margin: 1.1rem 0 .9rem;
  font-size: .95rem; font-weight: 600; line-height: 1.5;
}

.hx-demo-opts { display: flex; flex-direction: column; gap: .45rem; }
.hx-opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: .7rem; width: 100%; text-align: left;
  padding: .7rem .85rem;
  font-family: var(--font-body); font-size: .875rem; line-height: 1.45;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 160ms var(--ease-out),
              background-color 160ms var(--ease-out);
}
.hx-opt:hover:not([disabled]) { border-color: var(--text-muted); }
.hx-opt:active:not([disabled]) { transform: scale(0.99); }
.hx-opt[disabled] { cursor: default; }

.hx-opt-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.55rem; height: 1.55rem; flex-shrink: 0;
  font-size: .75rem; font-weight: 700;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  color: var(--text-muted);
}
.hx-opt-mark { font-size: .95rem; opacity: 0; }

.hx-opt.is-correct { border-color: var(--accent); background: var(--accent-soft); }
.hx-opt.is-correct .hx-opt-letter { border-color: var(--accent); color: var(--accent); }
.hx-opt.is-correct .hx-opt-mark { opacity: 1; color: var(--accent); }
.hx-opt.is-wrong { border-color: #d92d20; }
.hx-opt.is-wrong .hx-opt-letter { border-color: #d92d20; color: #d92d20; }
.hx-opt.is-wrong .hx-opt-mark { opacity: 1; color: #d92d20; }
:root[data-theme="dark"] .hx-opt.is-wrong,
:root[data-theme="dark"] .hx-opt.is-wrong .hx-opt-letter { border-color: #f97066; }
:root[data-theme="dark"] .hx-opt.is-wrong .hx-opt-letter,
:root[data-theme="dark"] .hx-opt.is-wrong .hx-opt-mark { color: #f97066; }

.hx-demo-result {
  margin: .9rem 0 0; min-height: 1.2rem;
  font-size: .82rem; color: var(--text-muted);
}

@media (max-width: 900px) {
  .hx-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hx-copy { max-width: none; }
}

/* ── Kutubxona tarkibi (lib-) — layout oilasi: 2 ustunli data panel ──────── */
.lib-grid {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.lib-intro .zx-lead { margin: 1rem 0 1.75rem; }
.lib-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.lib-panel-title {
  margin: 0 0 1.15rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.lib-bars { display: flex; flex-direction: column; gap: 1.05rem; }
.lib-bar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: .45rem; font-size: .875rem;
}
.lib-bar-num { color: var(--text-muted); font-size: .8rem; }
.lib-bar-track {
  height: 6px; background: var(--surface-2);
  border-radius: var(--r-pill); overflow: hidden;
}
.lib-bar-fill {
  height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: var(--accent); border-radius: var(--r-pill);
  transition: transform 520ms var(--ease-out);
}

/* ── Gorizontal lenta (rail-) — layout oilasi: scroll rail ───────────────── */
.rail-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.rail-all {
  font-size: .85rem; color: var(--text-muted); text-decoration: none;
  white-space: nowrap;
  transition: color 140ms var(--ease-out);
}
.rail-all:hover { color: var(--accent); }
.rail-wrap { overflow: hidden; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 15.5rem);
  gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: .35rem .35rem 1.25rem;
  margin: -.35rem -.35rem 0;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-pill); }
.rail-msg { color: var(--text-muted); font-size: .875rem; padding: 1.5rem .25rem; }

/* ── Yuklanish ko'rsatkichi (ldr-) ───────────────────────────────────────────
   Qoida: birinchi 500ms da HECH NARSA ko'rsatilmaydi. Tez javobda (aksariyat
   holat) spinner umuman chiqmaydi — "miltillash" bo'lmaydi. Javob kelishi
   bilan darhol almashtiriladi, sun'iy minimal ko'rsatish vaqti YO'Q. */
.ldr {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .65rem;
  padding: 1.75rem .5rem;
}
.ldr-spin {
  width: 1.4rem; height: 1.4rem;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: var(--r-pill);
  animation: ldr-spin 700ms linear infinite;
}
@keyframes ldr-spin { to { transform: rotate(360deg); } }
.ldr-text {
  font-size: .78rem; color: var(--text-muted);
  letter-spacing: .02em;
}
/* Lentada karta balandligini egallaydi — javob kelganda sakrash bo'lmaydi */
.rail > .ldr { min-height: 11rem; }

@media (prefers-reduced-motion: reduce) {
  .ldr-spin { animation: none; border-top-color: var(--border); opacity: .55; }
}

/* Lenta strelkalari. Faqat lenta ustiga sichqoncha kelganda chiqadi va
   yarim shaffof — kartalarni bekitib turmasligi uchun. Chegaraga yetganda
   mos strelka [disabled] bo'ladi va butunlay yo'qoladi. */
.rail-holder { position: relative; }
.rail-nav {
  position: absolute; top: calc(50% - .45rem);
  transform: translateY(-50%);
  z-index: 2;
  width: 2.4rem; height: 2.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--text); cursor: pointer;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.rail-holder:hover .rail-nav,
.rail-holder:focus-within .rail-nav { opacity: 1; pointer-events: auto; }
.rail-nav:hover { background: var(--surface); border-color: var(--text-muted); }
.rail-nav:active { transform: translateY(-50%) scale(0.94); }
/* Chegara: sukut bo'yicha ham [disabled] — JS birinchi yuklashda hisoblaydi */
.rail-nav[disabled] { opacity: 0 !important; pointer-events: none; }
.rail-prev { left: .4rem; }
.rail-next { right: .4rem; }

/* Sensorli ekranda hover yo'q — strelkalar chiqmaydi, barmoq bilan suriladi */
@media (hover: none) {
  .rail-nav { display: none; }
}

.tcard-x {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: .55rem;
  min-height: 11rem; padding: 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.tcard-x:hover { transform: translateY(-2px); border-color: var(--text-muted); }
.tcard-x-top { display: flex; align-items: center; gap: .5rem; }
/* UPPERCASE olib tashlandi: yorliq endi ikki so'zli ("CEFR Reading",
   "ÖSD Schreiben") va katta harfda + letter-spacing bilan juda uzun bo'lib
   ketardi. Sinfxona kartasida bu klass o'qituvchi ismini ko'rsatadi —
   ism ham katta harfda yozilmasligi kerak edi. */
.tcard-x-type {
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.tcard-x-free {
  font-size: .68rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: var(--r-pill);
  padding: .12rem .5rem;
}
.tcard-x-title {
  margin: 0; font-family: var(--font-display); font-size: .95rem;
  font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tcard-x-desc {
  margin: 0; font-size: .8rem; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tcard-x-foot {
  margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border-soft);
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
}
.tcard-x-author {
  font-size: .78rem; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tcard-x-price { font-size: .82rem; font-weight: 600; color: var(--text); white-space: nowrap; }
/* Butun karta bosiladigan — alohida tugma qo'shmasdan */
.tcard-x-link { position: absolute; inset: 0; border-radius: var(--r-card); }
.tcard-x-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  .lib-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Ikki auditoriya (rl-) — o'quvchi | muallif ustunlari ────────────────── */
.rl-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
/* Ustun ichida ro'yxat bitta ustunga tushadi — rl-grid allaqachon ikkiga bo'lgan */
.rl-col .tf-list { grid-template-columns: 1fr; }
.rl-col-title {
  margin: 0; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
@media (max-width: 900px) {
  .rl-grid { grid-template-columns: 1fr; }
}

/* ── O'qituvchi imkoniyatlari (tf-) — ro'yxat + fakt chizig'i ────────────── */
.tf-head { max-width: 46rem; margin-bottom: 2.5rem; }
.tf-head .zx-lead { margin-top: .9rem; }
.tf-list {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 3vw, 3rem);
}
/* Kartalar emas — hairline bilan guruhlash (skill §4.4) */
.tf-item {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: start; gap: .9rem;
  padding: 1.15rem 0; border-top: 1px solid var(--border-soft);
}
.tf-ico { color: var(--accent); font-size: 1.05rem; line-height: 1.5; }
.tf-title { margin: 0; font-size: .95rem; font-weight: 600; }
.tf-desc { margin: .2rem 0 0; font-size: .84rem; color: var(--text-muted); line-height: 1.55; }
.tf-tag {
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; padding-top: .15rem;
}

.tf-fact {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--accent-soft); border-radius: var(--r-card);
}
.tf-fact-num {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem); line-height: 1;
  color: var(--accent);
}
.tf-fact-title { margin: 0; font-size: 1rem; font-weight: 600; }
.tf-fact-desc { margin: .35rem 0 0; font-size: .85rem; color: var(--text-2); max-width: 46ch; }

/* ── Sharhlar (mavjud markup, yangi uslub) ───────────────────────────────── */
.testimonials-section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--border-soft); }
.testimonials-heading { max-width: var(--shell); margin: 0 auto 2.5rem; padding: 0 1.25rem; }
.testimonials-heading h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.022em;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 0;
}
.testimonials-heading p { margin: .8rem 0 0; color: var(--text-2); }
/* Gorizontal karusel. Markup — 12 ta karta + AYNAN o'sha 12 tasining nusxasi,
   shuning uchun -50% siljish to'liq bir to'plamga teng va uzilish ko'rinmaydi.
   MUHIM: `gap` EMAS, kartaning o'zida `margin-right` ishlatiladi — gap bilan
   24 karta orasida 23 ta oraliq bo'lib, yarmi (11.5 oraliq) bir to'plamga
   (12 oraliq) teng kelmasdi va har aylanishda sakrash paydo bo'lardi. */
@keyframes tcard-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testimonials-mask { overflow: hidden; }
.testimonials-track {
  display: flex; width: max-content;
  animation: tcard-scroll 70s linear infinite;
  will-change: transform;
}
/* Sichqoncha ustida — to'xtaydi (o'qish uchun). Klaviatura bilan yurilganda
   ham to'xtaydi, aks holda fokusdagi karta ko'rinishdan chiqib ketardi. */
.testimonials-mask:hover .testimonials-track,
.testimonials-mask:focus-within .testimonials-track { animation-play-state: paused; }

/* Reduced-motion: umumiy qoida `animation-duration: .01ms` beradi, bu esa
   lentani darhol oxiriga tashlab yuborardi — shuning uchun bu yerda
   animatsiya BUTUNLAY o'chiriladi va o'rniga qo'lda aylantirish beriladi. */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none !important; transform: none !important; }
  .testimonials-mask { overflow-x: auto; }
}

.tcard {
  flex: 0 0 20rem; display: flex; flex-direction: column;
  margin-right: 1rem;
  padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.tcard-stars { color: var(--accent); font-size: .72rem; letter-spacing: .1em; margin-bottom: .7rem; }
.tcard-text {
  margin: 0 0 1.1rem; font-size: .875rem; line-height: 1.6; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tcard-author { display: flex; align-items: center; gap: .65rem; margin-top: auto; }
.tcard-avatar {
  width: 2.1rem; height: 2.1rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  border-radius: var(--r-pill);
}
.tcard-name { display: block; font-size: .84rem; font-weight: 600; }
.tcard-role { display: block; font-size: .75rem; color: var(--text-muted); }
.tcard-badge {
  margin-left: auto; font-size: .7rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: var(--r-pill);
  background: var(--surface-2) !important; color: var(--text-muted) !important;
}

/* ── Hamjamiyat (comm-) ──────────────────────────────────────────────────── */
.comm { border-top: 1px solid var(--border-soft); }
.comm-head { max-width: 46rem; }
.comm-head .zx-lead { margin-top: .9rem; }
/* Lenta + yon ustun (boshqa hech bir bo'limda ishlatilmagan oila) */
.comm-body {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1rem; margin-top: 2.5rem; align-items: start;
}
.comm-main, .comm-side { display: flex; flex-direction: column; gap: 1rem; }

.comm-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 1.25rem;
}
.comm-panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .35rem;
}
.comm-panel-title {
  margin: 0 0 .9rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.comm-panel-head .comm-panel-title { margin-bottom: 0; }
.comm-panel-all {
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; white-space: nowrap;
  transition: color 140ms var(--ease-out);
}
.comm-panel-all:hover { color: var(--accent); }

/* Lenta elementi: bosh harf + sarlavha + meta (ilgari yalang'och matn qatori
   edi va debug chiqishiga o'xshardi) */
.comm-feed { display: flex; flex-direction: column; }
.comm-feed > * + * { border-top: 1px solid var(--border-soft); }
.comm-feed-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: start; gap: .7rem; padding: .8rem 0;
}
.comm-feed-av {
  width: 1.85rem; height: 1.85rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  border-radius: var(--r-pill);
}
.comm-feed-title {
  margin: 0; font-size: .875rem; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.comm-feed-meta {
  margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem;
  font-size: .75rem; color: var(--text-muted);
}
.comm-feed-meta i { margin-right: .2rem; }
.comm-feed-msg { margin: .8rem 0; font-size: .85rem; color: var(--text-muted); }

/* Yon ustun statistikasi — 4 ta katta raqam chizig'i o'rniga o'qiladigan
   ro'yxat (raqamlar hero'dagi test soni bilan raqobatlashmaydi) */
.comm-stats { list-style: none; margin: 0; padding: 0; }
.comm-stats li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0;
}
.comm-stats li + li { border-top: 1px solid var(--border-soft); }
.comm-stat-k {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .84rem; color: var(--text-2);
}
.comm-stat-k i { color: var(--text-muted); font-size: .9rem; }
.comm-stat-v {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--text);
}
/* Efir bor bo'lsa — jonli nuqta (JS `is-live` qo'shadi) */
.comm-stats li.is-live .comm-stat-k i { color: var(--accent); }
.comm-stats li.is-live .comm-stat-v { color: var(--accent); }
.comm-stats li.is-live .comm-stat-v::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: .45rem; height: .45rem; margin-right: .4rem;
  background: var(--accent); border-radius: var(--r-pill);
  animation: comm-pulse 2s var(--ease-in-out) infinite;
}
@keyframes comm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.comm-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.comm-tg-row { display: flex; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 900px) {
  .comm-body { grid-template-columns: 1fr; }
}
.comm-tg-link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; font-size: .84rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  transition: transform 140ms var(--ease-out), border-color 160ms var(--ease-out);
}
.comm-tg-link:hover { border-color: var(--accent); color: var(--accent); }
.comm-tg-link:active { transform: scale(0.97); }

/* ── Top o'qituvchilar (tt-) ─────────────────────────────────────────────── */
.tt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ── Yakuniy CTA — markazlashgan bayonot ─────────────────────────────────── */
.cta { border-top: 1px solid var(--border-soft); }
.cta-inner { max-width: 52rem; text-align: center; }
.cta-title { margin: 0; }
.cta-sub { margin: 1rem auto 0; }
.cta-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin: 2.75rem 0;
  text-align: left;
}
.cta-step { padding-top: 1rem; border-top: 2px solid var(--accent); }
.cta-step-t { margin: 0; font-size: .95rem; font-weight: 600; }
.cta-step-d { margin: .3rem 0 0; font-size: .84rem; color: var(--text-muted); line-height: 1.55; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.rail-empty {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 2rem 0;
}

@media (max-width: 900px) {
  .tf-list { grid-template-columns: 1fr; }
  .tf-fact { grid-template-columns: 1fr; text-align: left; gap: 1rem; }
  .comm-panels { grid-template-columns: 1fr; }
  .comm-nums { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .tt-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-steps { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 560px) {
  .tt-grid { grid-template-columns: 1fr; }
  .tcard { flex-basis: 17rem; }
}

/* ── Footer (ft-) ────────────────────────────────────────────────────────── */
.ft {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.75rem;
}
.ft-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 3vw, 3rem);
}
.ft-about { margin: 1rem 0 1.25rem; font-size: .875rem; color: var(--text-muted); max-width: 30ch; line-height: 1.6; }
.ft-title {
  margin: 0 0 .9rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.ft-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ft-links a, .ft-links span { font-size: .875rem; color: var(--text-2); text-decoration: none; }
.ft-links a { transition: color 140ms var(--ease-out); }
.ft-links a:hover { color: var(--accent); }

.ft-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.ft-bottom p { margin: 0; font-size: .8rem; color: var(--text-muted); }
.ft-legal { display: flex; gap: 1.25rem; }
.ft-legal a { font-size: .8rem; color: var(--text-muted); text-decoration: none; }
.ft-legal a:hover { color: var(--accent); }

/* ── Top o'qituvchi kartalari (JS quradi, eski klass nomlari) ────────────── */
.teacher-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 1.1rem;
}
.teacher-avatar {
  width: 2.4rem; height: 2.4rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border-radius: var(--r-pill);
}
.teacher-avatar.large { width: 2.75rem; height: 2.75rem; font-size: .9rem; }
.teacher-name { margin: 0; font-size: .9rem; font-weight: 600; }
.teacher-spec, .teacher-bio, .teacher-meta {
  margin: .15rem 0 0; font-size: .78rem; color: var(--text-muted);
}
.teacher-social { display: flex; gap: .6rem; margin-top: .75rem; }
.teacher-social a { color: var(--text-muted); font-size: .95rem; text-decoration: none; }
.teacher-social a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .ft-grid { grid-template-columns: 1fr; }
}

/* ── Yordamchilar ────────────────────────────────────────────────────────── */
.zx-stack   { display: flex; flex-direction: column; }
.zx-gap-1   { gap: .5rem; }  .zx-gap-2 { gap: 1rem; }
.zx-gap-3   { gap: 1.5rem; } .zx-gap-4 { gap: 2rem; }
.zx-row     { display: flex; align-items: center; }
.zx-wrap    { flex-wrap: wrap; }
.zx-center  { text-align: center; }
.zx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
