/* ============================================================
   FokusTest — global tema
   Modern, sakin "odak" estetiği: indigo/slate, açık zemin,
   yuvarlatılmış kartlar, ince gölgeler. Tüm renk/ölçü token'ları
   :root değişkenlerinde — tek yerden ayarlanır.
   ============================================================ */

:root {
    /* Renk paleti */
    --bg: #f5f6fb;
    --surface: #ffffff;
    --surface-2: #f0f2f8;
    --border: #e4e7f0;
    --border-strong: #d3d8e6;

    --text: #1d2030;
    --text-muted: #5c6478;
    --text-soft: #6b7185; /* a11y: beyazda ~4.6:1 (WCAG AA) */

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eceafe;
    --primary-contrast: #ffffff;

    --success: #15924f;
    --success-soft: #e6f6ec;
    --danger: #d33232;
    --danger-soft: #fdeaea;
    --warn: #b9710a;
    --warn-soft: #fff3e2;

    /* Ölçüler */
    --radius: 14px;
    --radius-sm: 9px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(20, 24, 45, 0.06), 0 1px 3px rgba(20, 24, 45, 0.08);
    --shadow: 0 4px 16px rgba(20, 24, 45, 0.08);
    --shadow-lg: 0 18px 50px rgba(20, 24, 45, 0.20);

    --font: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text); line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.7rem; margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
h1:focus { outline: none; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 0.85rem; }

/* ===================== Üst çubuk / navigasyon ===================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), #7c6ef0);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.topbar-row {
    display: contents;
}

.nav-toggle {
    display: none;
}

.topbar nav {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.nav-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.nav-group a {
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
}
.nav-group a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-group a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* Açılır menü grupları */
.nav-dd { position: relative; }

.nav-dd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.nav-dd-trigger .caret { font-size: 0.62rem; opacity: 0.65; transition: transform 0.14s; }
.nav-dd:hover .nav-dd-trigger,
.nav-dd:focus-within .nav-dd-trigger { background: var(--surface-2); color: var(--text); }
.nav-dd:hover .nav-dd-trigger .caret,
.nav-dd:focus-within .nav-dd-trigger .caret { transform: rotate(180deg); }
/* Açık sayfa bu grubun içindeyse tetikleyiciyi vurgula */
.nav-dd:has(.active) .nav-dd-trigger { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-dd-cms:has(.active) .nav-dd-trigger { background: #e9f5f0; color: var(--success); }

/* Hover boşluğu köprüsü (menü ile tetikleyici arası) */
.nav-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 8px; }

.nav-dd-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 184px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
    z-index: 200;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dd-menu a {
    padding: 0.45rem 0.7rem;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}
.nav-dd-menu a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-dd-menu a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-dd-cms .nav-dd-menu a.active { background: #e9f5f0; color: var(--success); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}
.nav-user a {
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}
.nav-user a:hover { background: var(--surface-2); text-decoration: none; }

.user {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    padding-left: 0.5rem;
    border-left: 1px solid var(--border);
}

.logout-form { margin: 0; }
.logout-form button {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.logout-form button:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }

.btn-nav {
    padding: 0.4rem 0.9rem !important;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-pill);
}
.btn-nav:hover { background: var(--primary-hover); text-decoration: none !important; }

/* ===================== Ana içerik / kart ===================== */
main {
    display: block;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3rem;
}

main > section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.6rem 1.75rem;
    margin-bottom: 1.25rem;
}

/* Dar form sayfaları (giriş/kayıt) ortalanmış ve dar */
main > section.auth {
    max-width: 420px;
    margin: 2.5rem auto;
}

/* ===================== Butonlar ===================== */
.btn,
main button:not(.cuepoint-card button):not(.options .option):not(.wrong-stem-link):not(.link):not(.chip):not(.catalog-chip):not(.catalog-segment-btn):not(.mark-read):not(.nav-toggle):not(.nav-dd-trigger) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-contrast);
    background: var(--primary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s, box-shadow 0.12s, transform 0.05s;
}
.btn:hover,
main button:not(.cuepoint-card button):not(.options .option):not(.wrong-stem-link):not(.link):not(.chip):not(.catalog-chip):not(.catalog-segment-btn):not(.mark-read):not(.nav-toggle):not(.nav-dd-trigger):hover {
    background: var(--primary-hover);
    text-decoration: none;
    color: #fff;
}
.btn:active,
main button:not(.cuepoint-card button):not(.options .option):not(.wrong-stem-link):not(.link):not(.chip):not(.catalog-chip):not(.catalog-segment-btn):not(.mark-read):not(.nav-toggle):not(.nav-dd-trigger):active { transform: translateY(1px); }

.btn:disabled,
main button:disabled:not(.options .option):not(.wrong-stem-link):not(.link):not(.chip):not(.catalog-chip):not(.catalog-segment-btn):not(.mark-read) {
    background: var(--border-strong);
    color: #fff;
    cursor: not-allowed;
}

/* İkincil buton (çerçeveli) */
.btn.secondary {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--border-strong);
}
.btn.secondary:hover { background: var(--primary-soft); color: var(--primary); }

/* ===================== Formlar ===================== */
main label {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

main input[type=text],
main input[type=email],
main input[type=password],
main input[type=number],
main input[type=search],
main input[type=date],
main select,
main textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.55rem 0.7rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.12s, box-shadow 0.12s;
}
main input:focus,
main select:focus,
main textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
main textarea { min-height: 110px; resize: vertical; }

/* Satıriçi etiketler (onay kutusu / radyo) */
main label.auth-check,
main label.inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
main label.auth-check input,
main label.inline input { width: auto; margin: 0; }

.auth form { margin: 0; }
.auth p { margin: 0.6rem 0 0; font-size: 0.9rem; }
.auth.auth-register { max-width: 480px; }

.guardian-section {
    margin: 1rem 0 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-muted, #f8fafc);
}
.guardian-section legend {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 0.25rem;
}
.guardian-section .auth-info { margin-bottom: 0.75rem; font-size: 0.85rem; }
.guardian-section label:last-of-type { margin-bottom: 0; }
.student-profile-section { margin-top: 1rem; }
.muted { font-weight: 400; color: var(--text-muted, #64748b); font-size: 0.85em; }

/* Filtre/aksiyon çubuğu */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
}
.toolbar label { margin-bottom: 0; }
.toolbar select { min-width: 180px; }
.toolbar .btn { margin-left: auto; }

/* ===================== Tablolar ===================== */
table.grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
table.grid thead th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-soft);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
table.grid thead th:first-child { border-top-left-radius: var(--radius-sm); }
table.grid thead th:last-child { border-top-right-radius: var(--radius-sm); }
table.grid tbody td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
table.grid tbody tr:hover { background: var(--surface-2); }
table.grid tbody tr:last-child td { border-bottom: none; }

/* ===================== Rozetler ===================== */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.16rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-muted);
}
.badge.done { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }

/* ===================== Uyarı / bilgi kutuları ===================== */
.auth-error, .auth-info {
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.95rem;
    margin: 0 0 1rem;
    font-size: 0.92rem;
}
.auth-error { background: var(--danger-soft); color: var(--danger); }
.auth-info  { background: var(--success-soft); color: var(--success); }

