/* ============================================================
   RANGLAR — shu yerda o'zgartirsangiz butun sayt o'zgaradi
   ============================================================ */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f6f3;
  --text: #0c1f13;
  --muted: #5b6b61;
  --line: #e3eae5;
  --primary: #006225;        /* asosiy brend rangi — yashil */
  --primary-dark: #004a1c;
  --primary-soft: #e2f0e6;
  --primary-2: #1fa64f;      /* gradient uchun ochroq yashil */
  --gold: #f2a900;           /* aksent — sariq */
  --gold-dark: #b77f00;
  --gold-soft: #fff4d6;
  --btn: #006225;
  --btn-hover: #004a1c;
  --on-btn: #ffffff;
  --ok: #15803d;
  --ok-soft: #e3f4e8;
  --bad: #c0262d;
  --bad-soft: #fbe7e7;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 50, 20, .08);
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #08110c;
  --surface: #101b14;
  --surface-2: #15241a;
  --text: #e8f0ea;
  --muted: #98a99e;
  --line: #22362a;
  --primary: #6fcf8f;
  --primary-dark: #a3e3b8;
  --primary-soft: #173524;
  --primary-2: #2fbf63;
  --gold: #ffbf2e;
  --gold-dark: #ffd36b;
  --gold-soft: #33280b;
  --btn: #1a8f45;
  --btn-hover: #22a552;
  --on-btn: #ffffff;
  --ok: #4ade80;
  --ok-soft: #12301f;
  --bad: #f87171;
  --bad-soft: #3a1618;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  background: transparent;
  overflow-x: clip;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background .25s, color .25s;
}
/* Footer birinchi ekranda chala ko'rinmaydi: u doim ekrandan pastda boshlanadi */
main { flex: 1; min-height: 100vh; }
body.player-mode main, body.player-pseudo main { min-height: 0; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
h3, h4 { font-weight: 700; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 40, 15, .06); }
.topbar-inner {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav actions";
  align-items: center; min-height: 80px; gap: 18px;
}
.brand { grid-area: brand; }
.nav { grid-area: nav; }
.top-actions { grid-area: actions; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; flex-shrink: 0; }
.brand-logo { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: #f2f2f2; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--primary); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
/* iOS uslubidagi segmentli tablar: faol tab ostida "suzuvchi" oq plashka */
.nav {
  position: relative; display: flex; align-items: center; justify-self: center; gap: 2px; padding: 4px;
  background: color-mix(in srgb, var(--text) 7%, transparent); border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative; z-index: 1; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap; transition: color .25s; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--primary); }
.nav-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(0, 40, 15, .14), 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
  transition: transform .5s cubic-bezier(.34, 1.4, .5, 1), width .5s cubic-bezier(.34, 1.4, .5, 1), opacity .2s;
  opacity: 0;
}
[data-theme="dark"] .nav-thumb { background: #1f3528; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-cta {
  background: linear-gradient(135deg, var(--gold), #ff8a00); color: #fff; padding: 14px 26px; font-size: 17px;
  border-radius: 16px; box-shadow: 0 8px 20px rgba(242, 140, 0, .3);
}
.top-cta:hover { background: linear-gradient(135deg, #ffb81f, #ff7a00); }
.icon-btn {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  width: 44px; height: 44px; font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--primary); }

/* Tor ekranda tablar ikkinchi qatorga tushadi va gorizontal suriladi */
@media (max-width: 1320px) {
  .topbar-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "nav nav"; row-gap: 6px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .nav { justify-self: stretch; }
  .nav a { flex: 1 0 auto; text-align: center; }
}
@media (max-width: 640px) {
  .top-actions .top-cta { display: none; }
  .nav a { padding: 8px 13px; font-size: 14px; }
}
@media (max-width: 420px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: 16px; }
  .brand-logo { width: 46px; height: 46px; }
}

/* ---------- Common ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.page-head { padding-top: 22px; padding-bottom: 0; }
.page-head h1 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.page-head p { margin: 0; color: var(--muted); font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.section-title p { margin: 6px 0 0; color: var(--muted); }
.section-title a { text-decoration: none; font-weight: 700; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 400px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .student-body { padding: 10px; }
  .student-body h3 { font-size: 15px; }
  .student-body .badge { font-size: 11px; }
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--btn); color: var(--on-btn); transition: .15s;
}
.btn:hover { background: var(--btn-hover); }
.btn.outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn.outline:hover { background: var(--primary-soft); }
.btn.gold { background: linear-gradient(135deg, var(--gold), #ff8a00); color: #fff; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.grad { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 10px 24px rgba(0, 98, 37, .28); }
.btn.grad:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.lg { padding: 20px 34px; font-size: 19px; border-radius: 18px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
}
.badge.gold { background: var(--gold-soft); color: var(--gold-dark); }
.muted { color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { text-decoration: none; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none;
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px;
}
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip small { opacity: .7; font-weight: 500; }

/* Rasm topilmasa — bosh harflar chiqadi */
.ph {
  background: linear-gradient(135deg, var(--primary-soft), var(--surface-2));
  color: var(--primary); font-family: var(--display); font-weight: 800; display: grid; place-items: center;
}

/* Scroll paytida paydo bo'lish */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 70px; overflow: hidden; }

.hero h1 {
  font-size: clamp(44px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 26px;
}
.hero h1 .hl { color: var(--primary); }
.hero p.lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--text); opacity: .85; margin: 0 0 34px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Yelpig'ich ko'rinishidagi postlar */
.fan { position: relative; aspect-ratio: 1 / .95; width: 100%; max-width: 640px; margin-left: auto; }

