/* =========================================================
   DERSNOTLARIM - STİLLER
   ========================================================= */

:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #718096;
    --border: #e6eaf0;

    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #eef2ff;

    --success: #16a34a;
    --success-light: #ecfdf3;

    --danger: #dc2626;
    --danger-light: #fef2f2;

    --warning: #d97706;
    --warning-light: #fff7ed;

    --info: #2563eb;
    --info-light: #eff6ff;

    --sidebar: #0f1424;

    --radius: 16px;
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .6;
}


/* =========================================================
   GİRİŞ / KAYIT EKRANI
   ========================================================= */

.auth-screen {
    position: fixed;

    inset: 0;

    z-index: 9000;

    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(139,92,246,.35), transparent 60%),
        radial-gradient(1000px 500px at 110% 110%, rgba(79,70,229,.45), transparent 60%),
        linear-gradient(135deg, #111536, #312e81 55%, #4f46e5);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    flex-direction: column;
}

.auth-card {
    width: min(420px, 100%);

    background: var(--card);

    border-radius: 24px;

    padding: 32px;

    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.auth-brand {
    text-align: center;

    margin-bottom: 22px;
}

.auth-brand h1 {
    font-size: 24px;

    margin-top: 12px;
}

.auth-brand p {
    color: var(--muted);

    font-size: 13px;

    margin-top: 4px;
}

.auth-brand .brand-icon {
    margin: 0 auto;
}

.auth-tabs {
    display: flex;

    background: #f1f3f9;

    border-radius: 12px;

    padding: 4px;

    gap: 4px;

    margin-bottom: 18px;
}

.auth-tab {
    flex: 1;

    border: none;

    background: transparent;

    padding: 10px;

    border-radius: 9px;

    color: var(--muted);

    font-weight: 600;

    transition: .2s;
}

.auth-tab.active {
    background: var(--primary);

    color: white;

    box-shadow: 0 6px 16px rgba(79,70,229,.35);
}

.auth-error {
    display: none;

    background: var(--danger-light);

    color: var(--danger);

    border: 1px solid #fecaca;

    border-radius: 10px;

    padding: 11px 13px;

    font-size: 13px;

    margin-bottom: 14px;
}

.auth-form {
    display: flex;

    flex-direction: column;
}

.field-label {
    font-size: 12px;

    font-weight: 600;

    color: var(--muted);

    margin-bottom: 6px;
}

.field-input {
    border: 1px solid var(--border);

    background: #fbfcff;

    border-radius: 11px;

    padding: 12px 14px;

    outline: none;

    margin-bottom: 14px;

    transition: .2s;
}

.field-input:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.auth-submit {
    width: 100%;

    margin-top: 4px;
}

.forgot-link {
    text-align: center;

    color: var(--muted);

    font-size: 13px;

    margin-top: 14px;
}

.auth-note {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;

    text-align: center;

    margin-top: 14px;
}

.auth-footer {
    color: rgba(255,255,255,.65);

    font-size: 12px;

    margin-top: 20px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;

    background: var(--sidebar);
    color: white;

    display: flex;
    flex-direction: column;

    z-index: 1000;

    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #6366f1, #8b5cf6);

    font-size: 20px;
    font-weight: 800;

    color: white;

    flex-shrink: 0;
}

.brand strong {
    display: block;
    font-size: 17px;
}

.brand span {
    display: block;
    margin-top: 3px;

    font-size: 12px;
    color: #9ca3af;
}

.main-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 12px;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    width: 100%;

    border: none;
    background: transparent;
    color: #9ca3af;

    padding: 13px 14px;
    margin-bottom: 5px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    gap: 12px;

    text-align: left;

    transition: .2s;
}

.nav-item:hover {
    background: rgba(255,255,255,.06);
    color: white;
}

.nav-item.active {
    background: rgba(99,102,241,.25);
    color: white;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 18px;

    border-top: 1px solid rgba(255,255,255,.08);
}

