/* ==========================================================================
   Learn First – genel stiller (üst menü, alt bilgi, ortak bileşenler,
   seviye testi giriş ve sonuç sayfaları). Kurumsal sayfalar: site.css
   ========================================================================== */

:root {
    --bg: #f5f7fc;
    --surface: #ffffff;
    --surface-2: #eef2fa;
    --border: #dfe5f0;
    --text: #0f1b33;
    --muted: #57657d;
    --primary: #123869;           /* Learn First laciverti */
    --primary-strong: #0b2550;
    --primary-soft: #e8effc;
    --on-primary: #ffffff;
    --accent: #f69a31;            /* Learn First turuncusu */
    --accent-strong: #b45309;     /* küçük turuncu yazılar için okunaklı ton */
    --accent-soft: #fff2e1;
    --on-accent: #10264a;
    --success: #15803d;
    --success-soft: #e6f6ec;
    --danger: #c62828;
    --danger-soft: #fdecec;
    --warning-soft: #fff4dc;
    --highlight: #ffe9a8;
    /* Temadan bağımsız marka renkleri (lacivert bantlar, alt bilgi) */
    --navy: #123869;
    --navy-2: #1d4b8c;
    --navy-deep: #0b1f3f;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgb(16 38 74 / .05), 0 10px 30px rgb(16 38 74 / .08);
    --shadow-lg: 0 2px 4px rgb(16 38 74 / .06), 0 24px 60px rgb(16 38 74 / .14);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Poppins", "Inter", system-ui, sans-serif;
    --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-serif: "Source Serif 4", Georgia, serif;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --header-h: 76px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0a1224;
    --surface: #111b31;
    --surface-2: #17233d;
    --border: #233252;
    --text: #e7ecf6;
    --muted: #97a5bf;
    --primary: #8db0ff;
    --primary-strong: #aec6ff;
    --primary-soft: #1a2a4f;
    --on-primary: #0a1224;
    --accent: #f7a54b;
    --accent-strong: #ffb766;
    --accent-soft: #33240f;
    --on-accent: #1a1204;
    --success: #4ade80;
    --success-soft: #10291b;
    --danger: #f87171;
    --danger-soft: #331517;
    --warning-soft: #2e2611;
    --highlight: #6b5a12;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .25);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 60px rgb(0 0 0 / .4);
    color-scheme: dark;
}

/* Tema değişirken yumuşak geçiş */
.theme-anim, .theme-anim * { transition: background-color .35s, border-color .35s, color .35s, fill .35s !important; }

*, *::before, *::after { box-sizing: border-box; }
/* hidden özniteliği her zaman gizler (.btn gibi display veren sınıflar onu ezmesin) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
main { flex: 1; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
h1, h2 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
body:not(.exam-page) main section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Simgeler (templates/partials/icons.html) */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
    width: 1.25em; height: 1.25em; flex: none; vertical-align: middle;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
    background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Logo & amblem ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; color: var(--text); }
.logo__img { height: 40px; width: auto; }
.logo__img--dark, :root[data-theme="dark"] .logo__img--light { display: none; }
:root[data-theme="dark"] .logo__img--dark { display: block; }
.logo__product {
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    background: var(--accent-soft); color: var(--accent-strong);
}

.mark { display: block; overflow: visible; }
.mark__sq { fill: var(--primary); transform-box: fill-box; transform-origin: center; }
:root[data-theme="dark"] .mark__sq { fill: #dfe7f7; }
.mark__sq--accent { fill: var(--accent) !important; }
.mark--bar { width: 30px; height: 30px; flex: none; }
.mark--bar .mark__sq { animation: sq-pop .5s var(--ease-spring) both; animation-delay: calc(var(--i) * 45ms); }
.mark--bar .mark__sq--accent { animation: sq-pop .5s var(--ease-spring) both, sq-breathe 3.2s ease-in-out 1s infinite; }
@keyframes sq-pop { from { transform: scale(0); opacity: 0; } }
@keyframes sq-breathe { 50% { transform: scale(.82); } }
@keyframes sq-float { 50% { transform: translateY(-1.6px); } }
@keyframes sq-hop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-5px) rotate(12deg); } 90% { transform: translateY(0) rotate(0); } }

