/* Vizefi — defter / sınav kağıdı teması
   Kağıt beyazı zemin, mavi tükenmez (indigo), kırmızı kalem düzeltmeleri, fosforlu kalem vurgular,
   el yazısı (Caveat) sadece büyük başlık ve sonuç rakamlarında. UI/metin: Figtree. */
@font-face {
  font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(/fonts/figtree-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f5f0;
  --surface: #ffffff;
  --surface-2: #eef0ea;
  --text: #1f2440;
  --muted: #6a6f85;
  --line: #e2e3db;
  --line-strong: #cfd1c6;
  --grid: rgba(31, 36, 64, .05);   /* kareli defter çizgisi */
  --brand: #4338f2;
  --brand-hover: #3528d6;
  --brand-tint: #ecebfe;
  --navy: #16133a;
  --red: #e23b4e;          /* kırmızı kalem */
  --red-tint: #fde8ea;
  --orange: #f08a24;
  --orange-tint: #fdeed9;
  --green: #159a5b;
  --green-tint: #e3f5ea;
  --warn: #c97a00;
  --warn-tint: #fcefd4;
  /* fosforlu kalemler */
  --hl-yellow: #ffe24d;
  --hl-green: #9ff0a8;
  --hl-pink: #ffb0cf;
  --hl-blue: #a9dcff;
  --purple: #7c4dff; --purple-tint: #efeaff;
  --pink: #e8457c; --pink-tint: #fde9f1;
  --teal: #0e9f8f; --teal-tint: #ddf4f1;
  --yellow: #f5b800; --yellow-tint: #fdf0cc;
  --radius: 5px;
  --radius-sm: 4px;
  --shadow: 0 2px 0 var(--line-strong);           /* yumuşak SaaS gölgesi değil, kağıt kenarı */
  --shadow-pop: 3px 4px 0 rgba(33, 29, 51, .1);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Bricolage', 'Figtree', system-ui, sans-serif;
  /* eski adlar */
  --primary: var(--brand); --primary-soft: var(--brand-tint);
  --ok: var(--green); --pass: var(--green); --danger: var(--red); --fail: var(--red); --ink: var(--text);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1a1636;
  --surface: #241f49;
  --surface-2: #2d2858;
  --text: #f1effb;
  --muted: #b2adce;
  --line: #3a3470;
  --line-strong: #453f82;
  --brand: #9a93ff;
  --brand-hover: #b3acff;
  --brand-tint: #2d2766;
  --navy: #0f0c28;
  --red: #ff6b7a; --red-tint: #3e1f28;
  --orange: #ffa94d; --orange-tint: #3d2c14;
  --green: #4ecb8c; --green-tint: #15321f;
  --warn: #e6b04a; --warn-tint: #352a12;
  --hl-yellow: #c9a800; --hl-green: #3f8a52; --hl-pink: #a84c75; --hl-blue: #3f7aa8;
  --purple-tint: #2c2558; --pink-tint: #3c2036; --teal-tint: #113c38; --yellow-tint: #362a10;
  --line-strong: #453f82;
  --grid: rgba(255,255,255,.04);
  --shadow: 0 2px 0 rgba(0,0,0,.25); --shadow-pop: 3px 4px 0 rgba(0,0,0,.3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #1a1636; --surface: #241f49; --surface-2: #2d2858; --text: #f1effb; --muted: #b2adce;
    --line: #3a3470; --line-strong: #453f82; --brand: #9a93ff; --brand-hover: #b3acff; --brand-tint: #2d2766; --navy: #0f0c28;
    --red: #ff6b7a; --red-tint: #3e1f28; --orange: #ffa94d; --orange-tint: #3d2c14; --green: #4ecb8c; --green-tint: #15321f;
    --warn: #e6b04a; --warn-tint: #352a12; --hl-yellow: #c9a800; --hl-green: #3f8a52; --hl-pink: #a84c75; --hl-blue: #3f7aa8;
    --purple-tint: #2c2558; --pink-tint: #3c2036; --teal-tint: #113c38; --yellow-tint: #362a10;
    --shadow: 0 2px 0 rgba(0,0,0,.25); --shadow-pop: 3px 4px 0 rgba(0,0,0,.3); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* kareli defter zemini */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
  background-attachment: fixed;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.ic { flex: none; display: block; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* el yazısı ve fosforlu kalem */
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
/* gerçek fosforlu kalem: tırtıklı kenar + hafif çizik doku */
.hl { position: relative; white-space: nowrap; max-width: 100%; }
.hl::before {
  content: ''; position: absolute; z-index: -1; left: -.12em; right: -.12em; top: .1em; bottom: .04em;
  background: var(--hl-yellow);
  background-image: repeating-linear-gradient(94deg, rgba(255,255,255,.14) 0 5px, transparent 5px 11px);
  transform: rotate(-1.4deg); opacity: .92;
  clip-path: polygon(0% 22%, 5% 8%, 19% 16%, 33% 6%, 52% 14%, 68% 5%, 84% 15%, 97% 7%, 100% 20%, 99% 82%, 88% 95%, 72% 86%, 54% 96%, 36% 87%, 20% 97%, 7% 88%, 1% 95%);
}
.hl.g::before { background-color: var(--hl-green); } .hl.p::before { background-color: var(--hl-pink); } .hl.b::before { background-color: var(--hl-blue); }

/* ---------- duyuru ---------- */
.announce { padding: 9px 20px; text-align: center; font-size: .92rem; font-weight: 650; background: var(--navy); color: #fff; }
.announce.warn { background: var(--yellow); color: #3a2a00; }
.announce.success { background: var(--green); color: #fff; }

/* ---------- üst menü ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line-strong); }
.topbar-inner { max-width: 1240px; margin: 0 auto; height: 66px; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; flex: none; cursor: pointer; padding: 5px 8px; margin-left: -8px; border-radius: 10px; }
.logo:hover { background: var(--surface-2); text-decoration: none; }
.logo:active { transform: scale(.97); }
.logo img { display: block; height: 30px; width: auto; }
.logo .logo-mark { display: none; }
.logo .on-dark { display: none; }
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .logo .on-light { display: none; } :root[data-theme="system"] .logo .on-dark { display: block; } }

.search { position: relative; flex: 1; max-width: 460px; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface); font: inherit; font-size: .95rem; color: var(--text); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.search > .ic { position: absolute; left: 14px; top: 11px; color: var(--muted); pointer-events: none; }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; z-index: 60; }
.search-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: .95rem; }
.search-pop a:hover, .search-pop a.sel { background: var(--surface-2); text-decoration: none; }
.search-pop .hint { padding: 6px 10px 2px; font-size: .78rem; color: var(--muted); font-weight: 600; }

.mainnav { display: flex; align-items: center; gap: 2px; }
.mainnav > a, .navdrop > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; border: 0; background: none; font: inherit; font-weight: 650; font-size: .95rem; color: var(--text); cursor: pointer; white-space: nowrap; }
.mainnav > a:hover, .navdrop > button:hover, .navdrop.open > button { background: var(--surface-2); text-decoration: none; }
.mainnav > a.active { color: var(--brand); }
.navdrop { position: relative; }
.navdrop-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 560px; background: var(--surface); border: 2px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 12px; display: none; grid-template-columns: 1fr 1fr; gap: 4px; z-index: 60; }
.navdrop.open .navdrop-panel { display: grid; }
.navdrop-panel.narrow { width: 300px; grid-template-columns: 1fr; }
.menu-item { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.menu-item:hover { background: var(--surface-2); text-decoration: none; }
.menu-item b { display: block; font-size: .93rem; }
.menu-item > span > span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.menu-item .count { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--yellow); color: #3a2a00; font-size: .75rem; font-weight: 800; text-align: center; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.avatar .unread { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--surface); }
.navdrop-panel.right { left: auto; right: 0; }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; overflow: hidden; }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle .ic { transition: transform .5s cubic-bezier(.5, 1.6, .4, 1); }
.theme-toggle.spin .ic { transform: rotate(360deg) scale(.6); }

/* mobil alt menü */
.tabbar { display: none; }
@media (max-width: 960px) { .mainnav { display: none; } }
@media (max-width: 720px) {
  .topbar-inner { gap: 10px; padding: 0 14px; height: 60px; }
  .search { max-width: none; } .search input { height: 40px; }
  .logo .logo-full { display: none; } .logo .logo-mark { display: block; } .logo .logo-mark img { height: 32px; }
  .topbar-right .btn.ghost { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 2px solid var(--line-strong); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px; font-size: .72rem; font-weight: 650; color: var(--muted); }
  .tabbar a.active { color: var(--brand); }
  .tabbar a:hover { text-decoration: none; }
  body { padding-bottom: 70px; }
}

/* ---------- sayfa ---------- */
.view { max-width: 1240px; margin: 0 auto; padding: 30px 20px 90px; outline: none; }
.view > div { max-width: 1100px; margin: 0 auto; }
.view > div.wide { max-width: none; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-family: var(--hand); font-weight: 750; font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.05; }
.page-head p { color: var(--muted); max-width: 66ch; margin: 6px 0 0; }
.crumbs { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 650; margin-bottom: 14px; }

/* kart = kağıt yaprağı: kalın kenar, yumuşak gölge yerine düz alt kenar */
.card { background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 18px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 130px; }
.stack > * + * { margin-top: 14px; }
.spacer { flex: 1; }

/* ---------- form ---------- */
label.field { display: block; }
label.field > span { display: block; font-size: .85rem; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
textarea { resize: vertical; min-height: 80px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); }
input[type="color"] { padding: 3px; height: 44px; }
.check { display: flex; align-items: center; gap: 9px; font-size: .95rem; cursor: pointer; }

/* ---------- butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer; padding: 10px 18px; border-radius: var(--radius-sm); border: 2px solid var(--brand); background: var(--brand); color: #fff; white-space: nowrap; transition: transform .06s, filter .15s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); text-decoration: none; }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--brand); background: var(--surface); }
.btn.soft { background: var(--brand-tint); color: var(--brand); border-color: var(--brand-tint); }
.btn.soft:hover { border-color: var(--brand); }
.btn.yellow { background: var(--yellow); color: #3a2800; border-color: #3a2800; box-shadow: var(--shadow-pop); }
.btn.yellow:hover { background: #ffc61a; }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.danger-ghost { background: transparent; color: var(--red); border-color: transparent; }
.btn.danger-ghost:hover { background: var(--red-tint); }
.btn.sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; border-width: 1.5px; }
.btn.lg { padding: 13px 24px; font-size: 1rem; border-radius: 11px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1.5px solid var(--line); }
.badge.primary { background: var(--brand-tint); color: var(--brand); border-color: transparent; }
.badge.ok { background: var(--green-tint); color: var(--green); border-color: transparent; }
.badge.warn { background: var(--warn-tint); color: var(--warn); border-color: transparent; }
.badge.danger { background: var(--red-tint); color: var(--red); border-color: transparent; }
.badge.yellow { background: var(--yellow-tint); color: #a45f00; border-color: transparent; }

/* ---------- sonuç ---------- */
.result { border-radius: var(--radius); padding: 20px 22px; background: var(--surface); border: 2px solid var(--line-strong); }
.result.ok { background: var(--green-tint); border-color: var(--green); }
.result.warn { background: var(--warn-tint); border-color: var(--warn); }
.result.danger { background: var(--red-tint); border-color: var(--red); }
.result .label { font-size: .88rem; font-weight: 650; color: var(--muted); }
.big-num { font-family: var(--hand); font-size: 3.4rem; font-weight: 800; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.result.ok .big-num { color: var(--green); } .result.warn .big-num { color: var(--warn); } .result.danger .big-num { color: var(--red); }

.progress { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; border-radius: inherit; background: var(--green); transition: width .3s; }
.progress.warn > div { background: var(--warn); } .progress.danger > div { background: var(--red); }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 650; padding: 8px 6px; }
.tbl td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl input, .tbl select { padding: 8px 10px; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .empty-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); margin-bottom: 10px; border: 2px dashed var(--brand); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface-2); flex-wrap: wrap; border: 1.5px solid var(--line); }
.tabs button { font: inherit; font-weight: 650; font-size: .88rem; border: 0; cursor: pointer; padding: 7px 14px; border-radius: 7px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1.5px 0 var(--line-strong); }

/* tek mürekkep ikonu — defter kenarına çizilmiş gibi, gökkuşağı yok */
.tile-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--brand);
  border: 1.5px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.c-blue, .c-yellow, .c-green, .c-red, .c-orange, .c-purple, .c-pink, .c-teal {
  background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 22%, transparent); }

/* ---------- ana sayfa ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 36px; align-items: center; margin: 14px 0 44px; }
.hero h1 { font-family: var(--hand); font-weight: 750; font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -.025em; line-height: 1.05; margin-bottom: 14px; overflow-wrap: anywhere; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin-bottom: 22px; }
.hero-search { position: relative; max-width: 540px; }
.hero-search input { height: 56px; border-radius: 6px; padding: 0 128px 0 50px; font-size: 1.02rem; border: 2px solid var(--line-strong); box-shadow: var(--shadow-pop); }
.hero-search > .ic { position: absolute; left: 17px; top: 17px; color: var(--muted); }
.hero-search .btn { position: absolute; right: 7px; top: 7px; height: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 6px; background: var(--surface); border: 2px solid var(--line-strong); color: var(--text); font-size: .88rem; font-weight: 650; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* sınav kağıdı kartı: kırmızı kenar çizgisi (defter marjını) */
.quick { position: relative; padding: 24px 24px 24px 30px; overflow: hidden; }
.quick::before { content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--red); opacity: .5; }
.quick h2 { font-family: var(--hand); font-weight: 750; font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: 12px; }
.quick .row label.field { flex: 1; min-width: 92px; }
.quick-out { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1.5px dashed var(--line-strong); }
/* sonuç etiketi: kağıda yapıştırılmış not sticker'ı */
.sticker { display: grid; place-items: center; min-width: 100px; height: 100px; padding: 0 12px; border-radius: 7px; background: var(--hl-yellow); color: #2a2000; font-family: var(--hand); font-size: 3rem; font-weight: 800; letter-spacing: -.02em; transform: rotate(-4deg); box-shadow: var(--shadow-pop); transition: transform .2s; }
.sticker.ok { background: var(--hl-green); color: #06351c; } .sticker.bad { background: var(--hl-pink); color: #4a0d0f; font-size: 2.1rem; } .sticker.idle { background: var(--surface); border: 2px dashed var(--line-strong); color: var(--muted); box-shadow: none; }
.quick-out .verdict { font-size: .98rem; color: var(--text); font-weight: 600; }
.quick-out .verdict small { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; font-size: .85rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 26px; } }

/* bölüm başlığı: el yazısı + fosforlu alt çizgi hissi */
.section-head { display: flex; align-items: flex-end; gap: 12px; margin: 44px 0 16px; }
.section-head h2 { margin: 0; font-family: var(--hand); font-weight: 750; font-size: 1.6rem; letter-spacing: -.02em; }
.section-head .spacer { flex: 1; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
/* araç = deftere iliştirilmiş fiş: sol marj çizgisi, düz köşe, sade */
.tool { display: flex; gap: 13px; align-items: flex-start; padding: 15px 16px 15px 15px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid color-mix(in srgb, var(--brand) 48%, var(--line)); color: var(--text); transition: transform .1s, box-shadow .1s, border-color .1s; }
.tool:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-pop); border-left-color: var(--brand); }
.tool b { display: block; font-size: 1rem; margin-bottom: 2px; }
.tool > span > span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; }

.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; margin-top: 44px; padding: 30px 32px; border-radius: 6px; background: var(--navy); color: #fff; border: 1px solid var(--navy); }
/* fosforlu kalemle çizilmiş alt vurgu — blob yerine */
.cta-band::before { content: ''; position: absolute; left: 32px; right: 32px; bottom: 20px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 18px, transparent 18px 26px); }
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--hand); font-weight: 750; font-size: 1.8rem; letter-spacing: -.02em; }
.cta-band p { opacity: .9; margin: 0 0 18px; max-width: 48ch; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-list { display: grid; gap: 4px; }
.cta-list div { display: flex; gap: 11px; align-items: center; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 600; }
.cta-list div:last-child { border-bottom: 0; }
.cta-list .ic { color: var(--hl-yellow); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 24px; } }

