/* ============ İlk Dersim — tasarım sistemi (sade, klasik, düz) ============ */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f5ff;
  --lav: #f1edff;
  --mint: #ecf8f6;
  --peach: #fff3ea;
  --line: #ebe8f6;
  --line-2: #ddd8f0;
  --text: #24213a;
  --muted: #6f6b88;
  --primary: #6c55e0;
  --primary-2: #5a43cc;
  --primary-soft: #efebff;
  --teal: #2a9d8f;
  --on-primary: #ffffff;
  --ring: rgba(108, 85, 224, .3);
  --hero-bg: linear-gradient(115deg, #f5f2ff, #faf8ff 55%, #eef8f7);
  --shadow-pop: 0 18px 50px -20px rgba(50, 40, 110, .28);
  --g0: #e0a100; --g1: #e8833a; --g2: #2a9d8f; --g3: #3f86d6; --g4: #d9608f;
  --ok: #1f9d6b; --danger: #e0445e; --warn: #d98a1c;
  --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 26px;
  --pad: clamp(12px, 3vw, 32px);
  --max: 1240px;
  --top-h: 74px;
  --f: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --media-accent: var(--primary);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171724; --surface: #202031; --surface-2: #27273b; --lav: #2b2843; --mint: #1d302f; --peach: #33292f;
  --line: #34344a; --line-2: #403d5e; --text: #f0eff8; --muted: #aaa9bc;
  --primary: #a99af8; --primary-2: #8e7bea; --primary-soft: #2e2a48; --teal: #5dc8bd; --on-primary: #17152b;
  --ring: rgba(169, 154, 248, .35);
  --hero-bg: linear-gradient(115deg, #25223d, #2a2442 55%, #1d2f30);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"] .hero__photo--art { filter: saturate(.95) brightness(.85); }
:root[data-theme="dark"] .btn--light { color: #17152b; }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 600 16px/1.6 var(--f);
  color: var(--text);
  background: var(--bg);
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 900; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--primary); color: var(--on-primary); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Duyuru ---------- */
.announce { background: var(--primary); color: #fff; text-align: center; font-size: 13.5px; font-weight: 800; padding: 7px 40px; position: relative; }
.announce button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; background: none; border: 0; color: #fff; opacity: .85; font-size: 18px; line-height: 1; padding: 4px 8px; }

/* ---------- Üst bar ---------- */
.topbar { position: relative; z-index: 20; background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); height: var(--top-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; transition: transform .35s var(--ease); }
.brand:hover img { transform: rotate(-6deg); }
.brand__copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.brand__name em { font-style: normal; color: var(--primary); }
.brand__url { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 14.5px; color: var(--muted); transition: color .2s, background .2s; white-space: nowrap; position: relative; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--primary); }
.nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .topbar__actions { margin-left: 0; }
.auth { display: flex; align-items: center; gap: 8px; }
.auth--stack { flex-direction: column; align-items: stretch; }
.auth__link { font-weight: 800; font-size: 14.5px; padding: 8px 10px; color: var(--text); border-radius: 10px; }
.auth__link:hover { color: var(--primary); }
.auth__me { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.auth__me b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 13px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.t-light { display: none; }
:root[data-theme="dark"] .t-dark { display: none; }
:root[data-theme="dark"] .t-light { display: inline; }
.burger { display: none; gap: 4px; align-content: center; justify-items: center; }
.burger span { display: block; width: 18px; height: 2.4px; border-radius: 2px; background: currentColor; transition: .3s var(--ease); }

/* ---------- Hamburger menü ---------- */
.menu { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(380px, 100%); border: 0; padding: 0; background: var(--surface); color: var(--text); border-left: 1px solid var(--line); }
.menu::backdrop { background: rgba(44, 42, 37, .45); backdrop-filter: blur(3px); }
.menu[open] { animation: menu-in .35s var(--ease); }
@keyframes menu-in { from { transform: translateX(30px); opacity: 0; } }
.menu__in { display: flex; flex-direction: column; height: 100%; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); gap: 16px; overflow-y: auto; }
.menu__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.menu__nav { display: flex; flex-direction: column; gap: 2px; }
.menu__nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 800; font-size: 16.5px; transition: background .2s; }
.menu__nav a i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: 17px; }
.menu__nav a:hover, .menu__nav a.is-active { background: var(--primary-soft); color: var(--primary); }
.menu__grades { padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.menu__grades span { font-size: 13px; font-weight: 800; color: var(--muted); }
.menu__grades div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.menu__grades a { height: 46px; display: grid; place-items: center; border-radius: 12px; font-weight: 900; font-size: 19px; background: var(--surface); border: 1px solid var(--line); color: var(--c); }
.menu__grades a:hover { background: var(--c); color: #fff; border-color: var(--c); }
.menu__foot { margin-top: auto; display: grid; gap: 10px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 13px; border: 1px solid transparent;
  font-weight: 900; font-size: 15px; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-2); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--primary); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn--icon { width: 46px; padding: 0; flex-shrink: 0; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; pointer-events: none; }

/* ---------- Ana alan & sayfa geçişleri ---------- */
#app { overflow-y: auto; overflow-x: hidden; outline: none; overscroll-behavior: contain; position: relative; }
.page { padding-block: clamp(16px, 3vw, 32px) clamp(28px, 5vw, 48px); }

::view-transition-old(page) { animation: vt-out .2s var(--ease) both; }
::view-transition-new(page) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
#app > * { view-transition-name: page; }
.no-vt #app > * { animation: vt-in .38s var(--ease) both; }
.vt-theme ::view-transition-old(page), .vt-theme ::view-transition-new(page) { animation: none; }
.vt-theme ::view-transition-old(root) { animation: .4s var(--ease) both fade-out; }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page), ::view-transition-new(page), .no-vt #app > * { animation: none; }
}
.loader { display: grid; place-items: center; height: 100%; min-height: 50vh; }
.loader span { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- ANA SAYFA (kaydırmasız) ---------- */
.home { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(12px, 2vh, 20px); padding-block: clamp(12px, 2.6vh, 28px) clamp(12px, 2.4vh, 24px); }
.hero {
  position: relative; overflow: hidden; isolation: isolate; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(20px, 3.4vw, 48px);
  padding: clamp(20px, 3.6vh, 44px) clamp(20px, 3.4vw, 46px);
  border-radius: var(--r-xl); background: var(--hero-bg); border: 1px solid var(--line);
}
.hero::before { content: "✦"; position: absolute; z-index: -1; left: 50%; top: 6%; font-size: 64px; color: color-mix(in oklab, var(--primary) 18%, transparent); }
.hero__copy { display: flex; flex-direction: column; gap: clamp(8px, 1.6vh, 14px); min-width: 0; }
.hero h1 { font-size: clamp(32px, 2.6vw + 2vh, 64px); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 span { color: var(--primary); }
.hero__lead { font-size: clamp(15px, .4vw + 1vh, 18px); color: var(--muted); max-width: 54ch; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hero__grades { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero__grades small { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-right: 2px; }
.gpill { --c: var(--g1); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 900; background: var(--surface); border: 1px solid var(--line); transition: .2s; }
.gpill b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 11.5px; }
.gpill:hover { border-color: var(--c); color: var(--c); }
.hero__visual { position: relative; height: 100%; min-height: 0; display: flex; align-items: center; }
.hero__photo { width: 100%; height: min(100%, 440px); object-fit: cover; border-radius: 22px; border: 6px solid var(--surface); }
.hero__badge { position: absolute; left: -14px; bottom: 12%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.hero__badge img { width: 38px; height: 38px; }
.hero__badge small { display: block; color: var(--muted); font-weight: 700; }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.flow-card {
  display: flex; flex-direction: column; gap: 6px; padding: clamp(12px, 1.8vh, 18px) clamp(14px, 1.4vw, 20px);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease);
}
@media (max-width: 1100px) and (min-width: 721px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.flow-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.flow-card__top { display: flex; align-items: center; gap: 8px; }
.flow-card__no { font-size: 12px; font-weight: 900; padding: 3px 8px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }
.flow-card__label { font-size: 11.5px; font-weight: 900; letter-spacing: .14em; color: var(--muted); }
.flow-card h3 { font-size: clamp(15.5px, 1vw + .3vh, 18px); line-height: 1.25; }
.flow-card p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.flow-card__go { margin-top: auto; font-size: 13px; font-weight: 900; color: var(--primary); }

/* ---------- Sayfa başlıkları ---------- */
.phead { padding: clamp(22px, 4vw, 40px); border-radius: var(--r-xl); background: var(--hero-bg); border: 1px solid var(--line); margin-bottom: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.phead h1 { font-size: clamp(28px, 4vw, 46px); margin-top: 6px; }
.phead h1 span { color: var(--primary); }
.phead p { color: var(--muted); margin-top: 8px; max-width: 62ch; font-size: clamp(15px, 1.3vw, 17px); }
.phead__art { font-size: clamp(54px, 7vw, 90px); line-height: 1; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 800; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--primary); }

.sec { margin-top: clamp(26px, 4vw, 44px); }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec__head h2 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 4px; }
.sec__head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.sec__head--center { flex-direction: column; align-items: center; text-align: center; }

/* Sınıf seçici kartlar */
.gcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 14px); margin-bottom: clamp(16px, 2.5vw, 24px); }
.gcard {
  --c: var(--g1); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
  padding: clamp(14px, 2vw, 20px); border-radius: var(--r-lg); border: 1.5px solid var(--line);
  background: color-mix(in oklab, var(--c) 9%, var(--surface)); transition: border-color .2s, transform .25s var(--ease);
}
.gcard:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--c) 60%, var(--line)); }
.gcard.is-active { border-color: var(--c); background: color-mix(in oklab, var(--c) 16%, var(--surface)); }
.gcard__emoji { position: absolute; right: 12px; top: 10px; font-size: clamp(26px, 3vw, 40px); }
.gcard small { font-size: 12px; font-weight: 800; color: var(--muted); }
.gcard strong { font-size: clamp(18px, 2vw, 24px); font-weight: 900; color: var(--c); }
.gcard span { font-size: 13px; font-weight: 900; color: var(--text); margin-top: 4px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { --c: var(--primary); display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 14px; transition: .2s; }
.chip:hover { border-color: var(--c); color: var(--c); }
.chip.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.field-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); min-width: min(300px, 100%); }
.field-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.field-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-weight: 700; }