/* ===================== Agent inceleme bulguları ===================== */
.agent-review-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    background: var(--surface-1);
}
.agent-review-panel.agent-fail,
.agent-review-panel.agent-error { border-color: var(--danger); background: var(--danger-soft); }
.agent-review-panel.agent-pass { border-color: var(--success); background: var(--success-soft); }
.agent-review-header { margin-bottom: 0.75rem; }
.agent-review-header h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.agent-findings-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.agent-finding {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem;
    padding: 0.55rem 0.65rem; border-radius: var(--radius-sm); background: var(--surface-2);
}
.agent-finding.danger { background: rgba(255,255,255,0.55); }
.agent-field { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.agent-message { flex: 1 1 12rem; font-size: 0.92rem; }
.agent-pending-banner {
    padding: 0.85rem 1rem; margin-bottom: 1rem; border-radius: var(--radius-md);
    background: var(--warn-soft); border: 1px solid var(--warn);
}
.zumre-reject-banner {
    padding: 0.85rem 1rem; margin-bottom: 1rem; border-radius: var(--radius-md);
    background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
    display: flex; flex-direction: column; gap: 0.35rem;
}
.zumre-reject-banner p { margin: 0; }
.agent-review-collapsed { margin-bottom: 1rem; }
.agent-review-collapsed summary { cursor: pointer; color: var(--text-muted); font-size: 0.9rem; }

.meta { color: var(--text-muted); font-size: 0.9rem; }

/* ===================== Pratik / soru çözme ===================== */
.question, .practice .question {
    margin-top: 0.5rem;
}
.question .stem, .practice .stem {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}
.options {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.1rem;
}
.options .option {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.15rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
}
.options .option:last-child { border-bottom: none; }
.options .option:hover {
    background: var(--primary-soft);
    color: var(--text);
}
.options .option .opt-label,
.options .option > strong {
    font-weight: 600;
    color: var(--primary);
    min-width: 1.6rem;
    flex-shrink: 0;
}
.options .option .opt-text { flex: 1; }
.options .option.picked {
    background: var(--primary-soft);
}
.options .option.picked .opt-label { color: var(--primary-hover); }
.options .option.correct {
    background: var(--success-soft);
    color: var(--success);
}
.options .option.correct .opt-label { color: var(--success); }
.options .option.wrong {
    background: var(--danger-soft);
    color: var(--danger);
}
.options .option.wrong .opt-label { color: var(--danger); }
.options .option.dim { opacity: 0.5; }
.options .option:disabled {
    cursor: default;
    opacity: 0.65;
    background: transparent;
    color: var(--text);
}
.options .option strong { color: inherit; }

.feedback {
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}
.feedback.ok { background: var(--success-soft); color: var(--success); }
.feedback.no { background: var(--danger-soft); color: var(--danger); }
.feedback .explanation { color: var(--text-muted); margin-bottom: 0; }

/* ===================== Fiyatlandırma / kartlar ===================== */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
    margin-top: 0.5rem;
}
.plan-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.plan-card h2 { margin-bottom: 0.4rem; }
.plan-card .price { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin: 0.2rem 0; }
.plan-card .price .interval { font-size: 0.9rem; font-weight: 500; color: var(--text-soft); }
.plan-card .trial { color: var(--success); font-size: 0.88rem; font-weight: 600; margin-bottom: 1rem; }
.plan-card .btn, .plan-card button { width: 100%; margin-top: 0.5rem; }

/* Admin: metrik tile'ları */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.7rem;
    margin: 0.5rem 0 1rem;
}
.stat-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 460px; }
.stat-tile {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 0.75rem 0.9rem;
    text-align: center;
}
.stat-num { font-size: 1.6rem; font-weight: 800; margin: 0.35rem 0 0; font-variant-numeric: tabular-nums; }
.stat-num.ok { color: var(--success); }
.stat-num.warn { color: var(--warn); }
.stat-num.bad { color: var(--danger); }

.link-card { display: block; color: inherit; transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.link-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.link-card h3 { margin: 0 0 0.25rem; color: var(--primary); }

.role-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.role-badge { display: inline-flex; align-items: center; gap: 0.3rem; }
.role-x { border: none; background: transparent; color: var(--danger); font-weight: 700; cursor: pointer; padding: 0 0.15rem; line-height: 1; }
.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.chip { padding: 0.25rem 0.8rem; border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-pill); font-size: 0.82rem; cursor: pointer; color: var(--text-muted); text-decoration: none; display: inline-block; }
.chip:hover { background: var(--surface-2); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* —— Katalog filtre paneli (öğrenci + eğitmen kurs listeleri) —— */
.catalog-page { display: flex; flex-direction: column; gap: 1.25rem; }
.catalog-toolbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem 1.1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.catalog-search-wrap { position: relative; display: flex; align-items: center; }
.catalog-search-icon { position: absolute; left: 0.85rem; font-size: 0.95rem; opacity: 0.45; pointer-events: none; line-height: 1; }
.catalog-search {
    width: 100%; padding: 0.62rem 0.85rem 0.62rem 2.35rem;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font: inherit; font-size: 0.95rem; color: var(--text); background: var(--surface-2);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.catalog-search::placeholder { color: var(--text-soft); }
.catalog-search:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.catalog-filter-groups { display: flex; flex-direction: column; gap: 0.85rem; }
.catalog-filter-group {
    display: grid; grid-template-columns: minmax(4.5rem, auto) 1fr;
    align-items: start; gap: 0.65rem 1rem;
}
.catalog-filter-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-soft); padding-top: 0.45rem; white-space: nowrap;
}
.catalog-chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.catalog-chip {
    appearance: none; border: 1px solid transparent; background: var(--surface-2);
    color: var(--text-muted); border-radius: var(--radius-pill);
    padding: 0.38rem 0.85rem; font: inherit; font-size: 0.84rem; line-height: 1.25; cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.catalog-chip:hover:not(.active) { background: var(--border); color: var(--text); }
.catalog-chip.active {
    background: var(--primary-soft); color: var(--primary);
    border-color: rgba(79, 70, 229, 0.22); font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.08);
}
.catalog-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.catalog-segment {
    display: inline-flex; flex-wrap: wrap; gap: 0.2rem; padding: 0.22rem;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); width: fit-content; max-width: 100%;
}
.catalog-segment-btn {
    appearance: none; border: none; background: transparent; color: var(--text-muted);
    border-radius: calc(var(--radius-sm) - 2px); padding: 0.42rem 0.9rem;
    font: inherit; font-size: 0.84rem; cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.catalog-segment-btn:hover:not(.active) { color: var(--text); background: rgba(255, 255, 255, 0.55); }
.catalog-segment-btn.active { background: var(--surface); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.catalog-segment-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
@media (max-width: 640px) {
    .catalog-filter-group { grid-template-columns: 1fr; gap: 0.4rem; }
    .catalog-filter-label { padding-top: 0; }
    .catalog-segment { width: 100%; }
    .catalog-segment-btn { flex: 1 1 auto; text-align: center; }
}
.catalog-chip-list-wrap { max-height: none; }

/* Öğrenci kurs kataloğu kartları */
.catalog-page {
    max-width: 1100px;
}
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.course-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--staff-accent, var(--primary)) 28%, var(--border));
    text-decoration: none;
    color: inherit;
}
.course-card .thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
}
.course-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.course-card .thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100%;
    font-size: 2rem;
    opacity: 0.35;
    background: linear-gradient(145deg, var(--staff-accent-soft, var(--primary-soft)), var(--surface-2));
}
.course-card .badge.cat {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    backdrop-filter: blur(4px);
}
.course-card .badge.complete {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
}
.course-card .thumb-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
.course-card .course-body {
    padding: 0.9rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.course-card .course-body h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text);
}
.course-card .course-body .meta { margin: 0; }
.course-card .progress {
    height: 6px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.15rem 0 0.2rem;
}
.course-card .progress.sm { height: 5px; }
.course-card .progress .bar {
    display: block;
    height: 100%;
    max-width: 100%;
    background: var(--staff-accent, var(--primary));
    border-radius: 999px;
}

button.catalog-chip,
button.catalog-segment-btn {
    box-shadow: none;
    transform: none;
}
button.catalog-chip:hover,
button.catalog-segment-btn:hover {
    box-shadow: none;
    transform: none;
    text-decoration: none;
}

