/* ========== EXAM PAGE THEME - COMPETITIVE ELITE ========== */
.exam-page {
    --exam-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    --exam-secondary-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --exam-danger: #dc2626;
    --exam-danger-rgb: 220, 38, 38;
    --exam-warning: #fbbf24;
    --exam-warning-rgb: 251, 191, 36;
    --exam-numeric: #3b82f6;
    --exam-numeric-rgb: 59, 130, 246;
    --exam-bg-overlay: rgba(220, 38, 38, 0.05);
    --exam-card-gradient: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
}

/* ========== ELITE BACKGROUND PATTERN ========== */
.exam-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 35%),
        linear-gradient(135deg, 
            rgba(17, 17, 17, 0.95) 0%,
            rgba(23, 23, 23, 0.98) 50%,
            rgba(17, 17, 17, 0.95) 100%);
    pointer-events: none;
    animation: elite-background-shift 20s ease-in-out infinite;
}

@keyframes elite-background-shift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* ========== ELITE HERO SECTION ========== */
.exam-hero {
    background: linear-gradient(135deg, 
        rgba(185, 28, 28, 0.95) 0%, 
        rgba(220, 38, 38, 0.95) 50%, 
        rgba(185, 28, 28, 0.95) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
    border-radius: 0 0 40px 40px;
    animation: exam-hero-glow 8s ease-in-out infinite alternate;
}

@keyframes exam-hero-glow {
    0% {
        background: linear-gradient(135deg, 
            rgba(185, 28, 28, 0.95) 0%, 
            rgba(220, 38, 38, 0.95) 50%, 
            rgba(185, 28, 28, 0.95) 100%);
        box-shadow: 0 20px 60px rgba(220, 38, 38, 0.5);
    }
    100% {
        background: linear-gradient(135deg, 
            rgba(220, 38, 38, 0.95) 0%, 
            rgba(185, 28, 28, 0.95) 50%, 
            rgba(220, 38, 38, 0.95) 100%);
        box-shadow: 0 20px 60px rgba(251, 191, 36, 0.4);
    }
}

.exam-glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 2px,
            transparent 4px
        );
    opacity: 0.3;
    mix-blend-mode: overlay;
    animation: glitch-shift 0.1s infinite linear;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #fbbf24, #ffffff, #dc2626, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: elite-title-shimmer 4s ease-in-out infinite;
    text-shadow: 0 0 50px rgba(251, 191, 36, 0.5);
    letter-spacing: 2px;
}

.gradient-text-exam {
    background: linear-gradient(45deg, #fbbf24, #dc2626, #fbbf24, #b91c1c, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: text-glitter 3s ease-in-out infinite;
    font-weight: 800;
}

.gradient-text-numeric {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #60a5fa, #1d4ed8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: text-glitter 3s ease-in-out infinite;
    font-weight: 800;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-top: 1.5rem;
    border-right: 4px solid #fbbf24;
    padding-right: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: subtitle-glow 2s ease-in-out infinite;
}

@keyframes subtitle-glow {
    0%, 100% {
        border-right-color: #fbbf24;
    }
    50% {
        border-right-color: #dc2626;
    }
}

.exam-logo-container {
    position: relative;
    display: inline-block;
}

.exam-logo {
    max-width: 350px;
    border-radius: 30px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(251, 191, 36, 0.5),
        0 0 120px rgba(220, 38, 38, 0.3);
    transition: all 0.5s ease;
    border: 4px solid rgba(251, 191, 36, 0.7);
    animation: exam-logo-rotation 20s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes exam-logo-rotation {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-1deg) scale(1.02);
    }
    50% {
        transform: rotate(1deg) scale(1);
    }
    75% {
        transform: rotate(-0.5deg) scale(1.01);
    }
}

.exam-logo-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, 
        rgba(251, 191, 36, 0.4) 0%,
        rgba(220, 38, 38, 0.2) 30%,
        rgba(220, 38, 38, 0) 70%);
    border-radius: 40px;
    filter: blur(30px);
    animation: exam-logo-glow-pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes exam-logo-glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* ========== ELITE TABS ========== */
