/* =========================================================
   Higext Gang · siyah forma, lila yaka
   ========================================================= */
:root {
  --ink: #0c0a12;
  --ink-2: #13101c;
  --surface: rgba(26, 22, 38, 0.72);
  --surface-solid: #1a1626;
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f0fa;
  --text-2: #c9c2dc;
  --muted: #8f87a8;
  --lila: #b9a5ff;
  --lila-2: #8b6cf6;
  --lila-soft: rgba(185, 165, 255, 0.14);
  --coral: #ff8a7a;
  --mint: #5fe0b0;
  --amber: #ffc861;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --f-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.55;
  background: var(--ink);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { display: block; }
::selection { background: var(--lila-2); color: #fff; }

/* ---------- arka plan ---------- */
#bg { position: fixed; inset: 0; z-index: -3; overflow: hidden; }
.bg-img {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(7px) saturate(1.2) brightness(.6);
  opacity: 0; transition: opacity 2.2s ease;
  transform: scale(1.08);
}
.bg-img.on { opacity: .62; animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.2) translate(-2%, -1.5%); } }
body:has(.login:not([hidden])) .bg-img.on { filter: blur(3px) saturate(1.2) brightness(.55); }
#bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(139,108,246,.30), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255,138,122,.14), transparent 60%),
    linear-gradient(180deg, rgba(12,10,18,.55), rgba(12,10,18,.92) 60%);
}
.grain {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- tipografi ---------- */
h1, h2, h3, .display { font-family: var(--f-display); letter-spacing: -.025em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3.6vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lila); }
.grad { background: linear-gradient(100deg, var(--lila) 10%, #ffd1f0 60%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- GİRİŞ ---------- */
.login {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 24px 16px;
  position: relative; overflow: hidden;
}
.polaroids { position: absolute; inset: 0; pointer-events: none; }
.polaroid {
  position: absolute; width: clamp(110px, 17vw, 190px);
  background: #f4f0ea; padding: 8px 8px 26px; border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  opacity: 0; animation: drop .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; border-radius: 2px; filter: saturate(1.05); }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(var(--r)) scale(1.06); } to { opacity: .92; transform: rotate(var(--r)); } }
.login-card {
  position: relative; z-index: 2;
  width: min(420px, 100%);
  background: rgba(20, 17, 30, 0.82);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 32px 28px 26px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
  display: grid; gap: 14px;
}
.login-badge {
  justify-self: start; font-weight: 700; font-size: .78rem; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px; background: var(--lila-soft); color: var(--lila);
  border: 1px solid rgba(185,165,255,.25);
}
.login-card h1 { font-size: 2.5rem; }
.wordmark { font-size: clamp(2.8rem, 12vw, 3.6rem) !important; line-height: .95 !important; letter-spacing: -.045em; text-transform: uppercase; }
.wm-fire { display: inline-block; font-size: .6em; margin-left: 6px; vertical-align: .25em; animation: fire 1.6s ease-in-out infinite; }
@keyframes fire { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.15); } }
.login-card label { display: grid; gap: 6px; }
.login-card label span { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.login-card input {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  outline: none; transition: border-color .2s, background .2s; font-size: 16px;
}
.login-card input:focus { border-color: var(--lila); background: rgba(185,165,255,.07); }
.login-err { color: var(--coral); font-size: .88rem; font-weight: 600; }
.login-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.login-hint { text-align: center; font-size: .82rem; color: var(--muted); }
.btn-primary {
  padding: 15px 18px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--lila), var(--lila-2)); color: #140f22;
  box-shadow: 0 10px 30px rgba(139,108,246,.4); transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(139,108,246,.5); }
.btn-primary:active { transform: translateY(1px); }

/* ---------- üst bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 12px max(20px, calc((100vw - 1160px) / 2));
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(12,10,18,.62);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lila), var(--lila-2)); color: #140f22; font-size: 1.05rem;
  transition: transform .2s;
}
.brand-mark:hover { transform: rotate(-10deg) scale(1.08); }
.brand-mark.boing { animation: boing .6s cubic-bezier(.3,1.8,.5,1); }
@keyframes boing { 30% { transform: scale(1.35, .7); } 55% { transform: scale(.85, 1.2) rotate(8deg); } 100% { transform: none; } }
.brand-txt { display: grid; line-height: 1.05; }
.brand-txt small { font-family: var(--f-body); font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.nav-top { display: flex; gap: 2px; margin-left: auto; }
.nav-top a {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .93rem;
  transition: color .15s, background .15s;
}
.nav-top a svg { width: 17px; height: 17px; }
.nav-top a:hover { color: var(--text); background: var(--surface-2); }
.nav-top a.active { color: var(--text); background: var(--lila-soft); }
.nav-top a.active svg { color: var(--lila); }
.me { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .8rem; background: var(--surface-solid); border: 1px solid var(--line-2); color: var(--lila);
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  transition: color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.on { color: var(--lila); }

/* ---------- alt navigasyon (mobil) ---------- */
.nav-bottom { display: none; }

/* ---------- ana alan ---------- */
main {
  max-width: 1160px; margin: 0 auto;
  padding: 34px 20px 40px;
}
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 10px 20px 150px; }
.foot b { font-family: var(--f-display); color: var(--text-2); letter-spacing: .02em; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { margin-bottom: 26px; display: grid; gap: 8px; }
.page-head p { max-width: 640px; }
.section { margin-top: 38px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { color: var(--lila); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.grid { display: grid; gap: 14px; }
.g-hero { grid-template-columns: 1.35fr 1fr; }
.g-courses { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.empty {
  padding: 28px 20px; text-align: center; color: var(--muted);
  border: 1.5px dashed var(--line-2); border-radius: var(--r-md);
  background: rgba(255,255,255,.015);
}
.empty .e-ico { font-size: 1.6rem; margin-bottom: 6px; }
.empty b { display: block; color: var(--text-2); font-weight: 700; margin-bottom: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap;
}
.chip.ok { color: var(--mint); background: rgba(95,224,176,.1); border-color: rgba(95,224,176,.2); }
.chip.no { color: var(--muted); }
.chip.warn { color: var(--amber); background: rgba(255,200,97,.1); border-color: rgba(255,200,97,.22); }
.chip.lila { color: var(--lila); background: var(--lila-soft); border-color: rgba(185,165,255,.22); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------- ana sayfa ---------- */
.hello { padding: 8px 0 4px; }
.hello .eyebrow { margin-bottom: 10px; }
.hello h1 .wave { display: inline-block; animation: wave 2.4s ease-in-out 1; transform-origin: 70% 70%; }
@keyframes wave { 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(0); } }
.hello p { margin-top: 10px; color: var(--text-2); font-size: 1.02rem; }

.today-banner {
  margin-top: 26px; padding: 18px 20px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(255,138,122,.18), rgba(185,165,255,.14));
  border: 1px solid rgba(255,138,122,.3);
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.today-banner .tb-ico { font-size: 1.6rem; }
.today-banner b { font-family: var(--f-display); font-size: 1.1rem; }
.today-banner .tb-list { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.next-card { position: relative; overflow: hidden; }
.next-card::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, var(--c, var(--lila)) 0%, transparent 70%); opacity: .25;
}
.next-card h2 { margin: 10px 0 6px; font-size: clamp(1.5rem, 4.4vw, 2rem); }
.next-meta { color: var(--text-2); display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .93rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 18px; }
.cd-box { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; }
.cd-num { font-family: var(--f-display); font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem;
  background: var(--surface-2); border: 1px solid var(--line-2); text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: rgba(255,255,255,.08); }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn.solid { background: var(--text); color: var(--ink); border-color: transparent; }
.btn.solid:hover { background: #fff; }
.btn.ready { background: rgba(95,224,176,.14); border-color: rgba(95,224,176,.35); color: var(--mint); }

/* sınav haftası şeridi */
.week-track { display: flex; gap: 6px; margin: 16px 0 10px; }
.week-track i { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); position: relative; }
.week-track i.done { background: var(--lila-2); }
.week-track i.ready::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--mint); }
.week-track i.today { background: var(--coral); }
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--text-2); }
.stat-row b { font-family: var(--f-display); font-size: 1.4rem; color: var(--text); margin-right: 4px; }

