:root {
  --blue: #2496c0; --blue-h: #1a7ea6; --blue-d: #1a6e8e; --blue-l: #eef6fb; --blue-b: #d6e9f3;
  --ink: #2f3340; --ink-2: #424245; --mute: #8a8f98; --mute-2: #5c616b;
  --line: #e5e5ea; --input: #d2d2d7; --row: #f2f4f8; --bg: #f4f7fb; --soft: #f8fafd; --track: #f1f4f9;
  --ok: #1d8348; --ok-h: #176a3a; --ok-l: #e8f6ee; --warn: #8a5a12; --warn-l: #fdf3e3; --err: #c0392b; --err-l: #fdeceb;
  --red: #e30a17;
  --shadow: 0 1px 2px rgba(47, 51, 64, .04), 0 8px 24px rgba(47, 51, 64, .045);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
body { font-size: 14px; line-height: 1.45; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-h); }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

/* ---------- Tipografi ---------- */
.h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.muted { color: var(--mute); font-size: 13.5px; }
.muted-sm { color: var(--mute); font-size: 12.5px; }
.body { color: var(--ink-2); font-size: 14px; line-height: 1.6; text-wrap: pretty; white-space: pre-line; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

/* ---------- Yerleşim yardımcıları ---------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-22 { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ml-auto { margin-left: auto; }
.self-start { align-self: flex-start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }

/* ---------- Kart ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.card-pad { padding: 22px 24px; }
.card.flush { overflow: hidden; }
.empty { padding: 28px; text-align: center; color: var(--mute); font-size: 13.5px; }
.section-label { padding: 12px 24px; background: var(--soft); border-top: 1px solid var(--row); }

/* ---------- Buton ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9999px; padding: 11px 22px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-h); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--input); }
.btn-secondary:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover:not(:disabled) { background: var(--ok-h); color: #fff; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a93226; }
.btn-danger-ghost { background: #fff; color: var(--err); border-color: var(--input); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--err-l); }
.btn-text { background: none; border: none; color: var(--mute); padding: 6px; }
.btn-text:hover { color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { min-height: 44px; }
.btn-block { width: 100%; }

/* ---------- Rozet, çip, ilerleme ---------- */
.badge { display: inline-flex; align-items: center; border-radius: 9999px; padding: 3px 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.b-ok { background: var(--ok-l); color: var(--ok); }
.b-info { background: var(--blue-l); color: var(--blue-d); }
.b-mute { background: var(--track); color: var(--mute-2); }
.b-warn { background: var(--warn-l); color: var(--warn); }
.b-err { background: var(--err-l); color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink-2); border: 1px solid var(--input); }
.chip .box { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--input); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; line-height: 1; }
.chip.on { background: var(--blue-l); color: var(--blue-d); border-color: var(--blue); }
.chip.on .box { background: var(--blue); border-color: var(--blue); }
.chip.on .box::after { content: '✓'; }
.chip .stat { font-weight: 500; color: var(--mute); }
.tag { display: inline-flex; border-radius: 9999px; padding: 3px 11px; font-size: 11.5px; font-weight: 700; background: var(--blue-l); color: var(--blue-d); white-space: nowrap; }
.bar { height: 8px; background: var(--track); border-radius: 9999px; overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; border-radius: 9999px; background: var(--blue); }
.bar > span.ok { background: var(--ok); }
.bar.stacked { gap: 2px; }
.bar.stacked > span { border-radius: 0; }
.dot { width: 8px; height: 8px; border-radius: 9999px; flex: none; }

