/* ============================================================ Kitapyum tasarım sistemi */
@font-face { font-family: "Jakarta"; src: url(../fonts/plus-jakarta-sans_vf_latest_latin-wght-normal.woff2) format("woff2");
  font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url(../fonts/plus-jakarta-sans_vf_latest_latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url(../fonts/literata_vf_latest_latin-wght-normal.woff2) format("woff2");
  font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url(../fonts/literata_vf_latest_latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 200 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #6052F5;
  --brand-2: #9A3FE8;
  --brand-ink: #4B3BDB;
  --brand-soft: #EEEBFF;
  --brand-grad: linear-gradient(135deg, #6366F1 0%, #7C4DF2 55%, #A43DE6 100%);
  --amber: #F5A524;
  --bg: #F6F6FB;
  --surface: #FFFFFF;
  --surface-2: #FAFAFD;
  --ink: #16152B;
  --ink-2: #3B3A55;
  --muted: #706F8A;
  --line: #E6E5F0;
  --line-2: #F0EFF6;
  --good: #12A150;
  --good-soft: #E4F7EC;
  --bad: #E5484D;
  --bad-soft: #FDECEC;
  --warn: #B26B00;
  --warn-soft: #FFF5DD;
  --hl: #FFE98A;
  --shadow-sm: 0 1px 2px rgba(22, 21, 43, .06);
  --shadow: 0 1px 2px rgba(22, 21, 43, .05), 0 6px 20px rgba(22, 21, 43, .06);
  --shadow-lg: 0 20px 50px rgba(22, 21, 43, .16);
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --sidebar: 252px;
  --font: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #8D84FF; --brand-ink: #A9A2FF; --brand-soft: #24214A;
  --bg: #0E0D1A; --surface: #17162A; --surface-2: #1C1B31; --ink: #EEEDF8; --ink-2: #CFCDE5; --muted: #9897B6;
  --line: #2A2944; --line-2: #222138; --good: #3DD68C; --good-soft: #13321F; --bad: #FF6B6F; --bad-soft: #3A1A1F;
  --warn: #F5B74A; --warn-soft: #33290F; --hl: #5B4A0E;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8D84FF; --brand-ink: #A9A2FF; --brand-soft: #24214A;
    --bg: #0E0D1A; --surface: #17162A; --surface-2: #1C1B31; --ink: #EEEDF8; --ink-2: #CFCDE5; --muted: #9897B6;
    --line: #2A2944; --line-2: #222138; --good: #3DD68C; --good-soft: #13321F; --bad: #FF6B6F; --bad-soft: #3A1A1F;
    --warn: #F5B74A; --warn-soft: #33290F; --hl: #5B4A0E;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 750; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.tiny { font-size: .75rem; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }
svg.i.xl { width: 28px; height: 28px; }
.spin-i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ uygulama iskeleti */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px;
  background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.wordmark { font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.wordmark b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 600; }
.nav a:hover { background: var(--line-2); }
.nav a.on { background: var(--brand-soft); color: var(--brand-ink); }
.nav a .count { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 600; }
.nav-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 16px 12px 6px; }
.soon { margin-left: auto; font-size: .66rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.upload-cta { justify-content: center; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; flex: none; }
.me .name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--line-2); color: var(--ink); }

.main { min-width: 0; padding: 28px 36px 140px; }
.page { max-width: 1120px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 8px; font-weight: 600; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-ink); }

.topbar { display: none; }
.bottomnav { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 16px;
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar .brand { padding: 0; }
  .topbar .brand img { width: 32px; height: 32px; }
  .topbar .actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
  .main { padding: 18px 16px 170px; }
  h1 { font-size: 1.4rem; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
  .bottomnav a.on { color: var(--brand-ink); }
}

/* ============================================================ temel bileşenler */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card.pad { padding: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-grad); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(96, 82, 245, .28); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 9px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 13px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: .75rem; font-weight: 700;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; cursor: pointer; font-size: .85rem; color: var(--ink-2); }
.chips button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

input[type=text], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); outline: none; }
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
label.field { display: grid; gap: 6px; font-weight: 650; font-size: .88rem; color: var(--ink-2); }
label.field .hint { font-weight: 500; color: var(--muted); font-size: .8rem; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.note { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 14px; }
.note svg { color: var(--warn); margin-top: 2px; }
.note.info { background: var(--brand-soft); }
.note.info svg { color: var(--brand-ink); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--brand-soft); color: var(--brand-ink); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand-grad); transition: width .4s ease; }
.bar.thin { height: 5px; }
.bar.good > i { background: var(--good); }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* segment sekmeler */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--line-2); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent;
  font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: .9rem; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs .count { font-size: .72rem; background: var(--brand-soft); color: var(--brand-ink); padding: 1px 7px; border-radius: 99px; }