/* ---------- Üst menü ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 24px rgb(16 38 74 / .06); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.site-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border: 0; border-radius: 10px;
    background: none; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s;
}
.main-nav__link:hover, .is-open > .main-nav__link { background: var(--surface-2); }
.main-nav__link.is-active { color: var(--primary); font-weight: 600; }
.main-nav__link.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: var(--accent);
}
.main-nav__chevron { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.is-open > .main-nav__link .main-nav__chevron { transform: rotate(180deg); }

/* Açılır program menüsü */
.mega {
    position: absolute; top: calc(100% + 12px); left: -24px; width: min(720px, calc(100vw - 40px));
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; padding: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: 20% 0;
    transition: opacity .2s, transform .3s var(--ease-out), visibility 0s .3s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* fareyle geçerken kapanmasın */
.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__item {
    display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px;
    color: var(--text); text-decoration: none; transition: background .2s;
}
.mega__item:hover, .mega__item:focus-visible { background: var(--surface-2); }
.mega__icon {
    display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary); transition: background .25s, color .25s, transform .4s var(--ease-spring);
}
.mega__icon .i { width: 22px; height: 22px; }
.mega__item:hover .mega__icon { background: var(--primary); color: var(--on-primary); transform: rotate(-6deg) scale(1.06); }
.mega__text { display: grid; line-height: 1.35; }
.mega__text strong { font-size: 15px; font-weight: 600; }
.mega__text small { font-size: 13px; color: var(--muted); }
.mega__feature {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
    min-height: 100%; padding: 22px; border-radius: 16px; text-decoration: none; color: #fff;
    background: radial-gradient(120% 120% at 100% 0%, #2a5aa0 0%, var(--navy) 55%, var(--navy-deep) 100%);
}
.mega__feature strong { font-family: var(--font-heading); font-size: 26px; font-weight: 600; line-height: 1.1; }
.mega__feature > span { font-size: 14px; color: rgb(255 255 255 / .78); }
.mega__badge {
    align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #10264a !important;
    font-size: 12px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.mega__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #ffc27a !important; font-weight: 600; }
.mega__cta .i { transition: transform .25s var(--ease-out); }
.mega__feature:hover .mega__cta .i { transform: translateX(4px); }
.mega__mark { position: absolute; top: 18px; right: 18px; width: 58px; height: 58px; }
.mega__mark .mark__sq, :root[data-theme="dark"] .mega__mark .mark__sq { fill: rgb(255 255 255 / .16); }
.is-open .mega__mark .mark__sq { animation: sq-pop .5s var(--ease-spring) both; animation-delay: calc(var(--i) * 35ms); }

.site-header .nav-toggle { display: none; }

/* Giriş yapmış kullanıcının menüsü */
.avatar {
    display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(140deg, var(--navy-2), var(--navy)); color: #fff;
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
:root[data-theme="dark"] .avatar { background: linear-gradient(140deg, #3b6fc4, #24508f); }
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }
.avatar--xl { width: 64px; height: 64px; font-size: 21px; }
.avatar--square { border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); }
:root[data-theme="dark"] .avatar--square { background: var(--accent-soft); }
.user-menu { position: relative; }
.user-menu__button {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
    transition: background .2s, border-color .2s;
}
.user-menu__button:hover, .user-menu.is-open .user-menu__button { background: var(--surface-2); }
.user-menu__button .avatar { width: 32px; height: 32px; font-size: 12px; }
.user-menu__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu.is-open .main-nav__chevron { transform: rotate(180deg); }
.user-menu__panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 260px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top right;
    transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.user-menu__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.user-menu.is-open .user-menu__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.user-menu__who { display: grid; gap: 1px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.user-menu__who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.user-menu__panel a, .user-menu__panel button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 11px;
    background: none; color: var(--text); font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
}
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--surface-2); }
.user-menu__panel .i { width: 18px; height: 18px; color: var(--primary); }
.user-menu__panel form { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.header-login .i { width: 17px; height: 17px; }

/* Mobil menü */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(8 18 38 / .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%);
    display: flex; flex-direction: column; gap: 18px; padding: 14px 20px max(24px, env(safe-area-inset-bottom));
    background: var(--surface); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); transition: transform .4s var(--ease-out);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.drawer__head .logo__img { height: 34px; }
.drawer__label { margin: 4px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer__nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.drawer__nav a {
    display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px;
    color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; transition: background .2s;
}
.drawer__nav a:hover { background: var(--surface-2); }
.drawer__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.drawer__icon .i { width: 20px; height: 20px; }
.drawer.is-open .drawer__nav li { animation: fade-up .5s var(--ease-out) both; }
.drawer.is-open .drawer__nav li:nth-child(2) { animation-delay: 30ms; }
.drawer.is-open .drawer__nav li:nth-child(3) { animation-delay: 60ms; }
.drawer.is-open .drawer__nav li:nth-child(4) { animation-delay: 90ms; }
.drawer.is-open .drawer__nav li:nth-child(5) { animation-delay: 120ms; }
.drawer__cta { display: grid; gap: 10px; margin-top: auto; }
.drawer__foot { display: grid; gap: 8px; font-size: 14px; }
.drawer__foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }

/* ---------- Alt bilgi ---------- */
.site-footer {
    position: relative; overflow: hidden; padding: 72px 0 28px; font-size: 14.5px;
    background: var(--navy-deep); color: rgb(255 255 255 / .74);
}
:root[data-theme="dark"] .site-footer { background: #060d1b; border-top: 1px solid var(--border); }
.site-footer::before {
    content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%;
    background: radial-gradient(circle, rgb(246 154 49 / .18), transparent 65%); pointer-events: none;
}
.site-footer::after {
    content: ""; position: absolute; width: 600px; height: 600px; left: -240px; bottom: -380px; border-radius: 50%;
    background: radial-gradient(circle, rgb(86 148 255 / .16), transparent 65%); pointer-events: none;
}
.site-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .9fr 1fr 1.5fr; gap: 40px; }
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__brand p { max-width: 32ch; margin: 18px 0 22px; font-family: var(--font-heading); font-size: 17px; font-style: italic; color: rgb(255 255 255 / .86); }
.site-footer__title { margin: 4px 0 16px; font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__list a { color: rgb(255 255 255 / .74); text-decoration: none; transition: color .2s; }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.site-footer__contact .i { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.site-footer__bottom {
    position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px;
    margin-top: 52px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 13px; color: rgb(255 255 255 / .55);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__legal a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer__legal a:hover { color: #fff; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    background: rgb(255 255 255 / .08); color: #fff; border: 1px solid rgb(255 255 255 / .1);
    transition: transform .25s var(--ease-spring), background .2s, color .2s;
}
.social a .i { width: 18px; height: 18px; }
.social a:hover { transform: translateY(-3px); background: var(--accent); color: var(--navy-deep); }

/* WhatsApp düğmesi */
.wa-fab {
    position: fixed; z-index: 45; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; height: 56px; padding: 0 15px; border-radius: 999px;
    background: #25d366; color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 28px rgb(37 211 102 / .38);
    transition: transform .35s var(--ease-spring), box-shadow .3s;
}
.wa-fab .i { width: 26px; height: 26px; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: wa-ping 2.8s 2s infinite; }
.wa-fab__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease-out), margin .45s var(--ease-out); }
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgb(37 211 102 / .45); }
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label { max-width: 170px; margin-left: 10px; }
@keyframes wa-ping { 0% { box-shadow: 0 0 0 0 rgb(37 211 102 / .5); } 70%, 100% { box-shadow: 0 0 0 18px rgb(37 211 102 / 0); } }

/* ---------- Buttons ---------- */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .i { width: 18px; height: 18px; }
.btn span[aria-hidden], .btn .i:has(use[href="#i-arrow-right"]) { transition: transform .25s var(--ease-out); }
.btn:hover span[aria-hidden], .btn:hover .i:has(use[href="#i-arrow-right"]) { transform: translateX(4px); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px rgb(18 56 105 / .25); }
.btn--primary:hover { background: var(--primary-strong); box-shadow: 0 10px 26px rgb(18 56 105 / .32); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgb(246 154 49 / .35); }
.btn--accent:hover { background: #ffad52; box-shadow: 0 10px 26px rgb(246 154 49 / .45); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--on-dark, .btn--glass {
    background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .32); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--on-dark:hover, .btn--glass:hover { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .55); }
