/* ═══════════════════════════════════════════════════════════════════════
   Mishima Academy — "ciddi olmayan" kurs saytı
   Qara zəmin, elektrik bənövşəyi, stikerlər, sərt kölgələr, bir az xaos.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0a0710;
  --bg: #0a0710;
  --ink-rgb: 10, 7, 16;
  --acid-text: #d4ff3a;
  --btn-ring: linear-gradient(135deg, #f1e4ff, #b98cff 55%, #8b3dff);
  --btn-ring-dark: linear-gradient(135deg, #5b2fa0, #2a0a5e);
  --ink-2: #110b1a;
  --ink-3: #1a1126;
  --ink-4: #241836;
  --line: rgba(227, 204, 255, .12);
  --line-2: rgba(227, 204, 255, .22);
  --text: #f4ecff;
  --muted: #a998c2;
  --violet: #8b3dff;
  --violet-2: #b36bff;
  --violet-3: #6a1fe0;
  --lilac: #e3ccff;
  --acid: #d4ff3a;
  --pink: #ff5fd2;
  --sun: #ffd23f;
  --ice: #7ee0ff;
  --danger: #ff5a7a;
  --ok: #53f2a1;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-hard: 5px 5px 0 var(--violet);
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6.4vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.muted { color: var(--muted); }
.center { text-align: center; }
.hl { color: var(--violet-2); }
.hl-acid { color: var(--acid-text); }
.u-squiggle { position: relative; white-space: nowrap; }
.u-squiggle::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.18em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 Q 12 1 22 7 T 42 7 T 62 7 T 82 7 T 102 7 T 118 6' fill='none' stroke='%23d4ff3a' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.outline-text { -webkit-text-stroke: 1.5px var(--violet-2); color: transparent; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── bölmə başlıqları ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--acid-text); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 780px; }
.section-head p { max-width: 460px; margin: 0; color: var(--muted); }

/* ── düymələr ── */
.btn {
  --bfill: var(--violet); --fg: #fff; --ring: var(--btn-ring);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; color: var(--fg);
  background: linear-gradient(var(--bfill), var(--bfill)) padding-box, var(--ring) border-box;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -8px rgba(139, 61, 255, .7); filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn-ghost { --fg: var(--text); background: transparent; }
.btn-ghost::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: var(--ring); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.btn-ghost:hover { box-shadow: none; background: rgba(139, 61, 255, .12); }
.btn-acid { --bfill: var(--acid); --fg: var(--ink); --ring: var(--btn-ring-dark); }
.btn-light { --bfill: var(--lilac); --fg: var(--ink); --ring: var(--btn-ring-dark); }
.btn-sm { padding: 10px 18px; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink-3);
  border: 1px solid var(--line); transition: .2s; font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--violet-2); transform: rotate(-8deg) scale(1.06); }
.icon-btn.is-on { background: var(--violet); border-color: var(--violet); }

/* ── elan zolağı + header ── */
.announce {
  background: var(--acid); color: var(--ink); text-align: center; font-weight: 600; font-size: .86rem; padding: 8px 16px;
}
.announce a { text-decoration: underline; }
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(var(--ink-rgb), .96);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; background: var(--violet); display: grid; place-items: center; position: relative;
  box-shadow: 3px 3px 0 var(--acid); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.logo-mark svg { width: 26px; }
.logo small { display: block; font-size: .56rem; letter-spacing: .3em; color: var(--muted); font-weight: 500; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: .94rem; color: var(--muted); transition: .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(139, 61, 255, .14); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.fav-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; border-radius: 99px; background: var(--acid);
  color: var(--ink); font-size: .68rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px;
}
.burger { display: none; }
@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; padding: 16px 20px 28px;
    background: rgba(var(--ink-rgb), .98); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s;
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 1.15rem; padding: 14px 16px; }
  .burger { display: inline-grid; }
  .header-actions .btn { display: none; }
}

/* ── marquee lent ── */
.tape { position: relative; z-index: 2; padding: 16px 0; background: var(--violet); color: #fff; overflow: hidden; transform: rotate(-2deg); margin: 0 -20px; border-block: 2px solid var(--ink); }
.tape.alt { background: var(--acid); color: var(--ink); transform: rotate(1.6deg); margin-top: -26px; }
.tape-track { display: flex; gap: 38px; width: max-content; animation: marquee 32s linear infinite; will-change: transform; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.tape.alt .tape-track { animation-direction: reverse; }
.tape-track span { display: inline-flex; align-items: center; gap: 38px; white-space: nowrap; }
.tape-track span::after { content: "✦"; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── hero ── */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(80px, 10vw, 130px); overflow: hidden; }
.hero-bg-kana {
  position: absolute; right: -4vw; top: 50%; transform: translateY(-50%); font-family: "Dela Gothic One", var(--font-display);
  font-size: clamp(9rem, 26vw, 24rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(179, 107, 255, .14);
  writing-mode: vertical-rl; pointer-events: none; user-select: none;
}
.hero-glow { position: absolute; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; border-radius: 50%; opacity: .55; pointer-events: none; }
.hero-glow.g1 { background: radial-gradient(closest-side, rgba(106, 31, 224, .9), rgba(106, 31, 224, 0)); left: -18vw; top: -24vw; }
.hero-glow.g2 { background: radial-gradient(closest-side, rgba(58, 15, 128, .9), rgba(58, 15, 128, 0)); right: -20vw; bottom: -30vw; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(26, 17, 38, .7); font-size: .9rem; margin-bottom: 28px;
}
.hero-kicker b { background: var(--acid); color: var(--ink); padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-family: var(--font-display); }
.hero-h1 { font-size: clamp(.9rem, 1.4vw, 1.05rem); font-weight: 600; letter-spacing: .02em; color: var(--lilac); margin: 0 0 16px; line-height: 1.4; }
.hero-h1 span { color: var(--acid-text); }
.hero-title { font-family: var(--font-display); font-size: clamp(2.3rem, 6.4vw, 5.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 28px; }
.hero-title .line { display: block; }
.hero-title .rotator { display: inline-grid; vertical-align: bottom; }
.hero-title .rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%) rotate(4deg); transition: .5s cubic-bezier(.3, 1.4, .5, 1); color: var(--violet-2); }
.hero-title .rotator > span.is-on { opacity: 1; transform: none; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 580px; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 32px; }
.hero-proof div b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.hero-proof div span { color: var(--muted); font-size: .88rem; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.blob {
  position: absolute; inset: 8%; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: radial-gradient(circle at 30% 25%, var(--violet-2), var(--violet-3) 55%, #2a0a5e);
  animation: blob 14s ease-in-out infinite; box-shadow: inset -30px -40px 80px rgba(0, 0, 0, .45); will-change: transform;
}
.blob::after { content: ""; position: absolute; inset: -12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 61, 255, .45), rgba(139, 61, 255, 0)); }
@keyframes blob {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(18deg) scale(1.04); }
}
.blob-face { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(5rem, 12vw, 8.5rem); animation: bob 4s ease-in-out infinite; will-change: transform; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-6deg); } }
.orbit { position: absolute; inset: 0; animation: spin 40s linear infinite; will-change: transform; }
.orbit-item {
  position: absolute; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem;
  background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: 4px 4px 0 var(--violet); animation: spin 40s linear infinite reverse;
}
.orbit-item:nth-child(1) { top: 0; left: 50%; margin-left: -36px; }
.orbit-item:nth-child(2) { top: 50%; right: 0; margin-top: -36px; background: var(--acid); box-shadow: 4px 4px 0 var(--pink); }
.orbit-item:nth-child(3) { bottom: 0; left: 50%; margin-left: -36px; }
.orbit-item:nth-child(4) { top: 50%; left: 0; margin-top: -36px; background: var(--pink); box-shadow: 4px 4px 0 var(--acid); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-badge { position: absolute; right: 2%; bottom: 4%; width: 138px; height: 138px; z-index: 3; }
.spin-badge svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.spin-badge span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; }
.sticker {
  position: absolute; z-index: 4; padding: 10px 16px; border-radius: 14px; font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  background: var(--text); color: var(--ink); box-shadow: 4px 4px 0 var(--violet); transform: rotate(-8deg); white-space: nowrap;
}
.sticker.s1 { left: -2%; top: 18%; }
.sticker.s2 { right: -4%; top: 6%; background: var(--acid); transform: rotate(7deg); box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin-top: 12px; }
  .sticker.s1 { left: 0; }
  .sticker.s2 { right: 0; }
}

/* ── kartlar: kurs ── */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.accent-violet { --acc: var(--violet); --acc-2: var(--violet-2); }
.accent-lilac { --acc: #c49bff; --acc-2: var(--lilac); }
.accent-acid { --acc: var(--acid); --acc-2: #efffab; }
.accent-pink { --acc: var(--pink); --acc-2: #ffb3ec; }
.accent-sun { --acc: var(--sun); --acc-2: #ffe99a; }
.accent-ice { --acc: var(--ice); --acc-2: #c6f3ff; }

.ccard {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--ink-2);
  border: 1px solid var(--line); overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s, border-color .3s; contain: layout paint;
}
.ccard:hover { transform: translateY(-8px) rotate(-.6deg); border-color: var(--acc); box-shadow: 8px 8px 0 var(--acc); }
.ccard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.ccard-media img, .ccard-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ccard:hover .ccard-media img { transform: scale(1.06); }
.cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; font-size: 4.4rem; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, color-mix(in oklab, var(--acc) 70%, transparent), transparent 55%),
              radial-gradient(circle at 85% 90%, color-mix(in oklab, var(--acc) 45%, transparent), transparent 50%), var(--ink-3);
}
.cover-fallback::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.2px); background-size: 16px 16px;
}
.cover-fallback span { position: relative; z-index: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.ccard:hover .cover-fallback span { transform: scale(1.15) rotate(-10deg); }
.ccard-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: .74rem; font-weight: 700;
  background: rgba(var(--ink-rgb), .88); border: 1px solid var(--line-2); white-space: nowrap;
}
.badge-sale { background: var(--acid); color: var(--ink); border-color: var(--acid-text); transform: rotate(-4deg); }
.badge-hot { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.badge-violet { background: var(--violet); border-color: var(--violet); color: #fff; }
.ccard-fav { position: absolute; top: 12px; right: 12px; z-index: 3; }
.ccard-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.ccard-cat { font-size: .78rem; color: var(--acc-2); font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.ccard h3 { font-size: 1.22rem; margin-bottom: 8px; }
.ccard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ccard-tag { color: var(--muted); font-size: .94rem; margin-bottom: 18px; flex: 1; }
.ccard-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.ccard-meta span { display: inline-flex; gap: 5px; align-items: center; }
.ccard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.teacher-mini { display: flex; align-items: center; gap: 10px; font-size: .86rem; position: relative; z-index: 2; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--acc, var(--violet)); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; font-family: var(--font-display);
}
.price { text-align: right; line-height: 1.15; }
.price b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.price s { display: block; color: var(--muted); font-size: .82rem; }
.price small { display: block; color: var(--muted); font-size: .74rem; }
.ccard-seats { margin-bottom: 16px; }
.seatbar { height: 7px; border-radius: 99px; background: var(--ink-4); overflow: hidden; }
.seatbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); }
.seat-txt { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 6px; }
.seat-txt b { color: var(--pink); }
.ccard-compare { position: relative; z-index: 2; font-size: .76rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; margin-top: 12px; }
.ccard-compare input { accent-color: var(--violet); }
.stars { color: var(--sun); letter-spacing: 1px; }
.stars i { color: var(--ink-4); font-style: normal; }

/* ── kateqoriya plitələri ── */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cats { grid-template-columns: 1fr; } }
.cat {
  position: relative; padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line);
  overflow: hidden; transition: .3s cubic-bezier(.3,1.4,.5,1); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between;
}
.cat::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -60px; top: -60px; background: var(--acc); opacity: .18; transition: .4s; }
.cat:hover { transform: translateY(-6px) rotate(1deg); border-color: var(--acc); }
.cat:hover::before { transform: scale(2.6); opacity: .25; }
.cat-emoji { font-size: 2.4rem; position: relative; }
.cat h3 { position: relative; margin: 14px 0 4px; overflow-wrap: anywhere; }
.cat p { position: relative; margin: 0; color: var(--muted); font-size: .88rem; }
.cat-n { position: absolute; right: 18px; bottom: 16px; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* ── "başqaları vs biz" ── */
.vs { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.vs-col { padding: clamp(24px, 4vw, 44px); }
.vs-col h3 { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; }
.vs-them { background: var(--ink-2); }
.vs-them h3 { color: var(--muted); }
.vs-us { background: linear-gradient(160deg, var(--violet-3), #3b0a8a 70%); position: relative; }
.vs-us::after { content: "MISHIMA"; position: absolute; top: 18px; right: 18px; background: var(--acid); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: .76rem; padding: 6px 12px; border-radius: 99px; transform: rotate(8deg); }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vs li { display: flex; gap: 12px; align-items: flex-start; }
.vs-them li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 90, 122, .6); }
.vs li::before { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; text-decoration: none; }
.vs-them li::before { content: ""; background: rgba(255, 90, 122, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 13px no-repeat; }
.vs-us li::before { content: ""; background: var(--acid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0710' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* ── necə işləyir ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: transparent; -webkit-text-stroke: 1.5px var(--violet-2); display: block; margin-bottom: 16px; line-height: 1; }
.step-emoji { position: absolute; top: 24px; right: 22px; font-size: 1.8rem; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.step:hover .step-emoji { transform: rotate(-20deg) scale(1.3); }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── müəllim kartları ── */
.tcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); transition: .35s cubic-bezier(.3,1.4,.5,1); display: block; }
.tcard:hover { transform: translateY(-8px) rotate(.8deg); box-shadow: 8px 8px 0 var(--acc); border-color: var(--acc); }
.tcard-photo { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 30%, color-mix(in oklab, var(--acc) 55%, transparent), var(--ink-3) 70%); }
.tcard-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: .5s; }
.tcard:hover .tcard-photo img { filter: none; transform: scale(1.05); }
.tcard-initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 5rem; font-weight: 800; color: var(--acc); }
.tcard-fact {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; border-radius: 14px; font-size: .82rem;
  background: rgba(var(--ink-rgb), .94); border: 1px solid var(--line-2); transform: translateY(130%); transition: transform .4s cubic-bezier(.3,1.4,.5,1);
}
.tcard:hover .tcard-fact { transform: none; }
.tcard-fact b { color: var(--acid-text); display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.tcard-body { padding: 18px 20px 22px; }
.tcard-body h3 { margin-bottom: 4px; }
.tcard-role { color: var(--acc-2); font-size: .88rem; font-weight: 600; }
.tcard-stats { display: flex; gap: 16px; margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* ── rəy kartları ── */
.reviews-masonry { columns: 3 320px; column-gap: 22px; }
.rcard { break-inside: avoid; margin-bottom: 22px; padding: 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); position: relative; transition: .3s; }
.rcard:nth-child(3n+1) { transform: rotate(-.8deg); }
.rcard:nth-child(3n+2) { transform: rotate(.6deg); }
.rcard:hover { transform: rotate(0) scale(1.02); border-color: var(--violet-2); }
.rcard::before { content: "“"; position: absolute; top: -8px; right: 20px; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--violet); opacity: .35; }
.rcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rcard-head img, .rcard-head .avatar { width: 46px; height: 46px; }
.rcard-head b { display: block; }
.rcard-head small { color: var(--muted); font-size: .8rem; }
.rcard h4 { font-family: var(--font-body); font-size: 1.02rem; margin: 10px 0 6px; font-weight: 700; letter-spacing: 0; }
.rcard p { color: #d9ccee; margin: 0; font-size: .95rem; }
.rcard-course { display: inline-block; margin-top: 14px; font-size: .78rem; color: var(--violet-2); font-weight: 600; }
.rcard-course:hover { text-decoration: underline; }

/* ── statistika ── */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 36px 28px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; display: block; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.stat:nth-child(odd) b { color: var(--violet-2); }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .stats-band { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--ink-2); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--violet); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 600; font-size: 1.04rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--ink-4); display: grid; place-items: center; font-size: 1.3rem; transition: .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--violet); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }

