* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Serif Devanagari', 'Segoe UI', 'Poppins', system-ui, sans-serif;
}

body {
    background: linear-gradient(145deg, #f5f7ff 0%, #eef2ff 100%);
    min-height: 100vh;
    position: relative;
}

/* Premium Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(45, 212, 191, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 30% 80%, rgba(251, 146, 60, 0.04) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(99, 102, 241, 0.01) 0px, rgba(99, 102, 241, 0.01) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
    z-index: 0;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* App Container */
.app-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* ========== PREMIUM HEADER ========== */
.main-header {
    text-align: center;
    margin-bottom: 50px;
    perspective: 1000px;
}

.header-3d {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 22px 50px;
    border-radius: 14px;
    transform-style: preserve-3d;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

.header-3d:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

.main-header h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec489a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.main-header h1 i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #f59e0b;
    margin: 0 12px;
    font-size: 2rem;
}

.main-header p {
    margin-top: 12px;
    color: #475569;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(5px);
    display: inline-block;
    padding: 8px 28px;
    border-radius: 14px;
    letter-spacing: 0.5px;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

/* ========== DASHBOARD TITLE - PREMIUM ========== */
.dashboard-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: #1e293b;
    position: relative;
    padding: 0 8px;
}

.dashboard-title span {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Dashboard Stats - Premium */
.dashboard-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4f46e5;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

.stat-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
    border-color: #c7d2fe;
}

/* ========== PREMIUM QUIZ GRID CARDS ========== */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.quiz-card-3d {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 24px 22px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
    transform: translateY(0);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.quiz-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.quiz-card-3d:hover::before {
    left: 100%;
}

.quiz-card-3d::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec489a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.quiz-card-3d:hover::after {
    transform: scaleX(1);
}

.quiz-card-3d:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.12);
    border-color: #c7d2fe;
}

.quiz-icon-3d {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.quiz-card-3d:hover .quiz-icon-3d {
    transform: scale(1.05) rotate(3deg);
}

.quiz-info-3d {
    flex: 1;
}

.quiz-title-3d {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.quiz-desc-3d {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.quiz-meta-3d {
    font-size: .9rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: inline-block;
    padding: 5px 14px;
    border-radius: 14px;
    color: #4f46e5;
    font-weight: 700;
    letter-spacing: 0.3px;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

/* ========== PREMIUM QUIZ SECTION ========== */
.quiz-section {
    animation: fadeSlideUp 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.5);
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
    max-width: 1000px;
    margin: .5rem auto;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quiz Header Premium */
.quiz-header-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.back-3d-btn {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #4f46e5;
    border: 2px solid #4f46e5;
    padding: 10px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #cbd5e1;
    transform: translateY(-2px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-3d-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 0 #cbd5e1;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.quiz-progress-3d {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    padding: 10px 24px;
    border-radius: 14px;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 0 #b45309;
    transform: translateY(-2px);
    letter-spacing: 0.5px;
}

/* Passage Card Premium */
.passage-3d-card {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border-left: 6px solid #f59e0b;
    padding: 28px 32px;
    border-radius: 14px;
    margin-bottom: 28px;
    line-height: 1.8;
    font-size: 1rem;
    color: #334155;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
    text-align: justify;
}

.passage-3d-card:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Timer Section Premium */
.timer-3d-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 16px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.04);
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

.timer-3d-box {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 8px 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 0 #2e1065;
    transform: translateY(-2px);
}

.timer-3d-box i {
    font-size: 1rem;
}

.timer-bar-3d {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timer-fill-3d {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #ec489a);
    border-radius: 20px;
    transition: width 0.2s linear;
    position: relative;
    overflow: hidden;
}

.timer-fill-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Question Card Premium */
.question-3d-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 8px 0 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.question-header-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 24px 20px;
}

.q-badge-3d,
.score-badge-3d {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 8px 24px;
    border-radius: 14px;
    color: #1e293b;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    font-size: 1.1rem;
}

.score-badge-3d {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

.question-text-3d {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #faf9f8, #f8fafc);
    padding: 22px 28px;
    border-radius: 24px;
    margin: 0 24px 24px 24px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    line-height: 1.6;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Premium Options Buttons */
.options-3d-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 24px;
    margin-bottom: 24px;
}

.option-3d-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 0 #e2e8f0;
    transform: translateY(-2px);
    color: #334155;
    position: relative;
    overflow: hidden;
}

.option-3d-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.05), transparent);
    transition: left 0.4s ease;
}

.option-3d-btn:hover::before {
    left: 100%;
}

.option-3d-btn i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #4f46e5;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.option-3d-btn:hover:not(:disabled) i {
    background: #4f46e5;
    color: white;
}

.option-3d-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 6px 0 #cbd5e1;
    border-color: #cbd5e1;
    background: #faf9ff;
}

.option-correct-3d {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
    border-color: #22c55e !important;
    box-shadow: 0 2px 0 #15803d !important;
    transform: translateY(0) !important;
}

.option-incorrect-3d {
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 2px 0 #b91c1c !important;
    transform: translateY(0) !important;
    text-decoration: line-through;
}

/* Explanation Box Premium */
.explanation-3d-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 20px 28px;
    border-radius: 24px;
    margin: 10px 24px 0 24px;
    border-left: 6px solid #3b82f6;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Navigation Buttons Premium */
.nav-3d-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
}

