html,
:root {
    --kpss-primary: #6366f1;
    --kpss-accent: #8b5cf6;
    --kpss-primary-rgb: 99, 102, 241;
    --kpss-accent-rgb: 139, 92, 246;
}

/* Admin-only element gizleme */
[data-admin-only].admin-hidden {
    display: none !important;
}


@keyframes animate-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

.animate-pulse {
    animation: animate-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

body {
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Native app feel */
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

* {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    /* Prevent automatic font resize on orientation change */
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection in form fields */
input,
textarea,
[contenteditable] {
    user-select: auto !important;
    -webkit-user-select: auto !important;
}

@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom */
    }
}

/* ===================== 🚀 AI PRO DASHBOARD & ANALYTIC STYLES ===================== */
#ai-next-step-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#ai-next-step-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

#ai-heatmap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: start;
}

#ai-heatmap-container>div {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: help;
}

#ai-heatmap-container>div:hover {
    transform: scale(1.8) rotate(5deg);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#ai-analytic-modal .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.dark #ai-analytic-modal .glass-card {
    background: rgba(15, 23, 42, 0.5);
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
}

/* Hide scrollbar for heatmap */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* iOS Standalone Mode (PWA) */
@media all and (display-mode: standalone) {
    header {
        padding-top: env(safe-area-inset-top, 0px) !important;
    }
}

/* Smooth scrolling */
.content-scroll-area {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ===================== 🚀 SPLASH SCREEN ===================== */
#app-splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(160deg, #eef2ff 0%, #f0f4ff 30%, #e8ecff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, transform 0.6s;
}

.dark #app-splash-screen {
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

#app-splash-screen.splash-hiding {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-logo-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splashPulseRing 1.5s ease-in-out infinite;
    background: white;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.dark .splash-logo-ring {
    background: #1e1b4b;
    border-color: #818cf8;
}

@keyframes splashPulseRing {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }
}

.splash-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #1e1b4b;
    margin-top: 20px;
}

.dark .splash-title {
    color: #e0e7ff;
}

.splash-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
    font-weight: 600;
}

.splash-progress-wrap {
    width: 200px;
    height: 5px;
    border-radius: 10px;
    background: #e2e8f0;
    margin-top: 40px;
    overflow: hidden;
}

.dark .splash-progress-wrap {
    background: #334155;
}

.splash-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    transition: width 0.3s;
}

.splash-pct {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    margin-top: 8px;
}

.splash-loading-text {
    font-size: 10px;
    color: #cbd5e1;
    margin-top: 2px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===================== 📱 PREMIUM BOTTOM NAV (FLOATING ACTIVE) ===================== */
#mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.8) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 32px 32px 0 0 !important;
    padding: 0 10px calc(8px + env(safe-area-inset-bottom, 0px)) 10px !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    height: 76px !important;
}

/* Hide on Desktop ALWAYS at the very bottom of the rule to override display: flex */
@media (min-width: 768px) {
    #mobile-bottom-nav {
        display: none !important;
    }
}

html.dark #mobile-bottom-nav,
.dark #mobile-bottom-nav {
    background: rgba(15, 20, 35, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3) !important;
}

#mobile-bottom-nav button {
    position: relative;
    color: #94a3b8 !important;
    /* slate-400 */
    border-radius: 16px;
    padding: 12px 0 10px 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 2;
    background: transparent !important;
}

.dark #mobile-bottom-nav button {
    color: #64748b !important;
    /* slate-500 */
}

#mobile-bottom-nav button i {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 20px !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
}

#mobile-bottom-nav button span {
    font-size: 10px !important;
    font-weight: 700 !important;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
    transition: all 0.3s;
}

/* 🌟 Active Tab - Floating Circular Button Style */
#mobile-bottom-nav button.bnav-active {
    color: #ffffff !important;
}

#mobile-bottom-nav button.bnav-active i {
    font-size: 22px !important;
    color: #ffffff !important;
    bottom: 42px !important;
    /* Perfectly centered inside the circle (circle center is 54px from bottom) */
    transform: translateX(-50%) scale(1.1) !important;
}

/* The circular colored background for the active button */
#mobile-bottom-nav button::before {
    content: '';
    position: absolute;
    bottom: 30px;
    /* Base position */
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* Default KpssPro Theme (Indigo/Violet) */
#mobile-bottom-nav button.bnav-active::before {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4) !important;
    transform: translateX(-50%) scale(1);
    bottom: 24px;
    /* Final floating position */
    opacity: 1;
}

/* Hide the text label for the active item */
#mobile-bottom-nav button.bnav-active span {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Provide an outline around the floating circle to simulate cutout */
#mobile-bottom-nav button::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.dark #mobile-bottom-nav button::after,
html.dark #mobile-bottom-nav button::after {
    background: rgba(15, 20, 35, 0.95);
    /* matches .dark bg */
}

#mobile-bottom-nav button.bnav-active::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

#bnav-indicator {
    display: none !important;
}