/* Öğrenci kurs detay */
.learner-course-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 760px;
}
.learner-course-page .course-desc {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}
.learner-lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.learner-lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.12s, box-shadow 0.12s;
}
.learner-lesson-item:hover {
    border-color: color-mix(in srgb, var(--staff-accent, var(--primary)) 30%, var(--border));
    box-shadow: var(--shadow);
}
.learner-lesson-item a {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.learner-lesson-item a:hover {
    color: var(--staff-accent, var(--primary));
    text-decoration: none;
}
.learner-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

/* Progress bar — kurs detay */
.learner-course-page .progress {
    height: 8px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.45rem 0 0;
}
.learner-course-page .progress .bar {
    display: block;
    height: 100%;
    max-width: 100%;
    background: var(--staff-accent, var(--primary));
    border-radius: 999px;
}

.template-gallery-simple .template-filters {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem;
    padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.template-subject-select { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.84rem; min-width: 12rem; }
.template-subject-select select {
    padding: 0.45rem 0.65rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-2); font: inherit;
}
.template-subject-title { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 0.65rem; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.template-card { display: flex; flex-direction: column; gap: 0.5rem; }
.template-card h3 { font-size: 0.95rem; margin: 0; }
.badge.outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }

.extend-row { display: flex; align-items: center; gap: 0.4rem; }
.refund-btn { color: var(--danger) !important; border-color: var(--danger-soft) !important; margin-top: 0.3rem; }
.danger-card { border-color: var(--danger-soft); margin-top: 1rem; }
.danger-card h3 { color: var(--danger); }
.coverage-row { margin-bottom: 0.7rem; }
.coverage-head { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.bar { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 999px; }
.promo-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.promo-hero h1 { font-size: 2.2rem; margin: 0.6rem 0; }
.promo .lead { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 1.2rem; }
.promo-cta, .promo-cta-bottom { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1rem 0; }
.promo-cta-bottom { flex-direction: column; align-items: center; text-align: center; border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.5rem; }
.promo .faq { display: grid; gap: 0.7rem; }
.poll-options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
.poll-opt { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; cursor: pointer; }
.poll-opt:hover { background: var(--surface-2); }
.poll-opt.mine { border-color: var(--primary); background: var(--primary-soft); }
.poll-opt-head { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.3rem; }
.qa-card .qa-row { display: flex; align-items: flex-start; gap: 0.7rem; }
.qa-card.answered { opacity: 0.7; }
.upvote { border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 0.3rem 0.6rem; cursor: pointer; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.upvote.on { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

.lang-switch { position: relative; }
.lang-switch > summary { list-style: none; cursor: pointer; padding: 0.35rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { background: var(--surface-2); }
.lang-switch[open] > summary { background: var(--surface-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 200; display: flex; flex-direction: column; gap: 1px; min-width: 150px; max-height: 320px; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lang-menu a { padding: 0.4rem 0.6rem; border-radius: 7px; font-size: 0.85rem; color: var(--text-muted); }
.lang-menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.3rem 0.8rem; margin: 0.3rem 0 1rem; }
.tag-check { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 500; }
.tag-check input { width: auto; margin: 0; }
.cat-label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; font-weight: 600; margin: 0.5rem 0 0.3rem; }
.site-footer { max-width: 1080px; margin: 1rem auto 2rem; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; }
.site-footer a { color: var(--text-muted); }
.site-footer .meta { margin-left: auto; }
.days-input { width: 64px !important; }
.audit-list { list-style: none; padding: 0; }
.audit-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.audit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
pre.diff { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; font-size: 0.8rem; overflow-x: auto; margin: 0.4rem 0 0; }

.review-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 0.8rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.review-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.review-body { flex: 1; min-width: 0; }
.review-body .stem { font-weight: 600; margin: 0 0 0.4rem; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.review-actions { display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; }
.reject-box { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.5rem; }
.nav-cms { color: var(--text-soft) !important; }
.nav-cms.active { background: #e9f5f0 !important; color: var(--success) !important; }
tr.me-row { background: var(--primary-soft) !important; font-weight: 600; }
.form-narrow { max-width: 460px; }
.form-narrow .btn { margin-top: 0.5rem; }

/* Öğrenci profil sayfası */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 960px;
}
.profile-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}
.profile-avatar {
    flex: 0 0 auto;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--staff-accent, var(--primary));
    background: linear-gradient(145deg, var(--staff-accent-soft, var(--primary-soft)), var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--staff-accent, var(--primary)) 18%, var(--border));
}
.profile-hero-text { min-width: 0; flex: 1; }
.profile-hero-text h2 {
    margin: 0 0 0.15rem;
    font-size: 1.25rem;
    line-height: 1.3;
}
.profile-hero-text .meta { margin: 0 0 0.55rem; }
.profile-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.profile-form { display: flex; flex-direction: column; gap: 1rem; }
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
}
.profile-section .staff-section-title { margin: 0; }
.profile-section .section-hint { margin: -0.35rem 0 0.15rem; }
.profile-section label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}
.profile-section label input:not([type="checkbox"]),
.profile-section label select {
    font-weight: 500;
}
.profile-section .field-hint {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}
.profile-section .req { color: var(--danger); }
.profile-span-2 { grid-column: 1 / -1; }
.profile-fields-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}
.profile-section .check-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    cursor: pointer;
}
.profile-section .check-row input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--staff-accent, var(--primary));
}
.profile-section .check-row strong { display: block; font-size: 0.9rem; }
.profile-section .check-row .meta { display: block; margin-top: 0.15rem; font-weight: 500; }
.profile-exam-head { align-items: flex-start; }
.profile-kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem 1rem;
    margin: 0.15rem 0 0;
}
.profile-kv div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.profile-kv dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.profile-kv dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    position: sticky;
    bottom: 0.75rem;
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
@media (max-width: 720px) {
    .profile-grid,
    .profile-fields-2 { grid-template-columns: 1fr; }
    .profile-hero { align-items: flex-start; }
}
.exam-form { max-width: 640px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-2col { grid-template-columns: 1fr; } }
.badge.danger { background: var(--danger-soft); color: var(--danger); }

.nav-admin { color: var(--danger) !important; font-weight: 600 !important; }
.nav-admin.active { background: var(--danger-soft) !important; color: var(--danger) !important; }

/* Genel kart şebekesi (dashboard/listeler) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

/* Listeler arası boşluk */
main section ul { padding-left: 1.2rem; }
main section li { margin-bottom: 0.35rem; }

/* ===================== Ders video oynatıcı + cuepoint ===================== */
.lesson-player { max-width: 760px; }

.video-wrap {
    position: relative;
    width: 640px;
    max-width: 100%;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.video-wrap video { display: block; width: 100%; height: auto; }

/* Soru, video alanını kaplayan overlay — yumuşak beliriş (AJAX benzeri) */
.cuepoint-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 15, 30, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 5;
    animation: cuepoint-fade 200ms ease-out;
}
@keyframes cuepoint-fade { from { opacity: 0; } to { opacity: 1; } }

.cuepoint-card {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-lg);
    animation: cuepoint-pop 240ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes cuepoint-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cuepoint-card .countdown {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--warn);
    background: var(--warn-soft);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-pill);
    margin: 0 0 0.6rem;
}
.cuepoint-card .stem { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.9rem; }
.cuepoint-card .options { margin-bottom: 1rem; }
.cuepoint-card button {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s;
}
.cuepoint-card button:hover:not(:disabled) { background: var(--primary-hover); }
.cuepoint-card button:disabled { background: var(--border-strong); cursor: not-allowed; }

.lesson-player .related { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 0.85rem; }
.lesson-player .related.highlight {
    border: 1px solid #f3c08a;
    background: var(--warn-soft);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}

/* ===================== Form doğrulama (Blazor) ===================== */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid { outline: 1px solid var(--danger); }
.validation-message { color: var(--danger); font-size: 0.85rem; }

/* ===================== Blazor hata kutusu ===================== */
.blazor-error-boundary {
    background: var(--danger);
    padding: 1rem 1rem 1rem 1rem;
    color: white;
    border-radius: var(--radius-sm);
}
.blazor-error-boundary::after { content: "Bir hata oluştu."; }