.nav-3d {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #4f46e5;
    border: 2px solid #4f46e5;
    padding: 14px 38px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 6px 0 #cbd5e1;
    transform: translateY(-3px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-3d:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 8px 0 #cbd5e1;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.nav-3d:disabled {
    opacity: 0.5;
    transform: translateY(0);
    cursor: not-allowed;
}

.next-3d {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    box-shadow: 0 6px 0 #2e1065;
}

.next-3d:hover:not(:disabled) {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Result Section Premium */
.result-3d-container {
    margin-top: 32px;
    padding: 35px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 14px;
    text-align: center;
    animation: resultPop 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
}

@keyframes resultPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.result-3d-container .result-icon {
    font-size: 2.5rem;
    display: inline-block;
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.result-3d-container .score-big {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5, #f59e0b, #ec489a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 15px 0;
}

.result-3d-container .result-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.result-3d-container .stat-card {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 15px 30px;
    border-radius: 14px;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.result-3d-container .congrats {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 15px;
    font-weight: 800;
}

/* Footer Premium */
.app-footer-3d {
    text-align: center;
    padding: 28px 20px;
    font-size: 1.1rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    margin-top: 45px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

/* Restart Button Premium */
.restart-btn {
    margin-top: 25px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    padding: 14px 36px;
    border-radius: 14px;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 0 #2e1065;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 0 #2e1065;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Breadcrumb Premium */
.breadcrumb {
    padding: 12px 20px;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #64748b;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #4f46e5;
    font-weight: 700;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #cbd5e1;
}

/* ========== RESPONSIVE DESIGN - TABLET ========== */
@media (max-width: 1024px) {
    .app-container {
        padding: 15px;
    }

    .quiz-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 22px;
    }

    .quiz-section {
        padding: 25px 28px;
    }

    .question-text-3d {
        font-size: 1.2rem;
        padding: 18px 22px;
    }

    .timer-3d-box {
        font-size: 1rem;
        padding: 6px 20px;
    }
}

/* ========== RESPONSIVE DESIGN - MOBILE ========== */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .app-container {
        padding: 12px;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }

    .main-header h1 i {
        font-size: 1.3rem;
        margin: 0 6px;
    }

    .header-3d {
        padding: 12px 24px;
    }

    .main-header p {
        font-size: 0.9rem;
        padding: 6px 18px;
    }

    .dashboard-title {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
    }

    .dashboard-title span {
        font-size: 1.3rem;
    }

    .dashboard-stats {
        justify-content: center;
    }

    .stat-badge {
        padding: 6px 14px;
        font-size: 1.1rem;
    }

    .quiz-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quiz-card-3d {
        padding: 16px;
        gap: 14px;
    }

    .quiz-icon-3d {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .quiz-title-3d {
        font-size: 1rem;
    }

    .quiz-desc-3d {
        font-size: .9rem;
    }

    .quiz-section {
        padding: 18px;
        border-radius: 12px;
        -webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        -ms-border-radius: 12px;
        -o-border-radius: 12px;
       
    }

    .quiz-header-3d {
        flex-direction: column;
        align-items: stretch;
    }

    .back-3d-btn {
        justify-content: center;
        padding: 8px 20px;
        font-size: 1rem;
    }

    .quiz-progress-3d {
        text-align: center;
        padding: 8px 18px;
        font-size: 1rem;
    }

    .passage-3d-card {
        padding: 16px 18px;
        font-size: 1.1rem;
        max-height: 450px;
    }

    .timer-3d-section {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 18px;
    }

    .timer-3d-box {
        justify-content: center;
        font-size: 1rem;
        padding: 6px 16px;
    }

    .question-text-3d {
        font-size: 1rem;
        padding: 14px 16px;
        margin: 0 16px 18px 16px;
    }

    .options-3d-grid {
        padding: 0 16px;
        gap: 12px;
    }

    .option-3d-btn {
        padding: 12px 16px;
        font-size: 1.1rem;
    }

    .explanation-3d-box {
        padding: 14px 18px;
        margin: 8px 16px 0 16px;
        font-size: 1rem;
    }

    .nav-3d-buttons {
        gap: 12px;
    }

    .nav-3d {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .result-3d-container {
        padding: 20px;
    }

    .result-3d-container .score-big {
        font-size: 2.2rem;
    }

    .result-3d-container .stat-card {
        padding: 8px 18px;
        font-size: 1rem;
    }

    .result-3d-container .congrats {
        font-size: 1rem;
    }

    .breadcrumb {
        font-size: .9rem;
        padding: 8px 14px;
    }

    .breadcrumb-item {
        font-size: .9rem;
    }

    .app-footer-3d {
        font-size: .9rem;
        padding: 16px;
        margin-top: 25px;
    }
}

/* ========== EXTRA SMALL DEVICES ========== */
@media (max-width: 480px) {
    .app-container {
        padding: 8px;
    }

    .header-3d {
        padding: 10px 18px;
    }

    .main-header h1 {
        font-size: 1.5rem;
    }

    .main-header p {
        font-size: .85rem;
    }

    .quiz-card-3d {
        padding: 14px;
    }

    .quiz-icon-3d {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        border-radius: 18px;
    }

    .quiz-title-3d {
        font-size: 1.1rem;
    }

    .quiz-section {
        padding: 14px;
    }

    .option-3d-btn {
        padding: 10px 14px;
        font-size: 1rem;
    }

    .result-stats {
        gap: 12px;
    }
}

/* ========== UTILITY CLASSES ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}