/* ===================== 🎬 TAB TRANSITIONS ===================== */
/* --- UNIFIED PREMIUM TAB VIEW SYSTEM --- */
.tab-view {
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 !important;
    display: none;
    /* Default to none if not active */
}

.tab-view:not(.hidden) {
    display: block !important;
    /* Force visibility when JS removes .hidden */
    opacity: 1;
}

@media (min-width: 768px) {
    .tab-view:not(.hidden) {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }
}

#view-settings {
    padding-top: 0 !important;
    margin-top: 0 !important;
    flex-shrink: 0;
}

#view-settings>div {
    width: 100%;
    padding-top: 0;
    margin-top: 0;
}

#settings-mobile-nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Consolidated tab animations removed to prevent jumping/shifting */
@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes settingsNavSmoothSlide {
    0% {
        opacity: 0;
        transform: translateX(15px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

#view-settings.tab-entering .settings-nav-btn,
#view-settings.slide-left-enter .settings-nav-btn,
#view-settings.slide-right-enter .settings-nav-btn {
    animation: settingsNavSmoothSlide 0.4s cubic-bezier(0.32, 0.72, 0, 1) both;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(1),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(1),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(1) {
    animation-delay: 0.05s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(2),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(2),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(2) {
    animation-delay: 0.1s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(3),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(3),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(3) {
    animation-delay: 0.15s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(4),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(4),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(4) {
    animation-delay: 0.2s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(5),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(5),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(5) {
    animation-delay: 0.25s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(6),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(6),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(6) {
    animation-delay: 0.3s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(7),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(7),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(7) {
    animation-delay: 0.35s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(8),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(8),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(8) {
    animation-delay: 0.4s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(9),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(9),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(9) {
    animation-delay: 0.45s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(10),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(10),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(10) {
    animation-delay: 0.5s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(11),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(11),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(11) {
    animation-delay: 0.55s;
}

#view-settings.tab-entering .settings-nav-btn:nth-child(12),
#view-settings.slide-left-enter .settings-nav-btn:nth-child(12),
#view-settings.slide-right-enter .settings-nav-btn:nth-child(12) {
    animation-delay: 0.6s;
}

@keyframes tabSlideIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

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

@keyframes slideLeftIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes slideRightIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes levelUpPop {
    0% {
        transform: scale(0) rotate(-30deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.4) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Shake and Glow for Notifications */
@keyframes bell-shake {

    0%,
    100% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    85% {
        transform: rotate(-5deg);
    }
}

.bell-shake-anim i {
    animation: bell-shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;
    transform-origin: top center;
}

.bell-glow-anim {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    animation: pulse-glow 1s ease-in-out infinite alternate !important;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
    }

    to {
        box-shadow: 0 0 20px rgba(239, 68, 68, 1);
    }
}

/* Focus Mode Premium */
@keyframes focus-breath {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.focus-breath-circle {
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
    animation: focus-breath 8s ease-in-out infinite;
}

.focus-sound-btn.active {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.focus-timer-text {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal and Utility Classes */
.no-select {
    user-select: none;
    -webkit-user-select: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.content-scroll-area {
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 80px);
    overscroll-behavior-y: contain;
    min-height: 0;
    touch-action: pan-y pan-x;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.15;
    pointer-events: none;
}

.dark .animated-bg {
    opacity: 0.08;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    max-width: 100%;
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.glass-input {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0 12px;
    height: 48px;
    /* consistent height */
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.2s;
    color: #334155;
    width: 100%;
    font-size: 16px !important;
    line-height: normal;
}

select.glass-input {
    padding-right: 32px;
    /* for arrow space */
}

textarea.glass-input {
    height: 80px;
    padding: 12px;
    display: block;
    /* textareas shouldn't be flex centerers */
}

.dark .glass-input {
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border-color: rgba(255, 255, 255, 0.05);
}

.glass-input:focus {
    outline: none;
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.dark .glass-input:focus {
    background: #1e293b;
}

.nav-item.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transform: scale(1.02);
}

/* Horizontal Swipe Fixes */
.brans-swipe-item,
.mistake-card-anim {
    touch-action: pan-y;
}

.brans-swipe-content,
.flashcard-swipe-content {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== 🃏 BİLGİ KARTLARI (FLASHCARDS) PREMIUM 3D ===================== */
.fc-card-container,
.flashcard-container {
    perspective: 1200px;
    -webkit-perspective: 1200px;
    height: 15rem;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.fc-card-inner,
.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    -webkit-transition: -webkit-transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
}

/* Explicit Flip Rules - Using both selectors for safety */
.is-flipped .fc-card-inner,
.flipped .fc-card-inner,
.fc-card-inner.is-flipped,
.fc-card-inner.flipped {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
}

.fc-card-front,
.fc-card-back,
.flashcard-front,
.flashcard-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.fc-card-back,
.flashcard-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    z-index: 1;
}

.fc-card-front,
.flashcard-front {
    z-index: 2;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

.flashcard-front,
.fc-card-front {
    z-index: 2;
}

.fc-card-front {
    z-index: 2;
}

.dark .fc-card-front {
    border-color: rgba(255, 255, 255, 0.05);
}

.fc-card-back {
    transform: rotateY(180deg);
}


/* Enforce 2 columns on small mobile */
@media (max-width: 639px) {
    #fc-manager-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}


.fc-card-tag {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 10px;
}

.fc-card-text {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Swipe animations for 3D Cards */
.flashcard-swipe-item {
    transition: background-color 0.3s ease;
    perspective: 1000px;
}

/* Minimalist Mobile Flashcards */
@media (max-width: 767px) {
    .flashcard-swipe-item {
        height: 11rem !important;
        /* Slightly shorter on mobile */
        border-radius: 20px !important;
    }

    .flashcard-inner {
        border-radius: 20px !important;
    }

    .flashcard-front,
    .flashcard-back {
        padding: 12px 14px !important;
        border-radius: 20px !important;
    }

    .flashcard-front h3 {
        font-size: 13px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }

    .flashcard-back p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .flashcard-front span.text-\[9px\] {
        font-size: 7px !important;
        padding: 2px 6px !important;
        letter-spacing: 0.05em !important;
    }

    .flashcard-back .border-b,
    .flashcard-back .border-t {
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
        margin-top: 6px !important;
        padding-top: 4px !important;
    }

    /* Fixed 2 columns if user prefers, but full width is usually better. 
       Let's stick to 1 column as it's cleaner for 'minimalist' unless specified otherwise.
       Actually, grid-cols-2 is what they had, I'll update it to be 1 in index.html for mobile. */
}

.flashcard-swipe-content {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.swipe-bg-delete,
.swipe-bg-edit {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* line-clamp-4 utility */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    /* Standard property for compatibility */
    overflow: hidden;
}

/* Card Floating Animation */
@keyframes fc-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Cards now use tap-to-reveal popup instead of CSS flip */

/* Study Modal Overrides */
#fc-study-card {
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.note-card-anim {
    opacity: 0;
    animation: fadeInUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
    }

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

.note-card-glow {
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card-glow:hover {
    transform: translateY(-4px) scale(1.02) rotate(0deg) !important;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.dark .note-card-glow {
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.35);
}

.dark .note-card-glow:hover {
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

.note-card-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 100px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 236, 179, 0.95) 0%, rgba(255, 213, 79, 0.95) 50%, rgba(255, 193, 7, 0.9) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #5d4037;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.note-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: noteShine 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes noteShine {
    0% {
        left: -100%;
    }

    60%,
    100% {
        left: 100%;
    }
}

#sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button,
a,
select,
input {
    touch-action: manipulation;
}

.modal-content-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.anim-pop-in {
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

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

.washi-tape {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 90px;
    height: 28px;
    background: linear-gradient(135deg, rgba(255, 236, 179, 0.9), rgba(255, 213, 79, 0.9));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
    z-index: 10;
    border-radius: 2px;
}

.responsive-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    width: 100%;
}

.min-w-0 {
    min-width: 0;
}

.option-btn {
    transition: all 0.2s;
    border: 2px solid transparent;
}

.option-btn:hover {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

.option-btn.selected {
    background-color: #6366f1;
    color: white;
    border-color: #6366f1;
}

.option-btn.correct {
    background-color: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
}

.option-btn.wrong {
    background-color: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
}

.trial-input {
    padding: 6px !important;
    text-align: center;
    font-size: 14px;
}

/* Konu Takibi Card Animations */
.konu-card-anim {
    opacity: 0;
    animation: konuCardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes konuCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.konu-check {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.konu-check:active {
    transform: scale(0.85);
}

/* Quiz Styles */
.quiz-card {
    perspective: 1000px;
}

.quiz-front,
.quiz-back {
    backface-visibility: hidden;
    transition: transform 0.6s;
}

.quiz-front {
    transform: rotateY(0deg);
}

.quiz-back {
    transform: rotateY(180deg);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.quiz-flipped .quiz-front {
    transform: rotateY(-180deg);
}

.quiz-flipped .quiz-back {
    transform: rotateY(0deg);
}

/* Sayfa stat kartları ve Yanlış Defteri kart animasyonu */
.page-stat-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.dark .page-stat-card:hover {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mistake-card-anim {
    opacity: 0;
    transform: translateY(16px);
    animation: mistakeCardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Çalışma süresi popover */
.study-time-popover {
    min-width: 260px;
    max-width: 280px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
    animation: studyPopoverIn 0.25s ease-out;
}

.dark .study-time-popover {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

@keyframes studyPopoverIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.study-time-popover-arrow {
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    transform: rotate(45deg);
    border-radius: 2px;
}

.dark .study-time-popover-arrow {
    background: linear-gradient(135deg, #0e7490 0%, #155e75 100%);
}

.study-time-popover-inner {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.dark .study-time-popover-inner {
    background: #1e293b;
    border-color: rgba(6, 182, 212, 0.3);
}

.study-time-popover-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.study-time-popover-header i {
    font-size: 14px;
    opacity: 0.95;
}

.study-time-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 18px;
    background: #f8fafc;
}

.dark .study-time-inputs {
    background: #0f172a;
}

.study-time-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.study-time-field input {
    width: 56px;
    height: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.study-time-field input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.dark .study-time-field input {
    color: #f1f5f9;
    background: #1e293b;
    border-color: #334155;
}

.dark .study-time-field input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.study-time-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .study-time-label {
    color: #94a3b8;
}

.study-time-sep {
    font-size: 20px;
    font-weight: 800;
    color: #cbd5e1;
    user-select: none;
}

.dark .study-time-sep {
    color: #475569;
}

.study-time-save {
    width: calc(100% - 36px);
    margin: 0 18px 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.study-time-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.study-time-save:active {
    transform: translateY(0);
}

.study-time-detail {
    padding: 0 18px 16px;
    font-size: 10px;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
    border-top: 1px solid #f1f5f9;
    margin: 0 12px;
    padding-top: 12px;
    padding-bottom: 16px;
}

.dark .study-time-detail {
    color: #94a3b8;
    border-top-color: #334155;
}

.study-time-detail strong {
    color: #06b6d4;
}

.dark .study-time-detail strong {
    color: #22d3ee;
}

/* Ders Çalışma Programı – Gerçek tablo (ders çalışma programı tablosu) */
.study-plan-progress-container {
    margin-bottom: 1.5rem;
}

.study-plan-progress-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.35);
}

.dark .study-plan-progress-card {
    background: linear-gradient(135deg, #422006 0%, #78350f 40%, #92400e 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.study-plan-progress-circle {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.study-plan-progress-circle svg {
    transform: rotate(-90deg);
}

.study-plan-progress-circle .bg {
    stroke: rgba(0, 0, 0, 0.08);
}

.dark .study-plan-progress-circle .bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.study-plan-progress-circle .fill {
    stroke: #f59e0b;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.study-plan-progress-circle .fill.full {
    stroke: #10b981;
}

.study-plan-progress-text {
    flex: 1;
    min-width: 0;
}

.study-plan-progress-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b45309;
    margin-bottom: 4px;
}

.dark .study-plan-progress-title {
    color: #fcd34d;
}

.study-plan-progress-count {
    font-size: 1.5rem;
    font-weight: 900;
    color: #92400e;
}

.dark .study-plan-progress-count {
    color: #fde68a;
}

.study-plan-progress-bar-wrap {
    margin-top: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dark .study-plan-progress-bar-wrap {
    background: rgba(255, 255, 255, 0.12);
}

.study-plan-progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    transition: width 0.6s ease;
}

/* Günlük: gerçek <table> */
.study-plan-table-wrap {
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.12);
}

.study-plan-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.study-plan-table-wrap table:not(.study-plan-daily-table) {
    table-layout: fixed;
}

.study-plan-table-wrap thead {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
}

.study-plan-table-wrap th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.study-plan-table-wrap th:first-child {
    width: 56px;
    text-align: center;
}

.study-plan-table-wrap th:nth-child(3) {
    width: 80px;
    text-align: center;
}

.study-plan-table-wrap th:last-child {
    width: 56px;
    text-align: center;
}

.study-plan-table-wrap tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s;
}

.study-plan-table-wrap tbody tr:nth-child(odd) {
    background: #fffbeb;
}

.study-plan-table-wrap tbody tr:nth-child(even) {
    background: #fef3c7;
}

.study-plan-table-wrap tbody tr.done {
    background: rgba(16, 185, 129, 0.12);
}

.study-plan-table-wrap tbody tr:hover {
    background: rgba(254, 243, 199, 0.9);
}

.study-plan-table-wrap tbody tr.done:hover {
    background: rgba(16, 185, 129, 0.18);
}

.dark .study-plan-table-wrap tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark .study-plan-table-wrap tbody tr:nth-child(odd) {
    background: rgba(30, 41, 59, 0.6);
}

.dark .study-plan-table-wrap tbody tr:nth-child(even) {
    background: rgba(51, 65, 85, 0.4);
}

.dark .study-plan-table-wrap tbody tr.done {
    background: rgba(16, 185, 129, 0.18);
}

.study-plan-table-wrap td {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}

.dark .study-plan-table-wrap td {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.06);
}

.study-plan-table-wrap td:first-child {
    text-align: center;
    font-weight: 800;
    color: #92400e;
}

.dark .study-plan-table-wrap td:first-child {
    color: #fcd34d;
}

.study-plan-table-wrap tr.done td {
    color: #64748b;
    text-decoration: line-through;
}

.dark .study-plan-table-wrap tr.done td {
    color: #94a3b8;
}

.study-plan-table-wrap tr.done td:first-child {
    color: #059669;
}

.dark .study-plan-table-wrap tr.done td:first-child {
    color: #34d399;
}

.study-plan-table-wrap td:nth-child(3),
.study-plan-table-wrap td:last-child {
    text-align: center;
}

/* Günlük: tek satır, yapılacaklar yan yana (her sütun bir görev) */
.study-plan-daily-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 12px;
}

.study-plan-daily-table tbody tr {
    display: table-row;
}

.study-plan-daily-table td {
    display: table-cell;
    vertical-align: top;
    min-width: 160px;
    max-width: 220px;
    padding: 0;
}

.study-plan-cell-inner {
    background: #fffbeb;
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 16px;
    padding: 14px 16px;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.study-plan-cell.done .study-plan-cell-inner {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.dark .study-plan-cell-inner {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(251, 191, 36, 0.3);
}

.dark .study-plan-cell.done .study-plan-cell-inner {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
}

.study-plan-cell-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.3);
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

.study-plan-cell.done .study-plan-cell-num {
    background: rgba(16, 185, 129, 0.35);
    color: #059669;
}

.study-plan-cell-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    flex: 1;
}

.dark .study-plan-cell-text {
    color: #e2e8f0;
}

.study-plan-cell.done .study-plan-cell-text {
    text-decoration: line-through;
    color: #64748b;
}

.dark .study-plan-cell.done .study-plan-cell-text {
    color: #94a3b8;
}

.study-plan-cell-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.study-plan-check {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 12px;
    border: 2px solid #f59e0b;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.study-plan-check:hover {
    background: rgba(245, 158, 11, 0.15);
    transform: scale(1.05);
}

.study-plan-check.checked {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #059669;
    color: #fff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.study-plan-check.checked i {
    animation: studyPlanCheckPop 0.35s ease;
}

@keyframes studyPlanCheckPop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.study-plan-delete {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    color: #94a3b8;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.study-plan-delete:hover {
    background: #ef4444;
    color: #fff;
}

/* Haftalık: klasik program tablosu (günler sütun, satırlar slot) */
.study-plan-week-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.study-plan-week-table th,
.study-plan-week-table td {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 8px;
    vertical-align: middle;
}

.dark .study-plan-week-table th,
.dark .study-plan-week-table td {
    border-color: rgba(255, 255, 255, 0.08);
}

.study-plan-week-table thead th {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.study-plan-week-table thead th:first-child {
    width: 48px;
    background: rgba(0, 0, 0, 0.15);
}

.study-plan-week-table tbody tr:nth-child(odd) {
    background: #fffbeb;
}

.study-plan-week-table tbody tr:nth-child(even) {
    background: #fef3c7;
}

.dark .study-plan-week-table tbody tr:nth-child(odd) {
    background: rgba(30, 41, 59, 0.6);
}

.dark .study-plan-week-table tbody tr:nth-child(even) {
    background: rgba(51, 65, 85, 0.4);
}

.study-plan-week-table td:first-child {
    font-weight: 800;
    color: #92400e;
    text-align: center;
    font-size: 12px;
}

.dark .study-plan-week-table td:first-child {
    color: #fcd34d;
}

.study-plan-week-cell {
    min-height: 44px;
}

.study-plan-week-cell.empty {
    color: #94a3b8;
    font-style: italic;
    font-size: 12px;
}

.study-plan-week-cell .cell-text {
    font-weight: 600;
    color: #1e293b;
}

.dark .study-plan-week-cell .cell-text {
    color: #e2e8f0;
}

.study-plan-week-cell.done .cell-text {
    text-decoration: line-through;
    color: #64748b;
}

.study-plan-week-cell .cell-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.study-plan-week-cell input.add-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    margin-top: 6px;
}

@media (max-width: 768px) {
    .study-plan-week-table {
        font-size: 11px;
    }

    .study-plan-week-table th,
    .study-plan-week-table td {
        padding: 8px 4px;
    }
}

/* Solver Quiz Styles */
.solver-quiz-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solver-quiz-card:hover {
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.15);
}

.rotate-180 {
    transform: rotate(180deg);
}

.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

/* Consolidated above */

@keyframes fadeInUpSolver {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#practice-result-content,
#practice-exit-content {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-equipped {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px #10b981);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px #10b981);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px #10b981);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#practice-result-content {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-fade-in-up {
    animation: fadeInUpSolver 0.4s ease-out;
}

#practice-progress-bar {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Study Plan Timetable */
.sp-timetable-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-tt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 700px;
}

.sp-tt-table th,
.sp-tt-table td {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .sp-tt-table th,
.dark .sp-tt-table td {
    border-color: rgba(255, 255, 255, 0.06);
}

.sp-tt-hour-header {
    width: 60px;
    padding: 12px 8px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #92400e;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.dark .sp-tt-hour-header {
    color: #fcd34d;
    background: linear-gradient(135deg, #422006 0%, #78350f 100%);
}

.sp-tt-day-header {
    padding: 10px 4px;
    text-align: center;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
}

.sp-tt-day-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.sp-tt-day-num {
    font-size: 16px;
    font-weight: 900;
    margin-top: 2px;
}

.sp-tt-today-header {
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.3);
}

.sp-tt-today-num {
    background: rgba(255, 255, 255, 0.25);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-tt-hour-cell {
    padding: 8px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
    background: #fffbeb;
    vertical-align: middle;
    width: 60px;
}

.dark .sp-tt-hour-cell {
    color: #fcd34d;
    background: rgba(30, 41, 59, 0.6);
}

.sp-tt-cell {
    padding: 4px;
    vertical-align: top;
    min-height: 44px;
    height: 44px;
    transition: background 0.15s;
}

.sp-tt-today-col {
    background: rgba(245, 158, 11, 0.04);
}

.dark .sp-tt-today-col {
    background: rgba(245, 158, 11, 0.06);
}

.sp-tt-cell-empty {
    cursor: pointer;
}

.sp-tt-cell-empty:hover {
    background: rgba(245, 158, 11, 0.08);
}

.dark .sp-tt-cell-empty:hover {
    background: rgba(245, 158, 11, 0.12);
}

.sp-cell-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 36px;
    opacity: 0;
    transition: opacity 0.2s;
    color: #d1d5db;
    font-size: 12px;
}

.sp-tt-cell-empty:hover .sp-cell-plus {
    opacity: 0.6;
}

.sp-task-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid;
    margin: 2px 0;
    font-size: 11px;
    transition: all 0.2s;
    position: relative;
}

.sp-task-chip:hover {
    transform: translateX(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sp-task-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-task-chip-text {
    flex: 1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sp-task-chip-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.sp-task-chip:hover .sp-task-chip-actions {
    opacity: 1;
}

.sp-task-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    transition: all 0.15s;
    padding: 0;
    background: transparent;
}

.sp-task-btn-todo {
    color: #94a3b8;
}

.sp-task-btn-todo:hover {
    background: #10b981;
    color: white;
}

.sp-task-btn-done {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.sp-task-btn-done:hover {
    background: #10b981;
    color: white;
}

.sp-task-btn-del {
    color: #cbd5e1;
}

.sp-task-btn-del:hover {
    background: #ef4444;
    color: white;
}

.sp-task-done {
    opacity: 0.6;
}

.sp-inline-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    color: #0f172a;
    outline: none;
}

.dark .sp-inline-input {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #fbbf24;
}

.sp-inline-input:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

@media (max-width: 768px) {
    .sp-tt-table {
        min-width: 600px;
    }

    .sp-tt-day-name {
        font-size: 9px;
    }

    .sp-tt-day-num {
        font-size: 13px;
    }

    .sp-task-chip-text {
        font-size: 10px;
    }
}

/* Daily Timetable Overrides */
.sp-tt-daily {
    min-width: 320px;
    table-layout: auto;
}

.sp-tt-daily .sp-tt-hour-header {
    width: 70px;
}

.sp-tt-daily .sp-tt-cell-daily {
    min-height: 48px;
}

.sp-task-chip-daily {
    padding: 6px 12px;
    gap: 8px;
    font-size: 13px;
}

.sp-task-chip-daily .sp-task-chip-dot {
    width: 8px;
    height: 8px;
}

.sp-task-chip-daily .sp-task-chip-text {
    font-size: 13px;
    white-space: normal;
}

.sp-task-chip-actions-daily {
    opacity: 1;
}

.sp-task-chip-daily .sp-task-btn {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

@media (max-width: 768px) {
    .sp-tt-daily {
        min-width: 100%;
    }

    .sp-task-chip-daily .sp-task-chip-text {
        font-size: 12px;
    }
}

/* ===================== FAVORİ KALP BUTONU ===================== */
.fav-heart-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 2px solid #fecdd3;
    background: rgba(255, 241, 242, 0.8);
    color: #fb7185;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.fav-heart-btn:hover {
    transform: scale(1.15);
    border-color: #fb7185;
    background: #fff1f2;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.3);
}

.fav-heart-btn.fav-active {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
}

.fav-heart-btn.fav-active:hover {
    box-shadow: 0 6px 25px rgba(244, 63, 94, 0.5);
}

/* Kalp Parçacık Animasyonu */
.heart-particle {
    position: absolute;
    font-size: 12px;
    color: #f43f5e;
    pointer-events: none;
    animation: heartBurst 0.7s ease-out forwards;
    z-index: 20;
}

@keyframes heartBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(calc(cos(var(--angle)) * 30px), calc(sin(var(--angle)) * 30px)) scale(0);
        opacity: 0;
    }
}

/* ===================== MOTİVASYON ALERT ANİMASYON ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-bounce-in {
    animation: bounce-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== SORU SEÇİM CHECKBOX ===================== */
.qb-select-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qb-select-btn:hover {
    transform: scale(1.1);
}

.qb-select-btn.active {
    animation: selectPop 0.3s ease;
}

@keyframes selectPop {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================== BRANS SWIPE ===================== */
.brans-swipe-item {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
}

.brans-swipe-content {
    transition: transform 0.2s ease;
}

/* ===================== RESPONSIVE İYİLEŞTİRMELER ===================== */
@media (max-width: 640px) {
    .fav-heart-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 10px;
    }

    #sidebar {
        width: 85%;
        max-width: 280px;
    }

    /* .tab-view padding moved to consolidated block if needed, but keeping it clean */

    h2#page-title {
        font-size: 1.25rem;
    }

    .glass-card {
        border-radius: 16px;
    }

    .content-scroll-area {
        padding-bottom: 100px;
    }
}

/* Sidebar sliding animation smoother */
#sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ===================== PREMIUM ANIMATED DELETE BUTTON ===================== */
.btn-delete-animated {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.dark .btn-delete-animated {
    background: #1e293b;
    border-color: #334155;
    color: #64748b;
}

.btn-delete-animated:hover {
    color: #ffffff;
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.3);
}

.btn-delete-animated:active {
    transform: scale(0.9);
}

.btn-delete-animated i {
    transition: transform 0.2s ease;
}

.btn-delete-animated:hover i {
    animation: trash-shake 0.4s ease infinite;
}

/* ===================== SWIPE TO DELETE ===================== */
.swipe-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
    border-radius: 12px;
    margin-bottom: 8px;
}

.swipe-delete-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #ef4444;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 24px;
    color: white;
    font-size: 20px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.swipe-content {
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.swiping .swipe-content {
    transition: none;
}


/* ===================== PULL TO REFRESH ===================== */
#pull-to-refresh.ptr-visible {
    height: 80px;
}

#pull-to-refresh.ptr-refreshing i {
    animation: ptr-spin 1s linear infinite;
}

@keyframes ptr-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ptr-refreshing .fa-arrow-down:before {
    content: "\f110";
    /* fa-spinner */
}


@keyframes trash-shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* ===================== FOCUS MODE (SORU ÇÖZÜM MASASI) ===================== */
body.focus-mode-active {
    overflow: hidden !important;
}

body.focus-mode-active #practice-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 10000 !important;
    background: #f8fafc !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
}

.dark body.focus-mode-active #practice-active {
    background: #0f172a !important;
}

/* Dikkat Dağıtıcıları Gizle */
body.focus-mode-active aside,
body.focus-mode-active header,
body.focus-mode-active #mobile-overlay,
body.focus-mode-active #ai-coach-window,
body.focus-mode-active #view-solver>div:not(#solver-interactive-area),
body.focus-mode-active #solver-interactive-area>div:not(#practice-active),
body.focus-mode-active #view-solver>h3,
body.focus-mode-active #view-solver>p {
    display: none !important;
}

/* AI Koç Konteynırı Gizle */
body.focus-mode-active #ai-coach-container {
    display: none !important;
}

/* Inner content containment */
body.focus-mode-active #practice-active>div {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 16px;
    padding-bottom: 80px;
}

/* Soru çözüm kartı mobil genişlik fix */
body.focus-mode-active #practice-active .glass-card {
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    body.focus-mode-active #practice-active .glass-card {
        border-radius: 2rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    }
}

/* ===================== MEGA UPDATE STYLES ===================== */

/* BounceIn Animation for Level-Up */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hide Scrollbar Utility */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Old bottom nav overrides removed - handled by premium nav CSS above */

/* Mobile bottom padding when bottom nav exists */
@media (max-width: 767px) {
    .content-scroll-area {
        padding-bottom: 80px !important;
    }

    /* 📱 Settings Panel Mobile Optimizations */
    .settings-panel .glass-card {
        padding: 1rem !important;
        border-radius: 1.25rem !important;
    }

    .settings-panel h3 {
        font-size: 1.125rem !important;
        /* text-lg */
    }

    .settings-panel p {
        font-size: 0.7rem !important;
    }

    .settings-panel .w-12.h-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
        border-radius: 0.85rem !important;
    }

    #settings-mobile-nav {
        transition: all 0.3s ease;
    }

    /* Hide EVERYTHING in nav when panel is open */
    .settings-panel-open #settings-mobile-main-menu,
    .settings-panel-open [id^="settings-sub-"],
    .settings-panel-open .relative.overflow-hidden.rounded-2xl {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ensure the container itself collapses */
    #settings-mobile-nav.settings-panel-open {
        height: auto !important;
        min-height: 0 !important;
    }

    .settings-panel-open #settings-main-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Extra safety for top gap */
    .settings-panel-open #view-settings>.max-w-7xl {
        padding-top: 0 !important;
    }
}

/* Focus mode overlay panel */
#focus-mode-overlay {
    animation: fadeIn 0.2s ease;
}

/* Dashboard tab bar */
#dashboard-tab-bar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#dashboard-tab-bar::-webkit-scrollbar {
    display: none;
}

.dark #dashboard-tab-bar {
    background: #1e293b !important;
}

.dark #dashboard-tab-bar button {
    color: #94a3b8;
}

/* ===================== 📱 3D PUSH DRAWER (MOBILE MAIN MENU) ===================== */
@media (max-width: 767px) {
    body {
        background-color: #f8fafc !important;
        /* Matches light slate-50 */
    }

    html.dark body {
        background-color: #0f172a !important;
        /* Matches dark slate-900 */
    }

    /* Override the sidebar to sit beneath the main content */
    #sidebar {
        z-index: 60 !important;
        /* Move above overlay when open/sliding */
        transform: translateX(0) !important;
        background: #ffffff !important;
        /* Ensure solid background on mobile */
        border: none !important;
        box-shadow: none !important;
        width: 70vw !important;
        position: fixed !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: auto !important;
        transition: opacity 0.35s ease, visibility 0s 0.35s;
    }

    html.dark #sidebar {
        background: #0f172a !important;
    }

    body.drawer-open #sidebar {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.35s ease, visibility 0s;
    }

    /* Make main content shrink and slide right */
    main {
        position: relative !important;
        z-index: 10 !important;
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), border-radius 0.4s ease, box-shadow 0.4s ease !important;
        transform-origin: center left !important;
        background-color: #f8fafc !important;
        /* light slate-50 */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
        border-radius: 0 !important;
    }

    html.dark main {
        background-color: #1e293b !important;
        /* dark slate-800 */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4) !important;
    }

    /* The drawer open state applied to body -> shifts main */
    body.drawer-open main {
        transform: translateX(70vw) scale(0.9) !important;
        border-radius: 32px !important;
        pointer-events: none !important;
        /* Disable interaction with main when drawer is open */
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5) !important;
        overflow: hidden !important;
    }

    /* Add a pseudo element to allow tapping the main content to close */
    body.drawer-open main::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 9999;
        cursor: pointer;
        background: transparent;
    }

    /* Prevent mobile overlay from dimming the screen like before */
    #mobile-overlay {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 50 !important;
    }
}