/* ---------- Ders kartları ---------- */
.grid { display: grid; gap: clamp(10px, 1.6vw, 18px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.lcard { --c: var(--primary); display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.lcard:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--c) 55%, var(--line)); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in oklab, var(--c) 14%, var(--surface)); display: grid; place-items: center; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb__emoji { font-size: clamp(40px, 5vw, 58px); transition: transform .4s var(--ease); }
.lcard:hover .thumb__emoji { transform: scale(1.1) rotate(-5deg); }
.thumb__play { position: absolute; inset: 0; margin: auto; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; opacity: 0; scale: .8; transition: .25s var(--ease); }
.lcard:hover .thumb__play { opacity: 1; scale: 1; }
.badge { position: absolute; font: 900 11.5px/1 var(--f); padding: 6px 9px; border-radius: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.badge--dur { right: 10px; bottom: 10px; }
.badge--grade { left: 10px; top: 10px; color: var(--c); }
.lcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.lcard__sub { font-size: 12px; font-weight: 900; color: var(--c); letter-spacing: .06em; text-transform: uppercase; }
.lcard h3 { font-size: 17.5px; font-weight: 900; line-height: 1.3; }
.lcard p { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.empty { text-align: center; padding: 40px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); background: var(--surface); }
.empty img { width: 76px; margin: 0 auto 10px; }
.empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }

/* Adımlar */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 900; margin-bottom: 10px; }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }
.cta-band { margin-top: clamp(26px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-xl); background: var(--hero-bg); border: 1px solid var(--line); }
.cta-band h3 { font-size: clamp(20px, 2.2vw, 26px); }
.cta-band p { color: var(--muted); margin-top: 4px; }

/* Materyaller */
.mlist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.mcard { --c: var(--primary); display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.mcard__ico { width: 54px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 14%, var(--surface)); color: var(--c); font-size: 12px; font-weight: 900; position: relative; }
.mcard__ico::before { content: attr(data-emoji); font-size: 22px; position: absolute; top: 8px; }
.mcard__ico span { position: absolute; bottom: 7px; }
.mcard h3 { font-size: 16.5px; line-height: 1.3; }
.mcard p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.mcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mcard__meta small { font-size: 12.5px; font-weight: 800; color: var(--muted); }

/* ---------- Ders sayfası ---------- */
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(16px, 2.4vw, 30px); align-items: start; }
.player { border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.player video-player, .player video-skin { display: block; width: 100%; height: 100%; }
.player video { width: 100%; height: 100%; }
.player iframe { width: 100%; height: 100%; border: 0; }
.lesson__head { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.lesson__head h1 { font-size: clamp(26px, 3.2vw, 38px); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { --c: var(--primary); display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 800; background: color-mix(in oklab, var(--c) 12%, var(--surface)); color: var(--c); }
.lesson__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.prose { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 26px); font-size: 16.5px; }
.prose h2 { font-size: 21px; margin: 18px 0 8px; color: var(--primary); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 6px 0; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--primary); }
.prose p + p { margin-top: 10px; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
.side h3 { font-size: 19px; margin-bottom: 4px; }
.side .list { display: grid; gap: 10px; }
.mini { --c: var(--primary); display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.mini:hover { border-color: var(--c); }
.mini .thumb { border-radius: 10px; }
.mini .thumb__emoji { font-size: 28px; }
.mini strong { font-size: 15px; line-height: 1.25; display: block; }
.mini span { font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* ---------- Bilgi / form sayfaları ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 30px); align-items: start; }
.two--wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.card { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.card h2 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 6px; }
.card > p { color: var(--muted); }
.stack { display: grid; gap: 12px; }
.tip { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.tip i { font-style: normal; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); font-size: 20px; }
.tip h3 { font-size: 16.5px; }
.tip p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--peach); font-size: 14px; font-weight: 700; line-height: 1.5; }
.note--lav { background: var(--lav); }
.note--mint { background: var(--mint); }
.checks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.checks li::before { content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal); font-weight: 900; font-size: 13px; margin-top: 1px; }

.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.f { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
label.f small { font-weight: 700; color: var(--muted); }
.input, label.f input:not([type="checkbox"]), label.f textarea, label.f select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 600; outline: none; transition: border-color .2s, box-shadow .2s;
}
label.f textarea { min-height: 130px; resize: vertical; }
.input:focus, label.f input:focus, label.f textarea:focus, label.f select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.form__err { color: var(--danger); font-weight: 800; font-size: 14px; min-height: 1.2em; }
.success { text-align: center; padding: 28px 12px; }
.success div { font-size: 52px; }
.success h3 { font-size: 22px; margin: 6px 0; }
.success p { color: var(--muted); }
.upload-box { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
.upload-box img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }

/* Eğitmenler */
.teachers { display: grid; gap: clamp(14px, 2vw, 20px); }
.teacher { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); padding: clamp(14px, 2.4vw, 22px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); align-items: start; }
.teacher:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); }
.teacher:nth-child(even) .teacher__photo { order: 2; }
.teacher__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--surface-2); }
.teacher__role { font-size: 12.5px; font-weight: 900; color: var(--primary); letter-spacing: .04em; }
.teacher h2 { font-size: clamp(26px, 3vw, 34px); margin: 4px 0 10px; }
.teacher__bio p { color: var(--muted); font-size: 15.5px; }
.teacher__bio p + p { margin-top: 10px; }
.teacher__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.teacher__tags span { font-size: 13px; font-weight: 800; padding: 6px 11px; border-radius: 999px; background: var(--mint); color: var(--teal); }
.avatars { display: flex; }
.avatars img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }

/* Giriş / Kayıt */
.auth-page { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: stretch; padding-block: clamp(14px, 3vh, 32px); }
.auth-art { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--hero-bg); border: 1px solid var(--line); padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.auth-art h1 { font-size: clamp(28px, 3.4vw, 44px); margin-top: 8px; }
.auth-art h1 span { color: var(--primary); }
.auth-art p { color: var(--muted); margin-top: 8px; }
.auth-art img.photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r-lg); border: 6px solid var(--surface); }
.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-form .auth-tabs { width: min(460px, 100%); }
.auth-form .card { width: min(460px, 100%); }
.auth-form h2 { font-size: 28px; }
.auth-alt { text-align: center; font-size: 14.5px; color: var(--muted); font-weight: 700; }
.auth-alt a { color: var(--primary); font-weight: 900; }

/* Hesabım */
.qlist { display: grid; gap: 12px; }
.qitem { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.qitem header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 800; color: var(--muted); }
.qitem p { white-space: pre-wrap; }
.qitem .answer { padding: 12px 14px; border-radius: 12px; background: var(--mint); border-left: 4px solid var(--teal); }
.qitem.is-fresh { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal) 22%, transparent); }
.qitem__who { padding: 2px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.status--new { background: var(--teal); color: #fff; }
.auth__me { position: relative; }
.auth__dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 900; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.qitem .answer b { display: block; font-size: 13px; color: var(--teal); margin-bottom: 4px; }
.status { font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px; }
.status--on { background: color-mix(in oklab, var(--ok) 14%, transparent); color: var(--ok); }
.status--wait { background: color-mix(in oklab, var(--warn) 14%, transparent); color: var(--warn); }
.status--off { background: var(--surface-2); color: var(--muted); }

/* ---------- Altbilgi ---------- */
.footer { margin-top: clamp(30px, 5vw, 56px); border-top: 1px solid var(--line); background: var(--surface); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding-block: 32px 18px; }
.footer p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 42ch; }
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer nav { display: grid; gap: 8px; font-weight: 800; font-size: 14.5px; }
.footer nav a:hover { color: var(--primary); }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 14px 20px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Arama ---------- */
.search { border: 0; padding: 0; background: transparent; width: min(660px, calc(100% - 24px)); max-height: min(70dvh, 620px); margin: 10vh auto auto; overflow: visible; }
.search::backdrop { background: rgba(44, 42, 37, .45); backdrop-filter: blur(4px); }
.search[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.search__box { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); color: var(--muted); }
.search__box input { flex: 1; border: 0; outline: 0; background: none; font-size: 18px; font-weight: 700; color: var(--text); min-width: 0; }
.search kbd { font: 800 12px var(--f); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.search__results { margin-top: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); max-height: calc(min(70dvh, 620px) - 80px); overflow: auto; padding: 8px; display: grid; gap: 4px; }
.search__results:empty { display: none; }
.search__results .mini { border-color: transparent; }
.search__results .mini:hover, .search__results .mini.is-sel { background: var(--surface-2); border-color: var(--line); }
.search__results .hint { padding: 18px; text-align: center; color: var(--muted); }

/* ---------- Sohbet asistanı ---------- */
.chat-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 60px; height: 60px; border-radius: 20px; border: 0; background: var(--primary); display: grid; place-items: center; box-shadow: 0 10px 26px -10px var(--primary); transition: transform .25s var(--ease); }
.chat-fab:hover { transform: scale(1.06) rotate(-5deg); }
.chat-fab img { width: 44px; height: 44px; }
.chat-open .chat-fab { opacity: 0; pointer-events: none; }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 36px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); transform-origin: bottom right; animation: chat-in .35s var(--ease); }
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--primary); color: #fff; }
.chat__head .icon-btn { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; width: 34px; height: 34px; }
.chat__avatar { background: rgba(255, 255, 255, .2); border-radius: 12px; padding: 2px; }
.chat__who { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.chat__who strong { font-size: 17px; font-weight: 900; }
.chat__who span { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee3a1; display: inline-block; }
.chat__ctx { margin: 10px 12px 0; padding: 8px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.chat__ctx button { margin-left: auto; background: none; border: 0; color: inherit; font-size: 16px; }
.chat__grades { display: flex; align-items: center; gap: 6px; padding: 10px 14px 0; font-size: 13px; font-weight: 800; color: var(--muted); }
.chat__grades button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-weight: 900; }
.chat__grades button.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.chat__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: msg-in .25s var(--ease); word-wrap: break-word; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg--bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg--me { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 5px; }
.msg ul, .msg ol { margin: 4px 0; padding-left: 20px; }
.msg p + p { margin-top: 6px; }
.msg h2 { font-size: 15.5px; margin: 6px 0 2px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-3px); } }
.chat__suggest { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.chat__suggest::-webkit-scrollbar { display: none; }
.chat__suggest button { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 800; color: var(--primary); }
.chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat__form textarea { flex: 1; resize: none; max-height: 120px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface); outline: none; font-weight: 600; }
.chat__form textarea:focus { border-color: var(--primary); }
.chat__note { font-size: 11px; color: var(--muted); text-align: center; padding: 0 12px 10px; }
.chat__cam { width: 46px; height: 46px; border-radius: 13px; color: var(--primary); }
.chat__attach { margin: 0 12px 8px; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 800; animation: msg-in .25s var(--ease); }
.chat__attach img { width: 44px; height: 44px; object-fit: cover; border-radius: 9px; background: var(--surface); }
.chat__attach span { flex: 1; } .chat__attach button { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; padding: 4px 6px; }
.chat.is-drop .chat__log { outline: 3px dashed var(--primary); outline-offset: -8px; border-radius: 18px; }
.msg__img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; margin-bottom: 6px; cursor: zoom-in; }
.msg__img.is-zoom { max-height: none; cursor: zoom-out; }
.msg__photo { font-size: 13px; opacity: .85; }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; z-index: 80; padding: 12px 18px; border-radius: 13px; background: var(--text); color: var(--bg); font-weight: 800; font-size: 14.5px; opacity: 0; pointer-events: none; transition: .3s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ============ Duyarlı düzen ============ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 980px) {
  .lesson { grid-template-columns: 1fr; }
  .side { position: static; }
  .side .list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  .two, .two--wide { grid-template-columns: 1fr; }
  .teacher, .teacher:nth-child(even) { grid-template-columns: 1fr; }
  .teacher:nth-child(even) .teacher__photo { order: 0; }
  .teacher__photo { aspect-ratio: 4 / 3; max-height: 360px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art .photo { display: none; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --top-h: 62px; }
  .hide-md { display: none !important; }
  .brand img { width: 38px; height: 38px; }
  .brand__name { font-size: 19px; }
  .brand__url { font-size: 10.5px; }

  .home { gap: 10px; padding-block: 10px 12px; }
  .hero { grid-template-columns: 1fr; align-content: center; padding: 20px 16px; border-radius: 22px; gap: 14px; }
  .hero::before { display: none; }
  .hero__visual { display: none; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 42px); }
  .hero__lead { font-size: 15px; }
  .hero__ctas .btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: 14px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flow-card:last-child { grid-column: 1 / -1; }
  .flow-card { padding: 12px; border-radius: 16px; gap: 4px; }
  .flow-card p, .flow-card__go { display: none; }
  .flow-card h3 { font-size: 14.5px; }

  .phead { grid-template-columns: 1fr; border-radius: 22px; padding: 20px 16px; }
  .phead__art { display: none; }
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lcard { border-radius: 16px; }
  .lcard__body { padding: 10px 11px 12px; gap: 3px; }
  .lcard h3 { font-size: 15px; }
  .lcard p { display: none; }
  .lcard__sub { font-size: 10.5px; }
  .badge { font-size: 10.5px; padding: 5px 7px; }
  .badge--grade { left: 7px; top: 7px; } .badge--dur { right: 7px; bottom: 7px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { padding: 16px; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; }
  .step b { grid-row: span 2; margin: 0; }
  .player { border-radius: 14px; }
  .prose { padding: 16px; font-size: 15.5px; }
  .form .row { grid-template-columns: 1fr; }
  .toolbar .field-search { flex-basis: 100%; }
  .chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .chat__head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .chat__form { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .chat-fab { width: 56px; height: 56px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .search { margin-top: 12px; }
  .footer__in { grid-template-columns: 1fr 1fr; padding-block: 24px 14px; }
}
@media (max-width: 380px) {
  .grid { gap: 8px; }
  .hero__grades small { display: none; }
}
/* Kısa ekranlar */
@media (max-height: 760px) and (min-width: 861px) { .hero__text2 { display: none; } }
@media (max-height: 640px) and (min-width: 861px) { .flow-card p { display: none; } .hero__grades { display: none; } }
@media (max-height: 540px), (max-width: 860px) and (max-height: 600px) { .home { height: auto; min-height: 100%; } }
@media (max-width: 860px) and (max-height: 720px) { .hero__lead { display: none; } }
@media (max-width: 860px) {
  .hero__text2, .hero__grades small { display: none; }
  .hero__ctas { flex-wrap: nowrap; }
  .hero__grades { gap: 6px; flex-wrap: nowrap; }
  .gpill { height: 32px; padding: 0 10px 0 6px; font-size: 13px; flex: 1; justify-content: center; }
  .flow { padding-right: 0; }
}
@media (max-width: 380px) { .hero__ctas .btn { font-size: 13px; padding: 0 8px; } }
.hero__grades small { flex-basis: 100%; }
@media (max-width: 860px) and (min-height: 740px) {
  .hero__visual { display: flex; height: auto; }
  .hero__photo { height: clamp(120px, 24dvh - 20px, 210px); border-width: 4px; border-radius: 16px; }
  .hero__badge { display: none; }
}
.teacher__photo { object-position: center 30%; }

/* ============ Noktalı arka plan (önceki tasarımdan) ============ */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at 88% -8%, color-mix(in oklab, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(520px 380px at -8% 108%, color-mix(in oklab, var(--teal) 14%, transparent), transparent 70%),
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--primary) 16%, transparent) 1.1px, transparent 0) 0 0 / 22px 22px;
}
body { background-color: var(--bg); }
#app { background: transparent; }