/* ===================== Duyarlı (mobil) ===================== */
@media (max-width: 760px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .topbar-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.55rem 1rem;
        border-bottom: 1px solid var(--border);
    }

    .brand { flex: 1; min-width: 0; }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 0.4rem 0.75rem;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-pill);
        background: var(--surface);
        color: var(--text);
        font-family: inherit;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
    }
    .nav-toggle:hover { background: var(--surface-2); }
    .topbar.nav-open .nav-toggle { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

    .topbar nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        padding: 0.65rem 1rem 0.85rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        max-height: min(70vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .topbar.nav-open nav { display: flex; }

    .nav-group { flex-direction: column; align-items: stretch; flex: none; }
    .nav-user {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 0.35rem;
        border-top: 1px solid var(--border);
    }
    .user { border-left: none; padding-left: 0; }

    main { padding: 1.25rem 0.9rem 2.5rem; }
    main > section { padding: 1.2rem 1.1rem; }

    /* Mobilde açılır menüler statik ve açık (her grup etiketi + altında linkler) */
    .nav-dd::after { display: none; }
    .nav-dd-trigger {
        width: 100%;
        justify-content: flex-start;
        font-weight: 600;
        color: var(--text-muted);
        padding-left: 0;
    }
    .nav-dd-trigger .caret { display: none; }
    .nav-dd-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.1rem 0 0.35rem 0.75rem;
        min-width: 0;
    }
    .nav-dd-menu a { padding-left: 0.5rem; }

    /* Öğrenci/eğitmen paneli: yan menü varken üst menü tekrarını gizle */
    body:has(main .staff-shell) .topbar .nav-toggle,
    body:has(main .staff-shell) .topbar .nav-group { display: none; }
    body:has(main .staff-shell) .topbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.55rem 1rem;
        gap: 0.5rem;
    }
    body:has(main .staff-shell) .topbar-row {
        display: contents;
    }
    body:has(main .staff-shell) .topbar .brand { flex: 1; }
    body:has(main .staff-shell) .topbar nav {
        display: flex;
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        padding: 0;
        max-height: none;
        overflow: visible;
        border-bottom: none;
        width: auto;
    }
    body:has(main .staff-shell) .topbar .nav-user {
        border-top: none;
        padding-top: 0;
        width: auto;
        margin-left: auto;
    }
}