@keyframes twinkle { 50% { transform: scale(.6) rotate(45deg); opacity: .5; } }
@media (max-width: 900px) {

  .fan { margin: 10px auto 0; max-width: 480px; }

}

.stat { padding: 26px 22px; background: var(--surface-2); border: 0; box-shadow: none; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 46px; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.stat span { color: var(--muted); font-weight: 500; }

/* ---------- Ustoz haqida ---------- */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.about-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; font-size: 80px; box-shadow: var(--shadow); }
.about h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; line-height: 1.1; }
.about .role { color: var(--primary); font-weight: 700; margin: 0 0 18px; }
.about p { font-size: 17px; }
.about ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.about li { display: flex; gap: 10px; font-size: 17px; }
.about li::before { content: "✓"; color: #fff; background: var(--primary); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { max-width: 320px; }
}

/* ---------- Kurslar ---------- */
.course { display: flex; flex-direction: column; gap: 10px; transition: transform .2s, border-color .2s; }
.course:hover { transform: translateY(-4px); border-color: var(--primary); }
.course .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); display: grid; place-items: center; font-size: 28px; }
.course h3 { margin: 6px 0 0; font-size: 22px; }
.course p { margin: 0; color: var(--muted); }
.course .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.course .btn { margin-top: 8px; align-self: flex-start; }

/* ---------- Achievements ---------- */
.ach { display: flex; gap: 16px; padding: 18px; transition: transform .2s, border-color .2s; }
.ach:hover { transform: translateY(-3px); border-color: var(--primary); }
.ach-img { width: 92px; height: 115px; border-radius: 12px; object-fit: cover; object-position: top; flex-shrink: 0; font-size: 28px; cursor: zoom-in; }
.ach h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.3; }
.ach p { margin: 0; color: var(--muted); font-size: 14px; }
.ach-year { font-family: var(--display); font-weight: 800; color: var(--primary); font-size: 16px; }

/* ---------- Students ---------- */
.student { padding: 0; overflow: hidden; transition: transform .2s; cursor: zoom-in; }
.student:hover { transform: translateY(-4px); }
.student-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; font-size: 48px; background-size: cover; background-position: top; }
.student-body { padding: 12px 14px 14px; }
.student-body h3 { margin: 0 0 6px; font-size: 17px; }
.student-body .chips-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.student-body p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 52px; height: 52px; font-size: 30px; border-radius: 50%; line-height: 1; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lightbox.single .lb-nav { display: none; }
.lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; font-size: 14px; }
.student:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; }
@media (max-width: 640px) {
  .lb-nav { width: 42px; height: 42px; font-size: 24px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* Iqtiboslar */
.quotes-bg { background: var(--surface-2); }
.quote { position: relative; padding-top: 34px; }
.quote::before { content: "“"; position: absolute; top: -8px; left: 18px; font-family: Georgia, serif; font-size: 80px; line-height: 1; color: var(--primary); }
.quote p { margin: 0 0 16px; font-size: 17px; }
.quote .who { display: flex; align-items: center; gap: 10px; }
.quote .who .ph { width: 40px; height: 40px; border-radius: 50%; font-size: 15px; }
.quote .who b { display: block; font-size: 15px; }
.quote .who span { font-size: 13px; color: var(--muted); }

/* Chaqiruv bloki */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-2)); color: #fff; border-radius: 28px;
  padding: 44px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta::after { content: "✦"; position: absolute; right: 28%; top: -20px; font-size: 140px; opacity: .08; }
