/**
 * by QOR — Ali ÇİÇEK
 * © 2026 Tüm hakları saklıdır.
 *
 * QOR Academy tasarım sistemi. Derleme gerektirmez; her hostingde çalışır.
 */

:root {
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --surface-2: #F1F1F8;
  --ink: #12122A;
  --ink-2: #4A4A68;
  --ink-3: #7A7A98;
  --line: #E4E4EF;
  --brand: #5B3DF5;
  --brand-2: #8B5CF6;
  --brand-ink: #FFFFFF;
  --accent: #00C2A8;
  --warn: #F59E0B;
  --danger: #E5484D;
  --ok: #16A34A;
  --hero: #0D0B1E;
  --hero-ink: #F4F2FF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 18, 42, .06), 0 8px 24px rgba(18, 18, 42, .06);
  --shadow-lg: 0 20px 50px rgba(48, 30, 140, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 680px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo .ai { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { font-family: var(--font); font-size: .62rem; font-weight: 600; color: var(--ink-3); margin-left: 8px; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 12px 20px; font: 600 .98rem/1 var(--font); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); box-shadow: 0 8px 20px rgba(91, 61, 245, .28); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(91, 61, 245, .38); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: rgba(255, 255, 255, .1); color: var(--hero-ink); border-color: rgba(255, 255, 255, .22); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero); color: var(--hero-ink); padding: 88px 0 96px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 62%); filter: blur(10px); }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -20%; width: 680px; height: 680px; background: radial-gradient(circle, rgba(0, 194, 168, .28), transparent 60%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 860px; }