.user-chip {
    display: flex;

    align-items: center;

    gap: 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: linear-gradient(135deg, #6366f1, #8b5cf6);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    flex-shrink: 0;
}

.user-meta strong {
    display: block;

    font-size: 13px;

    max-width: 150px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.user-meta button {
    border: none;

    background: transparent;

    color: #9ca3af;

    font-size: 12px;

    padding: 0;

    margin-top: 2px;
}

.user-meta button:hover {
    color: white;

    text-decoration: underline;
}


/* =========================================================
   MAIN
   ========================================================= */

.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

.topbar {
    height: 88px;

    background: rgba(255,255,255,.9);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    padding: 0 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 500;
}

.topbar h1 {
    font-size: 25px;
}

.topbar p {
    color: var(--muted);
    margin-top: 5px;
    font-size: 14px;
}

.topbar-actions {
    display: flex;
    gap: 10px;
}

.theme-button,
.icon-button {
    border: 1px solid var(--border);
    background: var(--card);

    width: 42px;
    height: 42px;

    border-radius: 12px;

    position: relative;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
}

.mobile-header {
    display: none;
}


#app {
    padding: 32px;
    max-width: 1500px;
    margin: auto;
}


/* =========================================================
   HERO + GERİ SAYIM
   ========================================================= */

.hero {
    background:
        radial-gradient(900px 400px at 90% -20%, rgba(255,255,255,.18), transparent 55%),
        linear-gradient(135deg, #312e81, #4f46e5 55%, #7c3aed);

    border-radius: 26px;
    padding: 34px;

    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;

    overflow: hidden;
}

.hero-main {
    flex: 1;

    min-width: 0;
}

.hero h2 {
    font-size: 29px;
    margin-bottom: 10px;
}

.hero p {
    color: rgba(255,255,255,.82);
    max-width: 650px;

    line-height: 1.6;
}

.hero-icon {
    font-size: 85px;
    opacity: .18;

    margin-left: 20px;
}

.countdown-wrap {
    display: flex;

    gap: 14px;

    flex-wrap: wrap;

    margin-top: 22px;
}

.countdown-exam {
    background: rgba(255,255,255,.12);

    border: 1px solid rgba(255,255,255,.2);

    backdrop-filter: blur(8px);

    border-radius: 16px;

    padding: 14px 16px;
}

.countdown-title {
    display: flex;

    align-items: baseline;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;
}

.countdown-title span {
    font-weight: 700;

    font-size: 15px;
}

.countdown-title small {
    font-size: 10px;

    color: rgba(255,255,255,.65);
}

.countdown-grid {
    display: flex;

    gap: 8px;
}

.cd-box {
    background: rgba(255,255,255,.14);

    border-radius: 12px;

    padding: 8px 0;

    width: 62px;

    text-align: center;
}

.cd-box b {
    display: block;

    font-size: 21px;

    font-variant-numeric: tabular-nums;
}

.cd-box span {
    font-size: 10px;

    opacity: .75;
}


/* =========================================================
   STATS
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-bottom: 28px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);

    border-radius: var(--radius);
    padding: 20px;

    box-shadow: var(--shadow);

    transition: transform .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 25px;
    margin-bottom: 12px;
}

.stat-card strong {
    display: block;
    font-size: 26px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   SECTION
   ========================================================= */

.section {
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 20px;
}

.section-title p {
    color: var(--muted);
    font-size: 13px;

    margin-top: 3px;
}


/* =========================================================
   SUBJECT CARDS
   ========================================================= */

.subject-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.subject-card {
    background: var(--card);
    border: 1px solid var(--border);

    padding: 20px;
    border-radius: var(--radius);

    cursor: pointer;

    box-shadow: var(--shadow);

    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.subject-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(79,70,229,.14);
    border-color: #c7d2fe;
}

.subject-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.subject-icon {
    width: 50px;
    height: 50px;

    border-radius: 14px;

    background: var(--primary-light);

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 24px;

    flex-shrink: 0;
}

.subject-card h3 {
    font-size: 16px;
}

.subject-card > .subject-top p {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.subject-go {
    margin-top: 16px;

    font-size: 12px;

    font-weight: 600;

    color: var(--primary);
}

.progress-wrap {
    margin-top: 18px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);

    margin-bottom: 6px;
}

.progress {
    height: 7px;
    background: var(--bg);

    border: 1px solid var(--border);

    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;

    background: linear-gradient(90deg, #4f46e5, #8b5cf6);

    border-radius: inherit;

    transition: width .5s;
}


/* =========================================================
   TOPIC LIST
   ========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;

    color: var(--muted);
    font-size: 13px;
}

.breadcrumb button {
    border: none;
    background: transparent;
    color: var(--primary);

    font-weight: 600;
}

.breadcrumb button:hover {
    text-decoration: underline;
}

.topic-header {
    background: var(--card);
    border: 1px solid var(--border);

    border-radius: 20px;
    padding: 25px;

    margin-bottom: 20px;

    box-shadow: var(--shadow);
}

.topic-header h2 {
    margin-bottom: 7px;
}

.topic-header p {
    color: var(--muted);
    font-size: 14px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.topic-card {
    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 15px;

    padding: 18px;

    cursor: pointer;

    transition: .2s;
}

.topic-card:hover {
    border-color: #a5b4fc;
    transform: translateY(-2px);

    box-shadow: 0 10px 26px rgba(79,70,229,.1);
}

.topic-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.topic-card h3 {
    font-size: 15px;
}

.topic-card p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.topic-arrow {
    color: var(--primary);
    font-size: 20px;

    transition: transform .2s;
}

.topic-card:hover .topic-arrow {
    transform: translateX(4px);
}


/* =========================================================
   SUBTOPIC
   ========================================================= */

.subtopic-list {
    margin-top: 18px;

    display: grid;
    gap: 10px;
}

.subtopic-item {
    background: #fafbff;

    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 14px 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;

    transition: .2s;
}

.subtopic-item:hover {
    border-color: #a5b4fc;
    background: var(--primary-light);
}

.subtopic-name {
    display: flex;
    gap: 10px;
    align-items: center;
}

.subtopic-meta {
    font-size: 12px;

    color: var(--muted);

    white-space: nowrap;
}


/* =========================================================
   DETAIL
   ========================================================= */

.detail-header {
    background: var(--card);
    border: 1px solid var(--border);

    padding: 25px;
    border-radius: 20px;

    box-shadow: var(--shadow);

    margin-bottom: 20px;
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.detail-header h2 {
    font-size: 25px;
}

.detail-header p {
    color: var(--muted);
    margin-top: 6px;
}

.complete-button {
    border: none;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;

    padding: 11px 17px;
    border-radius: 10px;

    white-space: nowrap;

    box-shadow: 0 8px 20px rgba(22,163,74,.25);

    transition: .2s;
}

.complete-button:hover {
    transform: translateY(-1px);
}

.complete-button.completed {
    background: var(--success-light);

    color: #166534;

    box-shadow: none;
}


/* =========================================================
   TABS
   ========================================================= */

.tabs {
    display: flex;
    gap: 5px;

    overflow-x: auto;

    background: var(--card);

    border: 1px solid var(--border);

    padding: 6px;

    border-radius: 13px;

    margin-bottom: 18px;
}

.tab {
    border: none;
    background: transparent;

    padding: 11px 15px;

    border-radius: 9px;

    color: var(--muted);

    white-space: nowrap;

    transition: .15s;
}

.tab:hover {
    background: var(--primary-light);

    color: var(--primary);
}

.tab.active {
    background: var(--primary);
    color: white;

    box-shadow: 0 6px 16px rgba(79,70,229,.3);
}


/* =========================================================
   CONTENT CARD
   ========================================================= */

.content-card {
    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 18px;

    padding: 24px;

    margin-bottom: 16px;

    box-shadow: var(--shadow);

    animation: fadeUp .25s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card h3 {
    margin-bottom: 12px;
}

.content-card p {
    line-height: 1.7;
    color: var(--muted);
}


/* =========================================================
   NOTLAR
   ========================================================= */

.note-box {
    width: 100%;
    min-height: 230px;

    resize: vertical;

    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 15px;

    outline: none;

    background: #fbfcff;

    margin-top: 14px;

    transition: .2s;
}

.note-box.small {
    min-height: 90px;
}

.note-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.save-row {
    margin-top: 12px;

    display: flex;
    justify-content: flex-end;
}

.primary-button {
    border: none;

    background: linear-gradient(135deg, #4f46e5, #6d28d9);
    color: white;

    padding: 11px 18px;

    border-radius: 10px;

    transition: .2s;

    box-shadow: 0 8px 20px rgba(79,70,229,.25);
}

.primary-button:hover {
    transform: translateY(-1px);

    box-shadow: 0 12px 26px rgba(79,70,229,.35);
}


/* ORTAK NOTLAR */

.shared-note {
    border: 1px solid var(--border);

    background: #fafbff;

    border-radius: 13px;

    padding: 14px 16px;

    margin-top: 12px;
}

.shared-note-head {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 6px;
}

.note-author {
    font-size: 12px;

    font-weight: 700;

    color: var(--primary);
}

.note-delete,
.link-delete {
    border: none;

    background: transparent;

    color: var(--danger);

    font-size: 12px;

    padding: 2px 6px;

    border-radius: 6px;
}

.note-delete:hover,
.link-delete:hover {
    background: var(--danger-light);
}

.shared-note p {
    white-space: pre-wrap;

    word-break: break-word;

    line-height: 1.6;

    color: var(--text) !important;

    font-size: 14px;
}

.loading {
    text-align: center;

    color: var(--muted);

    padding: 26px;

    font-size: 13px;
}


/* =========================================================
   LİNKLER
   ========================================================= */

.link-row {
    display: flex;
    gap: 10px;

    margin-top: 14px;
}

.form-input {
    flex: 1;

    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 12px;

    outline: none;

    background: #fbfcff;

    transition: .2s;
}

.form-input:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.saved-links {
    margin-top: 15px;

    display: grid;
    gap: 8px;
}

.saved-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px;

    background: #fafbff;

    border: 1px solid var(--border);
    border-radius: 10px;
}

.saved-link a {
    color: var(--primary);
    text-decoration: none;

    font-weight: 600;

    font-size: 13px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   SORU TAKİBİ
   ========================================================= */

.question-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 14px;
}

.question-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.question-input {
    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 14px;

    width: 100%;

    outline: none;

    background: #fbfcff;

    transition: .2s;
}

.question-input:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.question-label {
    display: block;
    font-size: 12px;
    font-weight: 700;

    color: var(--muted);

    margin-bottom: 6px;
}

.question-label.correct {
    color: var(--success);
}

.question-label.wrong {
    color: var(--danger);
}

.question-label.blank {
    color: var(--warning);
}

.question-result {
    margin-top: 18px;

    padding: 22px;

    border-radius: 15px;

    background: linear-gradient(135deg, #eef2ff, #f5f3ff);

    border: 1px solid #e0e7ff;

    text-align: center;
}

.qr-title {
    font-size: 13px;

    font-weight: 600;

    color: var(--muted);

    text-transform: uppercase;

    letter-spacing: .06em;
}

.success-percent {
    font-size: 44px;
    font-weight: 800;

    color: var(--primary);

    line-height: 1.2;
}

.qr-detail {
    color: var(--muted);

    font-size: 13px;
}

.qr-net {
    margin-top: 8px;

    font-size: 14px;

    color: var(--text);
}

.qr-net small {
    color: var(--muted);
}

.question-history {
    margin-top: 20px;

    display: grid;
    gap: 8px;
}

.history-item {
    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    background: #fafbff;

    font-size: 13px;
}

.history-item.clickable {
    cursor: pointer;

    transition: .15s;
}

.history-item.clickable:hover {
    border-color: #a5b4fc;

    background: var(--primary-light);
}

.history-label {
    min-width: 0;

    overflow: hidden;
}

.history-label small {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 2px;
}

.correct {
    color: var(--success);
}

.wrong {
    color: var(--danger);
}

.blank {
    color: var(--warning);
}

.net-badge {
    color: var(--muted);

    margin-left: 6px;
}


/* =========================================================
   NOTLAR SAYFASI
   ========================================================= */

.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.note-list-card {
    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 15px;

    padding: 18px;
}

.note-list-card.clickable {
    cursor: pointer;

    transition: .2s;
}

.note-list-card.clickable:hover {
    border-color: #a5b4fc;

    transform: translateY(-2px);

    box-shadow: 0 10px 26px rgba(79,70,229,.1);
}

.note-list-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.note-list-card p {
    color: var(--muted);

    white-space: pre-wrap;

    word-break: break-word;

    line-height: 1.6;

    display: -webkit-box;

    -webkit-line-clamp: 4;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.note-open-hint {
    display: inline-block;

    margin-top: 10px;

    font-size: 12px;

    font-weight: 600;

    color: var(--primary);
}


/* =========================================================
   EMPTY
   ========================================================= */

.empty {
    text-align: center;

    padding: 40px 20px;

    color: var(--muted);

    font-size: 14px;
}

.empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.empty h3 {
    color: var(--text);

    margin-bottom: 6px;
}


/* =========================================================
   MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    background: rgba(15,23,42,.55);

    backdrop-filter: blur(4px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 3000;
}

.modal {
    width: min(500px, 100%);

    background: var(--card);

    border-radius: 20px;

    padding: 30px;

    box-shadow: 0 25px 80px rgba(0,0,0,.25);

    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    font-size: 55px;
    text-align: center;

    margin-bottom: 15px;
}

.modal h2 {
    text-align: center;
    margin-bottom: 10px;
}

.modal p {
    text-align: center;

    color: var(--muted);

    line-height: 1.6;

    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}


/* =========================================================
   TOAST
   ========================================================= */

#toastContainer {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 5000;

    display: grid;
    gap: 10px;
}

.toast {
    color: white;

    padding: 13px 17px;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,.2);

    animation: toastIn .25s ease;

    font-size: 14px;

    max-width: 340px;
}

.toast.success {
    background: #111827;
}

.toast.error {
    background: var(--danger);
}

.toast.info {
    background: var(--info);
}

.toast.warning {
    background: var(--warning);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark {
    --bg: #0b1120;
    --card: #151c2c;
    --text: #f3f4f6;
    --muted: #94a3b8;
    --border: #27324a;

    --primary-light: #1f1b47;

    --success-light: #10291b;
    --danger-light: #331417;
    --warning-light: #33200d;
    --info-light: #12203a;
}

body.dark .topbar {
    background: rgba(11,17,32,.88);
}

body.dark .theme-button,
body.dark .icon-button {
    background: var(--card);
    color: white;
}

body.dark .topic-card,
body.dark .subtopic-item,
body.dark .note-box,
body.dark .saved-link,
body.dark .question-input,
body.dark .form-input,
body.dark .field-input,
body.dark .history-item,
body.dark .shared-note {
    background: #101726;
}

body.dark .note-box:focus,
body.dark .form-input:focus,
body.dark .question-input:focus {
    background: #101726;
}

body.dark .subtopic-item:hover,
body.dark .history-item.clickable:hover {
    background: var(--primary-light);
}

body.dark .question-result {
    background: linear-gradient(135deg, #1f1b47, #231d52);

    border-color: #312a63;
}

body.dark .tab:hover {
    background: var(--primary-light);
}

body.dark .auth-tabs {
    background: #101726;
}

body.dark .progress {
    background: #0b1120;
}

body.dark .modal {
    box-shadow: 0 25px 80px rgba(0,0,0,.6);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero-icon {
        display: none;
    }

}

@media (max-width: 760px) {

    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s;
    }

    .sidebar.open {
        transform: translateX(0);

        box-shadow: 30px 0 60px rgba(0,0,0,.3);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-header {
        display: flex;

        height: 60px;

        background: var(--card);

        border-bottom: 1px solid var(--border);

        align-items: center;

        padding: 0 15px;

        position: sticky;
        top: 0;

        z-index: 900;
    }

    .mobile-brand {
        margin-left: 10px;
    }

    .topbar {
        display: none;
    }

    #app {
        padding: 18px;
    }

    .hero {
        padding: 22px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .cd-box {
        width: 54px;
    }

    .subject-grid,
    .topic-grid,
    .notes-grid,
    .question-grid.three {
        grid-template-columns: 1fr;
    }

    .detail-header-top {
        flex-direction: column;
    }

    .complete-button {
        width: 100%;
    }

    .countdown-wrap {
        flex-direction: column;
    }

}

@media (max-width: 480px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        border-radius: 20px;
    }

    .content-card,
    .detail-header,
    .topic-header {
        padding: 18px;
    }

}


/* =========================================================
   GİRİŞ EKRANI v2 — ANİMASYONLU ARKA PLAN + CAM KART
   ========================================================= */

.auth-screen {
    overflow: hidden;
}

.auth-bg {
    position: absolute;

    inset: 0;

    pointer-events: none;
}

.orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: .5;

    will-change: transform;
}

.orb1 {
    width: 480px;
    height: 480px;

    left: -120px;
    top: -120px;

    background: #7c3aed;

    animation: driftA 16s ease-in-out infinite alternate;
}

.orb2 {
    width: 520px;
    height: 520px;

    right: -140px;
    bottom: -160px;

    background: #2563eb;

    animation: driftB 20s ease-in-out infinite alternate;
}

.orb3 {
    width: 340px;
    height: 340px;

    left: 58%;
    top: 12%;

    background: #ec4899;

    opacity: .32;

    animation: driftC 24s ease-in-out infinite alternate;
}

.orb4 {
    width: 260px;
    height: 260px;

    left: 10%;
    bottom: 8%;

    background: #06b6d4;

    opacity: .28;

    animation: driftB 28s ease-in-out infinite alternate-reverse;
}

@keyframes driftA {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(140px,90px) scale(1.15); }
}

@keyframes driftB {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(-120px,-90px) scale(1.1); }
}

@keyframes driftC {
    from { transform: translate(0,0); }
    to   { transform: translate(-90px,110px); }
}

.stars {
    position: absolute;

    inset: 0;

    background-image:
        radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.9), transparent 55%),
        radial-gradient(1.4px 1.4px at 28% 68%, rgba(255,255,255,.7), transparent 55%),
        radial-gradient(1.8px 1.8px at 41% 14%, rgba(255,255,255,.8), transparent 55%),
        radial-gradient(1.2px 1.2px at 55% 42%, rgba(255,255,255,.75), transparent 55%),
        radial-gradient(1.7px 1.7px at 67% 78%, rgba(255,255,255,.85), transparent 55%),
        radial-gradient(1.3px 1.3px at 74% 26%, rgba(255,255,255,.65), transparent 55%),
        radial-gradient(1.9px 1.9px at 86% 56%, rgba(255,255,255,.9), transparent 55%),
        radial-gradient(1.4px 1.4px at 93% 12%, rgba(255,255,255,.7), transparent 55%),
        radial-gradient(1.5px 1.5px at 8% 84%, rgba(255,255,255,.8), transparent 55%),
        radial-gradient(1.2px 1.2px at 48% 91%, rgba(255,255,255,.7), transparent 55%);

    animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: .45; }
    to   { opacity: 1; }
}