.cta h2 { margin: 0 0 6px; font-size: clamp(26px, 3.5vw, 38px); }
.cta p { margin: 0; opacity: .9; font-size: 17px; }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { background: #f0f7f2; }
[data-theme="dark"] .cta .btn { color: #004a1c; }

/* ---------- Tests ---------- */
.class-card { text-decoration: none; color: var(--text); text-align: center; padding: 30px 16px; transition: .2s; }
.class-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.class-card .num { font-family: var(--display); font-size: 52px; font-weight: 800; color: var(--primary); line-height: 1; }
.class-card .lbl { font-weight: 700; margin-top: 6px; }

.list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  text-decoration: none; color: var(--text); padding: 18px 20px; transition: .15s;
}
a.list-item:hover { border-color: var(--primary); }
.list-item h3 { margin: 0 0 4px; font-size: 18px; }
.list-item .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.list-item .arrow { font-size: 20px; color: var(--primary); }

.quiz-wrap { max-width: 800px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; padding: 8px 16px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.timer.warn { background: var(--bad-soft); color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .3s; }
.question { padding: 28px; }
.question h2 { font-size: clamp(20px, 3vw, 26px); margin: 10px 0 22px; line-height: 1.35; letter-spacing: -.01em; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  display: flex; gap: 14px; align-items: center; text-align: left;
  border: 2px solid var(--line); background: var(--surface); padding: 16px 18px; border-radius: 14px;
  cursor: pointer; font: inherit; font-size: 17px; color: var(--text); width: 100%; min-height: 60px;
  transition: border-color .15s, background .15s, transform .1s;
}
.option:hover { border-color: var(--primary-2); }
.option:active { transform: scale(.99); }
.option.selected { border-color: var(--primary); background: var(--primary-soft); }
.option .letter {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 700; font-size: 15px; border: 1px solid var(--line);
}
.option.selected .letter { background: var(--primary); color: #fff; border-color: var(--primary); }
.quiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.quiz-nav .btn { min-width: 140px; padding: 14px 22px; }
.qdots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.qdot {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 14px; cursor: pointer; color: var(--text);
}
.qdot.answered { background: var(--primary-soft); border-color: var(--primary-2); }
.qdot.current { background: var(--primary); color: #fff; border-color: var(--primary); }

.start-card { text-align: center; padding: 34px 24px; }
.start-card .big-ic { font-size: 54px; }
.start-info { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; }
.start-info div { background: var(--surface-2); border-radius: 14px; padding: 12px 20px; min-width: 120px; }
.start-info b { display: block; font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--primary); }
.start-info span { font-size: 13px; color: var(--muted); }
.start-card form { max-width: 380px; margin: 0 auto; text-align: left; }

.result-hero { text-align: center; padding: 36px 20px; position: relative; overflow: hidden; }
.result-hero.great { border-top: 5px solid var(--ok); }
.result-hero.good { border-top: 5px solid var(--gold); }
.result-hero.low { border-top: 5px solid var(--bad); }
.score-ring { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; }
.score-ring span { background: var(--surface); width: 136px; height: 136px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 40px; font-weight: 800; }
.result-hero h2 { margin: 0 0 6px; font-size: 30px; }
.result-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 22px; }
.result-stats div { padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.rs-ok { background: var(--ok-soft); color: var(--ok); }
.rs-bad { background: var(--bad-soft); color: var(--bad); }
.rs-empty { background: var(--surface-2); color: var(--muted); }
.review-item { padding: 16px 18px; border-left: 4px solid var(--line); }
.review-item.ok { border-left-color: var(--ok); }
.review-item.no { border-left-color: var(--bad); }
.review-item h4 { margin: 0 0 8px; }
.review-item p { margin: 2px 0; font-size: 14px; }
.input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px;
  background: var(--surface); color: var(--text);
}
.input:focus { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

/* Mock exam */
.mock { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mock-date { width: 84px; flex-shrink: 0; text-align: center; background: var(--primary-soft); border-radius: 16px; padding: 10px 6px; color: var(--primary); }
.mock-date b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.mock-date span { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.mock-body { flex: 1; min-width: 220px; }
.mock-body h3 { margin: 0 0 4px; font-size: 20px; }
.mock-body p { margin: 0; color: var(--muted); }
.mock-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Materials ---------- */
.mat { display: flex; gap: 14px; align-items: flex-start; }
.mat-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; background: var(--primary-soft); }
.mat h3 { margin: 0 0 4px; font-size: 16px; }
.mat p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.mat a { font-weight: 600; text-decoration: none; }

/* ---------- School ---------- */

.win { display: flex; gap: 16px; align-items: center; }
.win-badge {
  min-width: 84px; height: 84px; padding: 0 8px; border-radius: 20px; flex-shrink: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--gold), #ff8a00); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1;
}
.win h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.35; }
.win p { margin: 0; color: var(--muted); font-size: 14px; }
.club { display: flex; gap: 14px; align-items: center; }

.club h3 { margin: 0; font-size: 18px; }
.club p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .ic { font-size: 26px; width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; flex-shrink: 0; }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */

/* ---------- Admin panel ---------- */
.adm-bar {
  position: sticky; top: var(--hh, 84px); z-index: 20; background: var(--bg); padding: 12px 0;
  display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; flex: 1; min-width: 0; }
.adm-tabs .chip { white-space: nowrap; padding: 7px 14px; font-size: 14px; }
.adm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-shrink: 0; }
@media (max-width: 760px) {
  .adm-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-between;
    background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
  }
  .adm-footer { margin-bottom: 80px; }
}
.adm-status { font-size: 14px; font-weight: 600; color: var(--muted); }
.adm-status.warn { color: var(--gold-dark); }
.adm-status.ok { color: var(--ok); }
.adm-body { padding: 20px; }
.adm-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.adm-field > label, .adm-body > label, .adm-item-body > label { font-weight: 600; font-size: 14px; }
.adm-field small { font-size: 12px; }
.adm-field textarea { resize: vertical; font-family: inherit; }
.adm-fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 14px; }
.adm-fieldset legend { font-weight: 700; padding: 0 6px; }
.adm-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-upload .input { flex: 1; min-width: 180px; }
.adm-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.adm-up-btn { padding: 11px 16px; }
.adm-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.adm-list-head { font-size: 15px; }
.adm-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.adm-item[open] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.adm-item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; font-weight: 600;
}
.adm-item > summary::-webkit-details-marker { display: none; }
.adm-item > summary::before { content: "▸"; color: var(--primary); transition: transform .15s; }
.adm-item[open] > summary::before { transform: rotate(90deg); }
.adm-item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item-btns { display: flex; gap: 4px; flex-shrink: 0; }
.adm-item-body { padding: 14px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 12px 12px; }
.adm-item-body .adm-item { background: var(--surface); }
.icon-btn.sm { width: 32px; height: 32px; font-size: 14px; }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.adm-list-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-variant { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.adm-variant .input { flex: 1; min-width: 0; padding: 10px 12px; }
.adm-radio { display: flex; align-items: center; gap: 4px; font-weight: 700; cursor: pointer; width: 46px; flex-shrink: 0; }
.adm-radio input { width: 18px; height: 18px; accent-color: var(--ok); }
.adm-footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.adm-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 16px; }
.adm-modal-box { width: 100%; max-width: 640px; max-height: 90vh; overflow: auto; }
.adm-example { background: var(--surface-2); border-radius: 10px; padding: 12px; font-size: 13px; overflow-x: auto; margin: 0 0 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 26px 0; margin-top: 40px; font-size: 14px; color: var(--muted); }

.footer a { color: var(--muted); }