.stats-strip { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.stats-strip b { display: block; font-family: var(--hand); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stats-strip span { color: var(--muted); font-size: .9rem; }

/* uyarılar */
.notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 22px; border-radius: 12px; background: var(--yellow-tint); border: 2px solid var(--yellow); font-size: .93rem; }
.notice span { flex: 1; min-width: 220px; }
.wall { max-width: 520px; margin: 20px auto; text-align: center; padding: 34px 26px; }

/* liste öğeleri */
.item { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line-strong); }
.item + .item { margin-top: 12px; }
.item-head { display: flex; gap: 14px; align-items: flex-start; }
.item-title { font-weight: 750; font-size: 1.05rem; }
.item-meta { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: .86rem; color: var(--muted); }
.item-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.section-title { margin: 32px 0 14px; display: flex; align-items: center; gap: 10px; font-family: var(--hand); font-weight: 750; font-size: 1.4rem; letter-spacing: -.02em; }
.tool-card { display: block; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line-strong); color: var(--text); }
.tool-card:hover { border-color: var(--brand); text-decoration: none; box-shadow: var(--shadow-pop); }
.tool-card h3 { margin-bottom: 4px; }
.tool-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.filetype { flex: none; display: grid; place-items: center; width: 48px; height: 56px; border-radius: 8px; font-size: .74rem; font-weight: 800; border: 2px solid currentColor; }
.filetype.pdf { background: var(--red-tint); color: var(--red); } .filetype.img { background: var(--teal-tint); color: var(--teal); }
.filetype.doc { background: var(--brand-tint); color: var(--brand); } .filetype.ppt { background: var(--orange-tint); color: var(--orange); }