.type-tabs {
    display: flex;
    background: linear-gradient(135deg, 
        rgba(185, 28, 28, 0.9) 0%, 
        rgba(220, 38, 38, 0.9) 50%, 
        rgba(185, 28, 28, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(251, 191, 36, 0.3);
    border-radius: 60px;
    padding: 10px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(220, 38, 38, 0.3);
    animation: exam-tabs-float 6s ease-in-out infinite;
}

@keyframes exam-tabs-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.type-tab {
    flex: 1;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.type-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(251, 191, 36, 0.3), 
        rgba(220, 38, 38, 0.2), 
        transparent);
    transition: left 0.8s ease;
}

.type-tab:hover::before {
    left: 100%;
}

.type-tab.active {
    background: linear-gradient(45deg, #dc2626, #fbbf24, #dc2626);
    color: #1f2937;
    box-shadow: 
        0 10px 30px rgba(220, 38, 38, 0.5),
        inset 0 2px 15px rgba(255, 255, 255, 0.4);
    animation: active-exam-tab 2s ease-in-out infinite;
    transform: scale(1.03);
}

@keyframes active-exam-tab {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(220, 38, 38, 0.5),
            inset 0 2px 15px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(220, 38, 38, 0.7),
            inset 0 2px 20px rgba(255, 255, 255, 0.5);
    }
}

.type-tab[data-type="numeric"].active {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #60a5fa, #1d4ed8, #3b82f6);
    animation: active-numeric-tab 2s ease-in-out infinite;
}

@keyframes active-numeric-tab {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(59, 130, 246, 0.5),
            inset 0 2px 15px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(59, 130, 246, 0.7),
            inset 0 2px 20px rgba(255, 255, 255, 0.5);
    }
}

.tab-badge {
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 4px;
}

/* ========== ELITE EXAM CARDS ========== */
.nft.exam-card {
    max-width: 380px;
    margin: 2.5rem auto;
    background: var(--card-bg);
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(220, 38, 38, 0.2);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: elite-exam-card-enter 1s ease-out;
    z-index: 1;
}

@keyframes elite-exam-card-enter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nft.exam-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, 
        #dc2626, #fbbf24, #dc2626, #b91c1c, #fbbf24, #dc2626);
    border-radius: 34px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(20px);
    background-size: 300% 300%;
    animation: exam-card-border-shimmer 3s linear infinite;
}

@keyframes exam-card-border-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.nft.exam-card.numeric-card::before {
    background: linear-gradient(45deg, 
        #3b82f6, #60a5fa, #1d4ed8, #60a5fa, #3b82f6);
}

.nft.exam-card:hover::before {
    opacity: 0.8;
}

.nft.exam-card:hover {
    transform: translateY(-25px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(220, 38, 38, 0.5),
        0 0 100px rgba(251, 191, 36, 0.3);
    border-color: #dc2626;
}

.nft.exam-card.numeric-card:hover {
    border-color: #3b82f6;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(59, 130, 246, 0.5),
        0 0 100px rgba(96, 165, 250, 0.3);
}

/* Card Content */
.exam-card .main {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, 
        rgba(30, 30, 30, 0.9) 0%, 
        rgba(45, 45, 45, 0.9) 100%);
    border-radius: 30px;
}

.numeric-card .main {
    background: linear-gradient(145deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.9) 100%);
}

.exam-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 800;
    z-index: 3;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: elite-exam-badge-pulse 3s ease-in-out infinite;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

@keyframes elite-exam-badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.exam-badge {
    background: linear-gradient(45deg, #dc2626, #b91c1c, #dc2626);
}

.numeric-badge {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #3b82f6) !important;
}

.exam-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.tokenImage {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.exam-card:hover .tokenImage {
    transform: scale(1.08);
}

.exam-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 40%, 
        rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.exam-card h3 {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(45deg, #dc2626, #fbbf24, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: exam-card-title-shift 3s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes exam-card-title-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.numeric-card h3 {
    background: linear-gradient(45deg, #3b82f6, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exam-card .description {
    margin: 1rem 0 1.5rem;
    color: var(--text-primary);
    opacity: 0.95;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    padding: 0 1rem;
}

.numeric-tag {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.2));
    color: #60a5fa;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid rgba(96, 165, 250, 0.3);
    margin: 1rem auto;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
    animation: numeric-tag-pulse 2s ease-in-out infinite;
}

@keyframes numeric-tag-pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 5px 30px rgba(59, 130, 246, 0.3);
    }
}