/* ===================== Canlı oturum sayfaları (room / share / monitor / attendance) ===================== */
.page-narrow { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.page-wide { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }

/* Özet kutucukları */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1rem 0 1.5rem; }
.stat-grid.two { grid-template-columns: repeat(2, 1fr); }
.stat-tile { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.stat-tile .st-lbl { font-size: 0.78rem; color: var(--text-muted); }
.stat-tile .st-val { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-tile.ok { border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.stat-tile.ok .st-val { color: var(--success); }
.stat-tile.warn .st-val { color: var(--warn); }
.stat-tile.muted .st-val { color: var(--text-muted); }

/* Tablo */
.table-wrap { padding: 0; overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table thead th { text-align: left; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); }
.data-table td { padding: 0.55rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.strong { font-weight: 600; }
.data-table td.num { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.data-table .ar { text-align: right; }

/* Satır yardımcıları */
.row { display: flex; align-items: center; gap: 0.6rem; }
.row.gap { gap: 0.6rem; }
.row.between { justify-content: space-between; flex-wrap: wrap; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.btn.lg { padding: 0.7rem 1.4rem; font-size: 1rem; }

/* Uyarı / boş / not kartları */
.card.alert { border-left: 4px solid var(--border-strong); }
.card.alert.danger { border-left-color: var(--danger); }
.card.empty { text-align: center; color: var(--text-muted); padding: 2.5rem 1rem; }
.card.note { background: var(--bg); }

/* Ekran paylaşımı hero kartı */
.hero-card .hc-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.hero-card .hc-ic { width: 3rem; height: 3rem; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.hero-card h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.consent { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-soft); }

/* A/V oda */
.live-av { max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.av-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.av-bar .back { font-weight: 600; }
.av-bar .av-title { font-weight: 700; font-size: 1.1rem; }
.av-stage { position: relative; background: #0d1117; border-radius: var(--radius); min-height: 380px; padding: 0.75rem; display: grid; gap: 0.75rem; }
.av-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; color: #c9d1d9; padding: 1.5rem; }
.av-overlay .meta { color: #9aa4b2; }
.av-controls { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.9rem; }
.pad { padding: 1rem 0; }

/* LiveKit kutucukları */
.lk-stage { display: grid; gap: 0.75rem; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.lk-tile { position: relative; background: #161b22; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lk-tile.local { outline: 2px solid var(--primary); }
.lk-tile.screen { outline: 2px solid var(--warn); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.monitor-grid.lk-grid { margin-top: 1rem; }
.lk-label { position: absolute; bottom: 0.4rem; left: 0.5rem; font-size: 0.72rem; color: #fff; background: rgba(0,0,0,0.55); padding: 0.1rem 0.45rem; border-radius: var(--radius-pill); z-index: 2; }
.lk-video { width: 100%; height: 100%; object-fit: cover; }

/* Monitor grid */
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
.mon-tile { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.mon-screen { aspect-ratio: 16 / 9; background: #0d1117; display: flex; align-items: center; justify-content: center; }
.mon-screen .mon-ph { font-size: 2rem; opacity: 0.5; }
.mon-meta { padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.15rem; }

@media (max-width: 640px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.live-subnav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0 1.25rem; }

.form-card { display: flex; flex-direction: column; gap: 0.85rem; }
.form-card textarea { width: 100%; font: inherit; padding: 0.5rem 0.65rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); resize: vertical; }

/* Kurs inceleme kuyruğu */
.list-card { padding: 0; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review-list > li { border-bottom: 1px solid var(--border); }
.review-list > li:last-child { border-bottom: 0; }
.review-row { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.85rem 1rem; text-decoration: none; color: inherit; transition: background .15s ease; }
.review-row:hover { background: var(--primary-soft); }
.rev-thumb { width: 4rem; height: 4rem; border-radius: var(--radius-sm); border: 1px solid var(--border); object-fit: cover; flex: none; }
.rev-thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--bg); }
.review-row .title { font-weight: 600; margin: 0.25rem 0 0.15rem; }
.rev-badges { margin-bottom: 0.1rem; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rev-arrow { color: var(--text-muted); flex: none; margin-top: 0.2rem; }
.card.empty .empty-ic { font-size: 2rem; margin-bottom: 0.5rem; }

/* Başvuru formu + admin başvuru kartları */
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-grid2 > label, .form-card > label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--text-soft); font-weight: 600; }
.form-card select, .form-card input, .form-card textarea { font: inherit; padding: 0.5rem 0.65rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); width: 100%; }
.app-card { display: flex; flex-direction: column; gap: 0.5rem; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.app-head > div { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.app-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }
.app-msg { background: var(--bg); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; margin: 0; }
.app-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.note-input { flex: 1; min-width: 180px; font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
@media (max-width: 640px) { .form-grid2 { grid-template-columns: 1fr; } }

/* ===================== Buton boyut varyantları ===================== */
/* Küçük (liste/tablo/satır-içi eylemler) — birçok sayfada 'small' kullanılıyor */
.btn.small, main button.small {
    padding: 0.34rem 0.7rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    gap: 0.3rem;
}
/* Çok küçük (etiket içi) */
.btn.tiny, main button.tiny { padding: 0.2rem 0.5rem; font-size: 0.75rem; }
/* Büyük (hero / birincil çağrı) */
.btn.lg, main button.lg { padding: 0.7rem 1.4rem; font-size: 1rem; }
/* Tam genişlik */
.btn.block, main button.block { width: 100%; }

/* ===================== Adım göstergesi → yatay sekmeler ===================== */
.step-indicator {
    list-style: none; margin: 0 0 1.5rem; padding: 0;
    display: flex; gap: 0.15rem; flex-wrap: wrap;
    border-bottom: 2px solid var(--border);
}
.step-indicator > li { margin: 0; }
/* Sekme butonu — global button görünümünü sıfırla */
.step-indicator .step-dot {
    background: transparent; color: var(--text-muted);
    border: none; border-bottom: 2px solid transparent; border-radius: 0;
    padding: 0.55rem 0.9rem; margin-bottom: -2px;
    font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
    transition: color .12s, border-color .12s, background .12s;
}
.step-indicator .step-dot:hover { background: var(--primary-soft); color: var(--primary); }
.step-indicator .dot-num {
    width: 1.45rem; height: 1.45rem; flex: none; border-radius: 50%;
    background: var(--border); color: var(--text);
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700;
}
.step-indicator li.active .step-dot { color: var(--primary); border-bottom-color: var(--primary); }
.step-indicator li.active .dot-num { background: var(--primary); color: #fff; }
.step-indicator li.done .step-dot { color: var(--text); }
.step-indicator li.done .dot-num { background: var(--success); color: #fff; }
.step-indicator .dot-label { white-space: nowrap; }
@media (max-width: 680px) { .step-indicator .dot-label { display: none; } }  /* mobilde yalnız numara */

/* ===================== A11y: klavye odağı + hareket azaltma ===================== */
/* Görünür klavye odak halkası (yalnız klavye — fareyle tıklamada gösterilmez) */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) { outline: none; }

/* Form alanları klavye odağında belirgin halka (mevcut outline:none'ı klavyede geçersiz kıl) */
main input:focus-visible,
main select:focus-visible,
main textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 1px;
}

/* İçeriğe geç (skip link) — yalnız klavye odağında görünür */
.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3.5rem;
    z-index: 2000;
    background: var(--primary);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

/* Odaklanabilir içerik bölgesi dış halka göstermesin */
[tabindex="-1"]:focus { outline: none; }

/* Hareket hassasiyeti: animasyon/geçişleri kapat */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================== Anket seçeneği = buton (a11y: klavye + ekran okuyucu) ===================== */
/* Global mor buton stilini sıfırla (2 sınıf → :not'lu global kuraldan yüksek özgüllük) */
.poll-options .poll-opt {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.7rem;
    font: inherit;
    cursor: pointer;
}
.poll-options .poll-opt:hover:not(:disabled) { background: var(--surface-2); }
.poll-options .poll-opt.mine { border-color: var(--primary); background: var(--primary-soft); }
.poll-options .poll-opt:disabled { cursor: default; opacity: 0.9; }
/* span'lar blok olarak render olsun (button içinde div olamaz) */
.poll-options .poll-opt-head { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.3rem; }
.poll-options .bar { display: block; height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.poll-options .bar-fill { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

/* ===================== LaTeX kılavuzu ===================== */
.latex-guide { margin: 1rem 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lg-toggle { width: 100%; text-align: left; background: var(--surface-2); border: none; padding: 0.7rem 1rem; font-weight: 600; cursor: pointer; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.lg-toggle:hover { background: var(--primary-soft); }
.lg-caret { color: var(--text-muted); font-size: 0.8rem; }
.lg-body { padding: 1rem; max-height: 480px; overflow-y: auto; }
.lg-intro { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.75rem; }
.lg-intro code { background: var(--surface-2); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.85em; }
.lg-search { width: 100%; padding: 0.5rem 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); margin-bottom: 0.9rem; font: inherit; }
.lg-cat { margin-bottom: 1.1rem; }
.lg-cat h4 { margin: 0 0 0.5rem; font-size: 0.92rem; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.lg-items { display: grid; gap: 0.5rem; }
.lg-item { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0.5rem 0.7rem; }
.lg-preview { min-width: 90px; font-size: 1.05rem; }
.lg-code { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 0.8rem; color: var(--text-muted); background: var(--surface-2); padding: 0.28rem 0.5rem; border-radius: 6px; max-width: 100%; overflow-x: auto; white-space: nowrap; }
.lg-desc { font-size: 0.82rem; color: var(--text-muted); flex: 1; min-width: 130px; }
.lg-copy { margin-left: auto; font-size: 0.78rem; padding: 0.32rem 0.7rem; }
.lg-copy.done { background: var(--success); border-color: var(--success); color: #fff; }

/* ===================== Soru editörü canlı önizleme + şık görseli ===================== */
.q-preview { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 0.85rem 1rem; background: var(--surface-2); margin-top: 0.4rem; }
.q-preview .pv-stem { font-weight: 500; margin: 0 0 0.6rem; }
.q-preview .pv-opt { margin: 0.3rem 0; display: flex; gap: 0.5rem; align-items: flex-start; flex-wrap: wrap; }
.q-preview .pv-opt.correct { color: var(--success); }
.q-preview .pv-empty { color: var(--text-muted); font-style: italic; }
.opt-img { max-height: 130px; max-width: 100%; border-radius: 7px; border: 1px solid var(--border); display: block; margin-top: 0.35rem; }
.opt-img-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.opt-img-thumb { height: 42px; border-radius: 5px; border: 1px solid var(--border); }
.math-text { white-space: pre-wrap; }
.math-text .math-content { white-space: inherit; }
.math-text.inline { display: inline; white-space: normal; }
.math-text.inline .math-content { display: inline; }
.string-list-editor .sle-row { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.35rem; }
.string-list-editor .sle-prefix { font-size: 0.82rem; color: var(--text-muted); width: 1.6rem; text-align: right; flex-shrink: 0; }
.string-list-editor .sle-input { flex: 1; min-width: 0; }
.string-list-editor.compact .sle-input { padding: 0.35rem 0.5rem; font-size: 0.88rem; }
.statement-row { align-items: flex-start; margin-bottom: 0.4rem; }
.statement-row .stmt-numeral { width: 3rem; flex-shrink: 0; }
.rich-opt-editor { display: flex; flex-direction: column; gap: 0.4rem; }
.opt-latex-preview { flex-basis: 100%; margin-left: 2.5rem; padding: 0.35rem 0.55rem; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.passage-picker .passage-preview { margin-top: 0.6rem; }
.passage-block { margin-bottom: 0.85rem; }
.q-body-preview .pv-body-line { margin: 0.25rem 0; }
.question-stem-block .q-body-preview { margin-bottom: 0.75rem; }
.q-body-preview .pv-columns { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.35rem 0; }
.q-body-preview .pv-col-head { font-weight: 600; padding: 0.2rem 0.5rem; background: var(--surface-2); border-radius: 4px; }
.q-preview .pv-passage { margin-bottom: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px dashed var(--border); }
.q-preview .pv-explanation { margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
.card.nested { background: var(--surface-2); box-shadow: none; margin-top: 0.5rem; padding: 0.75rem; }
.prewrap { white-space: pre-wrap; line-height: 1.5; }

/* Soru yazım / detay görünümü (eğitmen, admin, zümre) */
.authoring-page { display: flex; flex-direction: column; gap: 1rem; max-width: 52rem; }
.authoring-page > .card { padding: 1.1rem 1.25rem; }
.authoring-page .difficulty-panel { background: var(--surface-2); padding: 0.85rem 1rem; margin-bottom: 0.85rem; box-shadow: none; }
.authoring-page .difficulty-panel h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.authoring-page .meta-row { margin: 0.65rem 0 0.85rem; }
.authoring-page .stem { font-size: 1.08rem; font-weight: 600; line-height: 1.45; margin: 0.75rem 0 1rem; }
.authoring-page h3 { margin: 0.85rem 0 0.35rem; font-size: 0.95rem; }
.authoring-page .option-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.authoring-page .option-list .option { display: flex; align-items: flex-start; gap: 0.6rem; flex-wrap: wrap; padding: 0.6rem 0.75rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.authoring-page .option-list .option.correct { border-color: var(--success); background: var(--success-soft, rgba(34, 197, 94, 0.08)); }
.authoring-page .option-label { font-weight: 700; color: var(--primary); min-width: 1.4rem; flex-shrink: 0; }
.authoring-page .option-text { flex: 1; min-width: 0; }
.authoring-page .field-block { margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
.authoring-page .field-block h3 { margin: 0 0 0.45rem; font-size: 0.95rem; }
.authoring-page .detail-meta { display: flex; flex-direction: column; gap: 0.25rem; margin: 0.85rem 0; padding-top: 0.75rem; border-top: 1px dashed var(--border); font-size: 0.85rem; }

/* Yanlış cevap havuzu */
.wrong-answers-page {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 760px;
}
.wrong-answers-page .stat-grid { margin: 0 0 0.25rem; }
.wrong-hint { margin: 0.15rem 0 0.35rem; }
.wrong-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.wrong-back:hover { color: var(--primary); text-decoration: underline; }

.wrong-review { padding: 1.15rem 1.25rem; }
.wrong-review .question { margin-top: 0; }

.wrong-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.wrong-list-item {
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.wrong-list-item:hover {
    border-color: color-mix(in srgb, var(--staff-accent, var(--primary)) 35%, var(--border));
    box-shadow: var(--shadow);
}
.wrong-list-item.due {
    border-left: 4px solid var(--warn);
}
.wrong-stem-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}
.wrong-stem-link:hover,
.wrong-stem-link:active {
    background: var(--surface-2);
    color: inherit;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}
.wrong-stem {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}
.wrong-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
}
.wrong-meta .meta { margin: 0; }

button.link,
.link {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}
button.link:hover,
.link:hover {
    background: none;
    color: var(--primary-hover);
    text-decoration: underline;
    box-shadow: none;
    transform: none;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0.25rem 0 0.5rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}
button.chip:hover,
.chip:hover {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    box-shadow: none;
    transform: none;
}
.chip.active {
    background: var(--staff-accent-soft, var(--primary-soft));
    border-color: transparent;
    color: var(--staff-accent, var(--primary));
}
.chip.accent:not(.active) {
    border-color: color-mix(in srgb, var(--staff-accent, var(--primary)) 40%, var(--border));
    color: var(--staff-accent, var(--primary));
}
.chip .c {
    margin-left: 0.25rem;
    opacity: 0.75;
    font-weight: 700;
}
.chips .push-right { margin-left: auto; }

@media (max-width: 560px) {
    .wrong-answers-page .stat-grid.three { grid-template-columns: repeat(2, 1fr); max-width: none; }
    .wrong-answers-page .stat-grid.three .stat-tile:last-child { grid-column: 1 / -1; }
}

/* Bildirimler */
.notifications-page {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 760px;
}
.notifications-page .notif-filters {
    margin: 0;
    padding: 0.65rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.notif-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.notif-group h2 {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.notif-list > li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.notif-list > li:hover {
    border-color: color-mix(in srgb, var(--staff-accent, var(--primary)) 28%, var(--border));
    box-shadow: var(--shadow);
}
.notif-list > li.unread {
    border-left: 3px solid var(--staff-accent, var(--primary));
    background: color-mix(in srgb, var(--staff-accent-soft, var(--primary-soft)) 55%, var(--surface));
}
.notif-list > li.read {
    opacity: 0.88;
}
.notif-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    background: var(--surface-2);
    font-size: 1.15rem;
    line-height: 1;
}
.notif-list > li.unread .notif-icon {
    background: var(--staff-accent-soft, var(--primary-soft));
}
.notif-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: inherit;
    text-decoration: none;
}
a.notif-body:hover {
    text-decoration: none;
    color: inherit;
}
a.notif-body:hover .title {
    color: var(--staff-accent, var(--primary));
}
.notif-body .title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}
.notif-body .title .dot {
    display: inline;
    margin-left: 0.25rem;
    color: var(--staff-accent, var(--primary));
    font-size: 0.7em;
    vertical-align: middle;
}
.notif-body .meta {
    margin: 0;
    line-height: 1.4;
}
.notif-body .meta.time {
    font-size: 0.78rem;
}
button.mark-read {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}
button.mark-read:hover:not(:disabled) {
    background: var(--success-soft, color-mix(in srgb, var(--success) 18%, var(--surface)));
    border-color: transparent;
    color: var(--success);
    text-decoration: none;
    box-shadow: none;
    transform: none;
}
button.mark-read:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface);
    color: var(--text-muted);
}
.notif-empty-filter {
    text-align: center;
    padding: 1.25rem 1rem;
}
.notif-empty-filter p { margin: 0 0 0.35rem; }

@media (max-width: 560px) {
    .notifications-page .notif-filters .push-right {
        margin-left: 0;
        width: 100%;
    }
    .notif-list > li {
        flex-wrap: wrap;
        gap: 0.55rem 0.65rem;
    }
    button.mark-read {
        margin-left: auto;
    }
}

/* ===================== Maarif karnem ===================== */
.maarif-page { display: flex; flex-direction: column; gap: 1.25rem; }
.maarif-stats .stat-tile { min-height: 5.5rem; }
.maarif-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.maarif-stack { display: flex; height: 1.4rem; border-radius: 999px; overflow: hidden; margin: 0.85rem 0 0.65rem; border: 1px solid var(--border); }
.maarif-stack .seg { min-width: 4px; }
.maarif-stack .seg.mastered { background: var(--success); }
.maarif-stack .seg.learning { background: var(--warning, #d97706); }
.maarif-stack .seg.weak { background: var(--danger); }
.maarif-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; font-size: 0.88rem; }
.maarif-legend .dot { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }
.maarif-legend .dot.mastered { background: var(--success); }
.maarif-legend .dot.learning { background: var(--warning, #d97706); }
.maarif-legend .dot.weak { background: var(--danger); }
.maarif-dim-chart { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.5rem; }
.dim-row { display: grid; grid-template-columns: 9.5rem 1fr 2.5rem; gap: 0.5rem; align-items: center; }
.dim-label { font-size: 0.82rem; color: var(--text-muted); }
.dim-bar { height: 0.55rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.dim-fill { height: 100%; background: linear-gradient(90deg, var(--primary-soft), var(--primary)); border-radius: 999px; min-width: 2px; }
.dim-val { font-size: 0.82rem; font-weight: 600; text-align: right; }
.subject-bars { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.5rem; }
.subject-row { display: grid; grid-template-columns: 1fr 5rem; gap: 0.35rem 0.75rem; align-items: center; }
.subject-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.subject-bar { height: 0.65rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.subject-fill { height: 100%; background: var(--primary); border-radius: 999px; min-width: 2px; }
.subject-pct { font-weight: 600; font-size: 0.9rem; text-align: right; }
.highlight-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; }
.highlight-list li { padding: 0.65rem 0.75rem; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.highlight-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.2rem; }
.maarif-components .component-rows { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.coverage-row .coverage-head { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.coverage-row .coverage-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.coverage-row .bar { height: 0.5rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.coverage-row .bar-fill { height: 100%; border-radius: 999px; min-width: 2px; }
.coverage-row .bar-fill.ok { background: var(--success); }
.coverage-row .bar-fill.mid { background: var(--warning, #d97706); }
.coverage-row .bar-fill.low { background: var(--danger); }

/* ===================== İlerlemem ===================== */
.progress-page { display: flex; flex-direction: column; gap: 1.25rem; }
.progress-stats .stat-tile { min-height: 5.5rem; }
.progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.progress-subject-card { padding: 1rem 1.1rem; }
.progress-subject-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.progress-subject-head h3 { margin: 0; }
.outcome-progress-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.outcome-progress-item { padding: 0.75rem 0.85rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.outcome-top { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.outcome-title { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.outcome-title code { font-size: 0.78rem; color: var(--text-muted); }
.outcome-title span { font-weight: 500; }
.outcome-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: flex-start; }
.outcome-bar { height: 0.55rem; background: var(--surface); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 0.35rem; }
.outcome-fill { height: 100%; border-radius: 999px; min-width: 2px; transition: width 0.35s ease; }
.outcome-fill.high { background: var(--success); }
.outcome-fill.mid { background: var(--warning, #d97706); }
.outcome-fill.low { background: var(--danger); }
.outcome-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.82rem; color: var(--text-muted); }

/* ===================== Başarımlar ===================== */
.achievements-page { display: flex; flex-direction: column; gap: 1.25rem; }
.ach-stats .stat-tile { min-height: 5.5rem; }
.achievements-page .hero-progress { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 55%); border: 1px solid var(--border); }
.achievements-page .hero-icon { font-size: 2.75rem; line-height: 1; flex-shrink: 0; }
.achievements-page .hero-count { font-size: 1.65rem; font-weight: 700; margin: 0.15rem 0 0.65rem; }
.achievements-page .hero-count .pct { font-size: 1rem; color: var(--primary); margin-left: 0.35rem; }
.ach-hero-bar { height: 0.7rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.ach-hero-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #5b8def); border-radius: 999px; min-width: 2px; transition: width 0.4s ease; }
.ach-cat-overview h3 { margin: 0 0 0.75rem; }
.ach-cat-bars { display: flex; flex-direction: column; gap: 0.65rem; }
.ach-cat-row { display: grid; grid-template-columns: 10rem 1fr 3rem; gap: 0.5rem; align-items: center; }
.ach-cat-label { font-size: 0.85rem; }
.ach-cat-bar { height: 0.55rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.ach-cat-fill { height: 100%; border-radius: 999px; min-width: 2px; }
.ach-cat-fill.cat-milestone { background: var(--success); }
.ach-cat-fill.cat-streak { background: var(--warning, #d97706); }
.ach-cat-fill.cat-special { background: var(--primary); }
.ach-cat-val { font-size: 0.82rem; font-weight: 600; text-align: right; }
.achievements-page .near-section,
.achievements-page .recent-section,
.achievements-page .cat-section { padding: 1.1rem 1.25rem; }
.achievements-page .cat-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.achievements-page .cat-head h2 { margin: 0; font-size: 1.15rem; }
.achievements-page .cat-section .meta { margin-bottom: 0.85rem; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.badge-tile { padding: 0.9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; gap: 0.55rem; transition: transform 0.15s, box-shadow 0.15s; }
.badge-tile.unlocked { background: linear-gradient(145deg, #fff9e6 0%, var(--surface) 60%); border-color: #e8c547; box-shadow: 0 2px 8px rgba(232, 197, 71, 0.15); }
.badge-tile.locked { border-color: var(--border); }
.badge-tile.locked .badge-title { color: var(--text-muted); }
.badge-tile.locked.highlight { background: linear-gradient(145deg, var(--primary-soft) 0%, var(--surface) 70%); border-color: var(--primary); box-shadow: 0 2px 10px rgba(22, 48, 122, 0.12); }
.badge-tile.locked.highlight .badge-title { color: var(--text); }
.badge-head { display: flex; gap: 0.75rem; align-items: flex-start; }
.ach-badge-art { width: 56px; height: 56px; flex-shrink: 0; transition: filter 0.2s, transform 0.2s, opacity 0.2s; }
.ach-badge-art svg { width: 100%; height: 100%; display: block; }
.ach-badge-art.locked { filter: grayscale(1) saturate(0) brightness(0.85); opacity: 0.72; }
.ach-badge-art.locked.highlight { filter: grayscale(1) saturate(0) brightness(0.92) drop-shadow(0 0 5px rgba(22, 48, 122, 0.3)); transform: scale(1.03); opacity: 0.82; }
.ach-badge-art.unlocked { filter: saturate(1.15) drop-shadow(0 2px 8px rgba(201, 162, 39, 0.5)); opacity: 1; }
.badge-emoji { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.badge-title { font-weight: 600; margin: 0; font-size: 0.95rem; }
.badge-desc { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.35; }
.badge-bar { height: 0.45rem; background: var(--surface); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.badge-fill { height: 100%; background: var(--text-muted); border-radius: 999px; min-width: 2px; }
.badge-fill.hl { background: var(--primary); }
.badge-foot { font-size: 0.78rem; color: var(--text-muted); }
.badge-foot .unlocked-at { color: var(--success); font-weight: 500; }
.recent-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; }
.recent-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.recent-list .ach-badge-art { width: 44px; height: 44px; }

/* ===================== Staff portal (Admin / Eğitmen / Zümre) ===================== */
:root {
    --staff-accent: var(--primary);
    --staff-accent-soft: var(--primary-soft);
    --staff-sidebar-w: 252px;
}
.staff-area-teach { --staff-accent: #0d9488; --staff-accent-soft: #e6f7f5; }
.staff-area-review { --staff-accent: #b45309; --staff-accent-soft: #fff4e6; }
.staff-area-student { --staff-accent: #2563eb; --staff-accent-soft: #eff6ff; }

main:has(.staff-shell) {
    max-width: none;
    padding: 0;
    margin: 0;
}
main:has(.staff-shell) > section { box-shadow: none; border: none; border-radius: 0; margin: 0; }

.staff-shell {
    display: grid;
    grid-template-columns: var(--staff-sidebar-w) minmax(0, 1fr);
    min-height: calc(100vh - 56px);
    background: var(--bg);
}

.staff-sidebar {
    position: sticky;
    top: 56px;
    align-self: start;
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.staff-sidebar-brand {
    padding: 1.1rem 1rem 0.85rem;
    border-bottom: 1px solid var(--border);
}

.staff-sidebar-home {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
}
.staff-sidebar-home:hover { text-decoration: none; }
.staff-sidebar-home strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.staff-sidebar-home small { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }

.staff-sidebar-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--staff-accent-soft);
    color: var(--staff-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.staff-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.65rem 1rem;
}

.staff-nav-group + .staff-nav-group { margin-top: 1rem; }

.staff-nav-label {
    padding: 0 0.55rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.staff-nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.55rem;
    margin-bottom: 2px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.staff-nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.staff-nav-link.active { background: var(--staff-accent-soft); color: var(--staff-accent); font-weight: 600; }
.staff-nav-link.muted { color: var(--text-soft); font-size: 0.82rem; }

.staff-nav-icon {
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.staff-sidebar-foot {
    padding: 0.75rem 0.65rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.staff-main {
    padding: 1.5rem 1.75rem 2.5rem;
    max-width: 1200px;
}

.staff-main > section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
}

.staff-page-header { margin-bottom: 1.25rem; }

.staff-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
}
.staff-crumb { color: var(--text-muted); text-decoration: none; }
.staff-crumb:hover { color: var(--staff-accent); text-decoration: underline; }
.staff-crumb.current { color: var(--text-soft); font-weight: 500; }
.staff-crumb-sep { color: var(--border-strong); user-select: none; }

.staff-page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.staff-page-header-text h1 { margin: 0; font-size: 1.55rem; }
.staff-page-desc { margin: 0.35rem 0 0; color: var(--text-muted); font-size: 0.92rem; max-width: 52rem; }

.staff-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.staff-loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.staff-spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--border);
    border-top-color: var(--staff-accent);
    border-radius: 50%;
    animation: staff-spin 0.7s linear infinite;
}
@keyframes staff-spin { to { transform: rotate(360deg); } }

.staff-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.staff-empty-icon { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.7; }
.staff-empty h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.staff-empty p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.92rem; }
.staff-empty-actions { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }

.staff-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.staff-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.staff-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.staff-quick-card:hover {
    text-decoration: none;
    border-color: var(--staff-accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.staff-quick-card-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--staff-accent-soft);
    color: var(--staff-accent);
    flex-shrink: 0;
    font-size: 0.95rem;
}
.staff-quick-card strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; color: var(--text); }
.staff-quick-card span { display: block; font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }

.staff-metrics { margin-top: 0.5rem; }

.staff-main .review-card {
    border-left: 3px solid var(--staff-accent);
}

@media (max-width: 960px) {
    .staff-shell { grid-template-columns: 1fr; }
    .staff-sidebar {
        position: static;
        top: auto;
        height: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .staff-sidebar-brand { padding: 0.85rem 1rem; }
    .staff-sidebar-nav {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0.25rem 0 0.5rem;
        overflow: visible;
    }
    .staff-nav-group { display: block; margin: 0; }
    .staff-nav-group + .staff-nav-group { margin-top: 0.5rem; }
    .staff-nav-label {
        display: block;
        padding: 0.45rem 1rem 0.2rem;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-muted);
    }
    .staff-nav-link {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.55rem 1rem;
        border: none;
        border-radius: 0;
        font-size: 0.88rem;
        margin: 0;
    }
    .staff-nav-link:hover { background: var(--surface-2); }
    .staff-sidebar-foot {
        display: block;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid var(--border);
    }
    .staff-main { padding: 1rem; }
}

/* ===================== Eğitmen — kurs ders listesi + video yükleme ===================== */
.courses-page { max-width: 760px; }

.lesson-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.lesson-list-header h3 { margin: 0; }

.lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lesson-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.lesson-row .order {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--staff-accent-soft, var(--primary-soft));
    color: var(--staff-accent, var(--primary));
    font-size: 0.78rem;
    font-weight: 700;
}

.lesson-row .title { margin: 0; font-weight: 600; font-size: 0.95rem; }
.lesson-row .meta { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--text-muted); }

.lesson-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.lesson-video-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.lesson-video-card-body { display: flex; align-items: center; gap: 0.75rem; }
.lesson-video-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--staff-accent-soft, var(--primary-soft));
    font-size: 1rem;
}

.video-upload-page { max-width: 520px; }

.video-upload { display: flex; flex-direction: column; gap: 1rem; }

.video-upload-status {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.video-upload-status.done { border-color: #86efac; background: #f0fdf4; }
.video-upload-status.pending { border-color: #fde68a; background: #fffbeb; }
.video-upload-status-icon { font-size: 1.25rem; line-height: 1; }
.video-upload-status strong { display: block; font-size: 0.92rem; }
.video-upload-status .meta { margin: 0.15rem 0 0; font-size: 0.82rem; }

.video-drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 2rem 1.25rem;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.video-drop-zone:hover,
.video-drop-zone.has-file {
    border-color: var(--staff-accent, var(--primary));
    background: var(--staff-accent-soft, var(--primary-soft));
}
.video-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.video-drop-icon { font-size: 1.75rem; line-height: 1; }
.video-drop-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.video-drop-hint { font-size: 0.8rem; color: var(--text-muted); }

.video-duration-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 500;
}
.video-duration-label input { max-width: 8rem; }

.video-upload-actions { margin-top: 0.25rem; }
.btn.danger-text { color: var(--danger, #b91c1c); }
.btn.danger-text:hover { background: #fef2f2; }

/* ===================== Zümre — kurs inceleme detay ===================== */
.review-course-detail { max-width: 820px; }

.review-course-summary {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.review-course-thumb {
    width: 7rem;
    height: 7rem;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.review-course-meta { flex: 1; min-width: 0; }
.review-hint { margin: 0 0 1rem; }

.review-lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-lesson-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.review-lesson-card.expanded {
    border-color: var(--staff-accent, var(--primary));
    box-shadow: 0 0 0 1px var(--staff-accent-soft, var(--primary-soft));
}

.review-lesson-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}
.review-lesson-head:hover { background: var(--surface-2); }

.review-lesson-order {
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--staff-accent-soft, var(--primary-soft));
    color: var(--staff-accent, var(--primary));
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.review-lesson-title { font-weight: 600; font-size: 0.95rem; }
.review-lesson-chevron { color: var(--text-muted); flex-shrink: 0; }

.review-lesson-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--border);
}
.review-video-wrap { margin-top: 0.75rem; }
.review-video-wrap video { display: block; width: 100%; max-height: 420px; background: #000; }

.staff-nav-link.staff-nav-notifications { position: relative; }
.staff-nav-badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-pill);
    background: var(--staff-accent, var(--primary));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.staff-notif-banner-wrap { margin-bottom: 1rem; }
.staff-notif-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-left: 3px solid var(--staff-accent, var(--primary));
}
.staff-notif-banner strong { display: block; margin-bottom: 0.15rem; }

/* ===================== Admin — plan yönetimi ===================== */
.admin-plan-form { max-width: 820px; display: flex; flex-direction: column; gap: 1rem; }
.admin-plan-form .card h2,
.admin-plan-form .card h3 { margin-top: 0; }

.plan-features-grid { display: flex; flex-direction: column; gap: 0.65rem; }
.plan-feature-row { padding: 0.85rem 1rem; border: 1px solid var(--border); }
.plan-feature-row.enabled { border-color: var(--staff-accent, var(--primary)); background: var(--staff-accent-soft, var(--primary-soft)); }
.plan-feature-head { display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer; }
.plan-feature-head strong { display: block; }
.plan-feature-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.pricing-page .plan-features-summary {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1rem;
}

@media (max-width: 640px) {
    .plan-feature-fields { grid-template-columns: 1fr; }
    .lesson-row { flex-wrap: wrap; }
    .lesson-row-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ===================== Öğrenci paneli (/ogrenci, /dashboard) ===================== */
.row.space-between { justify-content: space-between; flex-wrap: wrap; width: 100%; }
.flex1 { flex: 1; min-width: 0; }

.alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    padding: 0.85rem 1rem;
    margin: 0 0 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    border-left: 4px solid var(--border-strong);
}
.alert > p { margin: 0; flex: 1 1 12rem; }
.alert.warn {
    background: var(--warn-soft);
    border-left-color: var(--warn);
}
.alert.success {
    background: var(--success-soft);
    border-left-color: var(--success);
}
.alert.danger {
    background: var(--danger-soft);
    border-left-color: var(--danger);
}
.alert.info {
    background: var(--primary-soft);
    border-left-color: var(--primary);
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
}
.btn.ghost:hover {
    background: var(--surface-2);
    text-decoration: none;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 1100px;
}

.dashboard-page .hero-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.25rem;
    padding: 1.15rem 1.35rem;
    background:
        linear-gradient(135deg, var(--staff-accent-soft, var(--primary-soft)) 0%, var(--surface) 55%),
        var(--surface);
    border-color: color-mix(in srgb, var(--staff-accent, var(--primary)) 22%, var(--border));
}
.dashboard-page .hero-band h2 {
    margin: 0.1rem 0 0.35rem;
    font-size: 1.45rem;
    line-height: 1.25;
}
.dashboard-page .hero-band .meta { margin: 0; }

.dashboard-page .stat-grid {
    margin: 0.75rem 0 1.1rem;
}

.dashboard-page .progress {
    height: 8px;
    background: var(--surface-2);
    border-radius: 999px;
    overflow: hidden;
    margin: 0.45rem 0;
}
.dashboard-page .progress.sm { height: 6px; }
.dashboard-page .progress .bar {
    display: block;
    height: 100%;
    min-width: 0;
    max-width: 100%;
    background: var(--staff-accent, var(--primary));
    border-radius: 999px;
    transition: width 0.25s ease;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.9fr);
    gap: 1rem;
    align-items: start;
}
.dash-main,
.dash-side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}
.dash-main > .card,
.dash-side > .card { margin: 0; }
.dash-main h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}
.dash-side h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.dash-side h3 a.meta {
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.82rem;
}

.dashboard-page .mini-tile {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    padding: 0.65rem 0.75rem;
    text-align: center;
}
.dashboard-page .mini-tile .meta { margin: 0; font-size: 0.72rem; }
.dashboard-page .mini-tile p {
    margin: 0.2rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.dashboard-page .mini-tile.ok p { color: var(--success); }
.dashboard-page .mini-tile.danger p { color: var(--danger); }
.dashboard-page .mini-tile.muted p { color: var(--text-muted); }

.dashboard-page .subject-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
.dashboard-page .subject-row:last-child { border-bottom: none; padding-bottom: 0; }
.dashboard-page .subject-row:first-of-type { padding-top: 0.15rem; }

.dashboard-page .weak-list {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dashboard-page .weak-list li {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.dashboard-page .weak-list .meta { margin: 0.2rem 0; }
.dashboard-page .weak-pct {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.dashboard-page .weak-pct.danger { color: var(--danger); }

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.quick-actions .btn { justify-content: flex-start; text-align: left; }

.recent-ach {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.recent-ach li {
    margin: 0;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.recent-ach .meta { margin: 0; }

.mini-board {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.mini-board li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
}
.mini-board li.me {
    background: var(--staff-accent-soft, var(--primary-soft));
    font-weight: 600;
}
.mini-board .rank {
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.mini-board .val {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--text-muted);
}

.net-widget .net-tile {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
    background: var(--surface-2);
    text-align: center;
}
.net-widget .net-tile p {
    margin: 0.15rem 0;
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.net-widget .net-tile.total {
    border-color: color-mix(in srgb, var(--staff-accent, var(--primary)) 35%, var(--border));
    background: var(--staff-accent-soft, var(--primary-soft));
}
.net-breakdown { margin-top: 0.75rem; }
.net-breakdown summary { cursor: pointer; }
.net-subjects {
    list-style: none;
    margin: 0.5rem 0 0.85rem;
    padding: 0;
}
.net-subjects li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.net-subjects li:last-child { border-bottom: none; }

@media (max-width: 960px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dashboard-page .hero-band { padding: 1rem 1.1rem; }
    .dashboard-page .hero-band h2 { font-size: 1.25rem; }
    .dashboard-page .stat-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .dashboard-page .stat-grid,
    .dashboard-page .stat-grid.three,
    .dashboard-page .stat-grid.four {
        grid-template-columns: repeat(2, 1fr);
    }
    .alert { flex-direction: column; align-items: flex-start; }
}

