/* ===================================================
   DERS NOTLARIM - SADE, ŞIK VE KATEGORİZE PORTAL
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Tema Renkleri */
    --bg-page: #0a0f1d;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #273549;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.4);

    --primary: #38bdf8;
    --primary-dark: #0284c7;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

[data-theme="light"] {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(2, 132, 199, 0.4);

    --primary: #0284c7;
    --primary-dark: #0369a1;
}

/* Temel */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===================================================
   ÜST MENÜ (NAVBAR)
   =================================================== */
.navbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    user-select: none;
}

.brand-icon {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 6px;
    background:
        linear-gradient(#34d399, #34d399) 0 0 / 46% 46% no-repeat,
        linear-gradient(#38bdf8, #38bdf8) 100% 0 / 46% 46% no-repeat,
        linear-gradient(#f87171, #f87171) 0 100% / 46% 46% no-repeat,
        linear-gradient(#fbbf24, #fbbf24) 100% 100% / 46% 46% no-repeat;
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.brand-title span {
    color: var(--primary);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border-color: rgba(56, 189, 248, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 12.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    z-index: 1200;
}

.nav-dropdown.tools-menu .nav-dropdown-menu,
.nav-dropdown .tools-menu,
.nav-dropdown#tools-dropdown .nav-dropdown-menu {
    left: auto;
    right: 0;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-dropdown-menu button {
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.nav-dropdown-menu button:hover {
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary);
}

.btn-tools-toggle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.btn-tools-toggle:hover {
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--primary);
}

.mobile-nav-label {
    margin: 0.75rem 0 0.25rem;
    padding: 0 0.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.btn-wheel-toggle {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-wheel-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.5);
}

.btn-board-toggle {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 700;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-board-toggle:hover {
    transform: translateY(-2px);
}

.btn-board-toggle.active {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================
   1. ANA SAYFA (HOME VIEW) STİLLERİ
   =================================================== */
.home-hero-plane {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    background:
        radial-gradient(ellipse 70% 55% at 18% 35%, rgba(56, 189, 248, 0.22), transparent 58%),
        radial-gradient(ellipse 55% 45% at 88% 20%, rgba(14, 165, 233, 0.12), transparent 52%),
        radial-gradient(ellipse 40% 35% at 70% 85%, rgba(245, 158, 11, 0.06), transparent 55%),
        linear-gradient(165deg, #070d1a 0%, #0b1528 42%, var(--bg-page) 100%);
}

[data-theme="light"] .home-hero-plane {
    background:
        radial-gradient(ellipse 70% 55% at 18% 35%, rgba(2, 132, 199, 0.16), transparent 58%),
        radial-gradient(ellipse 55% 45% at 88% 20%, rgba(14, 165, 233, 0.1), transparent 52%),
        linear-gradient(165deg, #e8f4fb 0%, #f3f8fc 50%, var(--bg-page) 100%);
}

.home-hero-glow {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(0,0,0,0.55), transparent 75%);
    pointer-events: none;
    animation: homeGridFade 1.4s ease both;
}

.home-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
    opacity: 0.55;
}

.home-hero-orb--a {
    width: 22rem;
    height: 22rem;
    left: -4rem;
    top: 10%;
    background: rgba(56, 189, 248, 0.28);
    animation: homeOrbDrift 9s ease-in-out infinite alternate;
}

.home-hero-orb--b {
    width: 16rem;
    height: 16rem;
    right: 8%;
    bottom: 12%;
    background: rgba(14, 165, 233, 0.18);
    animation: homeOrbDrift 11s ease-in-out infinite alternate-reverse;
}

@keyframes homeOrbDrift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(18px, -22px) scale(1.06); }
}

@keyframes homeGridFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.5rem 3rem;
    width: 100%;
    max-width: 1200px;
    text-align: left;
    padding: 4.5rem 0 5rem;
    position: relative;
    z-index: 1;
}

.home-hero-copy {
    animation: homeHeroIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes homeHeroIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-brand {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7.2vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.92;
    margin-bottom: 1.15rem;
    color: var(--text-main);
}

.home-brand span {
    color: var(--primary);
}

.home-brand::after {
    content: '';
    display: block;
    width: 3.25rem;
    height: 4px;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
    animation: homeBarIn 0.9s 0.25s ease both;
}

@keyframes homeBarIn {
    from { width: 0; opacity: 0; }
    to { width: 3.25rem; opacity: 1; }
}

.home-title {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-family: var(--font-heading);
    font-weight: 650;
    margin-bottom: 0.85rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-main);
    max-width: 18ch;
}

.home-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 32rem;
    margin-bottom: 1.85rem;
}

.home-cta-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.btn-home-cta {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.85rem 1.45rem;
    border-radius: 12px;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35);
    transition: transform 0.2s, background 0.2s, box-shadow 0.25s;
    animation: homeCtaPulse 2.8s 1.2s ease-in-out infinite;
}

.btn-home-cta:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.22);
    animation: none;
}