.exam-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.exam-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.exam-feature i {
    font-size: 1.2rem;
}

.exam-divider {
    height: 2px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(220, 38, 38, 0.5), 
        rgba(251, 191, 36, 0.5), 
        rgba(220, 38, 38, 0.5), 
        transparent);
    border: none;
    margin: 1.5rem 0;
}

.numeric-card .exam-divider {
    background: linear-gradient(to right, 
        transparent, 
        rgba(59, 130, 246, 0.5), 
        rgba(96, 165, 250, 0.5), 
        rgba(59, 130, 246, 0.5), 
        transparent);
}

/* ========== ELITE EXAM BUTTONS ========== */
.super-button.exam-button {
    background: linear-gradient(145deg, 
        rgba(30, 30, 30, 0.95), 
        rgba(45, 45, 45, 0.95));
    border: 2px solid rgba(220, 38, 38, 0.4);
    color: #fff;
    padding: 18px 36px;
    font-size: 1.2rem;
    border-radius: 15px;
    animation: exam-button-float 4s ease-in-out infinite;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(220, 38, 38, 0.4);
}

@keyframes exam-button-float {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(220, 38, 38, 0.4);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(220, 38, 38, 0.5);
    }
}

.super-button.exam-button::before {
    background: conic-gradient(
        from 0deg, 
        #dc2626, 
        #fbbf24, 
        #b91c1c,
        #fbbf24,
        #dc2626
    );
    animation: rotate 3s linear infinite;
}

.super-button.numeric-button {
    border: 2px solid rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.4);
    animation: numeric-button-float 4s ease-in-out infinite;
}

@keyframes numeric-button-float {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(59, 130, 246, 0.5);
    }
}

.super-button.numeric-button::before {
    background: conic-gradient(
        from 0deg, 
        #3b82f6, 
        #60a5fa, 
        #1d4ed8,
        #60a5fa,
        #3b82f6
    );
}

.super-button.exam-button:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(220, 38, 38, 0.6),
        0 0 80px rgba(251, 191, 36, 0.4);
    animation: none;
}

.super-button.numeric-button:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(59, 130, 246, 0.6),
        0 0 80px rgba(96, 165, 250, 0.4);
    animation: none;
}

.super-button.exam-button:hover .arrow {
    transform: translateX(12px);
    animation: exam-arrow-bounce-fast 0.4s ease infinite;
}

@keyframes exam-arrow-bounce-fast {
    0%, 100% {
        transform: translateX(12px);
    }
    50% {
        transform: translateX(18px);
    }
}

/* ========== ELITE PANEL STYLES ========== */
.test-selector-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: elite-exam-panel-fade 0.4s ease-out;
}

@keyframes elite-exam-panel-fade {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

.test-selector-panel.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.panel-content {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: linear-gradient(145deg, 
        rgba(25, 25, 25, 0.98) 0%, 
        rgba(40, 40, 40, 0.98) 100%);
    border: 3px solid rgba(220, 38, 38, 0.5);
    border-radius: 35px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.9),
        0 0 100px rgba(220, 38, 38, 0.5);
    animation: elite-exam-panel-slide 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.numeric-panel {
    border: 3px solid rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.9),
        0 0 100px rgba(59, 130, 246, 0.5);
}

