/* ============================================================
   Orbitlon — "Observatory" design system
   Space-navy chrome · warm paper content · role-tinted accents
   ============================================================ */

:root {
  /* ink / chrome */
  --ink: #0d1030;
  --ink-soft: #161a3e;
  --ink-line: rgba(255, 255, 255, .09);
  --ink-text: #e9eaf6;
  --ink-text-2: #9aa0c8;

  /* paper */
  --bg: #f3f4fb;
  --surface: #ffffff;
  --surface-2: #fafbff;
  --border: #e8e9f3;
  --border-strong: #d9dbea;
  --text: #191d36;
  --text-2: #575d81;
  --text-3: #8b90ad;

  /* brand + semantic */
  --primary: #4b45d1;
  --primary-600: #3a35b6;
  --star: #f5b841;
  --ok: #0f9e8e;
  --ok-tint: #e2f6f2;
  --warn: #d97a06;
  --warn-tint: #fdf0dd;
  --bad: #e14b4f;
  --bad-tint: #fce7e7;
  --info: #5850ec;
  --info-tint: #ebeafd;

  /* accent (overridden per role) */
  --accent: #5850ec;
  --accent-600: #453ed6;
  --accent-tint: #ecebfd;
  --accent-ink: #322c9e;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-num: 'Fredoka', 'Plus Jakarta Sans', sans-serif; /* sayısal vurgu */
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --pill: 999px;
  --sh-sm: 0 1px 2px rgba(19, 22, 50, .06), 0 1px 3px rgba(19, 22, 50, .04);
  --sh-md: 0 6px 18px -8px rgba(19, 22, 50, .16), 0 2px 6px -2px rgba(19, 22, 50, .06);
  --sh-lg: 0 30px 60px -24px rgba(9, 11, 34, .45);
  --sidebar-w: 264px;
}

/* Renk kanunu (tasarım): birincil eylem HER ZAMAN indigo — tüm roller aynı accent.
   yeşil=tamam · kırmızı=eksik · amber=bekleyen · turuncu=seri · camgöbeği=koçluk */