/* Drag & Drop Styles */
.cursor-grab {
    cursor: grab;
}

.cursor-grab:active {
    cursor: grabbing;
}

#practice-subjects-drag-list li,
#practice-topics-drag-list li,
#settings-custom-topics-list li {
    transition: all 0.2s ease;
}

[draggable="true"].opacity-50,
[draggable="true"].opacity-40 {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-style: dashed !important;
}

.bg-indigo-50.dark\:bg-indigo-900\/40,
.bg-violet-50.dark\:bg-violet-900\/40 {
    box-shadow: inset 0 0 0 2px #6366f1;
}

/* Scrollbar styling for small areas */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
}

/* === Ultra-Premium Settings Desktop Redesign === */
.settings-nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.settings-nav-btn i,
.settings-nav-btn span:first-child {
    font-size: 17px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.settings-nav-btn.active {
    background: white !important;
    color: #4f46e5 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(79, 70, 229, 0.1) !important;
    transform: translateX(4px) !important;
    position: relative;
}

.settings-nav-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: #4f46e5;
    border-radius: 0 4px 4px 0;
}

.dark .settings-nav-btn.active {
    background: #1e293b !important;
    color: #818cf8 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.dark .settings-nav-btn.active::after {
    background: #818cf8;
}

.settings-nav-btn.active i,
.settings-nav-btn.active span:first-child {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.3));
}