.hero h1 .grad { background: linear-gradient(90deg, #C4B5FD, #67E8F9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #C9C6E4; }
.hero .eyebrow { color: #A5B4FC; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 56px 0 64px; } }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 22px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.hero-card .step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.hero-card .step:last-child { border-bottom: 0; }
.hero-card .num { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: rgba(255, 255, 255, .1); color: #fff; }
.hero-card b { color: #fff; display: block; }
.hero-card span { color: #B9B6D6; font-size: .92rem; }
.trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; color: #B9B6D6; font-size: .92rem; }
.trust strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.6rem; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-link { color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D4CCFF; }
.card h3 { margin-bottom: .35em; }
.icon-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.icon-badge svg { width: 24px; height: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.chip-baslangic { background: #E7F8F1; color: #0F7A55; }
.chip-orta { background: #FFF4E0; color: #A15C00; }
.chip-ileri { background: #EEE9FF; color: #4B2BD6; }
.chip-ok { background: #E7F8EC; color: var(--ok); }
.chip-warn { background: #FFF4E0; color: #A15C00; }
.chip-danger { background: #FDECEC; color: var(--danger); }
.meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-3); font-size: .88rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; }

.avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--font-display); }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }

/* ---------- Steps / features ---------- */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

.levels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.level { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.level-baslangic { border-top: 4px solid #10B981; }
.level-orta { border-top: 4px solid #F59E0B; }
.level-ileri { border-top: 4px solid var(--brand); }

.gift { background: linear-gradient(135deg, #1B1446, #2B1C7A); color: #EDEBFF; border-radius: 24px; padding: 40px; display: grid; gap: 28px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.gift h2 { color: #fff; }
.gift .muted { color: #BDB7E8; }
@media (max-width: 900px) { .gift { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-2); outline: 3px solid rgba(139, 92, 246, .18); }
.textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.error { color: var(--danger); font-size: .86rem; margin-top: 4px; }
.auth-wrap { max-width: 460px; margin: 48px auto; }

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; padding: 14px 16px; margin: 16px 0; border: 1px solid; }
.alert-ok { background: #ECFDF3; border-color: #ABEFC6; color: #085D3A; }
.alert-err { background: #FEF3F2; border-color: #FECDCA; color: #912018; }
.alert-info { background: #EEF4FF; border-color: #C7D7FE; color: #2D31A6; }

/* ---------- Progress ---------- */
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: inherit; }

/* ---------- Course page ---------- */
.course-hero { background: linear-gradient(180deg, #ECE8FF, var(--bg)); padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 84px; }
.syllabus { list-style: none; margin: 0; padding: 0; }
.syllabus li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.syllabus li:last-child { border-bottom: 0; }
.syllabus .dot { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-weight: 700; font-size: .85rem; }
.syllabus .done .dot { background: var(--ok); color: #fff; }
.syllabus .current { background: #F5F2FF; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.outcomes li { display: flex; gap: 10px; }
.outcomes li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* ---------- Lesson ---------- */
.lesson-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding: 28px 0 64px; }
@media (max-width: 1200px) { .lesson-layout { grid-template-columns: minmax(0, 1fr) 340px; } .lesson-nav { display: none; } }
@media (max-width: 900px) { .lesson-layout { grid-template-columns: 1fr; } }
.lesson-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-size: .92rem; }
.lesson-nav a:hover { background: var(--surface-2); text-decoration: none; }
.lesson-nav a.active { background: #EEE9FF; color: var(--brand); font-weight: 600; }
.lesson-nav .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; font-size: .7rem; color: #fff; }
.lesson-nav .tick.on { background: var(--ok); border-color: var(--ok); }
.block { border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--surface); }
.block-title { display: flex; gap: 8px; align-items: center; font-weight: 700; font-family: var(--font-display); margin-bottom: 8px; }
.block-title svg { width: 20px; height: 20px; }
.block-simple { background: #F2FBF8; border-color: #BFEDE1; }
.block-simple .block-title { color: #0B7A65; }
.block-example { background: #FFF9EC; border-color: #F8E1A8; }
.block-example .block-title { color: #9A5B00; }
.block-task { background: #F3F0FF; border-color: #DCD3FF; }
.block-task .block-title { color: var(--brand); }
.block-summary { background: var(--hero); color: var(--hero-ink); border-color: var(--hero); }
.block-summary .block-title { color: #C4B5FD; }
.prose { font-size: 1.04rem; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.prose pre { background: #14122B; color: #E9E7FF; padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--brand-2); background: #F7F5FF; border-radius: 0 10px 10px 0; }

/* ---------- Quiz / exam ---------- */
.q { padding: 18px 0; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q-title { font-weight: 600; margin-bottom: 10px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; transition: border-color .1s, background .1s; }
.opt:hover { border-color: #C9BFFF; }
.opt input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; }
.opt:has(input:checked) { border-color: var(--brand); background: #F5F2FF; }
.opt.right { border-color: #86E0A8; background: #EFFCF4; }
.opt.wrong { border-color: #F7B4B6; background: #FEF2F2; }
.explain { font-size: .92rem; color: var(--ink-2); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; margin-top: 6px; }
.timer { position: sticky; top: 76px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--hero); color: #fff; padding: 12px 18px; border-radius: 14px; margin-bottom: 18px; }
.timer strong { font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.timer.low { background: var(--danger); }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: min(640px, 78vh); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head small { display: block; color: var(--ink-3); font-size: .8rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FBFBFE; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.bubble p:last-child { margin-bottom: 0; }
.bubble-user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble-ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-typing { color: var(--ink-3); font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; height: 46px; min-height: 46px; padding: 11px 12px; }
.chat-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 10px; }
.chat-suggest button { font: inherit; font-size: .8rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.chat-suggest button:hover { border-color: var(--brand-2); color: var(--brand); }

/* ---------- Certificate ---------- */
.cert { max-width: 920px; margin: 32px auto; background: #fff; border-radius: 18px; padding: 56px; position: relative; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.cert::before { content: ""; position: absolute; inset: 14px; border: 2px solid #E4DEFF; border-radius: 12px; pointer-events: none; }
.cert h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cert .holder { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 8px 0 12px; }
.cert-foot { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: 40px; }
.cert-sign { font-family: var(--font-display); font-size: 1.3rem; border-top: 2px solid var(--ink); padding-top: 8px; display: inline-block; min-width: 240px; }
.cert-qr { width: 120px; height: 120px; }
@media (max-width: 640px) { .cert { padding: 32px 24px; } .cert-foot { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero); color: #B9B6D6; padding: 56px 0 28px; margin-top: 64px; }
.site-footer a { color: #DCD8FF; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; }
.signature { font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; color: #fff; }
.signature .q { background: linear-gradient(90deg, #C4B5FD, #67E8F9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); border: 2px dashed var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: .94rem; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-weight: 700; color: var(--brand); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--ink-2); }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .cert { box-shadow: none; border: 0; margin: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.form-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-2 { grid-template-columns: 1fr; } }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.chat-pick { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat-pick .select { padding: 8px 10px; font-size: .88rem; }

/* ---------- Abonelik planları ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: 1.3rem; margin-bottom: 8px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-price strong { font-family: var(--font-display); font-size: 2.3rem; }
.plan-monthly { color: var(--ink-2); font-size: .95rem; margin: 6px 0 16px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: .94rem; }
.plan-features svg { color: var(--ok); flex: none; margin-top: 3px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.steps-list { padding-left: 20px; color: var(--ink-2); }
.steps-list li { margin-bottom: 6px; }
.ref-code { font-family: var(--font-display); font-size: clamp(1.05rem, 5.5vw, 1.6rem); white-space: nowrap; font-weight: 700; letter-spacing: .06em; background: var(--surface-2); border: 2px dashed var(--brand); border-radius: 12px; padding: 12px 16px; text-align: center; cursor: copy; }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--ink-3); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan-featured { transform: none; } }

/* ---------- Diploma / sertifika (üniversite diploması tarzı) ---------- */
.diploma { --gold: #B08D3C; --gold-2: #E3C878; --paper: #FFFCF4; max-width: 980px; margin: 28px auto; background: var(--paper); padding: 18px; border-radius: 6px; box-shadow: var(--shadow-lg); color: #2A2416; font-variant-numeric: lining-nums; font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; position: relative; }
.diploma::before { content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(91, 61, 245, .05), transparent 60%); }
.diploma-inner { border: 3px double var(--gold); outline: 1px solid var(--gold-2); outline-offset: -10px; padding: 48px 56px 28px; text-align: center; position: relative; }
.diploma-course .diploma-inner { border-style: solid; border-width: 2px; }
.diploma-crest { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold); }
.diploma-inst { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.diploma-sub { font-size: 1rem; font-style: italic; color: #6B5D3C; }
.diploma-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 700; letter-spacing: .06em; color: var(--gold); margin: 26px 0 6px; text-transform: uppercase; }
.diploma-course .diploma-title { font-size: clamp(1.9rem, 5vw, 3rem); }
.diploma-text { font-size: 1.22rem; line-height: 1.55; max-width: 720px; margin: 0 auto 10px; }
.diploma-holder { font-size: clamp(2rem, 6vw, 3.4rem); font-style: italic; font-weight: 700; color: #1F1A55; border-bottom: 1px solid var(--gold); display: inline-block; padding: 0 24px 4px; margin: 6px 0 16px; }
.diploma-transcript { margin: 18px auto 6px; border-collapse: collapse; font-size: 1.02rem; min-width: 60%; }
.diploma-transcript th, .diploma-transcript td { padding: 6px 12px; border-bottom: 1px solid #E8DDBF; text-align: left; }
.diploma-transcript th { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #6B5D3C; }
.diploma-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; margin-top: 36px; }
.diploma-script { font-size: 1.9rem; font-style: italic; color: #1F1A55; line-height: 1; }
.diploma-line { border-top: 1px solid #2A2416; margin-top: 6px; padding-top: 4px; font-weight: 700; font-size: 1.05rem; }
.diploma-sign small { color: #6B5D3C; font-size: .92rem; }
.diploma-seal svg { width: 120px; height: 120px; display: block; }
.diploma-seal .s1 { fill: var(--gold); stroke: var(--gold-2); stroke-width: 3; }
.diploma-seal .s2 { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 3; }
.diploma-seal .s3 { fill: #fff; font: 700 9.5px var(--font); letter-spacing: 1.6px; }
.diploma-seal .s4 { fill: #fff; font: 700 22px var(--font-display); }
.diploma-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; text-align: left; font-family: var(--font); font-size: .82rem; }
.diploma-meta .cert-qr { width: 96px; height: 96px; }
.diploma-note { font-family: var(--font); font-size: .72rem; color: #8A7B58; margin: 14px 0 0; }
.diploma-signature { font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
@media (max-width: 640px) {
  .diploma { padding: 8px; }
  .diploma-inner { padding: 28px 16px 18px; outline-offset: -6px; }
  .diploma-foot { grid-template-columns: 1fr; justify-items: center; }
  .diploma-seal { order: -1; }
  .diploma-transcript { font-size: .9rem; min-width: 0; width: 100%; }
  .diploma-transcript th:last-child, .diploma-transcript td:last-child { display: none; }
  .diploma-meta { flex-direction: column; text-align: center; word-break: break-all; }
}
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  .diploma { box-shadow: none; margin: 0 auto; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .alert { display: none; }
}

/* ---------- Mobil iyileştirmeler ---------- */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .btn-lg { padding-left: 18px; padding-right: 18px; }
  .table th, .table td { padding: 10px 6px; font-size: .88rem; }
  .row { flex-wrap: wrap; }
}
.ref-code[data-copied]::after { content: " ✓ kopyalandı"; font-size: .8rem; color: var(--ok); letter-spacing: 0; }

/* ---------- Zorluk ve onur ---------- */
.chip-expert { background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #5B3A00; font-size: .72rem; vertical-align: middle; }
.honors-badge { display: inline-block; margin: 6px 0 10px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #4A2F00; font-weight: 700; }
.diploma-honors { font-size: 1.25rem; font-style: italic; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .goal-grid { grid-template-columns: 1fr; } }

/* ---------- QOR Danışman ---------- */
.sa { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-size: .95rem; }
.sa-launch { display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; padding: 8px 16px 8px 8px; border-radius: 999px; color: #fff; font: inherit; text-align: left;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow-lg); }
.sa-launch small, .sa-head small { display: block; font-size: .75rem; opacity: .85; }
.sa-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #fff; color: var(--brand); position: relative; }
.sa-avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.sa-open .sa-launch { display: none; }
.sa-panel { width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.sa-panel[hidden] { display: none; }
.sa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.sa-head div { flex: 1; }
.sa-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.sa-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.sa-body .bubble a { color: inherit; text-decoration: underline; font-weight: 600; }
.sa-body .bubble-ai a { color: var(--brand); }
.sa-body .bubble ul, .sa-body .bubble ol { padding-left: 18px; margin: 4px 0; }
.bubble-human { border-color: var(--ok); }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.sa-chips[hidden] { display: none; }
.sa-chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .82rem; cursor: pointer; }
.sa-chips button:hover { border-color: var(--brand); color: var(--brand); }
.sa-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.sa-form .input { flex: 1; min-width: 0; }
.sa-human { padding: 0 12px 10px; font-size: .85rem; }
.sa-human summary { cursor: pointer; color: var(--ink-3); }
@media (max-width: 640px) {
  .sa { right: 12px; bottom: 12px; }
  .sa-launch-text small { display: none; }
  .sa-open { left: 0; right: 0; bottom: 0; top: 0; }
  .sa-open .sa-panel { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media print { .sa { display: none !important; } }
.advisor { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 32px; }
.advisor-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.advisor-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.advisor-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.advisor-steps span { color: var(--ink-3); font-size: .9rem; }
.advisor-preview { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
@media (max-width: 860px) { .advisor { grid-template-columns: 1fr; padding: 22px; } }
[hidden] { display: none !important; }

/* ---------- Final sınavına hazırlık listesi ---------- */
.ready-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.ready-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ready-list li span { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: #fff; color: var(--ink-3); border: 1px solid var(--line); }
.ready-list li.done span { background: var(--ok); color: #fff; border-color: var(--ok); }
.ready-list b { display: block; font-size: .9rem; }
.ready-list small { color: var(--ink-3); font-size: .8rem; }