.auth-card {
    position: relative;

    z-index: 1;

    background: rgba(13,18,38,.66);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255,255,255,.14);

    box-shadow: 0 30px 90px rgba(0,0,0,.45);

    color: white;
}

.auth-brand h1 {
    color: white;
}

.auth-brand p {
    color: rgba(255,255,255,.6);
}

.auth-tabs {
    background: rgba(255,255,255,.09);
}

.auth-tab {
    color: rgba(255,255,255,.65);
}

.auth-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.field-label {
    color: rgba(255,255,255,.6);
}

.field-input {
    background: rgba(255,255,255,.08);

    border-color: rgba(255,255,255,.16);

    color: white;
}

.field-input::placeholder {
    color: rgba(255,255,255,.35);
}

.field-input:focus {
    border-color: #8b9cf9;

    box-shadow: 0 0 0 3px rgba(129,140,248,.25);
}

.auth-error {
    background: rgba(220,38,38,.16);

    border-color: rgba(248,113,113,.35);

    color: #fecaca;
}

.forgot-link {
    color: rgba(255,255,255,.55);
}

.forgot-link:hover {
    color: white;
}

.auth-note {
    color: rgba(255,255,255,.5);
}

.auth-footer {
    position: relative;

    z-index: 1;

    color: rgba(255,255,255,.55);
}

body.dark .auth-tabs {
    background: rgba(255,255,255,.09);
}


/* DOĞRULAMA PANELİ */

.verify-panel {
    display: flex;

    flex-direction: column;

    text-align: center;
}

.verify-icon {
    font-size: 52px;

    margin-bottom: 10px;
}

.verify-panel h2 {
    margin-bottom: 10px;

    color: white;
}