/* pomodoro */
.pomo { display: flex; align-items: center; gap: 20px; }
.pomo-ring { position: relative; width: 116px; height: 116px; flex: none; }
.pomo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo-ring circle { fill: none; stroke-width: 8; }
.pomo-ring .bg { stroke: rgba(255,255,255,.08); }
.pomo-ring .fg { stroke: var(--lila); stroke-linecap: round; transition: stroke-dashoffset .5s linear, stroke .3s; }
.pomo.mola .pomo-ring .fg { stroke: var(--mint); }
.pomo-time { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.pomo-side { display: grid; gap: 10px; }
.seg { display: inline-flex; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: .82rem; color: var(--muted); }
.seg button.on { background: var(--surface-solid); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }

.today-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.today-item:last-child { border-bottom: 0; padding-bottom: 0; }
.today-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .86rem; min-width: 98px; }
.today-name { font-weight: 600; }

.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip img { height: 170px; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; cursor: zoom-in; flex: none; scroll-snap-align: start; transition: transform .2s; }
.strip img:hover { transform: translateY(-3px); }

/* ---------- ders kartları ---------- */
.course {
  position: relative; display: grid; gap: 10px; text-decoration: none;
  padding: 18px 18px 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .18s, border-color .18s, background .18s; overflow: hidden;
}
.course::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.course:hover { transform: translateY(-3px); border-color: var(--line-2); background: rgba(32,27,46,.8); }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-code { font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--c); }
.course h3 { font-size: 1.08rem; }
.course .t { font-size: .85rem; color: var(--muted); }
.course-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.course-exam { font-size: .82rem; color: var(--text-2); display: flex; align-items: center; gap: 6px; }

/* ---------- ders detay ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.course-hero { display: grid; gap: 10px; padding-bottom: 6px; }
.course-hero .course-code { font-size: .8rem; }
.course-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.tabs {
  position: sticky; top: 63px; z-index: 5;
  display: flex; gap: 4px; margin: 22px 0 22px; padding: 5px; width: fit-content; max-width: 100%;
  background: rgba(20,17,30,.85); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: none;
}
.tabs a { padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tabs a .n { font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.08); }
.tabs a.active { background: var(--text); color: var(--ink); }
.tabs a.active .n { background: rgba(0,0,0,.12); }

/* özet (okuma görünümü) */
.reader { max-width: 780px; }
.reader > * + * { margin-top: 14px; }
.reader .r-unite {
  margin-top: 40px; padding: 20px 22px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--lila-soft), rgba(255,255,255,.02)); border: 1px solid rgba(185,165,255,.2);
}
.reader .r-unite:first-child { margin-top: 0; }
.reader .r-unite h2 { font-size: clamp(1.25rem, 3.6vw, 1.55rem); }
.reader .r-unite p { color: var(--text-2); font-size: .86rem; margin-top: 6px; }
.reader h3 { margin-top: 30px; display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.reader h3::before { content: ""; width: 14px; height: 3px; border-radius: 3px; background: var(--c, var(--lila)); flex: none; }
.reader p { color: var(--text-2); line-height: 1.7; }
.reader p.small { font-size: .82rem; color: var(--muted); margin-top: 30px; }
.reader ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.reader li { position: relative; padding-left: 20px; color: var(--text-2); line-height: 1.65; }
.reader li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--lila)); }
.reader strong { color: var(--text); font-weight: 700; }
.callout {
  padding: 14px 16px; border-radius: 14px; background: rgba(185,165,255,.08); border-left: 3px solid var(--lila);
  color: var(--text-2); line-height: 1.65;
}
.callout b { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lila); margin-bottom: 4px; }
.callout.warn { background: rgba(255,200,97,.08); border-left-color: var(--amber); }
.callout.warn b { color: var(--amber); }

.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: rgba(0,0,0,.18); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); line-height: 1.55; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--text); font-weight: 700; width: 30%; }

