/* ── Block from original lines 10–99 ── */
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        body { font-family: 'Inter', sans-serif; }
        .gradient-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
        .card-hover { transition: all 0.3s ease; }
        .card-hover:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
        .badge-gold { background: linear-gradient(45deg, #FFD700, #FFA500); }
        .badge-silver { background: linear-gradient(45deg, #C0C0C0, #A0A0A0); }
        .badge-bronze { background: linear-gradient(45deg, #CD7F32, #B8860B); }
        .badge-earned { 
            background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700, #FFED4E) !important;
            background-size: 200% 200% !important;
            animation: badgeGlow 2s ease-in-out infinite alternate, goldShimmer 3s ease-in-out infinite !important;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
            opacity: 1 !important;
            border: 2px solid #FFD700 !important;
            position: relative !important;
        }
        .badge-earned::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFED4E);
            border-radius: inherit;
            z-index: -1;
            animation: goldShimmer 3s ease-in-out infinite;
        }
        .badge-earned::after {
            content: '✨';
            position: absolute;
            top: -8px;
            right: -8px;
            font-size: 16px;
            animation: sparkle 2s ease-in-out infinite;
        }
        .badge-locked { 
            background: linear-gradient(45deg, #9CA3AF, #6B7280) !important;
            opacity: 0.7 !important;
        }
        .badge-new { 
            animation: badgeEarned 1s ease-in-out;
        }
        @keyframes badgeGlow {
            0% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.3); }
            100% { box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.5); }
        }
        @keyframes goldShimmer {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        @keyframes sparkle {
            0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
            25% { opacity: 0.7; transform: scale(1.2) rotate(90deg); }
            50% { opacity: 1; transform: scale(0.8) rotate(180deg); }
            75% { opacity: 0.7; transform: scale(1.1) rotate(270deg); }
        }
        @keyframes badgeEarned {
            0% { transform: scale(0.5) rotate(-180deg); opacity: 0; }
            50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
            100% { transform: scale(1) rotate(0deg); opacity: 1; }
        }
        .pulse-animation { animation: pulse 2s infinite; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
        .timer-warning { animation: shake 0.5s ease-in-out infinite; }
        @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
        .border-3 { border-width: 3px; }
        
        /* Mobile Specific Fixes */
        @media (max-width: 640px) {
            .tab-button, .teacher-tab-button {
                padding-left: 0.75rem !important;
                padding-right: 0.75rem !important;
                font-size: 0.75rem !important;
                white-space: nowrap;
            }
            nav {
                overflow-x: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            nav::-webkit-scrollbar { display: none; }
            
            .stats-grid {
                grid-template-cols: 1fr !important;
            }
        }

/* ── Block from original lines 102–336 ── */
        .shadow-soft {
            box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
        }
        .progress-bar-fill {
            transition: width 1s ease-in-out;
            background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
        }
        .day-indicator {
            width: 48px;
            height: 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            transition: all 0.2s;
        }
        .day-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-top: 4px;
        }
        /* Apple-esque Table Styles */
        .apple-table {
            border-collapse: separate;
            border-spacing: 0 8px;
            width: 100%;
        }
        .apple-table tr {
            background-color: white;
            transition: all 0.2s ease;
        }
        .apple-table tr:hover {
            transform: scale(1.002);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .apple-table td {
            padding: 16px;
            border-top: 1px solid #f3f4f6;
            border-bottom: 1px solid #f3f4f6;
        }
        .apple-table td:first-child {
            border-left: 1px solid #f3f4f6;
            border-top-left-radius: 12px;
            border-bottom-left-radius: 12px;
        }
        .apple-table td:last-child {
            border-right: 1px solid #f3f4f6;
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
        }
        .pill-tag {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px 12px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 600;
            gap: 4px;
            min-width: 45px;
        }
        .pill-success { background-color: #10b981; color: white; }
        .pill-pending { background-color: #fef3c7; color: #92400e; }
        .pill-failed { background-color: #fee2e2; color: #b91c1c; }
        .pill-empty { background-color: #f3f4f6; color: #9ca3af; }
        
        /* Gelişmiş Matris Tablosu Stilleri */
        .matrix-table {
            border-collapse: collapse;
            width: 100%;
        }
        .matrix-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .matrix-table th {
            padding: 12px 8px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #e5e7eb;
        }
        .matrix-table tbody tr {
            border-bottom: 1px solid #e5e7eb;
            transition: all 0.2s ease;
        }
        .matrix-table tbody tr:hover {
            background-color: #f9fafb;
            box-shadow: inset 0 0 10px rgba(102, 126, 234, 0.05);
        }
        .matrix-table td {
            padding: 10px 8px;
            font-size: 13px;
            text-align: center;
        }
        .matrix-table td:first-child {
            text-align: left;
            padding-left: 16px;
            font-weight: 600;
            color: #1f2937;
        }
        .student-name-cell {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 180px;
        }
        .student-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 12px;
        }
        .day-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            gap: 2px;
        }
        .day-pill.success {
            background-color: #d1fae5;
            color: #065f46;
            border: 1px solid #6ee7b7;
        }
        .day-pill.failed {
            background-color: #fee2e2;
            color: #991b1b;
            border: 1px solid #fca5a5;
        }
        .day-pill.pending {
            background-color: #fef3c7;
            color: #92400e;
            border: 1px solid #fcd34d;
        }
        .day-pill.empty {
            background-color: #f3f4f6;
            color: #9ca3af;
            border: 1px solid #d1d5db;
        }
        .activity-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            gap: 4px;
        }
        .badge-very-active {
            background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
            color: white;
        }
        .badge-active {
            background: linear-gradient(135deg, #51cf66 0%, #69db7c 100%);
            color: white;
        }
        .badge-inactive {
            background: linear-gradient(135deg, #ffd43b 0%, #ffe066 100%);
            color: #1f2937;
        }
        .reading-status {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
        }
        .reading-on-track {
            background-color: #d1fae5;
            color: #065f46;
        }
        .reading-behind {
            background-color: #fee2e2;
            color: #991b1b;
        }
        
        /* Durum Rozetleri */
        .status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        .status-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        }
        /* .badge-very-active — duplicate removed */
        .badge-very-active i {
            animation: flameFlicker 1.5s ease-in-out infinite;
        }
        @keyframes flameFlicker {
            0%, 100% { transform: scale(1) rotate(0deg); }
            25% { transform: scale(1.1) rotate(-2deg); }
            50% { transform: scale(0.95) rotate(2deg); }
            75% { transform: scale(1.05) rotate(-1deg); }
        }
        /* .badge-active — duplicate removed */
        /* .badge-inactive — duplicate removed */

/* ── Block from original lines 6826–6887 ── */
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            font-size: 12px;
        }
        h1 {
            color: #2563eb;
            text-align: center;
            margin-bottom: 10px;
        }
        .header-info {
            text-align: center;
            color: #666;
            margin-bottom: 20px;
            font-size: 11px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        th {
            background-color: #2563eb;
            color: white;
            padding: 8px;
            text-align: left;
            font-size: 11px;
            border: 1px solid #1e40af;
        }
        td {
            padding: 6px 8px;
            border: 1px solid #ddd;
            font-size: 10px;
        }
        tr:nth-child(even) {
            background-color: #f9fafb;
        }
        .summary {
            background-color: #eff6ff;
            padding: 15px;
            border-radius: 5px;
            margin-top: 20px;
        }
        .summary h2 {
            color: #1e40af;
            margin-top: 0;
            font-size: 14px;
        }
        .summary-item {
            margin: 5px 0;
            font-size: 11px;
        }
        .summary-item strong {
            color: #1e40af;
        }
        .test-list {
            font-size: 9px;
            color: #666;
            max-width: 200px;
            word-wrap: break-word;
        }


/* ── Duplicate block (lines 6890–7124) removed — identical to lines 102–336 ── */
/* ── Block from original lines 11673–11689 ── */
  body { font-family: Arial, sans-serif; margin: 30px; color: #1f2937; font-size: 13px; }
  .header { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: white; padding: 24px; border-radius: 12px; margin-bottom: 24px; }
  .header h1 { margin: 0 0 6px 0; font-size: 20px; }
  .header p { margin: 3px 0; opacity: 0.9; font-size: 13px; }
  .summary { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
  .stat-box { flex: 1; min-width: 100px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; text-align: center; }
  .stat-box .val { font-size: 28px; font-weight: 800; }
  .stat-box .lbl { font-size: 11px; color: #6b7280; margin-top: 3px; }
  .result-banner { padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; font-size: 15px; font-weight: 700; }
  .pass { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
  .fail { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
  table { width: 100%; border-collapse: collapse; font-size: 12px; }
  thead tr { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: white; }
  thead th { padding: 10px 8px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
  .footer { margin-top: 28px; text-align: center; font-size: 11px; color: #9ca3af; border-top: 1px solid #e5e7eb; padding-top: 14px; }
  @media print { body { margin: 15px; } .header { -webkit-print-color-adjust: exact; print-color-adjust: exact; } thead tr { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ── Block from original lines 13999–14005 ── */
  body { font-family: Arial, sans-serif; margin: 30px; color: #1f2937; font-size: 13px; }
  h1 { margin:0 0 4px 0; font-size:20px; }
  @media print {
    .header { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    .page-break { page-break-before: always; }
  }

/* ══════════════════════════════════════════════
   CEVAP KAĞIDI — Bubble Sheet Stilleri
   ══════════════════════════════════════════════ */

/* Her soru satırı */
.ck-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
}

.ck-row:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

/* Soru numarası */
.ck-num {
    width: 32px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    text-align: right;
}

/* Seçenek grubu */
.ck-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Radio gizle */
.ck-bubble-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Bubble dairesi */
.ck-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.ck-bubble-label:hover .ck-bubble {
    border-color: #06b6d4;
    background: #ecfeff;
    color: #0891b2;
    transform: scale(1.08);
}

/* Seçilmiş bubble */
.ck-bubble-label input[type="radio"]:checked + .ck-bubble {
    background: #0891b2;
    border-color: #0891b2;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(8,145,178,0.25);
    transform: scale(1.12);
}

/* Mobil uyum */
@media (max-width: 480px) {
    .ck-bubble {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .ck-options {
        gap: 8px;
    }
}

/* Cevap kağıdı header option labels */
.ck-header-opt {
    width: 40px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
}

/* Bubble label must be positioned for hidden radio */
.ck-bubble-label {
    position: relative;
    cursor: pointer;
}

/* ══════════════════════════════════════════════
   CEVAP KAĞIDI — Karışık Soru Tipleri (ÇS / D-Y / Boşluk Doldurma)
   ══════════════════════════════════════════════ */

/* Soru tipi rozeti (satırın başında, numaranın yanında) */
.ck-type-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    white-space: nowrap;
}
.ck-type-badge.mc { background: #dbeafe; color: #1d4ed8; }
.ck-type-badge.tf { background: #dcfce7; color: #15803d; }
.ck-type-badge.fb { background: #fef9c3; color: #a16207; }

/* Boşluk doldurma — dokunulabilir cevap kutusu (klavye açmaz) */
.ck-fillblank-box {
    min-width: 100px;
    max-width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ck-fillblank-box:active {
    transform: scale(0.97);
}
.ck-fillblank-box.filled {
    border-style: solid;
    border-color: #0891b2;
    background: #ecfeff;
    color: #0e7490;
}

/* Alttan açılan seçenek paneli (bottom sheet) */
.ck-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ck-sheet-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.ck-sheet-panel {
    width: 100%;
    max-width: 32rem;
    background: #ffffff;
    border-radius: 22px 22px 0 0;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    max-height: 72vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}
.ck-sheet-overlay.open .ck-sheet-panel {
    transform: translateY(0);
}
.ck-sheet-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    margin: 6px auto 12px;
}
.ck-sheet-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
    text-align: center;
}
.ck-sheet-word {
    width: 100%;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ck-sheet-word:active {
    transform: scale(0.98);
}
.ck-sheet-word.selected {
    border-color: #0891b2;
    background: #ecfeff;
    color: #0e7490;
}
.ck-sheet-cancel {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}


/* ══════════════════════════════════════════════
   ROZETLER — "Okuma Galaksisi" (uzay/macera teması)
   ══════════════════════════════════════════════ */

/* Arka plan — koyu uzay zemini (rozet sekmesi sarmalayıcısı) */
.galaxy-bg {
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f172a 55%, #020617 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.galaxy-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1.5px 1.5px at 70% 15%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 55% 85%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 92% 25%, rgba(255,255,255,0.8), transparent);
    background-size: 100% 100%;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ── Yolculuk rozetleri: yatay kayan gezegen yolu ── */
.journey-track {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding: 28px 12px 16px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.journey-track::-webkit-scrollbar { height: 5px; }
.journey-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

.journey-stop {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}
/* Gezegenler arası kesikli bağlantı çizgisi */
.journey-stop:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 34px;
    left: 66px;
    width: 68px;
    height: 2px;
    background-image: repeating-linear-gradient(90deg, rgba(148,163,184,0.5) 0 6px, transparent 6px 12px);
    z-index: 0;
}
.journey-stop.done:not(:last-child)::after {
    background-image: repeating-linear-gradient(90deg, rgba(250,204,21,0.8) 0 6px, transparent 6px 12px);
}

.planet-orb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
    border: 2px solid rgba(255,255,255,0.15);
}
.journey-stop:active .planet-orb { transform: scale(0.93); }

.planet-orb.locked {
    background: #1e293b;
    filter: grayscale(1) brightness(0.55);
    opacity: 0.55;
}
.planet-orb.current {
    background: radial-gradient(circle at 35% 30%, #475569, #1e293b);
    opacity: 0.9;
    animation: currentPulse 1.8s ease-in-out infinite;
}
@keyframes currentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* Tier'e göre kazanılmış gezegen renkleri — derinleştikçe daha görkemli */
.planet-orb.tier-1 { background: radial-gradient(circle at 35% 30%, #fdba74, #ea580c); box-shadow: 0 0 18px rgba(234,88,12,0.7); }
.planet-orb.tier-2 { background: radial-gradient(circle at 35% 30%, #e2e8f0, #94a3b8); box-shadow: 0 0 18px rgba(148,163,184,0.7); }
.planet-orb.tier-3 { background: radial-gradient(circle at 35% 30%, #7dd3fc, #2563eb); box-shadow: 0 0 20px rgba(37,99,235,0.75); }
.planet-orb.tier-4 { background: radial-gradient(circle at 35% 30%, #fde68a, #d97706); box-shadow: 0 0 22px rgba(217,119,6,0.8); }
.planet-orb.tier-5 { background: radial-gradient(circle at 35% 30%, #fca5a5, #dc2626); box-shadow: 0 0 26px rgba(220,38,38,0.85), 0 0 50px rgba(220,38,38,0.35); }
.planet-orb.tier-6 { background: radial-gradient(circle at 35% 30%, #e9d5ff, #9333ea); box-shadow: 0 0 28px rgba(147,51,234,0.85), 0 0 55px rgba(147,51,234,0.4); }
.planet-orb.tier-7 {
    background: conic-gradient(from 0deg, #22d3ee, #a78bfa, #f472b6, #22d3ee);
    box-shadow: 0 0 32px rgba(34,211,238,0.9), 0 0 60px rgba(167,139,250,0.5);
    animation: legendarySpin 4s linear infinite, currentPulse 2s ease-in-out infinite;
}
@keyframes legendarySpin { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

.journey-label {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
    text-align: center;
    line-height: 1.2;
}
.journey-stop.locked .journey-label { color: #64748b; }
.journey-progress-mini {
    margin-top: 3px;
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
}

/* ── Özel rozetler grid ── */
.special-badge-card {
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
    border: 2px solid rgba(255,255,255,0.1);
}
.special-badge-card:active { transform: scale(0.96); }
.special-badge-card.locked {
    background: rgba(30,41,59,0.6);
    opacity: 0.5;
    filter: grayscale(1);
}
.special-badge-card.earned.badge-comet {
    background: radial-gradient(circle at 30% 20%, rgba(56,189,248,0.35), rgba(15,23,42,0.4));
    box-shadow: 0 0 22px rgba(56,189,248,0.5);
    animation: currentPulse 2.2s ease-in-out infinite;
}
.special-badge-card.earned.badge-shootingstar {
    background: radial-gradient(circle at 30% 20%, rgba(250,204,21,0.35), rgba(15,23,42,0.4));
    box-shadow: 0 0 22px rgba(250,204,21,0.5);
    animation: currentPulse 2.2s ease-in-out infinite;
}
.special-badge-card.earned.badge-lightspeed {
    background: radial-gradient(circle at 30% 20%, rgba(167,139,250,0.35), rgba(15,23,42,0.4));
    box-shadow: 0 0 22px rgba(167,139,250,0.5);
    animation: currentPulse 2.2s ease-in-out infinite;
}
.special-badge-card.earned.badge-streak {
    background: radial-gradient(circle at 30% 20%, rgba(251,146,60,0.4), rgba(15,23,42,0.4));
    box-shadow: 0 0 22px rgba(251,146,60,0.55);
    animation: currentPulse 2.2s ease-in-out infinite;
}
.special-badge-card.earned.badge-sharpshooter {
    background: radial-gradient(circle at 30% 20%, rgba(248,113,113,0.35), rgba(15,23,42,0.4));
    box-shadow: 0 0 22px rgba(248,113,113,0.5);
    animation: currentPulse 2.2s ease-in-out infinite;
}
.special-badge-card.earned.badge-triplestreak {
    background: conic-gradient(from 0deg, rgba(251,191,36,0.35), rgba(249,115,22,0.35), rgba(251,191,36,0.35));
    box-shadow: 0 0 24px rgba(251,191,36,0.55), 0 0 40px rgba(249,115,22,0.3);
    animation: currentPulse 2.2s ease-in-out infinite;
}
.special-badge-icon { font-size: 34px; margin-bottom: 6px; }
.special-badge-title { font-size: 12px; font-weight: 800; color: #e2e8f0; }
.special-badge-card.locked .special-badge-title { color: #64748b; }

.galaxy-section-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0 4px;
}

/* ══════════════════════════════════════════════
   ROZET DETAY / KUTLAMA KARTLARI
   ══════════════════════════════════════════════ */
.badge-modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(2, 6, 23, 0.75);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(3px);
}
.badge-modal-overlay.open { opacity: 1; pointer-events: auto; }
.badge-modal-card {
    width: 100%; max-width: 360px;
    border-radius: 24px;
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #0f172a 70%);
    border: 1px solid rgba(255,255,255,0.12);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-modal-overlay.open .badge-modal-card { transform: scale(1) translateY(0); }
.badge-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px;
}
.badge-modal-planet {
    width: 110px; height: 110px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 54px; margin: 0 auto 18px;
    border: 2px solid rgba(255,255,255,0.15);
}
.badge-modal-title { font-size: 20px; font-weight: 800; color: #f8fafc; margin-bottom: 6px; }
.badge-modal-desc { font-size: 13px; color: #94a3b8; margin-bottom: 16px; line-height: 1.5; }
.badge-modal-status {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
}
.badge-modal-status.earned { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-modal-status.locked { background: rgba(148,163,184,0.15); color: #94a3b8; }
.badge-modal-progress-bar {
    margin-top: 14px; height: 8px; border-radius: 999px;
    background: rgba(255,255,255,0.08); overflow: hidden;
}
.badge-modal-progress-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    transition: width 0.6s ease;
}

/* ── Tam ekran rozet kazanma kutlaması ── */
.celebration-overlay {
    position: fixed; inset: 0; z-index: 400;
    background: radial-gradient(ellipse at center, #1e1b4b 0%, #020617 80%);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.celebration-overlay.open { opacity: 1; pointer-events: auto; }
.celebration-overlay::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(2px 2px at 15% 25%, #fff, transparent),
        radial-gradient(2px 2px at 80% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 50% 60%, #fff, transparent),
        radial-gradient(2px 2px at 90% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 25% 80%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 65% 40%, #fff, transparent);
    animation: twinkle 3s ease-in-out infinite alternate;
}
.celebration-planet {
    width: 160px; height: 160px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 78px;
    position: relative; z-index: 1;
    animation: celebrationPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid rgba(255,255,255,0.2);
}
@keyframes celebrationPop {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(8deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.celebration-title {
    margin-top: 24px; font-size: 14px; font-weight: 800;
    color: #fbbf24; letter-spacing: 0.08em; text-transform: uppercase;
    position: relative; z-index: 1;
    animation: fadeUp 0.5s ease 0.2s both;
}
.celebration-name {
    margin-top: 6px; font-size: 26px; font-weight: 900; color: #fff;
    position: relative; z-index: 1;
    animation: fadeUp 0.5s ease 0.3s both;
}
.celebration-desc {
    margin-top: 8px; font-size: 13px; color: #cbd5e1; max-width: 280px; text-align: center;
    position: relative; z-index: 1;
    animation: fadeUp 0.5s ease 0.4s both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.celebration-btn {
    margin-top: 28px; padding: 12px 32px; border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    color: #0f172a; font-weight: 800; font-size: 14px;
    cursor: pointer; position: relative; z-index: 1;
    animation: fadeUp 0.5s ease 0.5s both;
}
.celebration-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleBurst 1.1s ease-out forwards;
}
@keyframes particleBurst {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--px), var(--py)) scale(0); opacity: 0; }
}

/* ── Öğrenci başlığındaki "en son kazanılan rozet" çerçevesi ── */
.badge-frame-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 2.5px solid #cbd5e1;
    cursor: pointer;
}
.badge-frame-avatar.tier-1 { border-color: #ea580c; box-shadow: 0 0 8px rgba(234,88,12,0.5); }
.badge-frame-avatar.tier-2 { border-color: #94a3b8; box-shadow: 0 0 8px rgba(148,163,184,0.5); }
.badge-frame-avatar.tier-3 { border-color: #2563eb; box-shadow: 0 0 8px rgba(37,99,235,0.5); }
.badge-frame-avatar.tier-4 { border-color: #d97706; box-shadow: 0 0 8px rgba(217,119,6,0.5); }
.badge-frame-avatar.tier-5 { border-color: #dc2626; box-shadow: 0 0 10px rgba(220,38,38,0.6); }
.badge-frame-avatar.tier-6 { border-color: #9333ea; box-shadow: 0 0 10px rgba(147,51,234,0.6); }
.badge-frame-avatar.tier-7 {
    border-color: #22d3ee;
    box-shadow: 0 0 12px rgba(34,211,238,0.7), 0 0 20px rgba(167,139,250,0.4);
    animation: legendarySpin 4s linear infinite;
}
.badge-frame-avatar.special { border-color: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.5); }

/* ══════════════════════════════════════════════
   KİTAP KODLARI — A4 yazdırma düzeni
   ══════════════════════════════════════════════ */
.book-code-card {
    border: 2px dashed #94a3b8;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
}
.book-code-card .bc-title {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    line-height: 1.25;
    min-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-code-card .bc-code {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1e293b;
}
.book-code-card .bc-label {
    font-size: 8px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

@media print {
    /* Sadece kitap kodları ızgarası yazdırılsın, uygulamanın geri kalanı gizlensin */
    body * { visibility: hidden; }
    #bookCodesGrid, #bookCodesGrid * { visibility: visible; }
    #bookCodesGrid {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        margin: 0;
        padding: 8mm;
        gap: 6mm !important;
    }
    #bookCodesScreenOnly, .hamburger-btn, header, nav { display: none !important; }
    .book-code-card {
        border-color: #64748b;
    }
    @page { size: A4; margin: 10mm; }
}