/* ============ Uzun ana sayfa ============ */
.homepage { padding-top: clamp(12px, 2.4vw, 26px); }
.homepage .hero { min-height: min(620px, calc(100dvh - var(--top-h) - 40px)); }
.homepage .hero__visual { height: auto; }
.homepage .hero__photo { height: clamp(260px, 44vh, 440px); }
.hero__note { font-size: 13px; font-weight: 800; color: var(--muted); }
.hero__stat { position: absolute; right: -10px; top: 10%; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; line-height: 1.1; }
.hero__stat b { display: block; font-size: 24px; font-weight: 900; color: var(--primary); }
.hero__stat span { font-size: 12px; font-weight: 800; color: var(--muted); }
.homepage .sec { margin-top: clamp(40px, 6vw, 72px); }
.sec__head--center { max-width: 720px; margin-inline: auto; margin-bottom: 22px; }
.sec__head--center h2 { font-size: clamp(26px, 3.2vw, 38px); }
.link { font-weight: 900; color: var(--primary); font-size: 14.5px; }

.gcards--big .gcard { padding: clamp(18px, 2.4vw, 26px); min-height: 180px; justify-content: flex-end; gap: 6px; }
.gcards--big .gcard__emoji { font-size: clamp(34px, 4vw, 52px); top: 16px; right: 16px; transition: transform .4s var(--ease); }
.gcards--big .gcard:hover .gcard__emoji { transform: rotate(10deg) scale(1.1); }
.gcards--big .gcard strong { font-size: clamp(24px, 2.6vw, 32px); }
.gcard em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.subject-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.area { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.area:hover { transform: translateY(-3px); border-color: var(--primary); }
.area__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.area__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.area:hover .area__img img { transform: scale(1.05); }
.area__play { position: absolute; left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.area__body { padding: 16px 18px 18px; }
.area__body small { font-size: 11.5px; font-weight: 900; letter-spacing: .12em; color: var(--primary); }
.area__body h3 { font-size: 20px; margin: 4px 0; }
.area__body p { color: var(--muted); font-size: 14.5px; }

.band { margin-top: clamp(40px, 6vw, 72px); background: var(--surface); border-block: 1px solid var(--line); }
.method { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; gap: 24px; align-items: center; padding-block: clamp(26px, 4vw, 40px); }
.method h2 { font-size: clamp(24px, 2.8vw, 34px); margin-top: 6px; }
.method h2 span { color: var(--primary); }
.method__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 10px 14px; }
.method__steps li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 900; }
.method__steps b { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats div { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stats b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 900; color: var(--primary); line-height: 1.1; }
.stats span { font-size: 13.5px; font-weight: 800; color: var(--muted); }
.features { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.feature:hover { border-color: var(--primary); }
.feature i { font-style: normal; font-size: 24px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14.5px; }

.tutor-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 44px); border-radius: var(--r-xl); background: var(--hero-bg); border: 1px solid var(--line); }
.tutor-band h2 { font-size: clamp(24px, 3vw, 36px); margin: 6px 0 10px; }
.tutor-band__art { position: relative; }
.tutor-band__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 6px solid var(--surface); }
.tutor-band__art span { position: absolute; left: 16px; bottom: -14px; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 900; font-size: 14px; }