/* ── CTA blok ── */
.cta-box {
  position: relative; border-radius: calc(var(--radius) * 1.6); padding: clamp(40px, 7vw, 84px); overflow: hidden; text-align: center;
  background: radial-gradient(90% 120% at 50% 0%, var(--violet) 0%, var(--violet-3) 40%, #1f0648 100%);
}
.cta-box::before { content: "ミシマ"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: "Dela Gothic One", var(--font-display); font-size: clamp(6rem, 22vw, 18rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); white-space: nowrap; pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { max-width: 820px; margin-inline: auto; }
.cta-box p { color: var(--lilac); max-width: 560px; margin: 0 auto 32px; }
.cta-box .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── partnyorlar ── */
.partners { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.partner { padding: 14px 24px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-display); font-weight: 600; font-size: .9rem; transition: .2s; display: inline-flex; align-items: center; gap: 10px; }
.partner img { height: 26px; width: auto; filter: grayscale(1) brightness(2); opacity: .7; }
.partner:hover { color: var(--text); border-color: var(--violet-2); }

/* ── səhifə başlığı ── */
.page-hero { padding-block: clamp(48px, 7vw, 90px) clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); max-width: 960px; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 640px; }
.crumbs { display: flex; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ── filtrlər ── */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 280px; }
.search input { width: 100%; padding: 15px 20px 15px 50px; }
.search::before { content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b36bff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 500; transition: .2s; background: transparent; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--violet-2); }
.chip.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.chip-acid.is-on { background: var(--acid); border-color: var(--acid-text); color: var(--ink); }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }

/* ── formalar ── */
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=password], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 14px 18px; border-radius: 14px; background: var(--ink-3); border: 1.5px solid var(--line); color: var(--text);
  font: inherit; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b36bff' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(139, 61, 255, .22); }
input::placeholder, textarea::placeholder { color: #6f6187; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.7) sepia(1) hue-rotate(220deg) saturate(4); cursor: pointer; }
.field { margin-bottom: 18px; }
.field > label, .field-label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--danger); font-size: .84rem; font-weight: 500; }
.form-error { padding: 14px 18px; border-radius: 14px; background: rgba(255, 90, 122, .12); border: 1px solid rgba(255, 90, 122, .4); color: #ffc2cf; margin-bottom: 18px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; margin: 0; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line-2); font-size: .88rem; font-weight: 500; transition: .15s; }
.pills input:checked + span { background: linear-gradient(var(--violet), var(--violet)) padding-box, var(--btn-ring) border-box; border-color: transparent; color: #fff; }
.pills input:focus-visible + span { outline: 3px solid var(--acid); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--violet); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: var(--ink-4); cursor: pointer; transition: .15s; margin: 0; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--sun); transform: scale(1.1); }
.promo-row { display: flex; gap: 8px; }
.promo-row input { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.promo-msg { font-size: .86rem; margin-top: 8px; font-weight: 500; min-height: 1.2em; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.bad { color: var(--danger); }

.panel { border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); }
.panel-violet { background: linear-gradient(160deg, #1d0f35, var(--ink-2)); border-color: rgba(139, 61, 255, .45); }

/* ── kurs detal ── */
.course-hero { position: relative; padding-block: clamp(36px, 5vw, 64px) 40px; overflow: hidden; }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.course-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.8rem); margin-bottom: 18px; }
.course-hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 640px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.course-quick { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 8px; }
.course-quick div { font-size: .88rem; color: var(--muted); }
.course-quick b { display: block; color: var(--text); font-size: 1.05rem; font-family: var(--font-display); font-weight: 700; }
.course-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 16 / 10; background: var(--ink-3); box-shadow: 10px 10px 0 var(--acc); }
.course-media img, .course-media video, .course-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.course-media .play {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--ink-rgb), .25); border: 0; transition: .2s;
}
.course-media .play span { width: 84px; height: 84px; border-radius: 50%; background: var(--acid); color: var(--ink); display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 0 0 12px rgba(212,255,58,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 22px rgba(212,255,58,0); } }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 44px; align-items: start; }
.sidebar-sticky { position: sticky; top: 96px; display: grid; gap: 18px; }
.course-layout.narrow-side { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1020px) { .course-hero-grid, .course-layout, .course-layout.narrow-side { grid-template-columns: minmax(0, 1fr); } .sidebar-sticky { position: static; } }
.buybox { border-radius: var(--radius); background: var(--ink-2); border: 2px solid var(--acc); padding: 28px; box-shadow: 8px 8px 0 var(--acc); position: relative; }
.buybox-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.buybox-price b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; }
.buybox-price s { color: var(--muted); font-size: 1.1rem; }
.buybox-save { display: inline-block; background: var(--acid); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 99px; transform: rotate(-3deg); }
.buybox-monthly { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.buybox-monthly b { color: var(--text); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 20px; }
.countdown div { background: var(--ink-3); border-radius: 12px; text-align: center; padding: 10px 4px; border: 1px solid var(--line); }
.countdown b { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--acid-text); }
.countdown small { font-size: .7rem; color: var(--muted); }
.countdown-label { font-size: .82rem; color: var(--pink); font-weight: 600; margin-top: 14px; }
.buybox-list { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; font-size: .92rem; }
.buybox-list li { display: flex; gap: 10px; }
.buybox-actions { display: grid; gap: 10px; margin-top: 18px; }
.calc { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--ink-3); }
.calc input[type=range] { width: 100%; accent-color: var(--violet); }
.calc-out { display: flex; justify-content: space-between; font-size: .9rem; margin-top: 8px; }
.calc-out b { font-family: var(--font-display); color: var(--acid-text); }

.content-block { margin-bottom: 56px; }
.content-block > h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 22px; }
.prose { color: #d9ccee; font-size: 1.04rem; }
.prose p { margin-bottom: 1.1em; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.outcomes li { list-style: none; display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.outcomes li::before { content: "✦"; color: var(--acid-text); flex-shrink: 0; }
.outcomes { padding: 0; margin: 0; }
@media (max-width: 640px) { .outcomes { grid-template-columns: 1fr; } }
.syllabus { display: grid; gap: 12px; }
.syllabus details { border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ink-2); }
.syllabus details[open] { border-color: var(--acc); }
.syllabus summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; }
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus .num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-4); font-family: var(--font-display); font-weight: 800; font-size: .9rem; }
.syllabus details[open] .num { background: var(--acc); color: var(--ink); }
.syllabus summary small { color: var(--muted); font-size: .82rem; }
.syllabus ul { margin: 0; padding: 0 22px 20px 76px; color: var(--muted); display: grid; gap: 6px; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .two-lists { grid-template-columns: 1fr; } }
.two-lists ul { margin: 0; padding-left: 20px; color: #d9ccee; display: grid; gap: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--ink-3); cursor: zoom-in; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .8rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.teacher-strip { display: flex; gap: 22px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.teacher-strip img, .teacher-strip .avatar { width: 96px; height: 96px; border-radius: 24px; font-size: 1.8rem; flex-shrink: 0; object-fit: cover; }
.teacher-strip h3 { margin-bottom: 4px; }
.teacher-strip + .teacher-strip { margin-top: 14px; }
@media (max-width: 560px) { .teacher-strip { flex-direction: column; align-items: flex-start; } }
.rating-sum { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; margin-bottom: 30px; }
.rating-big b { font-family: var(--font-display); font-size: 4rem; font-weight: 800; line-height: 1; display: block; }
.rating-bars { display: grid; gap: 8px; }
.rating-bars > div { display: grid; grid-template-columns: 30px 1fr 36px; gap: 10px; align-items: center; font-size: .84rem; color: var(--muted); }
.rating-bars .seatbar i { background: var(--sun); }
@media (max-width: 560px) { .rating-sum { grid-template-columns: 1fr; } }

/* ── müəllim profili ── */
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.profile-photo { border-radius: calc(var(--radius) * 1.3); overflow: hidden; aspect-ratio: 4 / 5; border: 2px solid var(--acc); box-shadow: 12px 12px 0 var(--acc); background: radial-gradient(circle at 50% 30%, color-mix(in oklab, var(--acc) 55%, transparent), var(--ink-3) 70%); position: relative; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-quote { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.35; padding-left: 20px; border-left: 4px solid var(--acc); margin: 26px 0; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.skill { padding: 8px 14px; border-radius: 99px; background: var(--ink-3); border: 1px solid var(--line-2); font-size: .86rem; font-weight: 500; }
.skill:nth-child(3n) { transform: rotate(-3deg); }
.skill:nth-child(4n) { transform: rotate(2deg); border-color: var(--acc); }
.profile-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.profile-nums div { padding: 18px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.profile-nums b { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--acc-2); }
.profile-nums span { font-size: .8rem; color: var(--muted); }
.fun-fact { padding: 20px 22px; border-radius: 18px; background: var(--acid); color: var(--ink); transform: rotate(-1.2deg); font-weight: 600; box-shadow: 5px 5px 0 var(--violet); margin: 26px 0; }
.fun-fact b { display: block; font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; margin-bottom: 4px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .profile-photo { max-width: 380px; } }

/* ── quiz ── */
.quiz { max-width: 820px; margin-inline: auto; }
.quiz-progress { height: 10px; border-radius: 99px; background: var(--ink-3); overflow: hidden; margin-bottom: 36px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--acid)); transition: width .5s cubic-bezier(.3,1.4,.5,1); }
.quiz-step { display: none; animation: pop .45s cubic-bezier(.3,1.4,.5,1); }
.quiz-step.is-on { display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.quiz-q { font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin-bottom: 28px; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 600px) { .quiz-opts { grid-template-columns: 1fr; } }
.quiz-opt { text-align: left; padding: 22px; border-radius: 18px; background: var(--ink-2); border: 1.5px solid var(--line); display: flex; gap: 16px; align-items: center; font-size: 1.02rem; font-weight: 600; transition: .2s cubic-bezier(.3,1.4,.5,1); }
.quiz-opt:hover { border-color: var(--violet-2); transform: translateY(-3px) rotate(-.6deg); box-shadow: 5px 5px 0 var(--violet); }
.quiz-opt .e { font-size: 1.8rem; }
.quiz-opt small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; }
.quiz-result .ccard { max-width: none; }

/* ── müqayisə ── */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { color: var(--muted); font-weight: 500; width: 200px; background: var(--ink-2); font-size: .9rem; }
.compare td b { font-family: var(--font-display); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .best { color: var(--acid-text); font-weight: 700; }
.compare-tray {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 160%); z-index: 60; display: flex; align-items: center; gap: 16px;
  padding: 12px 12px 12px 22px; border-radius: 99px; background: var(--text); color: var(--ink); box-shadow: 6px 6px 0 var(--violet); transition: transform .4s cubic-bezier(.3,1.4,.5,1); max-width: calc(100% - 32px);
}
.compare-tray.is-on { transform: translate(-50%, 0); }
.compare-tray b { font-family: var(--font-display); font-size: .9rem; }
.compare-tray .x { background: none; border: 0; font-size: 1.1rem; color: var(--ink); }

/* ── booking səhifəsi ── */
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: start; }
@media (max-width: 960px) { .booking-grid { grid-template-columns: 1fr; } }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: .95rem; }
.summary-line.total { border: 0; font-size: 1.2rem; font-weight: 700; }
.summary-line.total b { font-family: var(--font-display); color: var(--acid-text); font-size: 1.6rem; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks li span { font-size: 1.5rem; }
.perks li b { display: block; }
.perks li small { color: var(--muted); }

/* ── modal ── */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(5, 3, 9, .86); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: var(--radius); background: var(--ink-2); border: 2px solid var(--violet); box-shadow: 10px 10px 0 var(--violet); padding: clamp(22px, 4vw, 36px); position: relative; transform: translateY(30px) scale(.96) rotate(-1deg); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.modal.is-open .modal-box { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal-media { width: min(1100px, 100%); background: transparent; border: 0; box-shadow: none; padding: 0; }
.modal-media img, .modal-media video { width: 100%; border-radius: var(--radius); max-height: 85vh; object-fit: contain; }

/* ── toast ── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: grid; gap: 10px; max-width: calc(100% - 40px); }
.toast { padding: 16px 20px; border-radius: 16px; background: var(--text); color: var(--ink); font-weight: 600; box-shadow: 5px 5px 0 var(--violet); animation: toast .4s cubic-bezier(.3,1.4,.5,1); max-width: 420px; }
.toast.err { background: var(--danger); color: #fff; box-shadow: 5px 5px 0 var(--ink-4); }
@keyframes toast { from { opacity: 0; transform: translateY(20px) rotate(3deg); } }

/* ── footer ── */
.footer { border-top: 1px solid var(--line); padding-block: 70px 30px; margin-top: 40px; position: relative; overflow: hidden; }
.footer-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 13vw, 11rem); line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: 50px; white-space: nowrap; user-select: none; transition: color .5s; }
.footer-big:hover { color: var(--violet); -webkit-text-stroke-color: var(--violet); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: #d9ccee; transition: .2s; }
.footer ul a:hover { color: var(--acid-text); padding-left: 4px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── üzən WhatsApp düyməsi ── */
.float-wa { position: fixed; left: 20px; bottom: 20px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 4px 4px 0 var(--violet); transition: .25s cubic-bezier(.3,1.6,.5,1); }
.float-wa:hover { transform: scale(1.1) rotate(-10deg); }
.float-wa svg { width: 30px; fill: #fff; }

/* ── kursor ləkəsi ── */
.cursor-glow { position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; z-index: 0; left: 0; top: 0; background: radial-gradient(circle, rgba(139, 61, 255, .16), transparent 65%); transform: translate3d(-400px, -400px, 0); will-change: transform; }
@media (hover: none) { .cursor-glow { display: none; } }
main { position: relative; z-index: 1; }

/* ── görünmə animasiyası ── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ── pagination ── */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); padding: 0 12px; }
.pager .is-on { background: var(--violet); border-color: var(--violet); }

/* ── boş vəziyyət / xəta səhifələri ── */
.empty { text-align: center; padding: 70px 20px; border-radius: var(--radius); border: 2px dashed var(--line-2); }
.empty .e { font-size: 4rem; display: block; margin-bottom: 12px; animation: bob 3s ease-in-out infinite; }
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.err-code { font-family: var(--font-display); font-size: clamp(7rem, 26vw, 18rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; background: linear-gradient(120deg, var(--violet-2), var(--acid)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── konfeti ── */
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 99; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ── uğurlu müraciət ── */
.done-card { max-width: 720px; margin: 0 auto; text-align: center; }
.done-emoji { font-size: 6rem; display: inline-block; animation: bob 2.4s ease-in-out infinite; }
.ticket { margin: 34px auto 0; max-width: 520px; text-align: left; border-radius: var(--radius); background: var(--text); color: var(--ink); padding: 28px; position: relative; box-shadow: 8px 8px 0 var(--violet); transform: rotate(-1.2deg); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); transform: translateY(-50%); }
.ticket::before { left: -15px; } .ticket::after { right: -15px; }
.ticket h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: .95rem; }
.ticket dt { color: #6b5a85; }
.ticket dd { margin: 0; font-weight: 700; }

/* ── haqqımızda ── */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.value .e { font-size: 2.6rem; display: block; margin-bottom: 16px; }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; filter: invert(.92) hue-rotate(180deg) saturate(.6); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); transition: .2s; }
a.contact-card:hover { border-color: var(--violet-2); transform: translateX(4px); }
.contact-card .e { width: 52px; height: 52px; border-radius: 14px; background: var(--ink-4); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.contact-card small { color: var(--muted); display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.panel-link { display: block; transition: .3s cubic-bezier(.3,1.4,.5,1); }
.panel-link:hover { border-color: var(--acc); transform: translateY(-5px) rotate(-.5deg); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Görünməyən animasiyalar dayanır (app.js → .is-paused) */
.is-paused, .is-paused * { animation-play-state: paused !important; }

@media (hover: none) {
  .ccard:hover, .tcard:hover, .cat:hover, .rcard:hover { transform: none; box-shadow: none; }
  .orbit, .orbit-item, .spin-badge svg { animation: none; }
}
@media (max-width: 700px) {
  .hero-bg-kana, .hero-glow.g2 { display: none; }
  .rcard:nth-child(3n+1), .rcard:nth-child(3n+2) { transform: none; }
}

/* ── dil seçimi ── */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; height: 42px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink-3); border: 1px solid var(--line); font-weight: 700; font-size: .82rem; font-family: var(--font-display); transition: border-color .2s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary, .lang-switch summary:hover { border-color: var(--violet-2); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 8px; border-radius: 16px; z-index: 70;
  background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 6px 6px 0 var(--violet); display: grid; gap: 2px;
}
.lang-menu a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: .92rem; color: var(--muted); }
.lang-menu a b { font-family: var(--font-display); font-size: .74rem; color: var(--text); width: 24px; }
.lang-menu a:hover, .lang-menu a.is-active { background: rgba(139, 61, 255, .16); color: var(--text); }
.lang-mobile { display: none; }
@media (max-width: 1020px) {
  .lang-mobile { display: flex; gap: 8px; padding: 14px 16px 0; }
  .lang-mobile a { padding: 8px 14px !important; font-size: .9rem !important; border: 1px solid var(--line-2); }
  .lang-switch { display: none; }
}

/* ── tək kurs: spotlight ── */
.spotlight { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; border-radius: calc(var(--radius) * 1.4);
  overflow: hidden; border: 2px solid var(--acc); box-shadow: 10px 10px 0 var(--acc); background: var(--ink-2); }
.spotlight-media { position: relative; min-height: 360px; background: var(--ink-3); }
.spotlight-media img, .spotlight-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.spotlight-body h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.spotlight-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); }
.spotlight-facts b { color: var(--text); }
.spotlight-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-2); }
@media (max-width: 900px) { .spotlight { grid-template-columns: 1fr; } .spotlight-media { min-height: 0; aspect-ratio: 16 / 10; } }