.verify-panel p {
    color: rgba(255,255,255,.75);

    line-height: 1.65;

    font-size: 14px;

    margin-bottom: 18px;
}

.ghost-button {
    margin-top: 10px;

    border: 1px solid rgba(255,255,255,.25);

    background: transparent;

    color: rgba(255,255,255,.85);

    padding: 11px 16px;

    border-radius: 10px;

    transition: .2s;
}

.ghost-button:hover {
    background: rgba(255,255,255,.1);
}

.ghost-button:disabled {
    opacity: .45;

    cursor: wait;
}

@media (prefers-reduced-motion: reduce) {

    .orb,
    .stars {
        animation: none;
    }

}


/* ATATÜRK — SADE TAM EKRAN SAHNE + SÖZ + İMZA */

.auth-screen {
    background:
        radial-gradient(1200px 700px at 78% 30%, rgba(217,119,6,.10), transparent 60%),
        linear-gradient(165deg, #05081a, #101735 55%, #182148);
}

.auth-ataturk {
    position: absolute;

    right: -6%;

    bottom: -5%;

    height: 112%;

    width: auto;

    max-width: none;

    opacity: .9;

    transform-origin: 60% 70%;

    filter:
        grayscale(100%)
        sepia(62%)
        hue-rotate(-12deg)
        saturate(1.3)
        contrast(1.05);

    mix-blend-mode: screen;

    -webkit-mask-image:
        radial-gradient(125% 125% at 58% 62%, #000 50%, transparent 84%);

    mask-image:
        radial-gradient(125% 125% at 58% 62%, #000 50%, transparent 84%);

    animation: kenburns 28s ease-in-out infinite alternate;

    user-select: none;

    pointer-events: none;
}

@keyframes kenburns {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06) translateY(-1.2%);
    }

}

.auth-quote {
    position: relative;

    z-index: 1;

    text-align: center;

    max-width: 680px;

    padding: 0 20px;

    margin-bottom: 26px;
}

.quote-text {
    font-size: clamp(17px, 2vw, 25px);

    line-height: 1.85;

    font-weight: 500;

    color: rgba(255,255,255,.93);

    text-shadow: 0 2px 26px rgba(0,0,0,.5);
}

.quote-author {
    margin-top: 14px;

    color: #fbbf24;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.auth-signature {
    display: block;

    height: clamp(48px, 6vw, 72px);

    width: auto;

    margin: 18px auto 0;

    filter:
        invert(.92)
        sepia(.55)
        saturate(2.3)
        hue-rotate(-15deg)
        brightness(1.45);

    opacity: .92;

    user-select: none;

    pointer-events: none;
}

@media (max-width: 900px) {

    .auth-ataturk {
        height: 96%;

        opacity: .55;
    }

    .auth-quote {
        margin-bottom: 18px;
    }

}

@media (max-width: 480px) {

    .auth-ataturk {
        height: 82%;

        opacity: .42;
    }

    .quote-text {
        font-size: 15.5px;
    }

}

@media (max-height: 800px) {

    .auth-quote {
        margin-bottom: 12px;
    }

    .quote-text {
        font-size: 16px;

        line-height: 1.65;
    }

    .auth-signature {
        height: 44px;

        margin-top: 10px;
    }

}


/* SOL KOLAJ — GAZİ'NİN ANILARI */

.auth-collage {
    position: absolute;

    left: 3vw;

    top: 50%;

    transform: translateY(-52%);

    display: grid;

    grid-template-columns: auto auto;

    gap: 16px;

    align-items: center;

    z-index: 0;
}

.collage-item {
    width: clamp(130px, 11vw, 185px);

    height: auto;

    border-radius: 10px;

    border: 1px solid rgba(251,191,36,.3);

    box-shadow: 0 20px 55px rgba(0,0,0,.55);

    filter: grayscale(.35) sepia(.22) contrast(1.03);

    opacity: .95;

    user-select: none;

    pointer-events: none;

    animation: collageFloat 9s ease-in-out infinite alternate;
}

.c1 {
    transform: rotate(-3deg);

    animation-delay: 0s;
}

.c2 {
    transform: rotate(2.5deg) translateY(12px);

    animation-delay: -2.2s;
}

.c3 {
    transform: rotate(2deg) translateY(-8px);

    animation-delay: -4.6s;
}

.c4 {
    transform: rotate(-2.5deg);

    animation-delay: -6.8s;
}

@keyframes collageFloat {

    from {
        margin-top: 0;
    }

    to {
        margin-top: -8px;
    }

}

@media (max-width: 1280px) {

    .auth-collage {
        display: none;
    }

}


/* ANİMASYONLU TÜRK BAYRAĞI LOGO */

.brand-flag {
    position: relative;

    width: 68px;

    height: 46px;

    border-radius: 8px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.3);

    box-shadow: 0 12px 34px rgba(227,10,23,.45);

    flex-shrink: 0;

    animation: flagWave 3s ease-in-out infinite alternate;

    will-change: transform;
}

.brand-flag svg {
    display: block;

    width: 100%;

    height: 100%;
}

.brand-flag::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(115deg,
            transparent 32%,
            rgba(255,255,255,.38) 48%,
            transparent 62%);

    transform: translateX(-130%);

    animation: flagSheen 2.8s ease-in-out infinite;
}

@keyframes flagWave {

    from {
        transform:
            perspective(420px)
            rotateY(-16deg)
            skewY(-1.5deg);
    }

    to {
        transform:
            perspective(420px)
            rotateY(16deg)
            skewY(1.5deg);
    }

}

@keyframes flagSheen {

    0%, 55% {
        transform: translateX(-130%);
    }

    85%, 100% {
        transform: translateX(130%);
    }

}

.brand-icon img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


/* PROFİL SAYFASI */

.pf-loading {
    text-align: center;

    padding: 60px 0;

    color: #64748b;

    font-weight: 600;
}

.profile-wrap {
    display: grid;

    grid-template-columns: 340px 1fr;

    gap: 22px;

    align-items: start;
}

.pf-main {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.pf-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 24px;
}

body.dark .pf-card {
    background: #1e293b;

    border-color: #334155;
}

.pf-card-avatar {
    display: flex;

    flex-direction: column;

    align-items: center;
}

.pf-avatar-big {
    width: 132px;

    height: 132px;

    border-radius: 50%;

    margin-bottom: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 52px;

    font-weight: 800;

    color: white;

    background: linear-gradient(135deg, #6366f1, #8b5cf6);

    overflow: hidden;

    border: 4px solid rgba(139,92,246,.25);

    box-shadow: 0 14px 40px rgba(99,102,241,.35);
}

.pf-avatar-big img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

.pf-button {
    width: 100%;

    padding: 11px 14px;

    border: none;

    border-radius: 10px;

    background: linear-gradient(135deg, #6366f1, #8b5cf6);

    color: white;

    font: inherit;

    font-weight: 600;

    cursor: pointer;

    transition: .18s;

    margin-bottom: 10px;
}

.pf-button:hover {
    transform: translateY(-2px);

    box-shadow: 0 10px 26px rgba(99,102,241,.4);
}

.pf-button:disabled {
    opacity: .55;

    cursor: wait;

    transform: none;

    box-shadow: none;
}

.pf-button-ghost {
    background: transparent;

    border: 1px solid rgba(127,127,127,.35);

    color: inherit;

    opacity: .85;
}

.pf-button-ghost:hover {
    box-shadow: none;

    background: rgba(127,127,127,.12);
}

.pf-divider {
    width: 100%;

    height: 1px;

    background: rgba(127,127,127,.25);

    margin: 14px 0 12px;
}

.pf-preset-title {
    font-size: 13px;

    font-weight: 700;

    color: #64748b;

    align-self: flex-start;

    margin-bottom: 2px;
}

body.dark .pf-preset-title {
    color: #94a3b8;
}

.pf-presets {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    width: 100%;

    margin-top: 8px;
}

.pf-preset {
    aspect-ratio: 1;

    border-radius: 50%;

    font-size: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    border: 3px solid transparent;

    transition: .15s;

    padding: 0;
}

.pf-preset:hover {
    transform: scale(1.1);
}

.pf-preset.selected {
    border-color: #a78bfa;

    box-shadow: 0 0 0 3px rgba(167,139,250,.35);
}

.pf-title {
    font-size: 17px;

    font-weight: 800;

    margin-bottom: 18px;
}

.pf-field {
    margin-bottom: 16px;
}

.pf-label {
    display: block;

    font-size: 13px;

    font-weight: 700;

    color: #64748b;

    margin-bottom: 6px;
}

body.dark .pf-label {
    color: #94a3b8;
}

.pf-input,
.pf-select,
.pf-textarea {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid rgba(127,127,127,.35);

    border-radius: 10px;

    font: inherit;

    background: rgba(127,127,127,.08);

    color: inherit;

    outline: none;

    transition: border-color .15s, box-shadow .15s;
}

.pf-input:focus,
.pf-select:focus,
.pf-textarea:focus {
    border-color: #818cf8;

    box-shadow: 0 0 0 3px rgba(129,140,248,.22);
}

.pf-input:disabled {
    opacity: .65;

    cursor: not-allowed;
}

.pf-textarea {
    resize: vertical;

    min-height: 74px;
}

.pf-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.pf-stats {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

    gap: 14px;
}

.user-avatar.has-img {
    background: transparent;
}

.user-avatar img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;
}

@media (max-width: 980px) {

    .profile-wrap {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {

    .pf-row {
        grid-template-columns: 1fr;
    }

}


/* YÖNETİM PANELİ + DUYURULAR */

.admin-wrap {
    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 22px;

    align-items: start;
}

.announce-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

#admList {
    display: flex;

    flex-direction: column;

    gap: 12px;

    max-height: 480px;

    overflow-y: auto;

    padding-right: 4px;
}

.announce-item {
    background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.06));

    border: 1px solid rgba(99,102,241,.22);

    border-left: 4px solid #6366f1;

    border-radius: 12px;

    padding: 14px 16px;
}