:root, [data-role] {
  --accent: #4f46e5; --accent-600: #4338ca; --accent-tint: #eef2ff; --accent-ink: #4338ca;
  --ink: #1e1b4b; /* koyu panel — tasarım #1e1b4b */
  --streak: #ea580c; --streak-soft: #fff7ed;
  --coach: #0891b2; --coach-soft: #cffafe;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; margin: 0; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* ---- scrollbars ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd0e2; border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #b6bad2; background-clip: padding-box; border: 3px solid transparent; }

/* ============================================================ boot splash */
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--ink); color: var(--ink-text); }
.boot p { font-family: var(--font-display); letter-spacing: .32em; text-transform: uppercase; font-size: 13px; color: var(--ink-text-2); margin: 0; }
.boot-orbit { position: relative; width: 64px; height: 64px; }
.boot-core { position: absolute; inset: 22px; border-radius: 50%; background: linear-gradient(135deg, #7c74ff, #4b45d1); box-shadow: 0 0 26px rgba(124, 116, 255, .6); }
.boot-orbit::before { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.boot-sat { position: absolute; top: -3px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--star); box-shadow: 0 0 12px var(--star); transform-origin: 4px 35px; animation: spin 1.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ cosmic background (login + sidebar) */
.starfield {
  background-color: var(--ink);
  background-image:
    radial-gradient(1.4px 1.4px at 18% 32%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.2px 1.2px at 74% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.6px 1.6px at 44% 72%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.2px 1.2px at 12% 82%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 62% 44%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.3px 1.3px at 30% 12%, rgba(255,255,255,.6), transparent),
    radial-gradient(900px 500px at 78% -10%, rgba(88, 80, 236, .28), transparent),
    radial-gradient(700px 500px at -8% 108%, rgba(124, 58, 237, .22), transparent);
}

/* ============================================================ LOGIN */
.auth { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; overflow: auto; }
.auth-rings { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.auth-rings i { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; transform: translate(-50%, -50%); }
.auth-rings i:nth-child(1) { width: 420px; height: 420px; }
.auth-rings i:nth-child(2) { width: 720px; height: 720px; border-color: rgba(255,255,255,.06); }
.auth-rings i:nth-child(3) { width: 1080px; height: 1080px; border-color: rgba(255,255,255,.04); }
.auth-rings i::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--star); box-shadow: 0 0 14px var(--star); }
.auth-rings i:nth-child(1)::after { animation: orbit 14s linear infinite; }
.auth-rings i:nth-child(2)::after { background: #7c74ff; box-shadow: 0 0 14px #7c74ff; animation: orbit 26s linear infinite reverse; }
.auth-rings i:nth-child(3)::after { background: #57d0c4; box-shadow: 0 0 14px #57d0c4; animation: orbit 40s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

.auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 412px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-xl);
  padding: 38px 34px 30px;
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--sh-lg);
  color: var(--ink-text);
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand .logo { width: 46px; height: 46px; }
.auth-brand b { font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; color: #fff; }
.auth-brand span { display: block; font-size: 12px; color: var(--ink-text-2); letter-spacing: .04em; margin-top: 1px; }
.auth h1 { color: #fff; font-size: 21px; margin-bottom: 4px; }
.auth .sub { color: var(--ink-text-2); font-size: 13.5px; margin-bottom: 22px; }
.auth label { display: block; font-size: 12.5px; color: var(--ink-text-2); margin: 0 0 6px 2px; font-weight: 500; }
.auth .field { margin-bottom: 15px; }
.auth input {
  width: 100%; padding: 12px 14px; border-radius: var(--r);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: 14.5px; outline: none; transition: border-color .15s, background .15s;
}
.auth input::placeholder { color: rgba(255,255,255,.35); }
.auth input:focus { border-color: #8b84ff; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(124, 116, 255, .18); }
.auth .btn-primary { width: 100%; margin-top: 6px; padding: 13px; font-size: 15px; }
.auth .err { background: rgba(225, 75, 79, .16); border: 1px solid rgba(225, 75, 79, .4); color: #ffd7d7; padding: 9px 12px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 14px; }
.demo-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.demo-note p { font-size: 11.5px; color: var(--ink-text-2); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
.demo-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-chip { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--ink-text); font-size: 12.5px; cursor: pointer; transition: .15s; text-align: left; }
.demo-chip:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.demo-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ssl-badge { display: flex; justify-content: center; margin-top: 20px; opacity: .8; transition: opacity .15s; }
.ssl-badge:hover { opacity: 1; }
.ssl-badge img { border-radius: 4px; height: 20px; }

/* orbit logo mark (reused) */
.logo { position: relative; display: inline-block; }
.logo svg { display: block; width: 100%; height: 100%; }

/* ============================================================ APP SHELL */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* sidebar */
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; color: var(--ink-text); overflow: hidden; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; }
.sidebar-brand .logo { width: 38px; height: 38px; }
.sidebar-brand b { font-family: var(--font-display); font-size: 18px; color: #fff; letter-spacing: -.01em; }
.sidebar-brand small { display: block; font-size: 10.5px; color: var(--ink-text-2); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.role-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 20px 14px; padding: 6px 11px; border-radius: var(--pill); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--accent) 26%, transparent); color: #fff; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); align-self: flex-start; }
.role-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nav { flex: 1; padding: 4px 12px; overflow-y: auto; }
.nav-group { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-text-2); padding: 16px 12px 7px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-text-2); font-size: 14px; font-weight: 500; margin-bottom: 2px; transition: .14s; position: relative; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: color-mix(in srgb, var(--accent) 20%, transparent); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; border-radius: 0 4px 4px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 600; background: color-mix(in srgb, var(--accent) 40%, transparent); color: #fff; padding: 1px 7px; border-radius: 99px; }
.sidebar-user { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-top: 1px solid var(--ink-line); margin: 6px 8px 8px; }
.sidebar-user .meta { min-width: 0; flex: 1; }
.sidebar-user .meta b { display: block; font-family: var(--font-body); font-size: 13.5px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .meta span { font-size: 11.5px; color: var(--ink-text-2); }
.icon-btn { background: rgba(255,255,255,.06); border: 1px solid var(--ink-line); color: var(--ink-text-2); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; transition: .14s; flex: none; }
.icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn svg { width: 17px; height: 17px; }

/* main */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 15px 30px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .page-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.topbar .page-title small { display: block; font-family: var(--font-body); font-size: 12.5px; color: var(--text-2); font-weight: 400; letter-spacing: 0; margin-top: 1px; }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; }
.content { padding: 26px 30px 60px; max-width: 1240px; width: 100%; margin: 0 auto; animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================ components */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15.5px; }
.card-head .spacer { flex: 1; }
.card-head .link { font-size: 13px; font-weight: 500; color: var(--accent); cursor: pointer; }

.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }

/* stat tile */
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-sm); }
.stat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-ink); margin-bottom: 14px; }
.stat .ico svg { width: 21px; height: 21px; }
.stat .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat .lbl { color: var(--text-2); font-size: 13px; margin-top: 6px; }
.stat .trend { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 600; font-family: var(--font-mono); }
.stat.tint-ok .ico { background: var(--ok-tint); color: var(--ok); }
.stat.tint-warn .ico { background: var(--warn-tint); color: var(--warn); }
.stat.tint-bad .ico { background: var(--bad-tint); color: var(--bad); }
.stat.tint-star .ico { background: #fdf3d9; color: #b9820c; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 600; line-height: 1.6; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-bad { background: var(--bad-tint); color: var(--bad); }
.badge-info { background: var(--info-tint); color: var(--info); }
.badge-neutral { background: #eef0f6; color: var(--text-2); }
.badge-accent { background: var(--accent-tint); color: var(--accent-ink); }
.badge-role-admin { background: #ecebfd; color: #322c9e; }
.badge-role-teacher { background: #dff6f5; color: #0a5f5f; }
.badge-role-student { background: #f1e9fe; color: #52239e; }
.badge-role-parent { background: #fdf0dc; color: #8a5104; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: .14s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: #c4c7db; }
.btn-soft { background: var(--accent-tint); color: var(--accent-ink); }
.btn-soft:hover { filter: brightness(.97); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--font-mono); }
.tbl .name-cell { display: flex; align-items: center; gap: 11px; }

/* avatar */
.avatar { flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-family: var(--font-display); letter-spacing: -.01em; user-select: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.md { width: 38px; height: 38px; font-size: 14px; }
.avatar.lg { width: 54px; height: 54px; font-size: 19px; }
.avatar.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }

/* forms */
.form-row { margin-bottom: 15px; }
.form-row label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.input, .select, textarea.input { width: 100%; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14px; font-family: inherit; background: var(--surface); color: var(--text); outline: none; transition: .15s; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 16%, transparent); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23575d81' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* segmented / tabs / chips */
.segmented { display: inline-flex; background: #eceef6; border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: none; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: .14s; }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { padding: 6px 13px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-2); transition: .14s; }
.chip-toggle.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* progress ring + bar */
.ring { --p: 0; --sz: 88px; width: var(--sz); height: var(--sz); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #e9eaf4 0); }
.ring .hole { width: calc(var(--sz) - 18px); height: calc(var(--sz) - 18px); border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.ring .hole b { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: #eceef6; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

/* misc */
.section-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 4px 0 14px; display: flex; align-items: center; gap: 9px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty svg { width: 40px; height: 40px; margin-bottom: 10px; opacity: .5; }
.list-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { font-size: 14px; font-weight: 600; display: block; }
.list-row .grow span { font-size: 12.5px; color: var(--text-2); }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--text-2); }
.dot-lg { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pin-flag { color: var(--star); }
.hstack { display: flex; align-items: center; gap: 10px; }
.vstack { display: flex; flex-direction: column; }
.wrap-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.spin-load { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }

/* toast */
#toast-root { position: fixed; bottom: 22px; right: 22px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sh-lg); font-size: 14px; animation: rise .3s ease both; max-width: 340px; }
.toast.ok { border-left: 3px solid var(--ok); }
.toast.bad { border-left: 3px solid var(--bad); }
.toast svg { width: 18px; height: 18px; flex: none; }

/* modal */
#modal-root:empty { display: none; }
.modal-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(9, 11, 34, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease both; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-lg); animation: rise .3s cubic-bezier(.2,.7,.2,1) both; }
.modal-head { display: flex; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 17px; }
.modal-head .x { margin-left: auto; cursor: pointer; color: var(--text-3); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.modal-head .x:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 22px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }

/* timetable grid */
.tt { display: grid; gap: 8px; }
.tt-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; box-shadow: var(--sh-sm); }
.tt-cell .p { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.tt-cell b { display: block; font-size: 13.5px; margin: 2px 0; }
.tt-cell span { font-size: 12px; color: var(--text-2); }
.tt-cell.accent { border-left: 3px solid var(--accent); }

/* attendance dots */
.att-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.att-dot { width: 15px; height: 15px; border-radius: 4px; }
.att-present { background: var(--ok); }
.att-absent { background: var(--bad); }
.att-late { background: var(--warn); }
.att-excused { background: var(--info); }
.att-none { background: #e6e8f1; }

/* score input in gradebook */
.score-in { width: 74px; text-align: center; font-family: var(--font-mono); padding: 7px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; outline: none; }
.score-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }

/* ============================================================ auth extras */
.auth-back { position: absolute; top: 18px; left: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-text-2); }
.auth-back:hover { color: #fff; }
.auth-back svg { width: 15px; height: 15px; }
.flip { transform: scaleX(-1); }
.auth .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth label .opt { color: rgba(255,255,255,.35); font-weight: 400; }
.auth-alt { text-align: center; font-size: 13px; color: var(--ink-text-2); margin: 18px 0 0; }
.auth-alt a { color: #a9a4ff; font-weight: 600; }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.auth { font-family: 'Plus Jakarta Sans', var(--font-body); }
.auth h1, .auth-brand b { font-family: 'Plus Jakarta Sans', var(--font-body); font-weight: 800; }

/* ============================================================ LANDING */
.landing {
  position: relative; z-index: 1; overflow-x: hidden; color: #e8eafc;
  font-family: 'Plus Jakarta Sans', var(--font-body);
  --lp-ink: #05060f;
}
.wm-lon { color: #8b8bff; }

/* ---- layered cosmic background ---- */
.lp-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, #16173a 0%, #0b0b22 42%, #06060f 100%); }
.lp-nebula { position: absolute; inset: -25%;
  background:
    radial-gradient(38% 40% at 22% 26%, rgba(99,102,241,.42), transparent 68%),
    radial-gradient(34% 36% at 80% 18%, rgba(139,92,246,.34), transparent 68%),
    radial-gradient(42% 40% at 72% 82%, rgba(8,145,178,.24), transparent 70%),
    radial-gradient(30% 30% at 26% 84%, rgba(251,191,36,.16), transparent 70%),
    radial-gradient(26% 26% at 50% 50%, rgba(79,70,229,.20), transparent 72%);
  filter: blur(14px); animation: nebula 34s ease-in-out infinite alternate; }
@keyframes nebula { from { transform: translate3d(-2%, -1%, 0) scale(1.04); } to { transform: translate3d(2%, 2%, 0) scale(1.12); } }

.lp-stars { position: absolute; inset: 0; background-repeat: repeat; will-change: transform, opacity; }
.lp-stars-1 { opacity: .5; background-size: 320px 320px; animation: drift 240s linear infinite, tw 7s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 34% 66%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 58% 38%, rgba(199,210,254,.6), transparent),
    radial-gradient(1px 1px at 82% 78%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 90% 14%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 46% 92%, rgba(255,255,255,.45), transparent); }
.lp-stars-2 { opacity: .7; background-size: 220px 220px; animation: drift 160s linear infinite, tw 5s ease-in-out infinite alternate .8s;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 70% 20%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.2px 1.2px at 44% 74%, rgba(253,224,157,.75), transparent),
    radial-gradient(1.3px 1.3px at 88% 60%, rgba(199,210,254,.8), transparent),
    radial-gradient(1.2px 1.2px at 10% 82%, rgba(255,255,255,.7), transparent); }
.lp-stars-3 { opacity: .9; background-size: 150px 150px; animation: drift 90s linear infinite, tw 3.6s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.8px 1.8px at 30% 24%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 76% 66%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 54% 88%, rgba(191,219,254,.95), transparent); }
@keyframes drift { to { background-position: 320px 640px; } }
@keyframes tw { from { opacity: .4; } to { opacity: .95; } }

.lp-shoot { position: absolute; top: 12%; left: 62%; width: 150px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9)); transform: rotate(-40deg) translateX(-40%);
  animation: shoot 10s ease-in infinite 3s; }
.lp-shoot::after { content: ""; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(255,255,255,.85); }
.lp-shoot-b { top: 34%; left: 30%; width: 110px; animation-duration: 13s; animation-delay: 7.5s; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-40deg) translateX(-40%); } 6% { opacity: 1; } 20% { opacity: 0; transform: rotate(-40deg) translateX(280%); } 100% { opacity: 0; } }

.lp-grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lp-vignette { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 30%, transparent 55%, rgba(5,6,15,.75) 100%); }

/* ---- nav ---- */
.lp-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(18px, 5vw, 60px); max-width: 1200px; margin: 0 auto; position: relative; z-index: 3; }
.lp-brand { display: flex; align-items: center; gap: 11px; }
.lp-logo { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(79,70,229,.5)); }
.lp-brand b { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.lp-links { display: flex; align-items: center; gap: 24px; }
.lp-links a { font-size: 14px; color: #b6bad9; font-weight: 600; cursor: pointer; transition: .15s; }
.lp-links a:hover { color: #fff; }
.lp-links .lp-signin { color: #fff; }
.lp-links .btn { color: #fff; box-shadow: 0 8px 20px -6px rgba(79,70,229,.7); }

/* ---- hero ---- */
.lp-hero { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  max-width: 1160px; margin: 0 auto; padding: clamp(30px, 6vw, 70px) clamp(18px, 5vw, 60px) 40px; }
.lp-hero-copy { max-width: 560px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; color: #c7c9ff;
  background: rgba(124,116,255,.1); border: 1px solid rgba(124,116,255,.28); padding: 7px 15px; border-radius: var(--pill); margin-bottom: 24px; }
.lp-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.lp-hero h1 { font-weight: 800; color: #fff; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.03; letter-spacing: -.03em; margin: 0 0 20px; }
.lp-grad { background: linear-gradient(100deg, #a5a3ff 10%, #8b8bff 40%, #fbbf24 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { font-size: clamp(15px, 1.6vw, 18px); color: #b5b9dd; max-width: 540px; margin: 0 0 30px; line-height: 1.62; }
.lp-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-cta-main { padding: 15px 26px; font-size: 15.5px; box-shadow: 0 14px 34px -10px rgba(79,70,229,.8); }
.lp-cta-main svg { width: 18px; height: 18px; }
.lp-note { margin-top: 20px; font-size: 13px; color: #8f93b8; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lp-note svg { width: 15px; height: 15px; color: #34d399; }

/* ---- orbit showcase ---- */
.lp-orbit { position: relative; width: min(440px, 84vw); aspect-ratio: 1; margin: 0 auto; }
.lp-orbit-glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.55), transparent 68%); filter: blur(30px); }
.lp-core { position: absolute; top: 50%; left: 50%; width: 88px; height: 88px; transform: translate(-50%, -50%); z-index: 5; }
.lp-core svg { width: 100%; height: 100%; border-radius: 26px; filter: drop-shadow(0 0 34px rgba(99,102,241,.7)); }
.lp-core-pulse { position: absolute; inset: -8px; border-radius: 30px; border: 1.5px solid rgba(139,139,255,.55); animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.92); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.lp-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.lp-ring.r1 { width: 38%; aspect-ratio: 1; animation: spin 15s linear infinite; }
.lp-ring.r2 { width: 58%; aspect-ratio: 1; animation: spin 24s linear infinite reverse; }
.lp-ring.r3 { width: 78%; aspect-ratio: 1; animation: spin 34s linear infinite; }
.lp-ring.r4 { width: 100%; aspect-ratio: 1; animation: spin 46s linear infinite reverse; }
.lp-planet { position: absolute; top: -22px; left: 50%; margin-left: -22px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #0d1030; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--c);
  box-shadow: 0 0 24px -4px var(--c), inset 0 0 14px -7px var(--c); }
.lp-planet svg { width: 20px; height: 20px; }
.lp-ring.r2 .lp-planet { animation: spin 24s linear infinite; }
.lp-ring.r3 .lp-planet { animation: spin 34s linear infinite reverse; }
.lp-ring.r4 .lp-planet { animation: spin 46s linear infinite; }
.lp-moon { position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 16px 3px rgba(251,191,36,.7); }

/* ---- stat strip ---- */
.lp-stats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 10px auto 30px; padding: 0 20px; }
.lp-stat { flex: 1; min-width: 150px; text-align: center; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px 14px; backdrop-filter: blur(8px); }
.lp-stat b { display: block; font-family: 'Fredoka', var(--font-display); font-weight: 600; font-size: 21px; color: #fff; letter-spacing: -.01em; }
.lp-stat span { font-size: 12px; color: #9297bd; }

/* ---- sections ---- */
.lp-section { position: relative; padding: clamp(56px, 8vw, 100px) 22px; text-align: center; background: linear-gradient(180deg, rgba(10,11,32,.6), rgba(9,10,28,.82)); border-top: 1px solid rgba(255,255,255,.05); }
.lp-alt { background: linear-gradient(180deg, rgba(9,10,28,.82), rgba(7,8,22,.9)); }
.lp-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8b8bff; font-weight: 700; }
.lp-h2 { font-weight: 800; font-size: clamp(26px, 4vw, 42px); color: #fff; letter-spacing: -.025em; margin: 12px 0 12px; }
.lp-lead { color: #9ea3c8; max-width: 580px; margin: 0 auto 46px; font-size: 15.5px; line-height: 1.6; }
.lp-grid { display: grid; gap: 20px; max-width: 1080px; margin: 0 auto; text-align: left; }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-card { position: relative; overflow: hidden; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 28px 24px; backdrop-filter: blur(10px); transition: transform .2s, border-color .2s, box-shadow .2s; }
.lp-card::before { content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px; background: linear-gradient(140deg, rgba(255,255,255,.16), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none; }
.lp-card:hover { transform: translateY(-5px); }
.lp-role { --rc: #8b8bff; }
.lp-role:hover { border-color: color-mix(in srgb, var(--rc) 45%, transparent); box-shadow: 0 24px 60px -26px color-mix(in srgb, var(--rc) 70%, transparent); }
.lp-feature:hover { border-color: rgba(124,116,255,.4); box-shadow: 0 24px 60px -26px rgba(79,70,229,.5); }
.lp-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--rc, #6366f1) 16%, transparent); color: color-mix(in srgb, var(--rc, #b7b1ff) 92%, white); border: 1px solid color-mix(in srgb, var(--rc, #6366f1) 30%, transparent); }
.lp-ic svg { width: 23px; height: 23px; }
.lp-card h3 { font-weight: 800; font-size: 17.5px; color: #fff; margin-bottom: 9px; letter-spacing: -.01em; }
.lp-card p { font-size: 13.5px; color: #a1a6ca; line-height: 1.58; margin: 0; }

/* ---- CTA band ---- */
.lp-band { position: relative; overflow: hidden; text-align: center; padding: clamp(60px, 9vw, 100px) 22px; background: #080a1e; }
.lp-band-orbit { position: absolute; inset: 0; background: radial-gradient(600px 340px at 50% 120%, rgba(99,102,241,.4), transparent 70%), radial-gradient(400px 200px at 50% -10%, rgba(251,191,36,.12), transparent 70%); }
.lp-band > * { position: relative; z-index: 1; }
.lp-band h2 { font-weight: 800; font-size: clamp(25px, 4vw, 38px); color: #fff; margin-bottom: 12px; letter-spacing: -.025em; }
.lp-band p { color: #b5b9dd; max-width: 500px; margin: 0 auto 30px; }

/* ---- footer ---- */
.lp-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px clamp(18px, 5vw, 60px); background: #06070f; border-top: 1px solid rgba(255,255,255,.06); }
.lp-footer .lp-logo { width: 30px; height: 30px; }
.lp-footer .lp-brand b { font-size: 18px; }
.lp-footer .faint { color: #6c718f; font-size: 13px; }
.lp-footer .ssl-badge { margin: 0; }
@media (prefers-reduced-motion: reduce) { .lp-nebula, .lp-stars, .lp-shoot, .lp-ring, .lp-planet, .lp-core-pulse { animation: none !important; } }

/* ============================================================ responsive */
@media (max-width: 1080px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 200; width: 82vw; max-width: 300px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--sh-lg); }
  .sidebar.open { transform: none; }
  .menu-toggle { display: grid; }
  .scrim-mobile { position: fixed; inset: 0; background: rgba(9,11,34,.4); z-index: 150; }
  .content { padding: 20px 16px 60px; }
  .topbar { padding: 13px 16px; }
}
@media (max-width: 720px) {
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .demo-chips { grid-template-columns: 1fr; }
  .topbar .page-title { font-size: 17px; }
}

/* landing responsive */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; gap: 24px; }
  .lp-hero-copy { max-width: 640px; margin: 0 auto; }
  .lp-cta, .lp-note { justify-content: center; }
  .lp-orbit { width: min(340px, 72vw); }
  .lp-grid-3 { grid-template-columns: 1fr 1fr; }
  .lp-links a[data-scroll] { display: none; }
}
@media (max-width: 600px) {
  .lp-grid-3 { grid-template-columns: 1fr; }
  .lp-footer { justify-content: center; text-align: center; }
  .lp-links { gap: 14px; }
  .lp-stat { min-width: 120px; }
  .lp-hero h1 { font-size: clamp(30px, 9vw, 40px); }
}

/* ============================================================
   Özel Ders Yönetimi — domain components (design handoff)
   ============================================================ */

/* durum rozetleri — tasarım dili */
.badge-done    { background: #dcfce7; color: #16a34a; }
.badge-pending { background: #fff7ed; color: #ea580c; }
.badge-late    { background: #fee2e2; color: #dc2626; }
.badge-idle    { background: #f1f5f9; color: #94a3b8; }
.badge-pro     { background: #eef2ff; color: #4f46e5; letter-spacing: .04em; }
.badge-free    { background: rgba(255,255,255,.14); color: #fff; letter-spacing: .04em; }
.badge-coach   { background: #cffafe; color: #0891b2; letter-spacing: .3px; font-size: 10px; }

.num, .stat .num, .hero-nets b, .plan-price { font-family: var(--font-num); }
.subj-dot { width: 10px; height: 10px; border-radius: 4px; flex: none; display: inline-block; }

/* plan kartı (öğretmen sidebar) */
.plan-card { margin: 8px 12px 4px; }
.plan-inner { background: rgba(255,255,255,.06); border: 1px solid var(--ink-line); border-radius: 14px; padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; }
.plan-count { font-size: 12px; color: var(--ink-text-2); }
.plan-note { font-size: 12px; color: var(--ink-text-2); }
.plan-upgrade { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; width: 100%; box-shadow: 0 6px 16px -6px rgba(79,70,229,.8); }
.plan-upgrade:hover { filter: brightness(1.08); }

/* plan modalı */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-box { position: relative; border: 1.5px solid var(--border); border-radius: 18px; padding: 20px; }
.plan-box.plan-pro { border-color: var(--accent); box-shadow: 0 14px 34px -18px rgba(79,70,229,.5); }
.plan-reco { position: absolute; top: -10px; right: 14px; }
.plan-name { font-weight: 800; font-size: 15px; }
.plan-price { font-size: 30px; font-weight: 700; margin: 4px 0 10px; letter-spacing: -.02em; }
.plan-price small { font-size: 13px; color: var(--text-2); font-family: var(--font-body); }
.plan-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-list li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.plan-list li svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
.plan-assurance { display: flex; gap: 9px; align-items: center; margin-top: 16px; background: var(--ok-tint); border: 1px solid #bbf7d0; color: #15803d; border-radius: 12px; padding: 11px 14px; font-size: 13px; }
.plan-assurance svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; } }

/* konu takibi */
.topic-grid { display: flex; flex-direction: column; }
.topic-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid #f4f5f9; }
.topic-row:last-child { border-bottom: none; }
.topic-row .grow b { display: block; font-weight: 600; }
.topic-row .grow span { display: block; }
.topic-check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

/* kronometre */
.timer-face { text-align: center; padding: 18px 0 22px; }
.timer-face b { display: block; font-size: 54px; font-family: var(--font-num); letter-spacing: .02em; color: var(--accent); line-height: 1.1; }
.timer-face span { font-size: 12.5px; }

/* hedef / seri */
.goal-check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: transparent; display: grid; place-items: center; cursor: pointer; transition: .15s; flex: none; }
.goal-check svg { width: 17px; height: 17px; }
.goal-check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.streak-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--streak-soft); color: var(--streak); font-weight: 800; font-size: 12.5px; padding: 4px 11px; border-radius: 99px; }
.streak-pill svg, .streak-mini svg { width: 14px; height: 14px; }
.streak-mini { display: inline-flex; align-items: center; gap: 4px; color: var(--streak); font-weight: 800; font-size: 13px; }
.week-strip { display: flex; gap: 8px; margin-top: 13px; }
.week-day { flex: 1; text-align: center; }
.week-day span { display: block; font-size: 10.5px; color: var(--text-3); margin-bottom: 5px; font-weight: 700; }
.week-day i { display: block; height: 26px; border-radius: 8px; background: #eef1f7; }
.week-day.on i { background: var(--ok); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }

/* öğrenci hero */
.hero-card { position: relative; overflow: hidden; border-radius: 20px; padding: 20px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, #6366f1, #4f46e5 60%, #4338ca); box-shadow: 0 14px 34px -16px rgba(79,70,229,.7); }
.hero-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; }
.hero-top .streak-pill { background: rgba(255,255,255,.16); color: #ffd8a8; }
.hero-nets { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.hero-nets small { display: block; font-size: 11px; opacity: .75; }
.hero-nets b { font-size: 27px; }
.hero-arrow svg { width: 20px; height: 20px; opacity: .7; }
.hero-delta { font-family: var(--font-num); font-weight: 700; font-size: 15px; padding: 3px 10px; border-radius: 99px; }
.hero-delta.up { background: rgba(34,197,94,.25); color: #bbf7d0; }
.hero-delta.down { background: rgba(239,68,68,.3); color: #fecaca; }
.hero-spark { width: 100%; height: 56px; margin-top: 10px; }
.hero-week { margin-top: 12px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; opacity: .85; }
.hero-week svg { width: 15px; height: 15px; }

/* veli hero */
.parent-hero { border-radius: 20px; padding: 22px; color: #fff;
  background: linear-gradient(135deg, #059669, #16a34a 70%, #15803d); box-shadow: 0 14px 34px -16px rgba(22,163,74,.55); }

/* deneme ders kırılımı */
.exam-subs { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--border); }
.exam-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }

/* mesajlar */
.msg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; min-height: 420px; }
.msg-threads { padding: 8px; overflow-y: auto; max-height: 70vh; }
.msg-thread { display: flex; gap: 11px; align-items: center; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.msg-thread:hover { background: var(--surface-2); }
.msg-thread.on { background: var(--accent-tint); }
.msg-thread .grow b { display: block; font-size: 13.5px; }
.msg-prev { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.msg-pane { display: flex; flex-direction: column; }
.msg-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.msg-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 52vh; }
.bubble { max-width: 78%; align-self: flex-start; background: #eef1f7; border-radius: 14px 14px 14px 4px; padding: 9px 13px; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; }
.bubble p { margin: 0; font-size: 14px; }
.bubble span { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.msg-input { display: flex; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--border); }
.msg-input .btn svg { width: 17px; height: 17px; }
@media (max-width: 800px) { .msg-layout { grid-template-columns: 1fr; } .msg-threads { max-height: 200px; } }

/* ============================================================ öğrenci mobil kabuk */
.m-shell { max-width: 470px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.m-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.m-logo { width: 30px; height: 30px; }
.m-head b { font-size: 17px; font-weight: 800; }
.m-head .wm-lon { color: var(--accent); }
.m-ic { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.m-content { flex: 1; padding: 16px 16px 96px; }
.m-tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 470px; z-index: 50;
  display: flex; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.m-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px;
  color: var(--text-3); font-size: 10.5px; font-weight: 700; border-radius: 12px; }
.m-tabbar a svg { width: 21px; height: 21px; }
.m-tabbar a.active { color: var(--accent); }
.m-tab-plus svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 14px -4px rgba(79,70,229,.7); }
.m-tab-plus.active svg { background: var(--accent-600); }

/* sınıflar & davet */
.invite-grid { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 14px; align-items: stretch; }
.invite-box { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 14px; padding: 14px 16px; }
.invite-label { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.invite-code { font-size: 24px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.invite-link { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); word-break: break-all; }
.invite-qr { width: 108px; height: 108px; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.color-pick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.color-pick.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--border-strong); }
.join-class { display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 13px; padding: 12px 14px; margin-bottom: 18px; }
.join-class b { color: #fff; display: block; font-size: 14.5px; }
.join-class span:not(.badge):not(.subj-dot) { color: var(--ink-text-2); font-size: 12px; }
.join-class .badge { margin-left: auto; }
@media (max-width: 860px) { .invite-grid { grid-template-columns: 1fr; } }

/* hazır bulunuşluk */
.pretest-banner { display: flex; align-items: center; gap: 13px; cursor: pointer; margin-bottom: 14px;
  background: linear-gradient(120deg, #7c3aed, #4f46e5); color: #fff; border-radius: 16px; padding: 15px 16px;
  box-shadow: 0 12px 28px -14px rgba(124,58,237,.7); animation: rise .5s ease both; }
.pretest-banner b { display: block; font-size: 14.5px; }
.pretest-banner span:not(.pretest-ic):not(.btn) { font-size: 12px; opacity: .85; }
.pretest-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); flex: none; }
.pretest-ic svg { width: 20px; height: 20px; }
.pt-wrap { max-width: 560px; margin: 0 auto; }
.pt-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: 13px; padding: 12px 14px; font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: .13s; }
.pt-opt:hover { border-color: var(--primary-border, #c7d2fe); background: var(--surface-2); }
.pt-opt.on { border-color: var(--accent); background: var(--accent-tint); }
.pt-letter { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #eef1f7;
  font-size: 12px; font-weight: 800; color: var(--text-2); flex: none; }
.pt-opt.on .pt-letter { background: var(--accent); color: #fff; }

/* soru bankası çözme */
.pt-opt.pt-correct { border-color: var(--ok); background: var(--ok-tint); }
.pt-opt.pt-wrong { border-color: var(--bad); background: var(--bad-tint); }
.pt-opt:disabled { cursor: default; opacity: .92; }
.bk-fb { margin-top: 14px; border-radius: 13px; padding: 13px 15px; }
.bk-fb.ok { background: var(--ok-tint); border: 1px solid #bbf7d0; }
.bk-fb.bad { background: var(--bad-tint); border: 1px solid #fecaca; }
.bk-fb b { font-size: 14px; }
.bk-fb p { margin: 6px 0 10px; font-size: 13px; color: var(--text-2); }

/* rapor / karne */
.report { padding: 28px 32px; max-width: 820px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); margin-bottom: 18px; }
.report-nets { display: flex; align-items: center; gap: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 18px; }
.report-net small { display: block; font-size: 11px; color: var(--text-3); font-weight: 700; }
.report-net b { font-size: 26px; }
.report-sec { margin-bottom: 18px; }
.report-sec h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 9px; }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.report-stat { text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.report-stat b { display: block; font-size: 19px; font-family: var(--font-num); }
.report-stat span { font-size: 11px; color: var(--text-3); }
.report-note { background: var(--info-tint); border-radius: 12px; padding: 13px 16px; }
.report-note p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.report-foot { text-align: center; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 12px; }
@media print {
  .sidebar, .topbar, .no-print, .m-tabbar, .m-head, #toast-root, #modal-root { display: none !important; }
  .shell { display: block !important; }
  .content { padding: 0 !important; max-width: none !important; }
  .report { box-shadow: none !important; border: none !important; max-width: none; }
  body { background: #fff !important; }
}
@media (max-width: 640px) { .report-grid { grid-template-columns: 1fr 1fr; } .report { padding: 18px; } }

/* ============================================================ LANDING v3 */
/* arkaplan zenginleştirme */
.lp-aurora { position: absolute; inset: -30% -10%; opacity: .5; filter: blur(50px); pointer-events: none;
  background: conic-gradient(from 210deg at 30% 40%, transparent 0deg, rgba(99,102,241,.28) 40deg, rgba(45,212,191,.16) 90deg, transparent 140deg, rgba(139,92,246,.22) 220deg, transparent 300deg);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { from { transform: rotate(-6deg) scale(1.05); } to { transform: rotate(8deg) scale(1.18); } }
.lp-const { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.lp-const .tw { animation: tw 4s ease-in-out infinite alternate; }
.lp-const .t2 { animation-delay: 1.2s; } .lp-const .t3 { animation-delay: 2.3s; }
/* Satürn — bantlı gövde + renkli halka sistemi + toz bulutu */
.lp-planet { position: absolute; top: 9%; right: -60px; width: 190px; height: 190px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.28), transparent 44%),
    linear-gradient(168deg, #f6d9a0 0%, #eeb277 20%, #d98a56 36%, #b96aa8 54%, #7c5cd6 74%, #3b2f8f 100%);
  box-shadow: inset -28px -22px 60px rgba(18, 10, 48, .7), 0 0 90px -18px rgba(238, 178, 119, .5);
  animation: bob 14s ease-in-out infinite alternate; }
.lp-planet::before { /* toz bulutu / hale */
  content: ""; position: absolute; inset: -52%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246,217,160,.14), rgba(185,106,168,.10) 48%, rgba(124,92,214,.08) 64%, transparent 78%);
  filter: blur(10px); animation: dust 18s ease-in-out infinite alternate; }
.lp-planet::after { /* ekvator bantları */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(178deg, transparent 40%, rgba(255,236,200,.16) 44%, transparent 49%,
    rgba(120,80,200,.22) 58%, transparent 63%, rgba(255,214,165,.12) 70%, transparent 75%); }
@keyframes dust { from { opacity: .75; transform: scale(1) rotate(0deg); } to { opacity: 1; transform: scale(1.12) rotate(8deg); } }
.lp-planet-ring { position: absolute; top: 50%; left: 50%; width: 330px; height: 96px; border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  border: 2px solid rgba(246,217,160,.42);
  box-shadow:
    0 0 0 7px rgba(196,181,253,.16),
    0 0 0 14px rgba(246,217,160,.12),
    0 0 0 22px rgba(185,106,168,.09),
    0 0 26px 4px rgba(246,217,160,.18),
    inset 0 0 18px rgba(246,217,160,.25); }
.lp-planet-ring::before { /* halka toz parıltıları */
  content: ""; position: absolute; inset: -26px; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(2px 2px at 12% 42%, rgba(255,240,210,.9), transparent),
    radial-gradient(1.6px 1.6px at 30% 22%, rgba(224,214,255,.8), transparent),
    radial-gradient(1.8px 1.8px at 58% 12%, rgba(255,225,180,.8), transparent),
    radial-gradient(1.5px 1.5px at 82% 38%, rgba(240,200,255,.75), transparent),
    radial-gradient(1.8px 1.8px at 68% 82%, rgba(255,240,210,.7), transparent),
    radial-gradient(1.4px 1.4px at 22% 78%, rgba(224,214,255,.7), transparent);
  animation: tw 5s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(26px); } }
.lp-comet { position: absolute; bottom: 22%; left: -8%; width: 200px; height: 2px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(147,197,253,.9)); transform: rotate(14deg);
  animation: comet 17s ease-in infinite 5s; }
.lp-comet::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: #bfdbfe; box-shadow: 0 0 18px 5px rgba(147,197,253,.8); }
@keyframes comet { 0% { opacity: 0; transform: rotate(14deg) translateX(0); } 5% { opacity: 1; }
  22% { opacity: 0; transform: rotate(14deg) translateX(120vw); } 100% { opacity: 0; } }
.lp-planet-icon { position: absolute; top: -22px; left: 50%; margin-left: -22px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #0d1030; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--c);
  box-shadow: 0 0 24px -4px var(--c), inset 0 0 14px -7px var(--c); }
.lp-planet-icon svg { width: 20px; height: 20px; }
.lp-ring.r2 .lp-planet-icon { animation: spin 24s linear infinite; }
.lp-ring.r3 .lp-planet-icon { animation: spin 34s linear infinite reverse; }
.lp-ring.r4 .lp-planet-icon { animation: spin 46s linear infinite; }

/* scroll-reveal */
.fx { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.fx.in { opacity: 1; transform: none; }

/* persona hikaye bölümleri */
.lp-stories { display: flex; flex-direction: column; gap: clamp(52px, 7vw, 90px); max-width: 1080px; margin: 0 auto; text-align: left; }
.lp-story { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 5vw, 64px); align-items: center; }
.lp-story.rev .lp-story-copy { order: 2; } .lp-story.rev .lp-story-visual { order: 1; }
.lp-story-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent); padding: 6px 13px; border-radius: 99px; margin-bottom: 16px; }
.lp-ic-mini { display: grid; place-items: center; width: 20px; height: 20px; }
.lp-ic-mini svg { width: 16px; height: 16px; }
.lp-story h3 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: #fff; letter-spacing: -.025em; line-height: 1.12; margin-bottom: 12px; }
.lp-story > .lp-story-copy > p { color: #b0b5da; font-size: 15px; line-height: 1.65; margin: 0 0 20px; }
.lp-bullets { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.lp-bullets li { display: flex; gap: 12px; align-items: flex-start; }
.lp-bullet-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: color-mix(in srgb, var(--pc) 14%, transparent); color: var(--pc);
  border: 1px solid color-mix(in srgb, var(--pc) 26%, transparent); }
.lp-bullet-ic svg { width: 17px; height: 17px; }
.lp-bullets b { display: block; color: #fff; font-size: 14px; }
.lp-bullets li span:not(.lp-bullet-ic) { color: #9297bd; font-size: 12.5px; line-height: 1.5; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips span { font-size: 12px; font-weight: 700; color: #c7c9ff; background: rgba(124,116,255,.1);
  border: 1px solid rgba(124,116,255,.26); border-radius: 99px; padding: 6px 13px; }

/* --- mini ürün mockupları --- */
.lp-story-visual { display: grid; place-items: center; }
.mock { width: min(380px, 100%); background: #fff; border-radius: 18px; padding: 16px;
  box-shadow: 0 30px 70px -28px rgba(5,6,20,.9), 0 0 0 1px rgba(255,255,255,.08), 0 0 60px -22px var(--mc, #4f46e5);
  color: #191d36; transform: rotate(-1.2deg); }
.lp-story.rev .mock-phone { transform: rotate(1.2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 11px; border-bottom: 1px solid #eef0f6; margin-bottom: 11px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e6e8f1; }
.mock-bar i:nth-child(1) { background: #fca5a5; } .mock-bar i:nth-child(2) { background: #fcd34d; } .mock-bar i:nth-child(3) { background: #86efac; }
.mock-bar span { font-weight: 800; font-size: 13px; margin-left: 6px; }
.mock-pro { margin-left: auto; font-size: 10px; font-weight: 800; color: #4f46e5; background: #eef2ff; padding: 2px 8px; border-radius: 6px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: #f8fafc; margin-bottom: 8px; opacity: 0; transform: translateX(-14px); }
.fx.in .mock-row { animation: mockin .5s ease forwards; }
.fx.in .mr1 { animation-delay: .15s; } .fx.in .mr2 { animation-delay: .35s; } .fx.in .mr3 { animation-delay: .55s; }
@keyframes mockin { to { opacity: 1; transform: none; } }
.mock-pri { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mock-row b { display: block; font-size: 12.5px; }
.mock-row small { color: #64748b; font-size: 11px; }
.mock-row > div { flex: 1; min-width: 0; }
.mock-tag { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.mock-tag.late { background: #fee2e2; color: #dc2626; }
.mock-tag.pend { background: #fff7ed; color: #ea580c; }
.mock-tag.done { background: #dcfce7; color: #16a34a; }
.mock-spark { width: 100%; height: 44px; margin-top: 4px; }
.mock-line { stroke-dasharray: 260; stroke-dashoffset: 260; }
.fx.in .mock-line { animation: draw 1.4s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* öğrenci telefon mockup */
.mock-phone { width: min(280px, 88%); background: #f4f5fb; border-radius: 34px; padding: 14px 12px 12px; position: relative;
  border: 6px solid #10122e; box-shadow: 0 34px 80px -30px rgba(5,6,20,.95), 0 0 70px -24px var(--mc, #a78bfa);
  color: #191d36; transform: rotate(1.2deg); }
.mp-notch { width: 84px; height: 17px; background: #10122e; border-radius: 0 0 12px 12px; margin: -14px auto 10px; }
.mp-hero { background: linear-gradient(135deg, #6366f1, #4f46e5); border-radius: 16px; color: #fff; padding: 13px 14px; margin-bottom: 10px; }
.mp-hero > span { font-size: 12.5px; font-weight: 700; }
.mp-nets { display: flex; align-items: center; gap: 7px; font-family: var(--font-num); font-size: 19px; margin-top: 6px; }
.mp-nets i { font-style: normal; opacity: .7; font-size: 14px; }
.mp-nets b { font-size: 24px; }
.mp-nets em { font-style: normal; font-size: 11px; font-weight: 800; background: rgba(34,197,94,.3); color: #bbf7d0; padding: 2px 8px; border-radius: 99px; }
.mp-card { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 13px; padding: 9px 11px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.mp-card > div { flex: 1; min-width: 0; }
.mp-card b { display: block; font-size: 12px; }
.mp-card small { color: #64748b; font-size: 10.5px; }
.mp-timer svg { width: 38px; height: 38px; flex: none; }
.mp-ring { stroke-dashoffset: 113; }
.fx.in .mp-ring { animation: ringfill 2.4s .4s ease forwards; }
@keyframes ringfill { to { stroke-dashoffset: 34; } }
.mp-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #16a34a; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.mp-badge { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #dcfce7; color: #16a34a; font-weight: 800; font-size: 13px; flex: none; }
.mp-flame { font-size: 12px; font-weight: 800; color: #ea580c; background: #fff7ed; padding: 3px 9px; border-radius: 99px; }
.fx.in .mp-flame { animation: flamepulse 1.6s 1s ease-in-out 3; }
@keyframes flamepulse { 50% { transform: scale(1.14); } }
.mp-tabs { display: flex; justify-content: space-around; align-items: center; background: #fff; border-radius: 14px; padding: 9px 6px 7px; margin-top: 2px; }
.mp-tabs i { width: 17px; height: 17px; border-radius: 6px; background: #e2e5f0; }
.mp-tabs i.on { background: #4f46e5; }
.mp-tabs i.plus { width: 26px; height: 26px; border-radius: 50%; background: #4f46e5; box-shadow: 0 5px 12px -3px rgba(79,70,229,.7); }

/* veli mockup */
.mock-parent { transform: rotate(1deg); }
.mock-phero { background: linear-gradient(135deg, #059669, #16a34a); border-radius: 14px; color: #fff; padding: 13px 15px; margin-bottom: 10px; }
.mock-phero b { font-size: 14px; }
.mock-phero small { display: block; opacity: .8; font-size: 11px; margin-bottom: 8px; }
.mock-pnets { font-family: var(--font-num); font-size: 17px; }
.mock-pnets b { font-size: 21px; }
.mock-pnets em { font-style: normal; font-size: 10.5px; font-weight: 800; background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.mock-pbar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.25); margin-top: 10px; overflow: hidden; }
.mock-pbar span { display: block; height: 100%; width: 0; border-radius: 99px; background: #fff; }
.fx.in .mock-pbar span { animation: fillbar 1.6s .5s ease forwards; }
@keyframes fillbar { to { width: 76%; } }
.mock-brow { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; border-radius: 11px; padding: 9px 12px; margin-bottom: 8px; font-size: 12px; }
.mock-brow span { color: #64748b; }
.mock-brow b { font-size: 12.5px; }
.mock-msg { background: #eef2ff; border-radius: 13px 13px 13px 4px; padding: 10px 13px; font-size: 12.5px; color: #3730a3; opacity: 0; transform: translateY(10px); }
.fx.in .mock-msg { animation: mockin .5s 1s ease forwards; }
.mock-msg small { display: block; color: #818cf8; font-size: 10px; margin-top: 3px; }

/* nasıl çalışır */
.lp-steps { display: flex; align-items: stretch; justify-content: center; gap: 14px; max-width: 980px; margin: 0 auto; }
.lp-step { position: relative; flex: 1; max-width: 270px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px; padding: 30px 22px 24px; text-align: center; }
.lp-step-no { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center;
  box-shadow: 0 6px 16px -5px rgba(79,70,229,.8); }
.lp-step-ic { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px;
  background: rgba(124,116,255,.13); color: #b7b1ff; border: 1px solid rgba(124,116,255,.25); }
.lp-step-ic svg { width: 25px; height: 25px; }
.lp-step h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 7px; }
.lp-step p { font-size: 12.5px; color: #9ea3c8; line-height: 1.55; margin: 0; }
.lp-step-line { align-self: center; width: 46px; height: 2px; flex: none;
  background: repeating-linear-gradient(90deg, rgba(124,116,255,.5) 0 6px, transparent 6px 12px); }

@media (max-width: 880px) {
  .lp-story, .lp-story.rev { grid-template-columns: 1fr; gap: 26px; }
  .lp-story.rev .lp-story-copy { order: 1; } .lp-story.rev .lp-story-visual { order: 2; }
  .lp-steps { flex-direction: column; align-items: center; }
  .lp-step { max-width: 340px; width: 100%; }
  .lp-step-line { width: 2px; height: 30px; background: repeating-linear-gradient(180deg, rgba(124,116,255,.5) 0 6px, transparent 6px 12px); }
  .lp-planet { width: 120px; height: 120px; right: -50px; top: 6%; }
  .lp-planet-ring { width: 190px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-aurora, .lp-planet, .lp-comet, .lp-const .tw { animation: none !important; }
  .fx { opacity: 1 !important; transform: none !important; }
  .fx.in .mock-row, .fx.in .mock-line, .fx.in .mp-ring, .fx.in .mock-pbar span, .fx.in .mock-msg { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; width: 76%; }
}

/* dil değiştirici */
.lang-sw { display: inline-flex; gap: 3px; background: rgba(127,131,168,.12); border: 1px solid var(--border-strong); border-radius: 99px; padding: 3px; }
.lang-sw button { border: none; background: transparent; font-size: 15px; line-height: 1; padding: 4px 7px; border-radius: 99px; cursor: pointer; opacity: .45; transition: .15s; }
.lang-sw button.on { opacity: 1; background: var(--surface); box-shadow: var(--sh-sm); }
.lang-sw button:hover { opacity: .85; }
.lang-sw.lang-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.lang-sw.lang-dark button.on { background: rgba(255,255,255,.18); box-shadow: none; }
.auth-lang { position: absolute; top: 14px; right: 16px; }

/* ikon boyut güvenliği — kart başlıkları, satırlar, tablolar */
.card-head > svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.section-title > svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.list-row > svg { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.tbl td svg { width: 16px; height: 16px; vertical-align: middle; }
.kv svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.msg-head svg, .invite-box svg { width: 16px; height: 16px; }

/* lig */
.lg-row { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid #f4f5f9; }
.lg-row:last-child { border-bottom: none; }
.lg-row.me { background: var(--accent-tint); }
.lg-rank { width: 38px; text-align: center; font-family: var(--font-num); font-weight: 700; font-size: 15px; color: var(--text-2); flex: none; }
.fx.in .mr4 { animation: mockin .5s .75s ease forwards; }
#lp-league .lp-story { text-align: left; max-width: 1080px; margin: 0 auto; }