@keyframes homeCtaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
}

.home-year {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.home-hero-stage {
    display: flex;
    justify-content: center;
    animation: homeStageIn 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes homeStageIn {
    from { opacity: 0; transform: translateX(24px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-stage-board {
    position: relative;
    width: min(100%, 28rem);
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.92)),
        radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.18), transparent 45%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

[data-theme="light"] .hero-stage-board {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.95)),
        radial-gradient(circle at 70% 30%, rgba(2, 132, 199, 0.12), transparent 45%);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.hero-stage-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.12), transparent);
    animation: homeScan 4.5s ease-in-out infinite;
}

@keyframes homeScan {
    0% { top: -10%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 75%; opacity: 0; }
}

.hero-stage-lines {
    position: absolute;
    inset: 18% 12% 22% 12%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.hero-stage-lines span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
}

.hero-stage-lines span:nth-child(1) { width: 88%; background: rgba(56, 189, 248, 0.55); }
.hero-stage-lines span:nth-child(2) { width: 72%; }
.hero-stage-lines span:nth-child(3) { width: 80%; background: rgba(56, 189, 248, 0.28); }
.hero-stage-lines span:nth-child(4) { width: 54%; }

.hero-stage-mark {
    position: absolute;
    right: 12%;
    bottom: 14%;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 12px;
    background:
        linear-gradient(#34d399, #34d399) 0 0 / 46% 46% no-repeat,
        linear-gradient(#38bdf8, #38bdf8) 100% 0 / 46% 46% no-repeat,
        linear-gradient(#f87171, #f87171) 0 100% / 46% 46% no-repeat,
        linear-gradient(#fbbf24, #fbbf24) 100% 100% / 46% 46% no-repeat;
    opacity: 0.9;
}

.home-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 2.35rem;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 0.4rem;
    z-index: 2;
    text-decoration: none;
    animation: homeCueFade 1s 1.1s ease both;
}

.home-scroll-cue span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    animation: homeCueBounce 1.6s ease-in-out infinite;
}

@keyframes homeCueFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes homeCueBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.45; }
}

.home-catalog {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.section-title-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title-bar h2 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-sub {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.upcoming-bar {
    margin-top: 2.5rem;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

.upcoming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    opacity: 0.85;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    cursor: pointer;
    animation: homeCardIn 0.55s ease both;
}

.course-card:nth-child(2) { animation-delay: 0.05s; }
.course-card:nth-child(3) { animation-delay: 0.1s; }
.course-card:nth-child(4) { animation-delay: 0.15s; }

@keyframes homeCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.35);
    background: var(--bg-card-hover);
}

.course-card.featured {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: none;
}

.course-card.upcoming {
    cursor: default;
    opacity: 0.72;
}

.course-card.upcoming:hover {
    transform: none;
    border-color: var(--border-color);
    background: var(--bg-card);
}

.course-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.15rem;
    gap: 0.5rem;
}

.course-grade-badge {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.course-grade-badge.lgs {
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent);
}

.course-status-badge {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 700;
}

.course-status-badge.pending {
    color: var(--text-dim);
}

.course-icon {
    display: none;
}