@keyframes elite-exam-panel-slide {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.panel-header {
    padding: 2.5rem;
    border-bottom: 3px solid rgba(220, 38, 38, 0.5);
    background: linear-gradient(to right, 
        rgba(220, 38, 38, 0.2), 
        rgba(251, 191, 36, 0.2));
    border-radius: 35px 35px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    animation: elite-exam-header-glow 4s ease-in-out infinite;
}

@keyframes elite-exam-header-glow {
    0%, 100% {
        background: linear-gradient(to right, 
            rgba(220, 38, 38, 0.2), 
            rgba(251, 191, 36, 0.2));
    }
    50% {
        background: linear-gradient(to right, 
            rgba(251, 191, 36, 0.2), 
            rgba(220, 38, 38, 0.2));
    }
}

.numeric-panel .panel-header {
    border-bottom-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(to right, 
        rgba(59, 130, 246, 0.2), 
        rgba(96, 165, 250, 0.2));
    animation: elite-numeric-header-glow 4s ease-in-out infinite;
}

@keyframes elite-numeric-header-glow {
    0%, 100% {
        background: linear-gradient(to right, 
            rgba(59, 130, 246, 0.2), 
            rgba(96, 165, 250, 0.2));
    }
    50% {
        background: linear-gradient(to right, 
            rgba(96, 165, 250, 0.2), 
            rgba(59, 130, 246, 0.2));
    }
}

.panel-header h4 {
    margin: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close-panel-btn {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(220, 38, 38, 0.5);
    border-radius: 50%;
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 11;
    font-size: 1.5rem;
    animation: exam-close-btn-float 3s ease-in-out infinite;
}

@keyframes exam-close-btn-float {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.numeric-panel .close-panel-btn {
    border-color: rgba(59, 130, 246, 0.5);
    color: #60a5fa;
}

.close-panel-btn:hover {
    background: rgba(220, 38, 38, 0.3);
    transform: rotate(180deg) scale(1.2);
    border-color: #dc2626;
    animation: none;
}

.numeric-panel .close-panel-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.tests-container {
    padding: 2rem;
    max-height: calc(80vh - 150px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tests-container::-webkit-scrollbar {
    display: none;
}

/* Test Items */
.test-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: exam-test-item-fade 0.6s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
    opacity: 0;
}

@keyframes exam-test-item-fade {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.test-item.numeric {
    border-color: rgba(59, 130, 246, 0.3);
}

.test-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #dc2626, #fbbf24, #dc2626);
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 300% 100%;
    animation: exam-test-item-border 3s linear infinite;
}

@keyframes exam-test-item-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.test-item.numeric::before {
    background: linear-gradient(to right, #3b82f6, #60a5fa, #3b82f6);
}

.test-item:hover::before {
    opacity: 1;
}

.test-item:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    transform: translateY(-8px) translateX(10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(220, 38, 38, 0.3);
}

.test-item.numeric:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(59, 130, 246, 0.3);
}

/* Enhanced test item content */
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.test-title {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.test-difficulty {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.test-difficulty.easy {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    animation: difficulty-glow-easy 2s ease-in-out infinite;
}

.test-difficulty.medium {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    animation: difficulty-glow-medium 2s ease-in-out infinite;
}

.test-difficulty.hard {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.3);
    animation: difficulty-glow-hard 2s ease-in-out infinite;
}

@keyframes difficulty-glow-easy {
    0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.5); }
}

@keyframes difficulty-glow-medium {
    0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.3); }
    50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
}

@keyframes difficulty-glow-hard {
    0%, 100% { box-shadow: 0 0 10px rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.5); }
}

.test-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.test-item:hover .detail-item {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.detail-item i {
    color: #dc2626;
    font-size: 1.3rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
}

.test-item.numeric .detail-item i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Enhanced START TEST Button */
.start-test-btn {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(45deg, #dc2626, #b91c1c, #dc2626);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 10px 25px rgba(220, 38, 38, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.start-test-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.8s ease;
    z-index: -1;
}

.start-test-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #dc2626, 
        #fbbf24, 
        #b91c1c,
        #fbbf24,
        #dc2626);
    border-radius: 17px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
    background-size: 300% 300%;
    animation: exam-button-border-shimmer 3s linear infinite paused;
}

@keyframes exam-button-border-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.start-test-btn:hover::before {
    left: 100%;
}

.start-test-btn:hover::after {
    opacity: 0.8;
    animation-play-state: running;
}

.start-test-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(220, 38, 38, 0.6),
        inset 0 2px 15px rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #b91c1c, #dc2626, #b91c1c);
}

.test-item.numeric .start-test-btn {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #3b82f6);
    box-shadow: 
        0 10px 25px rgba(59, 130, 246, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.test-item.numeric .start-test-btn::after {
    background: linear-gradient(45deg, 
        #3b82f6, 
        #60a5fa, 
        #1d4ed8,
        #60a5fa,
        #3b82f6);
}

.test-item.numeric .start-test-btn:hover {
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.6),
        inset 0 2px 15px rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #1d4ed8, #3b82f6, #1d4ed8);
}

/* ========== EXAM MAIN TITLE ========== */
.exam-main-title {
    text-align: center;
    margin: 2rem 0 4rem;
    position: relative;
}

.exam-main-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.exam-main-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #dc2626, #fbbf24, #dc2626);
    border-radius: 2px;
}

.exam-main-title .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(220, 38, 38, 0.2);
}