.btn--whatsapp { background: #25d366; color: #fff; box-shadow: 0 6px 18px rgb(37 211 102 / .3); }
.btn--whatsapp:hover { background: #1fbd5a; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 14px 22px; font-size: 16px; }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::after {
    content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Parlama efekti */
.btn--shine::before {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent);
    animation: shine 3.6s ease-in-out 1.5s infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(220%) skewX(-20deg); } }

.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer;
    transition: background .2s, transform .3s var(--ease-spring);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: rotate(-20deg) scale(.92); }
.icon-btn > .i { width: 20px; height: 20px; }
.icon-sun, :root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Alerts / cards ---------- */
.alert { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--primary-soft); animation: fade-up .5s var(--ease-out); }
.alert--error { background: var(--danger-soft); color: var(--danger); margin: 0 0 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--accent-strong); letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow--light, :root[data-theme="dark"] .eyebrow--light { color: #ffb45c; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgb(246 154 49 / .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgb(246 154 49 / 0); } 100% { box-shadow: 0 0 0 0 rgb(246 154 49 / 0); } }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; }

/* ---------- Animasyon yardımcıları ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes reveal-up { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
.anim-up { animation: fade-up .8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
/* Kaydırınca beliren öğeler: JS yoksa her şey baştan görünür. “translate” kullanıldığı için
   öğelerin kendi hover “transform” efektleriyle çakışmaz. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: reveal-up .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 100ms); }

/* ---------- Seviye testi: hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: blob 18s ease-in-out infinite alternate; }
.blob--navy { width: 520px; height: 520px; background: #5f8fe0; top: -180px; right: -120px; opacity: .28; }
.blob--orange { width: 420px; height: 420px; background: var(--accent); bottom: -200px; left: -140px; opacity: .22; animation-delay: -6s; }
:root[data-theme="dark"] .blob--navy { background: #2c56b0; opacity: .35; }
@keyframes blob { 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 50px) scale(.95); } }
.grid-pattern {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.16; margin: 16px 0 18px; }
.hl-word { position: relative; color: var(--primary); white-space: nowrap; }
.hl-word svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 12px; overflow: visible; }
.hl-word path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1s var(--ease-out) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: 17px; color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { display: flex; gap: 12px; margin: 32px 0 0; }
.hero__stats > div {
    padding: 12px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow); min-width: 96px; transition: transform .3s var(--ease-spring);
}
.hero__stats > div:hover { transform: translateY(-4px); }
.hero__stats dt { font-size: 12px; color: var(--muted); }
.hero__stats dd { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--primary); }

.start-wrap { position: relative; }
.mark--float { position: absolute; width: 84px; height: 84px; top: -34px; right: -26px; z-index: 2; filter: drop-shadow(0 8px 16px rgb(16 38 74 / .2)); }
.mark--float .mark__sq { animation: sq-pop .6s var(--ease-spring) both, sq-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms + .4s), calc(var(--i) * -0.7s); }
.mark--float .mark__sq--accent { animation: sq-pop .6s var(--ease-spring) .55s both, sq-hop 3.4s ease-in-out 1.5s infinite; }
.start-card { position: relative; z-index: 1; padding: 32px; box-shadow: var(--shadow-lg); }
.start-card h2 { font-size: 28px; }
.start-card > p { margin: 6px 0 22px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 14px; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357657d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.field__error { color: var(--danger); font-size: 13px; animation: fade-up .3s var(--ease-out); }
.exam-options { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; padding: 2px; }
.exam-option[hidden] { display: none; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.type-chip {
    padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.type-chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.section-sub { font-size: 17px; margin: 4px 0 12px; }
.exam-option { position: relative; display: flex; cursor: pointer; }
.exam-option input { position: absolute; opacity: 0; }
.exam-option__body {
    flex: 1; display: grid; gap: 2px; padding: 14px 48px 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color .2s, background .2s, transform .2s var(--ease-out);
}
.exam-option:hover .exam-option__body { border-color: var(--primary); }
.exam-option__body small { color: var(--muted); }
.exam-option__type { font-size: 12px; font-weight: 700; color: var(--accent-strong); }
.exam-option__check {
    position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
    border: 2px solid var(--border); transition: all .25s var(--ease-spring);
}
.exam-option input:checked + .exam-option__body { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.exam-option input:checked ~ .exam-option__check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px var(--surface); transform: scale(1.1); }
.exam-option input:focus-visible + .exam-option__body { outline: 2px solid var(--accent); outline-offset: 2px; }
.exam-option.is-picked .exam-option__body { animation: picked .9s var(--ease-out); }
@keyframes picked { 30% { transform: scale(1.03); box-shadow: 0 0 0 6px var(--accent-soft); } }
.fine-print { font-size: 12.5px; color: var(--muted); text-align: center; }
.fine-print a { color: inherit; }

/* ---------- Seviye testi: bölümler ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(28px, 3.2vw, 40px); margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
    position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: transform .35s var(--ease-out), box-shadow .35s;
}
.step.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step__num {
    display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px;
    background: var(--primary); color: var(--on-primary); font-family: var(--font-display); font-weight: 700; font-size: 18px;
    transition: transform .4s var(--ease-spring), background .3s;
}
.step:hover .step__num { transform: rotate(-8deg) scale(1.1); background: var(--accent); color: var(--on-accent); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); }
.exam-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.exam-card {
    display: grid; gap: 8px; align-content: start; justify-items: start; padding: 24px;
    border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border);
    transition: transform .35s var(--ease-out), border-color .3s;
}
.exam-card.is-visible:hover { transform: translateY(-5px); border-color: var(--primary); }
.exam-card__type { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
.exam-card h3 { font-size: 17px; }
.exam-card .btn { margin-top: 8px; }

.cta {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch;
    border-radius: 24px; background: linear-gradient(135deg, #123869 0%, #1d4b8c 100%); color: #fff; box-shadow: var(--shadow-lg);
}
.cta::before {
    content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: 30%; top: -160px;
    background: radial-gradient(circle, rgb(246 154 49 / .35), transparent 70%); animation: blob 14s ease-in-out infinite alternate;
}
.cta__text { position: relative; padding: 48px; display: grid; gap: 14px; align-content: center; }
.cta__text h2 { font-size: clamp(26px, 2.8vw, 36px); }
.cta__text p { color: rgb(255 255 255 / .8); max-width: 50ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta__media { position: relative; min-height: 280px; }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.cta:hover .cta__media img { transform: scale(1.06); }
.cta__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #123869 0%, transparent 40%); }
.cta--compact { grid-template-columns: 1fr; margin-top: 24px; }
.cta--compact .cta__text { padding: 32px; }

/* ---------- Result ---------- */
.result { padding-top: 40px; padding-bottom: 32px; }
.result-hero { display: flex; gap: 40px; align-items: center; padding: 36px; }
.result-hero h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 8px 0 8px; }
.result-hero__score { position: relative; width: 168px; height: 168px; flex: none; }
.result-hero__score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--pct) 100; animation: ring 1.4s var(--ease-out) .3s both; }
@keyframes ring { from { stroke-dasharray: 0 100; } }
.result-hero__number { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.result-hero__number strong { font-family: var(--font-display); font-size: 46px; line-height: 1; color: var(--primary); }
.result-hero__number span { color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.stats > div { padding: 10px 16px; border-radius: var(--radius-sm); background: var(--surface-2); min-width: 110px; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 0; font-size: 20px; font-weight: 700; }
.stats__band { color: var(--accent-strong); }
.section-title { font-size: 24px; margin: 40px 0 14px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review { padding: 18px; }
.review__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.review__head .muted { display: block; font-size: 13px; }
.review__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.review__row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.review.is-visible .review__row { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 30ms); }
.review__row.is-ok { background: var(--success-soft); }
.review__row.is-bad { background: var(--danger-soft); }
.review__num { width: 24px; font-weight: 700; color: var(--muted); }
.review__given { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.is-bad .review__given { text-decoration: line-through; opacity: .7; }
.review__correct { font-weight: 600; color: var(--success); }
.review__icon { font-weight: 700; }
.is-ok .review__icon { color: var(--success); }
.is-bad .review__icon { color: var(--danger); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }
.result-hero__number small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.review__num { width: auto; min-width: 24px; }
.review__more { margin: 2px 0 6px 34px; font-size: 13px; }
.review__more summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.review__more div { margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.review__row.is-manual { background: var(--primary-soft); }

/* ---------- Konu analizi (eksik konu raporu) ---------- */
.score-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.score-card { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.score-card span { display: block; font-size: 13px; color: var(--muted); }
.score-card strong { display: block; font-family: var(--font-display); font-size: 34px; color: var(--primary); line-height: 1.2; }
.score-card small { color: var(--muted); }
.score-card--total { background: var(--primary); border-color: var(--primary); }
.score-card--total span, .score-card--total small, .score-card--total strong { color: var(--on-primary); }
.report { padding: 24px; margin-top: 18px; }
.report__intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; margin-bottom: 18px; }
.report__intro p { color: var(--muted); font-size: 14px; }
.focus-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-bottom: 26px; }
.focus { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); border-left: 5px solid var(--danger); background: var(--surface); }
.focus--mid { border-left-color: #d97706; }
.focus h3 { font-size: 16px; margin-bottom: 2px; }
.focus__tr { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.focus__score { font-weight: 700; font-size: 14px; }
.focus__advice { margin-top: 8px; font-size: 14px; }
.focus__missed { margin-top: 8px; font-size: 13px; color: var(--muted); }
.all-good { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--success-soft); margin-bottom: 22px; font-weight: 600; }
.report-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warning-soft); margin-bottom: 18px; font-size: 14px; line-height: 1.5; }
.report-note .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #b45309; }
.domains { display: grid; gap: 18px; }
.domain__head { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; gap: 4px 12px; }
.domain__head h3 { font-size: 15px; }
.domain__head small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.bar { height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-2); grid-column: 1 / -1; }
.bar span { display: block; height: 100%; border-radius: inherit; transition: width .8s var(--ease-out); }
.bar--good span, .bar span.lvl-good { background: linear-gradient(90deg, #16a34a, #4ade80); }
.bar--mid span, .bar span.lvl-mid { background: linear-gradient(90deg, #d97706, #fbbf24); }
.bar--low span, .bar span.lvl-low { background: linear-gradient(90deg, #dc2626, #f87171); }
.domain__pct { font-weight: 700; text-align: right; }
.topic-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.topic-table th, .topic-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.topic-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.topic-table td.num, .topic-table th.num { text-align: right; white-space: nowrap; }
.topic-table small { display: block; color: var(--muted); }
.lvl { display: inline-block; min-width: 46px; padding: 1px 8px; border-radius: 8px; font-weight: 700; font-size: 13px; text-align: center; }
.lvl-good { background: var(--success-soft); color: var(--success); }
.lvl-mid { background: var(--warning-soft); color: #b45309; }
.lvl-low { background: var(--danger-soft); color: var(--danger); }
.speaking-card { padding: 22px; margin-top: 18px; }
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.criterion { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.criterion strong { font-size: 22px; }
.criterion p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pending-box { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--primary-soft); margin-top: 18px; }
.recordings { display: grid; gap: 10px; margin-top: 12px; }
.recordings li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.recordings audio { flex: 1; min-width: 220px; }

/* ---------- Soru metni biçimleri (exams/richtext.py) ---------- */
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .15em; font-size: .92em; line-height: 1.15; }
.frac-num { padding: 0 .2em; }
.frac-den { padding: 0 .2em; border-top: 1px solid currentColor; }
sup .frac, sub .frac { font-size: .85em; }
.sqrt { display: inline-flex; align-items: stretch; white-space: nowrap; }
.sqrt-sign { padding-right: .05em; }
.sqrt-arg { border-top: 1px solid currentColor; padding: 0 .15em; }
.blank { letter-spacing: -.04em; font-family: var(--font); }
.rt-quote { margin: .4em 0 .4em 1.4em; padding: 0; }
.rt-quote p + p { margin-top: .5em; }
.rt-list { margin: .4em 0 .4em 1.2em; padding-left: 1em; }
.rt-list li + li { margin-top: .25em; }
.rt-heading { font-weight: 700; font-family: var(--font); margin-top: .6em; }
.rt-center { text-align: center; }
.rt-table-wrap { overflow-x: auto; margin: .6em 0; }
.rt-table { border-collapse: collapse; min-width: 60%; margin: 0 auto; font-family: var(--font); font-size: .9em; background: var(--surface); }
.rt-table th, .rt-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: center; }
.rt-table th { background: var(--surface-2); font-weight: 600; }

/* ---------- Dialog / overlay ---------- */
.dialog {
    border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 420px; width: calc(100% - 32px);
    background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgb(0 0 0 / .25);
}
.dialog[open] { animation: pop-in .35s var(--ease-spring); }
.dialog[open]::backdrop { animation: fade-in .25s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.94); } }
.dialog::backdrop { background: rgb(10 20 40 / .55); backdrop-filter: blur(3px); }
.dialog h2 { font-size: 22px; margin-bottom: 10px; }
.dialog p + p { margin-top: 6px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgb(10 20 40 / .6); backdrop-filter: blur(4px); animation: fade-in .25s; }
.overlay[hidden] { display: none; }
.overlay__box { display: grid; justify-items: center; gap: 16px; padding: 32px 40px; background: var(--surface); border-radius: var(--radius); text-align: center; max-width: 360px; animation: pop-in .4s var(--ease-spring); }
.loader-mark { width: 54px; height: 54px; }
.loader-mark .mark__sq { animation: sq-wave 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms); }
@keyframes sq-wave { 0%, 60%, 100% { transform: scale(1); opacity: 1; } 30% { transform: scale(.45); opacity: .5; } }

/* ---------- Hata sayfaları ---------- */
.error-page { display: grid; justify-items: center; gap: 14px; text-align: center; padding-top: 96px; padding-bottom: 96px; }
.error-page h1 { font-size: clamp(30px, 4vw, 46px); }
.error-page .btn { margin-top: 10px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.error-links a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px;
    transition: border-color .2s, color .2s, transform .2s;
}
.error-links a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.error-links .i { width: 18px; height: 18px; color: var(--primary); }
.mark--error { width: 72px; height: 72px; margin-bottom: 6px; }
.mark--error .mark__sq { animation: sq-pop .5s var(--ease-spring) both; animation-delay: calc(var(--i) * 50ms); }
.mark--error .mark__sq--accent { animation: sq-pop .5s var(--ease-spring) .4s both, sq-hop 3s ease-in-out 1.2s infinite; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1080px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1239px) {
    .user-menu__name { display: none; }
    .user-menu__button { padding-right: 8px; }
}
@media (max-width: 1119px) {
    .main-nav { display: none; }
    .site-header .nav-toggle { display: inline-grid; }
    .site-header__actions { margin-left: auto; }
}
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 36px; padding-bottom: 48px; }
    .mark--float { width: 64px; height: 64px; top: -26px; right: -4px; }
    .start-card { padding: 24px; }
    .steps { grid-template-columns: 1fr; }
    .cta { grid-template-columns: 1fr; }
    .cta__media { min-height: 200px; order: -1; }
    .cta__media::before { background: linear-gradient(0deg, #123869 0%, transparent 60%); }
    .cta__text { padding: 28px; }
    .result-hero { flex-direction: column; text-align: center; padding: 28px 20px; }
    .stats { justify-content: center; }
}
@media (max-width: 600px) {
    :root { --header-h: 64px; }
    .logo__product { display: none; }
    .logo__img { height: 34px; }
    .site-header__inner { gap: 12px; }
    .hero__stats > div { min-width: 0; flex: 1; padding: 10px 12px; }
    .site-footer { padding-top: 56px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .wa-fab { height: 52px; padding: 0 13px; }
}
@media (max-width: 520px) {
    .header-login, .user-menu { display: none; }
}
@media (max-width: 420px) {
    .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; animation: none; }
    .hl-word path { stroke-dashoffset: 0; }
}

@media print {
    .site-header, .site-footer, .result-actions, .cta, .wa-fab, .drawer { display: none; }
    .card { box-shadow: none; }
    body { background: #fff; }
    .js .reveal { opacity: 1; animation: none; }
}

/* ─── Giriş menüsü (öğrenci / öğretmen) ─────────────────────────────────── */
.login-menu { position: relative; }
.login-menu.is-open .main-nav__chevron { transform: rotate(180deg); }
.login-menu__panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 290px; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top right;
    transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.login-menu__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.login-menu.is-open .login-menu__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.login-menu__panel > a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: var(--text); text-decoration: none; transition: background .2s;
}
.login-menu__panel > a:hover { background: var(--surface-2); }
.login-menu__panel strong { display: block; font-size: 14.5px; }
.login-menu__panel small { display: block; font-size: 12.5px; color: var(--muted); }
.login-menu__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; }
.login-menu__icon .i { width: 19px; height: 19px; }
.login-menu__icon--student { background: var(--primary-soft); color: var(--primary); }
.login-menu__icon--teacher { background: #dff5f1; color: #0f766e; }
:root[data-theme="dark"] .login-menu__icon--teacher { background: #0e2f2c; color: #5eead4; }
.login-menu__panel > a.login-menu__signup {
    margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px;
    font-size: 13.5px; font-weight: 600; color: var(--primary);
}
.login-menu__signup .i { width: 17px; height: 17px; }
.drawer__logins { display: grid; gap: 8px; }