.course-title {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin: 0;
    letter-spacing: -0.02em;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.course-meta {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.course-features {
    display: none;
}

.course-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.btn-course-primary {
    flex: 0 0 auto;
    min-width: 4.5rem;
    background: var(--primary);
    color: #0f172a;
    font-weight: 800;
    border: none;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.btn-course-primary:hover {
    background: #7dd3fc;
}

.btn-course-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 650;
    transition: border-color 0.2s, color 0.2s;
}

.btn-course-secondary:hover {
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--primary);
    background: transparent;
}

/* ===================================================
   2. DERS DETAY GÖRÜNÜMÜ (COURSE VIEW)
   =================================================== */
.course-header-bar {
    padding: 1rem 0 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: none;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0.2rem 0 0;
}

.btn-back-home {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-back-home:hover {
    background: var(--primary);
    color: #0f172a;
    border-color: var(--primary);
}

.badge-active-grade {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.2rem;
}

.detail-title {
    font-size: 1.45rem;
    font-family: var(--font-heading);
    margin: 0;
}

/* DERS İÇİ SEKMELER — 4 ANA MOD + ALT PILL */
.mode-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0.85rem 0 0.4rem;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
}

.mode-tab-btn {
    flex: 0 1 auto;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 0.65rem 0.9rem;
    border-radius: 0;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    text-align: center;
    margin-bottom: -1px;
}

.mode-tab-btn:hover {
    color: var(--text-main);
    background: transparent;
}

.mode-tab-btn.active {
    background: transparent;
    color: var(--primary);
    border-bottom-color: var(--primary);
    box-shadow: none;
}

.mode-tab-btn[hidden] {
    display: none !important;
}

.sub-tabs {
    display: flex;
    gap: 0.25rem;
    margin: 0.55rem 0 0.85rem;
    flex-wrap: wrap;
    padding: 0;
}

.sub-tabs[hidden] {
    display: none !important;
}

.sub-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.sub-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.sub-tab-btn.active {
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary);
    border: none;
}

.sub-tab-btn[hidden] {
    display: none !important;
}

.inner-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    background: var(--bg-surface);
    padding: 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.inner-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.inner-tab-btn:hover {
    color: var(--text-main);
}

.inner-tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-pane.active {
    display: block;
}

.unit-filter-bar {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    scrollbar-width: none;
}

.unit-filter-bar::-webkit-scrollbar {
    display: none;
}

.note-unit-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

.champion-intro {
    margin-bottom: 0.5rem;
}

.champion-intro h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.champion-intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.champion-card {
    border-color: rgba(245, 158, 11, 0.35);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SUNUM KUTUSU */
.presentation-inner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    max-width: 800px;
    margin: 1rem auto;
}

.pres-badge {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pres-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.pres-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.pres-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.pres-btn-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-play-presentation {
    background: var(--primary);
    color: #0f172a;
    font-weight: 700;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-play-presentation:hover {
    background: var(--primary-dark);
}

.btn-fullscreen-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ÜNİTE FİLTRE HAPLARI */
.unit-filter-bar {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    margin-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.unit-filter-bar::-webkit-scrollbar {
    display: none;
}

.unit-pill {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.unit-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.unit-pill.active {
    background: rgba(56, 189, 248, 0.16);
    color: var(--primary);
    border-color: rgba(56, 189, 248, 0.4);
    font-weight: 700;
}

/* NOTLAR */
.notes-panel {
    margin-bottom: 2.5rem;
}

.notes-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.notes-toolbar-left {
    flex: 1 1 220px;
    min-width: 0;
}

.notes-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-linkish {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0.25rem;
}

.btn-linkish:hover {
    text-decoration: underline;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.note-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    gap: 0.5rem;
}

.note-top h4 {
    font-size: 1.05rem;
    font-family: var(--font-heading);
    margin: 0.15rem 0 0;
    line-height: 1.3;
}

.note-tag {
    font-size: 0.65rem;
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary);
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-weight: 700;
    flex-shrink: 0;
}

.note-body {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    max-height: 9.5rem;
    overflow: hidden;
    position: relative;
}

.note-card.is-expanded .note-body {
    max-height: none;
}

.note-card:not(.is-expanded) .note-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5rem;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}

.note-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.note-bottom-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.btn-note-expand {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.55rem;
    border-radius: 9999px;
    cursor: pointer;
}

.btn-note-expand:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.note-highlight {
    background: rgba(245, 158, 11, 0.12);
    border-left: 3px solid var(--accent);
    padding: 0.6rem 0.85rem;
    border-radius: 4px;
    margin: 0.65rem 0;
    color: var(--text-main);
}

.note-alert {
    background: rgba(239, 68, 68, 0.12);
    border-left: 3px solid var(--danger);
    padding: 0.6rem 0.85rem;
    border-radius: 4px;
    margin: 0.65rem 0;
    color: #fca5a5;
}

.styled-list {
    list-style: none;
    margin: 0.4rem 0;
}

.styled-list li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.35rem;
}

.styled-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.6rem 0;
}