/* ── onlayn / əyani izahı ── */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.format-card { position: relative; padding: 22px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); }
.format-card .e { font-size: 2rem; display: block; margin-bottom: 10px; }
.format-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.format-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; display: grid; gap: 4px; }
.format-card.alt { border-color: var(--acc); }
.formats-or { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: .9rem; }
.format-note { margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(139, 61, 255, .1); border: 1px dashed var(--violet-2); color: #d9ccee; }
@media (max-width: 640px) { .formats { grid-template-columns: 1fr; } }

/* ── tək müəllim: spotlight ── */
.teacher-spot { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.teacher-spot .profile-photo { box-shadow: 10px 10px 0 var(--acc); }
@media (max-width: 800px) { .teacher-spot { grid-template-columns: 1fr; } .teacher-spot .profile-photo { max-width: 300px; } }

/* Hero: JS gözləmədən, yalnız CSS ilə görünür (ilk ekran dərhal oxunur) */
.intro { animation: intro .7s cubic-bezier(.2, .8, .2, 1) both; }
.intro-d1 { animation-delay: .06s; } .intro-d2 { animation-delay: .12s; } .intro-d3 { animation-delay: .18s; }
@keyframes intro { from { opacity: 0; transform: translateY(22px); } }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 560px) {
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .u-squiggle { white-space: normal; }
  .hero-art { max-width: 280px; }
}

/* Mobil: nav fixed olduğu üçün öz yerini tutmur — düymələr sağa itələnir */
@media (max-width: 1020px) {
  .header-in { justify-content: space-between; gap: 12px; }
  .header-actions { margin-left: auto; }
}

/* Eğik lentlər (.tape) ekrandan çıxıb mobil viewport-u genişləndirirdi → səhifə yana sürüşürdü.
   clip — hidden-dən fərqli olaraq position: sticky-ni pozmur. */
html, body, main { overflow-x: clip; }
.sidebar-sticky { grid-template-columns: minmax(0, 1fr); }
.buybox .badge { white-space: normal; line-height: 1.4; }
.btn-block { white-space: normal; text-align: center; line-height: 1.3; }

.signature { font-weight: 500; letter-spacing: .02em; }
.signature a { font-family: var(--font-display); font-weight: 800; color: var(--text); padding: 2px 8px; margin-left: 4px;
  border-radius: 8px; background: var(--violet); box-shadow: 2px 2px 0 var(--acid); transition: transform .2s; display: inline-block; }
.signature a:hover { transform: rotate(-4deg) scale(1.06); }

.seo-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius); border: 1px dashed var(--line-2); }
@media (max-width: 860px) { .seo-intro { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.seo-intro .btn { white-space: normal; text-align: left; line-height: 1.3; }

/* ═══ İkonlar (Lucide sprite — static/img/icons.svg) ═══ */
.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.18em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .ic { width: 1.1em; height: 1.1em; }
.icon-btn .ic { width: 20px; height: 20px; vertical-align: middle; }
.icon-btn.is-on .ic, .ccard-fav.is-on .ic { fill: currentColor; }
.ccard-fav.is-on, .icon-btn.is-on { color: #fff; }
.badge .ic, .chip .ic, .skill .ic, .sticker .ic, .ccard-meta .ic, .tcard-stats .ic { width: 1em; height: 1em; vertical-align: -.14em; }
.footer ul .ic { width: 1em; height: 1em; margin-right: 6px; color: var(--violet-2); }
.hero-art .blob-face .ic { width: 42%; height: 42%; stroke-width: 1.4; color: #fff; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.orbit-item .ic { width: 30px; height: 30px; stroke-width: 1.8; }
.orbit-item:nth-child(2) .ic, .orbit-item:nth-child(4) .ic { color: var(--ink); }
.spin-badge span .ic { width: 34px; height: 34px; color: var(--ink); stroke-width: 2.2; }
.value .e .ic { width: 38px; height: 38px; color: var(--violet-2); stroke-width: 1.6; }
.contact-card .e .ic { width: 22px; height: 22px; color: var(--violet-2); }
.format-card .e .ic { width: 30px; height: 30px; color: var(--acc, var(--violet-2)); stroke-width: 1.7; }
.empty .e .ic { width: 56px; height: 56px; color: var(--violet-2); stroke-width: 1.4; }
.quiz-opt .e .ic { width: 28px; height: 28px; color: var(--acid-text); stroke-width: 1.7; }
.step-emoji .ic { width: 28px; height: 28px; color: var(--acid-text); stroke-width: 1.8; }
.done-emoji .ic { width: 88px; height: 88px; color: var(--acid-text); stroke-width: 1.4; }
.perks li > span .ic { width: 24px; height: 24px; color: var(--violet-2); }
.fun-fact b .ic, .tcard-fact b .ic { width: 1em; height: 1em; }
.buybox-list .ic, .calc .ic { width: 1.05em; height: 1.05em; color: var(--violet-2); margin-right: 4px; }
.compare .ic { color: var(--acid-text); width: 20px; height: 20px; }
.vs h3 .ic { width: 26px; height: 26px; }
/* ulduzlar */
.stars { display: inline-flex; gap: 2px; align-items: center; color: var(--sun); vertical-align: -.1em; }
.stars .ic { width: 1em; height: 1em; fill: currentColor; stroke: currentColor; stroke-width: 1; }
.stars .star-off { color: var(--ink-4); }
.rating-bars .ic { width: .95em; height: .95em; fill: var(--sun); stroke: var(--sun); }
.float-wa .ic { width: 30px; height: 30px; color: #fff; }
.hero-h1 { hyphens: manual; }

/* ═══ Portal (tələbə / müəllim paneli) ═══ */
.portal-hero { padding-block: clamp(32px, 5vw, 56px) 8px; position: relative; overflow: hidden; }
.portal-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 8px; }
.portal-hero p { color: var(--muted); margin: 0; }
.portal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 34px; padding: 6px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.portal-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: .92rem; transition: .2s; }
.portal-tabs a:hover { color: var(--text); background: var(--ink-3); }
.portal-tabs a.is-active { background: linear-gradient(var(--violet), var(--violet)) padding-box, var(--btn-ring) border-box; border: 2px solid transparent; color: #fff; }
.portal-tabs .count { min-width: 20px; height: 20px; border-radius: 99px; background: var(--acid); color: var(--ink); font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; padding: 0 5px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 70px; }
@media (max-width: 960px) { .portal-grid { grid-template-columns: minmax(0, 1fr); } }
.portal-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 1.2rem; }
.card-title a { font-size: .86rem; color: var(--violet-2); font-weight: 600; }

.next-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(150deg, var(--violet-3), #2a0a5e 75%); border: 1px solid rgba(179, 107, 255, .5); box-shadow: 8px 8px 0 var(--acid); }
.next-card .label { font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--acid-text); }
.next-card h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 10px 0 6px; }
.next-card .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--lilac); font-size: .95rem; margin-bottom: 18px; }
.next-card .meta span { display: inline-flex; gap: 6px; align-items: center; }
.next-card .countdown { max-width: 420px; }
.next-card .countdown div { background: rgba(var(--ink-rgb), .45); border-color: rgba(255,255,255,.14); }
.next-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(212,255,58,.25); }

.lesson-list { display: grid; gap: 10px; }
.lesson-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
  border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
a.lesson-row:hover { border-color: var(--violet-2); transform: translateX(3px); }
.lesson-date { text-align: center; border-right: 1px dashed var(--line-2); padding-right: 12px; }
.lesson-date b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.lesson-date small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.lesson-main b { display: block; font-size: .98rem; }
.lesson-main small { color: var(--muted); font-size: .84rem; }
.lesson-row.is-cancelled { opacity: .6; }
.lesson-row.is-cancelled .lesson-main b { text-decoration: line-through; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.st-scheduled { background: rgba(139, 61, 255, .18); color: var(--violet-2); }
.st-moved { background: rgba(255, 210, 63, .16); color: var(--sun); }
.st-cancelled { background: rgba(255, 90, 122, .16); color: var(--danger); }
.st-done { background: rgba(83, 242, 161, .14); color: var(--ok); }
.st-live { background: var(--acid); color: var(--ink); }
.day-head { font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.day-head:first-child { margin-top: 0; }

.group-card { display: block; padding: 20px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); transition: .3s cubic-bezier(.3,1.4,.5,1); }
a.group-card:hover { border-color: var(--violet-2); transform: translateY(-4px); box-shadow: 6px 6px 0 var(--violet); }
.group-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.group-card .meta { display: grid; gap: 6px; color: var(--muted); font-size: .88rem; margin-top: 12px; }
.group-card .meta span { display: flex; gap: 8px; align-items: center; }
.code-pill { font-family: var(--font-display); letter-spacing: .18em; font-weight: 800; background: var(--acid); color: var(--ink); padding: 4px 10px; border-radius: 8px; font-size: .9rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-tile { padding: 20px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); }
.stat-tile b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--violet-2); }
.stat-tile span { color: var(--muted); font-size: .88rem; }
@media (max-width: 560px) { .stat-tiles { grid-template-columns: minmax(0, 1fr); } }
.progress { height: 10px; border-radius: 99px; background: var(--ink-4); overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--acid)); }
.note-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.note-item:last-child { border-bottom: 0; }
.note-item .ic-wrap { width: 36px; height: 36px; border-radius: 10px; background: var(--ink-4); display: grid; place-items: center; color: var(--violet-2); }
.note-item b { display: block; font-size: .94rem; }
.note-item p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; white-space: pre-line; }
.note-item small { color: var(--muted); font-size: .76rem; }
.note-item.is-unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); margin-left: 8px; vertical-align: middle; }
.ptable-wrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ptable th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tr:last-child td { border-bottom: 0; }
.push-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(32px, 6vw, 72px); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } }
.role-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 70px; }
@media (max-width: 760px) { .role-cards { grid-template-columns: minmax(0, 1fr); } }
.role-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); transition: .3s cubic-bezier(.3,1.4,.5,1); }
.role-card:hover { border-color: var(--acc, var(--violet-2)); transform: translateY(-6px) rotate(-.5deg); box-shadow: 8px 8px 0 var(--acc, var(--violet)); }
.role-card .e .ic { width: 42px; height: 42px; color: var(--acc, var(--violet-2)); stroke-width: 1.6; }
.role-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.role-card li { display: flex; gap: 10px; }
.role-card li .ic { color: var(--acid-text); margin-top: 3px; }
.role-card .btn { margin-top: auto; align-self: flex-start; }
.header-user { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.header-user .fav-count { position: absolute; top: -4px; right: -4px; }
.errorlist + .errorlist { display: none; }
input[type=password], input[type=datetime-local] { width: 100%; padding: 14px 18px; border-radius: 14px; background: var(--ink-3); border: 1.5px solid var(--line); color: var(--text); font: inherit; }
input[type=password]:focus, input[type=datetime-local]:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(139, 61, 255, .22); }
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.7) sepia(1) hue-rotate(220deg) saturate(4); }
input[type=file] { color: var(--muted); }
.helptext { display: block; color: var(--muted); font-size: .8rem; margin-top: 6px; }
.panel-platform { background: radial-gradient(90% 120% at 0% 0%, rgba(139,61,255,.25), transparent 60%), var(--ink-2); }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .platform-grid { grid-template-columns: minmax(0, 1fr); } }
.mock { border-radius: 18px; background: var(--bg); border: 1px solid var(--line-2); padding: 16px; display: grid; gap: 10px; }
.mock .lesson-row { padding: 10px 12px; grid-template-columns: 58px minmax(0, 1fr) auto; }
.mock .lesson-date b { font-size: 1.1rem; }
.profile-checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.profile-checklist .ic { color: var(--ink-4); }
.profile-checklist li.ok { color: var(--text); }
.profile-checklist li.ok .ic { color: var(--acid-text); }
.accent-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.accent-pick label { cursor: pointer; margin: 0; position: relative; }
.accent-pick input { position: absolute; opacity: 0; }
.accent-pick span { display: block; width: 34px; height: 34px; border-radius: 10px; background: var(--acc); border: 2px solid transparent; transition: .15s; }
.accent-pick input:checked + span { border-color: var(--text); box-shadow: 3px 3px 0 var(--ink-4); transform: rotate(-6deg); }
.accent-pick input:focus-visible + span { outline: 3px solid var(--acid); outline-offset: 2px; }
@media (max-width: 960px) { form.portal-grid { grid-template-columns: minmax(0, 1fr) !important; } form.portal-grid > aside { position: static !important; } }

