/* ALHIKMA — asosiy ko'rinishning yangi uslubi ("ALHIKMA AI" konsepti): to'q binafsha shisha panellar, maskot,
   tezkor menyu, rasmli kurs kartalari, telefonda pastki menyu. Faqat oddiy sahifaga ta'sir qiladi —
   3D zal (.holo / .holo-wait) o'zgarmaydi. Barcha qoidalar :root:not(.holo):not(.holo-wait) ostida. */

/* 3D zalda yangi qismlar ko'rinmaydi */
.holo .neo-only, .holo-wait .neo-only { display: none !important; }
.tabbar { display: none; }

:root:not(.holo):not(.holo-wait) {
  --n-bg: #0a0617;
  --n-panel: rgba(26, 16, 54, .62);
  --n-panel-2: rgba(36, 22, 74, .7);
  --n-line: rgba(176, 140, 255, .2);
  --n-line-2: rgba(190, 160, 255, .42);
  --n-acc: #8b5cf6;
  --n-acc-2: #a855f7;
  --n-btn: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #c084fc 100%);
  --n-head: 'Manrope', 'Inter', system-ui, sans-serif;
  --head: var(--n-head);
  --r: 22px;
}
:root:not(.holo):not(.holo-wait) .rail { display: none; }

/* ===== Fon: kechki shahar chiroqlari kabi yumshoq binafsha nurlar ===== */
:root:not(.holo):not(.holo-wait) body { background: var(--n-bg); font-family: 'Inter', system-ui, -apple-system, sans-serif; }
:root:not(.holo):not(.holo-wait) body::before {
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(168, 85, 247, .30), transparent 62%),
    radial-gradient(800px 600px at -8% 22%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(700px 500px at 100% 55%, rgba(236, 72, 153, .10), transparent 60%),
    radial-gradient(900px 700px at 30% 105%, rgba(99, 102, 241, .16), transparent 60%),
    linear-gradient(180deg, #0d0720 0%, #0a0617 40%, #0b0619 100%);
}
:root.no-gl:not(.holo) body::after, :root:not(.holo):not(.holo-wait):not(.gl-on) body::after { opacity: .35; }
:root:not(.holo):not(.holo-wait) h1, :root:not(.holo):not(.holo-wait) h2 { font-family: var(--n-head); letter-spacing: -.02em; }
:root:not(.holo):not(.holo-wait) .grad { background: linear-gradient(100deg, #c084fc 0%, #a855f7 45%, #818cf8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Tugmalar ===== */
:root:not(.holo):not(.holo-wait) .btn { background: var(--n-btn); border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(168, 85, 247, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
:root:not(.holo):not(.holo-wait) .btn-ghost { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--n-line-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root:not(.holo):not(.holo-wait) .btn-ghost:hover { background: rgba(168, 85, 247, .14); }
:root:not(.holo):not(.holo-wait) .btn .play { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #7c3aed; font-size: 11px; padding-left: 2px; }

/* ===== Yuqori panel: shisha "kapsula" ===== */
:root:not(.holo):not(.holo-wait) .top { padding-top: 10px; }
:root:not(.holo):not(.holo-wait) .top-in { height: 64px; padding: 0 10px 0 16px; border-radius: 20px; background: rgba(18, 10, 40, .55); border: 1px solid var(--n-line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); max-width: calc(var(--wrap) + 20px); }
:root:not(.holo):not(.holo-wait) .top.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
:root:not(.holo):not(.holo-wait) .top.scrolled .top-in { background: rgba(14, 8, 32, .86); }
:root:not(.holo):not(.holo-wait) .brand b { font-family: var(--n-head); font-weight: 800; }
:root:not(.holo):not(.holo-wait) .nav a:not(.btn) { border-radius: 999px; font-size: 14.5px; padding: 8px 13px; }
:root:not(.holo):not(.holo-wait) .nav a:not(.btn):hover, :root:not(.holo):not(.holo-wait) .nav a.active { background: rgba(168, 85, 247, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(192, 132, 252, .35); }
/* UZ / 3D tugmalari va menyu tugmasi — binafsha kapsula (eski moviy rang emas) */
:root:not(.holo):not(.holo-wait) .mode-btn { height: 40px; border-radius: 999px; border: 1px solid var(--n-line-2); background: rgba(255, 255, 255, .04); color: #e9e3ff; font: 700 13px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .06em; }
:root:not(.holo):not(.holo-wait) .mode-btn:hover { background: rgba(168, 85, 247, .18); color: #fff; }
:root:not(.holo):not(.holo-wait) .burger { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--n-line-2); background: rgba(255, 255, 255, .04); }
:root:not(.holo):not(.holo-wait) .burger span { background: #e9e3ff; }
:root:not(.holo):not(.holo-wait) .burger[aria-expanded="true"] { background: rgba(168, 85, 247, .2); }
.nav .nv-ic { display: none; }

/* ===== Bosh qism ===== */
:root:not(.holo):not(.holo-wait) .hero { padding: 140px 0 46px; min-height: min(100vh, 860px); }
:root:not(.holo):not(.holo-wait) .hero::before { background: radial-gradient(ellipse 55% 70% at 20% 45%, rgba(10, 6, 23, .55), transparent 75%); }
:root:not(.holo):not(.holo-wait) .hero-in { position: relative; z-index: 2; transform: none; }
:root:not(.holo):not(.holo-wait) .hero-in > * { max-width: 600px; }
:root:not(.holo):not(.holo-wait) .hero h1 { font-size: clamp(38px, 5.2vw, 70px); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: -.025em; filter: drop-shadow(0 6px 30px rgba(124, 58, 237, .45)); }
:root:not(.holo):not(.holo-wait) .hero h1 .h1-a { color: #fff; }
:root:not(.holo):not(.holo-wait) .hero h1 > span { display: block; }
:root:not(.holo):not(.holo-wait) .hero h1 { max-width: 640px; }
:root:not(.holo):not(.holo-wait) .hero h1 .grad { animation: none; }
:root:not(.holo):not(.holo-wait) .chip { background: rgba(168, 85, 247, .14); border-color: var(--n-line-2); border-radius: 999px; }
:root:not(.holo):not(.holo-wait) .quote, :root:not(.holo):not(.holo-wait) .scroll-hint { display: none; }
:root:not(.holo):not(.holo-wait) .stats { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; max-width: 760px; border-radius: 22px; background: var(--n-panel); border: 1px solid var(--n-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; position: relative; z-index: 2; }
:root:not(.holo):not(.holo-wait) .stats li { background: none; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 18px 20px; }
:root:not(.holo):not(.holo-wait) .stats li + li { border-left: 1px solid var(--n-line); }
:root:not(.holo):not(.holo-wait) .stats b { font-family: var(--n-head); font-weight: 800; background: none; color: #fff; -webkit-background-clip: border-box; background-clip: border-box; }
:root:not(.holo):not(.holo-wait) .stats span { font-size: 13px; }

/* maskot va tezkor menyu (kompyuter: o'ng tomonda) */
.hero-ai { position: absolute; z-index: 1; top: 118px; right: max(12px, calc((100vw - var(--wrap)) / 2)); width: min(600px, 45vw); height: min(700px, calc(100% - 130px)); pointer-events: none; }
.ai-fig { position: absolute; left: 0; bottom: 0; width: 62%; height: 100%; margin: 0; }
.ai-fig::before { content: ""; position: absolute; inset: 10% 0 0 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 85, 247, .55), rgba(124, 58, 237, .18) 60%, transparent); filter: blur(30px); }
/* rasm chetlari fonga singib ketadi (yon tomonlar va past) */
/* jonli video-qiz (js/aivid.js): poster rasm ostida, ustida kutish va harakat videolari; chetlari fonga singadi */
.ai-vid { position: relative; width: 100%; height: 100%; }
.ai-fig .ai-vid > :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 66%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 66%, transparent 98%);
  mask-composite: intersect; }
/* har bir holatning o'z videosi; ko'rinadigani — .on (o'tishni js/aivid.js boshqaradi) */
.ai-vid > video.aiv { display: block; background: transparent; opacity: 0; }
.ai-vid > video.aiv.on { opacity: 1; }
/* qizga tegish mumkin — sezadi */
.ai-fig .ai-vid, .chat-box .ai-stage { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* chat: sarlavha ostida yarim tana */
.chat-box .ai-stage { position: relative; flex: none; height: var(--stage-h); overflow: hidden; background: transparent; border: 0; }
.chat-box .ai-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); }
/* chat: sarlavha qatori yo'q — qiz eng tepada, nomi uning ustida (pastki chapda); yopish — pastki menyu, AI tugmasi yoki chatdan tashqarini bosish */
:root:not(.holo):not(.holo-wait) .chat-box { --stage-h: clamp(200px, 38vh, 300px); }
@media (max-height: 620px) { :root:not(.holo):not(.holo-wait) .chat-box { --stage-h: 150px; } }
:root:not(.holo):not(.holo-wait) .chat-box header { position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--stage-h) - 52px); padding: 0 14px !important; border: 0 !important; background: none; pointer-events: none; }
:root:not(.holo):not(.holo-wait) .chat-box header .ai-ava-live, :root:not(.holo):not(.holo-wait) .chat-box header .chat-x { display: none; }
:root:not(.holo):not(.holo-wait) .chat-box header b { font-size: 15px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
:root:not(.holo):not(.holo-wait) .chat-box header small { color: #d8ccff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
:root:not(.holo):not(.holo-wait) .chat-box header .chat-voice { pointer-events: auto; }
/* jim turganda — juda yengil nafas (bosh tebranmaydi) */
.ai-vid.calm > video.on { animation: aiCalm 5.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes aiCalm { 0%, 100% { transform: none; } 50% { transform: scale(1.006) translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .ai-vid.calm > video.on { animation: none; } }
.chat-box .ai-stage::after { content: none; }
/* AI-qizning o'zi bergan taklifi (js/aivid.js) — chat tugmasi ustida; telefonda pastki menyudagi AI ustida */
.ai-tip { position: fixed; z-index: 64; right: 18px; bottom: 150px; display: flex; gap: 12px; align-items: flex-start; width: min(340px, calc(100vw - 24px)); padding: 14px 14px 12px;
  border-radius: 20px 20px 6px 20px; background: linear-gradient(180deg, rgba(36, 20, 76, .97), rgba(18, 10, 40, .97)); border: 1px solid var(--n-line-2, rgba(190, 160, 255, .42));
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 36px -14px rgba(168, 85, 247, .8); color: #f1edff; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .3s, transform .3s; pointer-events: none; }
body.ai-tipping .ai-bubble, body:has(.chat-box:not([hidden])) .ai-bubble { opacity: 0; transition: opacity .3s; }  /* taklif yoki chat ochiq — salom pufagi yashirinadi */
.ai-tip.on { opacity: 1; transform: none; pointer-events: auto; }
.ai-tip img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #a855f7; }
.ai-tip p { margin: 0 0 10px; font: 600 14px/1.45 'Inter', system-ui, sans-serif; }
.ai-tip span { display: flex; gap: 8px; }
.ai-tip button { border: 0; cursor: pointer; font: 700 13px/1 'Inter', system-ui, sans-serif; }
.ai-tip-yes { padding: 9px 16px; border-radius: 999px; color: #fff; background: var(--n-btn, linear-gradient(135deg, #7c3aed, #a855f7 60%, #c084fc)); }
.ai-tip-x { width: 32px; height: 32px; margin-left: auto; border-radius: 50%; color: #c4b5fd; background: rgba(255, 255, 255, .06); }
@media (max-width: 760px) { .ai-tip { right: 50%; bottom: 96px; transform: translate(50%, 14px) scale(.96); border-radius: 20px; } .ai-tip.on { transform: translate(50%, 0); } }
@media (prefers-reduced-motion: reduce) { .ai-tip { transition: none; } }
@keyframes aiRing { from { box-shadow: 0 0 0 0 rgba(192, 132, 252, .75), 0 0 16px rgba(168, 85, 247, .7); } to { box-shadow: 0 0 0 7px rgba(192, 132, 252, 0), 0 0 24px rgba(168, 85, 247, .9); } }
@keyframes aiWave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
/* chat sarlavhasidagi jonli avatar */
.ai-ava-live { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid #a855f7; background: #1a1036; box-shadow: 0 0 14px -2px rgba(168, 85, 247, .7); }
.chat-box .ai-ava-live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-ava-live::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; border: 2px solid #1a1036; }
.ai-wave { display: none; align-items: center; gap: 3px; height: 14px; margin-left: 6px; vertical-align: middle; }
.ai-wave i { display: block; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(#e9d5ff, #a855f7); transform-origin: 50% 50%; animation: aiWave .42s ease-in-out infinite alternate; }
.ai-wave i:nth-child(2) { animation-delay: .12s; } .ai-wave i:nth-child(3) { animation-delay: .24s; } .ai-wave i:nth-child(4) { animation-delay: .06s; }
.chat.talking .ai-ava-live { animation: aiRing .9s ease-out infinite; }
.chat.talking .ai-wave { display: inline-flex; }
.chat.thinking .ai-ava-live { animation: aiRing 1.6s ease-out infinite; }
.chat-voice { flex: none; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; border: 1px solid var(--n-line-2, rgba(190, 160, 255, .42)); background: rgba(255, 255, 255, .05); color: #e9e3ff; font-size: 15px; cursor: pointer; }
.chat-voice[aria-pressed="true"] { background: rgba(168, 85, 247, .3); border-color: #c084fc; }
.chat-voice + .chat-x { margin-left: 6px !important; }
@media (prefers-reduced-motion: reduce) { .chat.talking .ai-ava-live, .chat.thinking .ai-ava-live { animation: none !important; } }
.ai-bubble { position: absolute; top: 2%; right: 0; width: 46%; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: rgba(30, 18, 64, .82); border: 1px solid var(--n-line-2); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset; font-size: 14px; line-height: 1.45; color: #e9e3ff; pointer-events: auto; }
.ai-bubble b { display: block; font: 800 15px/1.3 var(--n-head, 'Manrope'), sans-serif; color: #fff; margin-bottom: 3px; }
.ai-menu { position: absolute; right: 0; top: 26%; width: 46%; display: grid; gap: 8px; padding: 10px; border-radius: 20px; background: rgba(20, 12, 44, .72); border: 1px solid var(--n-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: auto; }
.ai-menu a, .ai-menu button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 13px; border: 1px solid rgba(190, 160, 255, .16); background: rgba(255, 255, 255, .035); color: #f1edff; font: 600 14px/1.2 'Inter', sans-serif; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.ai-menu a:hover, .ai-menu button:hover { background: rgba(168, 85, 247, .2); border-color: rgba(192, 132, 252, .5); transform: translateX(-2px); }
.ai-menu svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: #c4b5fd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ai-menu em { margin-left: auto; font-style: normal; color: #a78bfa; }

/* ===== Bo'lim sarlavhalari: chapga, ixcham ===== */
:root:not(.holo):not(.holo-wait) .sec { padding: 72px 0; }
:root:not(.holo):not(.holo-wait) .sec-head { text-align: left; max-width: none; margin: 0 0 30px; }
:root:not(.holo):not(.holo-wait) .sec-head::before { display: none; }
:root:not(.holo):not(.holo-wait) .sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; text-shadow: none; }
:root:not(.holo):not(.holo-wait) .sec-head p:not(.eyebrow) { color: var(--muted); margin-top: 8px; max-width: 640px; }
:root:not(.holo):not(.holo-wait) .eyebrow { padding: 5px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: .16em; background: rgba(168, 85, 247, .13); border: 1px solid var(--n-line); color: #d8b4fe; }

/* ===== Umumiy shisha kartalar ===== */
:root:not(.holo):not(.holo-wait) :is(.feat, .steps li, .branch, .tch, .pcard, .faq, .certf, .form, .quiz, .sched, .slots > *, .events > *, .mats > *, .projs > *, .reviews > *) { background: var(--n-panel); border: 1px solid var(--n-line); border-radius: var(--r); }
:root:not(.holo):not(.holo-wait) .faq { border-radius: 18px; }
:root:not(.holo):not(.holo-wait) :is(.feat, .branch, .tch, .pcard):hover { border-color: var(--n-line-2); box-shadow: 0 24px 50px -26px rgba(168, 85, 247, .8); }
:root:not(.holo):not(.holo-wait) .f-ic { border-radius: 50%; background: rgba(168, 85, 247, .16); border-color: var(--n-line-2); }

/* ===== Kurslar: rasmli sarlavha qismi ===== */
:root:not(.holo):not(.holo-wait) .courses { grid-template-columns: repeat(3, 1fr); gap: 20px; }
:root:not(.holo):not(.holo-wait) .course { padding: 172px 22px 22px; background: var(--n-panel); border-color: var(--n-line); border-radius: 24px; gap: 14px; backdrop-filter: none; -webkit-backdrop-filter: none; }
:root:not(.holo):not(.holo-wait) .course::before {
  top: 0; left: 0; right: 0; width: auto; height: 156px; border-radius: 0; opacity: 1; filter: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(26, 16, 54, .95) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 26px),
    radial-gradient(120% 120% at 50% 110%, var(--n-c1), transparent 70%),
    radial-gradient(80% 90% at 85% 0%, var(--n-c2), transparent 70%),
    #140b2c;
}
:root:not(.holo):not(.holo-wait) .course::after { content: ""; position: absolute; left: 50%; top: 78px; width: 210px; height: 74px; margin-left: -105px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); transform: rotate(-12deg); pointer-events: none; }
:root:not(.holo):not(.holo-wait) .c-it { --n-c1: rgba(168, 85, 247, .95); --n-c2: rgba(59, 130, 246, .6); }
:root:not(.holo):not(.holo-wait) .c-en { --n-c1: rgba(249, 115, 22, .85); --n-c2: rgba(236, 72, 153, .55); }
:root:not(.holo):not(.holo-wait) .c-ar { --n-c1: rgba(16, 185, 129, .85); --n-c2: rgba(234, 179, 8, .45); }
:root:not(.holo):not(.holo-wait) .course .c-ic { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: auto; height: auto; padding: 0; background: none; box-shadow: none; font: 800 64px/1 var(--n-head); color: #fff; text-shadow: 0 0 24px rgba(255, 255, 255, .55), 0 0 60px var(--acc); z-index: 1; }
:root:not(.holo):not(.holo-wait) .course h3 { font: 800 22px/1.2 var(--n-head); }
:root:not(.holo):not(.holo-wait) .featured { border-color: rgba(192, 132, 252, .55); box-shadow: 0 0 0 1px rgba(168, 85, 247, .25), 0 26px 60px -30px rgba(168, 85, 247, .9); }
:root:not(.holo):not(.holo-wait) .featured .badge { top: 14px; right: 14px; z-index: 2; }
:root:not(.holo):not(.holo-wait) .tags li { border-radius: 8px; background: rgba(255, 255, 255, .05); }
:root:not(.holo):not(.holo-wait) .price b { font-family: var(--n-head); font-weight: 800; }
:root:not(.holo):not(.holo-wait) .c-more { color: #c4b5fd; font-weight: 600; }

/* ===== Ustozlar ===== */
:root:not(.holo):not(.holo-wait) .tch img, :root:not(.holo):not(.holo-wait) .tch-ava { border-color: #a855f7; box-shadow: 0 0 0 6px rgba(168, 85, 247, .12), 0 0 30px -6px #a855f7; }

/* ===== Natijalar ===== */
:root:not(.holo):not(.holo-wait) .win { border-color: var(--n-line); border-radius: 22px; }
:root:not(.holo):not(.holo-wait) .win figcaption { background: linear-gradient(rgba(10, 6, 23, 0), rgba(10, 6, 23, .85) 38%, rgba(10, 6, 23, .97)); }

/* ===== Qadamlar va ro'yxatdan o'tish ===== */
:root:not(.holo):not(.holo-wait) .steps b { border-radius: 50%; background: var(--n-btn); }
:root:not(.holo):not(.holo-wait) .signup { border-radius: 28px; background: linear-gradient(135deg, rgba(76, 29, 149, .55), rgba(26, 16, 54, .75) 55%); border: 1px solid var(--n-line-2); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 40px 80px -40px rgba(124, 58, 237, .8); }
:root:not(.holo):not(.holo-wait) .form { background: rgba(10, 6, 23, .55); }
:root:not(.holo):not(.holo-wait) .form input, :root:not(.holo):not(.holo-wait) .form select, :root:not(.holo):not(.holo-wait) .certf input { border-radius: 14px; background-color: rgba(255, 255, 255, .04); border-color: rgba(190, 160, 255, .22); }

/* ===== Filiallar: bino tasviri bilan ===== */
:root:not(.holo):not(.holo-wait) .branch { padding: 132px 22px 22px; overflow: hidden; }
:root:not(.holo):not(.holo-wait) .branch::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 116px; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 50%, rgba(26, 16, 54, .95)),
    linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, .10) 18% 19%, transparent 19% 81%, rgba(255, 255, 255, .10) 81% 82%, transparent 82%),
    repeating-linear-gradient(90deg, rgba(253, 224, 171, .55) 0 10px, transparent 10px 20px) 50% 62% / 58% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(253, 224, 171, .4) 0 10px, transparent 10px 20px) 50% 44% / 58% 8px no-repeat,
    linear-gradient(rgba(76, 52, 140, .9), rgba(46, 30, 92, .95)) 50% 100% / 64% 70% no-repeat,
    radial-gradient(90% 120% at 50% 0%, rgba(168, 85, 247, .55), transparent 70%),
    #120a28;
}
:root:not(.holo):not(.holo-wait) .branch h3::before { content: ""; display: inline-block; width: 14px; height: 18px; margin-right: 8px; vertical-align: -2px; background: #a855f7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 0C5.4 0 0 5.2 0 11.7 0 20.4 12 30 12 30s12-9.6 12-18.3C24 5.2 18.6 0 12 0zm0 16a4.3 4.3 0 1 1 0-8.6 4.3 4.3 0 0 1 0 8.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 0C5.4 0 0 5.2 0 11.7 0 20.4 12 30 12 30s12-9.6 12-18.3C24 5.2 18.6 0 12 0zm0 16a4.3 4.3 0 1 1 0-8.6 4.3 4.3 0 0 1 0 8.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
:root:not(.holo):not(.holo-wait) .branch.soon::before { filter: grayscale(.6) brightness(.8); }
:root:not(.holo):not(.holo-wait) .branch .badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
:root:not(.holo):not(.holo-wait) .phone { color: #d8b4fe; font-weight: 700; }

/* ===== Pastki qism ===== */
:root:not(.holo):not(.holo-wait) .foot { background: rgba(9, 5, 20, .9); border-top-color: var(--n-line); }

/* ===== Chat: ALHIKMA AI ===== */
:root:not(.holo):not(.holo-wait) .chat-fab { background: var(--n-btn); padding: 0 16px 0 6px; }
:root:not(.holo):not(.holo-wait) .chat-fab span { display: grid; }
:root:not(.holo):not(.holo-wait) .chat-fab span img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); }
.chat-box header img.ai-ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #a855f7; }
:root:not(.holo):not(.holo-wait) .chat-box { z-index: 65; border-radius: 24px; background: linear-gradient(180deg, rgba(30, 18, 64, .98), rgba(14, 8, 32, .98) 45%); border-color: var(--n-line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 50px -20px rgba(168, 85, 247, .7); }
:root:not(.holo):not(.holo-wait) .chat-box header { padding: 12px 14px; border-bottom-color: var(--n-line); }
:root:not(.holo):not(.holo-wait) .chat-box header b { font: 800 15.5px/1.2 var(--n-head); }
:root:not(.holo):not(.holo-wait) .chat-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--n-line-2); background: rgba(255, 255, 255, .05); color: #e9e3ff; }
:root:not(.holo):not(.holo-wait) .chat-m { border-radius: 18px; }
:root:not(.holo):not(.holo-wait) .chat-m.bot { background: rgba(255, 255, 255, .06); border: 1px solid var(--n-line); }
:root:not(.holo):not(.holo-wait) .chat-m.me { background: var(--n-btn); }
:root:not(.holo):not(.holo-wait) .chat-q button { padding: 8px 12px; border-color: var(--n-line-2); background: rgba(168, 85, 247, .1); font-weight: 600; }
:root:not(.holo):not(.holo-wait) .chat-q button:hover { background: rgba(168, 85, 247, .22); }
/* tezkor tugmalar — chat pastida bitta qatorda, barmoq bilan suriladi (chatga va qizga ko'proq joy) */
:root:not(.holo):not(.holo-wait) .chat-q { order: 9; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 10px 12px 12px; border-top: 1px solid var(--n-line);
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
:root:not(.holo):not(.holo-wait) .chat-q::-webkit-scrollbar { display: none; }
:root:not(.holo):not(.holo-wait) .chat-q button { flex: none; white-space: nowrap; }
:root:not(.holo):not(.holo-wait) .chat-in { order: 10; }
:root:not(.holo):not(.holo-wait) .chat-fine { order: 11; }
:root:not(.holo):not(.holo-wait) .chat-in { border-top-color: var(--n-line); }
:root:not(.holo):not(.holo-wait) .chat-in input { border-radius: 999px; padding: 11px 16px; border-color: rgba(190, 160, 255, .22); background: rgba(255, 255, 255, .04); }
:root:not(.holo):not(.holo-wait) .chat-in button { border-radius: 50%; width: 44px; height: 44px; background: var(--n-btn); }
/* "Sizga qo'ng'iroq qilamiz" oynasi */
:root:not(.holo):not(.holo-wait) .cb-ov { z-index: 99; background: rgba(6, 3, 16, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
:root:not(.holo):not(.holo-wait) .cb-box { border-radius: 26px; background: rgba(20, 12, 44, .98); border-color: var(--n-line-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 50px -18px rgba(168, 85, 247, .8); }
:root:not(.holo):not(.holo-wait) .cb-box h3 { font: 800 21px/1.25 var(--n-head); }
:root:not(.holo):not(.holo-wait) .cb-box input { border-radius: 14px; border: 1px solid rgba(190, 160, 255, .22); background: rgba(255, 255, 255, .04); }
:root:not(.holo):not(.holo-wait) .cb-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--n-line-2); background: rgba(255, 255, 255, .05); color: #e9e3ff; }
:root:not(.holo):not(.holo-wait) .top.menu-open { background: transparent; }

/* ===== Planshet ===== */
@media (max-width: 1100px) {
  .hero-ai { width: 46vw; }
  .ai-bubble { display: none; }
  .ai-menu { top: auto; bottom: 4%; }
}
@media (max-width: 1024px) {
  :root:not(.holo):not(.holo-wait) .courses { grid-template-columns: repeat(2, 1fr); }
  :root:not(.holo):not(.holo-wait) .top { padding: 8px 8px 0; }
  /* ochiladigan menyu — bosh qismdagi ALHIKMA AI tezkor menyusi bilan bir xil: belgili shisha kapsulalar */
  :root:not(.holo):not(.holo-wait) .nav {
    top: 82px; left: 12px; right: 12px; gap: 8px; padding: 12px; border-radius: 22px;
    background: rgba(16, 9, 36, .96); border: 1px solid var(--n-line-2);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 40px -16px rgba(168, 85, 247, .7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  :root:not(.holo):not(.holo-wait) .nav a:not(.btn) {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px;
    border: 1px solid rgba(190, 160, 255, .16); background: rgba(255, 255, 255, .035);
    color: #f1edff; font: 600 15.5px/1.2 'Inter', sans-serif; box-shadow: none;
  }
  :root:not(.holo):not(.holo-wait) .nav a:not(.btn)::after { content: "→"; margin-left: auto; color: #a78bfa; }
  :root:not(.holo):not(.holo-wait) .nav a:not(.btn):hover, :root:not(.holo):not(.holo-wait) .nav a.active { background: rgba(168, 85, 247, .2); border-color: rgba(192, 132, 252, .5); box-shadow: none; }
  :root:not(.holo):not(.holo-wait) .nav .nv-ic { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: rgba(168, 85, 247, .16); border: 1px solid var(--n-line); }
  :root:not(.holo):not(.holo-wait) .nav .nv-ic svg { width: 19px; height: 19px; fill: none; stroke: #c4b5fd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  :root:not(.holo):not(.holo-wait) .nav .nav-cta { margin-top: 6px; padding: 14px 20px; font-size: 15.5px; }
  :root:not(.holo):not(.holo-wait) .top.menu-open .top-in { background: rgba(14, 8, 32, .96); }
}
@media (max-width: 1024px) and (max-height: 760px) {
  :root:not(.holo):not(.holo-wait) .nav { max-height: calc(100vh - 100px); overflow-y: auto; }
}

/* ===== Telefon: maskot tepada, sarlavha uning ustida, pastki menyu ===== */
@media (max-width: 860px) {
  :root:not(.holo):not(.holo-wait) .hero { display: flex; flex-direction: column; padding: 84px 0 26px; min-height: auto; }
  :root:not(.holo):not(.holo-wait) .hero-in { padding-top: 0; }
  .hero-ai { position: relative; order: -1; top: auto; right: auto; width: 100%; height: min(112vw, 470px); margin: 0 auto -110px; }
  .ai-fig { left: 50%; width: min(100%, 420px); transform: translateX(-50%); }
  .ai-fig .ai-vid > :is(img, video) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 58%, transparent 96%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 58%, transparent 96%); object-position: 50% 0; }
  .ai-menu { display: none; }
  .ai-bubble { display: block; top: 44%; right: 10px; width: min(46%, 190px); padding: 10px 12px; font-size: 12.5px; border-radius: 18px 4px 18px 18px; } /* yuzni yopmasin — yelka yonida */
  .ai-bubble b { font-size: 13.5px; }
  body:has(.promo-bar:not([hidden])) .ai-bubble { display: none; } /* aksiya banneri bilan ustma-ust tushmasin */
  /* birinchi ekranda qo'ng'iroq/Telegram tugmalari asosiy tugmani to'smasin */
  :root:not(.holo):not(.holo-wait) body.at-hero :is(.tg-float, .cb-fab) { opacity: 0; pointer-events: none; transform: scale(.6); }
  :root:not(.holo):not(.holo-wait) :is(.tg-float, .cb-fab) { transition: opacity .25s, transform .25s; }
  body:has(.chat-box:not([hidden])) :is(.tg-float, .cb-fab) { display: none; }
  /* telefonda chat — tepadan pastki menyugacha (bo'sh joy qolmaydi); AI tugmasi chat ustida, tugmalar qatori uning ostida qolmaydi */
  :root:not(.holo):not(.holo-wait) .chat-box { top: calc(8px + env(safe-area-inset-top)); bottom: calc(72px + env(safe-area-inset-bottom)); height: auto; left: 8px; right: 8px;
    background: linear-gradient(180deg, #1e1240, #0e0820 45%); }  /* to'q fon — ortidagi sahifa ko'rinmaydi */
  :root:not(.holo):not(.holo-wait) body:has(.chat-box:not([hidden])) .tabbar { z-index: 70; }
  :root:not(.holo):not(.holo-wait) .chat-q { padding-bottom: 28px !important; }
  :root:not(.holo):not(.holo-wait) .hero .chip { display: none; }
  :root:not(.holo):not(.holo-wait) .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  :root:not(.holo):not(.holo-wait) .lead { font-size: 15.5px; }
  :root:not(.holo):not(.holo-wait) .stats { grid-template-columns: repeat(4, 1fr); margin-top: 26px; }
  :root:not(.holo):not(.holo-wait) .stats li { padding: 12px 6px; text-align: center; }
  :root:not(.holo):not(.holo-wait) .stats b { font-size: 15px; }
  :root:not(.holo):not(.holo-wait) .stats span { font-size: 10.5px; line-height: 1.3; display: block; }

  /* pastki menyu */
  :root:not(.holo):not(.holo-wait) .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    height: 64px; padding: 0 6px 8px; border-radius: 22px;
    background: rgba(16, 9, 36, .9); border: 1px solid var(--n-line-2);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 30px -12px rgba(168, 85, 247, .6);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: #a9a3c9; font: 600 10.5px/1 'Inter', sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: #fff; }
  .tabbar a.on svg { stroke: #c084fc; filter: drop-shadow(0 0 6px rgba(192, 132, 252, .8)); }
  .tabbar .tb-ai { color: #e9d5ff; }
  .tabbar .tb-ai img { width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; object-fit: cover; border: 3px solid #a855f7; box-shadow: 0 0 0 4px rgba(16, 9, 36, .9), 0 0 24px -2px #a855f7; }
  :root:not(.holo):not(.holo-wait) body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* suzuvchi tugmalar pastki menyu ustida; chat — "AI" tugmasi orqali */
  :root:not(.holo):not(.holo-wait) .chat-fab { display: none; }
  :root:not(.holo):not(.holo-wait) .tg-float, :root:not(.holo):not(.holo-wait) .cb-fab { bottom: calc(88px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
}
@media (max-width: 680px) {
  :root:not(.holo):not(.holo-wait) .courses { grid-template-columns: 1fr; }
  :root:not(.holo):not(.holo-wait) .course { padding-top: 160px; }
  :root:not(.holo):not(.holo-wait) .sec { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-menu a:hover, .ai-menu button:hover { transform: none; }
}

/* ustoz kartasidagi 'Darsiga yozilish' */
:root:not(.holo):not(.holo-wait) .tch .tch-go { margin-top: 12px; }
.holo .tch-go { display: none; }

/* ===== Ustozlar (CRM'dan): karta va profil oynasi (natijalar galereyasi) ===== */
:root:not(.holo):not(.holo-wait) .tch-crm { cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
:root:not(.holo):not(.holo-wait) .tch-crm:hover { transform: translateY(-3px); }
.tch-ks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.tch-ks .tch-k { margin-top: 0; }
.tch-br { margin: 2px 0 0; font-size: 13.5px; color: #c4b5fd; }
.tch-bio { font-size: 14px; color: var(--muted, #a9a3c9); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tch-res { display: inline-flex; margin-top: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fde68a; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); }
.tch-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.tch-acts .tch-go { margin-top: 0 !important; }
.holo .tch-acts, .holo .tch-res { display: none; }
html.tpr-open { overflow: hidden; }
.tpr { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.tpr-bg { position: absolute; inset: 0; background: rgba(6, 3, 16, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.tpr-card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; outline: none;
  padding: 26px; border-radius: 28px; color: #f1edff; font: 400 15px/1.6 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, rgba(30, 18, 64, .98), rgba(14, 8, 32, .98) 45%); border: 1px solid rgba(190, 160, 255, .42);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 50px -18px rgba(168, 85, 247, .8); transform: translateY(20px); opacity: 0; transition: transform .24s, opacity .2s; }
.tpr.on .tpr-bg { opacity: 1; } .tpr.on .tpr-card { transform: none; opacity: 1; }
.tpr-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(190, 160, 255, .42); background: rgba(255, 255, 255, .05); color: #e9e3ff; font-size: 15px; cursor: pointer; }
.tpr-h { display: flex; align-items: center; gap: 18px; padding-right: 40px; }
.tpr-h img, .tpr-h .tch-ava { width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 3px solid #a855f7; box-shadow: 0 0 0 6px rgba(168, 85, 247, .14), 0 0 30px -6px #a855f7; display: grid; place-items: center; font: 800 32px/1 'Manrope', sans-serif; background: rgba(168, 85, 247, .16); }
.tpr-h .tch-ks { justify-content: flex-start; margin: 0 0 6px; }
.tpr-h h2 { margin: 0; font: 800 clamp(22px, 3vw, 28px)/1.2 'Manrope', 'Inter', sans-serif; color: #fff; }
.tpr-t { margin: 4px 0 0; color: #ddd6fe; font-weight: 600; }
.tpr-br { margin: 2px 0 0; color: #c4b5fd; font-size: 14px; }
.tpr-bio { margin: 16px 0 0; color: #d8d3f3; }
.tpr-rh { margin: 22px 0 10px; font: 800 18px/1.3 'Manrope', sans-serif; color: #fff; }
.tpr-rh small { margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; color: #fde68a; background: rgba(245, 158, 11, .14); }
.tpr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tpr-grid figure { margin: 0; border-radius: 16px; overflow: hidden; background: rgba(26, 16, 54, .62); border: 1px solid rgba(176, 140, 255, .2); }
.tpr-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tpr-grid img { display: block; width: 100%; height: 150px; object-fit: cover; transition: transform .3s; }
.tpr-grid button:hover img { transform: scale(1.04); }
.tpr-grid figcaption { padding: 8px 10px; font-size: 13px; line-height: 1.35; color: #e9e3ff; }
.tpr-go { display: flex; width: 100%; margin-top: 20px; }
.tpr-lb { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 10px; padding: 20px; background: rgba(4, 2, 12, .94); cursor: zoom-out; }
.tpr-lb img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 12px; object-fit: contain; }
.tpr-lb p { margin: 0; color: #fff; font-weight: 600; text-align: center; }
.tpr-lb button { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(190, 160, 255, .42); background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; }
@media (max-width: 560px) {
  .tpr { padding: 0; align-items: end; }
  .tpr-card { width: 100%; max-height: calc(100vh - 30px); border-radius: 26px 26px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .tpr-h { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tpr-h img, .tpr-h .tch-ava { width: 92px; height: 92px; }
  .tpr-grid { grid-template-columns: 1fr 1fr; }
  .tpr-grid img { height: 120px; }
  .tpr-lb { position: fixed; }
}

/* Ustoz natijalari: sertifikat to'liq ko'rinsin (A4 nisbatida, yuqoridan) */
.tpr-grid img { height: auto; aspect-ratio: 1240 / 1754; object-fit: cover; object-position: top center; background: #fff; }
@media (max-width: 560px) { .tpr-grid img { height: auto; } }

/* Sertifikat | To'lov cheki yorliqlari (js/receipt.js) */
.chk-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 14px; }
.chk-tabs button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--n-line-2, rgba(190, 160, 255, .42)); background: rgba(255, 255, 255, .04); color: #e9e3ff; font: 700 14.5px/1 'Inter', sans-serif; cursor: pointer; }
.chk-tabs button.on { background: linear-gradient(135deg, #7c3aed, #a855f7); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(168, 85, 247, .9); }
#rcptForm input[name=code] { text-transform: uppercase; letter-spacing: .08em; }
.certf[hidden] { display: none !important; }  /* tanlanmagan yorliq formasi ko'rinmaydi */
/* menyu: tekshirish bandlari faqat telefon/planshet menyusida (kompyuterdagi qator to'lib ketmasin) */
@media (min-width: 1025px) { .nav a.nv-m { display: none; } }

/* chat ochiq: orqadagi (bosh qismdagi) qiz yashirinadi */
body:has(.chat-box:not([hidden])) .hero-ai { visibility: hidden; }

/* chat kutubxonasi: barcha mavzular (xabar ichida tugmalar) */
.chat-lib { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-lib button { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--n-line-2, rgba(190, 160, 255, .42)); background: rgba(168, 85, 247, .1); color: #e9e5ff; font: 600 12.5px/1.2 'Inter', sans-serif; cursor: pointer; }
.chat-lib button:hover { background: rgba(168, 85, 247, .24); }

/* chat javobidagi havola tugmasi — matndan alohida qatorda */
.chat-m .chat-go { display: flex; width: max-content; margin-top: 10px; }

/* test natijasidagi chegirma */
.quiz-gift { display: grid; gap: 4px; margin: 14px 0 6px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(34, 197, 94, .14), rgba(168, 85, 247, .14)); border: 1px solid rgba(74, 222, 128, .45); }
.quiz-gift b { font: 800 17px/1.3 var(--n-head, 'Manrope'), sans-serif; color: #bbf7d0; }
.quiz-gift span { font-size: 14px; color: #e9e3ff; }
.quiz-gift.dim { background: rgba(255, 255, 255, .04); border-color: var(--n-line, rgba(176, 140, 255, .2)); }
.quiz-gift.dim span { color: #c4b5fd; }

/* filial: xaritada ochish tugmalari */
.br-map { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.br-map a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(176, 140, 255, .35); background: rgba(139, 92, 246, .12); color: #e9d5ff; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s, border-color .2s; }
.br-map a:hover, .br-map a:focus-visible { background: rgba(139, 92, 246, .28); border-color: rgba(190, 160, 255, .6); color: #fff; }
.br-map svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }.br-time { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #c4b5fd; font-size: 14px; font-weight: 600; }
.br-time svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
/* ichki sahifalar (test.html, jadval.html, yutuqlar.html, tekshirish.html, ota-onalar.html — tools/site/split_home.py) */
.sec-head h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; text-shadow: 0 0 30px rgba(139, 92, 246, .55), 0 2px 12px rgba(0, 0, 0, .6); }
:root:not(.holo):not(.holo-wait) .sec-head h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; text-shadow: none; }
.sub .rail { display: none; }
.sub main > .sec:first-child, :root:not(.holo):not(.holo-wait) .sub main > .sec:first-child { padding-top: 140px; }
@media (max-width: 680px) { .sub main > .sec:first-child, :root:not(.holo):not(.holo-wait) .sub main > .sec:first-child { padding-top: 112px; } }
.sec-more { margin-top: 28px; text-align: center; }