.comp-card {
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.comp-card.cold {
    background: rgba(56, 189, 248, 0.08);
}

.comp-card.warm {
    background: rgba(245, 158, 11, 0.08);
}

.btn-print {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

/* QUIZ */
.quiz-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 3rem;
}

.quiz-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.quiz-score {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.question-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.q-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.q-options {
    display: grid;
    gap: 0.5rem;
}

.q-opt-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.q-opt-btn:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.opt-letter {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-main);
}

.q-opt-btn.correct {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    color: #6ee7b7 !important;
}

.q-opt-btn.correct .opt-letter {
    background: #10b981;
    color: #0f172a;
}

.q-opt-btn.wrong {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
}

.q-opt-btn.wrong .opt-letter {
    background: #ef4444;
    color: white;
}

.q-solution {
    margin-top: 0.85rem;
    background: rgba(56, 189, 248, 0.08);
    border-left: 3px solid var(--primary);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: none;
}

/* ===================================================
   MÜFREDAT & AYRINTILI ÜNİTE AKORDİYON SİSTEMİ
   =================================================== */
.curriculum-container {
    margin-bottom: 3rem;
}

.curriculum-header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-card);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.btn-toggle-all-units {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-all-units:hover {
    background: var(--primary);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.curriculum-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.curriculum-unit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.curriculum-unit-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
}

.curriculum-unit-card.expanded {
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.curr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
}

.curr-card-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.curr-header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
}

.curr-unit-badge {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(56, 189, 248, 0.3);
}

.curr-unit-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 700;
}

.curr-unit-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.curr-lgs-weight {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.curr-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.curr-status-pill {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.curr-arrow-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.curriculum-unit-card.expanded .curr-arrow-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Gövde */
.curr-card-body {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.4);
}

.curriculum-unit-card.expanded .curr-card-body {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

.curr-exam-tip-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.03));
    border-left: 4px solid #f59e0b;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.curr-exam-tip-box .tip-badge {
    display: inline-block;
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.curr-exam-tip-box p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.5;
}

.curr-topics-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.curr-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.curr-topic-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.curr-topic-item:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
}