/* ── giriş / qeydiyyat hər yerdə görünsün ── */
.auth-btn { gap: 8px; }
.auth-btn .count, .nav-auth .count { min-width: 20px; height: 20px; border-radius: 99px; background: var(--acid); color: var(--ink); font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; padding: 0 5px; }
.nav-auth { display: none; }
.auth-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; max-width: 560px; margin: -18px 0 40px;
  padding: 14px 14px 14px 20px; border-radius: 18px; background: rgba(26, 17, 38, .85); border: 1px solid var(--line-2); }
.auth-strip > span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.auth-strip > span .ic { color: var(--acid-text); }
.auth-strip-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1020px) {
  /* mobil: «Pulsuz görüş» gizli qalır, giriş düyməsi isə görünür */
  .header-actions .btn.auth-btn { display: inline-flex; padding: 9px 12px; }
  .header-actions .btn.auth-register { display: none; }
  .nav-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .nav-auth .btn { font-size: .95rem; padding: 13px 16px; }
  .nav-auth .btn-block { grid-column: 1 / -1; }
  .nav .nav-auth a.btn { justify-content: center; border-radius: 999px; font-weight: 600; }
  .nav .nav-auth a.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
  .nav .nav-auth a.btn:not(.btn-ghost) { background: var(--violet); color: #fff; }
}
@media (max-width: 420px) {
  .header-actions .btn.auth-btn .auth-label { font-size: .8rem; }
  .logo small { letter-spacing: .18em; }
}
@media (max-width: 1020px) { .nav { background: var(--bg); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); } }

/* ═══ Canlı dərs otağı ═══ */
.room-body { background: #07050b; overflow: hidden; }
.room { height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.room-top { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: rgba(var(--ink-rgb), .9); }
.room-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.room-title { min-width: 0; display: grid; }
.room-title b { font-family: var(--font-display); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-title small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-status { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 90, 122, .25); }
.room-count { display: inline-flex; gap: 6px; align-items: center; }
.prejoin { display: grid; place-items: center; padding: 20px; overflow: auto; }
.prejoin-card { width: min(980px, 100%); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 800px) { .prejoin-card { grid-template-columns: minmax(0, 1fr); } }
.preview { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: 8px 8px 0 var(--violet); }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview-off { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); background: var(--ink-3); }
.preview-off .ic { width: 40px; height: 40px; }
.prejoin-side h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.prejoin-toggles { display: flex; gap: 10px; margin: 20px 0; }
.tbtn, .cbtn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; font-weight: 600; transition: .15s; }
.tbtn .ic, .cbtn .ic { width: 20px; height: 20px; }
.tbtn:not(.is-on), .cbtn.is-off { background: rgba(255, 90, 122, .14); border-color: rgba(255, 90, 122, .5); color: #ffc2cf; }
.cbtn.is-active { background: var(--violet); border-color: var(--violet); }
.room-error { color: var(--danger); margin-top: 12px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; }
.stage-main { display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 10px; min-height: 0; overflow: auto; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-content: center; }
.stage-main.has-spotlight { grid-template-rows: minmax(0, 1fr) auto; }
.stage-main.has-spotlight .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-content: start; }
.tile { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--ink-3); border: 2px solid transparent; transition: border-color .15s; }
.tile.is-speaking { border-color: var(--acid-text); }
.tile video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile.is-local video { transform: scaleX(-1); }
.tile.is-screen video { object-fit: contain; }
.tile .avatar-big { position: absolute; inset: 0; display: grid; place-items: center; }
.tile .avatar-big span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; }
.tile .label { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: rgba(7, 5, 11, .78); font-size: .82rem; font-weight: 600; max-width: calc(100% - 20px); }
.tile .label .ic { width: 15px; height: 15px; }
.tile .label .mic-off { color: var(--danger); }
.tile .label .teacher-tag { color: var(--acid-text); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.tile .hand { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sun); color: var(--ink); animation: bob 1.4s ease-in-out infinite; }
.spotlight-tile { min-height: 0; }
.spotlight-tile .tile { aspect-ratio: auto; height: 100%; min-height: 260px; }
.side { width: 340px; border-left: 1px solid var(--line); background: var(--ink-2); display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.side-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.side-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 10px; background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; }
.side-tabs button.is-on { background: var(--ink-4); color: var(--text); }
.side-tabs .side-close { flex: 0 0 40px; }
.side-pane { display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.side-pane[data-pane="people"] { display: block; overflow: auto; padding: 10px; }
.chat-log { overflow: auto; padding: 12px; display: grid; align-content: start; gap: 10px; }
.chat-msg b { font-size: .82rem; color: var(--violet-2); }
.chat-msg b.is-teacher { color: var(--acid-text); }
.chat-msg small { color: var(--muted); font-size: .72rem; margin-left: 6px; }
.chat-msg p { margin: 2px 0 0; font-size: .92rem; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { padding: 11px 14px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.people li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--ink-3); font-size: .92rem; }
.people li .ic { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.people li .ic.on { color: var(--acid-text); }
.controls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(var(--ink-rgb), .95); }
.cbtn { position: relative; padding: 11px 14px; }
.cbtn-leave { background: var(--danger); border-color: var(--danger); color: #fff; }
.cbadge { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--acid); }
@media (max-width: 900px) {
  .side { position: fixed; inset: 56px 0 64px 0; width: auto; z-index: 20; }
  .cbtn span { display: none; }
  .cbtn { padding: 12px; }
}

/* ═══ Oyunlaşdırma: seriya, XP, nişanlar, günün sözü ═══ */
.streak-card { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 220px); gap: 22px; align-items: center;
  border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); border: 1px solid rgba(255, 140, 60, .35);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 120, 40, .16), transparent 55%), var(--ink-2); }
.streak-flame { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px;
  background: var(--ink-3); border: 1px solid var(--line-2); color: var(--muted); flex-shrink: 0; }
.streak-flame .ic { width: 46px; height: 46px; }
.streak-flame b { position: absolute; bottom: -10px; right: -10px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 99px;
  display: grid; place-items: center; background: var(--ink); border: 2px solid var(--line-2); font-family: var(--font-display); font-size: .95rem; color: var(--text); }