body.dark .announce-item {
    background:
        linear-gradient(135deg, rgba(99,102,241,.14), rgba(139,92,246,.08));

    border-color: rgba(129,140,248,.3);
}

.announce-item strong {
    display: block;

    font-size: 15px;

    margin-bottom: 5px;
}

.announce-item p {
    font-size: 14px;

    line-height: 1.65;

    white-space: pre-wrap;

    word-break: break-word;

    color: inherit;

    opacity: .9;

    margin-bottom: 8px;
}

.announce-meta {
    display: block;

    font-size: 12px;

    color: #64748b;
}

body.dark .announce-meta {
    color: #94a3b8;
}

.announce-head {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-bottom: 5px;
}

.announce-head strong {
    margin-bottom: 0;
}

.announce-delete {
    flex-shrink: 0;

    border: none;

    background: transparent;

    color: #ef4444;

    font: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    padding: 5px 8px;

    border-radius: 7px;

    transition: .15s;
}

.announce-delete:hover {
    background: rgba(239,68,68,.12);
}

.announce-delete.arm {
    background: #ef4444;

    color: white;

    animation: armPulse .6s ease-in-out infinite alternate;
}

@keyframes armPulse {

    from {
        opacity: .75;
    }

    to {
        opacity: 1;
    }

}

.nav-item[data-page="admin"] .nav-icon,
.nav-item[data-page="admin"] span:first-child {
    filter: drop-shadow(0 0 6px rgba(250,204,21,.55));
}

@media (max-width: 980px) {

    .admin-wrap {
        grid-template-columns: 1fr;
    }

}


/* POMODORO / ODAK SAYFASI */

.focus-wrap {
    display: grid;

    grid-template-columns: 1.1fr 1fr;

    gap: 22px;

    align-items: start;
}

.focus-side {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.focus-card {
    display: flex;

    flex-direction: column;

    align-items: center;
}

.focus-presets {
    display: flex;

    gap: 8px;

    margin-bottom: 18px;

    flex-wrap: wrap;

    justify-content: center;
}

.focus-preset {
    border: 1.5px solid rgba(127,127,127,.35);

    background: transparent;

    color: inherit;

    font: inherit;

    font-weight: 700;

    font-size: 14px;

    padding: 8px 16px;

    border-radius: 999px;

    cursor: pointer;

    transition: .15s;
}

.focus-preset:hover {
    border-color: #818cf8;
}

.focus-preset.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);

    border-color: transparent;

    color: white;

    box-shadow: 0 8px 20px rgba(99,102,241,.35);
}

.focus-ring-box {
    position: relative;

    width: min(300px, 78vw);
}

.focus-ring-svg {
    width: 100%;

    height: auto;

    display: block;

    transform: rotate(-90deg);
}

.ring-track {
    fill: none;

    stroke: rgba(127,127,127,.18);

    stroke-width: 14;
}