.curr-topic-header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.curr-topic-code {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.curr-topic-header strong {
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.35;
}

.curr-topic-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.curr-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.btn-curr-act {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--primary);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-curr-act:hover {
    background: var(--primary);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-curr-act.quiz {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.35);
    color: #fb7185;
}

.btn-curr-act.quiz:hover {
    background: #f43f5e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

.btn-curr-act.lab {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.btn-curr-act.lab:hover {
    background: #10b981;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Eski tablo uyumluluğu */
.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.curriculum-table th, .curriculum-table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.status-pill {
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

/* ===================================================
   3. BELİRGİN VE ANLAŞILIR AKILLI TAHTA ÇUBUĞU
   =================================================== */
.smart-toolbar-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 2px solid #38bdf8;
    border-radius: var(--radius-full);
    padding: 0.45rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.3);
    z-index: 99990;
    user-select: none;
}

.smart-toolbar-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.smart-toolbar-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.board-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.board-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.board-btn.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    font-weight: 700;
}

.board-btn.close-toolbar {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.board-btn.close-toolbar:hover {
    background: #ef4444;
    color: white;
}

.board-colors {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.3rem;
}

.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s;
}

.color-circle:hover {
    transform: scale(1.25);
}

.color-circle.active {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* SÜRE KUTUSU */
.smart-timer-modal {
    position: fixed;
    top: 80px;
    right: 25px;
    width: 250px;
    background: #0f172a;
    border: 2px solid #38bdf8;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 99991;
}

.timer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.timer-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.timer-big-display {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    color: #38bdf8;
    margin-bottom: 0.75rem;
}

.timer-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.85rem;
}

.timer-presets button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.3rem 0;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

.timer-bottom-actions {
    display: flex;
    gap: 0.4rem;
}

.btn-timer-start {
    flex: 1;
    background: var(--primary);
    color: #0f172a;
    font-weight: 700;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-timer-reset {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: none;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
}

/* SUNUM MODALI */
.presentation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.98);
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.presentation-modal.open {
    display: flex;
}

.modal-header {
    background: var(--bg-surface);
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-modal-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

.modal-close-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}

.modal-iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
}

.modal-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===================================================
   MOBİL & TABLET UYUMLULUK (RESPONSIVE MASTER)
   =================================================== */

@media (max-width: 900px) {
    .category-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    /* Navbar Düzeni */
    .navbar {
        padding: 0.6rem 0;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .brand-title {
        font-size: 1.15rem;
    }

    .brand-icon {
        width: 1.4rem;
        height: 1.4rem;
        border-radius: 5px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
        gap: 0.35rem;
        scrollbar-width: none;
    }

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

    .nav-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .btn-board-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.78rem;
    }

    /* Ana Sayfa Hero */
    .home-hero-plane {
        min-height: auto;
        padding-bottom: 2.5rem;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0 2.5rem;
        text-align: left;
    }

    .home-brand {
        font-size: clamp(2.4rem, 11vw, 3.1rem);
    }

    .home-title {
        font-size: 1.2rem;
        max-width: none;
        margin-bottom: 0.55rem;
    }

    .home-desc {
        font-size: 0.95rem;
        margin-bottom: 1.4rem;
    }

    .home-hero-stage {
        order: -1;
        max-width: 18rem;
        margin: 0 auto;
    }

    .hero-stage-board {
        width: 100%;
        border-radius: 18px;
    }

    .home-scroll-cue {
        display: none;
    }

    .home-hero-orb--a {
        width: 14rem;
        height: 14rem;
    }

    .home-hero-orb--b {
        width: 10rem;
        height: 10rem;
    }

    .section-title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        margin-bottom: 0.9rem;
    }

    .section-title-bar h2 {
        font-size: 1.05rem;
    }

    /* Kartlar Tek Sütun */
    .category-cards-grid,
    .upcoming-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .course-card {
        padding: 1.1rem 1.15rem;
    }

    .course-title {
        font-size: 1.15rem;
    }

    .course-actions {
        flex-direction: row;
    }

    /* Ders Detay Başlığı */
    .course-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 1.25rem 0 1rem;
    }

    .detail-title {
        font-size: 1.4rem;
    }

    .detail-desc {
        font-size: 0.85rem;
    }

    /* Ders İçi Sekmeler (Yatay Kaydırılabilir) */
    .mode-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mode-tabs::-webkit-scrollbar {
        display: none;
    }

    .mode-tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.55rem 0.9rem;
    }

    .sub-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .inner-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.35rem;
        padding: 0.3rem;
        scrollbar-width: none;
    }

    .inner-tabs::-webkit-scrollbar {
        display: none;
    }

    .inner-tab-btn {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 0.5rem 0.85rem;
    }

    /* Sunum Kartı */
    .presentation-inner-card {
        padding: 1.35rem;
    }

    .pres-title {
        font-size: 1.35rem;
    }

    .pres-desc {
        font-size: 0.9rem;
    }

    .pres-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .pres-btn-row {
        flex-direction: column;
    }

    .btn-play-presentation, .btn-fullscreen-link {
        width: 100%;
        text-align: center;
    }

    /* Notlar & Kartlar */
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .note-card {
        padding: 1.15rem;
    }

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

    /* Quiz */
    .quiz-container {
        padding: 1.15rem;
    }

    .q-title {
        font-size: 0.98rem;
    }

    .q-opt-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }

    /* Müfredat Tablosu */
    .curriculum-container {
        border-radius: var(--radius-sm);
    }

    .curriculum-table th, .curriculum-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Akıllı Tahta Araç Çubuğu */
    .smart-toolbar-container {
        width: 96%;
        bottom: 12px;
        padding: 0.4rem 0.5rem;
        flex-direction: column;
        border-radius: var(--radius-md);
        gap: 0.35rem;
    }

    .smart-toolbar-badge {
        font-size: 0.75rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 0.2rem;
        width: 100%;
        text-align: center;
    }

    .smart-toolbar-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
        width: 100%;
    }

    .board-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }

    .smart-timer-modal {
        top: 65px;
        right: 15px;
        width: 230px;
        padding: 1rem;
    }

    .timer-big-display {
        font-size: 2.2rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        margin-top: 2.5rem;
        text-align: center;
    }
}