/* pencere */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 12, 32, .5); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { width: min(540px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 16px; padding: 26px; border: 2px solid var(--line-strong); box-shadow: var(--shadow-pop); }
.modal h2 { margin-bottom: 8px; font-family: var(--hand); font-weight: 750; font-size: 1.5rem; letter-spacing: -.01em; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 650; font-size: .92rem; box-shadow: var(--shadow-pop); animation: pop .18s ease; }
.toast.error { background: var(--red); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 720px) { .toasts { bottom: 84px; } }

/* tema geçiş animasyonu */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
html.theme-fade, html.theme-fade * { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }

/* ders programı */
.timetable { display: grid; border: 2px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); min-width: 640px; }
.tt-scroll { overflow-x: auto; }
.tt-head { font-weight: 700; font-size: .85rem; text-align: center; padding: 10px 4px; border-bottom: 2px solid var(--line-strong); background: var(--surface-2); }
.tt-time { font-size: .74rem; color: var(--muted); text-align: right; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.tt-col { position: relative; border-left: 1px solid var(--line); }
.tt-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.tt-block { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 5px 7px; font-size: .76rem; color: #fff; overflow: hidden; line-height: 1.25; cursor: pointer; }
.tt-block b { display: block; font-size: .82rem; }
.tt-block.conflict { outline: 3px solid var(--red); outline-offset: -1px; }

/* bilgi kartları */
.flashcard { perspective: 1000px; height: 260px; cursor: pointer; user-select: none; }
.flashcard-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; display: grid; place-items: center; padding: 26px; text-align: center; font-size: 1.3rem; font-weight: 650; border: 2px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-pop); overflow-y: auto; }
.flashcard-face.back { transform: rotateY(180deg); background: var(--yellow-tint); }
.choice { text-align: left; justify-content: flex-start; white-space: normal; }
.choice.correct { background: var(--green); border-color: var(--green); color: #fff; } .choice.wrong { background: var(--red); border-color: var(--red); color: #fff; }

/* pomodoro */
.timer-ring { width: 260px; height: 260px; margin: 18px auto; position: relative; }
.timer-ring svg { transform: rotate(-90deg); }
.timer-ring .t { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.timer-ring .t .big-num { font-size: 3.6rem; }

/* CV */
.cv-paper { background: #fff; color: #1a1a1a; padding: 38px 42px; border-radius: 6px; border: 2px solid var(--line-strong); font-size: 13px; line-height: 1.5; font-family: var(--font); }
.cv-paper h1 { font-size: 28px; margin: 0; color: #111; font-family: var(--font); }
.cv-paper .cv-title { color: var(--brand); font-weight: 650; margin-top: 3px; }
.cv-paper .cv-contact { color: #555; margin-top: 6px; font-size: 12px; }
.cv-paper h2 { font-size: 14px; color: var(--brand); border-bottom: 1.5px solid #e3e0d0; padding-bottom: 4px; margin: 20px 0 8px; font-family: var(--font); }
.cv-paper .cv-item { margin-bottom: 9px; }
.cv-paper .cv-item-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.cv-paper .cv-item-sub { color: #555; }
.cv-paper .cv-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-paper .cv-tags span { background: #f2efe3; padding: 2px 9px; border-radius: 99px; font-size: 12px; }
.repeat-item { border: 2px dashed var(--line-strong); border-radius: 10px; padding: 12px; }
.repeat-item + .repeat-item { margin-top: 8px; }

/* profil */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--brand); color: #fff; font-size: 2rem; font-weight: 900; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.badge-card { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--surface); }
.badge-card.locked { opacity: .45; filter: grayscale(1); }
.badge-card b { display: block; font-size: .9rem; } .badge-card > span > span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }

/* yönetim paneli */
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: 90px; display: grid; gap: 2px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line-strong); }
.admin-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 0; background: none; font: inherit; font-weight: 650; font-size: .93rem; color: var(--muted); cursor: pointer; text-align: left; }
.admin-nav button:hover { background: var(--surface-2); color: var(--text); }
.admin-nav button.active { background: var(--brand-tint); color: var(--brand); }
.admin-nav .count { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--red); color: #fff; font-size: .75rem; text-align: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line-strong); }
.kpi .k-label { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.kpi .k-val { font-family: var(--hand); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.kpi .k-sub { font-size: .8rem; color: var(--muted); }
.kpi .k-sub b { color: var(--green); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 8px; }
.bars div { flex: 1; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--brand); position: relative; }
.bars div:hover { background: var(--brand-hover); }
.bars div[data-n="0"] { background: var(--surface-2); }
.bars-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.rank { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .9rem; }
.rank-row .bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rank-row .bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 2px solid var(--line-strong); white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line-strong); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-right: 6px; }
.dot.on { background: var(--green); }
.log-row { display: grid; grid-template-columns: 150px 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } .admin-nav { position: static; display: flex; overflow-x: auto; } .admin-nav button { white-space: nowrap; } .log-row { grid-template-columns: 1fr; gap: 2px; } }

.footer { max-width: 1240px; margin: 0 auto; padding: 28px 20px 40px; border-top: 2px solid var(--line-strong); color: var(--muted); font-size: .85rem; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-note { margin-top: 40px; font-size: .85rem; color: var(--muted); max-width: 72ch; }

/* rehber metinleri */
.seo-article { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }
.seo-article:empty { display: none; }
.seo-inner { max-width: 760px; margin: 0 auto; padding: 28px 30px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line-strong); line-height: 1.7; }
.seo-inner h2 { font-family: var(--hand); font-weight: 750; font-size: 1.35rem; letter-spacing: -.01em; margin: 26px 0 10px; }
.seo-inner h2:first-child { margin-top: 0; }
.seo-inner p, .seo-inner li { color: var(--muted); }
.seo-inner strong { color: var(--text); }
.seo-inner ul { padding-left: 20px; }
.seo-inner li + li { margin-top: 6px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 12px 0; font-weight: 700; cursor: pointer; color: var(--text); }
.faq p { margin: 0 0 14px; }
.seo-table { border-collapse: collapse; margin: 6px 0 14px; min-width: 280px; }
.seo-table th, .seo-table td { padding: 6px 16px 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.seo-table th { font-size: .85rem; color: var(--muted); }

@media print {
  body { background: #fff; padding: 0; }
  .topbar, .tabbar, .announce, .footer, .no-print, .toasts, .notice { display: none !important; }
  .grid { display: block !important; }
  .view { padding: 0; max-width: none; }
  .cv-paper { border: 0; padding: 0; } .card { border: 0; padding: 0; }
  .timetable { min-width: 0; } .tt-scroll { overflow: visible; }
  @page { margin: 14mm; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .big-num { font-size: 3.2rem; }
  .card { padding: 18px 16px; }
  .view { padding-top: 22px; }
}

/* ---------- yardım merkezi ve destek ---------- */
.help-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 26px; }
.help-cat { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line-strong); cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.help-cat:hover, .help-cat.active { border-color: var(--brand); }
.help-cat b { display: block; }
.help-cat > span > span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.topic { border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.topic + .topic { margin-top: 10px; }
.topic summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary > .ic { margin-left: auto; color: var(--muted); transition: transform .2s; }
.topic[open] summary > .ic { transform: rotate(180deg); }
.topic-body { padding: 0 18px 18px 52px; }
.topic-body ol { margin: 0 0 12px; padding-left: 18px; }
.topic-body li + li { margin-top: 4px; }
.topic-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--line-strong); font-size: .9rem; color: var(--muted); }
.thread { display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--line); }
.msg.mine { margin-left: auto; background: var(--brand-tint); border-color: transparent; }
.msg.staff { border-color: var(--yellow); background: var(--yellow-tint); }
.msg-meta { font-size: .78rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
@media (max-width: 600px) { .topic-body { padding-left: 18px; } .msg { max-width: 100%; } }

/* Hukuki metinler (gizlilik, KVKK) */
.legal-doc { max-width: 70ch; line-height: 1.7; }
.legal-doc h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal-doc h2:first-child { margin-top: 4px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 20px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--brand); }

/* Özel çalışma odaları */
.room-grid { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.room-chat { display: flex; flex-direction: column; height: 62vh; min-height: 380px; padding: 0; overflow: hidden; }
.room-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.room-msg { display: flex; }
.room-msg.me { justify-content: flex-end; }
.room-bubble { max-width: 78%; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.room-msg.me .room-bubble { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.room-from { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 1px; }
.room-sys { text-align: center; font-size: .78rem; color: var(--muted); margin: 4px 0; }
.room-send { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.room-send input { flex: 1; height: 42px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); }
.room-side { display: flex; flex-direction: column; gap: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dot.on { background: var(--green); }
.badge.sm { font-size: .64rem; padding: 1px 6px; }
.room-file { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.room-file a { display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
@media (max-width: 720px) { .room-grid { grid-template-columns: 1fr; } .room-chat { height: 56vh; } }

/* Oda not okuyucu (AI konu başlıkları + yıldız) */
.linklike { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 5px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.linklike:hover { text-decoration: underline; }
.modal:has(.note-reader) { max-width: 640px; width: 92vw; }
.note-reader { max-height: 60vh; overflow-y: auto; margin: 8px 0; }
.note-topic { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 5px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); }
.note-topic.starred { border-left-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 8%, var(--surface)); }
.note-topic-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.note-topic-head h3 { font-size: 1rem; margin: 0; }
.star { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px; line-height: 0; }
.note-topic.starred .star { color: var(--yellow); }
.note-topic-text { white-space: pre-wrap; line-height: 1.6; color: var(--text); font-size: .95rem; }

/* Not okuyucu: vurgulama + yorum */
mark.hl { background: color-mix(in srgb, var(--yellow) 45%, transparent); border-radius: 2px; cursor: pointer; padding: 0 1px; }
mark.hl.hasnote { background: color-mix(in srgb, var(--yellow) 55%, transparent); border-bottom: 2px solid var(--yellow); }
.note-topic-head .grow { margin: 0; }
.note-comments { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.note-comment-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.note-comment { font-size: .9rem; line-height: 1.4; }
.note-comment b { color: var(--brand); }
.note-comment .linklike { color: var(--muted); vertical-align: middle; }
.note-comment-add { display: flex; gap: 6px; }
.note-comment-add input { flex: 1; height: 34px; padding: 0 10px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.hl-pop { position: fixed; transform: translateX(-50%); z-index: 9999; display: flex; gap: 4px; align-items: center; background: var(--navy); color: #fff; padding: 5px; border-radius: 7px; box-shadow: var(--shadow-pop); }
.hl-pop button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 5px; padding: 5px 9px; font-size: .82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hl-pop button:hover { background: rgba(255,255,255,.28); }
.hl-pop .hl-note { max-width: 220px; padding: 2px 6px; font-size: .82rem; white-space: normal; }

/* Not okuyucu: sol konu listesi + düzen */
.reader-head { margin-bottom: 10px; }
.reader-layout { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
.reader-side { position: sticky; top: 0; }
.reader-outline { display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow-y: auto; }
.reader-outline a { display: block; padding: 6px 9px; border-radius: 5px; font-size: .85rem; color: var(--text); border-left: 2px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-outline a:hover { background: var(--surface-2); text-decoration: none; }
.reader-outline a.active { border-left-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.reader-main { max-height: 64vh; }
.modal:has(.reader-layout) { max-width: 880px; width: 94vw; }

/* Not defteri (localStorage) */
.nb-add { margin-bottom: 14px; }
.nb-add input, .nb-add textarea, .nb-edit input, .nb-edit textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); padding: 8px 10px; font: inherit; margin-bottom: 6px; }
.nb-list { display: flex; flex-direction: column; gap: 10px; }
.nb-note { border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 5px; padding: 10px 12px; background: var(--surface); }
.nb-note-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.nb-actions { display: flex; gap: 10px; flex: none; }
.nb-actions .linklike, .nb-note .linklike { font-size: .82rem; color: var(--muted); }
.nb-body { white-space: pre-wrap; line-height: 1.5; font-size: .92rem; }
@media (max-width: 720px) { .reader-layout { grid-template-columns: 1fr; } .reader-side { position: static; } .reader-outline { flex-direction: row; flex-wrap: wrap; max-height: 110px; } }

/* ========== Özel odalar tanıtımı (Yeni özellik) ========== */
.promo-rooms {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
  margin: 2px 0 22px; padding: 18px 20px; color: var(--text);
  border: 1px solid var(--teal); border-left: 4px solid var(--teal); border-radius: var(--radius);
  background:
    linear-gradient(color-mix(in srgb, var(--teal-tint) 65%, var(--surface)), color-mix(in srgb, var(--teal-tint) 65%, var(--surface))),
    repeating-linear-gradient(0deg, transparent 0 25px, var(--grid) 25px 26px);
  box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
  animation: promoIn .5s cubic-bezier(.2,.9,.3,1.3) both;
}
.promo-rooms:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.promo-ic { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px;
  background: var(--teal); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--teal) 55%, #000);
  animation: promoBob 3s ease-in-out infinite; }
.promo-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.promo-tag { align-self: flex-start; font-size: .66rem; font-weight: 800; letter-spacing: .08em;
  color: var(--teal); background: var(--surface); border: 1px solid var(--teal); padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.promo-body b { font-family: var(--hand); font-size: 1.32rem; line-height: 1.12; }
.promo-body > span:last-child { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.promo-cta { flex: none; display: inline-flex; align-items: center; gap: 3px; font-weight: 750; color: var(--teal); }
.promo-cta svg { transform: rotate(-90deg); transition: margin-left .15s; }
.promo-rooms:hover .promo-cta svg { margin-left: 5px; }
.promo-spark { position: absolute; color: var(--teal); pointer-events: none; opacity: .4; animation: twinkle 2.4s ease-in-out infinite; }
.promo-spark.s1 { top: 12px; right: 30%; font-size: 12px; }
.promo-spark.s2 { bottom: 14px; right: 15%; font-size: 9px; animation-delay: .7s; }
.promo-spark.s3 { top: 44%; right: 8%; font-size: 15px; animation-delay: 1.3s; }
@keyframes promoIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes promoBob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
@keyframes twinkle { 0%,100% { opacity: .12; transform: scale(.6); } 50% { opacity: .65; transform: scale(1.15); } }
@media (max-width: 620px) { .promo-rooms { flex-wrap: wrap; } .promo-cta { width: 100%; justify-content: flex-end; } }

/* tile "Yeni" rozeti */
.tool.has-badge { position: relative; }
.tile-badge { position: absolute; top: -7px; right: 10px; font-size: .62rem; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: var(--teal); padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 2px 7px color-mix(in srgb, var(--teal) 45%, transparent); animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.09); } }

/* uyarılar ve pencereler biraz daha canlı */
.toast { animation-duration: .34s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.94); } 62% { transform: translateY(-2px) scale(1.02); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.modal { animation: modalIn .22s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal-wrap { animation: fadeIn .18s ease both; }
@keyframes fadeIn { from { opacity: 0; } }

/* ========== Site geneli hareket katmanı (her yer) ========== */
/* her sayfa yumuşak giriş yapar */
#view > *:not(.empty) { animation: viewIn .3s cubic-bezier(.2,.7,.3,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* araç/konu kutuları kademeli belirir */
.tools .tool { animation: tileIn .42s cubic-bezier(.2,.7,.3,1) both; }
.tools .tool:nth-child(1) { animation-delay: .03s; }
.tools .tool:nth-child(2) { animation-delay: .07s; }
.tools .tool:nth-child(3) { animation-delay: .11s; }
.tools .tool:nth-child(4) { animation-delay: .15s; }
.tools .tool:nth-child(5) { animation-delay: .19s; }
.tools .tool:nth-child(6) { animation-delay: .23s; }
.tools .tool:nth-child(7) { animation-delay: .27s; }
.tools .tool:nth-child(n+8) { animation-delay: .3s; }
@keyframes tileIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }

/* açılır menüler yumuşak açılır */
.navdrop.open > .navdrop-panel { animation: dropIn .16s ease both; transform-origin: top; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* kart & menü öğesi: hover'da hafif kalkış */
.tool, .menu-item { transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease; }
.tool:hover, .menu-item:hover { transform: translateY(-2px); }

/* hesaplama sonucu belirince pop */
.result { animation: pop .32s cubic-bezier(.2,.9,.3,1.25) both; }

/* chip ve butonlarda tatlı geri bildirim */
.chip { transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.chip:hover { transform: translateY(-1px); }
.btn { transition: transform .1s ease, filter .12s ease, background .12s ease; }
.btn:hover { filter: brightness(1.04); }

/* nav menüsündeki "Yeni" rozeti */
.menu-badge { font-size: .6rem; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--teal);
  padding: 1px 6px; border-radius: 999px; vertical-align: middle; margin-left: 5px; }

/* ========== "Uygulamayı yükle" pill (PWA) ========== */
.install-pill { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 160%);
  display: flex; align-items: center; gap: 10px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 8px 7px 16px; box-shadow: var(--shadow-pop);
  transition: transform .34s cubic-bezier(.2,.9,.3,1.25); max-width: calc(100vw - 24px); }
.install-pill.show { transform: translate(-50%, 0); }
.install-pill > span { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: .92rem; white-space: nowrap; }
.install-pill .pill-x { background: none; border: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 5px; border-radius: 8px; }
.install-pill .pill-x:hover { background: var(--grid); color: var(--text); }
@media (max-width: 480px) { .install-pill > span { font-size: .82rem; } .install-pill { gap: 6px; padding-left: 13px; } }

/* ========== Oda Pomodoro ========== */
.pomo-card { text-align: center; }
.pomo-phase { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.pomo-card.is-break .pomo-phase { color: var(--teal); }
.pomo-time { font-size: 2.5rem; font-weight: 800; line-height: 1.05; margin: 2px 0 12px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pomo-card.is-break .pomo-time { color: var(--teal); }
.pomo-card.is-running .pomo-time { animation: pomoPulse 2s ease-in-out infinite; }
@keyframes pomoPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.pomo-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ========== Katkı sıralaması ========== */
.lb-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.lb-tabs .tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 16px; font-weight: 650; cursor: pointer; transition: all .12s; }
.lb-tabs .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); animation: tileIn .3s ease both; }
.lb-row.top { border-color: color-mix(in srgb, var(--yellow, #e0a800) 50%, var(--line)); }
.lb-row.me { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.lb-rank { font-size: 1.1rem; font-weight: 800; min-width: 34px; text-align: center; }
.lb-name { min-width: 0; }
.lb-pts { font-weight: 800; color: var(--primary); white-space: nowrap; }
.lb-row:nth-child(1) .lb-rank, .lb-row:nth-child(2) .lb-rank, .lb-row:nth-child(3) .lb-rank { font-size: 1.3rem; }

/* ========== AI ders asistanı ========== */
.ask-log { max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ask-log:empty { display: none; }
.ask-q { align-self: flex-end; max-width: 85%; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; font-size: .92rem; }
.ask-a { align-self: flex-start; max-width: 92%; background: var(--grid); padding: 9px 13px; border-radius: 14px 14px 14px 4px; font-size: .92rem; white-space: pre-wrap; line-height: 1.5; }
.ask-a.thinking { color: var(--muted); font-style: italic; animation: pomoPulse 1.4s ease-in-out infinite; }
.ask-a.err { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.ask-quick { display: flex; flex-wrap: wrap; gap: 6px; }

/* ========== AI ders özeti ========== */
.ai-summary { max-height: 55vh; overflow-y: auto; line-height: 1.55; }
.ai-summary h3 { font-size: 1.1rem; margin: 0 0 8px; }
.ai-summary h4 { font-size: .98rem; margin: 14px 0 4px; color: var(--primary); }
.ai-summary ul { margin: 4px 0 10px; padding-left: 20px; }
.ai-summary li { margin: 3px 0; }
.ai-summary p { margin: 6px 0; }

/* ========== Ders programı ========== */
.sch-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sch-grid { display: flex; min-width: 640px; }
.sch-col { flex: 1 1 0; min-width: 96px; border-left: 1px solid var(--line); }
.sch-col.sch-axis { flex: 0 0 52px; min-width: 52px; border-left: none; }
.sch-day { height: 34px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; border-bottom: 1px solid var(--line); background: var(--grid); position: sticky; top: 0; }
.sch-slots { position: relative; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, var(--line) 47px, var(--line) 48px); }
.sch-axis .sch-slots { background-image: none; }
.sch-hr { position: absolute; right: 6px; font-size: .68rem; color: var(--muted); transform: translateY(-6px); }
.sch-block { position: absolute; left: 3px; right: 3px; border-radius: 6px; color: #fff; padding: 4px 6px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .1s; }
.sch-block:hover { transform: scale(1.02); z-index: 2; }
.sch-block b { display: block; font-size: .78rem; line-height: 1.15; }
.sch-block span { font-size: .68rem; opacity: .92; }
.sch-block.clash { outline: 2.5px solid var(--danger); outline-offset: -1px; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.color-dot.on { border-color: var(--text); transform: scale(1.12); }

/* ========== Günlük seri (streak) ========== */
.streak-chip { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 9px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .95rem; font-weight: 650; color: var(--text); line-height: 1; animation: tileIn .4s ease both; }
.streak-chip b { font-weight: 800; }
.streak-chip .flame { font-size: 1.05rem; animation: flameWobble 1.8s ease-in-out infinite; display: inline-block; }
.streak-chip .muted { font-size: .85rem; font-weight: 500; }
.streak-chip:hover { border-color: var(--brand); }
@keyframes flameWobble { 0%,100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.12); } }

/* ========== Kavram oyunu (Kavramle) ========== */
.kv-grid { display: flex; flex-direction: column; gap: 6px; }
.kv-row { display: grid; grid-template-columns: 1.4fr repeat(var(--cols, 3), 1fr); gap: 6px; }
.kv-head { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.kv-head span { padding: 4px 8px; }
.kv-name { display: flex; align-items: center; padding: 10px 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.kv-name.ok { background: var(--ok); color: #fff; border-color: transparent; }
.kv-name.no { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }
.kv-cell { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; border-radius: 8px; font-weight: 700; font-size: .86rem; color: #fff; transform-style: preserve-3d;
  animation: cellFlip .5s cubic-bezier(.2,.8,.3,1.2) both; animation-delay: calc(var(--i, 0) * 0.13s); }
.kv-cell.ok { background: var(--ok); }
.kv-cell.no { background: #b0453b; }
.kv-cell.up, .kv-cell.down { background: #c98a24; }
.kv-name { animation: popIn .32s cubic-bezier(.2,.9,.3,1.3) both; }
.kv-row.def { grid-template-columns: 1.4fr 1fr; }
@keyframes cellFlip { 0% { transform: rotateX(-90deg) scale(.9); opacity: 0; } 60% { transform: rotateX(8deg) scale(1.04); opacity: 1; } 100% { transform: rotateX(0) scale(1); } }
@keyframes popIn { from { transform: scale(.8); opacity: 0; } }
.def-guesses { display: flex; flex-direction: column; gap: 6px; }
.def-guess { padding: 10px 14px; border-radius: 8px; font-weight: 650; animation: popIn .3s ease both; }
.def-guess.ok { background: var(--ok); color: #fff; }
.def-guess.no { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.game-modes { flex-wrap: wrap; margin-bottom: 18px; }
.card.win { border: 2px solid var(--ok); animation: winPop .5s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes winPop { from { transform: scale(.85); opacity: 0; } }
.win-emoji { font-size: 2.6rem; display: inline-block; animation: winBounce 1s ease infinite; }
@keyframes winBounce { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }

/* --- Wordle --- */
.wd-grid { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-bottom: 18px; }
.wd-row { display: grid; grid-template-columns: repeat(var(--len, 5), 1fr); gap: 6px; width: min(100%, calc(var(--len) * 60px)); }
.wd-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; text-transform: uppercase;
  border: 2px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); }
.wd-cell.filled { border-color: var(--muted); }
.wd-cell.pop { animation: tilePush .14s ease; }
.wd-cell.ok, .wd-cell.near, .wd-cell.no { color: #fff; border-color: transparent; animation: cellFlip .5s cubic-bezier(.2,.8,.3,1.2) both; animation-delay: calc(var(--i, 0) * 0.18s); }
.wd-cell.ok { background: var(--ok); }
.wd-cell.near { background: #c9a227; }
.wd-cell.no { background: #6b7280; }
.wd-row.win .wd-cell { animation: wdDance .55s ease; animation-delay: calc(var(--i, 0) * 0.09s + .1s); }
@keyframes wdDance { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 70% { transform: translateY(2px); } }
.wd-row.shake { animation: wdShake .4s ease; }
@keyframes tilePush { 0% { transform: scale(1); } 45% { transform: scale(1.13); } 100% { transform: scale(1); } }
@keyframes wdShake { 10%,90% { transform: translateX(-2px); } 30%,70% { transform: translateX(4px); } 50% { transform: translateX(-6px); } }
.wd-kb { display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin: 0 auto; }
.wd-krow { display: flex; gap: 5px; justify-content: center; }
.wd-key { flex: 1; min-width: 26px; height: 48px; border: none; border-radius: 6px; background: var(--grid); color: var(--text); font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .08s, filter .1s; }
.wd-key:hover { filter: brightness(1.08); }
.wd-key:active { transform: scale(.94); }
.wd-key.wide { flex: 1.5; font-size: 1.1rem; }
.wd-key.ok { background: var(--ok); color: #fff; }
.wd-key.near { background: #c9a227; color: #fff; }
.wd-key.no { background: #4b5563; color: #fff; }

/* --- Çengel bulmaca --- */
.cw-wrap { overflow-x: auto; padding-bottom: 6px; }
.cw-grid { display: grid; grid-template-columns: repeat(var(--w), 38px); gap: 2px; width: max-content; margin: 0 auto; }
.cw-cell { width: 38px; height: 38px; position: relative; }
.cw-cell.blank { background: transparent; }
.cw-cell input { width: 100%; height: 100%; border: 1.5px solid var(--line); border-radius: 4px; text-align: center; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; background: var(--surface); color: var(--text); padding: 0; }
.cw-cell input:focus { border-color: var(--brand); outline: none; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.cw-cell.ok input { background: var(--ok); color: #fff; border-color: transparent; }
.cw-cell.no input { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); border-color: var(--danger); }
.cw-num { position: absolute; top: 1px; left: 2px; font-size: .55rem; font-weight: 700; color: var(--muted); pointer-events: none; }
.cw-clues { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cw-clues h3 { margin: 0 0 8px; font-size: .95rem; }
.cw-clue { font-size: .88rem; margin-bottom: 6px; line-height: 1.4; }
@media (max-width: 560px) { .wd-cell { font-size: 1.2rem; } .wd-key { height: 44px; min-width: 22px; font-size: .85rem; } .cw-clues { grid-template-columns: 1fr; } .kv-cell { font-size: .74rem; padding: 8px 3px; } .kv-name { font-size: .82rem; padding: 8px; } }

/* --- oyun: nasıl oynanır --- */
.howto { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.howto summary { cursor: pointer; padding: 10px 14px; font-weight: 650; font-size: .9rem; list-style: none; user-select: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto[open] summary { border-bottom: 1px solid var(--line); }
.howto p { margin: 0; padding: 12px 14px; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.howto b { font-weight: 700; padding: 1px 6px; border-radius: 4px; color: #fff; }
.ht-ok { background: var(--ok); }
.ht-no { background: #b0453b; }
.ht-nr { background: #c9a227; }
.ht-gr { background: #6b7280; }

/* ---- Bakım modu ---- */
.maint-page { max-width: 560px; margin: 48px auto; text-align: center; padding: 20px; }
.maint-page .maint-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center; background: var(--grid); color: var(--muted); }
.maint-page h1 { margin: 0 0 10px; }
.maint-page p { color: var(--muted); margin: 0 0 22px; line-height: 1.6; }
.maint-banner { display: flex; align-items: center; gap: 10px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .92rem; }
html[data-theme=dark] .maint-banner { background: #3a2a12; border-color: #7c4a16; color: #fed7aa; }
.maint-banner svg { flex: none; }
.maint-list { display: flex; flex-direction: column; gap: 8px; }
.maint-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.maint-row button { flex: none; }

/* ================= OYUNLAŞTIRMA ================= */
/* İlerleme bandı (ana sayfa) — belirgin, tek parça renkli kart */
.pband { display: grid; grid-template-columns: auto 1.35fr 1.1fr 1.1fr; gap: 0; margin: 22px 0 10px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 12%, var(--card)), var(--card) 55%);
  border: 2px solid color-mix(in srgb, var(--primary) 32%, var(--line));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 16%, transparent), 0 2px 6px rgba(0,0,0,.05); }
.pb-cell { position: relative; padding: 18px 20px; display: flex; align-items: center; gap: 14px; text-align: left; background: none; border: 0; }
.pb-cell + .pb-cell::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: color-mix(in srgb, var(--primary) 20%, var(--line)); }
button.pb-cell { cursor: pointer; font: inherit; color: inherit; }
button.pb-cell:hover, a.pb-cell:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); transition: background .15s; }
a.pb-cell { text-decoration: none; color: inherit; }
.pb-streak { position: relative; }
.pb-flame { font-size: 2.5rem; animation: flameWobble 2.2s ease-in-out infinite; filter: drop-shadow(0 3px 8px rgba(255,120,30,.45)); }
.pb-streak-txt { display: flex; flex-direction: column; line-height: 1; }
.pb-streak-txt b { font-size: 2.2rem; font-weight: 900; background: linear-gradient(135deg, #ff9f1c, #ff5e3a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pb-streak-txt span { font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pb-rec { position: absolute; top: 10px; right: 12px; font-size: .68rem; font-weight: 700; color: #ff7a1c; }
.pb-level { gap: 16px; }
.pb-lvl { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--primary), #7c6cff); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 55%, transparent); }
.pb-xp { flex: 1; min-width: 0; }
.pb-xp-bar { height: 14px; border-radius: 8px; background: color-mix(in srgb, var(--primary) 12%, var(--grid)); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.pb-xp-bar.big { height: 16px; }
.pb-xp-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--primary), #8b7bff); box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 50%, transparent); transition: width .6s cubic-bezier(.2,.8,.3,1); }
.pb-xp-txt { font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 7px; display: block; }
.pb-quests { flex-direction: column; align-items: stretch; gap: 9px; }
.pb-q-top { display: flex; justify-content: space-between; align-items: center; }
.pb-q-top b { font-size: 1rem; }
.pb-q-count { font-size: .9rem; font-weight: 800; color: var(--muted); }
.pb-q-count.done { color: var(--ok); }
.pb-q-dots { display: flex; gap: 6px; }
.pb-dot { flex: 1; height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--primary) 14%, var(--grid)); }
.pb-dot.on { background: var(--ok); box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 55%, transparent); }
.pb-daily-ic { font-size: 2rem; }
.pb-daily b { font-size: 1rem; }
.pb-daily span { display: flex; flex-direction: column; line-height: 1.2; }
.pb-daily span span { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .pband { grid-template-columns: 1fr 1fr; } .pb-cell + .pb-cell:nth-child(odd)::before { display: none; } }
@media (max-width: 480px) { .pband { grid-template-columns: 1fr; } .pb-cell + .pb-cell::before { display: none; } .pb-cell + .pb-cell { border-top: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); } }

/* XP / rozet / seviye kutlamaları */
.xp-pop { position: fixed; left: 50%; top: 28%; transform: translateX(-50%); z-index: 400; font-weight: 800; font-size: 1.4rem; color: var(--primary); text-shadow: 0 2px 10px color-mix(in srgb, var(--primary) 35%, transparent); pointer-events: none; animation: xpFloat 1.5s ease forwards; }
@keyframes xpFloat { 0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.8); } 20% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-50px) scale(1); } }
.badge-pop { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--primary); border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); transform: translateX(120%); transition: transform .4s cubic-bezier(.2,.9,.3,1.2); max-width: 300px; }
.badge-pop.show { transform: translateX(0); }
.badge-pop .bp-emoji { font-size: 2rem; animation: badgePulse 1.4s ease infinite; }
.badge-pop b { display: block; font-size: .85rem; }
.badge-pop span span, .badge-pop div span { font-size: .9rem; color: var(--muted); }
.lvlup-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(10,10,20,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.lvlup-overlay.show { opacity: 1; }
.lvlup-card { background: var(--card); border-radius: 24px; padding: 32px 36px; text-align: center; max-width: 340px; transform: scale(.85); transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
.lvlup-overlay.show .lvlup-card { transform: scale(1); }
.lvlup-ring { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), #7c6cff); box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 18%, transparent); animation: badgePulse 1.2s ease infinite; }
.lvlup-card h2 { margin: 0 0 6px; }
.lvlup-card p { color: var(--muted); margin: 0 0 18px; }

/* Görevler sayfası */
.lvl-card { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.lvl-badge-big { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--primary), #7c6cff); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 38%, transparent); }
.quest-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.quest-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.quest-row.done { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.quest-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; }
.quest-row.done .quest-check { background: var(--ok); border-color: var(--ok); }
.quest-bar { height: 6px; border-radius: 4px; background: var(--grid); overflow: hidden; margin-top: 6px; }
.quest-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width .5s; }
.quest-bonus { margin: 14px 0 0; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-weight: 700; text-align: center; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.badge-cell { border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.badge-cell.locked { opacity: .45; filter: grayscale(1); }
.badge-cell.earned { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.badge-emoji { font-size: 2rem; }
.badge-cell b { font-size: .88rem; }

/* Deneyim ayarları — switch */
.fx-list { display: flex; flex-direction: column; }
.fx-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fx-row:last-child { border-bottom: 0; }
.fx-ic { font-size: 1.5rem; width: 34px; text-align: center; }
.fx-row b { display: block; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--grid); border-radius: 26px; transition: .25s; }
.switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* Maskot */
.mascot { position: fixed; left: 16px; bottom: 16px; z-index: 240; width: 48px; height: 48px; }
.mascot-face { position: absolute; inset: 0; width: 48px; height: 48px; display: grid; place-items: center; font-size: 2rem; line-height: 1; background: var(--card); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; padding: 0; box-shadow: 0 4px 14px rgba(0,0,0,.16); animation: mascotBob 3.4s ease-in-out infinite; transition: transform .15s; }
.mascot-face:hover { transform: scale(1.08); }
.mascot-face:active { transform: scale(.94); }
.mascot-bubble { position: absolute; left: 0; bottom: calc(100% + 12px); width: max-content; max-width: min(240px, 72vw); background: linear-gradient(135deg, var(--primary), #6d5cf0); color: #fff; border: 0; border-radius: 16px; padding: 11px 14px; font-size: .85rem; font-weight: 600; line-height: 1.4; box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 45%, rgba(0,0,0,.25)); opacity: 0; transform: translateY(6px) scale(.96); transform-origin: left bottom; transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.3,1.2); pointer-events: none; }
.mascot-bubble::after { content: ''; position: absolute; left: 18px; top: 100%; width: 13px; height: 13px; background: #6d5cf0; transform: translateY(-7px) rotate(45deg); }
.mascot.talk .mascot-bubble { opacity: 1; transform: translateY(0) scale(1); }
@keyframes mascotBob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@media (max-width: 560px) { .mascot { left: 12px; bottom: 80px; } }
.daily-board { margin-top: 4px; }

/* ===== Bildirim zili ===== */
.navbell { position: relative; display: inline-flex; }
.iconbtn.bell { position: relative; background: none; border: 0; cursor: pointer; color: var(--text); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.iconbtn.bell:hover { background: var(--grid); }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; background: var(--danger); border-radius: 50%; border: 2px solid var(--bg, #fff); }
.bell-dot.hidden { display: none; }
.notif-panel { width: 320px; max-width: 86vw; max-height: 70vh; overflow-y: auto; padding: 0; }
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.notif-head .link { background: none; border: 0; color: var(--primary); cursor: pointer; font-size: .8rem; }
.notif-item { display: flex; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.notif-item:hover { background: var(--grid); }
.notif-item.unread { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.notif-emoji { font-size: 1.3rem; flex: none; }
.notif-item b { display: block; font-size: .88rem; }
.notif-body { display: block; font-size: .82rem; color: var(--muted); }
.notif-time { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ===== Arkadaşlar ===== */
.fr-search { position: relative; display: flex; align-items: center; }
.fr-search-ic { position: absolute; left: 12px; color: var(--muted); display: grid; }
.fr-search input { width: 100%; padding: 11px 12px 11px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; }
.fr-list { display: flex; flex-direction: column; gap: 8px; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; }
.fr-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), #7c6cff); position: relative; }
.fr-av.on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; background: var(--ok); border-radius: 50%; border: 2px solid var(--card); }
.fr-row b { display: block; font-size: .95rem; }
.poke { white-space: nowrap; }

/* ===== Günün sorusu ===== */
.qcard { max-width: 640px; margin: 0 auto; }
.qtext { font-size: 1.12rem; font-weight: 600; line-height: 1.5; margin: 4px 0 18px; }
.qopts { display: flex; flex-direction: column; gap: 10px; }
.qopt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 15px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: .15s; }
.qopt:not(:disabled):hover { border-color: var(--primary); transform: translateY(-1px); }
.qlet { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--grid); color: var(--muted); }
.qopt.correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.qopt.correct .qlet { background: var(--ok); color: #fff; }
.qopt.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.qopt.wrong .qlet { background: var(--danger); color: #fff; }
.qmark { font-weight: 800; }
.qexp { margin-top: 16px; padding: 14px; border-radius: 12px; }
.qexp.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.qexp.no { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.qexp b { display: block; margin-bottom: 4px; }
.qexp p { margin: 0; color: var(--muted); line-height: 1.5; }

/* ===== Sınav maratonu ===== */
.marathon { margin: 12px 0 8px; padding: 16px 18px; border-radius: 18px; border: 2px solid color-mix(in srgb, #ff7a1c 30%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, #ff9f1c 10%, var(--card)), var(--card) 60%); }
.mar-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.mar-badge { font-weight: 800; color: #e06a00; }
.mar-days { font-size: .82rem; font-weight: 700; color: #e06a00; white-space: nowrap; }
.mar-bar { position: relative; height: 26px; border-radius: 13px; background: color-mix(in srgb, #ff7a1c 12%, var(--grid)); overflow: hidden; }
.mar-bar i { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 13px; background: linear-gradient(90deg, #ff9f1c, #ff5e3a); transition: width .7s cubic-bezier(.2,.8,.3,1); }
.mar-bar-txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: var(--text); }
.mar-foot { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 9px; }

/* seri dondurma rozeti */
.pb-freeze { position: absolute; top: 10px; right: 12px; font-size: .72rem; font-weight: 800; color: #3b82f6; }

/* Günün sorusu — pratik modu */
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pr-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; transition: .15s; }
.pr-chip:hover { border-color: var(--primary); }
.pr-chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.qopt.sm { padding: 10px 13px; }
#prNext { margin-top: 14px; }