/* ---------- Segment ---------- */
.seg { display: flex; gap: 4px; background: var(--track); border-radius: 9999px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg > * { flex: none; border: none; background: transparent; border-radius: 9999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.seg > .on { background: var(--blue); color: #fff; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.input { width: 100%; border: 1px solid var(--input); border-radius: 12px; padding: 11px 14px; font-size: 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
textarea.input { resize: vertical; min-height: 84px; }
.input-lg { padding: 13px 16px; font-size: 15px; min-height: 50px; }
.max-480 { max-width: 480px; }
.search { flex: 1 1 240px; max-width: 340px; padding: 10px 14px; font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.check-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--row); cursor: pointer; font-size: 13.5px; }
.check-row:last-child { border-bottom: none; }
.check-row:hover { background: var(--soft); }
input[type=checkbox] { accent-color: var(--blue); width: 16px; height: 16px; cursor: pointer; margin: 0; }
.file-pick { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.file-pick input { display: none; }
.hint { font-size: 12px; color: var(--mute); line-height: 1.5; }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 12px 16px; background: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); vertical-align: bottom; }
.table td { padding: 12px 16px; border-top: 1px solid var(--row); color: var(--ink-2); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tr.link { cursor: pointer; }
.table tr.link:hover td { background: var(--soft); }
.table .name { font-weight: 600; color: var(--ink); }
.table .check { width: 44px; padding-right: 0; }
.th-sub { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.progress-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.progress-cell .bar { flex: 1; }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 24px; bottom: 24px; max-width: calc(100vw - 48px); background: var(--ink); color: #fff; border-radius: 9999px; padding: 12px 20px; font-size: 13px; font-weight: 600; z-index: 100; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }

/* ---------- Marka şeridi ---------- */
.stripe { height: 4px; display: flex; flex: none; }
.stripe::before, .stripe::after { content: ''; flex: 1; }
.stripe::before { background: var(--red); }
.stripe::after { background: var(--blue); }
.brand-rule { width: 28px; height: 2px; border-radius: 2px; background: var(--input); }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-card { position: relative; width: 100%; max-width: 880px; display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(47, 51, 64, .04), 0 16px 40px rgba(47, 51, 64, .07); }
.login-card > .stripe { position: absolute; left: 0; right: 0; top: 0; }
.login-brand { flex: 1 1 320px; padding: 52px 40px 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; border-right: 1px solid var(--row); }
.login-brand img { width: 210px; max-width: 70%; height: auto; }
.login-brand .title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.login-form { flex: 1 1 360px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; min-height: 420px; }
.code-boxes { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; cursor: text; }
.code-boxes > div { height: 56px; border-radius: 12px; border: 1px solid var(--input); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.code-boxes > div.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.code-boxes input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: none; font-size: 16px; }
.login-links { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 600; }
.login-links button { background: none; border: none; padding: 0; color: var(--blue); cursor: pointer; font-weight: 600; }
.login-foot { padding: 16px 28px; border-top: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--mute); }
@media (max-width: 720px) {
  .login-brand { border-right: none; border-bottom: 1px solid var(--row); padding: 40px 24px 28px; gap: 20px; }
  .login-brand img { width: 150px; }
  .login-form { padding: 28px 24px 32px; min-height: 0; }
}

/* ---------- Uygulama kabuğu ---------- */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { width: 248px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; }
.brand { padding: 26px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; border-bottom: 1px solid var(--row); text-align: center; }
.brand img { width: 108px; height: auto; }
.brand-name { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.nav-label { padding: 18px 22px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.nav-item { display: flex; align-items: center; gap: 10px; border-radius: 12px; padding: 11px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.nav-item::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: var(--blue); opacity: 0; }
.nav-item:hover { background: var(--soft); color: var(--ink-2); }
.nav-item.on { background: var(--blue-l); color: var(--blue); }
.nav-item.on::before { opacity: 1; }
.user-card { margin: auto 14px 14px; display: flex; flex-direction: column; gap: 12px; background: var(--soft); border: 1px solid #eef1f6; border-radius: 16px; padding: 12px; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 9999px; background: var(--blue-l); border: 1px solid var(--blue-b); color: var(--blue-d); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.avatar.sm { width: 36px; height: 36px; font-size: 12.5px; }
.user-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.btn-logout:hover:not(:disabled) { background: var(--err-l); color: var(--err); border-color: #f3c5c0; }
.topbar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 28px; }
.content { padding: 24px 28px 48px; width: 100%; max-width: 1180px; }
.content > div { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 780px) {
  .shell { flex-direction: column; }
  .sidebar { display: none; }
  .topbar { display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .topbar .stripe { height: 3px; }
  .topbar-inner { padding: 10px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
  .topbar-row { display: flex; align-items: center; gap: 10px; }
  .topbar-row img { height: 40px; width: auto; }
  .topbar-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; }
  .topbar .seg > * { flex: 1 0 auto; padding: 10px 14px; text-align: center; }
  .page-head { padding: 14px 16px; }
  .content { padding: 16px 16px 40px; }
  .card-pad { padding: 18px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; border-radius: 16px; text-align: center; }
}

/* ---------- Vize / eğitim ---------- */
.vize-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); transition: border-color .15s; }
.vize-card:hover { border-color: var(--blue); color: var(--ink); }
.big-num { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.vize-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--row); font-size: 12.5px; }
.vize-foot .go { color: var(--blue); font-weight: 600; white-space: nowrap; }
.item-row { padding: 18px 24px; border-top: 1px solid var(--row); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.card > .item-row:first-child { border-top: none; }
.item-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.confirm-box { background: var(--ok-l); border-radius: 14px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--ok); }
.confirm-box .txt { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.confirm-box strong { font-size: 14px; font-weight: 800; }
.info-row { background: var(--soft); border: 1px solid var(--row); border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.danger-box { background: var(--err-l); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.danger-box > span { flex: 1 1 160px; font-size: 12.5px; font-weight: 600; color: var(--err); }
.mini-list { border-top: 1px solid var(--row); }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--row); font-size: 13px; }
.done-card { width: 100%; max-width: 520px; align-self: center; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; margin-top: 12px; }
.done-card .confirm-box { flex-direction: column; text-align: center; width: 100%; }
.done-icon { width: 64px; height: 64px; border-radius: 9999px; background: var(--ok-l); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.track-card { text-align: left; cursor: pointer; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.track-card:hover { border-color: var(--blue); color: var(--ink); }
.track-card.on { background: var(--blue-l); border-color: var(--blue); }
.track-card.on .h3 { color: var(--blue-d); }
.legend { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.legend strong { margin-left: auto; color: var(--ink); }
.bulk { border-color: var(--blue); }

/* ---------- Oynatıcı ---------- */
.watch { width: 100%; max-width: 880px; display: flex; flex-direction: column; gap: 14px; }
.watch-head { display: flex; align-items: center; gap: 12px; }
.watch-head .h3 { font-size: 18px; min-width: 0; }
.player { display: flex; flex-direction: column; gap: 14px; }
.player-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111215; }
.player-stage video { width: 100%; height: 100%; display: block; background: #111215; }
.player-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 9999px; border: none; background: rgba(255, 255, 255, .94); color: var(--blue); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.player-overlay { position: absolute; inset: 0; background: rgba(22, 23, 27, .78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; }
.player-overlay .t { font-size: 17px; font-weight: 800; color: #fff; }
.player-overlay .btn-text { color: #dfe2e7; }
.player-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #dfe2e7; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, .45); padding: 8px 14px; border-radius: 9999px; }
.player-controls { padding: 10px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.seek { height: 40px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.seek-track { position: relative; width: 100%; height: 8px; background: var(--track); border-radius: 9999px; }
.seek-max, .seek-cur { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px; }
.seek-max { background: #cfe5ef; }
.seek-cur { background: var(--blue); }
.seek-knob { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 9999px; background: #fff; border: 3px solid var(--blue); transform: translate(-50%, -50%); }
.player-row { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 9999px; border: none; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--blue-h); }
.icon-btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--input); }
.icon-btn.ghost:hover { background: var(--soft); }
.time { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.time span { color: var(--mute); font-weight: 500; }
.player-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 12px; color: var(--mute); padding-top: 4px; }
.player:fullscreen { background: #000; padding: 0; gap: 0; justify-content: center; }
.player:fullscreen .player-stage { flex: 1; aspect-ratio: auto; border-radius: 0; }
.player:fullscreen .player-controls { border-radius: 0; border: none; }
.player:-webkit-full-screen { background: #000; width: 100%; height: 100%; }
.player:-webkit-full-screen .player-stage { flex: 1; aspect-ratio: auto; border-radius: 0; }
@media (max-width: 780px) {
  .watch-head { flex-direction: column; align-items: flex-start; }
  .player-stage { border-radius: 12px; }
}
