@font-face { font-family: 'Montserrat'; font-weight: 400; src: url('/calisma-kartlari/fonts/montserrat-400.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-weight: 600; src: url('/calisma-kartlari/fonts/montserrat-600.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-weight: 700; src: url('/calisma-kartlari/fonts/montserrat-700.ttf') format('truetype'); font-display: swap; }

:root {
  --primary: #2563EB; --primary-deep: #004AC6; --tertiary: #6A1EDB; --success: #059669; --warning: #B45309; --error: #DC2626;
  --bg: #F7F9FB; --surface: #FFFFFF; --surface-container: #F2F4F6;
  --on-surface: #191C1E; --on-surface-variant: #434655; --outline: #E2E8F0;
  --success-bg: #E7F6F0; --warning-bg: #FDF3E1; --error-bg: #FDECEC; --primary-bg: #EAF0FE;
  --shadow-color: 220 30% 25%;
  --hero: linear-gradient(160deg, #2E6BF2 0%, #3958E8 32%, #5A38D8 68%, #6A1EDB 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #6E93FF; --primary-deep: #8FB0FF; --tertiary: #C7A8FF; --success: #34D399; --warning: #FBBF24; --error: #F87171;
    --bg: #121316; --surface: #1E2024; --surface-container: #26282D;
    --on-surface: #F0F1F3; --on-surface-variant: #C3C6D7; --outline: #3A3D42;
    --success-bg: #16302A; --warning-bg: #3A2E14; --error-bg: #3A1F1F; --primary-bg: #1E2A4A;
  }
}
:root[data-theme="dark"] {
  --primary: #6E93FF; --primary-deep: #8FB0FF; --tertiary: #C7A8FF; --success: #34D399; --warning: #FBBF24; --error: #F87171;
  --bg: #121316; --surface: #1E2024; --surface-container: #26282D;
  --on-surface: #F0F1F3; --on-surface-variant: #C3C6D7; --outline: #3A3D42;
  --success-bg: #16302A; --warning-bg: #3A2E14; --error-bg: #3A1F1F; --primary-bg: #1E2A4A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--on-surface); font-family: 'Montserrat', -apple-system, system-ui, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.narrow { max-width: 860px; }
.hidden { display: none !important; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- üst çubuk ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--outline); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--on-surface); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.auth-area { display: flex; align-items: center; gap: 10px; font-size: 14px; }

/* ---------- butonlar, rozetler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 15px 'Montserrat', sans-serif; cursor: pointer; text-decoration: none; background: var(--primary); color: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px hsl(var(--shadow-color) / .45); }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--outline); }
.btn.ghost:hover { box-shadow: none; background: var(--primary-bg); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-container); color: var(--on-surface-variant); white-space: nowrap; }
.badge.ok { background: var(--success-bg); color: var(--success); }
.badge.warn { background: var(--warning-bg); color: var(--warning); }
.badge.bad { background: var(--error-bg); color: var(--error); }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: 20px; }

/* ---------- hero ---------- */
.hero { background: var(--hero); color: #fff; padding: clamp(44px, 7vw, 88px) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .eyebrow { color: #CFE0FF; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; margin-bottom: 20px; }
.hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: #E4EBFF; max-width: 50ch; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-primary { display: inline-flex; align-items: center; background: #fff; color: var(--primary-deep); font-weight: 700; font-size: 16px; padding: 16px 28px; border-radius: 14px; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0,10,40,.45); transition: transform .15s ease; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { color: #fff; font-weight: 600; font-size: 15px; padding: 14px 6px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }
.hero-note { font-size: 13px; color: #C6D3FF; margin-top: 14px; }
.score-card { background: #fff; color: #191C1E; border-radius: 26px; padding: 24px; box-shadow: 0 40px 70px -20px rgba(0,8,35,.55); transform: rotate(2deg); max-width: 380px; margin-left: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .score-card { animation: none; } }
.sc-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #434655; }
.sc-pill { background: #EAF0FE; color: #004AC6; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.sc-total { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 10px; }
.sc-total b { font-size: 48px; line-height: 1; }
.sc-total span { color: #434655; font-size: 14px; }
.sc-bar { position: relative; height: 10px; border-radius: 6px; background: #E2E8F0; margin: 8px 0; }
.sc-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2E6BF2, #6A1EDB); }
.sc-bar em { position: absolute; top: -4px; width: 2px; height: 18px; background: #191C1E; }
.sc-pass { font-size: 13px; color: #434655; }
.sc-pass b { color: #059669; }
.sc-rows { margin-top: 14px; border-top: 1px solid #E2E8F0; }
.sc-rows div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #E2E8F0; font-size: 14px; }
.sc-rows div:last-child { border-bottom: 0; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .score-card { margin: 8px auto 0; max-width: 340px; } }

.stats { background: var(--primary-deep); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; }
.stat .label { font-size: 13px; color: #C6D3FF; font-weight: 600; margin-top: 2px; }
@media (max-width: 600px) { .stats .wrap { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- landing blokları ---------- */
.block { padding: clamp(48px, 7vw, 88px) 0; }
.block.alt { background: var(--surface-container); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }
.section-sub { color: var(--on-surface-variant); margin-top: 10px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat .ico { font-size: 28px; margin-bottom: 10px; }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--on-surface-variant); font-size: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hero); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--on-surface-variant); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.chip { border: 1px solid var(--outline); background: var(--surface); color: var(--on-surface); border-radius: 999px; padding: 8px 16px; font: 600 14px 'Montserrat', sans-serif; cursor: pointer; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.test-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--on-surface); transition: transform .15s ease, border-color .15s ease; }
a.test-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.test-card .meta { font-size: 13px; color: var(--on-surface-variant); }
.test-card .title { font-weight: 700; font-size: 19px; }
.tc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tc-foot .go { font-weight: 600; font-size: 14px; color: var(--primary); }
.test-card.soon { opacity: .55; }

.table-wrap { overflow-x: auto; }
table.info { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; font-size: 15px; }
table.info th, table.info td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--outline); }
table.info th { font-size: 13px; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: .04em; }
table.info tr.sum td { font-weight: 700; background: var(--primary-bg); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--primary); }
.plan .ribbon { position: absolute; top: -12px; left: 20px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.plan .price { font-size: 34px; font-weight: 700; margin: 8px 0 12px; }
.plan .price span { font-size: 15px; color: var(--on-surface-variant); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
.plan li::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 8px; }
.plan li:first-child { font-weight: 700; }
.plan .btn { margin-top: auto; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.card.live { margin-top: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-style: dashed; }
.card.live h3 { font-size: 17px; margin: 8px 0 4px; }
.card.live p { color: var(--on-surface-variant); font-size: 14px; max-width: 60ch; }
.thanks { font-size: 14px; color: var(--success); font-weight: 600; }

.app-band { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.app-band img { width: 64px; height: 64px; border-radius: 16px; }
.app-band div { flex: 1; min-width: 220px; }
.app-band p { color: var(--on-surface-variant); }

.faq { background: var(--surface); border: 1px solid var(--outline); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--on-surface-variant); }

footer { padding: 36px 0 48px; color: var(--on-surface-variant); font-size: 13px; text-align: center; line-height: 1.8; }

/* ---------- dashboard ---------- */
.dash { padding: 32px 0 8px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.dash-sub { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--primary-bg); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.dash-sub p { max-width: 70ch; }
.continue { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.continue span { display: block; font-size: 14px; color: var(--on-surface-variant); }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.score { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.score span { font-size: 13px; color: var(--on-surface-variant); font-weight: 600; }
.score b { font-size: 24px; }
.score em { font-style: normal; font-size: 12px; color: var(--on-surface-variant); align-self: flex-start; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
.card.total { margin-bottom: 14px; }
.card.total span { display: block; font-size: 13px; color: var(--on-surface-variant); margin-top: 4px; }
.card.total em { font-style: normal; }
#dash-evals h3 { font-size: 16px; margin-bottom: 8px; }
.eval-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--outline); color: var(--on-surface); text-decoration: none; font-size: 14px; }

/* ---------- test ekranı ---------- */
.test-head { padding: 24px 0 6px; }
.test-head a { font-size: 14px; text-decoration: none; }
.test-head h1 { font-size: clamp(22px, 3vw, 28px); margin-top: 6px; }
.mode-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--outline); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--on-surface); padding: 7px 14px; font: 600 13px 'Montserrat', sans-serif; cursor: pointer; }
.seg button.active { background: var(--primary); color: #fff; }
.tabs { position: sticky; top: 64px; z-index: 20; background: var(--bg); display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--outline); background: var(--surface); color: var(--on-surface); border-radius: 999px; padding: 8px 14px; font: 600 13px 'Montserrat', sans-serif; cursor: pointer; }
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs .free { font-size: 11px; margin-left: 4px; color: var(--success); }
.tabs button.active .free { color: #D1FAE5; }
.panel { background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: clamp(16px, 3vw, 24px); margin-bottom: 18px; scroll-margin-top: 130px; }
.panel h2 { font-size: 20px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.instructions { color: var(--on-surface-variant); font-size: 15px; margin: 0 0 16px; }
.reading { font-size: 16px; line-height: 1.75; }
.reading p { margin: 0 0 12px; }
.text-block { background: var(--surface-container); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.text-block .num { font-weight: 700; margin-bottom: 4px; }
.headlines { display: grid; gap: 6px; margin-bottom: 18px; padding: 14px 16px; border: 1px dashed var(--outline); border-radius: 14px; }
.headlines div { font-size: 15px; }
.headlines b { display: inline-block; width: 22px; color: var(--primary); }
.q { padding: 14px 0; border-top: 1px solid var(--outline); scroll-margin-top: 130px; }
.q .stem { font-weight: 600; margin-bottom: 8px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--outline); border-radius: 12px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-bg); }
.opt input { margin-top: 4px; accent-color: var(--primary); }
.opt.correct { border-color: var(--success); background: var(--success-bg); }
.opt.wrong { border-color: var(--error); background: var(--error-bg); }
select.pick { font: 600 15px 'Montserrat', sans-serif; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--outline); background: var(--surface); color: var(--on-surface); min-width: 76px; max-width: 100%; }
select.pick.correct { border-color: var(--success); background: var(--success-bg); }
select.pick.wrong { border-color: var(--error); background: var(--error-bg); }
.inline-row { display: flex; align-items: center; gap: 12px; padding: 10px 0 0; flex-wrap: wrap; }
.feedback { font-size: 13px; font-weight: 600; }
.feedback.ok { color: var(--success); }
.feedback.bad { color: var(--error); }
.letter { white-space: pre-wrap; font-size: 16px; line-height: 2.2; }
.gap select { padding: 3px 6px; font-size: 14px; min-width: 70px; }
.wordbank { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 14px 0; font-size: 14px; padding: 14px 16px; border: 1px dashed var(--outline); border-radius: 14px; }
.wordbank b { color: var(--primary); margin-right: 6px; }
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.ad { background: var(--surface-container); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.ad b { color: var(--primary); }
img.full { width: 100%; height: auto; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--outline); }
textarea.writing { width: 100%; min-height: 300px; font: 16px/1.65 'Montserrat', sans-serif; padding: 14px; border-radius: 14px; border: 1px solid var(--outline); background: var(--surface); color: var(--on-surface); resize: vertical; }
.counter { font-size: 13px; color: var(--on-surface-variant); margin: 6px 0 12px; }
ul.points { margin: 8px 0 14px; padding-left: 20px; }
.check-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.lock { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--primary-bg); border-radius: 18px; padding: 16px 20px; margin: 8px 0 14px; }
.lock p { font-size: 15px; max-width: 70ch; }
.locked .opts, .locked select, .locked textarea, .locked .gap, .locked .rec { pointer-events: none; opacity: .55; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--primary-bg); color: var(--primary-deep); }
.timer.low { background: var(--error-bg); color: var(--error); }
.result { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.result .card { padding: 16px; }
.result .big { font-size: 26px; font-weight: 700; }
.result .meta { font-size: 13px; color: var(--on-surface-variant); }
.soon-box { background: var(--surface-container); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.ai-out { white-space: pre-wrap; background: var(--surface-container); border-radius: 14px; padding: 16px; font-size: 15px; }
.crit { display: grid; gap: 10px; margin: 12px 0; }
.crit .card { padding: 14px 16px; }
.crit .card b { display: flex; justify-content: space-between; gap: 10px; }
.crit .card p { font-size: 14px; color: var(--on-surface-variant); margin-top: 6px; }
.fix { font-size: 14px; padding: 8px 0; border-top: 1px solid var(--outline); }
.fix s { color: var(--error); }
.fix ins { color: var(--success); text-decoration: none; font-weight: 600; }

/* cevap kâğıdı (alt şerit) */
.sheet { position: sticky; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--outline); padding: 10px 0; margin-top: 8px; }
.sheet .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.sheet .wrap::-webkit-scrollbar { display: none; }
.sheet .lbl { font-size: 12px; font-weight: 600; color: var(--on-surface-variant); white-space: nowrap; margin-right: 4px; }
.sheet button { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--outline); background: var(--surface); color: var(--on-surface); font: 600 13px 'Montserrat', sans-serif; cursor: pointer; }
.sheet button.done { background: var(--primary); border-color: var(--primary); color: #fff; }
.sheet button.correct { background: var(--success); border-color: var(--success); color: #fff; }
.sheet button.wrong { background: var(--error); border-color: var(--error); color: #fff; }

/* Sprechen kayıt */
.rec-steps { display: grid; gap: 10px; margin-top: 12px; }
.rec-step { border: 1px solid var(--outline); border-radius: 14px; padding: 14px 16px; }
.rec-step.partner { background: var(--surface-container); border-style: dashed; }
.rec-step .who { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--on-surface-variant); margin-bottom: 4px; }
.rec { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.rec .state { font-size: 13px; color: var(--on-surface-variant); }
.rec .transcript { width: 100%; font-size: 14px; color: var(--on-surface-variant); font-style: italic; }
#auth { display: flex; gap: 8px; align-items: center; }
@media (max-width: 600px) {
  .panel { border-radius: 14px; }
  .topbar .brand span { display: none; }
  .auth-area, #auth { gap: 6px; }
  .auth-area .badge { display: none; }
  .timer { padding: 5px 10px; font-size: 14px; }
}
.sc-oral { margin-top: 14px; padding-top: 12px; border-top: 2px solid #E2E8F0; }
.sc-oral .sc-rows { margin-top: 6px; border-top: 0; }
.sc-note { font-size: 12px; color: #434655; margin-top: 2px; }

/* kilitli bölüm: açıklama + buton (panel içinde) ve dokununca çıkan bilgi */
.lock-inline { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--primary-bg); border-radius: 12px; padding: 10px 14px; margin: 6px 0 14px; font-size: 14px; font-weight: 600; }
.locked .opts, .locked .gap, .locked select, .locked textarea, .locked .rec { cursor: not-allowed; }
.locked .q, .locked .letter, .locked .rec-step { cursor: not-allowed; }
.lock-toast { position: fixed; left: 50%; bottom: 72px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; display: flex; gap: 12px; align-items: center; max-width: min(560px, calc(100vw - 32px)); background: var(--on-surface); color: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); transition: opacity .2s ease, transform .2s ease; }
.lock-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lock-toast .btn { flex: none; }

/* Modelltest: başlangıç ekranı, kilitli mod/sekmeler, aşama çubuğu, test kartı tarihçesi */
.mode-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.mode-pick label { display: flex; flex-direction: column; gap: 6px; padding: 16px; cursor: pointer; }
.mode-pick label:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.mode-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pick span { font-size: 14px; color: var(--on-surface-variant); }
.seg button[disabled] { cursor: default; }
.seg button[disabled]:not(.active) { opacity: .5; }
.tabs button[disabled] { opacity: .5; cursor: not-allowed; }
.stage-bar { padding-top: 16px; padding-bottom: 16px; }
.tc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tc-history { margin-top: 8px; font-size: 13px; }
.tc-history div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--outline); }
.tc-history b { white-space: nowrap; }
.exam-result .note { font-size: 34px; font-weight: 800; margin: 14px 0 0; letter-spacing: -.5px; }
.exam-result .note.ok { color: var(--success); }
.exam-result .note.warn { color: var(--warning); }
.exam-result .note.bad { color: var(--error); }
.exam-result .sc-total { margin-top: 4px; }
.exam-result .notes-table { margin-top: 18px; width: 100%; }

/* Deneme sınavları: seviye (satır) × kurum (sütun) tablosu */
.mt-matrix { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 12px; align-items: stretch; }
.mt-col { text-align: center; font-weight: 700; font-size: 15px; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 2px; }
.mt-row { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--primary); background: var(--primary-bg); border-radius: 18px; }
.mt-cell { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.mt-cell.soon { opacity: .6; justify-content: center; }
.mt-cell-label { display: none; font-size: 13px; font-weight: 700; color: var(--on-surface-variant); }
.mt-test { padding-bottom: 12px; border-bottom: 1px solid var(--outline); }
.mt-test-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mt-name { font-weight: 700; font-size: 17px; color: var(--on-surface); text-decoration: none; }
.mt-name:hover { color: var(--primary); }
.mt-test-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mt-test .tc-history { margin-top: 10px; }
.mt-test .tc-history summary { cursor: pointer; color: var(--on-surface-variant); }
.mt-notify { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.mt-notify-ok { font-size: 13px; font-weight: 600; color: var(--success); }
.mt-notify-msg { font-size: 12.5px; color: var(--on-surface-variant); }
.mt-soon { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--on-surface-variant); }
@media (max-width: 720px) {
  .mt-matrix { grid-template-columns: 1fr; }
  .mt-corner, .mt-col { display: none; }
  .mt-row { justify-content: flex-start; background: none; padding: 10px 0 0; font-size: 20px; border-radius: 0; }
  .mt-cell-label { display: block; }
}

/* Sol menü (giriş yapmış kullanıcı). Masaüstünde sabit sütun, dar ekranda üstte yatay şerit. */
.side { position: fixed; top: 64px; left: 0; bottom: 0; width: 236px; z-index: 25; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px 12px; background: var(--surface); border-right: 1px solid var(--outline); overflow-y: auto; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side a, .side button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 0; background: none; color: var(--on-surface-variant); font: 600 14px 'Montserrat', sans-serif; text-decoration: none; cursor: pointer; text-align: left; white-space: nowrap; }
.side a:hover, .side button:hover { background: var(--surface-container); color: var(--on-surface); }
.side a.active { background: var(--primary-bg); color: var(--primary); }
.side svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.with-side > :not(.topbar):not(.side) { padding-left: 236px; }
body.with-side :is(#dash, #testler, #sinav, #dash-evals) { scroll-margin-top: 80px; }
@media (max-width: 900px) {
  .side { position: sticky; top: 64px; bottom: auto; width: auto; flex-direction: row; justify-content: flex-start; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--outline); overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
  .side::-webkit-scrollbar { display: none; }
  .side-group { flex-direction: row; }
  .side a, .side button { padding: 8px 12px; font-size: 13px; gap: 8px; }
  .side svg { width: 18px; height: 18px; }
  body.with-side > :not(.topbar):not(.side) { padding-left: 0; }
  body.with-side :is(#dash, #testler, #sinav, #dash-evals) { scroll-margin-top: 124px; }
}
.side-top { display: flex; flex-direction: column; gap: 18px; }
.side-label { padding: 0 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-surface-variant); opacity: .75; }
@media (max-width: 900px) {
  .side-top { flex-direction: row; gap: 2px; }
  .side-label { display: none; }
}

/* Üst çubukta portal ana sayfasına dönüş */
.portal-link { font-weight: 600; font-size: 14px; color: var(--on-surface-variant); text-decoration: none; white-space: nowrap; }
.portal-link:hover { color: var(--primary); }
#auth.auth-area { display: inline-flex; }
@media (max-width: 640px) { .portal-link span { display: none; } }