.streak-flame.is-lit { color: #ff8a3d; background: linear-gradient(160deg, rgba(255, 138, 61, .25), rgba(255, 95, 210, .12)); border-color: rgba(255, 138, 61, .6); }
.streak-flame.is-lit .ic { fill: rgba(255, 138, 61, .35); filter: drop-shadow(0 0 12px rgba(255, 138, 61, .55)); animation: flicker 2.6s ease-in-out infinite; }
.streak-flame.is-lit b { border-color: #ff8a3d; background: #ff8a3d; color: var(--ink); }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.06) rotate(-3deg); } 70% { transform: scale(.97) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .streak-flame.is-lit .ic { animation: none; } }
.streak-body h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 4px; }
.streak-body p { margin: 0 0 14px; font-size: .92rem; }
.streak-week { display: flex; gap: 8px; flex-wrap: wrap; }
.streak-week span { display: grid; justify-items: center; gap: 4px; font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.streak-week i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--line-2); }
.streak-week .is-done i { background: #ff8a3d; border: 0; color: var(--ink); }
.streak-week .is-done i .ic { width: 16px; height: 16px; stroke-width: 3; }
.streak-week .is-today i { outline: 2px solid var(--lilac); outline-offset: 2px; }
.streak-side { display: grid; gap: 8px; }
.streak-side .lvl small { display: block; color: var(--muted); font-size: .78rem; }
.streak-side .lvl b { font-family: var(--font-display); font-size: 1.05rem; }
.streak-side .freeze { color: var(--ice); }
.streak-side .freeze .ic, .fl .ic { width: 1em; height: 1em; vertical-align: -.14em; }
.progress-lg { height: 14px; }
@media (max-width: 760px) {
  .streak-card { grid-template-columns: auto minmax(0, 1fr); }
  .streak-side { grid-column: 1 / -1; }
}
.word-cta { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius); background: var(--acid); color: var(--ink);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.word-cta:hover { transform: translateY(-3px) rotate(-.4deg); }
.word-cta > div { flex: 1; display: grid; }
.word-cta small { opacity: .75; }
.word-cta .ic-wrap { background: var(--ink); color: var(--acid-text); }
.word-cta > .ic { width: 22px; height: 22px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: .92rem; }
.board li.is-me { background: rgba(139, 61, 255, .16); }
.board .pos { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.board .pos-1 { background: var(--sun); color: var(--ink); } .board .pos-2 { background: var(--lilac); color: var(--ink); } .board .pos-3 { background: #ff8a3d; color: var(--ink); }
.board .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl { color: #ff8a3d; font-size: .82rem; white-space: nowrap; }
.badge-mini { display: block; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, var(--violet), var(--pink)); color: #fff; }
.badge-dot .ic { width: 22px; height: 22px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.badge-card { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 22px 14px; border-radius: var(--radius-sm);
  background: var(--ink-2); border: 1px dashed var(--line-2); opacity: .55; }
.badge-card.is-earned { opacity: 1; border-style: solid; border-color: rgba(139, 61, 255, .5); background: linear-gradient(170deg, #1d0f35, var(--ink-2)); }
.badge-card .badge-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--ink-3); color: var(--muted); }
.badge-card.is-earned .badge-ic { background: linear-gradient(160deg, var(--violet), var(--pink)); color: #fff; transform: rotate(-6deg); box-shadow: 4px 4px 0 var(--acid); }
.badge-card .badge-ic .ic { width: 28px; height: 28px; }
.badge-card small { color: var(--muted); font-size: .8rem; }
.badge-card em { font-style: normal; font-size: .72rem; color: var(--acid-text); }
.ach-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ach-stat { display: grid; justify-items: start; gap: 2px; padding: 18px; border-radius: var(--radius-sm); background: var(--ink-2); border: 1px solid var(--line); }
.ach-stat b { font-family: var(--font-display); font-size: 1.6rem; }
.ach-stat small { color: var(--muted); font-size: .8rem; }
.ach-stat .streak-flame { width: 44px; height: 44px; border-radius: 14px; }
.ach-stat .streak-flame .ic { width: 24px; height: 24px; }
.level-panel { margin-bottom: 22px; }
.xp-log, .word-history, .mat-list, .roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xp-log li { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; }
.xp-log li span { flex: 1; }
.word-card { border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); background: radial-gradient(120% 120% at 100% 0%, rgba(212, 255, 58, .12), transparent 50%), var(--ink-2); border: 1px solid var(--line-2); }
.word-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.word-big { font-size: clamp(2.4rem, 7vw, 4.4rem); margin: 22px 0 0; color: var(--acid-text); word-break: break-word; }
.word-pos { margin: 4px 0 0; font-style: italic; }
.word-q { font-size: 1.1rem; font-weight: 600; margin: 26px 0 12px; }
.word-opts { display: grid; gap: 10px; }
.word-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2); background: var(--ink-3); color: var(--text); font: inherit; font-size: 1rem; cursor: pointer; transition: .2s; }
.word-opt span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); font-weight: 700; flex-shrink: 0; }
.word-opt:hover, .word-opt:focus-visible { border-color: var(--acid-text); transform: translateX(4px); }
.word-result { display: flex; align-items: center; gap: 10px; margin: 22px 0; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.word-result .ic { width: 22px; height: 22px; }
.word-result.is-ok { background: rgba(83, 242, 161, .12); color: var(--ok); }
.word-result.is-miss { background: rgba(255, 210, 63, .12); color: var(--sun); }
.word-info { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.word-info dt { color: var(--muted); font-size: .86rem; }
.word-info dd { margin: 0; }
@media (max-width: 520px) { .word-info { grid-template-columns: 1fr; gap: 2px; } .word-info dd { margin-bottom: 10px; } }
.word-history li { display: flex; gap: 10px; align-items: center; }
.word-history li b { flex: 1; }
.word-history .ic { width: 16px; height: 16px; }
.streak-mini { display: flex; gap: 22px; align-items: center; }
.streak-mini .streak-flame { width: 64px; height: 64px; border-radius: 20px; }
.streak-mini .streak-flame .ic { width: 32px; height: 32px; }
/* dərs səhifəsi: materiallar, ev tapşırığı, davamiyyət */
.mat-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ink-3); }
.mat-list li a { display: flex; gap: 10px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.mat-list .ic { width: 18px; height: 18px; flex-shrink: 0; }
.mat-list .icon-btn { width: 34px; height: 34px; }
.mat-list .icon-btn .ic { width: 16px; height: 16px; }
.mat-add { margin-top: 14px; }
.mat-add summary { cursor: pointer; font-weight: 600; color: var(--violet-2); }
.mat-add summary .ic { width: 1em; height: 1em; vertical-align: -.14em; }
.mat-add form { margin-top: 14px; }
.grade-box { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--radius-sm); background: rgba(83, 242, 161, .08); border: 1px solid rgba(83, 242, 161, .3); margin-bottom: 14px; }
.grade-box > b { font-family: var(--font-display); font-size: 2.2rem; color: var(--ok); line-height: 1; }
.grade-box > b small { font-size: .9rem; color: var(--muted); }
.roster li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.roster .check { color: var(--text); font-size: .95rem; }
.roster + .btn { margin-top: 14px; }
.sub-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sub-item:last-child { border-bottom: 0; }
.sub-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sub-head b { margin-right: auto; }
.sub-item p { margin: 8px 0; font-size: .94rem; }
.sub-review { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sub-review input { flex: 1 1 160px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); font: inherit; }
.sub-review input[type=number] { flex: 0 0 90px; }
.word-cta .ic-wrap, .ach-stat .ic-wrap { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.ach-stat .ic-wrap { background: var(--ink-4); color: var(--violet-2); }
.word-cta .ic-wrap .ic, .ach-stat .ic-wrap .ic { width: 22px; height: 22px; }
.stu-stats { text-align: right; white-space: nowrap; }
/* tək və ya iki nəfər: kadr ekran hündürlüyünə sığsın, idarə panelinin altına düşməsin */
.tile { max-height: calc(100dvh - 160px); }
.stage-main:not(.has-spotlight) .tiles[data-n="1"] { grid-template-columns: min(100%, calc((100dvh - 160px) * 1.6)); justify-content: center; }
@media (min-width: 700px) {
  .stage-main:not(.has-spotlight) .tiles[data-n="2"] { grid-template-columns: repeat(2, minmax(0, calc((100dvh - 160px) * 1.6))); justify-content: center; }
}
.room .toasts { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
.stage-main:not(.has-spotlight) { grid-template-rows: minmax(0, 1fr); }

/* ═══ Canlı dərs: canlı yazı, riyaziyyat klaviaturası, ağ lövhə ═══ */
/* canlı yazı: ekranın altında böyük altyazı kartları */
.captions { position: fixed; left: 50%; bottom: calc(var(--dock-h, 90px) + 10px); transform: translateX(-50%); width: min(980px, calc(100% - 24px)); z-index: 25; pointer-events: none; }
.cap-list { display: grid; gap: 8px; justify-items: center; }
.cap { pointer-events: auto; max-width: 100%; padding: 10px 16px 12px; border-radius: 16px; background: rgba(7, 5, 11, .88); backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 255, 58, .5); box-shadow: 4px 4px 0 var(--violet); color: #fff; animation: capIn .25s ease-out both; transition: opacity .4s, transform .4s; }
.cap.is-teacher { border-color: rgba(179, 107, 255, .8); }
.cap.is-pinned { opacity: .82; box-shadow: none; cursor: pointer; }
.cap.is-pinned .cap-text { font-size: calc(var(--cap-size) * .72); }
.cap.is-out { opacity: 0; transform: translateY(8px); }
.cap-name { display: block; font-size: .72rem; letter-spacing: .04em; color: var(--acid, #d4ff3a); margin-bottom: 2px; }
.cap.is-teacher .cap-name { color: #cfa8ff; }
.cap-text { margin: 0; font-size: var(--cap-size); font-weight: 700; line-height: 1.25; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: Onest, "Cambria Math", system-ui, sans-serif; max-height: 4.2em; overflow: hidden; }
.cap-text .new { color: #d4ff3a; background: rgba(212, 255, 58, .18); border-radius: 4px; animation: keyflash 1s ease-out forwards; }
@keyframes keyflash { from { background: rgba(212, 255, 58, .55); color: #0a0710; } to { background: transparent; color: #fff; } }
.cap-text .caret { display: inline-block; width: 3px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--acid); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes capIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.tile .typing-dot { display: none; position: absolute; top: 10px; left: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--acid); }
.tile .typing-dot::after { content: "✍"; display: grid; place-items: center; height: 100%; font-size: 15px; color: #0a0710; }
.tile.is-typing .typing-dot { display: block; animation: caret 1.2s steps(1) infinite; }
.cap-size-btn b { font-family: var(--font-display); font-size: .85rem; }
@media (max-width: 900px) { .captions { width: calc(100% - 16px); } .cap { padding: 8px 12px 10px; } }
.compose { position: relative; padding: 8px 12px 4px; border-top: 1px solid var(--line); background: rgba(var(--ink-rgb), .95); }
.compose-row { display: flex; gap: 8px; align-items: center; max-width: 900px; margin: 0 auto; }
.compose-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(212, 255, 58, .45); background: var(--ink-3); color: var(--text); font: inherit; font-size: 1.05rem; }
.compose-hint { display: block; text-align: center; color: var(--muted); font-size: .72rem; margin-top: 4px; }
.math-btn { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-4); color: var(--acid-text); cursor: pointer; }
.math-btn .ic { width: 20px; height: 20px; }
.mathpad { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); transform: translateX(-50%); width: min(600px, calc(100vw - 24px)); z-index: 92;
  display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 10px; border-radius: 16px;
  background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); max-height: 50vh; }
.kb-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.kb-tabs::-webkit-scrollbar { display: none; }
.mathpad .kb-tab { flex: none; padding: 7px 12px; border-radius: 999px; font: 700 .82rem/1 var(--font-body, system-ui); white-space: nowrap; }
.mathpad .kb-tab.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.kb-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; overflow: auto; min-height: 0; }
.mathpad button { padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-3); color: var(--text);
  font: 600 1rem/1 "Cambria Math", "STIX Two Math", "Times New Roman", serif; cursor: pointer; touch-action: manipulation; }
.mathpad button:hover, .mathpad button:active { border-color: var(--acid-text); color: var(--acid-text); }
.chat-form .math-btn { width: 40px; height: auto; }

.spotlight-tile { display: grid; gap: 10px; }
.board-wrap { height: 100%; min-height: 240px; display: grid; grid-template-rows: auto 1fr; justify-items: center; align-content: start; gap: 8px; }
.board-tools { order: -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); }
.board-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; margin-right: 6px; }
.board-title .ic { width: 16px; height: 16px; color: var(--acid-text); }
.board-note { color: var(--muted); font-size: .8rem; }
.board-box { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px var(--line-2), 6px 6px 0 var(--violet); }
.board-box canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink-3); background: var(--c); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatch.is-on { box-shadow: 0 0 0 2px var(--acid); }
.btool { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-4); color: var(--text); cursor: pointer; }
.btool.is-on { background: var(--violet); border-color: var(--violet); }
.btool .ic { width: 17px; height: 17px; }
.btool .dot { width: var(--s); height: var(--s); border-radius: 50%; background: currentColor; }
.stage-main.has-spotlight .tiles .tile { max-height: 120px; }
@media (max-width: 900px) {
  .stage-main.has-spotlight .tiles { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .stage-main.has-spotlight .tiles .tile { max-height: 90px; }
  .compose-hint { display: none; }
}
.stage-main.has-spotlight .tiles .tile .label { left: 6px; bottom: 6px; padding: 3px 7px; font-size: .7rem; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.stage-main.has-spotlight .tiles .tile .label .teacher-tag { display: none; }
.stage-main.has-spotlight .tiles .tile .avatar-big span { width: 44px; height: 44px; font-size: 1rem; }
.stage-main.has-spotlight .tiles .tile .hand { width: 26px; height: 26px; top: 6px; right: 6px; }
@media (max-width: 900px) {
  .controls { gap: 6px; padding-inline: 8px; }
  .cbtn { padding: 10px; }
  .mathpad { padding: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 140px); }
  .kb-keys { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
  .mathpad button { padding: 9px 2px; font-size: .92rem; }
}
@media (max-width: 900px) {
  .stage-main.has-spotlight { grid-template-rows: auto auto; align-content: start; }
  .board-wrap { height: auto; min-height: 0; }
}
#muellimler { scroll-margin-top: 90px; }
.logo-emblem { width: 52px; height: auto; flex-shrink: 0; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover .logo-emblem { transform: rotate(-8deg) scale(1.06); }
@media (max-width: 600px) { .logo-emblem { width: 44px; } }
.board-box { width: min(100%, 1100px); aspect-ratio: 16 / 10; }   /* fit() işləməmişdən əvvəl də ölçüsü olsun */

/* ═══ Qabıq: tema, başlıq menyusu, seçimlər, altlıq ═══ */
/* İşıqlı tema — tokenlər; tünd «--ink» (lime/açıq düymələrin üstündəki yazı) dəyişmir */
:root[data-theme="light"] {
  --bg: #f6f2fc; --ink-rgb: 246, 242, 252;
  --ink-2: #ffffff; --ink-3: #f1eafb; --ink-4: #e6dcf5;
  --line: rgba(46, 18, 96, .12); --line-2: rgba(46, 18, 96, .22);
  --text: #1b1030; --muted: #66578a; --lilac: #4b2390; --violet-2: #7a2fe0;
  --acid-text: #4f6b00;
  --btn-ring: linear-gradient(135deg, #d9c2ff, #9b5cff 55%, #6a1fe0);
}
:root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] .hero-glow, :root[data-theme="light"] .cursor-glow { opacity: .35; }
:root[data-theme="light"] .tape { color: #fff; }
/* həmişə tünd qalan kartlar: lime yazı lime qalsın */
.next-card, .room, .word-cta, .tape, .spin-badge, .group-card.is-dark { --acid-text: #d4ff3a; }
:root[data-theme="light"] .next-card { --text: #f4ecff; --muted: #d8c8f5; color: #f4ecff; }
.only-light { display: none !important; }
:root[data-theme="light"] .only-light { display: revert !important; }
:root[data-theme="light"] .only-dark { display: none !important; }
:root[data-theme="light"] .footer-big { -webkit-text-stroke-color: rgba(46, 18, 96, .18); }

/* başlıq */
.wordmark { display: block; line-height: 1; }
.wordmark small { margin-top: 5px; }
.header-actions { margin-left: auto; }
.bell { position: relative; }
.bell .count, .icon-btn .count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--pink); color: #fff; font: 700 .66rem/19px var(--font-body); text-align: center; }
.login-btn { padding: 10px 20px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--violet); border-color: var(--violet); color: #fff; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: min(300px, calc(100vw - 32px)); padding: 10px; border-radius: 18px;
  background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); animation: menuIn .18s ease-out; }
[dir="rtl"] .menu-panel { right: auto; left: 0; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }

/* seçimlər siyahısı (menyu + altlıq) */
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 0; background: none;
  color: var(--text); font: 600 .95rem var(--font-body); text-align: start; cursor: pointer; }
a.opt:hover, button.opt:hover, summary.opt:hover { background: var(--ink-3); }
.opt-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-3); color: var(--violet-2); flex-shrink: 0; }
.opt-ic .ic { width: 18px; height: 18px; }
.opt-danger { color: var(--danger); }
.opt-danger .opt-ic { color: var(--danger); }
.opt-static { cursor: default; padding-bottom: 6px; }
.opt .switch { margin-inline-start: auto; width: 42px; height: 24px; border-radius: 99px; background: var(--ink-4); position: relative; flex-shrink: 0; transition: background .2s; }
.opt .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
:root[data-theme="light"] .opt .switch { background: var(--violet); }
:root[data-theme="light"] .opt .switch::after { transform: translateX(18px); }
.lang-codes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px 58px; }
[dir="rtl"] .lang-codes { padding: 0 58px 10px 12px; }
.lang-codes a { min-width: 46px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-2); text-align: center; font-weight: 700; font-size: .85rem; color: var(--muted); }
.lang-codes a:hover { color: var(--text); border-color: var(--violet-2); }
.lang-codes a.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }

/* altlıq: seçimlər bir sırada */
.footer-options { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.opts-footer { display: flex; flex-wrap: wrap; gap: 8px; }
.opts-footer > li { flex: 0 0 auto; }
.opts-footer .opt { width: auto; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 14px; }
.opts-footer .opt .switch { margin-inline-start: 10px; }
.lang-drop { position: relative; }
.lang-drop > summary { list-style: none; }
.lang-drop > summary::-webkit-details-marker { display: none; }
.lang-drop summary b { color: var(--violet-2); font-weight: 700; }
.lang-drop summary .ic:last-child { width: 16px; height: 16px; transition: transform .2s; }
.lang-drop[open] summary .ic:last-child { transform: rotate(180deg); }
.lang-list { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; min-width: 220px; display: grid; gap: 2px; padding: 8px; border-radius: 16px;
  background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 -18px 40px rgba(0, 0, 0, .3); }
[dir="rtl"] .lang-list { left: auto; right: 0; }
.lang-list a { padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.lang-list a:hover { background: var(--ink-3); }
.lang-list a.is-active { background: var(--violet); color: #fff; }
@media (max-width: 600px) {
  .opts-footer .opt-lang { flex-basis: 100%; }
  .login-btn { padding: 9px 16px; }
}
.footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ayarlar */
.settings { display: grid; gap: 22px; max-width: 860px; }
.settings-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.settings-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2); font-weight: 600; font-size: .9rem; }
.settings-nav a:hover { border-color: var(--violet-2); }
.settings-h { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 0 0 16px; }
.settings-h .ic, .settings-h3 .ic { color: var(--violet-2); }
.settings-h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 30px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-sub { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.settings-sub .panel { padding: 20px; background: var(--ink-3); }
.settings-more { margin: 4px 0 18px; }
.settings-more summary { cursor: pointer; color: var(--violet-2); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-bottom: 18px; border-radius: 14px; background: var(--ink-3); cursor: pointer; }
.toggle-row b { display: block; }
.toggle-row small { display: block; font-size: .84rem; margin-top: 2px; }
.toggle { appearance: none; -webkit-appearance: none; width: 50px; height: 28px; border-radius: 99px; background: var(--ink-4); position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle:checked { background: var(--violet); }
.toggle:checked::after { transform: translateX(22px); }
[dir="rtl"] .toggle:checked::after { transform: translateX(-22px); }
.danger-zone { margin-top: 30px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 90, 122, .35); background: rgba(255, 90, 122, .05); }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.btn-danger { --bfill: var(--danger); --fg: #fff; --ring: linear-gradient(135deg, #ffb3c3, #c4183f); }
.footer .opts-footer { display: flex; flex-wrap: wrap; gap: 8px; }
.footer .opts-footer > li { margin: 0; }
.header-actions .login-btn { display: inline-flex !important; }

/* ═══ Ana səhifə: loqo + axtarış + öyrətmən lenti ═══ */
.intro-hero { position: relative; display: grid; place-items: center; padding: clamp(28px, 6vw, 70px) 16px clamp(18px, 3vw, 30px); overflow: hidden; }
.intro-logo { width: min(330px, 62vw); height: auto; position: relative; z-index: 1; animation: logoIn .9s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

.search-dock { position: sticky; top: 76px; z-index: 40; padding-block: 12px; transition: transform .3s ease, background .3s, box-shadow .3s; }
.search-dock.is-floating { background: rgba(var(--ink-rgb), .92); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.search-dock.is-hidden { transform: translateY(calc(-100% - 80px)); }
.search-form { display: grid; gap: 8px; max-width: 780px; }
.search-box { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 22px; border-radius: 999px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, var(--btn-ring) border-box; border: 2px solid transparent;
  box-shadow: 0 12px 34px -16px rgba(139, 61, 255, .55); }
[dir="rtl"] .search-box { padding: 6px 22px 6px 6px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 1.08rem var(--font-body); padding: 10px 0; }
.search-box input::placeholder { color: var(--muted); }
.search-box button { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--violet); color: #fff; cursor: pointer; flex-shrink: 0; transition: transform .2s; }
.search-box button:hover { transform: scale(1.06); }
.search-box button .ic { width: 22px; height: 22px; }
.search-dock.is-intro .search-box { padding-block: 8px; }
.filters summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-inline-start: 14px; border-radius: 99px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: .92rem; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary:hover, .filters[open] summary { color: var(--text); background: var(--ink-3); }
.filters summary .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 10px; padding: 16px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line-2); }
.filters-grid label { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.filters-grid select, .filters-grid input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); font: inherit; font-size: .95rem; }
.filters-actions { display: flex; align-items: end; gap: 8px; grid-column: 1 / -1; order: -1; }

.intro-art { display: grid; place-items: center; padding: 10px 16px 40px; }
.intro-art .hero-art { width: min(460px, 86vw); }
.orbit-item.toss .ic { animation: toss 2.6s ease-in-out infinite; }
@keyframes toss { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-26px) rotate(-200deg); } 85% { transform: translateY(-8px) rotate(-340deg); } }
@media (prefers-reduced-motion: reduce) { .orbit-item.toss .ic { animation: none; } }