/* ============================================================
   FUTURISTIK EFFEKTLAR
   ============================================================ */

/* Orqa fondagi suzib yuruvchi "aurora" nurlari */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(90px); opacity: .16;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: #1fa64f; top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: #00b3a4; bottom: -30vmax; right: -20vmax; animation-duration: 32s; }
.aurora i:nth-child(3) { background: #f2a900; top: 30%; left: 40%; width: 35vmax; height: 35vmax; opacity: .08; animation-duration: 40s; }
[data-theme="dark"] .aurora i { opacity: .28; }
[data-theme="dark"] .aurora i:nth-child(3) { opacity: .12; }
@keyframes drift {
  50% { transform: translate(8vmax, 6vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 10vmax) scale(.9); }
}

/* Shisha (glass) kartalar */
.card {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.topbar { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }

/* 3D egilish (sichqoncha bilan) */
.tilt { transform-style: preserve-3d; will-change: transform; position: relative; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 55%);
  mix-blend-mode: soft-light;
}
.tilt:hover::after { opacity: 1; }
.tilt:hover { box-shadow: 0 24px 50px rgba(0, 70, 25, .18), 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent); }

/* Tablar orasida o'tish animatsiyasi (iOS kabi) */
#app.page-in { animation: pageIn .55s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); }
  to { opacity: 1; transform: none; }
}

/* ---------- Bosh sahifa: 3D kollaj ---------- */
.hero3d {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  min-height: calc(100vh - var(--hh, 84px)); min-height: calc(100svh - var(--hh, 84px));
  display: flex; align-items: center; padding: 60px 0 70px;
  background:
    radial-gradient(60% 80% at 20% 30%, rgba(31, 166, 79, .35), transparent 60%),
    radial-gradient(50% 60% at 90% 90%, rgba(242, 169, 0, .18), transparent 60%),
    #02120a;
  border-radius: 0 0 44px 44px;
}

.wall {
  position: absolute; inset: 0; display: flex; gap: 20px; transform-style: preserve-3d;
  transform: rotateX(calc(22deg + var(--my, 0) * 6deg)) rotateY(calc(-24deg + var(--mx, 0) * 8deg)) rotateZ(12deg);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

@keyframes colUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes colDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.hero3d-text { max-width: 660px; pointer-events: auto; }

@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 122, 0); } }
.hero3d h1 {
  font-size: clamp(36px, 6.4vw, 90px); line-height: 1.02; letter-spacing: -.04em; margin: 22px 0 22px;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 35%, #b9f5cd 50%, #ffffff 65%, #ffffff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
.hero3d h1 .hl {
  background: linear-gradient(90deg, #3ee07a, #b6f35a, #ffd36b, #3ee07a); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite;
  filter: drop-shadow(0 0 24px rgba(62, 224, 122, .35));
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero3d .lead { font-size: clamp(17px, 1.6vw, 21px); color: rgba(255, 255, 255, .78); margin: 0 0 32px; max-width: 560px; }
.hero3d .hero-actions { gap: 14px; }

/* Nur sochuvchi tugma (aylanuvchi chegara) */
.glow-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; border-radius: 18px;
  font-weight: 700; font-size: 18px; color: #02120a; text-decoration: none; isolation: isolate;
  background: linear-gradient(135deg, #3ee07a, #b6f35a); box-shadow: 0 0 40px rgba(62, 224, 122, .45);
  transition: transform .2s, box-shadow .2s;
}
.glow-btn::before {
  content: ""; position: absolute; inset: -3px; border-radius: 21px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), #3ee07a, #ffd36b, #00b3a4, #3ee07a); animation: spin 4s linear infinite;
  filter: blur(6px); opacity: .8;
}
.glow-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 60px rgba(62, 224, 122, .7); }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.glass-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 18px 26px; border-radius: 18px; font-weight: 600; font-size: 17px;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px);
  transition: background .2s;
}
.glass-btn:hover { background: rgba(255, 255, 255, .16); }

@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

@media (max-width: 900px) {

  .hero3d { border-radius: 0 0 28px 28px; padding: 40px 0 70px; }

}

/* ---------- Test papkalari ---------- */
.folder-card { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--text); padding: 22px; }
.folder-num {
  width: 78px; height: 78px; border-radius: 22px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 98, 37, .3);
}
.folder-num small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.folder-body { flex: 1; min-width: 0; }
.folder-body h3 { margin: 0 0 8px; font-size: 20px; }
.folder-card .arrow { font-size: 22px; color: var(--primary); transition: transform .2s; }
.folder-card:hover .arrow { transform: translateX(4px); }
.test-row { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.test-row h3 { margin: 0; }
.test-num {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; font-family: var(--display);
}
.list-item[hidden] { display: none; }

/* ---------- HTML test oynasi ---------- */

.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #dfe8e2; border-top-color: #006225; animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ============================================================
   PREMIUM: kollaj, lenta, sarlavhalar, footer
   ============================================================ */
.hero3d::before {
  /* nozik "don" teksturasi — kinematografik ko'rinish */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--px, 70%) var(--py, 40%), rgba(62, 224, 122, .16), transparent 60%);
  transition: background .2s;
}

.wall {
  gap: 22px;
  transform: rotateX(calc(26deg + var(--my, 0) * 5deg)) rotateY(calc(-10deg + var(--mx, 0) * 7deg)) rotateZ(-14deg);
}

/* Tanlangan o'quvchi kartasi (avtomatik almashadi) */

@keyframes fcbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Yutuqlar lentasi */
.ticker {
  position: relative; overflow: hidden; padding: 18px 0; margin-top: -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 26px; font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; color: var(--text); }