/* ===================================================
   CANLI SİMÜLASYONLAR & FLASHCARDS & ÇARKIFELEK
   =================================================== */

/* Simülasyon Kartı */
.sim-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.sim-badge {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.sim-canvas-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.sim-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sim-stat {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sim-stat .stat-lbl {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
}

@keyframes spinFan {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 3D FLASHCARDS (HAFIZA KARTLARI) */
.flashcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.flashcard {
    height: 250px;
    cursor: pointer;
    perspective: 1000px;
    user-select: none;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: var(--radius-lg);
}

.flashcard.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.card-front {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid rgba(56, 189, 248, 0.4);
    color: var(--text-main);
}

.card-front h4 {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.4;
    color: #f8fafc;
    margin: auto 0;
}

.card-back {
    background: linear-gradient(145deg, #0369a1, #0c4a6e);
    border: 2px solid #38bdf8;
    color: #ffffff;
    transform: rotateY(180deg);
}

.card-back h4 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fef08a;
    margin-bottom: 0.5rem;
}

.card-back p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #f1f5f9;
    margin: auto 0;
}

.card-hint {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.15);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    display: inline-block;
    align-self: center;
}

.card-back .card-hint {
    color: #10b981;
    background: rgba(16, 185, 129, 0.25);
}

.click-hint {
    font-size: 0.85rem;
    color: #38bdf8;
    margin: 0;
    font-weight: 700;
}

.card-back .click-hint {
    color: rgba(255, 255, 255, 0.7);
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ÇARKIFELEK MODALI */
.wheel-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.wheel-modal-content {
    background: #0f172a;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.3);
    animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

.wheel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.wheel-header h3 {
    font-size: 1.15rem;
    color: var(--accent);
}

.wheel-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.wheel-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.wheel-canvas-container {
    text-align: center;
}

.btn-spin-now {
    margin-top: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: transform 0.2s;
    width: 100%;
}

.btn-spin-now:hover {
    transform: scale(1.04);
}

.wheel-result {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 650px) {
    .wheel-body {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* ===================================================
   NAV ACTION BUTTONS (SPEED RUN & QR)
   =================================================== */
.btn-speedrun-toggle {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
    transition: all 0.2s ease;
}

.btn-speedrun-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6);
}

.btn-qr-toggle {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-qr-toggle:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--primary);
}

/* ===================================================
   DNA EŞLEME MİNİ OYUNU STİLLERİ
   =================================================== */
.dna-game-container {
    background: #0f172a;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.dna-strands-grid {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(120px, 160px) minmax(160px, 220px);
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.dna-strand {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.strand-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.35rem;
}

.dna-base-card {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem;
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    user-select: none;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.dna-base-card .base-badge {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
}

.dna-base-card .base-name {
    font-size: 1.05rem;
    font-weight: 800;
}

.dna-base-card.base-A { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.dna-base-card.base-T { background: linear-gradient(135deg, #0284c7, #075985); color: #fff; }
.dna-base-card.base-G { background: linear-gradient(135deg, #10b981, #047857); color: #fff; }
.dna-base-card.base-C { background: linear-gradient(135deg, #f59e0b, #b45309); color: #0f172a; }

.dna-base-card.empty {
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    justify-content: center;
}

.dna-base-card.active-slot {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: rgba(245, 158, 11, 0.12);
    animation: pulseSlot 1.2s infinite ease-in-out;
}

@keyframes pulseSlot {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.9); }
}

.dna-bonds-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dna-bond-line {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.dna-bond-line.active {
    color: #38bdf8;
    font-weight: 800;
}

.dna-bond-line .bond-tag {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.85rem;
}

.dna-picker-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-dna-pick {
    border: none;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-dna-pick:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.6);
}

/* ===================================================
   MİTOZ EVRE SIRALAMA OYUNU
   =================================================== */
.mitosis-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.mitosis-slot {
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.2s;
}

.mitosis-slot.filled {
    background: rgba(56, 189, 248, 0.12);
    border: 2px solid var(--primary);
    cursor: pointer;
}

.mitosis-slot .slot-number {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.mitosis-slot .slot-remove-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 800;
}

.mitosis-pool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.mitosis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    text-align: center;
}

.mitosis-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 6px 15px rgba(56, 189, 248, 0.2);
}

.mitosis-card .mitosis-icon {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.mitosis-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.3rem 0;
    line-height: 1.3;
}

.mitosis-tap-hint {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
}

/* Hücre Bölünme Animasyonu */
.mitosis-cell-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.mitosis-cell-single {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #38bdf8 30%, #0284c7 90%);
    border-radius: 50%;
    border: 2px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    color: #fff;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mitosis-cell-single.divided {
    width: 140px;
    height: 60px;
    background: transparent;
    border: none;
    position: relative;
}

.mitosis-cell-single.divided::before,
.mitosis-cell-single.divided::after {
    content: "2n";
    position: absolute;
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, #10b981 30%, #059669 90%);
    border-radius: 50%;
    border: 2px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    top: 2px;
}

.mitosis-cell-single.divided::before {
    left: 0;
    animation: splitLeft 0.8s forwards;
}

.mitosis-cell-single.divided::after {
    right: 0;
    animation: splitRight 0.8s forwards;
}

@keyframes splitLeft {
    from { transform: translateX(35px); }
    to { transform: translateX(0); }
}

@keyframes splitRight {
    from { transform: translateX(-35px); }
    to { transform: translateX(0); }
}

/* ===================================================
   60 SANİYE HIZLI ATEŞ (SPEED RUN) MODAL
   =================================================== */
.speedrun-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.speedrun-modal-content {
    background: #0f172a;
    border: 3px solid #ef4444;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(239, 68, 68, 0.4);
    text-align: center;
    position: relative;
    animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sr-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sr-timer {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: monospace;
    color: #f59e0b;
}

.sr-stats {
    display: flex;
    gap: 1rem;
}

.sr-stat-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
}

.sr-question-box {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.sr-buttons-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-sr-choice {
    padding: 1.2rem;
    font-size: 1.15rem;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-sr-choice:hover {
    transform: translateY(-3px);
}

.btn-sr-true {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.btn-sr-false {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}

.sr-feedback-box {
    min-height: 32px;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.sr-close-x {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===================================================
   QR KOD MODALI (TAHTADAN TELEFONA PAYLAŞIM)
   =================================================== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qr-modal-content {
    background: #0f172a;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(56, 189, 248, 0.3);
    position: relative;
    animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.qr-code-box {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 16px;
    display: inline-block;
    margin: 1rem auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.btn-qr-choice {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-qr-choice:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.btn-qr-choice.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

#qr-code-target img, #qr-code-target canvas {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    margin: 0 auto;
    display: block;
}

.qr-instruction {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.75rem;
    line-height: 1.45;
}

/* ===================================================
   v5: MOD, MOBİL MENÜ, QUIZ ANALİZ, FLASH, PRINT, PWA
   =================================================== */
.btn-mode-toggle,
.mobile-nav-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.15rem;
    padding: 0.35rem 0.65rem;
}

.mobile-nav-panel {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.mobile-nav-panel.open {
    display: flex;
}

.mobile-nav-panel .nav-btn {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border-color);
}

body.mode-student .teacher-only {
    display: none !important;
}

.quiz-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.quiz-percent {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}

.quiz-analysis-panel {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

.quiz-analysis-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.btn-reset-quiz,
.btn-reset-flash,
.btn-print-all {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.quiz-analysis-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.qa-stat {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    text-align: center;
}

.qa-stat span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.qa-stat strong {
    font-size: 1.2rem;
}

.qa-stat.ok strong { color: #10b981; }
.qa-stat.bad strong { color: #ef4444; }
.qa-stat.muted strong { color: var(--text-muted); }

.quiz-weak-topics {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.weak-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.weak-chip {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.quiz-perfect {
    margin-top: 0.65rem;
    color: #10b981;
    font-weight: 700;
    font-size: 0.9rem;
}

.flash-progress-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    align-items: flex-end;
}

.flash-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.flash-stat {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}

.flash-stat.known { color: #10b981; border-color: rgba(16, 185, 129, 0.4); }
.flash-stat.learning { color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); }

.flashcard-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flashcard-wrap.known .flashcard {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45);
}

.flashcard-wrap.learning .flashcard {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45);
}

.flash-actions {
    display: flex;
    gap: 0.35rem;
}

.btn-flash {
    flex: 1;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    padding: 0.4rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-flash.known.active {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.12);
}

.btn-flash.learning.active {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.12);
}

.notes-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-actions .btn-tools-toggle {
        display: none;
    }

    body.mode-teacher .nav-actions .btn-mode-toggle {
        display: inline-flex;
    }
}

@media print {
    .note-card .note-body {
        max-height: none !important;
        overflow: visible !important;
    }
    .note-card .note-body::after,
    .btn-note-expand {
        display: none !important;
    }

    .navbar,
    .footer,
    .inner-tabs,
    .mode-tabs,
    .sub-tabs,
    .course-header-bar,
    .nav-actions,
    .mobile-nav-panel,
    .presentation-modal,
    .btn-print,
    .btn-print-all,
    .notes-toolbar,
    .unit-filter-bar,
    .flash-actions,
    .quiz-analysis-panel button,
    .no-print,
    .exam-toolbar {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    body.print-notes-mode #view-home,
    body.print-notes-mode #tab-presentation,
    body.print-notes-mode #tab-simulations,
    body.print-notes-mode #tab-flashcards,
    body.print-notes-mode #tab-quiz,
    body.print-notes-mode #tab-exams,
    body.print-notes-mode #tab-champion,
    body.print-notes-mode #tab-curriculum {
        display: none !important;
    }

    body.print-notes-mode #view-course,
    body.print-notes-mode #tab-notes {
        display: block !important;
    }

    body.print-exam-mode #view-home,
    body.print-exam-mode #tab-presentation,
    body.print-exam-mode #tab-simulations,
    body.print-exam-mode #tab-flashcards,
    body.print-exam-mode #tab-quiz,
    body.print-exam-mode #tab-notes,
    body.print-exam-mode #tab-champion,
    body.print-exam-mode #tab-curriculum {
        display: none !important;
    }

    body.print-exam-mode #view-course,
    body.print-exam-mode #tab-exams {
        display: block !important;
    }

    body.print-exam-mode .exam-sheet {
        display: none !important;
    }

    body.print-exam-mode .exam-sheet.print-focus-exam {
        display: block !important;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    body.print-single-note .note-card {
        display: none !important;
    }

    body.print-single-note .note-card.print-focus {
        display: block !important;
        break-inside: avoid;
        border: none;
        box-shadow: none;
    }

    .note-card,
    .exam-question {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .exam-answer-lines .exam-line {
        border-bottom-color: #999 !important;
    }

    .exam-ideal-answer {
        background: #f3f4f6 !important;
        color: #000 !important;
        border-color: #ccc !important;
    }
}

/* Yazılı prova */
.exam-sheet {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.exam-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.exam-header-block h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.exam-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
}

.exam-student-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.exam-section-title {
    font-size: 1.05rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(56, 189, 248, 0.35);
    color: var(--primary);
}

.exam-question {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.exam-q-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.55rem;
}

.exam-points {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.exam-topic {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.exam-scenario {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.65rem;
}

.exam-q-text {
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.exam-answer-lines {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 0.5rem;
}

.exam-line {
    border-bottom: 1px solid var(--border-color);
    height: 1.1rem;
}

.exam-ideal-answer {
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 0.9rem;
}

.exam-ideal-answer p {
    margin: 0.35rem 0 0;
}