.ring-progress {
    fill: none;

    stroke: url(#focusGrad), #6366f1;

    stroke: #6366f1;

    stroke-width: 14;

    stroke-linecap: round;

    transition: stroke-dashoffset .9s linear;
}

.focus-center {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;
}

.focus-time {
    font-size: 52px;

    font-weight: 800;

    font-variant-numeric: tabular-nums;

    letter-spacing: 2px;
}

.focus-state {
    font-size: 13px;

    font-weight: 600;

    color: #64748b;

    text-transform: uppercase;

    letter-spacing: .12em;
}

body.dark .focus-state {
    color: #94a3b8;
}

.focus-subject {
    width: 100%;

    max-width: 320px;

    margin: 18px 0 14px;
}

.focus-buttons {
    display: flex;

    gap: 10px;

    width: 100%;

    max-width: 340px;
}

.focus-start {
    flex: 1;

    margin-bottom: 0;
}

.focus-reset {
    flex-shrink: 0;

    margin-bottom: 0;
}

.focus-hint {
    font-size: 13px;

    color: #64748b;

    line-height: 1.55;

    margin-bottom: 12px;
}

body.dark .focus-hint {
    color: #94a3b8;
}

.focus-manual {
    display: grid;

    grid-template-columns: 130px 1fr;

    gap: 10px;

    margin-bottom: 10px;
}

.focus-mini-pill {
    position: fixed;

    right: 18px;

    bottom: 18px;

    z-index: 60;

    background: linear-gradient(135deg, #4f46e5, #7c3aed);

    color: white;

    font-size: 13px;

    font-weight: 700;

    padding: 10px 16px;

    border-radius: 999px;

    box-shadow: 0 12px 30px rgba(79,70,229,.45);

    animation: pillBounce 2s ease-in-out infinite alternate;

    user-select: none;

    pointer-events: none;
}

@keyframes pillBounce {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }

}

@media (max-width: 1080px) {

    .focus-wrap {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {

    .focus-manual {
        grid-template-columns: 1fr;
    }

}


/* DENEME TAKİBİ */

.exam-wrap {
    display: grid;

    grid-template-columns: 400px 1fr;

    gap: 22px;

    align-items: start;
}

.exam-main {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.exam-type-toggle {
    display: flex;

    gap: 8px;
}

.exam-subject-row {
    display: grid;

    grid-template-columns: 1fr auto repeat(3, 52px) 58px;

    align-items: center;

    gap: 6px;

    padding: 7px 0;

    border-bottom: 1px dashed rgba(127,127,127,.2);
}

.exam-subject-name {
    font-size: 13.5px;

    font-weight: 600;
}

.exam-subject-row small {
    color: #94a3b8;

    font-size: 11px;

    margin-right: 4px;
}

.exam-input {
    width: 100%;

    padding: 7px 6px;

    text-align: center;

    border: 1px solid rgba(127,127,127,.35);

    border-radius: 8px;

    font: inherit;

    font-size: 14px;

    background: rgba(127,127,127,.08);

    color: inherit;

    outline: none;
}

.exam-input:focus {
    border-color: #818cf8;
}

.exam-net {
    text-align: right;

    color: #6366f1;

    font-size: 15px;
}

.exam-total-line {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 16px 0;

    padding: 12px 16px;

    border-radius: 10px;

    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.1));

    font-weight: 700;
}

.exam-total-line strong {
    font-size: 26px;

    color: #6366f1;
}

.exam-badge {
    display: inline-block;

    margin-left: 8px;

    padding: 2px 9px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    vertical-align: middle;
}

.badge-tyt {
    background: rgba(99,102,241,.16);

    color: #4f46e5;
}

body.dark .badge-tyt {
    background: rgba(129,140,248,.22);

    color: #a5b4fc;
}

.badge-ayt {
    background: rgba(245,158,11,.16);

    color: #b45309;
}

body.dark .badge-ayt {
    background: rgba(251,191,36,.2);

    color: #fcd34d;
}

.exam-total-inline {
    font-size: 13px;

    opacity: .85;

    margin-bottom: 8px;
}

.exam-total-inline b {
    font-size: 17px;

    color: #6366f1;
}

.exam-chart-svg {
    width: 100%;

    height: auto;

    display: block;
}

.chart-axis-text {
    fill: #94a3b8;

    font-size: 11px;
}

.chart-legends {
    display: flex;

    gap: 16px;

    margin-bottom: 6px;
}

.chart-legend-item {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 12.5px;

    font-weight: 700;

    color: #64748b;
}

.chart-legend-item i {
    width: 14px;

    height: 4px;

    border-radius: 3px;

    display: inline-block;
}

@media (max-width: 1150px) {

    .exam-wrap {
        grid-template-columns: 1fr;
    }

}


/* LİDERLİK TABLOSU */

.lb-wrap {
    max-width: 760px;
}

.lb-head {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;
}

.lb-refresh {
    border: 1px solid rgba(127,127,127,.3);

    background: transparent;

    border-radius: 8px;

    font-size: 16px;

    padding: 7px 11px;

    cursor: pointer;

    transition: .15s;
}

.lb-refresh:hover {
    background: rgba(127,127,127,.12);

    transform: rotate(90deg);
}

.lb-subtitle {
    font-size: 13px;

    color: #64748b;

    margin-bottom: 16px;
}

body.dark .lb-subtitle {
    color: #94a3b8;
}

.lb-row {
    display: grid;

    grid-template-columns: 42px 40px 1fr 120px auto;

    align-items: center;

    gap: 12px;

    padding: 10px 12px;

    border-radius: 12px;

    border: 1px solid transparent;

    transition: background .15s;
}

.lb-row:hover {
    background: rgba(127,127,127,.07);
}

.lb-row.lb-first {
    background: linear-gradient(135deg,
        rgba(250,204,21,.14),
        rgba(245,158,11,.07));

    border-color: rgba(245,158,11,.4);
}

.lb-row.lb-me {
    border: 1.5px dashed #818cf8;

    background: rgba(99,102,241,.08);
}

.lb-rank {
    text-align: center;

    font-weight: 800;

    font-size: 17px;

    color: #64748b;
}

.lb-avatar {
    width: 38px;

    height: 38px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    color: white;

    background: linear-gradient(135deg, #6366f1, #a855f7);

    font-size: 16px;
}

.lb-first .lb-avatar {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.lb-name {
    min-width: 0;
}

.lb-name {
    font-weight: 700;

    font-size: 14.5px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.lb-name small {
    display: block;

    font-weight: 500;

    color: #94a3b8;

    font-size: 11.5px;
}

.lb-bar-box {
    height: 8px;

    border-radius: 5px;

    background: rgba(127,127,127,.18);

    overflow: hidden;
}

.lb-bar {
    height: 100%;

    border-radius: 5px;

    background: linear-gradient(90deg, #6366f1, #a855f7);

    transition: width .5s ease;
}

.lb-first .lb-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.lb-minutes {
    font-variant-numeric: tabular-nums;

    color: inherit;

    white-space: nowrap;

    font-size: 14px;
}

.lb-me-note {
    margin-top: 14px;

    padding: 12px 16px;

    border-radius: 10px;

    border: 1.5px dashed #818cf8;

    background: rgba(99,102,241,.08);

    font-size: 13.5px;
}

@media (max-width: 620px) {

    .lb-row {
        grid-template-columns: 34px 34px 1fr auto;

        gap: 8px;
    }

    .lb-bar-box {
        display: none;
    }

}

/* =========================================================
   HAREKET AKIŞI (admin)
   ========================================================= */

.admin-feed {
    margin-top: 18px;
}

.feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.act-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 4px;
    border-bottom: 1px dashed rgba(212, 175, 55, .18);
}

.act-row:last-child {
    border-bottom: none;
}

.act-icon {
    font-size: 16px;
    line-height: 1.3;
}

.act-body {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.act-body b {
    color: var(--accent, #d4af37);
    margin-right: 4px;
}

.act-time {
    font-size: 12px;
    opacity: .6;
    white-space: nowrap;
    padding-top: 2px;
}

/* =========================================================
   GÜNLÜK HEDEFLER
   ========================================================= */

.goal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.goal-streak {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(212, 175, 55, .25);
    text-align: center;
    flex-shrink: 0;
}

.goal-streak-num {
    font-size: 30px;
    font-weight: 800;
    color: var(--accent, #d4af37);
    line-height: 1.1;
}

.goal-streak-label {
    font-size: 11px;
    opacity: .75;
    line-height: 1.3;
}

.goal-streak.hot {
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, .18),
        rgba(255, 140, 0, .12)
    );
    box-shadow: 0 0 22px rgba(212, 175, 55, .25);
}

.goal-add {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.goal-add .pf-input {
    flex: 1;
}

.carry-row {
    margin-top: 14px;
}

.goal-progress-wrap {
    margin-top: 18px;
}

.goal-progress-bar {
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #d4af37, #f5d76e);
    transition: width .35s ease;
}

.goal-progress-fill.full {
    background: linear-gradient(90deg, #2ecc71, #7bed9f);
}

.goal-progress-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    opacity: .8;
}

.goal-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: border-color .2s ease, background .2s ease;
}

.goal-row.done {
    opacity: .65;
    border-color: rgba(46, 204, 113, .35);
    background: rgba(46, 204, 113, .06);
}

.goal-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--accent, #d4af37);
    background: transparent;
    color: var(--accent, #d4af37);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
}

.goal-check:hover {
    transform: scale(1.1);
}

.goal-row.done .goal-check {
    background: var(--accent, #d4af37);
    color: #10131a;
}

.goal-text {
    flex: 1;
    font-size: 15px;
}

.goal-row.done .goal-text {
    text-decoration: line-through;
}

.goal-remove {
    background: none;
    border: none;
    color: inherit;
    opacity: .45;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    transition: opacity .15s ease, color .15s ease;
}

.goal-remove:hover {
    opacity: 1;
    color: #ff6b6b;
}

.week-strip {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed rgba(212, 175, 55, .2);
}

.week-cells {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.week-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: .85;
}

.week-cell i {
    width: 100%;
    max-width: 44px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .09);
}

.week-cell.partial i {
    background: rgba(212, 175, 55, .4);
}

.week-cell.full i {
    background: linear-gradient(90deg, #d4af37, #f5d76e);
}

/* =========================================================
   ANA SAYFA ÖZETİ
   ========================================================= */

.home-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.hs-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--card-bg, rgba(255,255,255,.05));
    border: 1px solid rgba(212, 175, 55, .22);
}

.hs-card strong {
    font-size: 22px;
    line-height: 1.2;
}

.hs-card span {
    font-size: 12px;
    opacity: .65;
}

.hs-icon {
    font-size: 20px;
}

.hs-hot {
    border-color: rgba(212, 175, 55, .6);
    box-shadow: 0 0 18px rgba(212, 175, 55, .18);
}

.hs-bar {
    display: block;
    width: 100%;
    height: 6px;
    margin-top: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    font-style: normal;
}

.hs-bar b {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #d4af37, #f5d76e);
}

.hs-hint {
    margin-top: 4px;
    font-size: 11px !important;
    opacity: .5;
    text-decoration: none;
}

/* =========================================================
   ROZETLER
   ========================================================= */

.badge-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent, #d4af37);
    margin-left: 8px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 14px;
    transition: transform .15s ease;
}

.badge-item:hover {
    transform: translateY(-3px);
}

.badge-item.on {
    background: linear-gradient(
        160deg,
        rgba(212, 175, 55, .16),
        rgba(212, 175, 55, .05)
    );
    border: 1px solid rgba(212, 175, 55, .45);
}

.badge-item.off {
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(255,255,255,.12);
    filter: grayscale(.9);
    opacity: .55;
}

.badge-icon {
    font-size: 28px;
}

.badge-item b {
    font-size: 13px;
}

.badge-item small {
    font-size: 11px;
    opacity: .65;
    line-height: 1.35;
}

/* =========================================================
   HAFTALIK PROGRAM
   ========================================================= */

.plan-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.plan-title {
    font-size: 17px;
    font-weight: 700;
    min-width: 200px;
    text-align: center;
}

.plan-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .4);
    background: transparent;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    transition: background .15s ease;
}

.plan-nav:hover {
    background: rgba(212, 175, 55, .15);
}

.plan-toolbar {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.plan-toolbar .carry-row { display: contents; }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.plan-col {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    min-height: 150px;
}

.plan-col.today {
    border-color: rgba(212, 175, 55, .55);
    box-shadow: 0 0 14px rgba(212, 175, 55, .12);
}

.plan-col-head {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.plan-col-head em {
    font-style: normal;
    font-size: 10px;
    color: #10131a;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    border-radius: 99px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: middle;
}

.plan-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plan-empty {
    font-size: 11px;
    opacity: .35;
    text-align: center;
    padding: 8px 0;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    line-height: 1.35;
    padding: 6px 8px;
    border-radius: 9px;
    background: rgba(255,255,255,.04);
}

.plan-item.done { opacity: .55; }
.plan-item.done span { text-decoration: line-through; }
.plan-item span { flex: 1; }

.goal-check.small {
    width: 20px;
    height: 20px;
    font-size: 12px;
    border-width: 1.5px;
}

.plan-add input {
    width: 100%;
    margin-top: 8px;
    font-size: 13px;
    padding: 7px 10px;
}

/* =========================================================
   FLASHCARD
   ========================================================= */

.fc-progress { margin-top: 0; }

.fc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 170px;
    padding: 26px 22px;
    border-radius: 18px;
    cursor: pointer;
    user-select: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(212,175,55,.14), transparent 70%),
        rgba(255,255,255,.05);
    border: 1.5px solid rgba(212, 175, 55, .4);
    transition: transform .25s ease, border-color .25s ease;
}

.fc-card:hover {
    transform: translateY(-3px);
}

.fc-card.flipped {
    border-color: rgba(46, 204, 113, .55);
    background:
        radial-gradient(circle at 50% 0%, rgba(46,204,113,.12), transparent 70%),
        rgba(255,255,255,.05);
}

.fc-card small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .5;
}

.fc-card p {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.fc-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.danger-ghost {
    border-color: rgba(255, 107, 107, .45) !important;
}

.danger-ghost:hover {
    background: rgba(255, 107, 107, .12) !important;
}

.fc-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.fc-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.fc-texts {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fc-texts b { font-size: 14px; }
.fc-texts small { font-size: 12px; opacity: .6; }

.fc-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
    color: #10131a;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
}

.fc-known {
    color: #2ecc71;
    font-size: 17px;
    font-weight: 900;
}

/* =========================================================
   FORUM (Soru-Cevap sekmesi)
   ========================================================= */

.forum-q {
    padding: 14px;
    margin-top: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
}

.forum-time {
    opacity: .5;
    font-weight: 400;
    font-size: 11px;
    margin-left: 6px;
}

.forum-answers {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 14px;
    border-left: 2px solid rgba(212, 175, 55, .3);
}

.forum-a {
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
}

.forum-a.admin {
    background: linear-gradient(
        135deg,
        rgba(212,175,55,.16),
        rgba(212,175,55,.06)
    );
    border: 1px solid rgba(212, 175, 55, .35);
}

.forum-a b {
    display: block;
    font-size: 12px;
    color: var(--accent, #d4af37);
    margin-bottom: 2px;
}

.forum-no-answer {
    font-size: 12px;
    font-style: italic;
    opacity: .5;
    padding: 4px 0;
}

.forum-del-link {
    color: #ff6b6b;
    text-decoration: none;
}

.forum-answer-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.forum-answer-row .form-input { flex: 1; }

.small-btn {
    padding: 8px 14px;
    font-size: 13px;
}

/* =========================================================
   HAZIR DESTE (bank) + KART OTURUMU
   ========================================================= */

.bank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.bank-row .pf-select { flex: 1; min-width: 130px; }

.bank-count {
    font-size: 13px;
    opacity: .65;
    white-space: nowrap;
}

.fc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.fc-progress {
    font-size: 13px;
    opacity: .7;
    margin: 0;
}

.fc-summary {
    text-align: center;
    padding: 18px 0;
}

.fc-summary h4 {
    font-size: 20px;
    margin: 6px 0;
}

.fc-tally { font-size: 15px; }

/* =========================================================
   PROGRAM GÖREV FORMU
   ========================================================= */

.plan-open-btn {
    width: 100%;
    margin-top: 8px;
    padding: 7px 0;
    border-radius: 9px;
    border: 1px dashed rgba(212, 175, 55, .45);
    background: transparent;
    color: var(--accent, #d4af37);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.plan-open-btn:hover {
    background: rgba(212, 175, 55, .1);
}

.plan-form {
    display: none;
    flex-direction: column;
    gap: 7px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 11px;
    background: rgba(212, 175, 55, .06);
    border: 1px solid rgba(212, 175, 55, .3);
}

.plan-form.open { display: flex; }

.plan-form .pf-select,
.plan-form .pf-input {
    font-size: 13px;
    padding: 7px 9px;
    width: 100%;
}

.plan-form-actions {
    display: flex;
    gap: 8px;
}

.plan-item.task { align-items: center; }

.plan-task-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
}

.plan-task-main b { font-size: 13px; }

.plan-task-main small {
    opacity: .6;
    font-size: 11px;
}

.plan-chip {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 2px 7px;
    border-radius: 99px;
    color: #fff;
}

.plan-chip.tyt { background: #5b5bd6; }

.plan-chip.ayt { background: #b8860b; }

.plan-min {
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    opacity: .75;
    white-space: nowrap;
}

.plan-day-min {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    opacity: .6;
    margin-left: 5px;
    text-decoration: none;
}

/* =========================================================
   KURAL TANILAMA ÇIKTISI
   ========================================================= */

.diag-out {
    margin: 8px 0 0;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(212, 175, 55, .25);
    font-family: Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 260px;
    overflow-y: auto;
}


/* ---- Gunun Bilgileri ---- */
.gb-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.gb-card {
  background: linear-gradient(135deg, #fffdf5, #fff7e6);
  border: 1px solid #f0e2c0;
  border-left: 4px solid #d9a520;
  border-radius: 12px;
  padding: 10px 14px;
}

.gb-card:last-child {
  border-left-color: #1a9c5b;
  background: linear-gradient(135deg, #f4fbf6, #eafaf0);
  box-shadow: 0 0 0 2px rgba(26,156,91,.15);
}

.gb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.gb-slot { font-size: 11.5px; font-weight: 700; color: #b07b00; }

.gb-date { font-size: 11.5px; color: #999; }

.gb-cat {
  margin-left: auto;
  font-size: 11px;
  background: #efe9ff;
  color: #5b3fb8;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 600;
}

.gb-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #333;
}


/* ---- Taban Puanlari ---- */
.taban-wrap {
  max-height: 380px;
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
}

.taban-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.taban-table thead th {
  position: sticky;
  top: 0;
  background: #f7f5ff;
  color: #5b3fb8;
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  z-index: 1;
}

.taban-table td {
  padding: 7px 10px;
  border-top: 1px solid #f0f0f0;
  color: #444;
}


/* ---- Program Uretici ---- */
.plan-gen {
  display: none;
  background: #f8f7ff;
  border: 1px dashed #b9aef0;
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
}

.plan-gen.open { display: block; }

.plan-gen h4 { margin: 0 0 10px; color: #5b3fb8; font-size: 15px; }

.gen-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gen-row .pf-select { flex: 1; min-width: 110px; }

.gen-time { max-width: 120px; }

.gen-label {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #555;
}

.gen-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px 10px;
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px 10px;
}

.gen-topic {
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
  cursor: pointer;
}

.gen-days { display: flex; gap: 6px; flex-wrap: wrap; }

.gen-day {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12.5px;
  cursor: pointer;
  color: #666;
}

.gen-day:has(input:checked) {
  background: #efeaff;
  border-color: #8d76e8;
  color: #4a2fb0;
  font-weight: 700;
}

.plan-time {
  display: block;
  font-size: 11px;
  color: #1a9c5b;
  font-style: normal;
  margin-top: 2px;
}

/* === QUIZ (flashcards v10) === */
.quiz-progress {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 12px;
    font-size: 13px; font-weight: 600; color: #64748b;
}
.quiz-question {
    background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%);
    border-radius: 12px; padding: 18px 16px;
    margin-bottom: 14px; font-weight: 700; font-size: 16px;
    line-height: 1.5; color: #1e293b;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    width: 100%; text-align: left; padding: 14px 16px;
    border: 2px solid #e2e8f0; border-radius: 12px;
    background: #fff; font-size: 14px; line-height: 1.5;
    color: #334155; cursor: pointer; transition: all .2s;
    white-space: pre-wrap; word-break: break-word;
}
.quiz-option:not(:disabled):hover {
    border-color: #a78bfa; background: #faf5ff;
    transform: translateY(-1px);
}
.quiz-option.quiz-correct {
    border-color: #22c55e; background: #dcfce7; color: #166534;
    font-weight: 700;
}
.quiz-option.quiz-wrong {
    border-color: #ef4444; background: #fee2e2; color: #991b1b;
    text-decoration: line-through;
}
.quiz-option:disabled { cursor: default; opacity: .85; }
.quiz-feedback-text {
    padding: 10px 14px; border-radius: 10px;
    margin: 12px 0 10px; font-weight: 600; font-size: 14px;
    line-height: 1.4;
}
.quiz-feedback-text.fb-ok { background: #dcfce7; color: #166534; }
.quiz-feedback-text.fb-no { background: #fee2e2; color: #991b1b; }
.quiz-done {
    text-align: center; padding: 20px 10px;
}
.quiz-done p { color: #475569; }


/* CANLI SOHBET */
.chat-wrap { display:flex; flex-direction:column; height:calc(100vh - 180px); max-width:700px; margin:0 auto; }
.chat-messages { flex:1; overflow-y:auto; padding:12px 0; display:flex; flex-direction:column; gap:8px; }
.chat-msg { background:var(--bg-secondary,#f1f5f9); border-radius:12px; padding:10px 14px; max-width:80%; align-self:flex-start; }
.chat-msg-me { background:var(--primary,#2563eb); color:#fff; align-self:flex-end; }
.chat-msg-me .chat-nick { color:rgba(255,255,255,.8); }
.chat-msg-me .chat-time { color:rgba(255,255,255,.6); }
.chat-msg-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:4px; }
.chat-nick { font-size:12px; font-weight:700; color:#475569; }
.chat-time { font-size:11px; color:#94a3b8; }
.chat-msg-text { font-size:14px; line-height:1.5; word-break:break-word; margin:0; }
.chat-input-bar { display:flex; gap:8px; padding:12px 0; border-top:1px solid var(--border,#e2e8f0); }
.chat-input-bar .pf-input { flex:1; }


/* =========================================================
   SORU-CEVAP SİSTEMİ
   ========================================================= */

.qa-select-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.qa-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.qa-status.answered {
    background: var(--success-light, #ecfdf3);
    color: #16a34a;
}

.qa-status.pending {
    background: var(--warning-light, #fff7ed);
    color: #d97706;
}

.qa-time {
    font-size: 11px;
    color: var(--muted, #94a3b8);
}

.qa-location {
    font-size: 12px;
    color: var(--muted, #94a3b8);
    margin-bottom: 8px;
}

.qa-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text, #172033);
    white-space: pre-wrap;
    word-break: break-word;
}

.qa-card,
.qa-admin-card {
    border: 1px solid var(--border, #e2e8f0);
    background: #fafbff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.qa-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.qa-student {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #4f46e5);
}

.qa-reply {
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #e0e7ff;
    border-radius: 10px;
}

.qa-reply-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.qa-reply-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #4f46e5);
}

.qa-reply-time {
    font-size: 11px;
    color: var(--muted, #94a3b8);
}

.qa-reply p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text, #172033);
    white-space: pre-wrap;
    word-break: break-word;
}

.qa-reply-area {
    margin-top: 12px;
}

.qa-reply-area .note-box.small {
    min-height: 70px;
}


/* =========================================================
   GAZİ NOTLARI (altın sarısı kenarlıklı)
   ========================================================= */

.gazi-note {
    border: 2px solid #eab308;
    background: #fefce8;
    border-radius: 13px;
    padding: 14px 16px;
    margin-top: 12px;
}

.gazi-note p {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    color: var(--text, #172033);
    font-size: 14px;
}

body.dark .gazi-note {
    background: #2a2205;
    border-color: #ca8a04;
}

body.dark .qa-card,
body.dark .qa-admin-card {
    background: #101726;
}


/* =========================================================
   DERS İÇERİĞİ (özet + çözümlü örnekler)
   ========================================================= */
.lesson-summary {
    background: #fafaf5;
    border-left: 4px solid #c9a227;
    border-radius: 8px;
    padding: 16px 20px;
    line-height: 1.6;
    font-size: 15px;
}
.lesson-summary p { margin: 0 0 10px; }
.lesson-summary p:last-child { margin-bottom: 0; }
.lesson-summary b, .lesson-summary strong { color: #996d00; }

.lesson-example {
    background: #fffdf5;
    border: 1px solid #eee4c8;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.lesson-example-q {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}
.lesson-example-q p { margin: 4px 0; }
.lesson-example-a {
    background: #f1f8ef;
    border-radius: 8px;
    padding: 12px 14px;
    line-height: 1.6;
    color: #2d5c2d;
}
.lesson-example-a p { margin: 4px 0; }

/* =========================================================
   SORULAR BOLUMU
   ========================================================= */
.sorular-page { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.soru-ders-nav { display: flex; flex-direction: column; gap: 14px; }
.soru-grup { display: flex; flex-direction: column; gap: 6px; }
.soru-grup-label { font-weight: 700; font-size: 13px; letter-spacing: .5px; color: var(--accent, #6366f1); text-transform: uppercase; margin-bottom: 2px; }
.soru-grup-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.soru-ders-btn {
    background: var(--card, #1b2137); color: #dfe3ee;
    border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
    padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.soru-ders-btn:hover { border-color: #6366f1; color: #fff; transform: translateY(-1px); }
.soru-ders-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }

.soru-panel { display: flex; flex-direction: column; gap: 16px; }
.soru-skor { padding: 10px 14px; border-radius: 12px; background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.25); }
.soru-skor-txt { font-weight: 700; font-size: 15px; color: #e6e8f5; }

.soru-kart { display: flex; flex-direction: column; gap: 12px; }
.soru-no { font-size: 12px; font-weight: 600; letter-spacing: .4px; color: #9aa4c7; text-transform: uppercase; }
.soru-metin { font-size: 16px; line-height: 1.55; color: #f0f1f7; margin: 0; white-space: pre-wrap; }
.soru-siklar { display: flex; flex-direction: column; gap: 8px; }
.soru-sik {
    display: flex; align-items: flex-start; gap: 12px; text-align: left;
    background: #161c30; border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; padding: 11px 14px; cursor: pointer;
    transition: background .12s, border-color .12s, transform .1s;
}
.soru-sik:hover { border-color: #6366f1; transform: translateX(2px); }
.soru-sik-harf {
    flex: 0 0 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent, #6366f1); color: #fff; border-radius: 8px;
    font-weight: 700; font-size: 14px;
}
.soru-sik-metin { font-size: 15px; line-height: 1.45; color: #dde1f0; }
.soru-sik.secildi { border-color: #6366f1; background: rgba(99,102,241,.12); }
.soru-kart.dogru .soru-sik.secildi { border-color: #22c55e; background: rgba(34,197,94,.14); }
.soru-kart.dogru .soru-sik.secildi .soru-sik-harf { background: #22c55e; }
.soru-kart.yanlis .soru-sik.secildi { border-color: #ef4444; background: rgba(239,68,68,.14); }
.soru-kart.yanlis .soru-sik.secildi .soru-sik-harf { background: #ef4444; }
.soru-cozum { border-left: 3px solid #6366f1; background: rgba(99,102,241,.08); border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 14px; line-height: 1.6; color: #dfe3ee; }
.soru-cozum strong { color: #22c55e; }
.soru-cozum-btn {
    align-self: flex-start; background: transparent; color: #a5b0d6;
    border: 1px solid rgba(165,176,214,.35); border-radius: 10px;
    padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: .15s;
}
.soru-cozum-btn:hover { background: rgba(99,102,241,.12); color: #fff; border-color: #6366f1; }