.ticker-item b { color: var(--primary); }
.ticker-item::after { content: "✦"; color: var(--gold); margin-left: 26px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Raqamlangan bo'lim sarlavhalari */
.eyebrow.num::before { content: attr(data-n); display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 8px; background: var(--primary-soft); font-size: 12px; }
.section-title h2 { letter-spacing: -.03em; }

/* Premium kartalar: nozik gradient chegara */
.card { border-color: color-mix(in srgb, var(--primary) 10%, var(--line)); }
.student { border-radius: 20px; }
.student .student-img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.student:hover .student-img { transform: scale(1.04); }
.student { overflow: hidden; }

/* Premium footer */
.footer { background: #02120a; color: rgba(255, 255, 255, .7); border: 0; padding: 64px 0 0; margin-top: 60px; border-radius: 40px 40px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; left: -200px; top: -300px; background: radial-gradient(circle, rgba(31, 166, 79, .25), transparent 70%); pointer-events: none; }
.footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; position: relative; }
.footer h4 { color: #fff; font-family: var(--display); font-size: 16px; margin: 0 0 16px; }
.f-brand { display: flex; flex-direction: column; gap: 14px; }
.f-logo { display: flex; align-items: center; gap: 12px; }
.f-logo img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.f-logo b { color: #fff; font-family: var(--display); font-size: 18px; display: block; }
.f-logo span { font-size: 13px; }
.f-links { display: flex; flex-direction: column; gap: 10px; }
.f-cta p { margin: 0 0 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 16px; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; position: relative; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer { border-radius: 28px 28px 0 0; } }

/* ============================================================
   CHEKSIZ KOLLAJ (bosh sahifa)
   ============================================================ */
.hero-inf { padding: 40px 0; }
.inf-wall {
  position: absolute; inset: 0 -8px; z-index: -2; display: flex; align-items: flex-start; gap: 12px; padding: 0 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.inf-wall { gap: 7px; padding: 0 7px; }
.icol {
  flex: 1 1 0; min-width: 0; will-change: transform;
  animation: colUp var(--d, 110s) linear infinite; animation-delay: var(--o, 0s);
}
.icol:nth-child(even) { animation-name: colDown; }
.inf-wall:hover .icol { animation-play-state: paused; }
.itile {
  position: relative; margin-bottom: 7px; aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden; cursor: zoom-in; background: #0b2a17;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .08);
  filter: brightness(.86) saturate(.95);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, filter .35s;
}
.itile img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: opacity .35s; }
.itile img[data-wall] { opacity: 0; }
.itile:hover, .itile.pop {
  transform: scale(1.6); z-index: 3; filter: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 0 2px #3ee07a, 0 0 26px rgba(62, 224, 122, .55);
}
.inf-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #02120a 0%, rgba(2, 18, 10, .94) 28%, rgba(2, 18, 10, .55) 50%, rgba(2, 18, 10, .1) 72%, transparent 100%);
}
.inf-inner { position: relative; pointer-events: none; }
.inf-inner .hero3d-text { max-width: 600px; pointer-events: auto; }
.hero-inf h1 { font-size: clamp(36px, 5vw, 80px); }
@media (max-width: 900px) {
  .inf-shade { background: linear-gradient(180deg, rgba(2, 18, 10, .82), rgba(2, 18, 10, .72) 55%, rgba(2, 18, 10, .5)); }
  .inf-wall { gap: 5px; padding: 0 5px; }
  .itile { margin-bottom: 5px; border-radius: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .icol { animation: none; }
}

/* ---------- Testlar ro'yxati ---------- */
.test-search { max-width: 460px; margin-bottom: 18px; display: block; }
.test-info { min-width: 0; }
.test-info h3 { margin: 0; }
.test-info p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.test-info .meta { margin-top: 6px; }
.test-item[hidden], #folderGrid[hidden] { display: none; }

/* Boshqa hostingdagi test uchun yordam */
.player-hint {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: 8px;
  max-width: calc(100% - 110px); padding: 6px 10px; border-radius: 10px; font-size: 12px; color: #fff; background: rgba(2, 18, 10, .78);
}
.player-hint[hidden] { display: none; }
.player-hint a { color: #8fe8ad; font-weight: 700; white-space: nowrap; }
.player-hint button { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: 2px 6px; }

/* ---------- Admin: test boshqaruvi ---------- */
.tm { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.tm-side, .tm-add, .tm-list { padding: 18px; }
.tm-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tm-folders { display: flex; flex-direction: column; gap: 6px; }
.tm-folder { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tm-folder.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tm-folder.off .tm-fname span { opacity: .5; text-decoration: line-through; }
.tm-folder .adm-item-btns { padding: 0 8px 8px; }
.tm-fname { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.tm-fname small { color: var(--muted); }
.tm-newfolder { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.tm-inline { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.tm-inline .input, .tm-grid .input { padding: 10px 12px; font-size: 15px; }
.tm-backup { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.tm-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; min-width: 0; }
.tm-grid .wide { grid-column: 1 / -1; }
.tm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-msg { margin: 10px 0 0; color: var(--primary); font-weight: 600; font-size: 14px; }
.tm-bulk { margin-top: 12px; }
.tm-bulk summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.tm-bulk p { margin: 8px 0; font-size: 14px; }
.tm-bulk textarea { margin-bottom: 8px; font-family: inherit; resize: vertical; }
.tm-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-tools .input { width: 200px; padding: 8px 12px; font-size: 14px; }
.tm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tm-row[hidden] { display: none; }
.tm-row.off .tm-info b { opacity: .55; }
.tm-info { flex: 1; min-width: 0; }
.tm-info a, .tm-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.tm-info a { text-decoration: none; }
.tm-info small { color: var(--muted); }
.tm-edit { padding: 12px; margin: 8px 0; border-radius: 12px; background: var(--surface-2); }
.tm-none { margin: 0; }
.adm-status.bad { color: var(--bad); }
@media (max-width: 860px) {
  .tm { grid-template-columns: minmax(0, 1fr); }
  .tm-row { flex-wrap: wrap; }
  .tm-info { flex-basis: calc(100% - 60px); }
  .tm-row .adm-item-btns { margin-left: 48px; }
}
/* ---------- 3D ikonlar ---------- */
.i3d { width: 1.3em; height: 1.3em; object-fit: contain; vertical-align: -.3em; display: inline-block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18)); }
.i3d.sm { width: 1.2em; height: 1.2em; vertical-align: -.28em; }
.i3d.md { width: 28px; height: 28px; vertical-align: middle; }
.i3d.xl { width: 72px; height: 72px; }
span.i3d { width: auto; height: auto; filter: none; }
.course .ic, .feature .ic, .mat-icon, .tile-ic { background: linear-gradient(145deg, var(--primary-soft), color-mix(in srgb, var(--primary-soft) 40%, var(--surface))); }
.course .ic .i3d, .feature .ic .i3d, .mat-icon .i3d { width: 34px; height: 34px; vertical-align: middle; }
.tile-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.tile-ic .i3d { width: 32px; height: 32px; }
.mock-date .i3d { width: 36px; height: 36px; display: block; margin: 0 auto 2px; }
.badge .i3d { width: 1.25em; height: 1.25em; }
.icon-btn .i3d { width: 24px; height: 24px; }
.brand-ic { width: 100%; height: 100%; display: block; }

/* ---------- Natijalar: filtr paneli (tablar ostida, bitta qatorda) ---------- */
.filterbar {
  position: sticky; top: var(--hh, 84px); z-index: 30; padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}
.filter-line { display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-line::-webkit-scrollbar { display: none; }
.seg {
  display: inline-flex; flex-shrink: 0; gap: 2px; padding: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent); border: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
}
.seg a {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, box-shadow .25s;
}
.seg a:hover { color: var(--text); }
.seg a.active { background: var(--surface); color: var(--primary); box-shadow: 0 3px 10px rgba(0, 40, 15, .14), 0 1px 2px rgba(0, 0, 0, .08); }
[data-theme="dark"] .seg a.active { background: #1f3528; }
.seg-sep { width: 1px; height: 26px; background: var(--line); flex-shrink: 0; }

/* Natijalar guruhlari */
.result-group { padding-top: 32px; }
.result-group:first-of-type { padding-top: 6px; }
.rg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rg-year {
  font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; padding: 7px 13px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 16px rgba(0, 98, 37, .25);
}
.rg-head h2 { margin: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.15; }
.rg-head p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Bog'lanish kartalari ---------- */

.f-contact { display: flex; align-items: center; gap: 12px; }
.f-contact small { display: block; font-size: 12px; color: rgba(255, 255, 255, .5); }
.f-ic { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.f-ic .i3d { width: 22px; height: 22px; }
.f-ic .brand-ic { width: 26px; height: 26px; }

/* ---------- Maktab rasmi — kesilmasdan to'liq ---------- */

/* ---------- Test pleyeri ---------- */
body.player-mode .footer { display: none; }
body.player-mode .aurora { display: none; }
.player { display: flex; flex-direction: column; height: calc(100vh - var(--hh, 84px)); height: calc(100dvh - var(--hh, 84px)); padding: 10px 12px 12px; gap: 10px; }
.player-bar {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 18px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 40, 15, .08);
}
.pb-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 10px; border-radius: 12px; text-decoration: none;
  color: var(--primary); font-weight: 700; font-size: 14px; background: var(--primary-soft); flex-shrink: 0; max-width: 240px;
}
.pb-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-back:hover { filter: brightness(.97); }
.pb-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pb-ic .i3d { width: 32px; height: 32px; vertical-align: middle; }
.pb-title > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pb-title small { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-title b { font-family: var(--display); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pb-btn {
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; font: inherit; font-weight: 600; font-size: 14px;
  transition: border-color .2s, color .2s, background .2s;
}
.pb-btn:hover { border-color: var(--primary); color: var(--primary); }
.pb-btn.off { opacity: .35; pointer-events: none; }
.pb-full { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: 0; padding: 0 14px; }
.pb-full:hover { color: #fff; filter: brightness(1.08); }
.pb-sep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
.player-stage {
  position: relative; flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 40, 15, .12);
}
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.player-stage:fullscreen { border-radius: 0; border: 0; }
.player-stage:-webkit-full-screen { border-radius: 0; border: 0; }
.player-exit {
  display: none; position: absolute; left: 10px; bottom: 10px; z-index: 4; padding: 6px 11px; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; color: #fff; background: rgba(2, 18, 10, .62);
}
.player-exit:hover { background: rgba(2, 18, 10, .92); }
.player-stage:fullscreen .player-exit { display: block; }
.player-stage:-webkit-full-screen .player-exit { display: block; }
body.player-pseudo .player-exit { display: block; }
body.player-pseudo .topbar, body.player-pseudo .player-bar { display: none; }
body.player-pseudo .player { position: fixed; inset: 0; z-index: 100; height: 100vh; height: 100dvh; padding: 0; }
body.player-pseudo .player-stage { border: 0; border-radius: 0; }
.player-state {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px; background: #fff; color: #33433a;
}
.player-state[hidden] { display: none; }
.player-state b { font-family: var(--display); font-size: 20px; color: #0c1f13; }
.player-state span { color: #5b6b61; }
@media (max-width: 760px) {
  .player { padding: 8px; gap: 8px; }
  .player-bar { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .pb-back span, .pb-full span { display: none; }
  .pb-back { padding: 9px 10px; }
  .pb-title { order: 3; flex-basis: 100%; }
  .pb-actions { margin-left: auto; }
  .player-stage { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
  .aurora i, .hero3d h1, .hero3d h1 .hl, .glow-btn::before { animation: none !important; }
  #app.page-in { animation: none; }
}

/* ============================================================
   MAKTABIMIZ
   ============================================================ */
.sch-top { padding-top: 32px; }
.sch-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.sch-hero h1 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.06; margin: 14px 0 12px; }
.sch-motto { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); margin: 0 0 26px; }
.sch-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--primary-soft); color: var(--primary); }
.sch-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-2); flex-shrink: 0; }
.sch-photo { position: relative; width: 100%; max-width: 540px; justify-self: end; border-radius: 22px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); background: var(--surface-2); }
.sch-photo { aspect-ratio: 4 / 3; } /* rasm yuklanguncha joyi band turadi, pastdagi bloklar sakramaydi */
.sch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sch-stats {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 32px; padding: 22px 0; border-radius: 20px;
  background: var(--surface-2);
}
.sch-stats > div { padding: 0 18px; border-left: 1px solid var(--line); min-width: 0; }
.sch-stats > div:first-child { border-left: 0; }
.sch-stats b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; color: var(--primary); }
.sch-stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.sch-about { font-size: 18px; max-width: 860px; margin: 0 0 30px; }
.sch-day { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sch-day::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.sch-step { position: relative; padding-top: 26px; }
.sch-step::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.sch-step b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--primary); line-height: 1.1; }
.sch-step span { color: var(--muted); font-size: 15px; }
.sch-admit {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 32px; align-items: center; padding: 36px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, #02331a, #006225 70%, #1fa64f);
}
.sch-admit .eyebrow { color: #a8ecbf; }
.sch-admit h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.sch-admit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sch-admit-grid > div { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.sch-admit-grid b { display: block; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; }
.sch-admit-grid span { display: block; margin-top: 8px; font-size: 14px; opacity: .88; line-height: 1.35; }
.sch-clubs { display: flex; flex-wrap: wrap; gap: 10px; }
.sch-club { display: flex; align-items: baseline; gap: 10px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sch-club b { font-family: var(--display); font-size: 16px; }
.sch-club small { color: var(--muted); }
.info-card { padding: 8px 22px; max-width: 860px; }
.info-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.info-card .info-row:first-child { border-top: 0; }
.info-ic { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); }
.info-ic .i3d { width: 26px; height: 26px; }
.info-body { flex: 1; min-width: 0; }
.info-body small { display: block; color: var(--muted); font-size: 13px; }
.info-body b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.info-go { flex-shrink: 0; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) {
  .sch-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sch-photo { justify-self: start; }
  .sch-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .sch-stats > div:nth-child(3n + 1) { border-left: 0; }
  .sch-admit { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .sch-admit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-day { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .sch-day::before { display: none; }
}
@media (max-width: 560px) {
  .sch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sch-stats > div:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .sch-stats > div:nth-child(odd) { border-left: 0; }
  .info-row { flex-wrap: wrap; }
  .info-go { margin-left: 58px; }
}

/* ============================================================
   BOG'LANISH
   ============================================================ */
.ct-top { padding-top: 28px; }
.ct-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: center;
  padding: 48px; border-radius: 30px; color: #fff;
  background: radial-gradient(70% 90% at 15% 10%, rgba(31, 166, 79, .4), transparent 60%), #02120a;
}
.ct-hero .eyebrow { color: #8fe8ad; }
.ct-hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; margin: 4px 0 16px; }
.ct-hero h1 span { color: #3ee07a; }
.ct-hero p { font-size: 18px; color: rgba(255, 255, 255, .78); margin: 0 0 28px; max-width: 560px; }
.ct-person { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); max-width: 300px; justify-self: end; }
.ct-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; font-size: 56px; }
.ct-person b { display: block; font-family: var(--display); font-size: 19px; }
.ct-person span { display: block; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .68); margin-top: 2px; }
.ct-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 18px; }
.channel { display: flex; flex-direction: column; padding: 22px; text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.channel:hover { border-color: var(--primary); }
.channel.main { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.channel-ic { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 14px; background: var(--primary-soft); }
.channel-ic .i3d { width: 32px; height: 32px; }
.channel-ic .brand-ic { width: 40px; height: 40px; }
.channel small { color: var(--muted); font-weight: 600; font-size: 13px; }
.channel b { font-family: var(--display); font-size: 18px; overflow-wrap: anywhere; line-height: 1.25; margin-top: 2px; }
.channel p { margin: 8px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.channel-go { margin-top: auto; color: var(--primary); font-weight: 700; font-size: 14px; }
.ct-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: stretch; padding-top: 32px; }
.ct-more h2 { margin: 0 0 14px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
.ct-tips ol { list-style: none; counter-reset: q; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ct-tips li { counter-increment: q; position: relative; padding-left: 46px; min-height: 34px; }
.ct-tips li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.ct-tips b, .ct-tips span { display: block; }
.ct-tips span { color: var(--muted); font-size: 14px; }
.ct-school .btn { margin-top: 14px; }
@media (max-width: 800px) {
  .ct-hero { grid-template-columns: minmax(0, 1fr); padding: 30px 22px; border-radius: 24px; gap: 24px; }
  .ct-person { flex-direction: row; align-items: center; max-width: none; justify-self: stretch; padding: 10px; }
  .ct-photo { width: 68px; height: 68px; flex-shrink: 0; font-size: 22px; }
}
@media (max-width: 400px) {
  .ct-more { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   MENYU, TIL TUGMASI
   ============================================================ */
.topbar .container { max-width: 1480px; }
.top-actions .icon-btn { flex-shrink: 0; }
.lang { position: relative; }
.lang-btn { width: auto; min-width: 58px; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: 14px; }
.lang-btn svg { transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 172px; padding: 6px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0, 40, 15, .18);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 11px; background: none;
  color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.lang-menu button b { width: 26px; font-size: 12px; color: var(--muted); }
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.lang-menu button.on b { color: var(--primary); }

.drawer-back { position: fixed; inset: 0; z-index: 90; background: rgba(2, 18, 10, .5); opacity: 0; pointer-events: none; transition: opacity .28s; }
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; display: flex; flex-direction: column; gap: 14px; width: min(340px, 88vw); padding: 16px;
  background: var(--surface); box-shadow: -20px 0 60px rgba(0, 30, 12, .22); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
/* Telefonda brend nomi tugmalarga tegmasin: ikki qatorga tushadi */
@media (max-width: 420px) {
  .brand { gap: 9px; flex-shrink: 1; }
  .brand-text strong { white-space: normal; font-size: 13.5px; line-height: 1.12; }
}
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head b { font-family: var(--display); font-size: 21px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 12px; border-radius: 14px; color: var(--text); font-weight: 600; text-decoration: none;
  transition: background .18s, color .18s;
}
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-nav a.active { background: var(--primary-soft); color: var(--primary); }
.dr-ic { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; }
.dr-ic .i3d { width: 28px; height: 28px; }
.dr-arrow { margin-left: auto; font-size: 22px; line-height: 1; color: var(--muted); }
.drawer-profile {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 8px 16px; border-radius: 16px; color: #fff; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 24px rgba(0, 98, 37, .28);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.drawer-profile:hover { transform: translateY(-2px); filter: brightness(1.06); }
.drawer-profile .dr-ic { width: 28px; height: 28px; }
.drawer-profile .i3d { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .nav { display: none; }
  .topbar-inner { row-gap: 0; }
}
@media (max-width: 1500px) {
  .top-actions .top-cta { display: none; }
}
@media (max-width: 400px) {
  .top-actions { gap: 6px; }
  .brand-text strong { font-size: 14px; }
  .brand-logo { width: 40px; height: 40px; }
}

/* ============================================================
   TUGMALAR — yagona uslub
   ============================================================ */
.btn, .glow-btn, .glass-btn, .top-cta {
  min-height: 46px; border-radius: 14px; font-weight: 700; letter-spacing: -.005em; line-height: 1.2; text-align: center;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background-color .2s, border-color .2s, color .2s, filter .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn.sm { min-height: 38px; border-radius: 11px; }
.btn.lg { min-height: 58px; border-radius: 17px; }
.btn:not(.outline):not(.gold):not(.grad) { box-shadow: 0 6px 16px rgba(0, 98, 37, .22); }
.btn.grad, .top-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0b7a33 55%, var(--primary-2) 100%); color: #fff;
  box-shadow: 0 8px 20px rgba(0, 98, 37, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.top-cta { padding: 11px 20px; font-size: 15px; }
.top-cta:hover { background: linear-gradient(135deg, var(--primary) 0%, #0b7a33 55%, var(--primary-2) 100%); }
.btn.gold { box-shadow: 0 8px 20px rgba(242, 140, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.outline { border-width: 1.5px; background: var(--surface); }
.btn.outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn:hover:not(:disabled), .glass-btn:hover, .top-cta:hover { transform: translateY(-2px); }
.btn.grad:hover, .top-cta:hover { filter: brightness(1.07); box-shadow: 0 12px 26px rgba(0, 98, 37, .34), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn:active:not(:disabled), .glow-btn:active, .glass-btn:active, .top-cta:active, .drawer-profile:active { transform: translateY(0) scale(.98); }
.glow-btn { min-height: 56px; }
.glass-btn { min-height: 56px; }
.icon-btn { border-radius: 13px; box-shadow: 0 1px 3px rgba(0, 40, 15, .08); transition: transform .16s, border-color .2s, background-color .2s, box-shadow .2s; }
.icon-btn:hover:not(:disabled) { transform: translateY(-1px); background: var(--surface-2); border-color: var(--primary); box-shadow: 0 5px 14px rgba(0, 40, 15, .12); }
.icon-btn:active:not(:disabled) { transform: scale(.95); }
.pb-btn { transition: transform .16s, border-color .2s, color .2s, background-color .2s; }
.pb-btn:active { transform: scale(.96); }
.chip, .seg a { min-height: 38px; display: inline-flex; align-items: center; }
.btn:focus-visible, .glow-btn:focus-visible, .glass-btn:focus-visible, .icon-btn:focus-visible, .pb-btn:focus-visible, .chip:focus-visible,
.seg a:focus-visible, .nav a:focus-visible, .drawer-nav a:focus-visible, .drawer-profile:focus-visible, .lang-menu button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn:disabled { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .glow-btn, .glass-btn, .top-cta, .icon-btn, .pb-btn, .drawer, .drawer-back, .drawer-profile { transition: none; }
}