/* ============================================================ içerik kartları */
.tile { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .band { height: 86px; position: relative; display: flex; align-items: flex-end; padding: 14px 16px; color: #fff; }
.tile .band .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); }
.tile .band .tag { position: absolute; top: 12px; right: 12px; }
.tile .band .tag .chip { background: rgba(255,255,255,.22); color: #fff; }
.tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile .title { font-weight: 750; font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .meta { display: flex; gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 600; flex-wrap: wrap; }
.tile .meta span { display: inline-flex; align-items: center; gap: 5px; }
.tile .foot { margin-top: auto; padding-top: 6px; }
.busy { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 700; font-size: .8rem; }

/* kitap kapağı */
.books { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.book { color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.cover { aspect-ratio: 3 / 4.2; border-radius: 6px 14px 14px 6px; position: relative; overflow: hidden; padding: 18px 16px 16px 22px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 24px rgba(22,21,43,.18), inset 6px 0 0 rgba(0,0,0,.14);
  transition: transform .2s; }
.book:hover .cover { transform: translateY(-3px) rotate(-.6deg); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 40%); pointer-events: none; }
.cover .ct { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cover .cm { font-size: .72rem; opacity: .85; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.book .bt { font-weight: 700; font-size: .9rem; line-height: 1.3; }

/* ============================================================ ana sayfa */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 30px; color: #fff; background: var(--brand-grad); margin-bottom: 26px; }
.hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero::after { content: ""; position: absolute; right: 120px; bottom: -120px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero h1 { font-size: 1.85rem; position: relative; }
.hero p { opacity: .9; max-width: 520px; position: relative; margin: 8px 0 18px; }
.hero .row { position: relative; }
.hero .btn { background: #fff; color: #4B3BDB; border: 0; }
.hero .btn.glass { background: rgba(255,255,255,.16); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
@media (max-width: 1100px) and (min-width: 901px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.stat { padding: 16px 18px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.stat > div { min-width: 0; }
.stat .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.stat .v { font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.section { margin-bottom: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cont { display: flex; gap: 14px; align-items: center; padding: 14px; color: var(--ink); }
.cont:hover { box-shadow: var(--shadow); }
.cont .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }

/* ============================================================ yükleme penceresi */
.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(14, 13, 26, .45); backdrop-filter: blur(4px);
  animation: fade .15s ease; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 24px;
  animation: pop .18s ease; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 560px) { .kinds { grid-template-columns: 1fr; } }
.kind { text-align: left; border: 2px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.kind:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.kind.on { border-color: var(--brand); background: var(--brand-soft); }
.kind .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.kind b { font-size: .98rem; }
.kind span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 26px 18px; text-align: center; cursor: pointer; transition: .15s; display: block; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 10px; background: var(--brand-soft); color: var(--brand-ink); }
.drop.has { border-style: solid; border-color: var(--brand); text-align: left; display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.drop.has .ic { margin: 0; width: 44px; height: 44px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================ işleme durumu */
.proc { display: flex; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 20px; }
.proc .ring { width: 48px; height: 48px; flex: none; }

/* ============================================================ okuma metni */
.reader { font-family: var(--serif); font-size: var(--fs, 1.18rem); line-height: 1.9; padding: 34px 40px; max-width: 760px; margin: 0 auto; }
@media (max-width: 600px) { .reader { padding: 22px 18px; } }
.reader p { margin: 0 0 1.05em; }
.reader h3 { font-family: var(--font); font-size: .82em; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin: 1.4em 0 .6em; }
.chunk { border-radius: 4px; cursor: pointer; transition: background .2s; padding: 1px 0; }
.chunk:hover { background: var(--line-2); }
.chunk.now { background: var(--hl); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.reader-wrap { position: relative; }

/* özet & tanımlar */
.sum-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sum-list li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.sum-list li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: .8rem; }
.defs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.def { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.def b { color: var(--brand-ink); display: block; margin-bottom: 4px; text-transform: capitalize; }

/* ezber */
.mem-stage { padding: 30px 26px; text-align: center; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; position: relative; overflow: hidden; }
.mem-card { font-family: var(--serif); font-size: 1.45rem; line-height: 1.55; max-width: 720px; transition: filter .3s; }
.mem-card.blur { filter: blur(10px); cursor: pointer; user-select: none; }
.mem-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 650; font-size: .85rem; }
.mem-phase { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .82rem; }
.mem-phase.rec { background: var(--bad-soft); color: var(--bad); }
.mem-phase.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.diff { font-size: 1.05rem; line-height: 1.7; }
.diff .ok { color: var(--good); font-weight: 700; }
.diff .miss { color: var(--bad); text-decoration: underline wavy; text-underline-offset: 4px; }
.score-pill { font-size: 1.1rem; font-weight: 800; }
.mem-list { display: grid; gap: 8px; margin-top: 16px; }
.mem-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .92rem; }
.mem-item.now { border-color: var(--brand); background: var(--brand-soft); }
.mem-item .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--line-2); font-weight: 800; font-size: .78rem; flex: none; }
.mem-item .sc { margin-left: auto; }
.settings-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.settings-row label.field { min-width: 150px; }

/* ============================================================ sorular */
.q-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); padding: 10px 0 14px; margin-bottom: 6px; }
@media (max-width: 900px) { .q-head { top: 57px; } }
.q-stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.q { padding: 18px 20px 20px; margin-bottom: 16px; scroll-margin-top: 140px; }
.q-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.q-num { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.q.done-right .q-num { background: var(--good-soft); color: var(--good); }
.q.done-wrong .q-num { background: var(--bad-soft); color: var(--bad); }
.q-visual { position: relative; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); }
.q-visual img { display: block; width: 100%; height: auto; }
:root[data-theme="dark"] .q-visual img { filter: invert(.92) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .q-visual img { filter: invert(.92) hue-rotate(180deg); } }
.q-text { white-space: pre-wrap; font-size: 1.02rem; line-height: 1.7; }
.q-visual + .q-visual { margin-top: 8px; }
.opts { display: grid; gap: 8px; margin-top: 14px; }
.opts.letters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 14px;
  cursor: pointer; font-weight: 550; transition: border-color .15s, background .15s; min-height: 46px; }
.opt:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.opt .L { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--line-2); font-weight: 800; flex: none; font-size: .85rem; }
.opts.letters .opt { justify-content: center; padding: 10px 0; }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt.sel .L { background: var(--brand); color: #fff; }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.right .L { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .L { background: var(--bad); color: #fff; }
.q-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.answer { margin-top: 14px; border-radius: 14px; padding: 14px 16px; background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.answer.wrong { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.answer.none { background: var(--line-2); border-color: var(--line); }
.answer .ah { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 750; }
.answer .exp { white-space: pre-wrap; margin-top: 8px; color: var(--ink-2); font-size: .94rem; }
.results { padding: 24px; margin-top: 24px; }
.results-top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.ring-big { width: 120px; height: 120px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.res-cell { border-radius: 12px; padding: 8px 6px; text-align: center; border: 1px solid var(--line); cursor: pointer; background: var(--surface); }
.res-cell b { display: block; font-size: .8rem; color: var(--muted); }
.res-cell span { font-weight: 800; }
.res-cell.r { background: var(--good-soft); border-color: transparent; }
.res-cell.w { background: var(--bad-soft); border-color: transparent; }

/* kalem */
.ink-wrap { position: relative; touch-action: none; }
.ink-wrap canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.ink-wrap.off canvas { pointer-events: none; }
.scratch { height: 240px; border-top: 1px dashed var(--line); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 22px 22px; }
.inkbar { position: sticky; top: 8px; z-index: 5; display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 10px; width: max-content; max-width: 100%; flex-wrap: wrap; }
.inkbar button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.inkbar button:hover { background: var(--line-2); }
.inkbar button.on { background: var(--brand-soft); color: var(--brand-ink); }
.inkbar .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.inkbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }

/* PDF sayfaları */
.pages { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.pages img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); background: #fff; min-height: 200px; }

/* notlar */
.notes textarea { min-height: 380px; font-size: 1rem; border: 0; box-shadow: none; padding: 20px; background: transparent; }
.notes-bar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }

/* ses kütüphanesi */
.voice { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.voice:last-child { border-bottom: 0; }
.voice .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.voice.on { background: var(--surface-2); }
.voice .name { font-weight: 700; }
.two, .even-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.form-grid.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.form-grid.three label.field { white-space: nowrap; }
.toggles .check { align-items: center; line-height: 1.3; }
.toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.toggles .check { font-weight: 600; font-size: .92rem; }
@media (max-width: 640px) { .toggles { grid-template-columns: 1fr; } }
.even-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .even-3 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .even-2 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; } }

/* ============================================================ oynatıcı */
.player { position: fixed; z-index: 40; left: calc(var(--sidebar) + (100vw - var(--sidebar)) / 2); bottom: 18px; transform: translateX(-50%);
  width: min(760px, calc(100vw - var(--sidebar) - 32px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
@media (max-width: 900px) { .player { left: 50%; width: calc(100vw - 20px); bottom: calc(70px + env(safe-area-inset-bottom)); } }
.player .pbtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.player .pbtn:hover { background: var(--line-2); }
.player .play { width: 46px; height: 46px; background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(96,82,245,.3); }
.player .play:hover { background: var(--brand-grad); filter: brightness(1.08); }
.player .pinfo { flex: 1; min-width: 0; }
.player .ptitle { font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .psub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .bar { margin-top: 6px; height: 4px; }
.player select { height: 34px; width: auto; max-width: 170px; padding: 0 8px; font-size: .8rem; border-radius: 9px; }
.player .speed { max-width: 72px; }
@media (max-width: 600px) { .player .vsel { display: none; } .player .pskip { display: none; } }
.wave { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.wave i { width: 3px; border-radius: 2px; background: var(--brand); animation: wv 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wv { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.paused .wave i { animation: none; height: 4px; }

/* bildirim */
.toast { position: fixed; z-index: 80; left: 50%; top: 18px; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; transition: .25s;
  background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px);
  display: flex; gap: 8px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================ giriş */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none !important; } }
.auth-art { position: relative; overflow: hidden; background: var(--brand-grad); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; top: -160px; background: rgba(255,255,255,.08); }
.auth-art::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; left: -120px; bottom: -140px; background: rgba(255,255,255,.07); }
.auth-art .brand { color: #fff; position: relative; z-index: 1; }
.auth-art .wordmark b { color: #fff; background: none; -webkit-background-clip: initial; background-clip: initial; }
.auth-art h1 { font-size: 2.3rem; line-height: 1.15; max-width: 460px; position: relative; z-index: 1; }
.feat { display: grid; gap: 14px; position: relative; z-index: 1; margin-top: 26px; }
.feat div { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.feat .ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-box { width: min(400px, 100%); display: grid; gap: 16px; }
.auth-box .brand { padding: 0 0 6px; }
.auth-switch { display: flex; padding: 4px; background: var(--line-2); border-radius: 12px; }
.auth-switch button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-switch button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.err { color: var(--bad); font-weight: 600; font-size: .88rem; min-height: 1.2em; }

/* menü */
.menu { position: absolute; z-index: 70; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font-weight: 600; text-align: left; }
.menu button:hover { background: var(--line-2); }
.menu button.danger { color: var(--bad); }

/* küçük ekran düzeltmeleri */
@media (max-width: 640px) {
  .page-head { flex-direction: column; align-items: stretch !important; }
  .page-head > .row { justify-content: flex-start; }
  .page-head .btn { max-width: 100%; }
  .page-head .btn span, .page-head a.btn { overflow: hidden; text-overflow: ellipsis; }
  .kind { flex-direction: row; align-items: center; padding: 12px 14px; }
  .kind .ic { flex: none; }
  .kind span:last-child { display: none; }
  .modal { padding: 18px; border-radius: 20px; }
  .q { padding: 14px; }
  .reader { font-size: calc(var(--fs, 1.18rem) * .95); }
}

/* ============================================================ alt bilgi */
.foot-note { display: flex; justify-content: center; padding: 40px 0 6px; }
.auth-box .foot-note { padding-top: 14px; }
.darcyn { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); opacity: .32; font-size: .66rem; transition: opacity .2s; user-select: none; }
.darcyn:hover { opacity: .6; }
.darcyn svg { width: 14px; height: 14px; }
.darcyn b { font-weight: 800; letter-spacing: .22em; font-size: .7rem; }
.darcyn .dy-pre { font-weight: 500; letter-spacing: .04em; }
.q.listening { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }

/* ============================================================ token, bildirim */
.coin { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--amber) !important; }
.chip.coin { background: color-mix(in srgb, var(--amber) 16%, transparent); height: 30px; padding: 0 10px; }
.bellbtn { position: relative; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff;
  font-size: .62rem; font-weight: 800; font-style: normal; display: grid; place-items: center; border: 2px solid var(--surface); }
.notif-panel { width: min(380px, calc(100vw - 16px)); max-height: 70vh; overflow: auto; padding: 4px; }
.notif { display: flex; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ink); }
.notif:hover { background: var(--line-2); }
.notif.new { background: var(--brand-soft); }
.notif .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--line-2); color: var(--brand-ink); flex: none; }
.token-pop { position: fixed; z-index: 90; right: 24px; top: 24px; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  background: linear-gradient(135deg, #F59E0B, #F97316); color: #fff; font-weight: 800; box-shadow: 0 12px 30px rgba(245, 158, 11, .35);
  animation: tokpop 2.6s ease forwards; }
.token-pop span { font-weight: 600; opacity: .9; font-size: .85rem; }
@keyframes tokpop { 0% { opacity: 0; transform: translateY(-10px) scale(.9); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.token-hero { background: linear-gradient(135deg, #F59E0B 0%, #F97316 55%, #EC4899 100%); }
.big-coin { width: 72px; height: 72px; border-radius: 22px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.big-coin svg.i.xl { width: 38px; height: 38px; }
.token-num { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.streak { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.16); padding: 12px 16px; border-radius: 16px; }
.ways { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.way { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.way .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); flex: none; }
.leader { display: grid; gap: 6px; margin-top: 12px; }
.lrow { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.lrow.me { background: var(--brand-soft); }
.rank { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--muted); background: var(--line-2); flex: none; }
.rank.r1 { background: #FDE68A; color: #92400E; } .rank.r2 { background: #E5E7EB; color: #374151; } .rank.r3 { background: #FED7AA; color: #9A3412; }

/* ============================================================ yönetim */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.banned td { opacity: .55; }
.stat .tiny { margin-top: 2px; }

/* ============================================================ çalışma odaları */
.match-card .mc-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; }
.rules { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); font-size: .9rem; }
.rules div { display: flex; gap: 10px; align-items: flex-start; }
.rules svg { color: var(--brand-ink); margin-top: 3px; }
.waiting { text-align: center; padding: 48px 20px; }
.pulse { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); position: relative; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ring 2s ease-out infinite; }
.pulse::after { animation-delay: 1s; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.room-grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 960px) { .room-grid { grid-template-columns: 1fr; } }
.members { display: grid; gap: 8px; }
.member { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; }
.member .av { position: relative; border-radius: 50%; transition: box-shadow .15s; }
.member.talk .av { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--good); }
.micb { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; border: 2px solid var(--surface); }
.micb.on { background: var(--good); }
.micb svg.i.sm { width: 12px; height: 12px; }
.pomo-time { font-size: 3.4rem; font-weight: 800; text-align: center; letter-spacing: .02em; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.board-card { overflow: hidden; }
.board-bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.board-bar > button:not(.btn) { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.board-bar > button.on { background: var(--brand-soft); color: var(--brand-ink); }
.board-bar .sep { width: 1px; height: 22px; background: var(--line); }
.board-bar .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.board { position: relative; aspect-ratio: 4 / 3; background-color: #fff; background-repeat: no-repeat; background-position: top center; background-size: contain;
  background-image: none; touch-action: none; }
.board canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.qpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; max-height: 50vh; overflow: auto; }
.qthumb { border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.qthumb img { width: 100%; height: 110px; object-fit: cover; object-position: top; border-radius: 8px; }
.qthumb span { font-size: .75rem; font-weight: 700; color: #3B3A55; }
.room-pill { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); top: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 99px; background: var(--good); color: #fff !important; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-lg); }

/* ============================================================ yapay zekâ açıklaması, bölümler, dinleme */
.q-section { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-weight: 800; color: var(--ink-2); }
.q-section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.topic { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); font-size: .93rem; white-space: pre-wrap; }
.topic b { display: flex; align-items: center; gap: 6px; color: var(--brand-ink); margin-bottom: 4px; }
.ai-note { font-size: .74rem; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.listen-bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; }
.lb-head { display: flex; gap: 12px; align-items: center; flex: 1 1 320px; min-width: 0; }
.lb-head select { margin-left: auto; width: auto; height: 38px; }
.lb-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.lb-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1 1 420px; }
.lb-actions .btn, .ab-box .btn { width: 100%; }
.ab-box { display: flex; gap: 6px; min-width: 0; }
.ab-box .btn.icon { width: 40px; flex: none; }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.q-tools { display: flex; gap: 6px; }
.seg3 button { min-width: 110px; }
.step-next { position: fixed; z-index: 41; left: 50%; transform: translateX(-50%); bottom: 96px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .step-next { bottom: calc(150px + env(safe-area-inset-bottom)); } }


/* ============================================================ düzen yardımcıları */
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sub-title { font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-card { display: flex; flex-direction: column; }
.match-card > .btn { margin-top: auto; width: 100%; }
.match-card .field { margin-top: auto; }
.match-card .field + .btn { margin-top: 0; }
.mc-ic.sm { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.me-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--ink); }
.me-link .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* profil */
.profile-head { overflow: hidden; margin-bottom: 22px; text-align: center; }
.ph-cover { height: 120px; background: var(--brand-grad); position: relative; }
.ph-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% -20%, rgba(255,255,255,.25), transparent 50%); }
.ph-body { padding: 0 20px 22px; }
.ph-avatar { margin-top: -52px; display: inline-block; border-radius: 50%; padding: 5px; background: var(--surface); position: relative; z-index: 1; }
.ph-avatar .avatar { font-size: 2.2rem !important; }
.ph-id h1 { margin-top: 8px; }
.friend { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.friend:last-child { border-bottom: 0; }
.setting { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.setting .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.switch { position: relative; width: 50px; height: 28px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::after { transform: translateX(22px); }

/* davet */
.invite { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; }
.inv-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.inv-text { min-width: 0; }
.inv-btns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.inv-btns .btn { min-width: 0; padding: 0 10px; }
@media (max-width: 760px) { .invite { grid-template-columns: 1fr; } }
.invite-link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--brand-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all; }

/* mesajlar */
.chat { display: grid; grid-template-columns: 300px 1fr; height: min(70vh, 640px); overflow: hidden; }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-list { max-height: 220px; border-right: 0 !important; border-bottom: 1px solid var(--line); } .chat-main { height: 60vh; } }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 6px; }
.chat-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; color: var(--ink); }
.chat-item:hover { background: var(--line-2); }
.chat-item.on { background: var(--brand-soft); }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 72%; align-self: flex-start; display: flex; flex-direction: column; gap: 2px; }
.msg span { background: var(--line-2); padding: 9px 13px; border-radius: 16px 16px 16px 4px; white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me span { background: var(--brand); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg time { font-size: .68rem; color: var(--muted); padding: 0 6px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }


/* ============================================================ küçük ekran düzeni */
.topbar .brand { min-width: 0; flex: 0 1 auto; }
.topbar .actions { flex: none; }
@media (max-width: 520px) {
  .topbar .wordmark { display: none; }
  .main { padding: 14px 12px 170px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .ic { width: 38px; height: 38px; border-radius: 11px; }
  .stat .v { font-size: 1.2rem; }
  .hero { padding: 22px 18px; border-radius: 20px; }
  .hero h1 { font-size: 1.5rem; }
  .hero .row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero .row .btn { width: 100%; padding: 0 10px; font-size: .92rem; }
  .page-head .row { width: 100%; }
  .page-head .row > .btn, .page-head .row > a.btn { flex: 1 1 auto; }
  .page-head .row > .btn.icon { flex: none; }
  .listen-bar { padding: 12px; }
  .lb-actions { grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .ab-box { grid-column: 1 / -1; }
  .seg3 { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg3 button { min-width: 0; padding: 0 6px; }
  .q-tools { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tabs button { padding: 0 11px; }
  .card.pad { padding: 16px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 360px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lb-head .tiny { display: none; } }
@media (max-width: 760px) {
  .table.members-t th:nth-child(3), .table.members-t td:nth-child(3),
  .table.members-t th:nth-child(4), .table.members-t td:nth-child(4),
  .table.members-t th:nth-child(6), .table.members-t td:nth-child(6) { display: none; }
  .table td, .table th { padding: 10px 8px; }
  .table td.small { word-break: break-all; }
}

@media (max-width: 1280px) { .even-2.wide { grid-template-columns: 1fr; } }

/* tek tip onay kutusu */
.check input[type=checkbox], .check input[type=radio] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex: none;
  border: 2px solid var(--line); border-radius: 6px; background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.check input[type=radio] { border-radius: 50%; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input[type=checkbox]:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check input[type=radio]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.check input:disabled { opacity: .4; cursor: default; }
.check input:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }


/* çalışma odası: üstte eşit iki kart, altta tam genişlikte tahta */
.room-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.room-top > .card { display: flex; flex-direction: column; }
.room-top .pomo { justify-content: space-between; }
.room-top .members { flex: 1; align-content: start; }
@media (max-width: 760px) { .room-top { grid-template-columns: 1fr; } }
.rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .rules { grid-template-columns: 1fr; } }
.match-card .field + .btn { margin-top: 0; }
.match-card > div:nth-child(2) p { min-height: 3.2em; }


/* ============================================================ avatarlar */
img.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--line-2); display: block; }
.ph-avatar { position: relative; }
.ph-avatar img.avatar { width: 96px; height: 96px; }
.ph-edit { position: absolute; right: 4px; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface);
  background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.modal.modal-wide { width: min(820px, 100%); }
.av-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.av-preview { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); flex: none; overflow: hidden; }
.av-preview img { width: 100%; height: 100%; }
.av-tabs { margin: 0; flex: 1; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; padding: 4px; }
.av-pick { aspect-ratio: 1; border-radius: 50%; border: 3px solid transparent; padding: 2px; background: transparent; cursor: pointer; transition: transform .12s; }
.av-pick:hover { transform: scale(1.06); }
.av-pick.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.av-pick img { width: 100%; height: 100%; border-radius: 50%; display: block; }
@media (max-width: 560px) { .av-top { flex-direction: column; align-items: stretch; } .av-preview { align-self: center; } .av-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============================================================ yasal */
.legal { max-height: 60vh; overflow-y: auto; font-size: .92rem; line-height: 1.65; color: var(--ink-2); padding-right: 6px; }
.legal h4 { margin: 16px 0 6px; color: var(--ink); font-size: .95rem; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal li { margin-bottom: 4px; }
.check.consent { align-items: flex-start; font-weight: 500; font-size: .86rem; line-height: 1.45; }
.check.consent input { margin-top: 1px; }
.foot-note { flex-direction: column; align-items: center; gap: 10px; }
.legal-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: .75rem; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--brand-ink); }
.legal-links span { color: var(--line); }
@media (max-width: 520px) {
  .modal > .row:last-child { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .modal > .row:last-child .btn { width: 100%; padding: 0 10px; }
}

/* çalışma odası v3: iki sütun hizalı (2:1). Üst: odadakiler | pomodoro, alt: tahta | sohbet */
.room-grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.room-grid2 > .card { min-width: 0; }
.room-grid2 > .card.pad { display: flex; flex-direction: column; }
.room-grid2 .pomo { justify-content: space-between; }
.room-grid2 .members { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; align-content: start; }
.room-grid2 .members > .small { grid-column: 1 / -1; }
@media (max-width: 1200px) { .room-grid2 { grid-template-columns: 1fr; } .room-chat { height: 460px; } }
@media (max-width: 600px) { .room-grid2 .members { grid-template-columns: 1fr; } }

.board-card { display: flex; flex-direction: column; }
.board-pages { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.bp-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; padding: 3px 2px; }
.bp-tabs::-webkit-scrollbar { display: none; }
.bp { flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; max-width: 190px; padding: 0 10px 0 4px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 .78rem/1 var(--font); cursor: pointer; }
.bp .bp-n { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; }
.bp .bp-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp .i { flex: none; opacity: .7; }
.bp.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.bp.on .bp-n { background: var(--brand); color: #fff; }
.bp.new::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); }
.bp-add { display: flex; gap: 6px; flex: none; }
@media (max-width: 600px) { .hide-sm { display: none; } }
.board-bar .sz { display: block; border-radius: 50%; background: currentColor; }
.board-bar > button[data-a=del]:hover { color: var(--bad); }
.board { aspect-ratio: 4 / 3; background-position: left top; }
.board canvas.ink { pointer-events: none; }
.board canvas.live { z-index: 2; }
.board.erasing canvas.live { cursor: cell; }
.board-foot { padding: 8px 12px; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); margin-top: auto; }
.react-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.fly { position: absolute; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 2.2rem; line-height: 1; animation: fly 2.6s ease-out forwards; }
.fly small { font: 700 .62rem/1 var(--font); color: #fff; background: rgba(20, 19, 40, .6); padding: 3px 6px; border-radius: 6px; }
@keyframes fly { 0% { transform: translateY(0) scale(.5); opacity: 0; } 12% { transform: translateY(-24px) scale(1.15); opacity: 1; } 100% { transform: translateY(-280px) scale(1); opacity: 0; } }

.room-chat { position: relative; min-height: 380px; }
.rc-in { position: absolute; inset: 0; display: flex; flex-direction: column; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rc-head b { display: flex; align-items: center; gap: 6px; }
.rc-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.rc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.rc-msg.cont { margin-top: -3px; }
.rc-av { width: 28px; flex: none; }
.rc-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.rc-meta { display: flex; gap: 6px; align-items: baseline; font-size: .72rem; margin: 0 4px 2px; color: var(--muted); }
.rc-meta b { color: var(--ink-2); }
.rc-bubble { background: var(--surface-2); border: 1px solid var(--line-2); padding: 7px 11px; border-radius: 14px 14px 14px 4px; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.rc-msg.me { align-self: flex-end; }
.rc-msg.me .rc-body { align-items: flex-end; }
.rc-msg.me .rc-bubble { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; }
.rc-bubble.big { background: transparent !important; border-color: transparent !important; font-size: 2rem; padding: 0 2px; line-height: 1.2; }
.rc-sys { align-self: center; font-size: .72rem; color: var(--muted); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }
.rc-empty { margin: auto; text-align: center; color: var(--muted); font-size: .85rem; display: grid; gap: 8px; justify-items: center; }
.rc-react { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 6px 10px; border-top: 1px solid var(--line); }
.rc-react button { height: 32px; border: 0; background: transparent; border-radius: 9px; font-size: 1.1rem; cursor: pointer; transition: transform .12s, background .12s; }
.rc-react button:hover { background: var(--surface-2); transform: scale(1.15); }
.rc-form { position: relative; display: flex; gap: 6px; align-items: center; padding: 4px 10px 10px; }
.rc-form input { flex: 1; min-width: 0; }
.emoji-pop { position: absolute; bottom: calc(100% + 6px); left: 10px; right: 10px; z-index: 5; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.emoji-pop[hidden] { display: none; }
.emoji-pop button { border: 0; background: transparent; font-size: 1.25rem; height: 36px; border-radius: 8px; cursor: pointer; }
.emoji-pop button:hover { background: var(--surface-2); }

.qthumb { position: relative; }
.qthumb.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.qcheck { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); border: 1.5px solid #CFCDE5; color: transparent; }
.qthumb.on .qcheck { background: var(--brand); border-color: var(--brand); color: #fff; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 520px) { .modal-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.pill-n { display: inline-flex; align-items: center; gap: 3px; background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .72rem; }

/* deneme sınavı */
.match-card > form { margin-top: auto; }
.ex-list { border-top: 1px solid var(--line); }
.ex-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); color: inherit; }
.ex-row:last-child { border-bottom: 0; }
.ex-row:hover { background: var(--surface-2); }
.ex-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.ex-ic.ortak { background: linear-gradient(135deg, #F97316, #EC4899); }
.ex-net { display: flex; flex-direction: column; align-items: center; line-height: 1; min-width: 56px; }
.ex-net b { font-size: 1.25rem; color: var(--brand-ink); }
.ex-net small { font-size: .68rem; color: var(--muted); font-weight: 700; margin-top: 2px; }
.ex-kind { margin-bottom: 14px; }
.ex-kind button { flex: 1; justify-content: center; }
.ex-src { display: grid; gap: 10px; max-height: 38vh; overflow: auto; padding: 2px; }
.ex-grp { border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px; }
.ex-gh { padding: 6px 0; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.ex-set { padding: 6px 0 6px 26px; font-weight: 500; min-width: 0; }
.ex-intro { max-width: 720px; margin: 0 auto; }
.ex-rules { display: grid; gap: 10px; font-size: .9rem; }
.ex-rules > div { display: flex; gap: 10px; align-items: flex-start; }
.ex-rules svg { color: var(--brand-ink); margin-top: 3px; flex: none; }
.ex-code { font: 800 2.4rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; text-align: center; color: var(--brand-ink); background: var(--brand-soft); border-radius: 16px; padding: 18px 0 18px .25em; }
.ex-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ex-person { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line-2); border-radius: 12px; min-width: 0; }
.ex-person b { flex: 1; min-width: 0; font-size: .85rem; }
.ex-wait { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; padding: 12px; }

.ex-top { position: sticky; top: 10px; z-index: 12; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; margin-bottom: 14px; }
@media (max-width: 900px) { .ex-top { top: 64px; } }
.ex-timer { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.ex-timer b { font-size: 1.15rem; }
.ex-timer.low { background: var(--warn-soft); color: var(--warn); }
.ex-timer.crit { background: var(--bad-soft); color: var(--bad); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .6; } }
.ex-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1180px) { .ex-grid { grid-template-columns: 1fr; } }
.ex-q { display: flex; flex-direction: column; min-height: 60vh; }
.eq-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.eq-no { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; flex: none; }
.eq-body { padding: 16px; flex: 1; display: grid; gap: 12px; align-content: start; }
.eq-body img { max-width: 100%; border-radius: 10px; background: #fff; justify-self: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eq-body img, :root:not([data-theme="light"]) .ex-rv-body img { filter: invert(.92) hue-rotate(180deg); } }
:root[data-theme="dark"] .eq-body img, :root[data-theme="dark"] .ex-rv-body img { filter: invert(.92) hue-rotate(180deg); }
.eq-text { white-space: pre-wrap; line-height: 1.6; font-size: 1rem; }
.eq-optlist { margin: 0; padding-left: 24px; display: grid; gap: 6px; }
.eq-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.eq-opts button { height: 54px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 800 1.25rem/1 var(--font); cursor: pointer; transition: transform .1s, border-color .1s; }
.eq-opts button:hover { border-color: var(--brand); transform: translateY(-1px); }
.eq-opts button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.eq-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 0 16px 14px; text-align: center; }
@media (max-width: 560px) { .eq-nav { grid-template-columns: 1fr 1fr; } .eq-nav > span { grid-column: 1 / -1; grid-row: 1; } }
.ex-pal { position: sticky; top: 84px; }
@media (max-width: 1180px) { .ex-pal { position: static; } }
.ex-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-height: 52vh; overflow: auto; padding: 2px; }
.ex-nums button { position: relative; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 700; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.ex-nums button small { font-size: .6rem; opacity: .85; }
.ex-nums button.a { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.ex-nums button.f::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.ex-nums button.on { box-shadow: 0 0 0 2px var(--brand); }
.ex-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .75rem; color: var(--muted); }
.ex-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ex-legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); }
.ex-legend .lg-a { background: var(--brand-soft); border-color: transparent; }
.ex-legend .lg-f { background: var(--amber); border-color: transparent; border-radius: 50%; }
.ex-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ex-sum > div { border-radius: 14px; background: var(--surface-2); padding: 12px 6px; text-align: center; display: grid; gap: 2px; }
.ex-sum b { font-size: 1.5rem; }
.ex-sum span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.ex-sum .d b { color: var(--good); } .ex-sum .y b { color: var(--bad); } .ex-sum .b b { color: var(--muted); }
.ex-prog { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; max-width: 360px; margin: 16px auto 0; }
.ex-prog > div { height: 100%; background: var(--brand-grad); border-radius: 99px; transition: width .4s; }
.waiting .ex-people { text-align: left; max-width: 640px; margin: 0 auto; }

.ex-score { display: grid; gap: 16px; align-content: center; }
.ex-net-big { display: grid; justify-items: center; line-height: 1; gap: 6px; }
.ex-net-big span { font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.ex-net-big b { font-size: 4rem; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ex-net-big em { font-style: normal; font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.ex-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.ex-bar i { display: block; height: 100%; }
.ex-bar .d { background: var(--good); } .ex-bar .y { background: var(--bad); } .ex-bar .b { background: var(--line); }
.ex-ranks { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.ex-rk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-2); }
.ex-rk.me { border-color: var(--brand); background: var(--brand-soft); }
.ex-pos { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--surface-2); flex: none; }
.ex-pos.p1 { background: #FBBF24; color: #fff; } .ex-pos.p2 { background: #94A3B8; color: #fff; } .ex-pos.p3 { background: #D97706; color: #fff; }
.ex-rnet { font-size: 1.1rem; color: var(--brand-ink); }
.ex-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ex-kv > div { border-radius: 14px; background: var(--surface-2); padding: 12px; display: grid; gap: 4px; }
.ex-kv span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.ex-kv b { font-size: 1.2rem; }
.ex-filter { margin-bottom: 8px; }
.ex-review { display: grid; }
.ex-rv { border-top: 1px solid var(--line-2); }
.ex-rv summary { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; list-style: none; }
.ex-rv summary::-webkit-details-marker { display: none; }
.ex-rv[open] summary .i:last-child { transform: rotate(180deg); }
.ex-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; flex: none; background: var(--surface-2); color: var(--muted); }
.ex-rv.dogru .ex-dot { background: var(--good-soft); color: var(--good); }
.ex-rv.yanlis .ex-dot { background: var(--bad-soft); color: var(--bad); }
.ex-pair { display: grid; grid-template-columns: auto auto auto auto; gap: 4px 8px; align-items: center; }
.ex-pair b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); }
.ex-pair b.dogru { background: var(--good-soft); color: var(--good); } .ex-pair b.yanlis { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 520px) { .ex-pair { grid-template-columns: auto auto; } .ex-pair .tiny { display: none; } }
.ex-rv-body { padding: 4px 16px 16px 62px; display: grid; gap: 12px; justify-items: start; }
.ex-rv-body img { max-width: 100%; border-radius: 10px; background: #fff; }
@media (max-width: 560px) { .ex-rv-body { padding-left: 16px; } }
.ex-exp { display: flex; gap: 10px; background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; }
.ex-exp svg { color: var(--brand-ink); flex: none; margin-top: 3px; }
.rc-exam { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.rc-exam .ex-ic { width: 34px; height: 34px; border-radius: 10px; }
.btn.danger-fill { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-fill:hover { filter: brightness(1.05); }
.btn.danger-fill:disabled { opacity: .5; }
.adm-actions { gap: 10px; }
.adm-actions .btn { width: 100%; justify-content: center; }
.rules div { display: block; position: relative; padding-left: 26px; }
.rules div > svg:first-child { position: absolute; left: 0; top: 3px; }

/* ===================== kitaplık ===================== */
.bcover { position: relative; aspect-ratio: 2 / 3; border-radius: 10px 14px 14px 10px; padding: 14px 12px 12px 18px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 22px rgba(22,21,43,.18); display: flex; flex-direction: column; }
.bcover::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.18); box-shadow: 4px 0 0 rgba(0,0,0,.08); }
.bcover::after { content: ""; position: absolute; right: -30%; top: -20%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.09); }
.cv-top { font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; position: relative; z-index: 1; }
.cv-title { margin-top: auto; font-family: var(--serif); font-weight: 700; font-size: clamp(.9rem, 1.2vw + .4rem, 1.15rem); line-height: 1.2; position: relative; z-index: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.cv-author { font-size: .7rem; opacity: .85; margin-top: 6px; position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-price { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; gap: 4px; align-items: center; background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.cv-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); z-index: 2; }
.cv-prog i { display: block; height: 100%; background: #fff; }
.bcover.sm { width: 64px; padding: 8px 6px 8px 10px; border-radius: 6px 9px 9px 6px; }
.bcover.sm .cv-top, .bcover.sm .cv-author { display: none; }
.bcover.sm .cv-title { font-size: .58rem; -webkit-line-clamp: 4; }
.bcover.lg { width: min(240px, 60vw); padding: 22px 18px 18px 26px; }
.bcover.lg .cv-title { font-size: 1.6rem; }
.bcover.lg .cv-author { font-size: .9rem; }
/* resimli kapak: görsel arkada, alt kısımda koyulaşan gölge üzerinde başlık */
.bcover.img { background: #1c1b29; }
.bcover.img::after { display: none; }
.bcover.img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.bcover.img .cv-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.82) 100%); }
.bcover.img .cv-title { text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: clamp(.82rem, .9vw + .4rem, .98rem); -webkit-line-clamp: 3; }
.bcover.img .cv-top { display: none; }
.bcover.img .cv-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 52%, rgba(0,0,0,.85) 100%); }
.bcover.img::before { z-index: 2; background: rgba(255,255,255,.25); }
.bcover.img.sm .cv-title, .bcover.img.lg .cv-title, .bcover.img.lg .cv-author, .bcover.img.lg .cv-top { display: none; }
.bcover.img.sm .cv-shade, .bcover.img.lg .cv-shade { background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 12%); }
.bh-credit { margin-top: 4px; }

.lib-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 18px; }
.lib-tools input[type=search] { width: min(300px, 100%); }
.shelf { margin-bottom: 26px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.shelf-head h2 { display: flex; gap: 8px; align-items: center; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.shelf-row > * { scroll-snap-align: start; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; }
.book-tile { display: flex; flex-direction: column; gap: 8px; color: inherit; min-width: 0; }
.book-tile:hover .bcover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 16px 30px rgba(22,21,43,.24); }
.book-tile .bcover { transition: transform .18s, box-shadow .18s; }
.bt-title { font-weight: 700; font-size: .85rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-sub { font-size: .75rem; color: var(--muted); margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.continue-card { display: flex; gap: 14px; align-items: center; padding: 12px 14px; color: inherit; }
.continue-card:hover { border-color: var(--brand); }
.lib-note { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.lib-note svg { color: var(--good); flex: none; margin-top: 2px; }
@media (max-width: 560px) { .shelf-row { grid-auto-columns: 118px; gap: 12px; } .book-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; } }

.book-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.bh-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bh-info h1 { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw + .8rem, 2.4rem); line-height: 1.15; }
.bh-author { font-weight: 700; color: var(--ink-2); }
.bh-desc { color: var(--ink-2); line-height: 1.6; margin: 0; max-width: 60ch; }
.bh-prog { display: grid; gap: 6px; max-width: 420px; }
.bh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.bh-lic { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chips.static .chip { height: 26px; }
@media (max-width: 680px) { .book-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .bh-info { align-items: center; } .bh-actions { justify-content: center; } .bh-actions .btn { flex: 1 1 200px; } }
.chap-list { display: grid; max-height: 60vh; overflow: auto; }
.chap { display: flex; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line-2); color: inherit; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; font: inherit; width: 100%; }
.chap:hover { background: var(--surface-2); }
.chap-no { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: .8rem; flex: none; }
.chap.done .chap-no { background: var(--good-soft); color: var(--good); }
.chap.cur .chap-no { background: var(--brand); color: #fff; }
.chap.cur { font-weight: 700; }
.hl-row { background: var(--warn-soft); }

/* okuyucu: sayfalar sola doğru çevrilir */
body.reading .foot-note, body.reading .bottomnav { display: none; }
body.reading .page { max-width: none; padding-top: 12px; padding-bottom: 0; }
.rd { --rd-bg: #FBF7EE; --rd-ink: #2B2620; --rd-muted: #8A7F70; --rd-line: #E9DFCB;
  height: calc(100dvh - 40px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--rd-bg); color: var(--rd-ink);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--rd-line); }
.rd[data-theme="acik"] { --rd-bg: #FFFFFF; --rd-ink: #1F1E2E; --rd-muted: #7A7990; --rd-line: #ECEBF3; }
.rd[data-theme="koyu"] { --rd-bg: #15141F; --rd-ink: #E7E5F2; --rd-muted: #9897B6; --rd-line: #2A2944; }
body.reading:has(#player:not(.hidden)) .rd { height: calc(100dvh - 128px); }
@media (max-width: 900px) { .rd { height: calc(100dvh - 76px); border-radius: 14px; } body.reading:has(#player:not(.hidden)) .rd { height: calc(100dvh - 170px); } }
.rd-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--rd-line); }
.rd-top .iconbtn { color: var(--rd-ink); }
.rd-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rd-title .tiny { color: var(--rd-muted); }
.rd-stage { position: relative; overflow: hidden; touch-action: pan-y; }
.rd-cols { position: absolute; top: 22px; font-family: var(--rd-font); font-size: var(--rd-size); line-height: var(--rd-lh); column-fill: auto; will-change: transform; }
.rd-cols p { margin: 0 0 .7em; text-indent: 1.4em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; border-radius: 6px; transition: background .2s; }
.rd-cols p.verse { text-indent: 0; text-align: left; white-space: pre-line; margin-bottom: 1.1em; }
.rd-cols p.now { background: color-mix(in srgb, #F5A524 26%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, #F5A524 26%, transparent); }
.rd-h { font-family: var(--rd-font); font-size: 1.35em; margin: 0 0 1em; text-align: center; break-after: avoid; }
.rd-sub { font-size: 1.05em; margin: 1.2em 0 .6em; break-after: avoid; }
.rd-hit { position: absolute; top: 0; bottom: 0; width: 22%; background: none; border: 0; cursor: pointer; z-index: 2; }
.rd-hit.prev { left: 0; cursor: w-resize; }
.rd-hit.next { right: 0; cursor: e-resize; }
.rd-stage { background: var(--rd-bg); -webkit-user-select: none; user-select: none; }
/* açık kitap: ortada cilt gölgesi, iki yanda sayfa kenarı */
.rd-stage.spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 120px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.05) 38%, rgba(0,0,0,.16) 50%, rgba(0,0,0,.05) 62%, rgba(0,0,0,0) 100%); }
.rd-stage:not(.spread)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 26px; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,0)); }
.rd[data-theme="koyu"] .rd-stage::after { opacity: .6; }
/* yaprak çevirme katmanı (flip.js) */
.flip-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; border-radius: inherit; }
.flip-sheet { position: absolute; inset: 0; overflow: hidden; background: var(--rd-bg, var(--card)); transform-origin: 0 0; border-radius: inherit; }
.flip-shade, .flip-gloss { position: absolute; inset: 0; pointer-events: none; }
.flip-gloss { z-index: 2; }
.flip-backwrap { position: absolute; inset: 0; filter: drop-shadow(0 0 12px rgba(0,0,0,.22)); }
.flip-paper { background: color-mix(in srgb, var(--rd-bg, var(--card)) 95%, #6b5a3a); }
.flip-ghost { opacity: .035; background: transparent; }
.reader { position: relative; }
.flip-reader { max-width: none; margin: 0; }
.rd-foot { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; border-top: 1px solid var(--rd-line); }
.rd-foot .iconbtn { color: var(--rd-ink); }
.rd-foot .bar { background: var(--rd-line); }
.rd-info { color: var(--rd-muted); text-align: center; margin-top: 6px; }
.rd-settings { display: grid; gap: 14px; }
.rs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rs-row b { min-width: 28px; text-align: center; }

/* yüklenen kitaplarda sayfa geçişi */
@keyframes slideL { from { transform: translateX(42px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideR { from { transform: translateX(-42px); opacity: 0; } to { transform: none; opacity: 1; } }
.reader.slide-l { animation: slideL .32s cubic-bezier(.2,.7,.2,1); }
.reader.slide-r { animation: slideR .32s cubic-bezier(.2,.7,.2,1); }
.reader { touch-action: pan-y; }

/* 100 Temel Eser */
.te-banner { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 22px; cursor: pointer; color: inherit;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 10%, var(--card)), var(--card)); }
.te-banner:hover { border-color: var(--brand); }
.te-banner > svg:first-child { color: var(--brand); flex: none; }
.te-head { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
.te-stats { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 18px; font-size: .85rem; color: var(--ink-2); }
.te-stats b { font-size: 1.1rem; color: var(--ink); }
.te-list { padding: 4px 0; }
.te-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.te-row:first-child { border-top: 0; }
.te-row .bcover.sm { width: 44px; flex: none; }
.te-ph { opacity: .55; }
.te-ph .cv-title { font-size: .45rem; }
.te-no { width: 26px; flex: none; text-align: right; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .te-row { flex-wrap: wrap; } .te-row .btn { margin-left: 38px; } }