.feed { padding-block: 34px 70px; }
.feed-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.feed-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.tcard2 { display: flex; flex-direction: column; border-radius: 22px; padding: 12px; color: var(--text);
  background: linear-gradient(170deg, #2c1060, #1a0b38) padding-box, var(--btn-ring) border-box; border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; }
.tcard2:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -20px rgba(139, 61, 255, .8); }
:root[data-theme="light"] .tcard2 { background: linear-gradient(170deg, #ffffff, #f1e8ff) padding-box, var(--btn-ring) border-box; }
.tcard2-photo { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #d9c6f5; border: 3px solid #5b33d6; }
.tcard2-photo img { width: 100%; height: 100%; object-fit: cover; }
.tcard2-photo svg { width: 100%; height: 100%; fill: #6a1fd0; }
.new-badge { position: absolute; top: 10px; inset-inline-end: 10px; padding: 4px 11px; border-radius: 99px; background: var(--acid); color: var(--ink); font: 800 .72rem var(--font-display); letter-spacing: .04em; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.tcard2-body { display: grid; gap: 6px; padding: 14px 6px 4px; }
.tcard2-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c9b4ff; font-size: .98rem; }
:root[data-theme="light"] .tcard2-row { color: #5b33a6; }
.tcard2-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard2-row .ic { width: 20px; height: 20px; flex-shrink: 0; color: #a07bff; }
.tcard2-name b { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard2-subj span { font-size: 1.05rem; color: #d6c3ff; font-weight: 600; }
:root[data-theme="light"] .tcard2-subj span { color: #3d1a8a; }
.tcard2-price { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 4px; }
.tcard2-price b { font-family: var(--font-display); font-size: 2rem; color: var(--acid-text); line-height: 1; }
.tcard2-price b small { font-size: .9rem; margin-inline-start: 2px; }
.tcard2-price b.ask { font-size: .95rem; }
.tcard2-price .more { color: #8f7bff; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 34px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; border: 1px solid var(--line-2); }
.pager a:hover { border-color: var(--violet-2); }
.pager .is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager .gap { border: 0; min-width: 20px; }
.pager .ic { width: 18px; height: 18px; }
[dir="rtl"] .pager .ic { transform: scaleX(-1); }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 50px 16px; border-radius: 22px; border: 1px dashed var(--line-2); }
.empty-state > .ic { width: 46px; height: 46px; color: var(--violet-2); }
@media (max-width: 600px) {
  .search-dock { top: 68px; }
  .tcard2-price b { font-size: 1.7rem; }
}

/* ═══ Alt naviqasiya ═══ */
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.bottom-nav { position: fixed; z-index: 70; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100% - 20px)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 8px; border-radius: 22px;
  background: rgba(var(--ink-rgb), .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55); }
.bottom-nav a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 16px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.bottom-nav a .ic, .bn-avatar { width: 23px; height: 23px; }
.bn-avatar { border-radius: 50%; object-fit: cover; }
.bottom-nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bottom-nav a:hover { color: var(--text); }
.bottom-nav a.is-on { color: var(--text); }
.bottom-nav a.is-on .ic { color: var(--violet-2); }
.bottom-nav .bn-main { margin-top: -22px; }
.bottom-nav .bn-main .ic { width: 52px; height: 52px; padding: 13px; border-radius: 18px; color: #fff !important; background: linear-gradient(var(--violet), var(--violet)) padding-box, var(--btn-ring) border-box; border: 2px solid transparent; box-shadow: 0 8px 20px -6px rgba(139, 61, 255, .8); }
.bn-badge { position: absolute; top: 2px; inset-inline-end: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: #fff; font: 700 .64rem/18px var(--font-body); font-style: normal; text-align: center; }
.bn-live { position: absolute; top: -18px; inset-inline-end: calc(50% - 30px); width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 2px solid var(--ink); box-shadow: 0 0 0 0 rgba(83, 242, 161, .7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(83, 242, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(83, 242, 161, 0); } }
.page-chat .footer { display: none; }

/* ═══ Çatlar ═══ */
.chat-list { display: grid; gap: 8px; max-width: 760px; padding-block: 6px 30px; }
.chat-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); }
.chat-row:hover { border-color: var(--violet-2); }
.chat-row.is-unread { border-color: rgba(139, 61, 255, .6); background: linear-gradient(170deg, rgba(139, 61, 255, .14), var(--ink-2)); }
.chat-row .avatar, .chat-head .avatar, .req-row .avatar { width: 48px; height: 48px; flex-shrink: 0; object-fit: cover; }
.chat-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-main .ic { width: 14px; height: 14px; vertical-align: -2px; }
.chat-row-meta { display: grid; justify-items: end; gap: 4px; }
.chat-row-meta .count, .settings-h .count, .card-title .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; }

.chat-page { display: grid; gap: 18px; padding-block: 14px 10px; }
.chat-page.has-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.chat-box { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: calc(100dvh - 76px - 110px); min-height: 420px;
  border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-head .avatar { width: 42px; height: 42px; }
.chat-head-name { flex: 1; min-width: 0; display: grid; }
.chat-head-name b, .chat-head-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-call { display: flex; gap: 6px; }
.call-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(83, 242, 161, .12); color: var(--ok); font-weight: 600; }
.call-banner .btn { margin-inline-start: auto; }
.chat-log2 { overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.bubble2 { max-width: min(78%, 520px); padding: 9px 13px 6px; border-radius: 18px 18px 18px 6px; background: var(--ink-3); align-self: flex-start; }
.bubble2.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--violet); color: #fff; }
.bubble2 p { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.bubble2 small { display: block; text-align: end; font-size: .68rem; opacity: .7; margin-top: 2px; }
.chat-day { text-align: center; margin: 8px 0; }
.chat-day span { font-size: .72rem; padding: 3px 10px; border-radius: 99px; background: var(--ink-3); color: var(--muted); }
.chat-sys { align-self: center; max-width: 90%; text-align: center; font-size: .82rem; color: var(--muted); padding: 6px 12px; border-radius: 12px; border: 1px dashed var(--line-2); }
.chat-sys .ic { width: 14px; height: 14px; vertical-align: -2px; }
.chat-empty { margin: auto; }
.chat-compose { display: flex; align-items: end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; min-width: 0; resize: none; max-height: 160px; padding: 12px 16px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); font: inherit; line-height: 1.4; }
.chat-compose .send { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--violet); color: #fff; cursor: pointer; flex-shrink: 0; }
[dir="rtl"] .chat-compose .send .ic { transform: scaleX(-1); }
.chat-blocked { padding: 14px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.chat-side { display: grid; gap: 14px; }
.chat-side .panel { padding: 18px; }
.side-sum { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.side-sum::-webkit-details-marker { display: none; }
.sched-form { margin-top: 14px; }
.day-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.day-pills label { position: relative; }
.day-pills input { position: absolute; opacity: 0; }
.day-pills span { display: inline-block; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 600; cursor: pointer; }
.day-pills input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.req-card { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--ink-3); display: grid; gap: 6px; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.enr-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .9rem; }
@media (max-width: 960px) {
  .chat-page.has-side { grid-template-columns: minmax(0, 1fr); }
  .chat-box { height: calc(100dvh - 68px - 110px); }
}

/* ═══ Profil tabı, istəklər, dəvətlər ═══ */
.pf { display: grid; gap: 20px; max-width: 900px; padding-block: 24px 30px; }
.pf-card { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: clamp(20px, 3vw, 30px); border-radius: 24px;
  background: linear-gradient(160deg, rgba(139, 61, 255, .22), var(--ink-2)) padding-box, var(--btn-ring) border-box; border: 2px solid transparent; }
.pf-avatar { width: 112px; height: 112px; border-radius: 30px; overflow: hidden; display: grid; place-items: center; background: var(--violet); color: #fff; font: 800 2.2rem var(--font-display); flex-shrink: 0; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-main { flex: 1; min-width: 240px; }
.pf-main h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.pf-main > p { margin: 4px 0 0; }
.pf-about { margin-top: 10px !important; }
.pf-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; font-size: .9rem; color: var(--muted); }
.pf-stats .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--violet-2); }
.pf-stats b { color: var(--text); }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.req-row, .invite-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req-row:last-child, .invite-row:last-child { border-bottom: 0; }
.req-main, .invite-row > div:first-child { flex: 1; min-width: 180px; display: grid; }
.doc-form { margin-top: 16px; }
.tdocs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tdoc { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); }
.tdoc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.tdoc span { font-size: .82rem; color: var(--muted); }
.tdoc form { position: absolute; top: 12px; inset-inline-end: 12px; }
.tdoc .icon-btn { width: 32px; height: 32px; background: rgba(var(--ink-rgb), .8); }

/* ═══ Öyrətmən profili (ictimai) ═══ */
.tprofile { padding-block: 24px 50px; }
.tprofile-top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; margin-top: 14px; }
.tprofile-photo { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #d9c6f5; border: 4px solid #5b33d6; box-shadow: 8px 8px 0 rgba(139, 61, 255, .35); }
.tprofile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tprofile-photo svg { width: 100%; height: 100%; fill: #6a1fd0; }
.tprofile-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tprofile-role { color: var(--violet-2); font-weight: 600; margin: 6px 0 0; }
.tprofile-price { margin: 10px 0 0; color: var(--muted); }
.tprofile-price b { font-family: var(--font-display); font-size: 2rem; color: var(--acid-text); }
.tprofile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.btn.is-static { pointer-events: none; }
.tprofile-about h2, .tdocs h2 { font-size: 1.15rem; margin: 24px 0 8px; display: flex; align-items: center; gap: 8px; }
.tprofile-about p { margin: 0; line-height: 1.6; }
.tfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 30px 0 0; }
.tfacts > div { padding: 14px 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.tfacts dt { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.tfacts dt .ic { width: 16px; height: 16px; color: var(--violet-2); }
.tfacts dd { margin: 4px 0 0; font-weight: 600; }
.tdocs { margin-top: 30px; }
@media (max-width: 760px) { .tprofile-top { grid-template-columns: minmax(0, 1fr); } .tprofile-photo { max-width: 300px; } }

/* ═══ Giriş / qeydiyyat ═══ */
.auth-card-wrap { display: grid; place-items: center; padding-block: clamp(26px, 6vw, 60px); }
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; padding: clamp(24px, 4vw, 36px); border-radius: 26px;
  background: linear-gradient(170deg, rgba(139, 61, 255, .2), var(--ink-2)) padding-box, var(--btn-ring) border-box; border: 2px solid transparent; }
.auth-card h1 { margin: 0; text-align: center; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.auth-emblem { justify-self: center; width: 84px; height: auto; }
.auth-card .center, .center { text-align: center; }
.forgot { display: block; text-align: end; font-size: .88rem; margin: -6px 0 14px; }
.auth-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.btn-lg { padding: 18px 28px; font-size: 1.05rem; letter-spacing: .06em; }
.reg-choice { padding-block: clamp(26px, 5vw, 50px) 30px; text-align: center; }
.reg-choice h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .04em; }
.reg-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 26px; border-radius: 28px; overflow: hidden; border: 2px solid var(--line-2); }
.reg-card { position: relative; display: grid; justify-items: center; align-content: end; gap: 8px; min-height: 420px; padding: 26px 18px 30px; color: #fff; overflow: hidden; transition: filter .25s; }
.reg-card:hover { filter: brightness(1.12); }
.reg-student { background: radial-gradient(circle at 40% 30%, #c2124f, #4a0420 70%); }
.reg-teacher { background: radial-gradient(circle at 60% 30%, #3a1f78, #0b0718 70%); }
.reg-art { position: absolute; inset: 20px 0 110px; width: 100%; height: calc(100% - 130px); }
.reg-student .reg-art .cap, .reg-student .reg-art .tassel-end { fill: #0a0710; }
.reg-student .reg-art .tassel { stroke: #0a0710; stroke-width: 4; }
.reg-student .reg-art .head, .reg-student .reg-art .body { fill: #1a0510; }
.reg-student .reg-art .hand { fill: none; stroke: #f4ecff; stroke-width: 3; stroke-linecap: round; }
.reg-teacher .reg-art .head, .reg-teacher .reg-art .body { fill: #f4ecff; }
.reg-teacher .reg-art .tie { fill: #0a0710; }
.reg-teacher .reg-art .book { fill: #0a0710; stroke: #f4ecff; stroke-width: 3; stroke-linejoin: round; }
.reg-card b { position: relative; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-style: italic; letter-spacing: .04em; }
.reg-student b { color: #e3ccff; }
.reg-teacher b { color: #ff6fa8; }
.reg-card span { position: relative; max-width: 260px; font-size: .92rem; opacity: .85; }
@media (max-width: 640px) { .reg-split { grid-template-columns: minmax(0, 1fr); } .reg-card { min-height: 300px; } }
.signup-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.signup-form legend { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; color: var(--violet-2); }
.reg-form-wrap { max-width: 760px; padding-block: 24px 50px; } .reg-form-wrap h1 { margin: 8px 0 4px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.chat-compose textarea { min-height: 46px; height: 46px; width: auto; }
input[type=time]::-webkit-calendar-picker-indicator, input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.7); }
:root[data-theme="light"] input[type=time]::-webkit-calendar-picker-indicator, :root[data-theme="light"] input[type=date]::-webkit-calendar-picker-indicator { filter: none; }
/* lövhə: alət qrupları, fayl, səhifələr */
.board-tools .tool-group { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-inline-start: 1px solid var(--line); }
.board-tools .tool-group:first-of-type { border-inline-start: 0; }
.btool:disabled { opacity: .35; cursor: default; }
.btool.is-busy { animation: busy 1s linear infinite; }
@keyframes busy { 50% { opacity: .4; } }
.btool { position: relative; }
.x-mini { position: absolute; top: -4px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--danger); color: #fff; font: 700 11px/14px var(--font-body); font-style: normal; text-align: center; }
.pager-mini b { min-width: 52px; text-align: center; font-size: .85rem; }
@media (max-width: 700px) { .board-tools .tool-group { border: 0; padding: 0 2px; } .board-tools { gap: 4px; } }
/* RTL / mobil: başlıq düymələri həmişə «son» tərəfdə, menyu ekrandan çıxmır */
.header-actions { margin-left: 0 !important; margin-inline-start: auto !important; }
@media (max-width: 600px) {
  .menu-panel { position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); left: 12px !important; right: 12px !important; width: auto; }
}
[dir="rtl"] .lang-codes { padding: 0 58px 10px 12px; }
[dir="rtl"] .opt .switch::after { left: auto; right: 3px; }
[dir="rtl"] :root[data-theme="light"] .opt .switch::after, :root[data-theme="light"][dir="rtl"] .opt .switch::after { transform: translateX(-18px); }
[dir="rtl"] .search-box button .ic, [dir="rtl"] .tcard2-price .more { transform: none; }
[dir="rtl"] .crumbs span::before { content: "\\"; }

/* ═══ Pulsuz kampaniya ═══ */
.promo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--acid); color: var(--ink); font: 800 .78rem var(--font-display); letter-spacing: .02em; }
.promo-chip .ic { width: 15px; height: 15px; }
.promo-strip { padding-top: 26px; }
.promo-strip h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 14px; }
.promo-strip h2 .ic { color: var(--acid-text); }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.promo-card { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(212, 255, 58, .2), transparent 55%), linear-gradient(160deg, #5b1fd0, #2a0a5e) padding-box, var(--btn-ring) border-box; border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); --acid-text: #d4ff3a; }
.promo-card:hover { transform: translateY(-4px); }
.promo-card b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; }
.promo-card small { opacity: .8; }
.promo-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; color: var(--acid); font-size: .9rem; }
.promo-card .more .ic { width: 16px; height: 16px; }
.promo-page { padding-block: clamp(26px, 5vw, 56px); }
.promo-hero { max-width: 720px; display: grid; gap: 14px; justify-items: start; padding: clamp(22px, 4vw, 40px); border-radius: 26px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(212, 255, 58, .16), transparent 55%), var(--ink-2); border: 1px solid var(--line-2); }
.promo-hero h1 { margin: 0; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.promo-facts { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.promo-facts li { display: flex; align-items: center; gap: 10px; }
.promo-facts .ic { width: 18px; height: 18px; color: var(--violet-2); }
.promo-state { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ink-3); font-weight: 600; }
.promo-state.ok { background: rgba(83, 242, 161, .12); color: var(--ok); }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.days-left { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; background: rgba(212, 255, 58, .16); color: var(--acid-text); font-size: .74rem; font-weight: 700; }

/* ═══ Yapışqan fayllar (sticky.js) ═══ */
.sticky-files { display: grid; gap: 6px; margin-top: 8px; }
.sticky-files:empty { display: none; }
.sticky-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--ink-3); border: 1px solid rgba(83, 242, 161, .35); }
.sticky-file.is-up { border-color: var(--line-2); opacity: .8; }
.sticky-file.is-err { border-color: rgba(255, 90, 122, .5); }
.sticky-file img, .sticky-file .sf-ic { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--ink-4); color: var(--violet-2); }
.sticky-file .sf-ic .ic { width: 20px; height: 20px; }
.sf-name { flex: 1; min-width: 0; display: grid; font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.sf-name small { font-weight: 500; color: var(--ok); font-size: .76rem; }
.sticky-file.is-up .sf-name small { color: var(--muted); }
.sticky-file.is-err .sf-name small { color: var(--danger); }
.sticky-file button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.sticky-file button:hover { color: var(--danger); border-color: var(--danger); }
/* öz dilimizdə fayl seçimi (brauzerin «Choose file» yazısı əvəzinə) */
.file-pick { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--ink-3); cursor: pointer; }
.file-pick:hover { border-color: var(--violet-2); }
.file-pick.has-file { border-style: solid; border-color: rgba(83, 242, 161, .4); }
.file-pick-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.file-pick:focus-within { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.file-pick-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; background: var(--violet); color: #fff; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.file-pick-btn .ic { width: 16px; height: 16px; }
.file-pick-status { min-width: 0; flex: 1; color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pick.has-file .file-pick-status { color: var(--text); font-weight: 600; }

/* ═══ Anlıq dərs ═══ */
.instant { display: grid; gap: 18px; max-width: 820px; padding-block: 20px 30px; }
.instant-card { display: grid; gap: 12px; }
.instant-form { display: flex; gap: 8px; flex-wrap: wrap; }
.instant-form input { flex: 1 1 180px; min-width: 0; }
.chat-side .instant-form { flex-direction: column; }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: .9rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bubble2 a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }

/* mikrofon səviyyəsi (danışanda düymə yaşıl işıqlanır) və «Səsi aç» */
.cbtn[data-mic] { --lvl: 0; box-shadow: 0 0 0 calc(var(--lvl) * 5px) rgba(212, 255, 58, calc(.25 + var(--lvl) * .5)); transition: background .15s, box-shadow .08s linear; }
.audio-unlock { position: fixed; z-index: 60; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 72px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 0; background: var(--acid, #d4ff3a); color: #0a0710; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: unlockPulse 1.6s ease-in-out infinite; }
.audio-unlock .ic { width: 22px; height: 22px; }
@keyframes unlockPulse { 50% { transform: translateX(-50%) scale(1.05); } }

/* Developed by Qiyas CC */
.dev-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.dev-hero .dev-lead { font-size: 1.2rem; color: var(--text); font-weight: 600; }
.dev-hero p { max-width: 62ch; }

/* ── Göy türk şüarı «𐱅𐰮𐰼𐰃𐰖𐰀 𐰏𐰇𐰋𐰤𐰃𐰼𐰃𐰚» (dollar-dakı «In God We Trust» kimi) ── */
.gokturk { font-family: 'Old Turkic', 'Noto Sans Old Turkic', serif; unicode-bidi: isolate; letter-spacing: .14em; }
.motto { --m-ink: var(--acid-text, #d4ff3a); appearance: none; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; perspective: 600px; display: inline-block; font: inherit; }
.motto-inner { display: grid; transition: transform .7s cubic-bezier(.2, .9, .25, 1.2); transform-style: preserve-3d; }
.motto-face { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.motto-back { transform: rotateX(180deg); line-height: 1.2; }
.motto-back i { font-style: normal; font-size: .72em; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.motto-back b { font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; }
.motto.is-read .motto-inner { transform: rotateX(180deg); }
.motto:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 8px; }

/* ana səhifə: loqonun altında «mikroçap» xətti — əskinasdakı kimi incə, sakit */
.motto-hero { position: relative; z-index: 1; display: block; margin: 14px auto 0; font-size: clamp(1rem, 2.6vw, 1.35rem); color: color-mix(in srgb, var(--text) 55%, transparent); }
.motto-hero .motto-front { gap: 6px; }
.motto-hero .motto-front::before, .motto-hero .motto-front::after { content: ""; width: min(220px, 50vw); height: 1px; background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: .6; }
.motto-hero .gokturk { background: linear-gradient(100deg, color-mix(in srgb, var(--text) 45%, transparent) 30%, var(--m-ink) 50%, color-mix(in srgb, var(--text) 45%, transparent) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mottoShine 6s ease-in-out infinite; }
.motto-hero .motto-back b { color: var(--m-ink); font-size: .85em; }
@keyframes mottoShine { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

/* futer: əskinas möhürü — gilyoş naxışlı lent */
.motto-seal { display: flex; justify-content: center; margin: 28px auto 6px; }
.motto-seal .motto-face { padding: 12px 26px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  box-shadow: inset 0 0 0 4px var(--bg, #0a0710), inset 0 0 0 5px color-mix(in srgb, var(--text) 14%, transparent);
  background: repeating-radial-gradient(circle at 50% 120%, transparent 0 5px, color-mix(in srgb, var(--text) 5%, transparent) 5px 6px), var(--bg, #0a0710); }
.motto-seal .gokturk { font-size: clamp(1.1rem, 3.2vw, 1.5rem); color: color-mix(in srgb, var(--text) 78%, transparent); }
.motto-seal:hover .gokturk { color: var(--m-ink); }
.motto-seal .motto-back b { color: var(--m-ink); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .motto-inner { transition: none; } .motto-hero .gokturk { animation: none; } }

/* lövhə: böyütmə */
.board-box.is-zoomed canvas { cursor: grab; }
.board-box.is-panning canvas { cursor: grabbing !important; }
.zoom-pct { min-width: 54px; font-variant-numeric: tabular-nums; }
.zoom-pct b { font-size: .8rem; }

/* lövhə: pəncərə daxilində tam ekran */
/* lövhə: tam ekran — başlıqla alt düymələr arasındakı bütün sahə; alətlər üstdə üzür, videolar kiçik pəncərədə */
.board-wrap.is-full { position: fixed; left: 0; right: 0; top: var(--top-h, 56px); bottom: var(--dock-h, 84px); z-index: 90;
  display: block; height: auto; min-height: 0; padding: 0; background: #fff; }
.board-wrap.is-full .board-box { border-radius: 0; box-shadow: none; }
.board-wrap.is-full .board-tools { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 5; width: auto !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
body.board-full { overflow: hidden; }
body.board-full .tiles { position: fixed; left: 10px; bottom: calc(var(--dock-h, 84px) + 10px); z-index: 91; display: flex; gap: 6px; max-width: calc(100vw - 20px); overflow-x: auto; }
body.board-full .tiles .tile { flex: none; width: clamp(84px, 22vw, 150px); max-height: none; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
body.board-full .tiles .tile .label { font-size: .62rem; padding: 2px 6px; }
body.board-full .tiles .tile .avatar-big span { width: 34px; height: 34px; font-size: .8rem; }
body.board-full .captions { z-index: 96; }

/* lövhə: mətn aləti və istənilən rəng */
.board-box { position: relative; }
.board-text-input { position: absolute; z-index: 3; min-width: 40px; margin: 0; padding: 0 2px; border: 1px dashed rgba(139, 61, 255, .7); border-radius: 4px;
  background: rgba(255, 255, 255, .85); font-family: Onest, system-ui, sans-serif; font-weight: 600; line-height: 1.25; resize: none; overflow: hidden; white-space: pre; outline: none; }
.board-text-input::placeholder { color: #9ca3af; }
.swatch-custom { position: relative; display: inline-block; overflow: hidden;
  background: conic-gradient(from 90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); }
.swatch-custom::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ink-3); }
.swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.btool.tsize { min-width: 34px; }
.btool.tsize b { line-height: 1; font-family: var(--font-display); }

/* öz klaviaturan: redaktor */
.mathpad .kb-new { color: var(--acid-text); border-style: dashed; }
.mathpad .kb-new .ic, .kb-actions .ic, .kb-edit .ic { width: 15px; height: 15px; vertical-align: -2px; }
.kb-keys .kb-edit { border-style: dashed; color: var(--muted); }
.kb-editor { display: grid; gap: 8px; overflow: auto; min-height: 0; }
.kb-name { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); font: 600 .95rem var(--font-body, system-ui); }
.kb-help { margin: 0; color: var(--muted); font-size: .78rem; }
.kb-cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.kb-cells input { min-width: 0; padding: 9px 2px; text-align: center; border-radius: 9px; border: 1px dashed var(--line-2); background: var(--ink-3); color: var(--text);
  font: 600 1rem/1 "Cambria Math", "STIX Two Math", "Times New Roman", serif; }
.kb-cells input:not(:placeholder-shown), .kb-cells input:focus { border-style: solid; border-color: var(--violet-2); }
.kb-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kb-actions .kb-gap { flex: 1; }
.mathpad .kb-actions button { padding: 8px 12px; font: 700 .82rem/1 var(--font-body, system-ui); border-radius: 10px; }
.mathpad .kb-actions .kb-save { background: var(--acid); color: #0a0710; border-color: var(--acid); }
.mathpad .kb-actions .kb-del { color: var(--danger); }
@media (max-width: 600px) { .kb-cells { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* profil şəkli: kəsmə pəncərəsi */
body.crop-open { overflow: hidden; }
.crop-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 9, .72); backdrop-filter: blur(4px); animation: capIn .2s ease-out both; }
.crop-card { width: min(420px, 100%); display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 8px 8px 0 var(--violet); }
.crop-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.crop-hint { margin: -4px 0 0; color: var(--muted); font-size: .85rem; }
.crop-stage { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; touch-action: none; cursor: grab; background: #fff; }
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas { display: block; width: 100%; height: 100%; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; border-radius: 16px;
  background: radial-gradient(circle closest-side, transparent calc(100% - 1px), rgba(10, 7, 16, .6) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.crop-mask::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .85); }
.crop-zoom { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--violet); }
.crop-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crop-gap { flex: 1; }
.crop-actions .btn { padding-inline: 14px; }
@media (max-width: 420px) { .crop-actions [data-rot] span { display: none; } }

/* ═══ Dərslər tabı: Bugünkü / Hamısı ═══ */
.lt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.instant-card { min-width: 0; }
.instant-card .btn { white-space: normal; max-width: 100%; text-align: center; }
.lt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lt-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line); }
.lt-tabs a { padding: 9px 18px; border-radius: 999px; font-weight: 700; color: var(--text); text-decoration: none; transition: .15s; }
.lt-tabs a.is-on { background: var(--violet); color: #fff; box-shadow: 0 6px 18px rgba(139, 61, 255, .35); }
.lt-add { margin-inline-start: auto; }
.lt-list { display: grid; gap: 6px; }
.lt-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--ink-2); transition: .15s; }
.lt-row:hover { border-color: var(--line-2); }
.lt-row.is-live { border-color: rgba(212, 255, 58, .55); box-shadow: 4px 4px 0 var(--violet); }
.lt-body { flex: 1; min-width: 0; }
.lt-subject { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 4.4vw, 1.9rem); line-height: 1.1; color: var(--acid-text); text-decoration: none; overflow-wrap: anywhere; }
.lt-meta { margin: 6px 0 0; color: var(--muted); font-size: .98rem; }
.lt-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.lt-meta .sep { margin: 0 6px; }
.lt-person { color: var(--violet-2); font-weight: 600; text-decoration: none; }
.lt-person:hover { text-decoration: underline; }
.lt-person.is-invited { opacity: .6; font-style: italic; }
.lt-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lt-cancel .icon-btn { color: var(--danger); }
.lt-cancel .icon-btn.is-armed { width: auto; padding-inline: 10px; gap: 6px; background: rgba(255, 90, 122, .15); border-color: var(--danger); }
.lt-cancel .armed-text { font-size: .75rem; font-weight: 700; white-space: nowrap; }
.lt-empty { margin: 4px 2px; }
.lt-day-title { margin: 6px 2px 0; font-size: 1.05rem; }
.instant-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.instant-card p { margin: 4px 0 0; font-size: .9rem; }
@media (max-width: 600px) { .lt-row { flex-wrap: wrap; } .lt-side { width: 100%; justify-content: flex-end; } .lt-side:empty { display: none; } }

/* aylıq təqvim */
.cal { padding: 14px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-head b { font-family: var(--font-display); font-size: 1.15rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-wd { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0 8px; }
.cal-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 56px; border-radius: 50%; color: var(--text); text-decoration: none; font-weight: 600; transition: .12s; }
.cal-day b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-day:hover { background: var(--ink-3); }
.cal-day.is-out { color: var(--muted); opacity: .45; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--ice); }
.cal-day.is-sel { background: var(--violet); color: #fff; box-shadow: none; }
.cal-dots { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid-text); }
.cal-day.is-sel .cal-dots i { background: #fff; }

/* öyrənci seç */
.pick { display: grid; gap: 14px; }
.pick-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.pick-head p { margin: 0; max-width: 46ch; }
.pick-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #0a0710; color: var(--acid); font-size: .78rem; }
.pick-when { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.pick-when label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.pick-when input:not([type=checkbox]) { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); font: inherit; }
.pick-weekly { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; }
.pick-row { position: relative; cursor: pointer; }
.pick-row > input { position: absolute; opacity: 0; pointer-events: none; }
.pick-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); color: transparent; flex-shrink: 0; transition: .15s; }
.pick-check .ic { width: 16px; height: 16px; }
.pick-row:has(input:checked) { border-color: rgba(212, 255, 58, .5); background: rgba(212, 255, 58, .05); }
.pick-row:has(input:checked) .pick-check { background: var(--acid); border-color: var(--acid); color: #0a0710; }
.pick-row:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.pick-time { flex-shrink: 0; }
@media (max-width: 600px) {
  .pick-when { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .pick-when label:nth-child(4), .pick-when .pick-weekly { grid-column: 1 / -1; }
  .pick-head .btn { margin-inline-start: auto; }
}
.lt-next { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--ink-2); border: 1px dashed var(--line-2); color: var(--text); text-decoration: none; }
.lt-next > small { color: var(--acid-text); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.lt-next > b { font-family: var(--font-display); font-size: 1.25rem; }
.lt-next .countdown { margin-top: 8px; }

/* lövhə alətləri: yığcam sətir + açılan panellər */
.board-tools { position: relative; flex-wrap: nowrap; gap: 4px; max-width: 100%; }
.board-tools .tools-gap { flex: 1 1 4px; min-width: 4px; }
.board-tools .board-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.board-tools .btool { position: relative; }
.caret-mini { position: absolute; right: 3px; bottom: 3px; width: 0; height: 0; border-left: 4px solid transparent; border-top: 4px solid currentColor; transform: rotate(-45deg); opacity: .7; }
.swatch-mini { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ink-3), 0 0 0 3px var(--line-2); }
.zoom-mini { font-size: .72rem; font-variant-numeric: tabular-nums; min-width: 34px; }
.pager-mini { display: inline-flex; align-items: center; gap: 2px; font-size: .8rem; white-space: nowrap; }
.bpop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 60; width: max-content; max-width: min(340px, calc(100vw - 24px));
  max-height: min(60vh, 420px); overflow: auto; display: grid; gap: 10px; padding: 12px; border-radius: 16px; text-align: left;
  background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); animation: capIn .15s ease-out both; }
.bpop-title { font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bpop-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bpop-grid { display: grid; grid-template-columns: repeat(3, minmax(84px, 1fr)); gap: 6px; }
.bpop-list { display: grid; gap: 4px; min-width: 220px; }
.bpop-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text); font: 600 .9rem var(--font-body, system-ui); cursor: pointer; text-align: left; }
.bpop-grid .bpop-item { flex-direction: column; gap: 6px; padding: 12px 6px; font-size: .78rem; text-align: center; background: var(--ink-3); }
.bpop-item:hover { background: var(--ink-3); border-color: var(--line-2); }
.bpop-item.is-on { background: var(--violet); color: #fff; }
.bpop-item .ic { width: 20px; height: 20px; flex-shrink: 0; }
.bpop .check { display: flex; gap: 10px; color: var(--text); font-size: .92rem; align-items: center; padding: 4px 2px; }
.bpop .check input:disabled + span { opacity: .55; }
/* canlı yazı açıqkən dərsdən çıxış düyməsi gizlənir (yazı panelinin bağla düyməsi ilə qarışdırılırdı) */
.room.is-composing .cbtn-leave { display: none; }
/* öyrənci seç: çoxgünlü təqvim */
.pick-days { grid-column: 1 / -1; display: grid; gap: 8px; }
.pick-days-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--muted); }
.pick-days .cal { padding: 10px; background: var(--ink-3); }
.pick-days .cal-day { border: 0; background: none; font: inherit; cursor: pointer; max-height: 46px; }
.pick-days .cal-day:disabled { opacity: .25; cursor: default; }
.pick-days .cal-head .icon-btn { font-size: 1.3rem; line-height: 1; }
.pick-days.has-error .cal { box-shadow: 0 0 0 2px var(--danger); }
.pick-days .cal-day.is-sel { background: var(--violet); color: #fff; box-shadow: none; }
.chat-sys a { color: var(--acid-text); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }

/* dərs otağı bildirişləri: fonsuz, yarışəffaf, ortaya yaxın; × və toxunanda uzanır */
.room .toasts { left: 50%; right: auto !important; transform: translateX(-50%); top: 22%; bottom: auto !important; width: min(520px, calc(100vw - 24px)); justify-items: center; pointer-events: none; }
.room .toast.room-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(10, 7, 16, .28); color: #fff; opacity: .82; box-shadow: none; border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(3px); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); font-weight: 600; cursor: pointer; transition: opacity .25s, transform .25s; }
.room .toast.room-toast.err { color: #ffd0da; border-color: rgba(255, 90, 122, .55); }
.room .toast.room-toast.is-held { opacity: 1; background: rgba(10, 7, 16, .55); }
.room .toast.room-toast.is-out { opacity: 0; transform: translateY(-6px); }
.room .rt-x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer; }

/* canlı yazı: yazanın öz çərçivəsində (böyük); × ilə bağlanır; ümumi siyahı yuxarıda — alt düymələrə mane olmur */
.tile-cap { position: absolute; left: 8px; right: 8px; bottom: 44px; z-index: 3; display: grid; gap: 6px; justify-items: start; pointer-events: none; }
.tile-cap .cap { max-width: 100%; }
.tile-cap .cap-text { font-size: min(var(--cap-size), 7cqw); }
.tile { container-type: inline-size; }
.cap { position: relative; padding-right: 34px; }
.cap-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; pointer-events: auto; }
.cap.is-pinned { cursor: default; }
.captions { top: calc(var(--top-h, 60px) + 64px); bottom: auto; }
body:not(.board-full) .captions { top: calc(var(--top-h, 60px) + 12px); }

/* müəllim: öyrəncini çıxarmaq */
.tile-kick { position: absolute; top: 8px; right: 8px; z-index: 4; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 7, 16, .55); color: #ffc2cf; cursor: pointer; opacity: .75; }
.tile-kick:hover { opacity: 1; background: var(--danger); color: #fff; }
.tile-kick .ic { width: 16px; height: 16px; }
body.board-full .tile-kick { display: none; }
.people li { position: relative; }
.people-kick { margin-inline-start: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--danger); cursor: pointer; }
.people-kick .ic { width: 15px; height: 15px; }
.kick-dialog { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 9, .6); backdrop-filter: blur(3px); }
.kick-card { width: min(400px, 100%); display: grid; gap: 12px; padding: 20px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 6px 6px 0 var(--danger); }
.kick-card h3 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 1.1rem; }
.kick-card .check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.kick-actions { display: flex; justify-content: flex-end; gap: 8px; }
.kick-yes { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.kicked { position: fixed; inset: 0; z-index: 220; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: rgba(10, 7, 16, .94); }
.kicked .ic { width: 48px; height: 48px; color: var(--danger); }

/* ═══ Bələdçi (tour.js) ═══ */
.tour { position: fixed; inset: 0; z-index: 500; animation: capIn .25s ease-out; }
.tour.out { opacity: 0; transition: opacity .25s; }
.tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(5, 3, 9, .72); transition: all .38s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.tour-hole::after { content: ""; position: absolute; inset: -4px; border-radius: 20px; border: 2px solid var(--acid); animation: tourRing 1.8s ease-out infinite; }
@keyframes tourRing { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
.tour-pop { position: fixed; width: 340px; max-width: calc(100vw - 24px); padding: 20px; border-radius: 22px; background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line-2); box-shadow: 6px 6px 0 var(--violet), 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(8px) scale(.97);
  transition: opacity .3s, transform .35s cubic-bezier(.3, 1.4, .5, 1), left .38s, top .38s; }
.tour-pop.in { opacity: 1; transform: none; }
.tour-pop.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) scale(.97); text-align: center; }
.tour-pop.center.in { transform: translate(-50%, -50%); }
.tour-pop::before { content: ""; position: absolute; width: 14px; height: 14px; background: var(--ink-2); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); left: calc(var(--ax, 50%) - 7px); transform: rotate(45deg); }
.tour-pop[data-arrow="top"]::before { top: -8px; }
.tour-pop[data-arrow="bottom"]::before { bottom: -8px; transform: rotate(225deg); }
.tour-pop[data-arrow="none"]::before, .tour-pop.center::before { display: none; }
.tp-ic { width: 52px; height: 52px; border-radius: 18px; display: inline-grid; place-items: center; background: rgba(139, 61, 255, .18); color: var(--acid-text); margin-bottom: 10px; }
.tp-ic .ic { width: 26px; height: 26px; }
.tp-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.tour-pop.center .tp-dots { justify-content: center; }
.tp-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: all .3s; }
.tp-dots i.done { background: rgba(212, 255, 58, .45); }
.tp-dots i.on { width: 22px; background: var(--acid); }
.tour-pop h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tour-pop p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.tp-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tp-actions .grow { flex: 1; }
.tp-skip { border: 0; background: none; color: var(--muted); font: 600 .88rem var(--font-body, system-ui); cursor: pointer; padding: 8px 4px; }
.room-help { margin-inline-start: auto; }
.room-help + .room-status { margin-inline-start: 8px; }

/* lövhə: kursor (lazer göstərici), ox seçimi */
.bcur { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; transition: transform .06s linear, opacity .4s; }
.bcur i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .3), 0 0 16px 4px rgba(239, 68, 68, .55); }
.bcur.is-teacher i { background: #8b3dff; box-shadow: 0 0 0 4px rgba(139, 61, 255, .3), 0 0 16px 4px rgba(139, 61, 255, .55); }
.bcur span { position: absolute; left: 12px; top: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(10, 7, 16, .75); color: #fff; font: 600 .7rem var(--font-body, system-ui); white-space: nowrap; }
.bcur.is-gone { opacity: 0; }
.bpop-arrow { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: .88rem; padding-top: 4px; }
.bpop-arrow .ic { width: 16px; height: 16px; vertical-align: -3px; }
.board-tools { overflow-x: auto; scrollbar-width: none; }
.board-tools::-webkit-scrollbar { display: none; }
.board-tools .bpop { position: fixed; }

/* lövhə: mətn redaktoru — künclərdə ləğv, fırlat, yerini dəyiş, böyüt */
.bt-edit { position: absolute; z-index: 5; transform-origin: 0 0; }
.bt-edit .board-text-input { position: static; display: block; }
.bt-h { position: absolute; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 2px solid #fff;
  background: var(--violet); color: #fff; font: 700 15px/1 system-ui; cursor: pointer; touch-action: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.bt-h .ic { width: 14px; height: 14px; }
.bt-x { left: -14px; top: -14px; background: #ef4444; }
.bt-rot { right: -14px; top: -14px; cursor: grab; }
.bt-move { left: -14px; bottom: -14px; cursor: move; }
.bt-scale { right: -14px; bottom: -14px; cursor: nwse-resize; }

/* klaviatura: dartmaq tutacağı və bağla */
.kb-chrome { display: flex; align-items: center; gap: 6px; min-width: 0; }
.kb-chrome .kb-tabs { flex: 1; min-width: 0; }
.mathpad .kb-grip, .mathpad .kb-close { flex: none; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 10px; font: 700 1.1rem/1 system-ui; }
.mathpad .kb-grip { cursor: grab; touch-action: none; color: var(--muted); }
.mathpad .kb-grip:active { cursor: grabbing; }
.mathpad .kb-grip .ic { width: 16px; height: 16px; }
.mathpad .kb-close { color: var(--text); }

/* lövhə: sərbəst simvollar üçün zibil qutusu; musiqi şrifti klaviaturada */
.bt-trash { position: absolute; left: 50%; bottom: 14px; z-index: 6; transform: translateX(-50%); width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(239, 68, 68, .14); border: 2px dashed #ef4444; color: #ef4444; pointer-events: none; transition: transform .15s, background .15s; }
.bt-trash .ic { width: 26px; height: 26px; }
.bt-trash.is-hot { transform: translateX(-50%) scale(1.18); background: #ef4444; color: #fff; }
.kb-keys button { font-family: "Noto Music", "Cambria Math", "STIX Two Math", "Segoe UI Symbol", "DejaVu Sans", serif; }

/* ═══ Lövhəyə alternativlər: mətn redaktoru, piano, 3D qlobus ═══ */
.balt { position: absolute; inset: 0; z-index: 7; display: grid; background: #fff; }
.balt > div { min-height: 0; }
.board-wrap.is-full .balt { top: calc(var(--bt-h, 60px) + 8px); }
.balt-note textarea { width: 100%; height: 100%; resize: none; border: 0; outline: none; padding: clamp(14px, 3vw, 32px); font: 500 clamp(1rem, 2.2vw, 1.35rem)/1.6 Onest, system-ui, sans-serif; color: #111827;
  background: repeating-linear-gradient(#fff 0 calc(1.6em - 1px), #e0e7ff calc(1.6em - 1px) 1.6em); background-attachment: local; }
.balt-piano { display: grid; align-content: center; justify-items: center; gap: 14px; padding: 16px; background: linear-gradient(#1a1126, #0a0710); position: relative; }
.pk { position: relative; width: min(100%, 860px); aspect-ratio: 860 / 300; max-height: 72%; }
.pk-whites { display: flex; gap: 3px; height: 100%; }
.pk-w { flex: 1; min-width: 0; padding-inline: 0; position: relative; border: 0; border-radius: 0 0 10px 10px; background: linear-gradient(#fff, #f1f0f5); box-shadow: inset 0 -6px 0 #d8d4e2; cursor: pointer; touch-action: none; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; }
.pk-w span { font: 600 .66rem var(--font-body, system-ui); color: #8b84a0; }
.pk-w.is-down { background: linear-gradient(#e9ddff, #d6c2ff); box-shadow: inset 0 -2px 0 #b79cff; }
.pk-b { position: absolute; top: 0; width: calc(100% / 14 * 0.64); height: 60%; z-index: 2; border: 0; border-radius: 0 0 7px 7px; background: linear-gradient(#2a2238, #0a0710); box-shadow: inset 0 -5px 0 #000; cursor: pointer; touch-action: none; }
.pk-b.is-down { background: linear-gradient(#6a1fe0, #3b0f8a); }
.balt-piano.is-locked .pk-w, .balt-piano.is-locked .pk-b { cursor: not-allowed; }
.pk-hint, .gl-hint { margin: 0; color: #a998c2; font-size: .82rem; text-align: center; }
.balt-globe { position: relative; background: #070512; }
.balt-globe canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.balt-globe .gl-hint { position: absolute; left: 0; right: 0; bottom: 10px; }
@media (max-width: 600px) { .pk-w span { font-size: .5rem; } .pk-whites { gap: 2px; } .balt-piano { padding: 10px 6px; } }