.tmini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tmini { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.tmini:hover { border-color: var(--primary); }
.tmini img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; object-position: center 25%; }
.tmini small { font-size: 12px; font-weight: 900; color: var(--primary); }
.tmini h3 { font-size: 20px; }
.tmini p { font-size: 13px; color: var(--muted); font-weight: 700; }

.ai-band { display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px, 3vw, 32px); align-items: center; padding: clamp(20px, 3.4vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.ai-band__owl { width: 150px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -6px; } }
.ai-band h2 { font-size: clamp(22px, 2.6vw, 32px); margin: 6px 0 8px; }
.ai-band__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-band__chips .chip { color: var(--primary); }

.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--primary); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 900; font-size: 16.5px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 16px; }

.cta-band--strong { background: var(--primary); border-color: var(--primary); color: #fff; margin-top: 0; }
.cta-band--strong p { color: rgba(255, 255, 255, .85); }
.btn--light { background: #fff; color: var(--primary-2); }
.btn--light:hover { background: var(--primary-soft); }
.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ai-band__owl { animation: none; } }

@media (max-width: 980px) {
  .areas, .tmini-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: 1fr; }
  .tutor-band { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .homepage .hero { min-height: 0; }
  .homepage .hero__visual { display: flex; }
  .homepage .hero__photo { height: 200px; }
  .hero__stat { right: 8px; top: 8px; padding: 8px 10px; }
  .hero__stat b { font-size: 19px; }
  .hero__note { display: none; }
  .gcards--big .gcard { min-height: 140px; }
  .gcard em { font-size: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .features { gap: 10px; }
  .feature { padding: 14px; }
  .feature i { width: 42px; height: 42px; font-size: 20px; margin-bottom: 8px; }
  .feature h3 { font-size: 15.5px; }
  .feature p { font-size: 13px; }
  .areas { grid-template-columns: 1fr; }
  .area { display: grid; grid-template-columns: 120px 1fr; }
  .area__img { aspect-ratio: auto; height: 100%; min-height: 110px; }
  .area__play { width: 36px; height: 36px; left: 8px; bottom: 8px; }
  .area__body { padding: 12px 14px; }
  .area__body h3 { font-size: 17px; }
  .ai-band { grid-template-columns: 1fr; text-align: center; }
  .ai-band__owl { width: 96px; margin: 0 auto; }
  .ai-band__chips { justify-content: center; }
  .tmini { grid-template-columns: 72px 1fr; }
  .tmini img { width: 72px; height: 72px; }
  .faq summary { font-size: 15px; }
}
/* Mobil/tablet: menü gizliyken düğmeler sağa yaslansın */
@media (max-width: 1180px) {
  .topbar__in { gap: 10px; }
  .nav + .topbar__actions, .topbar__actions { margin-left: auto; }
}
@media (max-width: 380px) {
  .topbar__actions { gap: 6px; }
  .topbar__actions .icon-btn { width: 38px; height: 38px; }
  .brand__url { display: none; }
}

/* ============ v2 eklemeleri ============ */
body { grid-template-rows: auto 1fr; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--primary); color: #fff; border-radius: 10px; }
.skip:focus { left: 8px; }
.announce { text-align: center; padding: 8px 14px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; }
.nav a.is-active { color: var(--primary); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 14px; font-weight: 800; }
.footer__social a { color: var(--muted); }
.footer__social a:hover { color: var(--primary); }
.footer__in { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.page--narrow { max-width: 900px; }
.chips--units { margin: -6px 0 14px; align-items: center; }
.chip--sm { padding: 5px 11px; font-size: 13px; }
.chip--sm small { opacity: .7; }
.tag--ok { background: color-mix(in oklab, var(--ok) 15%, transparent); color: var(--ok); }
.badge--prem { background: #f59e0b; color: #fff; left: auto; right: 10px; top: 10px; }
.badge--lock { background: rgba(0, 0, 0, .7); color: #fff; left: auto; right: 10px; top: 10px; }
.thumb__done { position: absolute; right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.is-locked .thumb { filter: saturate(.4); }
.note--err { background: color-mix(in oklab, var(--danger) 12%, var(--surface)); color: var(--danger); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { filter: brightness(.95); }

/* Oynatıcı */
.player--empty { display: grid; place-items: center; align-content: center; gap: 10px; color: #fff; font-weight: 800; background: var(--primary-2); text-align: center; padding: 20px; }
.player--empty img { width: 64px; }
.player--game { aspect-ratio: 16 / 9; background: #111; }
.player--game.is-pseudo-fs { position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; margin: 0; }
.player--game.is-pseudo-fs iframe { width: 100%; height: 100%; }
html.game-fs, html.game-fs body { overflow: hidden; }
html.game-fs body > *:not(main) { visibility: hidden; }
@media (max-width: 700px) { .player--game { aspect-ratio: auto; height: min(80dvh, 720px); } }
.player--game:fullscreen iframe, [data-player]:fullscreen video { width: 100vw; height: 100vh; }
.lesson__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.lesson__nav a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.lesson__nav a:hover { border-color: var(--primary); }
.lesson__nav a.is-next { text-align: right; }
.lesson__nav small { font-size: 12px; font-weight: 900; color: var(--primary); letter-spacing: .04em; }
.lesson__nav strong { font-size: 15px; }
.lesson__mats { margin-top: 22px; }
.lesson__mats h2 { font-size: 20px; margin-bottom: 12px; }
.lesson .prose.card { margin-top: 18px; }
.unit-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.unit-list a { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; font-size: 14px; font-weight: 800; border: 1px solid transparent; }
.unit-list a:hover { background: var(--surface-2); }
.unit-list b { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; }
.unit-list .is-current a { background: var(--primary-soft); border-color: var(--line-2); color: var(--primary); }
.unit-list .is-current b { background: var(--primary); color: var(--on-primary); }
.unit-list small { color: var(--muted); font-size: 12px; }

/* Sınıf modu */
body.classroom .topbar, body.classroom .side, body.classroom .chat-fab, body.classroom .footer, body.classroom .crumbs, body.classroom .lesson__nav, body.classroom .lesson__mats, body.classroom .prose, body.classroom .quiz { display: none !important; }
body.classroom .lesson { grid-template-columns: 1fr; }
body.classroom .page { padding-top: 8px; }
body.classroom .player { border-radius: 10px; max-height: calc(100dvh - 160px); aspect-ratio: auto; height: calc(100dvh - 170px); }
body.classroom .lesson__head h1 { font-size: 22px; }
body.classroom .lesson__head .muted, body.classroom .tags { display: none; }

/* Mini test */
.quiz { margin-top: 22px; }
.quiz__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.quiz__head h2 { font-size: 22px; }
.quiz__head .badge { position: static; background: var(--primary-soft); color: var(--primary); }
.quiz__form { display: grid; gap: 14px; }
.q { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0; background: var(--surface-2); }
.q legend { font-weight: 900; font-size: 16px; padding: 0 6px; }
.q.is-ok { border-color: var(--ok); } .q.is-bad { border-color: var(--danger); }
.q__img { max-height: 220px; border-radius: 10px; margin: 8px 0; }
.q__choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; margin-top: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; font-weight: 800; transition: border-color .15s; }
.choice:hover { border-color: var(--primary); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice.is-correct { border-color: var(--ok); background: color-mix(in oklab, var(--ok) 14%, var(--surface)); }
.choice.is-wrong { border-color: var(--danger); background: color-mix(in oklab, var(--danger) 12%, var(--surface)); }
.choice input { accent-color: var(--primary); }
.q__exp { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 700; }
.quiz__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.grid--tests { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tcard { display: grid; gap: 8px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); transition: transform .25s var(--ease), border-color .2s; }
.tcard:hover { transform: translateY(-3px); }
.tcard__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.tcard__top .badge { position: static; }
.tcard h3 { font-size: 19px; }
.tcard p { color: var(--muted); font-size: 14px; }
.tcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 800; color: var(--muted); }
.tcard__best { color: var(--ok); }
.tcard--deneme { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--surface)), var(--surface) 60%); }
.attempts { display: grid; gap: 8px; }
.attempt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.attempt small { display: block; color: var(--muted); font-size: 12.5px; }
.attempt b { font-size: 18px; color: var(--danger); } .attempt b.is-ok { color: var(--ok); }

/* Blog, sayfalar, SSS, paketler */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.post { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .2s; }
.post:hover { transform: translateY(-3px); border-color: var(--primary); }
.post__img { aspect-ratio: 16 / 9; background: var(--lav); display: grid; place-items: center; font-size: 40px; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 16px 18px 20px; }
.post__body small { font-size: 12px; font-weight: 900; color: var(--primary); letter-spacing: .04em; }
.post__body h3 { font-size: 19px; margin: 6px 0; }
.post__body p { color: var(--muted); font-size: 14.5px; }
.article h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 8px 0 12px; }
.article__lead { font-size: 19px; color: var(--muted); margin-bottom: 18px; }
.article__cover { width: 100%; border-radius: var(--r-lg); margin-bottom: 20px; }
.article .prose { font-size: 17px; }
.prose h2, .prose h3 { margin: 22px 0 8px; } .prose p { margin: 0 0 12px; } .prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; } .prose blockquote { margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--primary); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.faq__cat { font-size: 20px; margin: 26px 0 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1.5px solid var(--line); }
.plan.is-hot { border-color: var(--primary); box-shadow: var(--shadow-pop); }
.plan__tag { position: absolute; top: -13px; left: 20px; padding: 4px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 900; }
.plan h2 { font-size: 22px; }
.plan__price b { font-size: 36px; font-weight: 900; color: var(--primary); } .plan__price span { color: var(--muted); font-weight: 800; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.quote { margin: 0; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.quote__stars { color: #f59e0b; letter-spacing: 2px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.quote figcaption { display: grid; font-size: 13.5px; } .quote figcaption span { color: var(--muted); }

/* Hesaplar */
.auth-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px 10px; border-radius: 10px; font-weight: 900; font-size: 14px; color: var(--muted); }
.auth-tabs a.is-active { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px -4px rgba(0,0,0,.2); }
.stats--account { margin: 0 0 22px; }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.kid { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.kid:hover { border-color: var(--primary); transform: translateY(-2px); }
.kid__top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.kid__avatar { font-style: normal; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--lav); font-size: 30px; }
.kid__top h3 { font-size: 19px; } .kid__top small { color: var(--muted); font-size: 12.5px; }
.kid__pts { font-weight: 900; color: var(--primary); white-space: nowrap; }
.kid__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.kid__stats span { display: grid; font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 8px 4px; border-radius: 10px; background: var(--surface-2); }
.kid__stats b { font-size: 18px; color: var(--text); }
.pbar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--c, var(--primary)); border-radius: 999px; transition: width .6s var(--ease); }
.kid-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: clamp(18px, 3vw, 30px); border-radius: var(--r-xl); background: var(--hero-bg); border: 1px solid var(--line); margin-bottom: 18px; }
.kid-hero__avatar { font-style: normal; width: 86px; height: 86px; display: grid; place-items: center; border-radius: 26px; background: var(--surface); font-size: 48px; border: 3px solid var(--c); }
.kid-hero h1 { font-size: clamp(24px, 3vw, 34px); }
.kid-hero__pts { text-align: center; padding: 12px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.kid-hero__pts b { display: block; font-size: 28px; color: var(--primary); } .kid-hero__pts span { font-size: 12px; font-weight: 800; color: var(--muted); }
.badges-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badges-row--big { margin: 0 0 8px; }
.rozet { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 900; color: var(--muted); }
.rozet i { font-style: normal; font-size: 18px; filter: grayscale(1); opacity: .5; }
.rozet.is-on { background: var(--primary-soft); color: var(--primary); border-color: var(--line-2); } .rozet.is-on i { filter: none; opacity: 1; }
.teacher-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.teacher-grid .gcard { min-height: 150px; }
.gcard em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }

/* Rapor (veli + admin ortak) */
.report .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.report .tile { display: grid; gap: 2px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.report .tile i { font-style: normal; font-size: 22px; } .report .tile b { font-size: 24px; color: var(--primary); } .report .tile span { font-size: 12.5px; font-weight: 800; color: var(--muted); } .report .tile small { color: var(--muted); font-size: 12px; }
.report .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.report .card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .report .card__head h2 { font-size: 17px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 120px; }
.bars--tall { height: 150px; }
.bar { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; gap: 4px; text-align: center; }
.bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--primary); opacity: .85; align-self: end; }
.bar span { font-size: 10px; font-weight: 800; color: var(--muted); }
.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.progress-list li > div:first-child { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; margin-bottom: 4px; } .progress-list small { color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 700; }
.feed li > span, .feed li > a { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .feed small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; } .table th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); } .table td { padding: 8px; border-bottom: 1px solid var(--line); }
.table .ok { color: var(--ok); } .table .warn { color: var(--danger); }
@media (max-width: 860px) { .report .cols, .lesson__nav, .teacher-grid { grid-template-columns: 1fr 1fr; } .kid-hero { grid-template-columns: auto 1fr; } .kid-hero__pts { grid-column: 1 / -1; } .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .report .cols, .lesson__nav, .teacher-grid, .footer__in { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .topbar .auth { display: none; } .topbar__actions { gap: 6px; } }
@media (max-width: 1500px) and (min-width: 1181px) { .nav { gap: 2px; } .nav a { padding-inline: 9px; font-size: 14px; } .topbar__in { gap: 10px; } }
.hero__photo--art { object-fit: contain; background: transparent; border: 0; border-radius: 28px; box-shadow: var(--shadow-pop); }
/* Oyun sayfasında yüzen Bilge düğmesi oyunun üstüne gelmesin */
body.game-page .chat-fab { display: none; }

.mcard__btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mview { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 80vh; border-radius: 18px; overflow: hidden; background: #2c2a25; box-shadow: 0 10px 30px rgba(50,40,110,.15); }
.mview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mview__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mview__note { font-size: 13px; margin-top: 8px; }
@media (max-width: 640px) {
  .mview { aspect-ratio: 16 / 11; border-radius: 14px; }
  .mview__bar { display: grid; grid-template-columns: 1fr 1fr; }
  .mview__bar > .btn { grid-column: 1 / -1; justify-content: center; }
  .mview__bar .mcard__btns { display: contents; }
  .mview__bar .mcard__btns .btn { justify-content: center; }
  body:has(#mview) .chat-fab { display: none; }
}
.mview__close { display: none; position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; cursor: pointer; }
.mview__close:hover { background: rgba(0,0,0,.85); }
.mview.is-full, .mview:fullscreen { position: fixed; inset: 0; z-index: 2147483000; width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; background: #000; box-shadow: none; }
.mview.is-full .mview__close, .mview:fullscreen .mview__close { display: block; }
.mview.is-full img, .mview:fullscreen img { background: #000; }
html.mview-lock, html.mview-lock body { overflow: hidden; }
html.mview-lock .topbar, html.mview-lock .chat-fab, html.mview-lock .chat { display: none !important; }

/* Telefon dik tutulurken tam ekran: sunumu yan çevir, ekranı doldursun */
@media (orientation: portrait) and (max-width: 900px) {
  .mview.is-full iframe, .mview:fullscreen iframe, .mview.is-full img, .mview:fullscreen img {
    inset: auto; top: 50%; left: 50%; width: 100vh; width: 100dvh; height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg); transform-origin: center;
  }
  .mview.is-full img, .mview:fullscreen img { position: absolute; }
  .mview.is-full .mview__close, .mview:fullscreen .mview__close { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); right: 12px; transform: rotate(90deg); }
}


/* ============ Bilge sohbet: çocuk dostu, sevimli görünüm ============ */
.chat-fab { width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe59a, #ffc94d 60%, #f5a623); box-shadow: 0 10px 24px -8px rgba(245, 166, 35, .7), 0 0 0 5px color-mix(in srgb, #ffc94d 30%, transparent); animation: owl-bob 3s ease-in-out infinite; overflow: visible; }
.chat-fab img { width: 50px; height: 50px; }
.chat-fab:hover { transform: none; animation: owl-wiggle .6s ease-in-out; }
.chat-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #ffc94d; opacity: 0; animation: owl-ring 3s ease-out infinite; }
.chat-fab__say { position: absolute; right: 74px; top: 50%; translate: 0 -50%; white-space: nowrap; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 900; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); border: 2px solid #ffc94d; animation: say 9s ease-in-out infinite; pointer-events: none; }
@keyframes owl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes owl-wiggle { 25% { transform: rotate(-10deg) scale(1.08); } 75% { transform: rotate(8deg) scale(1.08); } }
@keyframes owl-ring { 0% { opacity: .7; transform: scale(.9); } 60%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes say { 0%, 8% { opacity: 0; transform: translateX(8px) scale(.9); } 12%, 45% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateX(8px) scale(.9); } }

.chat { border-radius: 28px; border: 3px solid #ffd76a; background: var(--surface); }
.chat__head { position: relative; overflow: hidden; padding: 14px 12px 22px 14px; background: linear-gradient(160deg, #7ec8f2, #5aa9e6 55%, #6dc3a8); color: #fff; }
.chat__head::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: -14px; height: 28px; background: var(--surface); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.chat__stars { position: absolute; inset: 0; pointer-events: none; }
.chat__stars i { position: absolute; font-style: normal; color: #fff7c2; opacity: .9; animation: twinkle 2.4s ease-in-out infinite; }
.chat__stars i:nth-child(1) { left: 58%; top: 10px; font-size: 14px; }
.chat__stars i:nth-child(2) { left: 70%; top: 34px; font-size: 11px; animation-delay: .8s; }
.chat__stars i:nth-child(3) { left: 46%; top: 30px; font-size: 12px; animation-delay: 1.4s; }
.chat__stars i:nth-child(4) { left: 78%; top: 6px; font-size: 18px; opacity: .8; animation: cloud 8s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.7) rotate(20deg); } }
@keyframes cloud { 50% { transform: translateX(-14px); } }
.chat__avatar { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 3px #ffd76a; padding: 0; animation: owl-bob 3s ease-in-out infinite; }
.chat__avatar img { width: 46px; height: 46px; }
.chat__who { position: relative; z-index: 1; }
.chat__who strong { font-size: 20px; letter-spacing: -.01em; text-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.chat__who span { font-size: 12.5px; font-weight: 800; }
.chat__head .icon-btn { position: relative; z-index: 1; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.dot { background: #b8ff9f; box-shadow: 0 0 0 3px rgba(184, 255, 159, .35); animation: blink 1.6s infinite; }

.chat__grades { padding: 4px 14px 0; gap: 7px; }
.chat__grades span { margin-right: 2px; }
.chat__grades button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--c); font-size: 15px; transition: transform .2s var(--ease); }
.chat__grades button:hover { transform: translateY(-2px) rotate(-6deg); }
.chat__grades button.is-active { color: #fff; transform: scale(1.12); box-shadow: 0 6px 14px -6px var(--c); }

.chat__log { gap: 12px; background-color: var(--surface); background-image: radial-gradient(color-mix(in srgb, #ffc94d 22%, transparent) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.chat__hello { align-self: center; text-align: center; max-width: 92%; margin: 6px auto 2px; padding: 16px 18px 14px; border-radius: 24px; background: linear-gradient(170deg, #fff7d6, #fff 70%); border: 2px dashed #ffd76a; color: #3b3320; animation: msg-in .4s var(--ease); }
.chat__hello img { width: 68px; height: 68px; margin: -2px auto 6px; animation: owl-wiggle 1.4s ease-in-out 2; }
.chat__hello__t { display: block; font-size: 19px; color: #e07b1a; }
.chat__hello p b { color: #e07b1a; }
.chat__hello p { font-size: 14.5px; margin-top: 4px; color: #5a4f36; }
.mrow { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 92%; animation: msg-in .3s var(--ease); }
.mrow__owl { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #fff3c4; padding: 2px; border: 2px solid #ffd76a; }
.mrow .msg { max-width: 100%; }
.msg { border-radius: 20px; font-size: 15.5px; }
.msg--bot { position: relative; background: #fffaf0; border: 2px solid #ffe3a3; border-bottom-left-radius: 6px; color: #3b3320; box-shadow: 0 4px 0 #ffe9b8; }
.msg--me { background: linear-gradient(160deg, #5aa9e6, #4a90d9); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 4px 0 #3c7cc0; font-weight: 700; }
.msg--bot b, .msg--bot strong { color: #e07b1a; }
.msg.is-typing { display: inline-flex; align-items: center; gap: 8px; }
.typing i { width: 9px; height: 9px; background: #ffb81f; animation: hop .9s ease-in-out infinite; }
.typing i:nth-child(2) { background: #5aa9e6; } .typing i:nth-child(3) { background: #6dc3a8; }
.typing__txt { font-size: 12.5px; font-weight: 800; color: #9a8a62; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } }
.msg__cheer { position: absolute; right: -8px; top: -12px; font-size: 18px; animation: cheer .6s var(--ease) both; }
@keyframes cheer { from { opacity: 0; transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3) rotate(10deg); } }

.chat__suggest { gap: 7px; padding: 4px 14px 10px; }
.chat__suggest button { border: 2px solid transparent; font-weight: 900; padding: 7px 13px; transition: transform .2s var(--ease); }
.chat__suggest button:hover { transform: translateY(-2px) rotate(-1.5deg); }
.chat__suggest button:nth-child(5n+1) { background: #fff1d6; color: #b8650a; border-color: #ffd99a; }
.chat__suggest button:nth-child(5n+2) { background: #e3f2ff; color: #2f6fb3; border-color: #b8dbff; }
.chat__suggest button:nth-child(5n+3) { background: #e4f7ee; color: #23845a; border-color: #b5e8cf; }
.chat__suggest button:nth-child(5n+4) { background: #fde8f1; color: #b8457a; border-color: #f7c3da; }
.chat__suggest button:nth-child(5n+5) { background: #efe9ff; color: #6a4fc7; border-color: #d6cbff; }

.chat__form { border-top: 0; padding: 8px 12px 10px; background: var(--surface); }
.chat__form textarea { border-radius: 22px; border: 2px solid #ffe3a3; background: #fffdf6; padding: 11px 16px; font-weight: 700; }
.chat__form textarea:focus { border-color: #ffb81f; box-shadow: 0 0 0 4px rgba(255, 184, 31, .18); }
.chat__send { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(160deg, #ffc94d, #f5a623); color: #fff; border: 0; box-shadow: 0 4px 0 #d98b0f; }
.chat__send:hover { transform: translateY(-1px) rotate(-8deg); }
.chat__send:active { transform: translateY(3px); box-shadow: 0 1px 0 #d98b0f; }
.chat__cam { border-radius: 50%; border: 2px solid #ffe3a3; color: #e07b1a; background: #fffdf6; }
.chat__ctx { border-radius: 14px; background: #fff1d6; color: #b8650a; border: 2px dashed #ffd99a; }
.chat__attach { background: #e3f2ff; color: #2f6fb3; border-radius: 16px; }

:root[data-theme="dark"] .chat { border-color: #6b5a2e; }
:root[data-theme="dark"] .chat__head { background: linear-gradient(160deg, #3b3a78, #2c2c5e 55%, #2a4a52); }
:root[data-theme="dark"] .chat__hello { background: #2a2740; color: var(--text); border-color: #6b5a2e; }
:root[data-theme="dark"] .chat__hello p { color: var(--muted); }
:root[data-theme="dark"] .msg--bot { background: #2a2740; border-color: #4a4470; color: var(--text); box-shadow: 0 4px 0 #1d1b30; }
:root[data-theme="dark"] .chat__form textarea, :root[data-theme="dark"] .chat__cam { background: var(--surface-2); border-color: #4a4470; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .chat-fab, .chat-fab::after, .chat-fab__say, .chat__avatar, .chat__stars i, .chat__hello img { animation: none; } .chat-fab__say { display: none; } }
@media (max-width: 720px) { .chat { border: 0; border-radius: 0; } .chat-fab__say { display: none; } }

/* ---------- Anlayarak Hızlı Okuma (2026-12) ---------- */
.gcards--ho { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gcard--ho { background: linear-gradient(135deg, #fff8e1, #fff); }
@media (max-width: 860px) { .gcards--ho { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gcards--ho .gcard--ho { grid-column: 1 / -1; } }
.ho-band { margin-top: clamp(16px, 2.4vw, 26px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(16px, 3vw, 36px); align-items: center;
  padding: clamp(20px, 3vw, 34px); border-radius: 26px; background: linear-gradient(135deg, #fff6d6, #fffdf5 60%, #f4f0ff); border: 1.5px solid #f3df9b; }
.ho-band h3 { font-size: clamp(24px, 2.8vw, 34px); margin: 6px 0 10px; line-height: 1.1; }
.ho-band p { margin: 0 0 14px; color: var(--muted); }
.ho-band ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.ho-band li { background: #fff; border: 1px solid #f0e2b0; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.ho-band__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ho-band__art { border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(108, 85, 224, .16); aspect-ratio: 16 / 9; background: #ede9ff; }
.ho-band__art video, .ho-band__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .ho-band { grid-template-columns: 1fr; } }
.promo { margin-top: clamp(16px, 2.4vw, 26px); }
.promo__video { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(40, 30, 90, .18); background: #111; aspect-ratio: 16 / 9; }
.promo__video video { width: 100%; height: 100%; display: block; }

/* ---------- Test / deneme: optik form + yazdırma (2026-12) ---------- */
.quiz-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; align-items: start; }
.quiz-wrap .quiz { margin-top: 0; }
.page--narrow:has(.quiz-wrap) { max-width: 1120px; }
.quiz__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.choice__harf { color: var(--primary); min-width: 22px; }
.optik { position: sticky; top: 84px; padding: 14px; max-height: calc(100vh - 110px); overflow: auto; }
.optik__head b { display: block; font-size: 16px; }
.optik__head small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 10px; line-height: 1.35; }
.optik__row { display: flex; align-items: center; gap: 5px; padding: 3px 0; }
.optik__row a { width: 26px; font-weight: 900; font-size: 13px; color: var(--ink); text-decoration: none; text-align: right; margin-right: 4px; }
.optik__b { width: 30px; height: 30px; border-radius: 50%; border: 1.8px solid #b9b2d9; background: #fff; font: 800 12px/1 inherit; color: #6b6491; cursor: pointer; padding: 0; }
.optik__b:hover:not(:disabled) { border-color: var(--primary); }
.optik__b.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.optik__b:disabled { cursor: default; }
.print-only { display: none; }
@media (max-width: 900px) { .quiz-wrap { grid-template-columns: 1fr; } .optik { position: static; max-height: none; } .optik__rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; } }
@media print {
  @page { size: A4; margin: 12mm; }
  body * { visibility: hidden; }
  .quiz-wrap, .quiz-wrap * { visibility: visible; }
  .quiz-wrap { position: absolute; left: 0; top: 0; width: 100%; grid-template-columns: minmax(0, 1fr) 46mm; gap: 6mm; }
  .card { box-shadow: none !important; border: 0 !important; background: #fff !important; }
  .quiz__tools, .quiz__foot, .q__exp, .note, .optik__head small { display: none !important; }
  .print-only { display: flex !important; justify-content: space-between; gap: 10px; border-bottom: 1px solid #000; padding-bottom: 4px; margin-bottom: 8px; font-size: 11px; }
  .quiz__head h2 { font-size: 15px; }
  .q { break-inside: avoid; border: 0; padding: 4px 0; margin: 0 0 6px; font-size: 12px; }
  .q__choices { grid-template-columns: 1fr 1fr; gap: 2px 10px; }
  .choice { border: 0; padding: 2px 0; background: none; font-weight: 600; }
  .choice input { display: none; }
  .optik { position: static; max-height: none; overflow: visible; border: 1px solid #000 !important; padding: 3mm; }
  .optik__b { width: 6mm; height: 6mm; border: 1px solid #000; background: #fff !important; color: #000 !important; font-size: 8px; }
  .optik__row a { color: #000; }
}
.lesson .quiz-wrap { grid-template-columns: 1fr; }
.lesson .optik { position: static; max-height: none; }
.lesson .optik__rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; }
.live-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; border: 1.5px solid #cfc6ff; background: linear-gradient(135deg, #f4f1ff, #fff); }
.live-link h2 { margin: 4px 0; }
.feed--kids { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed--kids li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface, #faf9ff); font-size: 14.5px; }
.feed--kids i { font-style: normal; font-weight: 900; color: var(--primary); margin-right: 4px; }
.feed--kids small { color: var(--muted); white-space: nowrap; }
.feed__ico { font-size: 18px; text-align: center; }
.feed--kids li > span:nth-child(2), .feed--kids li > span:nth-child(2) * { display: inline !important; }
.promo__video { max-width: 900px; margin-inline: auto; }
@media print {
  html, body { background: #fff !important; }
  body::before, body::after { display: none !important; }
  .q, .choice, .choice:has(input:checked), .quiz-wrap .quiz { background: #fff !important; box-shadow: none !important; }
  .quiz__head .muted, .quiz__head .eyebrow { display: none !important; }
  .optik__b, .optik__b.is-on { background: #fff !important; color: #000 !important; border-color: #000 !important; }
}