.settings-nav-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.6);
    color: #334155;
    transform: translateX(4px);
}

.dark .settings-nav-btn:not(.active):hover {
    background: rgba(30, 41, 59, 0.7);
    color: #f1f5f9;
}

.settings-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px 10px 16px;
    margin-top: 10px;
}

.settings-group-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-size: 200% 200%;
}

/* Checkup & Settings Premium Fixes */
/* All .tab-view rules moved to consolidated block at line 418 to avoid overwriting and blank screens */

#view-checkup .lg\:col-span-1 {
    min-width: 320px;
}

#view-settings .glass-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark #view-settings .glass-card {
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Fix desktop home cards gap */
#settings-desktop-home {
    display: none;
    /* JS will toggle flex */
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
    margin-top: 0;
}

#settings-desktop-home:not(.hidden) {
    display: flex !important;
}

/* Handled by consolidated block above */

.settings-content-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.06);
    padding: 30px;
    min-height: 500px;
}

.dark .settings-content-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

/* ===================== ❓ SORU HAVUZU (PROBLEM POOL) PREMIUM STYLES ===================== */
.cq-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cq-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.dark .cq-card {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.03);
}

.dark .cq-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Custom Soft-Rounded Checkbox */
.cq-bulk-checkbox {
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cq-bulk-checkbox:checked {
    animation: cb-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cb-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

/* Tooltip Animation for Explanations */
.group\/exp:hover .absolute {
    transition-delay: 0.1s;
}

/* Background Blobs for cards */
.cq-card .blur-2xl {
    filter: blur(40px);
}

/* Scrollbar Refinement */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}