/* ========== ENHANCED THEME SUPPORT ========== */
[data-bs-theme="dark"] {
    --exam-danger: #ef4444;
    --exam-danger-rgb: 239, 68, 68;
    --exam-warning: #fbbf24;
    --exam-warning-rgb: 251, 191, 36;
    --exam-numeric: #60a5fa;
    --exam-numeric-rgb: 96, 165, 250;
    --card-bg: linear-gradient(145deg, 
        rgba(30, 30, 30, 0.95) 0%, 
        rgba(45, 45, 45, 0.95) 100%);
    --modal-bg: linear-gradient(145deg, 
        rgba(20, 20, 20, 0.98) 0%, 
        rgba(35, 35, 35, 0.98) 100%);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
}

[data-bs-theme="light"] {
    --exam-danger: #dc2626;
    --exam-danger-rgb: 220, 38, 38;
    --exam-warning: #f59e0b;
    --exam-warning-rgb: 245, 158, 11;
    --exam-numeric: #3b82f6;
    --exam-numeric-rgb: 59, 130, 246;
    --card-bg: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 249, 250, 0.98) 100%);
    --modal-bg: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.99) 0%, 
        rgba(248, 249, 250, 0.99) 100%);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
}

[data-bs-theme="light"] .exam-hero {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.95) 0%, 
        rgba(185, 28, 28, 0.95) 100%);
}

[data-bs-theme="light"] .type-tabs {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.9) 0%, 
        rgba(185, 28, 28, 0.9) 100%);
}

[data-bs-theme="light"] .nft.exam-card .main {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 249, 250, 0.98) 100%);
}

[data-bs-theme="light"] .nft.exam-card.numeric-card .main {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(240, 249, 255, 0.98) 100%);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .nft.exam-card {
        max-width: 350px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .nft.exam-card {
        max-width: 100%;
        margin: 2rem auto;
    }
    
    .exam-card .main {
        padding: 1.5rem;
    }
    
    .panel-content {
        width: 95%;
        max-width: 95%;
    }
    
    .type-tabs {
        flex-direction: column;
        border-radius: 30px;
        gap: 10px;
        padding: 10px;
    }
    
    .type-tab {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .test-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .exam-hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .exam-logo {
        max-width: 250px;
    }
    
    .panel-content {
        width: 98%;
        margin: 1rem;
        max-height: 95vh;
        border-radius: 25px;
    }
    
    .panel-header {
        padding: 1.5rem;
    }
    
    .close-panel-btn {
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .tests-container {
        padding: 1.5rem;
        max-height: calc(85vh - 120px);
    }
    
    .test-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .exam-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nft.exam-card:hover {
        transform: translateY(-15px);
    }
    
    .super-button.exam-button {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
    
    .test-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .exam-hero {
        padding: 50px 0;
        border-radius: 0 0 25px 25px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .gradient-text-exam,
    .gradient-text-numeric {
        font-size: 1.6rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding-right: 1rem;
    }
    
    .panel-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        border: none;
    }
    
    .test-selector-panel.active {
        padding: 0;
    }
    
    .tests-container {
        max-height: calc(85vh - 100px);
        padding: 1rem;
    }
    
    .exam-logo {
        max-width: 200px;
    }
    
    .exam-badge {
        padding: 8px 16px;
        font-size: 0.9rem;
        top: 20px;
        right: 20px;
    }
    
    .test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .test-difficulty {
        align-self: flex-start;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .exam-hero,
    .exam-logo,
    .exam-logo-glow,
    .type-tabs,
    .nft.exam-card,
    .exam-badge,
    .super-button,
    .panel-content,
    .close-panel-btn,
    .test-item,
    .exam-main-title,
    .gradient-text-exam,
    .gradient-text-numeric,
    .exam-card h3 {
        animation: none !important;
        transition: none !important;
    }
    
    .exam-hero::before,
    .exam-logo::before,
    .super-button::before,
    .exam-card::before,
    .test-item::before {
        animation: none !important;
    }
    
    .nft.exam-card:hover {
        transform: translateY(-10px);
    }
    
    .test-item:hover {
        transform: translateY(-4px);
    }
}