/* =========================================================
   SINAV PLATFORMU — minimal siyah/beyaz arayüz
   ========================================================= */
:root {
    --ink: #090909;
    --ink-soft: #171717;
    --paper: #f6f6f3;
    --surface: #ffffff;
    --muted: #747474;
    --line: #e4e4e1;
    --line-dark: rgba(255,255,255,.18);
    --accent: #ffffff;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body, button, input, select, textarea { font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
button, input, select, textarea { font-size: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { color: #000; background: #d6d6d2; }

/* ------------------- ÜST MENÜ ------------------- */
#siteHeaderMount { position: relative; z-index: 50; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 clamp(20px, 5.4vw, 88px);
    color: #fff;
    background: #050505;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #fff;
}
.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1;
    transition: color .25s ease, background .25s ease, transform .35s ease;
}
.site-brand:hover .brand-mark { color: #000; background: #fff; transform: rotate(-10deg); }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .22em; white-space: nowrap; }
.brand-dot { color: #bdbdbd; }
.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.65vw, 28px);
    margin-left: auto;
}
.nav-link {
    position: relative;
    padding: 8px 0;
    color: #e7e7e7;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .065em;
    white-space: nowrap;
    transition: color .22s ease;
}
.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    content: "";
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-account {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-left: 18px;
    border-left: 1px solid var(--line-dark);
}
.nav-role { color: #a9a9a9; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.nav-user { max-width: 120px; overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout {
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 4px;
    padding: 7px 10px;
    color: #080808;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: color .22s ease, background .22s ease, border-color .22s ease;
}
.nav-logout:hover { color: #fff; background: transparent; border-color: #fff; }
.nav-toggle { display: none; }

/* ------------------- ANA SAYFA / HERO ------------------- */
.home-page { background: #070707; color: #fff; }
.home-page .site-header { border-bottom-color: rgba(255,255,255,.11); }
.home-hero {
    position: relative;
    min-height: min(820px, calc(100svh - 76px));
    min-height: max(650px, calc(100svh - 76px));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    padding: 92px 24px 110px;
    background-color: #050505;
    background-image: url("img/main_bg.jpeg");
    background-position: center 47%;
    background-size: cover;
    background-repeat: no-repeat;
}
.home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, #050505 0%, rgba(5,5,5,.94) 8%, rgba(5,5,5,.62) 29%, rgba(5,5,5,.25) 57%, rgba(5,5,5,.62) 83%, #070707 100%),
        linear-gradient(90deg, rgba(0,0,0,.38), transparent 62%, rgba(0,0,0,.18));
}
.home-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: radial-gradient(ellipse at 50% 44%, transparent 0%, rgba(0,0,0,.10) 38%, rgba(0,0,0,.36) 100%);
    pointer-events: none;
}
.hero-content {
    width: min(100%, 900px);
    margin: 0 auto;
    text-align: center;
    animation: hero-rise .8s cubic-bezier(.2,.65,.25,1) both;
}
.hero-eyebrow, .section-kicker {
    margin: 0 0 22px;
    color: rgba(255,255,255,.69);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .27em;
    text-transform: uppercase;
}
.hero-content h1 {
    max-width: 850px;
    margin: 0 auto;
    font-size: clamp(48px, 7.1vw, 92px);
    font-weight: 500;
    letter-spacing: -.075em;
    line-height: .99;
    text-wrap: balance;
}
.hero-subtitle {
    margin: 27px auto 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: .005em;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
}
.hero-button {
    position: relative;
    min-height: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border: 1px solid #fff;
    border-radius: 3px;
    padding: 14px 20px;
    color: #080808;
    background: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
    transition: transform .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.hero-button span { display: inline-block; font-size: 16px; font-weight: 400; transition: transform .25s ease; }
.hero-button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.hero-button:hover span { transform: translate(3px,-2px); }
.hero-button-primary { color: #080808; background: #fff; }
.hero-button-primary:hover { color: #fff; background: #080808; }
.hero-button-secondary { color: #080808; background: #fff; }
.hero-button-secondary:hover { color: #fff; background: #080808; }
.hero-register-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 23px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
}
.hero-register-links a { color: #fff; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.hero-register-links a:hover { text-decoration-color: #fff; }
.hero-link-divider { color: rgba(255,255,255,.35); }
.scroll-cue {
    position: absolute;
    bottom: 27px;
    left: 50%;
    width: 26px;
    height: 40px;
    display: flex;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 20px;
    transform: translateX(-50%);
    opacity: .8;
}
.scroll-cue span { width: 2px; height: 8px; margin-top: 8px; border-radius: 2px; background: #fff; animation: scroll-down 1.5s ease-in-out infinite; }

/* ------------------- ANA SAYFA DEVAM BÖLÜMÜ ------------------- */
.home-intro { padding: clamp(70px, 10vw, 132px) 24px; background: #f7f7f5; color: #0a0a0a; }
.home-intro-inner { width: min(100%, 1020px); margin: auto; }
.home-intro .section-kicker { color: #777; margin-bottom: 18px; }
.home-intro h2 { max-width: 700px; margin: 0; font-size: clamp(38px, 5.3vw, 68px); font-weight: 500; letter-spacing: -.065em; line-height: 1.06; }
.home-intro-inner > p:not(.section-kicker) { max-width: 590px; margin: 24px 0 0; color: #686868; font-size: 15px; line-height: 1.9; }
.intro-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 45px; }
.intro-card { min-height: 250px; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px); border: 1px solid #dededb; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.intro-card:hover { transform: translateY(-5px); border-color: #b6b6b2; box-shadow: 0 18px 45px rgba(0,0,0,.055); }
.intro-number { color: #818181; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.intro-card h3 { margin: 22px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.intro-card p { max-width: 390px; margin: 0 0 24px; color: #737373; font-size: 13px; line-height: 1.8; }
.intro-card a { display: inline-flex; align-items: center; gap: 14px; margin-top: auto; font-size: 11px; font-weight: 700; text-decoration: none; }
.intro-card a span { transition: transform .2s ease; }
.intro-card a:hover span { transform: translate(3px,-2px); }
.site-footer { display: flex; align-items: center; gap: 24px; padding: 25px clamp(22px, 5.4vw, 88px); color: #bdbdbd; background: #050505; font-size: 11px; }
.site-footer > span { margin-right: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-brand { font-size: 13px; font-weight: 700; letter-spacing: .2em; }
.footer-brand span { color: #999; }

/* ------------------- GENEL SAYFA / FORM KARTLARI ------------------- */
.container {
    width: 100%;
    min-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: clamp(28px, 5vw, 64px) 22px;
}
.logo-area { margin-bottom: 12px; text-align: center; }
.logo-area h1 { margin: 0 0 8px; color: var(--ink); font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -.06em; }
.logo-area p { margin: 0; color: var(--muted); font-size: 14px; }
.card {
    width: min(100%, 500px);
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(0,0,0,.075);
    border-radius: var(--radius);
    color: #111;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}
.card h1, .container > h1 { margin: 0 0 10px; color: #080808; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.06em; line-height: 1.15; }
.card h2, .container > h2 { margin: 0 0 14px; color: #101010; font-size: 24px; font-weight: 600; letter-spacing: -.045em; }
.card p { margin: 0 0 23px; color: #737373; }
.card hr, .container hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.card a:not(.btn), .container a:not(.btn) { color: #222; text-decoration-color: #aaa; text-underline-offset: 4px; transition: color .2s ease; }
.card a:not(.btn):hover, .container a:not(.btn):hover { color: #777; }
.button-group { width: 100%; display: flex; align-items: stretch; gap: 12px; }

/* ------------------- BUTONLAR ------------------- */
.btn, button.btn, a.btn, .home-btn, .logout-btn, .student-logout-btn, .delete-exam-btn, #addQuestionBtn, #examForm > button[type="submit"], #submitExam {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #080808;
    border-radius: 4px;
    padding: 12px 17px;
    color: #080808;
    background: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.btn:hover, .home-btn:hover, .logout-btn:hover, .student-logout-btn:hover, .delete-exam-btn:hover, #addQuestionBtn:hover, #examForm > button[type="submit"]:hover, #submitExam:hover {
    color: #fff;
    background: #080808;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.11);
}
.btn:active, button:active { transform: translateY(0); }
.teacher-btn, .student-btn, .register-btn { color: #080808; background: #fff; border-color: #111; }
.teacher-btn:hover, .student-btn:hover, .register-btn:hover { color: #fff; background: #080808; }
.button-group .btn { flex: 1 1 0; }
button { max-width: 100%; }

/* ------------------- FORM ELEMANLARI ------------------- */
form { width: 100%; }
form > input:not([type="checkbox"]):not([type="radio"]),
form > select,
form > textarea,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 48px;
    display: block;
    margin: 0 0 14px;
    border: 1px solid #dededb;
    border-radius: 4px;
    outline: none;
    padding: 13px 15px;
    color: #101010;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder, textarea::placeholder { color: #929292; }
input:focus, select:focus, textarea:focus { border-color: #444; box-shadow: 0 0 0 3px rgba(0,0,0,.055); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: auto; accent-color: #080808; cursor: pointer; }
textarea { min-height: 110px; resize: vertical; }
label { display: block; margin: 0 0 7px; color: #292929; font-size: 12px; font-weight: 700; text-align: left; }
.remember-row { display: flex; align-items: center; justify-content: flex-start; gap: 9px; margin: 3px 0 17px; text-align: left; }
.remember-row input { margin: 0; }
.remember-row label { display: inline; margin: 0; color: #666; font-size: 12px; font-weight: 500; }
#loginMessage, #registerMessage, #authMessage, #joinMessage, #message, #examMessage { margin-top: 14px; font-size: 13px; line-height: 1.6; }
.auth-switch { display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 15px auto 20px; border: 0; padding: 5px 0; color: #282828; background: transparent; font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-color: #b1b1b1; text-underline-offset: 4px; cursor: pointer; transition: color .2s ease; }
.auth-switch:hover { color: #777; }

/* ------------------- ÖĞRETMEN PANELİ ------------------- */
.teacher-dashboard-card, .student-dashboard-card { width: min(100%, 1120px); max-width: 1120px; text-align: left; }
.teacher-dashboard-card > h1, .student-dashboard-card > h1 { font-size: clamp(30px, 4vw, 44px); }
.teacher-dashboard-card > p, .student-dashboard-card > p { margin: 0 0 22px; }
.teacher-dashboard-card .button-group { max-width: 540px; }
#examList { width: 100%; margin-top: 24px; text-align: left; }
#examList > div:not(.results-header):not(.table-wrapper), #examList .no-results {
    color: #151515;
}
.teacher-exam-card, .no-results {
    margin-top: 16px;
    border: 1px solid #e3e3df;
    border-radius: 12px;
    padding: 23px;
    background: #fafaf8;
}
.teacher-exam-card h3 { margin: 0 0 12px; color: #101010; font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.teacher-exam-card p { margin: 0 0 8px; color: #636363; font-size: 13px; }
.teacher-exam-card .btn, .teacher-exam-card .delete-exam-btn { width: auto; margin: 13px 8px 0 0; }
.home-btn { margin-top: 10px; }
.logout-btn { position: absolute; top: 88px; right: 24px; width: auto; z-index: 2; }
.student-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin: 22px 0; }
.student-actions .home-btn, .student-actions .student-logout-btn { width: auto; margin: 0; }
.student-logout-btn { padding-inline: 18px; }

/* ------------------- SINAV OLUŞTURMA ------------------- */
.container > h1 { width: min(100%, 850px); margin-bottom: 14px; }
#examForm { width: min(100%, 850px); }
#examForm > label { margin-top: 5px; }
#examForm > button { width: auto; margin: 6px 8px 0 0; }
#questionsContainer { width: 100%; }
.question-box {
    width: 100%;
    margin: 16px 0;
    border: 1px solid #e2e2de;
    border-radius: 12px;
    padding: clamp(18px, 3vw, 26px);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.035);
    text-align: left;
}
.question-box h3 { margin: 0 0 18px; color: #111; font-size: 18px; letter-spacing: -.04em; }
.question-box input, .question-box select { margin-bottom: 10px; }
.question-box button { width: auto; margin-top: 5px; }
.question-box .remove-question { border-color: #bdbdbd; color: #555; background: #fff; }
.question-box .remove-question:hover { border-color: #111; color: #fff; background: #111; }

/* ------------------- SINAV SAYFASI ------------------- */
#examTitle { margin-bottom: 16px; }
#examInfo { color: #666; }
#studentName { color: #111; }
.exam-timer {
    position: sticky;
    top: 88px;
    z-index: 5;
    width: fit-content;
    margin: 18px 0 24px;
    border: 1px solid #dadad6;
    border-radius: 6px;
    padding: 9px 14px;
    color: #111;
    background: rgba(255,255,255,.94);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
.exam-timer.time-warning { color: #fff; border-color: #111; background: #111; }
.exam-question {
    margin: 15px 0;
    border: 1px solid #e3e3df;
    border-radius: 12px;
    padding: clamp(19px, 3vw, 27px);
    background: #fff;
    text-align: left;
}
.exam-question h3 { margin: 0 0 17px; color: #111; font-size: 17px; font-weight: 600; line-height: 1.5; }
.exam-question label { display: flex; align-items: flex-start; gap: 10px; margin: 7px 0; border: 1px solid transparent; border-radius: 6px; padding: 11px 12px; color: #333; font-size: 14px; font-weight: 400; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.exam-question label:hover { border-color: #e4e4e0; background: #f7f7f4; }
.exam-question input[type="radio"] { margin-top: 4px; }
.exam-question .short-input { margin-top: 10px; }
#submitExam { width: auto; min-width: 200px; margin-top: 10px; }
.result-box, .result-card { margin-top: 22px; border: 1px solid #e1e1dd; border-radius: 12px; padding: 25px; color: #111; background: #fff; text-align: center; }
.result-box h2, .result-card h2 { margin-bottom: 10px; color: #111; }
.result-box p, .result-card p { margin-bottom: 8px; color: #666; }
.result-card .home-btn { margin-top: 15px; }

/* ------------------- SONUÇ TABLOLARI ------------------- */
.table-wrapper, .results-table-wrap { width: 100%; overflow-x: auto; margin-top: 20px; border: 1px solid #e2e2de; border-radius: 10px; background: #fff; }
.results-table, .student-results-table { width: 100%; min-width: 680px; border-collapse: collapse; color: #222; background: #fff; text-align: left; }
.results-table th, .student-results-table th { padding: 14px 13px; color: #fff; background: #111; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.results-table td, .student-results-table td { padding: 13px; border-bottom: 1px solid #e8e8e5; font-size: 12px; }
.results-table tbody tr:hover, .student-results-table tbody tr:hover { background: #f7f7f4; }
.correct-cell { color: #303030; font-weight: 700; }
.wrong-cell { color: #777; font-weight: 700; }
.score-badge { min-width: 42px; display: inline-block; border: 1px solid #111; border-radius: 20px; padding: 4px 8px; color: #111; background: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.answers-btn { width: auto; min-height: 34px; border: 1px solid #111; border-radius: 4px; padding: 7px 10px; color: #111; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease; }
.answers-btn:hover { color: #fff; background: #111; }
.results-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 22px; text-align: left; }
.results-header h2 { margin: 0 0 5px; color: #111; font-size: 25px; letter-spacing: -.04em; }
.results-header p { margin: 0; color: #717171; }
.results-header .btn { width: auto; }
.student-score-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.student-score-summary > div { display: flex; flex-direction: column; gap: 4px; border: 1px solid #e1e1dc; border-radius: 8px; padding: 16px; background: #fafaf8; }
.student-score-summary strong { color: #777; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.student-score-summary span { color: #111; font-size: 26px; font-weight: 600; letter-spacing: -.05em; }
.answer-detail { margin: 14px 0; border: 1px solid #e2e2de; border-radius: 10px; padding: 20px; background: #fff; }
.answer-detail h3 { margin: 0 0 14px; font-size: 16px; }
.answer-detail p { margin: 8px 0; color: #666; font-size: 13px; }
.correct-answer { color: #222; font-weight: 700; }
.wrong-answer { color: #777; font-weight: 700; }
.empty-answer { color: #888; font-weight: 700; }
.back-btn { border: 0; padding: 5px 0; color: #222; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ------------------- YER TUTUCU SAYFALAR ------------------- */
.placeholder-card { width: min(100%, 720px); text-align: left; }
.placeholder-card .placeholder-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 50%; font-size: 19px; }
.placeholder-card .placeholder-tag { margin: 0 0 10px; color: #888; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.placeholder-card p { max-width: 520px; }
.placeholder-card .btn { width: auto; margin-top: 4px; }

/* ------------------- HAREKET / ERİŞİLEBİLİRLİK ------------------- */
:focus-visible { outline: 2px solid #888; outline-offset: 4px; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll-down { 0%, 100% { opacity: .4; transform: translateY(0); } 50% { opacity: 1; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 1180px) {
    .site-header { gap: 18px; padding-inline: 24px; }
    .primary-nav { gap: 14px; }
    .nav-link { font-size: 10px; letter-spacing: .025em; }
    .nav-user { display: none; }
}
@media (max-width: 1100px) {
    .site-header { min-height: 70px; }
    .nav-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-left: auto;
        border: 1px solid rgba(255,255,255,.35);
        border-radius: 4px;
        padding: 0;
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle span { width: 16px; height: 1px; display: block; background: #fff; transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle.is-open span:first-child { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:last-child { transform: translateY(-6px) rotate(-45deg); }
    .primary-nav {
        position: absolute;
        top: calc(100% - 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 18px;
        border-top: 1px solid rgba(255,255,255,.12);
        border-bottom: 1px solid rgba(255,255,255,.14);
        background: #050505;
    }
    .primary-nav.is-open { display: flex; }
    .nav-link { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 11px; }
    .nav-link:last-child { border-bottom: 0; }
    .nav-link::after { display: none; }
    .nav-account { gap: 8px; padding-left: 12px; }
    .nav-role { display: none; }
    .nav-logout { padding: 8px; }
    .home-hero { min-height: max(620px, calc(100svh - 70px)); background-position: center center; }
}
@media (max-width: 640px) {
    .site-header { min-height: 66px; gap: 10px; padding-inline: 16px; }
    .brand-mark { width: 31px; height: 31px; }
    .brand-name { font-size: 11px; letter-spacing: .18em; }
    .nav-account { padding-left: 8px; border-left: 0; }
    .nav-logout { min-height: 34px; padding: 7px 8px; font-size: 9px; }
    .home-hero { min-height: max(610px, calc(100svh - 66px)); padding: 78px 20px 95px; background-position: 56% center; }
    .home-hero::before { background: linear-gradient(180deg, #050505 0%, rgba(5,5,5,.87) 15%, rgba(5,5,5,.42) 43%, rgba(5,5,5,.57) 75%, #070707 100%); }
    .hero-eyebrow { margin-bottom: 18px; font-size: 9px; letter-spacing: .2em; }
    .hero-content h1 { font-size: clamp(43px, 13vw, 64px); letter-spacing: -.075em; }
    .hero-subtitle { margin-top: 22px; font-size: 13px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
    .hero-button { width: 100%; min-height: 49px; padding: 13px 16px; }
    .hero-register-links { max-width: 340px; margin: 20px auto 0; font-size: 10px; }
    .scroll-cue { bottom: 20px; }
    .home-intro { padding: 67px 20px; }
    .home-intro h2 { font-size: 42px; }
    .intro-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
    .intro-card { min-height: 220px; }
    .site-footer { flex-wrap: wrap; gap: 12px 18px; padding: 22px 20px; }
    .site-footer > span { width: 100%; order: 3; margin: 0; }
    .container { min-height: calc(100svh - 66px); gap: 14px; padding: 28px 15px; }
    .card { padding: 25px 20px; border-radius: 13px; }
    .button-group { flex-direction: column; }
    .button-group .btn { width: 100%; }
    .teacher-dashboard-card, .student-dashboard-card { padding: 22px 17px; }
    .teacher-exam-card { padding: 17px; }
    .teacher-exam-card .btn, .teacher-exam-card .delete-exam-btn { width: 100%; margin-right: 0; }
    .student-score-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .results-header { align-items: flex-start; flex-direction: column; }
    .results-header .btn { width: 100%; }
    .logout-btn { top: 74px; right: 12px; min-height: 36px; padding: 7px 10px; font-size: 10px; }
}


/* ------------------- TEK TEK SORU AKIŞI ------------------- */
.exam-progress {
    width: 100%;
    margin: 22px 0 18px;
    padding: 15px 17px;
    border: 1px solid #e4e4e1;
    border-radius: 10px;
    background: rgba(255,255,255,.86);
}
.exam-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}
#questionProgress {
    color: #111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .015em;
}
.exam-progress-hint {
    color: #777;
    font-size: 11px;
}
.exam-progress-track {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9e9e6;
}
.exam-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #111;
    transition: width .3s ease;
}
#questionsContainer { min-height: 230px; }
.exam-question {
    animation: question-enter .25s ease both;
}
.exam-question-kicker {
    margin-bottom: 13px;
    color: #777;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}
.exam-answer-options { display: grid; gap: 9px; }
.exam-question .exam-answer-options label {
    align-items: center;
    min-height: 48px;
    margin: 0;
    border: 1px solid #e7e7e3;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}
.exam-question .exam-answer-options label:has(input:checked) {
    border-color: #111;
    background: #f4f4f1;
}
.exam-question .exam-answer-options label span { flex: 1; }
.exam-question .exam-answer-options input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #111;
}
.question-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}
.question-nav-button {
    min-width: 142px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #111;
    border-radius: 4px;
    padding: 11px 16px;
    color: #111;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
}
.question-nav-button:hover:not(:disabled) {
    color: #fff;
    background: #111;
    transform: translateY(-2px);
}
.question-nav-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}
#submitExam { margin: 0 0 0 auto; }
@keyframes question-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    .exam-progress { margin-top: 15px; padding: 13px; }
    .exam-progress-hint { max-width: 125px; text-align: right; }
    #questionsContainer { min-height: 250px; }
    .question-navigation { display: grid; grid-template-columns: 1fr 1fr; }
    .question-nav-button { min-width: 0; width: 100%; padding-inline: 8px; }
    #submitExam { grid-column: 1 / -1; width: 100%; margin: 0; }
}


/* ------------------- AYRI SINAV SONUCU EKRANI ------------------- */
.result-page-body { background: #f7f7f5; }
.exam-result-container {
    width: 100%;
    min-height: calc(100svh - 72px);
    display: grid;
    place-items: center;
    padding: clamp(26px, 5vw, 64px) 18px;
}
.exam-result-panel {
    width: min(100%, 650px);
    padding: clamp(25px, 5vw, 54px);
    border: 1px solid #e4e4e0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .06);
    text-align: center;
    animation: resultPanelIn .45s ease both;
}
@keyframes resultPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: #676767;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .19em;
}
.result-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #111; }
.result-status-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border: 1px solid #d6d6d2;
    border-radius: 50%;
    color: #111;
    background: #f7f7f5;
    font-size: 25px;
    font-weight: 500;
}
.exam-result-panel h1 {
    margin: 0 0 10px;
    color: #0a0a0a;
    font-size: clamp(30px, 5vw, 43px);
    font-weight: 600;
    letter-spacing: -.065em;
    line-height: 1.08;
}
.exam-result-panel p { color: #737373; }
.exam-result-panel .result-overline {
    margin: 0 0 10px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.exam-result-panel .result-lead { margin: 0 0 27px; font-size: 14px; }
.result-score-wrap {
    margin: 0 0 22px;
    padding: 24px 20px 22px;
    border: 1px solid #ededeb;
    border-radius: 12px;
    background: #fafaf9;
}
.result-score-label { display: block; color: #797979; font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.result-score { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin: 5px 0 16px; color: #090909; }
.result-score > span { font-size: clamp(48px, 9vw, 70px); font-weight: 600; letter-spacing: -.075em; line-height: 1.1; }
.result-score small { color: #777; font-size: 16px; font-weight: 500; }
.result-score-track { height: 5px; overflow: hidden; border-radius: 10px; background: #e7e7e4; }
.result-score-track span { display: block; height: 100%; border-radius: inherit; background: #111; transition: width .7s ease; }
.result-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.result-stat { display: grid; grid-template-columns: auto 1fr; align-items: center; justify-items: start; column-gap: 8px; row-gap: 8px; padding: 14px; border: 1px solid #e8e8e5; border-radius: 10px; text-align: left; }
.result-stat-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #111; background: #f0f0ed; font-size: 13px; font-weight: 800; }
.result-stat-label { color: #777; font-size: 12px; }
.result-stat strong { grid-column: 1 / -1; color: #111; font-size: 25px; font-weight: 600; letter-spacing: -.04em; }
.result-stat-mark.correct { color: #245c3b; background: #e8f3ec; }
.result-stat-mark.wrong { color: #8a3030; background: #f8eaea; }
.result-stat-mark.empty { color: #666; background: #eeeeeb; }
.result-complete-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 24px; padding-top: 17px; border-top: 1px solid #eeeeeb; color: #666; font-size: 11px; }
.result-complete-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.result-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: #111; }
.result-primary-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 13px 18px; border: 1px solid #080808; border-radius: 5px; color: #fff !important; background: #080808; text-decoration: none; font-size: 12px; font-weight: 700; transition: color .2s ease, background .2s ease, transform .2s ease; }
.result-primary-action:hover { color: #080808 !important; background: #fff; transform: translateY(-2px); }
.result-primary-action span { font-size: 17px; transition: transform .2s ease; }
.result-primary-action:hover span { transform: translateX(3px); }
@media (max-width: 520px) {
    .exam-result-panel { border-radius: 13px; }
    .result-stats-grid { gap: 6px; }
    .result-stat { grid-template-columns: 1fr; justify-items: center; gap: 7px; padding: 12px 7px; text-align: center; }
    .result-stat strong { grid-column: auto; font-size: 23px; }
    .result-complete-meta { justify-content: center; text-align: center; }
}

/* ------------------- ÖĞRENCİ XP / LEVEL SİSTEMİ ------------------- */
.student-level-card {
    margin: 24px 0 28px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid #252525;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #090909, #202020);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .08);
}
.student-level-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.student-level-eyebrow { margin: 0 0 7px !important; color: #a8a8a8 !important; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.student-level-top h2 { margin: 0; color: #fff; font-size: clamp(25px, 4vw, 34px); font-weight: 600; letter-spacing: -.06em; }
.student-level-top h2 span { color: #fff; }
.student-total-xp { display: grid; gap: 4px; text-align: right; }
.student-total-xp strong { color: #fff; font-size: clamp(21px, 3vw, 29px); font-weight: 650; letter-spacing: -.04em; }
.student-total-xp span { color: #aaa; font-size: 11px; }
.student-level-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #d4d4d4; font-size: 11px; font-weight: 650; }
.student-level-track, .result-level-track { height: 7px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.17); }
.student-level-track span, .result-level-track span { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .5s ease; }
.student-level-caption { margin: 13px 0 0 !important; color: #aaa !important; font-size: 11px; line-height: 1.6; }

/* Sınav tamamlandıktan sonra açılan XP ödül alanı */
.result-xp-card { margin: 0 0 24px; padding: 22px; border: 1px solid #242424; border-radius: 12px; color: #fff; background: #101010; text-align: left; }
.result-xp-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-xp-label { color: #aaa; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.result-difficulty-pill { padding: 6px 9px; border: 1px solid #414141; border-radius: 99px; color: #e6e6e6; font-size: 10px; font-weight: 650; }
.result-xp-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 15px 0 12px; }
.result-xp-earned { color: #fff; font-size: clamp(38px, 7vw, 53px); font-weight: 650; letter-spacing: -.07em; line-height: 1; }
.result-xp-earned span { color: #aaa; font-size: .45em; letter-spacing: -.01em; }
.result-xp-level { display: grid; justify-items: end; gap: 5px; }
.result-xp-level strong { color: #fff; font-size: 18px; font-weight: 650; }
.result-xp-level > span:not(.result-level-up-badge) { color: #aaa; font-size: 11px; }
.result-level-up-badge { padding: 4px 7px; border-radius: 3px; color: #080808; background: #fff; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.result-xp-caption, .result-level-up-message { margin: 0 0 18px !important; color: #b4b4b4 !important; font-size: 11px; line-height: 1.6; }
.result-level-up-message { color: #fff !important; font-weight: 650; }
.result-level-progress-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #c7c7c7; font-size: 10px; font-weight: 650; }
.result-level-track { background: #383838; }
.result-level-track span { background: #fff; }
@media (max-width: 520px) {
    .student-level-card { padding: 19px 16px; }
    .student-level-top { align-items: flex-start; }
    .result-xp-card { padding: 18px 15px; }
    .result-xp-topline { align-items: flex-start; flex-direction: column; }
    .result-xp-main { align-items: flex-start; }
    .result-xp-level strong { font-size: 16px; }
}
.difficulty-xp-hint { margin: -5px 0 18px; color: #737373; font-size: 11px; line-height: 1.5; }

/* ------------------- BULUT PROFİL SİSTEMİ ------------------- */
.nav-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: #242424;
}
.nav-account .nav-user { text-decoration: none; }
.profile-page { background: #f4f4f1; }
.profile-page-container, .profile-edit-container { width: min(100% - 40px, 920px); max-width: 920px; margin: 0 auto; padding-top: clamp(35px, 6vw, 70px); padding-bottom: 80px; }
.profile-page-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.profile-kicker { margin: 0 0 10px; color: #858580; font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.profile-page-topline h1 { margin: 0; color: #080808; font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -.075em; line-height: 1.05; }
.profile-page-subtitle { max-width: 570px; margin: 12px 0 0; color: #73736e; font-size: 13px; line-height: 1.7; }
.profile-back-link { display: inline-flex; align-items: center; gap: 16px; padding: 11px 0; color: #111; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.profile-back-link span { font-size: 17px; transition: transform .2s ease; }
.profile-back-link:hover span { transform: translate(3px,-2px); }
.profile-status { margin: 15px 0; color: #777; font-size: 13px; }
.profile-main-card, .profile-edit-card, .profile-error-card { overflow: hidden; border: 1px solid #e0e0dc; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.045); }
.profile-cover { height: 154px; background: linear-gradient(125deg,#050505 0%,#202020 56%,#41413e 100%); position: relative; }
.profile-cover::after { position: absolute; inset: 0; content: ""; opacity: .3; background: radial-gradient(circle at 82% 22%, rgba(255,255,255,.35), transparent 27%), linear-gradient(110deg,transparent 45%,rgba(255,255,255,.06) 45.2%,transparent 75%); }
.profile-main-content { padding: 0 clamp(21px, 5vw, 48px) 38px; }
.profile-identity-row { display: flex; align-items: flex-end; gap: 24px; margin-top: -56px; position: relative; z-index: 1; }
.profile-avatar { width: 122px; height: 122px; flex: 0 0 122px; object-fit: cover; border: 5px solid #fff; border-radius: 50%; background: #ededeb; box-shadow: 0 5px 20px rgba(0,0,0,.10); }
.profile-identity-copy { min-width: 0; flex: 1; padding: 0 0 7px; }
.profile-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.profile-name-line h2 { margin: 0; color: #090909; font-size: clamp(23px, 4vw, 34px); font-weight: 650; letter-spacing: -.06em; overflow-wrap: anywhere; }
.profile-role-pill { padding: 5px 8px; border: 1px solid #ddd; border-radius: 4px; color: #5c5c57; background: #f6f6f3; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.profile-bio { max-width: 620px; min-height: 24px; margin: 11px 0 0 !important; color: #6f6f6a !important; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-level-panel { margin: 32px 0 34px; padding: 23px clamp(17px, 3vw, 27px); border: 1px solid #222; border-radius: 11px; color: #fff; background: linear-gradient(125deg,#080808,#202020); }
.profile-level-top { display: flex; align-items: center; gap: 17px; margin-bottom: 20px; }
.profile-level-medallion { width: 64px; height: 64px; flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #737373; border-radius: 50%; color: #fff; background: rgba(255,255,255,.04); }
.profile-level-medallion span { color: #bdbdbd; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.profile-level-medallion strong { font-size: 25px; font-weight: 650; line-height: 1.2; }
.profile-small-label { margin: 0 0 5px !important; color: #92928d !important; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.profile-level-copy h3 { margin: 0; color: #fff; font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.profile-level-copy > p:last-child { margin: 4px 0 0 !important; color: #b8b8b3 !important; font-size: 11px; }
.profile-progress-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #ddd; font-size: 10px; font-weight: 650; }
.profile-progress-track { height: 7px; overflow: hidden; border-radius: 20px; background: #414141; }
.profile-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; transition: width .45s ease; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 33px 0 14px; padding-top: 5px; }
.profile-section-heading .profile-small-label { color: #8d8d87 !important; }
.profile-section-heading h3 { margin: 0; color: #111; font-size: 23px; font-weight: 600; letter-spacing: -.05em; }
.profile-coming-soon { padding: 6px 8px; border: 1px solid #e2e2de; border-radius: 4px; color: #85857f; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.profile-badges-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.profile-badge-empty, .profile-badge-item { min-height: 86px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #e5e5e1; border-radius: 9px; background: #fafaf8; }
.profile-badge-empty > span, .profile-badge-symbol { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border: 1px solid #deded9; border-radius: 50%; color: #6f6f6a; background: #fff; font-size: 22px; }
.profile-badge-empty p { margin: 0 !important; color: #7b7b75 !important; font-size: 11px; line-height: 1.6; }
.profile-badge-item strong { display: block; color: #191919; font-size: 12px; }
.profile-badge-item p { margin: 3px 0 0 !important; color: #7b7b75 !important; font-size: 10px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 23px; border-top: 1px solid #e7e7e3; }
.profile-primary-button, .profile-secondary-button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 12px 16px; border: 1px solid #0a0a0a; border-radius: 5px; font-family: inherit; font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.profile-primary-button { color: #fff !important; background: #080808; }
.profile-secondary-button { color: #111 !important; background: #fff; }
.profile-primary-button:hover { transform: translateY(-2px); color: #080808 !important; background: #fff; }
.profile-secondary-button:hover { transform: translateY(-2px); color: #fff !important; background: #080808; }
.profile-primary-button span, .profile-secondary-button span { font-size: 16px; }
.profile-action-message { margin: 10px 0 0 !important; color: #4e6a46 !important; font-size: 11px; }
.profile-error-card { padding: clamp(24px, 5vw, 46px); text-align: left; }
.profile-error-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid #deded9; border-radius: 50%; color: #111; font-size: 20px; }
.profile-error-card h2 { margin: 0 0 10px; font-size: clamp(23px, 4vw, 31px); letter-spacing: -.05em; }
.profile-error-card > p { max-width: 650px; color: #71716b; font-size: 13px; line-height: 1.7; }
.profile-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 20px; }
.profile-secondary-link { color: #171717; font-size: 11px; font-weight: 700; text-underline-offset: 4px; }
.profile-setup-hint { margin: 24px 0 0 !important; padding-top: 15px; border-top: 1px solid #e5e5e0; font-size: 10px !important; }

/* Profil düzenleyici */
.profile-edit-card { padding: clamp(22px, 4.5vw, 40px); }
.profile-edit-avatar-row { display: flex; align-items: center; gap: 25px; }
.profile-avatar-wrap { position: relative; flex: 0 0 auto; }
.profile-avatar-edit { display: block; width: 112px; height: 112px; border: 1px solid #deded9; box-shadow: none; }
.profile-avatar-camera { position: absolute; right: 0; bottom: 2px; width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #080808; font-size: 17px; }
.profile-edit-avatar-copy { min-width: 0; }
.profile-edit-avatar-copy h2 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.04em; }
.profile-edit-avatar-copy p { max-width: 570px; margin: 0 0 13px !important; color: #767670 !important; font-size: 11px; line-height: 1.7; }
.profile-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.profile-file-button { display: inline-flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #171717; border-radius: 4px; color: #fff; background: #080808; font-size: 10px; font-weight: 750; cursor: pointer; transition: color .2s ease, background .2s ease; }
.profile-file-button:hover { color: #080808; background: #fff; }
.profile-file-name { display: block; margin-top: 8px; color: #8a8a84; font-size: 9px; }
.profile-form-divider { height: 1px; margin: 30px 0 26px; background: #e5e5e1; }
.profile-form-label { display: block; margin: 19px 0 8px; color: #30302d; font-size: 11px; font-weight: 750; }
.profile-form-input { width: 100%; min-height: 47px; display: block; margin: 0; padding: 12px 13px; border: 1px solid #dcdcd7; border-radius: 5px; outline: none; color: #111; background: #fff; font-family: inherit; font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.profile-form-input:focus { border-color: #333; box-shadow: 0 0 0 3px rgba(0,0,0,.055); }
.profile-bio-input { min-height: 120px; resize: vertical; line-height: 1.7; }
.profile-bio-counter { margin-top: 6px; color: #8d8d87; text-align: right; font-size: 9px; }
.profile-edit-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 27px; padding-top: 20px; border-top: 1px solid #e6e6e1; }
.profile-edit-message { flex: 1; margin: 0 !important; color: #537349 !important; font-size: 11px; line-height: 1.6; }
.profile-edit-message.is-error { color: #b12222 !important; }
.profile-edit-message.is-success { color: #537349 !important; }
.profile-edit-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.profile-edit-buttons .profile-primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
@media (max-width: 620px) {
    .profile-page-container, .profile-edit-container { width: min(100% - 28px, 920px); padding-top: 30px; }
    .profile-page-topline { align-items: flex-start; }
    .profile-back-link { font-size: 10px; }
    .profile-cover { height: 120px; }
    .profile-main-content { padding: 0 19px 25px; }
    .profile-identity-row { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: -49px; }
    .profile-avatar { width: 104px; height: 104px; flex-basis: 104px; }
    .profile-identity-copy { padding: 0; }
    .profile-badges-grid { grid-template-columns: 1fr; }
    .profile-actions { flex-direction: column; }
    .profile-actions > * { width: 100%; }
    .profile-edit-avatar-row { align-items: flex-start; flex-direction: column; gap: 16px; }
    .profile-edit-bottom { align-items: stretch; flex-direction: column; }
    .profile-edit-buttons { width: 100%; }
    .profile-edit-buttons > * { flex: 1; }
    .profile-level-top { align-items: flex-start; }
    .profile-level-medallion { width: 57px; height: 57px; flex-basis: 57px; }
}
.result-student-profile-cell { display: flex; align-items: center; gap: 9px; min-width: 145px; }
.result-student-avatar { width: 30px; height: 30px; flex: 0 0 30px; object-fit: cover; border: 1px solid #e1e1dc; border-radius: 50%; background: #eee; }
.result-student-profile-link { color: #111; font-weight: 700; text-decoration: none; text-underline-offset: 3px; }
.result-student-profile-link:hover { text-decoration: underline; }

/* ------------------- SINIF SİSTEMİ ------------------- */
.class-page-container,
.notifications-page-container { width: min(1120px, calc(100% - 40px)); margin: 52px auto 90px; }
.class-page-intro { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.class-page-intro h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.065em; font-weight: 500; }
.class-page-intro h1 span { color: #999; }
.class-page-intro > p:last-child { max-width: 620px; margin: 18px auto 0; color: #777; font-size: 14px; line-height: 1.8; }
.class-eyebrow { margin: 0 0 12px; color: #8b8b8b; font-size: 9px; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.class-create-card, .class-list-card, .class-join-card, .notifications-panel { margin: 22px 0; padding: clamp(22px, 4vw, 38px); border: 1px solid #e4e4e4; border-radius: 12px; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.035); }
.class-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.class-section-heading h2 { margin: 0; color: #111; font-size: clamp(21px, 2.5vw, 28px); font-weight: 550; letter-spacing: -.04em; }
.class-heading-symbol { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dedede; border-radius: 50%; color: #111; font-size: 24px; }
.class-create-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 15px; }
.class-create-form label { grid-column: 1 / -1; color: #4b4b4b; font-size: 12px; font-weight: 700; }
.class-create-form input { width: 100%; min-width: 0; min-height: 49px; border: 1px solid #d6d6d6; border-radius: 5px; padding: 12px 14px; background: #fff; color: #111; outline: none; font: inherit; transition: border-color .2s, box-shadow .2s; }
.class-create-form input:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,.07); }
.class-primary-button, .class-small-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid #111; border-radius: 4px; padding: 11px 16px; color: #fff; background: #111; text-decoration: none; font-size: 11px; font-weight: 750; letter-spacing: .025em; cursor: pointer; transition: transform .2s, color .2s, background .2s, border-color .2s; white-space: nowrap; }
.class-primary-button:hover, .class-small-button:hover { transform: translateY(-2px); color: #111; background: #fff; }
.class-primary-button:disabled, .class-small-button:disabled { opacity: .55; cursor: wait; transform: none; }
.class-small-button { min-height: 36px; padding: 8px 12px; border-color: #d8d8d8; color: #111; background: #fff; }
.class-small-button:hover { border-color: #111; color: #fff; background: #111; }
.class-status-message { min-height: 1.4em; margin: 12px 0 0; color: #595959; font-size: 12px; line-height: 1.6; white-space: pre-line; }
.class-status-message.is-error, .class-error-text { color: #b42318; }
.class-status-message.is-success { color: #217346; }
.class-muted { color: #777; font-size: 13px; line-height: 1.7; }
.class-empty-state, .class-empty-roster { margin: 0; border: 1px dashed #d6d6d6; border-radius: 7px; padding: 25px; color: #777; font-size: 13px; line-height: 1.7; text-align: center; }
.class-list-grid { display: grid; gap: 10px; }
.class-list-item { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 17px; border: 1px solid #e6e6e6; border-radius: 7px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.class-list-item:hover { border-color: #bcbcbc; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.04); }
.class-list-item-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #dedede; border-radius: 6px; color: #111; font-size: 12px; font-weight: 800; }
.class-list-item-copy { flex: 1 1 auto; min-width: 0; }
.class-list-item-copy h3 { margin: 0; overflow-wrap: anywhere; color: #171717; font-size: 15px; font-weight: 700; }
.class-list-item-copy p { margin: 7px 0 0; color: #737373; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.class-list-item-copy p strong { color: #111; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.class-details-mount { margin: 24px 0; scroll-margin-top: 28px; }
.class-details-card { padding: clamp(22px, 4vw, 38px); border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.035); }
.class-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.class-detail-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 550; line-height: 1.1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.class-detail-subtitle { margin: 9px 0 0; color: #777; font-size: 12px; }
.class-invite-code-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0; border: 1px solid #dedede; border-radius: 7px; padding: 18px; background: #fafafa; }
.class-invite-code-card > div { display: grid; gap: 7px; }
.class-mini-label { display: block; color: #858585; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.class-invite-code-card strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(21px, 4vw, 30px); letter-spacing: .18em; color: #101010; }
.class-average-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0 30px; padding: 23px; border-radius: 8px; color: #fff; background: #0b0b0b; }
.class-average-card > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.class-average-card .class-mini-label { color: #a5a5a5; }
.class-average-card strong { font-size: clamp(33px, 5vw, 46px); font-weight: 550; line-height: 1; letter-spacing: -.07em; }
.class-average-card strong small { color: #929292; font-size: 14px; letter-spacing: 0; }
.class-average-caption { color: #aaa; font-size: 11px; }
.class-average-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #555; border-radius: 50%; color: #fff; font-size: 22px; }
.class-roster-section { margin-top: 27px; }
.class-roster-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.class-roster-heading h3 { margin: 0; font-size: 16px; font-weight: 750; }
.class-roster-heading span { min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 6px; border-radius: 20px; color: #555; background: #ededed; font-size: 10px; font-weight: 800; }
.class-roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.class-person-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #e7e7e7; border-radius: 7px; color: #151515; text-decoration: none; background: #fff; transition: border-color .2s, transform .2s, background .2s; }
.class-person-card:hover { border-color: #999; background: #fafafa; transform: translateY(-1px); }
.class-person-avatar { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; border: 1px solid #e4e4e4; background: #f5f5f5; }
.class-person-copy { min-width: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; }
.class-person-copy strong { overflow: hidden; color: #171717; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.class-person-copy small, .class-person-level { color: #858585; font-size: 10px; }
.class-person-level { margin-top: 1px; color: #555; }
.class-person-arrow { color: #8a8a8a; font-size: 15px; }

/* Bildirimler */
.notification-count { min-width: 17px; height: 17px; display: inline-grid; place-items: center; margin-left: 4px; border-radius: 999px; padding: 0 4px; color: #111; background: #fff; font-size: 9px; font-weight: 850; letter-spacing: 0; vertical-align: middle; }
.notification-count[hidden] { display: none; }
.notifications-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.notifications-list { display: grid; gap: 10px; }
.notification-item { display: flex; align-items: flex-start; gap: 15px; padding: 20px; border: 1px solid #e4e4e4; border-radius: 8px; background: #fff; }
.notification-item.is-unread { border-color: #bdbdbd; background: #fbfbfb; }
.notification-type-icon { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #dedede; border-radius: 50%; color: #111; font-size: 18px; }
.notification-exam-icon { color: #fff; background: #111; border-color: #111; }
.notification-copy { flex: 1 1 auto; min-width: 0; }
.notification-title-line { display: flex; align-items: center; gap: 9px; }
.notification-title-line h3 { margin: 0; color: #111; font-size: 14px; font-weight: 750; line-height: 1.5; }
.notification-unread-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #111; }
.notification-copy > p { margin: 7px 0; color: #676767; font-size: 12px; line-height: 1.7; }
.notification-copy time { color: #8a8a8a; font-size: 10px; }
.notification-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.notification-mark-read { border: 0; padding: 7px 0; color: #666; background: transparent; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.notification-completed-label { color: #555; font-size: 11px; font-weight: 700; }
.notifications-empty { padding: 48px 20px; text-align: center; }
.notifications-empty > span { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid #ddd; border-radius: 50%; font-size: 18px; }
.notifications-empty h3 { margin: 0; font-size: 18px; }
.notifications-empty p { margin: 8px auto 0; max-width: 420px; color: #777; font-size: 12px; line-height: 1.8; }

/* Sınavı sınıfa gönder seçeneği */
.class-publish-panel { margin: 22px 0; padding: 20px; border: 1px solid #e0e0e0; border-radius: 7px; background: #fafafa; }
.class-publish-panel h2 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.03em; }
.class-publish-panel p { margin: 0 0 13px; color: #727272; font-size: 12px; line-height: 1.7; }
.class-publish-panel label { display: block; margin-bottom: 7px; color: #383838; font-size: 12px; font-weight: 700; }
.class-publish-panel select { width: 100%; min-height: 45px; border: 1px solid #d3d3d3; border-radius: 4px; padding: 10px 12px; color: #111; background: #fff; font: inherit; }
.class-publish-hint { margin: 9px 0 0 !important; color: #555 !important; }

@media (max-width: 700px) {
    .class-page-container, .notifications-page-container { width: min(100% - 24px, 1120px); margin-top: 30px; }
    .class-create-form { grid-template-columns: 1fr; }
    .class-create-form label { grid-column: auto; }
    .class-create-form .class-primary-button { width: 100%; }
    .class-section-heading { align-items: flex-start; }
    .class-detail-heading { align-items: flex-start; flex-direction: column; }
    .class-invite-code-card { align-items: flex-start; flex-direction: column; }
    .class-invite-code-card .btn { width: 100%; }
    .class-list-item { align-items: flex-start; flex-wrap: wrap; }
    .class-list-item-copy { width: calc(100% - 60px); }
    .class-list-item > .btn { width: 100%; }
    .notifications-actions { width: 100%; }
    .notifications-actions .btn { flex: 1 1 auto; white-space: normal; }
    .notification-item { padding: 15px; gap: 10px; }
    .notification-type-icon { width: 35px; height: 35px; }
    .notification-actions .class-primary-button { width: 100%; }
}
.class-detail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
@media (max-width: 700px) { .class-detail-actions { justify-content: flex-start; width: 100%; } }