.qa { display: grid; gap: 8px; }
.qa details { border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.15); }
.qa summary { list-style: none; cursor: pointer; padding: 13px 44px 13px 16px; font-weight: 600; position: relative; line-height: 1.5; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--lila); transition: transform .2s; }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa details > div { padding: 0 16px 14px; color: var(--text-2); line-height: 1.65; }
.qa-title { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* senaryo */
.sc-intro { color: var(--text-2); margin-bottom: 16px; max-width: 720px; }
.sc-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.sc-pick button { padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: .88rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); position: relative; }
.sc-pick button.on { background: var(--c, var(--lila)); color: #140f22; border-color: transparent; }
.sc-pick button .star { position: absolute; top: -6px; right: -6px; font-size: .7rem; background: var(--amber); color: #140f22; border-radius: 99px; padding: 1px 5px; font-weight: 800; }
.sc-total { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.sc-total b { font-family: var(--f-display); font-size: 2rem; }
.sc-list { display: grid; gap: 10px; }
.sc-unite { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 2px; }
.sc-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 15px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sc-item .k { font-size: .74rem; font-weight: 800; color: var(--c, var(--lila)); letter-spacing: .04em; }
.sc-item .kn { font-weight: 700; margin: 2px 0 4px; line-height: 1.35; }
.sc-item .m { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.sc-count { min-width: 64px; text-align: center; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.sc-count b { display: block; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.sc-count span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sc-item.has .sc-count { background: var(--c, var(--lila)); color: #140f22; }
.sc-item.has .sc-count span { color: rgba(20,15,34,.7); }
.sc-item.none { opacity: .45; }
.sc-matrix { margin-top: 22px; }
.sc-matrix summary { cursor: pointer; font-weight: 700; color: var(--lila); padding: 6px 0; }
.sc-matrix .tbl td, .sc-matrix .tbl th { text-align: center; }
.sc-matrix .tbl td:first-child, .sc-matrix .tbl th:first-child { text-align: left; width: auto; }
.sc-matrix .tbl td.hl, .sc-matrix .tbl th.hl { background: rgba(255,200,97,.08); color: var(--amber); }
.sc-matrix .scroll { overflow-x: auto; }

/* sorular */
.q-note { margin-bottom: 16px; }
.q-list { display: grid; gap: 14px; }
.q { padding: 20px; }
.q-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.q-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; background: var(--c, var(--lila)); color: #140f22; }
.q-title { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.q-top .chip { margin-left: auto; }
.q-ctx { padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); color: var(--text-2); white-space: pre-line; line-height: 1.65; margin-bottom: 12px; font-size: .94rem; }
.q-kaz { font-size: .8rem; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.q-kaz b { color: var(--text-2); }
.q-text { font-weight: 600; line-height: 1.6; font-size: 1.01rem; }
.q-foot { margin-top: 14px; }
.q-ans { margin-top: 12px; padding: 14px 16px; border-radius: 14px; white-space: pre-line; line-height: 1.7; background: rgba(95,224,176,.08); border: 1px solid rgba(95,224,176,.22); color: var(--text); }
.q-ans.tip { background: rgba(185,165,255,.08); border-color: rgba(185,165,255,.25); }
.q-ans b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 4px; }
.q-ans.tip b { color: var(--lila); }
.q-none { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- ders programı ---------- */
.day-pick { display: none; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.day { padding: 16px 14px; }
.day-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.day-h h3 { font-size: .95rem; }
.day.today { border-color: rgba(185,165,255,.45); box-shadow: 0 0 0 1px rgba(185,165,255,.25), 0 20px 40px rgba(139,108,246,.12); }
.slot {
  display: block; text-decoration: none; padding: 11px 12px; border-radius: 13px; margin-bottom: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: background .15s, transform .15s;
}
.slot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.slot:hover { background: rgba(255,255,255,.08); transform: translateX(2px); }
.slot .t { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot .n { font-weight: 700; font-size: .9rem; line-height: 1.3; margin: 2px 0; }
.slot .y { font-size: .74rem; color: var(--muted); }
.slot.now { background: var(--lila-soft); border-color: rgba(185,165,255,.4); }
.slot.now .t::after { content: " · şimdi"; color: var(--lila); font-weight: 700; }

/* ---------- sınavlar ---------- */
.progress-card { display: grid; gap: 4px; margin-bottom: 26px; }
.ex-day { margin-bottom: 22px; }
.ex-day-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ex-day-h h3 { font-size: 1.02rem; }
.ex-day.past { opacity: .5; }
.ex-day.today .ex-day-h h3 { color: var(--coral); }
.exam {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 18px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.exam-time { text-align: center; min-width: 64px; padding: 8px 6px; border-radius: 12px; background: rgba(0,0,0,.25); }
.exam-time b { display: block; font-family: var(--f-display); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.exam-time span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.exam-name { font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.exam-name:hover { color: var(--lila); }
.exam-sub { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.check {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: transparent; transition: all .2s;
}
.check svg { width: 20px; height: 20px; }
.check:hover { border-color: var(--mint); }
.check.on { background: var(--mint); border-color: var(--mint); color: #0c2a1f; transform: scale(1.04); }
.rules { margin-top: 30px; }
.rules ol { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; }

/* ---------- galeri ---------- */
.upload { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.upload input[type=password] { flex: 1 1 160px; max-width: 240px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; outline: none; }
.upload input[type=password]:focus { border-color: var(--lila); }
.upload .btn { cursor: pointer; }
.upload .btn.busy { pointer-events: none; opacity: .7; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; cursor: zoom-in; background: var(--surface-2); transition: transform .25s, filter .25s; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .gallery img { border-radius: 8px; }
}
.gallery img:hover { transform: scale(1.015); filter: brightness(1.08); }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6,5,10,.94); display: grid; place-items: center; backdrop-filter: blur(6px); overflow-y: auto; padding: 16px; }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 12px; width: min(560px, 100%); }
.lightbox img { max-width: 100%; max-height: 62vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-panel { width: 100%; background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 18px; padding: 12px 14px; display: grid; gap: 10px; cursor: default; font-size: .92rem; }
.lb-kim { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.lb-kim b { color: var(--text); }
.lb-sira { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.lb-tepki { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-tepki button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1.05rem; transition: transform .12s, background .15s; }
.lb-tepki button b { font-size: .8rem; color: var(--text-2); }
.lb-tepki button.on { background: var(--lila-soft); border-color: rgba(185,165,255,.45); }
.lb-tepki button:active { transform: scale(.9); }
.lb-yorumlar { display: grid; gap: 7px; max-height: 150px; overflow-y: auto; }
.lb-yorum { line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.lb-yorum b { color: var(--text); margin-right: 4px; }
.lb-zaman { color: var(--muted); font-size: .76rem; margin-left: 6px; white-space: nowrap; }
.lb-zaman button { color: var(--coral); font-size: .76rem; padding: 0; }
.lb-bos, .lb-yukleniyor { font-size: .86rem; }
.lb-form { display: flex; gap: 8px; }
.lb-form input { flex: 1; min-width: 0; padding: 9px 13px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; outline: none; }
.lb-form input:focus { border-color: var(--lila); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 2rem; line-height: 1; color: #fff; }
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

/* ---------- videolar ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.vid-kart { display: grid; gap: 10px; text-decoration: none; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .18s, border-color .18s; }
.vid-kart:hover { transform: translateY(-3px); border-color: var(--line-2); }
.vid-kapak { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(185,165,255,.35), rgba(255,138,122,.25)) center / cover no-repeat; }
.vid-play { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }
.vid-play svg { width: 24px; height: 24px; margin-left: 3px; }
.vid-ilerleme { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--coral); }
.vid-bilgi { display: grid; gap: 2px; padding: 0 4px 2px; }
.vid-bilgi b { line-height: 1.3; }
.vid-bilgi span { font-size: .84rem; }
/* ---------- oyunlar ---------- */
.oyun-kart { align-content: start; }
.oyun-kart:hover { transform: none; }
.oyun-harf { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 3.4rem; color: rgba(255,255,255,.85); text-shadow: 0 6px 24px rgba(0,0,0,.35); }
.oyun-acik { margin: 0; padding: 0 4px; font-size: .9rem; line-height: 1.45; white-space: pre-line; }
.oyun-indir { justify-content: center; text-decoration: none; margin-top: 2px; }
.vid-izle { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.vid-izle .btn { justify-self: start; }
.vid-izle video { width: 100%; max-height: 78vh; background: #000; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.vid-not { font-size: .86rem; }

/* ---------- aktifler ---------- */
.online { position: relative; display: flex; align-items: center; text-decoration: none; padding-right: 4px; }
.online span { flex: none; width: 30px; height: 30px; margin-left: -7px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
  background: #2a2340; box-shadow: 0 0 0 2px var(--ink); color: var(--text); }
.online span:first-child { margin-left: 0; }
.online i { position: absolute; right: 2px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--ink); }
.online[hidden] { display: none; }
[data-nav].rozet { position: relative; }
[data-nav].rozet::after { content: ""; position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px rgba(14,11,22,.9); }
.nav-top [data-nav].rozet::after { top: 4px; right: 6px; }

/* ---------- sohbet ---------- */
.kimler { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -10px 0 16px; padding-bottom: 2px; }
.kisi { flex: none; display: grid; gap: 1px; padding: 7px 12px 7px 22px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.kisi::before { content: ""; position: absolute; left: 9px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; }
.kisi.on::before { background: var(--mint); opacity: 1; box-shadow: 0 0 8px var(--mint); }
.kisi b { font-size: .86rem; }
.kisi small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 370px); min-height: 340px; margin-bottom: 90px; border-radius: var(--r-lg, 22px); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.chat-list::-webkit-scrollbar { width: 6px; }
.chat-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 99px; }
.chat-bos { margin: auto; text-align: center; }
.chat-gun { align-self: center; margin: 10px 0 6px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.05); }
.msg { max-width: 78%; align-self: flex-start; padding: 7px 12px 6px; border-radius: 16px 16px 16px 5px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 6px; }
.msg.grup { margin-top: 0; border-top-left-radius: 5px; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(185,165,255,.28), rgba(139,108,246,.28)); border-color: rgba(185,165,255,.3); border-radius: 16px 16px 5px 16px; }
.msg.mine.grup { border-top-right-radius: 5px; }
.msg b { display: block; font-size: .76rem; color: var(--lila); margin-bottom: 1px; }
.msg p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.msg-t { display: block; text-align: right; font-size: .66rem; color: var(--muted); margin-top: 2px; }
.msg-t button { color: var(--coral); font-size: .66rem; padding: 0; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; outline: none; max-height: 120px; }
.chat-form textarea:focus { border-color: var(--lila); }
.chat-form .btn { padding: 10px 14px; }
.chat-ek { flex: none; width: 42px; display: grid; place-items: center; border-radius: 14px; cursor: pointer; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); transition: color .15s, background .15s; }
.chat-ek:hover { color: var(--text); background: rgba(255,255,255,.09); }
.chat-ek svg { width: 20px; height: 20px; }
.chat-ek.busy { pointer-events: none; opacity: .5; animation: nabiz 1s ease-in-out infinite; }
@keyframes nabiz { 50% { opacity: .25; } }
.msg-foto { display: block; max-width: min(260px, 100%); max-height: 320px; border-radius: 12px; margin: 2px 0 4px; cursor: zoom-in; background: rgba(255,255,255,.05); }
.lightbox.tek .lb-btn, .lightbox.tek .lb-panel { display: none; }
.lightbox.tek img { max-height: 88vh; }
@media (max-width: 760px) {
  .chat { height: calc(100dvh - var(--nav-h, 64px) - 300px); min-height: 300px; margin-bottom: 0; }
  .msg { max-width: 86%; }
  .online span { width: 28px; height: 28px; margin-left: -6px; font-size: .58rem; }
}

/* ---------- müzik çalar ---------- */
.player {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + var(--safe-b));
  width: min(1000px, calc(100% - 24px));
  background: rgba(22,18,33,.88);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.pl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.3fr) 100px; gap: 14px; align-items: center; padding: 10px 16px 10px 10px; }
.pl-art {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: conic-gradient(from 210deg, var(--lila-2), var(--coral), var(--lila), var(--lila-2));
}
.pl-eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.pl-eq i { width: 3px; height: 4px; border-radius: 2px; background: #140f22; }
.player.playing .pl-eq i { animation: eq .9s ease-in-out infinite; }
.player.playing .pl-eq i:nth-child(2) { animation-delay: -.3s; }
.player.playing .pl-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.pl-text { min-width: 0; cursor: default; }
.pl-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ctrl { display: flex; align-items: center; gap: 2px; }
.pl-play {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin: 0 4px;
  background: var(--text); color: var(--ink); transition: transform .12s;
}
.pl-play:active { transform: scale(.94); }
.pl-play svg { width: 20px; height: 20px; }
.pl-seek-wrap { display: flex; align-items: center; gap: 10px; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-seek-wrap input { flex: 1; min-width: 0; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(185,165,255,.25); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--text); }
.pl-more {
  display: none; position: absolute; right: 0; bottom: calc(100% + 10px); width: 340px; max-height: 50vh; overflow: auto;
  background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 18px; padding: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.player.list-open .pl-more { display: block; }
.pl-more-ctrl { display: none; }
.pl-queue button {
  display: flex; width: 100%; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border-radius: 12px; color: var(--text-2);
}
.pl-queue button:hover { background: var(--surface-2); color: var(--text); }
.pl-queue button.cur { color: var(--lila); background: var(--lila-soft); }
.pl-queue .qi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: .8rem; flex: none; }
.pl-queue .qt { min-width: 0; }
.pl-queue .qt b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-queue .qt span { font-size: .78rem; color: var(--muted); }
.pl-progress-mini { display: none; }
.yt-holder { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; left: 0; bottom: 0; }

.toast { pointer-events: none; /* altındaki yazma kutusuna tıklamayı engellemesin */
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(110px + var(--safe-b)); z-index: 90;
  padding: 11px 18px; border-radius: 14px; background: var(--text); color: var(--ink); font-weight: 700; font-size: .9rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: toast .3s ease;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- kenardan fırlayan fotoğraflar ---------- */
.peek {
  position: fixed; z-index: 60; width: 118px; cursor: pointer;
  animation: peek var(--sure, 5.5s) cubic-bezier(.3,1.4,.5,1) forwards;
  -webkit-tap-highlight-color: transparent;
}
.peek img {
  width: 100%; display: block; border-radius: 18px; border: 4px solid #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.55); transform: rotate(var(--rot, 0deg));
  animation: wob .5s ease-in-out .55s 3 alternate;
}
@keyframes peek {
  0% { transform: var(--out); }
  12%, 82% { transform: var(--in); }
  100% { transform: var(--out); }
}
@keyframes wob { to { transform: rotate(calc(var(--rot, 0deg) * -.4)) scale(1.04); } }
.peek .bubble {
  position: absolute; white-space: nowrap; padding: 8px 12px; border-radius: 14px;
  background: #fff; color: #140f22; font-weight: 800; font-size: .85rem; box-shadow: 0 10px 24px rgba(0,0,0,.35);
  opacity: 0; animation: pop .3s ease .6s forwards;
}
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.e-sol .bubble { left: 100%; top: 18%; margin-left: 4px; }
.e-sag .bubble { right: 100%; top: 18%; margin-right: 4px; }
.e-alt .bubble { bottom: 100%; left: 50%; translate: -50% 0; margin-bottom: 8px; }
.e-ust .bubble { top: 100%; left: 50%; translate: -50% 0; margin-top: 8px; }
.peek.kac { animation: kac .75s cubic-bezier(.5,-.4,.7,1) forwards; }
@keyframes kac { 0% { transform: var(--in); } 100% { transform: var(--in) translate(var(--fx), var(--fy)) rotate(900deg) scale(.1); opacity: 0; } }

/* konfeti */
.konfeti { position: fixed; z-index: 95; pointer-events: none; width: 9px; height: 13px; border-radius: 2px; top: 0; left: 0; }
.konfeti.emo { width: auto; height: auto; font-size: 22px; background: none !important; }

/* itfaiye */
.truck {
  position: fixed; z-index: 55; left: 0; bottom: calc(110px + var(--safe-b)); font-size: 46px; pointer-events: none;
  animation: truck 4.6s linear forwards; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5));
}
.truck span { display: inline-block; transform: scaleX(-1); }
.truck i { font-style: normal; font-size: .55em; opacity: .85; margin-left: -6px; }
@keyframes truck { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw + 40px)); } }

/* =========================================================
   CİLA · animasyonlar ve etkileşim
   ========================================================= */

/* sayfa geçişi (View Transitions) */
.top { view-transition-name: ust; }
.player { view-transition-name: oynatici; }
.nav-bottom { view-transition-name: altnav; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* sırayla süzülerek gelme */
.rv { opacity: 0; transform: translateY(16px) scale(.985); }
.rv.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .65s cubic-bezier(.2,.75,.2,1); transition-delay: var(--d, 0ms); }

/* fareyi takip eden ışık */
@media (hover: hover) and (pointer: fine) {
  .card:not(.next-card):hover, .course:hover, .exam:hover, .sc-item:hover {
    background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(185,165,255,.11), transparent 45%);
  }
  .course { transform-style: preserve-3d; will-change: transform; }
}

/* basma hissi */
.btn:active, .course:active, .slot:active, .check:active, .sc-pick button:active, .day-pick button:active, .tabs a:active, .chip.lila:active, .nav-bottom a:active { transform: scale(.96); }
.nav-bottom a.active svg { animation: navpop .4s cubic-bezier(.3,1.8,.5,1); }
@keyframes navpop { 40% { transform: translateY(-4px) scale(1.18); } }

/* ismin üstünde akan parıltı */
.hello h1 .grad { background-size: 220% 100%; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* sıradaki sınav kartının dönen kenarı */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.next-card {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(24,20,36,.92), rgba(24,20,36,.92)) padding-box,
    conic-gradient(from var(--ang), transparent 0 55%, var(--c, var(--lila)) 70%, #ffd1f0 78%, transparent 90%) border-box;
  animation: ang 7s linear infinite;
}
@keyframes ang { to { --ang: 360deg; } }

/* geri sayım rakam dönüşü */
.cd-num { perspective: 300px; }
.cd-num.tick { animation: tick .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes tick { from { transform: rotateX(80deg) translateY(-6px); opacity: .2; } }
.cd-box:last-child .cd-num { color: var(--lila); }

/* cevap / detay açılışı */
.q-ans:not([hidden]), .qa details[open] > div, .sc-matrix[open] .tbl-wrap { animation: acil .35s cubic-bezier(.2,.7,.2,1); }
@keyframes acil { from { opacity: 0; transform: translateY(-6px); } }

/* giriş kartı ve polaroidler */
.login-card { animation: rise .8s cubic-bezier(.2,.8,.2,1) both .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.polaroid img { animation: bob 7s ease-in-out infinite alternate; }
.polaroid:nth-child(2n) img { animation-duration: 9s; animation-delay: -3s; }
@keyframes bob { to { transform: translateY(-5px) rotate(.6deg); } }
.login-card input:focus { box-shadow: 0 0 0 4px rgba(185,165,255,.14); }

/* hoş geldin ekranı */
.welcome {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(800px 500px at 50% 40%, rgba(139,108,246,.35), transparent 70%), rgba(10,8,16,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: wl-out .5s ease forwards 1.9s; cursor: pointer;
}
.welcome small { display: block; font-weight: 700; letter-spacing: .3em; font-size: .78rem; color: var(--lila); opacity: 0; animation: wl-up .5s ease forwards .1s; }
.welcome h2 { font-size: clamp(2.4rem, 10vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; margin: 12px 0 10px; }
.welcome h2 span { display: inline-block; opacity: 0; transform: translateY(40%) rotate(6deg); animation: wl-ch .55s cubic-bezier(.2,1.4,.4,1) forwards; }
.welcome p { color: var(--muted); opacity: 0; animation: wl-up .5s ease forwards .9s; }
@keyframes wl-ch { to { opacity: 1; transform: none; } }
@keyframes wl-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wl-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

/* okuma ilerlemesi + yukarı çık */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 31; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--lila-2), var(--lila), var(--coral)); pointer-events: none; }
.to-top {
  position: fixed; right: 18px; bottom: calc(110px + var(--safe-b)); z-index: 39; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: 0 12px 30px rgba(0,0,0,.4); opacity: 0; transform: translateY(12px) scale(.8); pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.3,1.5,.5,1);
}
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; transform: rotate(180deg); }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1020px) {
  .nav-top a span { display: none; }
  .nav-top a { padding: 9px 11px; }
  .week { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Mobil
   ========================================================= */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .top { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .nav-top { display: none; }
  .me { margin-left: auto; }
  main { padding: 22px 16px 30px; }
  .foot { padding-bottom: calc(var(--nav-h) + 100px + var(--safe-b)); }
  .peek { width: 88px; }
  .peek .bubble { font-size: .76rem; padding: 6px 10px; }
  .truck { bottom: calc(var(--nav-h) + 76px + var(--safe-b)); font-size: 38px; }
  .card { padding: 18px; border-radius: 20px; }
  .section { margin-top: 30px; }
  .g-hero { grid-template-columns: 1fr; }
  .g-courses { grid-template-columns: 1fr; }
  .strip { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .strip img { height: 150px; }

  .nav-bottom {
    display: grid; grid-template-columns: repeat(6, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(14,11,22,.9); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid var(--line);
  }
  .nav-bottom a {
    display: grid; justify-items: center; align-content: center; gap: 4px; text-decoration: none;
    color: var(--muted); font-size: .68rem; font-weight: 700; position: relative;
  }
  .nav-bottom a svg { width: 22px; height: 22px; }
  .nav-bottom a.active { color: var(--text); }
  .nav-bottom a.active svg { color: var(--lila); }
  .nav-bottom a.active::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--lila); }

  .player { bottom: calc(var(--nav-h) + var(--safe-b) + 8px); width: calc(100% - 16px); border-radius: 18px; overflow: hidden; }
  .pl-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 8px 8px 8px 8px; }
  .pl-art { width: 42px; height: 42px; border-radius: 12px; }
  .pl-text { cursor: pointer; }
  .hide-sm { display: none !important; }
  .pl-play { width: 40px; height: 40px; }
  .pl-vol { display: none; }
  .pl-seek-wrap { display: none; grid-column: 1 / -1; padding: 2px 6px 0; }
  .pl-progress-mini { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
  .pl-progress-mini i { display: block; height: 100%; width: 0; background: var(--lila); transition: width .5s linear; }
  .player.open .pl-seek-wrap { display: flex; }
  .player.open .pl-progress-mini { display: none; }
  .pl-more { position: static; width: auto; max-height: 0; padding: 0 8px; border: 0; border-radius: 0; box-shadow: none; background: transparent; display: block; overflow: hidden; transition: max-height .3s ease; }
  .player.open .pl-more { max-height: 46vh; overflow: auto; padding-bottom: 8px; }
  .player.list-open:not(.open) .pl-more { max-height: 0; }
  .pl-more-ctrl { display: flex; justify-content: center; gap: 16px; padding: 4px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

  .toast { bottom: calc(var(--nav-h) + 90px + var(--safe-b)); }
  .to-top { right: 12px; bottom: calc(var(--nav-h) + 84px + var(--safe-b)); width: 40px; height: 40px; }

  .day-pick { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
  .day-pick button { flex: 1; padding: 10px 0; min-width: 58px; border-radius: 13px; font-weight: 700; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
  .day-pick button.on { background: var(--text); color: var(--ink); border-color: transparent; }
  .day-pick button.is-today:not(.on) { color: var(--lila); border-color: rgba(185,165,255,.35); }
  .week { grid-template-columns: 1fr; }
  .week .day { display: none; }
  .week .day.show { display: block; }
  .day .day-h { display: none; }
  .slot { padding: 14px 16px; }
  .slot .n { font-size: 1rem; }

  .tabs { top: 57px; width: 100%; }
  .tabs a { flex: 1; justify-content: center; padding: 9px 10px; }

  .exam { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px; }
  .exam-time { min-width: 58px; }

  /* tablolar → kart */
  .tbl-wrap { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  table.tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 13px 15px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.18); }
  .tbl td { padding: 0; border: 0; width: auto !important; }
  .tbl td + td { margin-top: 6px; }
  .tbl td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
  .sc-matrix .tbl-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.18); }
  .sc-matrix table.tbl { display: table; }
  .sc-matrix .tbl thead { display: table-header-group; }
  .sc-matrix .tbl tbody { display: table-row-group; }
  .sc-matrix .tbl tr { display: table-row; padding: 0; margin: 0; border: 0; background: none; }
  .sc-matrix .tbl td, .sc-matrix .tbl th { display: table-cell; padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: .8rem; }
  .sc-matrix .tbl td + td { margin: 0; }

  .pomo-ring { width: 100px; height: 100px; }
  .pomo-time { font-size: 1.35rem; }
  .q { padding: 16px; }
  .lb-btn { display: none; }
  .polaroid { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   NEXA · Gang'in içinde sohbet (iframe yok) + profil
   ========================================================= */
body.nx-acik main { max-width: 1440px; padding-top: 20px; padding-bottom: 0; }
body.nx-acik .foot { display: none; }
.nx-head { margin-bottom: 14px; gap: 2px; }
.nx-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* avatar (genel) */
.nx-av {
  --c: var(--lila);
  flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; font-size: .74rem; letter-spacing: -.02em;
  color: var(--ink); background: var(--c);
}
.nx-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-av.mini { width: 22px; height: 22px; font-size: .55rem; }
.nx-av.kucuk { width: 28px; height: 28px; font-size: .62rem; }
.nx-av.buyuk { width: 88px; height: 88px; font-size: 1.8rem; }
.nx-nokta { width: 10px; height: 10px; border-radius: 50%; background: #5d5672; flex: none; box-shadow: 0 0 0 2.5px var(--surface-solid); }
.nx-nokta.online { background: var(--mint); }
.nx-nokta.idle { background: var(--amber); }
.nx-nokta.dnd { background: var(--coral); }

/* iskelet */
.nx {
  position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr) 236px;
  height: 640px; min-height: 380px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.nx h4 { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.nx-yan, .nx-uyeler { background: rgba(0,0,0,.16); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.nx-yan { border-right: 1px solid var(--line); }
.nx-uyeler { border-left: 1px solid var(--line); padding: 0 8px 14px; }
.nx-yan-ic { padding: 4px 8px 16px; }
.nx-oge {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; text-align: left;
  transition: background .15s, color .15s;
}
.nx-oge svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.nx-oge > span:not(.nx-av) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: grid; }
.nx-oge small { font-size: .74rem; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.nx-oge:hover { background: var(--surface-2); color: var(--text-2); }
.nx-oge.active { background: var(--lila-soft); color: var(--text); }
.nx-oge.active svg { color: var(--lila); opacity: 1; }
.nx-oge.yeni { color: var(--text); font-weight: 800; }
.nx-oge.yeni::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.nx-oge.soluk { opacity: .72; }
.nx-oge.soluk:hover, .nx-oge.soluk.active { opacity: 1; }
.nx-oge em { font-style: normal; font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(95,224,176,.16); color: var(--mint); }
.nx-ses-kanal.ici > .nx-oge { color: var(--mint); background: rgba(95,224,176,.08); }
.nx-ses-uyeler { display: grid; gap: 2px; padding: 2px 0 6px 30px; }
.nx-ses-uyeler span { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--text-2); padding: 3px 6px; border-radius: 8px; cursor: pointer; }
.nx-ses-uyeler span:hover { background: var(--surface-2); }
.nx-ses-uyeler svg { width: 14px; height: 14px; color: var(--coral); margin-left: auto; }
.nx-ses-uyeler .konusuyor .nx-av, .nx-ses-kisiler .konusuyor .nx-av { box-shadow: 0 0 0 2px var(--mint); }

/* orta: başlık + mesajlar + yazma */
.nx-orta { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.nx-ust { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); min-height: 54px; }
.nx-baslik { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.nx-baslik > svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.nx-baslik b { font-family: var(--f-display); font-size: 1.06rem; white-space: nowrap; cursor: default; }
.nx-baslik b[data-uye] { cursor: pointer; }
.nx-baslik span:not(.nx-av) { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 10px; border-left: 1px solid var(--line-2); }
.nx-mobil { display: none; }
.nx-liste { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 8px; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.nx-liste > :first-child { margin-top: auto; }
.nx-bos { margin: auto; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; padding: 30px 10px; }
.nx-baslangic, .nx-daha { text-align: center; color: var(--muted); font-size: .84rem; padding: 18px 0 8px; }
.nx-baslangic b { color: var(--text-2); }
.nx-gun { display: flex; justify-content: center; margin: 14px 0 6px; }
.nx-gun span { padding: 3px 11px; border-radius: 99px; font-size: .72rem; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.05); }

.nx-msg { position: relative; display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; max-width: 100%; }
.nx-msg.grup { margin-top: 2px; }
.nx-msg.ben { justify-content: flex-end; }
.nx-av-btn { flex: none; border-radius: 50%; align-self: flex-start; margin-top: 18px; }
.nx-av-yer { width: 36px; flex: none; }
.nx-balon-sar { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(620px, 78%); }
.nx-msg.ben .nx-balon-sar { align-items: flex-end; }
.nx-ad { font-size: .78rem; font-weight: 800; margin: 0 0 2px 4px; }
.nx-ad:hover { text-decoration: underline; }
.nx-balon {
  position: relative; max-width: 100%; padding: 7px 12px 6px; border-radius: 16px 16px 16px 5px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.nx-msg.grup .nx-balon { border-top-left-radius: 5px; }
.nx-msg.ben .nx-balon { background: linear-gradient(135deg, rgba(185,165,255,.28), rgba(139,108,246,.28)); border-color: rgba(185,165,255,.3); border-radius: 16px 16px 5px 16px; }
.nx-msg.ben.grup .nx-balon { border-top-right-radius: 5px; }
.nx-balon.sade { background: none; border: 0; padding: 0; }
.nx-balon.sade .nx-saat { position: absolute; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; }
.nx-balon p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.nx-balon a { color: var(--lila); }
.nx-balon code { font-size: .85em; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.3); }
.nx-balon pre { margin: 4px 0; padding: 8px 10px; border-radius: 9px; background: rgba(0,0,0,.35); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.nx-anma { color: var(--lila); font-weight: 700; background: var(--lila-soft); padding: 0 3px; border-radius: 5px; }
.nx-saat { display: block; text-align: right; font-size: .66rem; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.nx-gorsel { display: block; max-width: min(320px, 100%); max-height: 340px; border-radius: 12px; margin: 3px 0; cursor: zoom-in; background: rgba(255,255,255,.05); }
video.nx-gorsel { cursor: auto; }
.nx-balon audio { max-width: 100%; margin: 4px 0; }
.nx-dosya { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 3px 0; border-radius: 11px; background: rgba(0,0,0,.22); text-decoration: none; color: var(--text) !important; }
.nx-dosya svg { width: 22px; height: 22px; color: var(--lila); flex: none; }
.nx-dosya span { display: grid; min-width: 0; font-weight: 600; font-size: .86rem; overflow-wrap: anywhere; }
.nx-dosya small { color: var(--muted); font-weight: 500; font-size: .72rem; }
.nx-tepkiler { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.nx-tepki { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: .86rem; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); transition: transform .1s; }
.nx-tepki b { font-size: .72rem; color: var(--text-2); }
.nx-tepki.ben { background: var(--lila-soft); border-color: rgba(185,165,255,.5); }
.nx-tepki:active { transform: scale(.92); }
/* mesaj araçları: farenin altında ya da (telefonda) dokununca */
.nx-arac {
  position: absolute; z-index: 2; top: -16px; right: 0; display: none; gap: 1px; padding: 3px;
  border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.nx-msg:not(.ben) .nx-arac { right: auto; left: 0; }
.nx-msg.secili .nx-arac { display: flex; }
@media (hover: hover) and (pointer: fine) { .nx-msg:hover .nx-arac { display: flex; } }
.nx-arac button { min-width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: .95rem; padding: 0 4px; }
.nx-arac button:hover { background: var(--surface-2); }
.nx-arac button svg { width: 16px; height: 16px; }
.nx-arac .tehlike { color: var(--coral); }
.nx-arac .tehlike.emin { background: var(--coral); color: var(--ink); font-weight: 800; font-size: .76rem; padding: 0 9px; }

.nx-yaziyor { min-height: 20px; padding: 0 18px; font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.nx-yaziyor b { color: var(--text-2); margin-left: 4px; }
.nx-yaziyor i { width: 5px; height: 5px; border-radius: 50%; background: var(--lila); animation: nxNokta 1.2s ease-in-out infinite; }
.nx-yaziyor i:nth-child(2) { animation-delay: .15s; }
.nx-yaziyor i:nth-child(3) { animation-delay: .3s; }
@keyframes nxNokta { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.nx-duzen { display: flex; align-items: center; gap: 8px; margin: 0 10px; padding: 7px 12px; border-radius: 12px 12px 0 0; background: var(--lila-soft); color: var(--lila); font-size: .82rem; font-weight: 700; }
.nx-duzen svg { width: 15px; height: 15px; }
.nx-duzen span { flex: 1; }
.nx-duzen button { color: var(--text-2); font-size: .78rem; font-weight: 700; }
.nx-form { display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px 10px; }
.nx-form textarea {
  flex: 1; min-width: 0; resize: none; padding: 11px 14px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 16px; line-height: 1.35; outline: none; max-height: 160px;
}
.nx-form textarea:focus { border-color: var(--lila); }
.nx-ek-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; cursor: pointer; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); transition: color .15s, background .15s; }
.nx-ek-btn:hover { color: var(--text); background: rgba(255,255,255,.09); }
.nx-ek-btn svg { width: 20px; height: 20px; }
.nx-ek-btn.busy { pointer-events: none; opacity: .5; animation: nabiz 1s ease-in-out infinite; }
.nx-gonder { height: 44px; padding: 0 16px; }

/* üyeler */
.nx-uye { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 10px; text-align: left; }
.nx-uye:hover { background: var(--surface-2); }
.nx-uye.off { opacity: .45; }
.nx-uye > span:last-child { display: grid; min-width: 0; }
.nx-uye b { font-size: .9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-uye small { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-tac { font-style: normal; font-size: .8rem; }
.nx-av-sar { position: relative; flex: none; }
.nx-av-sar .nx-nokta { position: absolute; right: -1px; bottom: -1px; }
[data-uyeler-ac] { display: none; }

@media (max-width: 1100px) {
  .nx { grid-template-columns: 236px minmax(0, 1fr); }
  [data-uyeler-ac] { display: grid; }
  .nx-uyeler {
    position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; width: min(270px, 86%);
    background: var(--surface-solid); box-shadow: -20px 0 50px rgba(0,0,0,.4);
    transform: translateX(105%); transition: transform .22s ease; visibility: hidden;
  }
  .nx.uye-acik .nx-uyeler { transform: none; visibility: visible; }
}
@media (max-width: 760px) {
  body.nx-acik main { padding: 10px 0 0; }
  .nx-head { display: none; }
  .nx { grid-template-columns: minmax(0, 1fr); border-radius: 0; border-left: 0; border-right: 0; }
  .nx-mobil { display: grid; }
  .nx-ust { padding-left: 6px; }
  .nx-yan {
    position: absolute; z-index: 5; top: 0; left: 0; bottom: 0; width: min(290px, 86%);
    background: var(--surface-solid); box-shadow: 20px 0 50px rgba(0,0,0,.4);
    transform: translateX(-105%); transition: transform .22s ease; visibility: hidden;
  }
  .nx.yan-acik .nx-yan { transform: none; visibility: visible; }
  .nx-liste { padding: 10px 10px 6px; }
  .nx-balon-sar { max-width: 84%; }
  .nx-av-btn .nx-av { width: 30px; height: 30px; }
  .nx-av-yer { width: 30px; }
  .nx-baslik span:not(.nx-av) { display: none; }
}

/* sesli sohbetteyken her sayfada görünen çubuk */
.nx-ses-cubuk {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + var(--safe-b)); width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 8px;
  background: rgba(16,30,26,.92); border: 1px solid rgba(95,224,176,.35); border-radius: 18px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
body:has(#player:not([hidden])) .nx-ses-cubuk { bottom: calc(96px + var(--safe-b)); }
.nx-ses-bilgi { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 4px 6px; border-radius: 12px; }
.nx-ses-bilgi span:last-child { display: grid; min-width: 0; }
.nx-ses-bilgi b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-ses-bilgi small { font-size: .72rem; color: var(--mint); }
.nx-ses-canli { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex: none; box-shadow: 0 0 0 0 rgba(95,224,176,.6); animation: nxCanli 1.8s ease-out infinite; }
@keyframes nxCanli { to { box-shadow: 0 0 0 10px rgba(95,224,176,0); } }
.nx-ses-kisiler { display: flex; padding-right: 4px; }
.nx-ses-kisiler span { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px #10201b; cursor: pointer; }
.nx-ses-kisiler span:first-child { margin-left: 0; }
.icon-btn.kirmizi { color: var(--coral); }
.icon-btn.kirmizi-dolu { background: var(--coral); color: var(--ink); }
.icon-btn.kirmizi-dolu:hover { background: #ffa396; color: var(--ink); }
@media (max-width: 720px) {
  .nx-ses-cubuk { bottom: calc(var(--nav-h) + 10px + var(--safe-b)); }
  body:has(#player:not([hidden])) .nx-ses-cubuk { bottom: calc(var(--nav-h) + 86px + var(--safe-b)); }
  .nx-ses-kisiler { display: none; }
}

/* üye kartı */
.nx-kart-katman { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(6,4,10,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .18s ease; }
.nx-kart { position: relative; width: min(360px, 100%); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.nx-kart-banner { --c: var(--lila); height: 112px; background: linear-gradient(135deg, var(--c), var(--lila-2)); background-size: cover; background-position: center; }
.nx-kart-kapat { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.4); color: #fff; }
.nx-kart-av { position: relative; width: fit-content; margin: -46px 0 0 18px; }
.nx-kart-av .nx-av { box-shadow: 0 0 0 5px var(--surface-solid); }
.nx-kart-av .nx-nokta { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; box-shadow: 0 0 0 4px var(--surface-solid); }
.nx-kart-ic { padding: 10px 20px 20px; display: grid; gap: 8px; }
.nx-kart-ic h3 { font-size: 1.35rem; }
.nx-kart-kadi { color: var(--muted); font-size: .84rem; margin-top: -6px; }
.nx-kart-durum { font-size: .9rem; color: var(--text-2); }
.nx-kart-bio { padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); }
.nx-kart-bio h4 { margin: 0 0 4px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nx-kart-bio p { font-size: .9rem; overflow-wrap: anywhere; }
.nx-kart .btn { margin-top: 4px; }
.nx-kart .btn svg { width: 17px; height: 17px; }

/* üst çubuktaki profil resmi */
#avatar { cursor: pointer; overflow: hidden; transition: box-shadow .15s; }
#avatar:hover, #avatar.active { box-shadow: 0 0 0 2px var(--lila); }
#avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* profil sayfası */
.pf-kart { padding: 0; overflow: hidden; margin-bottom: 16px; }
.pf-banner { --c: var(--lila); position: relative; height: clamp(130px, 22vw, 220px); background: linear-gradient(135deg, var(--c), var(--lila-2) 70%, var(--coral)); background-size: cover; background-position: center; }
.pf-banner.busy, .pf-av.busy { opacity: .55; pointer-events: none; animation: nabiz 1s ease-in-out infinite; }
.pf-banner-btn { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.pf-banner-btn .btn { background: rgba(10,8,16,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.pf-banner-btn .btn svg { width: 16px; height: 16px; }
.pf-ust { display: flex; align-items: flex-end; gap: 16px; padding: 0 22px; margin-top: -44px; flex-wrap: wrap; position: relative; }
.pf-av { position: relative; border-radius: 50%; cursor: pointer; flex: none; }
.pf-av .nx-av { box-shadow: 0 0 0 5px var(--surface-solid); }
.pf-av-ust { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; opacity: 0; transition: opacity .15s; }
.pf-av-ust svg { width: 26px; height: 26px; }
.pf-av:hover .pf-av-ust, .pf-av:focus-within .pf-av-ust { opacity: 1; }
@media (hover: none) { .pf-av-ust { opacity: 1; inset: auto -2px -2px auto; width: 32px; height: 32px; background: var(--lila); color: var(--ink); } .pf-av-ust svg { width: 17px; height: 17px; } }
.pf-ad { flex: 1; min-width: 180px; padding-bottom: 6px; display: grid; }
.pf-ad small { color: var(--muted); font-size: .85rem; }
.pf-av-kaldir { margin-bottom: 8px; }
.pf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px; }
.pf-form label { display: grid; gap: 6px; }
.pf-form label span { font-size: .8rem; font-weight: 700; color: var(--text-2); }
.pf-form .tam { grid-column: 1 / -1; }
.pf-form input, .pf-form textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 16px; outline: none; resize: vertical;
}
.pf-form input:focus, .pf-form textarea:focus { border-color: var(--lila); }
.pf-alt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-sifre-kart { margin-bottom: 16px; }
.pf-sifre-kart:last-child, .tz-kart { margin-bottom: 120px; }
.pf-sifre-kart .pf-form { padding: 16px 0 0; }
.pf-sifre-kart > p { margin-top: 6px; }
@media (max-width: 640px) {
  .pf-form { grid-template-columns: 1fr; padding: 18px; }
  .pf-ust { padding: 0 18px; }
  .pf-banner-btn { left: 12px; right: 12px; bottom: 10px; justify-content: flex-end; }
}

/* kamera + ekran: sohbetin üstündeki sahne */
.nx-sahne {
  flex: none; display: grid; gap: 8px; padding: 10px; max-height: 46%;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: minmax(0, 1fr);
  background: rgba(0,0,0,.28); border-bottom: 1px solid var(--line); overflow: hidden;
}
.nx-sahne[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.nx-sahne.odakli { grid-template-columns: minmax(0, 1fr) 160px; grid-auto-rows: minmax(0, 1fr); max-height: 62%; }
.nx-sahne.odakli .nx-kutu.odak { grid-row: 1 / span 4; grid-column: 1; }
.nx-sahne.odakli .nx-kutu:not(.odak) { grid-column: 2; }
.nx-kutu {
  position: relative; min-height: 0; aspect-ratio: 16 / 9; max-height: 100%; width: 100%; justify-self: center;
  border-radius: 14px; overflow: hidden; background: #07060b; border: 1px solid var(--line-2); cursor: pointer;
}
.nx-sahne.odakli .nx-kutu.odak { aspect-ratio: auto; height: 100%; }
.nx-kutu video { width: 100%; height: 100%; object-fit: cover; display: block; background: #07060b; }
.nx-kutu.ekran video, .nx-kutu.odak video { object-fit: contain; }
.nx-kutu.ben:not(.ekran) video { transform: scaleX(-1); }
.nx-kutu-ad {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 56px);
  padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: .74rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nx-kutu-ad svg { width: 13px; height: 13px; flex: none; }
.nx-kutu.ekran .nx-kutu-ad { background: rgba(255,138,122,.85); color: var(--ink); }
.nx-kutu-tam {
  position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; opacity: 0; transition: opacity .15s;
}
.nx-kutu-tam svg { width: 16px; height: 16px; }
.nx-kutu:hover .nx-kutu-tam, .nx-kutu:focus-within .nx-kutu-tam { opacity: 1; }
@media (hover: none) { .nx-kutu-tam { opacity: 1; } }
.nx-kutu:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; }
.nx-kutu:fullscreen video { object-fit: contain; }
.nx-canli-rozet { font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 5px; background: var(--coral); color: var(--ink); margin-left: auto; }
.nx-canli-rozet + svg { margin-left: 4px !important; }
.nx-ses-uyeler svg + svg { margin-left: 4px; }
.icon-btn.acik { background: rgba(95,224,176,.18); color: var(--mint); }
.nx-ses-izle { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 10px; border-radius: 12px; background: rgba(255,138,122,.16); color: var(--coral); font-weight: 800; font-size: .8rem; }
.nx-ses-izle svg { width: 17px; height: 17px; }
@media (max-width: 760px) {
  .nx-sahne { max-height: 40%; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 6px; gap: 6px; }
  .nx-sahne.odakli { grid-template-columns: minmax(0, 1fr); }
  .nx-sahne.odakli .nx-kutu:not(.odak) { display: none; }
  .nx-ses-cubuk .icon-btn { width: 34px; height: 34px; }
  .nx-ses-bilgi small { display: none; }
}

/* temizlik (sadece kurucu) */
.tz-kart h3 { display: flex; align-items: center; gap: 10px; }
.tz-rozet { font-family: var(--f-body); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: rgba(255,138,122,.16); color: var(--coral); }
.tz-kart > p { margin: 6px 0 14px; }
.tz-form { display: grid; gap: 8px; }
.tz-satir { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); cursor: pointer; }
.tz-satir:has(input:checked) { border-color: rgba(255,138,122,.5); background: rgba(255,138,122,.07); }
.tz-satir.bos { opacity: .5; cursor: default; }
.tz-satir input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--coral); flex: none; }
.tz-satir span { display: grid; gap: 2px; min-width: 0; }
.tz-satir b em { font-style: normal; font-size: .76rem; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.08); margin-left: 4px; }
.tz-satir small { color: var(--muted); font-size: .8rem; }
.tz-detay { color: var(--text-2) !important; overflow-wrap: anywhere; }
.tz-sil.emin, .tz-sil:not(:disabled):hover { background: var(--coral); color: var(--ink); border-color: transparent; }
.tz-sil:disabled { opacity: .45; cursor: default; }
