/* ============================================
   JNV CLASS 9 EXAM PAGE - PREMIUM STYLES
   ============================================ */

/* Main Container */
.jnv-main {
    padding-top: 70px;
    min-height: 100vh;
}

/* Hero Section */
.jnv-hero {
    position: relative;
    padding: 3rem 1rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1.3rem;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.jnv-title {
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.5rem;
}

.jnv-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-large {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary-large {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-large:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Tab Navigation */
.jnv-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.jnv-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jnv-tab:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.jnv-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-color: transparent;
    color: white;
}

.tab-icon {
    font-size: 1.1rem;
}

/* Tab Content */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* Update Dot Notification */
.update-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* UPDATES TAB STYLES */
.hero-update {
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-update-pulse {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-update-content {
    position: relative;
    z-index: 2;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.update-badge .live-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.hero-update-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.hero-update-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hero-update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.hero-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    border-radius: 12px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-update-btn span {
    color: #ffffff !important;
}

.hero-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #5b52f0, #4338ca);
}

.hero-update-btn .btn-arrow {
    transition: transform 0.3s;
}

.hero-update-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Status Cards */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.status-card.upcoming::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.status-card.pending::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.status-card.scheduled::before {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

.status-card.completed::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.status-icon {
    font-size: 1.5rem;
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-card.upcoming .status-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-card.pending .status-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-card.scheduled .status-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.status-card.completed .status-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Updates Timeline */
.updates-timeline-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.updates-count {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border-radius: 20px;
    font-weight: 600;
}

.updates-timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 20px;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--border-color);
    z-index: 2;
}

.timeline-item.new .marker-dot {
    background: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), 0 0 15px rgba(99, 102, 241, 0.5);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), 0 0 15px rgba(99, 102, 241, 0.5);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 25px rgba(99, 102, 241, 0.7);
    }
}

.marker-line {
    flex: 1;
    width: 2px;
    background: var(--border-color);
    margin-top: 4px;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.timeline-item.new .timeline-content {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.timeline-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.info-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.alert-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.success-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

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

/* Subscribe Card */
.subscribe-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.subscribe-icon {
    font-size: 2rem;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {

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

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

    20%,
    40% {
        transform: rotate(10deg);
    }

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

.subscribe-content {
    flex: 1;
}

.subscribe-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.subscribe-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.subscribe-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .hero-update {
        padding: 1.5rem;
    }

    .status-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .subscribe-card {
        flex-direction: column;
        text-align: center;
    }
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.highlight-box h4 {
    color: #10b981;
    margin-bottom: 0.75rem;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.highlight-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
}

/* Exam Pattern Table */
.pattern-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pattern-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    align-items: center;
}

.pattern-row span {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.pattern-row.header {
    background: rgba(99, 102, 241, 0.1);
}

.pattern-row.header span {
    font-weight: 700;
    color: var(--text-primary);
}

.pattern-row.total {
    background: rgba(16, 185, 129, 0.1);
}

.pattern-row.total span {
    font-weight: 700;
    color: #10b981;
    border-bottom: none;
}

.pattern-notes {
    margin-top: 1rem;
}

.pattern-notes p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Eligibility Grid */
.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.eligibility-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.eligibility-icon {
    font-size: 1.5rem;
}

.eligibility-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.eligibility-info span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Timeline */
.dates-timeline {
    position: relative;
    padding-left: 2rem;
}

.dates-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.date-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.date-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: 50%;
}

.date-item.active .date-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.date-item.completed .date-dot {
    background: #22c55e;
    border-color: #22c55e;
}

.date-item.completed .date-content strong {
    color: var(--text-tertiary);
}

.date-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.date-content span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Syllabus Cards */
.syllabus-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.syllabus-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.syllabus-intro p {
    color: var(--text-secondary);
}

.syllabus-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.syllabus-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.syllabus-header h3 {
    font-size: 1.1rem;
    color: white;
}

.english-bg {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.hindi-bg {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.maths-bg {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.science-bg {
    background: linear-gradient(135deg, #10b981, #059669);
}

.syllabus-icon {
    font-size: 1.5rem;
}

.syllabus-body {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.topic-group h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.topic-group ul {
    list-style: none;
    padding: 0;
}

.topic-group li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.topic-group li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Practice Section */
.practice-header {
    text-align: center;
    margin-bottom: 2rem;
}

.practice-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.practice-header p {
    color: var(--text-secondary);
}

.practice-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.practice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.practice-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.practice-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.english-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(29, 78, 216, 0.1));
}

.hindi-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.1));
}

.maths-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
}

.science-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
}

.practice-info {
    flex: 1;
}

.practice-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.question-count {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.practice-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 80px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-align: right;
}

.practice-arrow {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.practice-card:hover .practice-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* PYQ Cards */
.pyq-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pyq-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    position: relative;
}

.pyq-card:hover:not(.coming-soon) {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pyq-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    flex-shrink: 0;
}

.pyq-info {
    flex: 1;
    min-width: 0;
}

.pyq-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.pyq-questions {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.pyq-status {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pyq-status.available {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.pyq-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

/* Premium Locked PYQ Card */
.pyq-card.premium-locked {
    position: relative;
    opacity: 0.8;
    cursor: pointer;
}

.pyq-card.premium-locked:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    transform: translateY(-3px);
}

.pyq-lock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pyq-status.premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Mock Test Cards */
.mock-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.mock-card {
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.mock-card:hover:not(.locked) {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.mock-number {
    font-weight: 700;
    color: var(--text-primary);
}

.mock-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.mock-badge.free {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.mock-badge.premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.1));
    color: #f59e0b;
}

.mock-badge.unlocked {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    color: #10b981;
}

.mock-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mock-start-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mock-start-btn:hover {
    opacity: 0.9;
}

.locked-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.mock-card.locked {
    opacity: 0.7;
}

/* Leaderboard */
.leaderboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.leaderboard-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.leaderboard-container {
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.podium-place {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 120px;
}

.podium-place.first {
    transform: translateY(-20px);
    background: linear-gradient(145deg, var(--card-bg), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.podium-avatar {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.podium-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.podium-score {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.leaderboard-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.leaderboard-empty {
    text-align: center;
    padding: 2rem;
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.leaderboard-empty p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Quiz Modal */
.quiz-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.quiz-modal.active {
    opacity: 1;
    visibility: visible;
}

.quiz-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.quiz-header {
    margin-bottom: 2rem;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quiz-mode {
    font-weight: 700;
    color: var(--text-primary);
}

.quiz-rewards .reward {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.quiz-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    transition: width 0.3s ease;
}

.quiz-question {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.quiz-option.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.quiz-option.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.quiz-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    display: none;
}

.quiz-feedback.correct {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.quiz-feedback.wrong {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100003;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .jnv-hero {
        padding: 2rem 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat .stat-value {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
    }

    .jnv-tabs {
        gap: 0.25rem;
    }

    .jnv-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .tab-text {
        display: none;
    }

    .pattern-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .pattern-row span:last-child {
        display: none;
    }

    .syllabus-body {
        grid-template-columns: 1fr;
    }

    .practice-cards {
        grid-template-columns: 1fr;
    }

    .pyq-cards {
        flex-direction: column;
    }

    .leaderboard-podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-place.first {
        transform: none;
        order: -1;
    }

    .quiz-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .jnv-tab {
        padding: 0.5rem 0.6rem;
    }

    .tab-icon {
        font-size: 1rem;
    }

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

/* Official Badge */
.official-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Study Tips Grid */
.study-tips-card {
    background: linear-gradient(145deg, var(--card-bg), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.2);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.tip-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CBT EXAM INTERFACE - Professional Exam Mode
   ============================================ */

/* Full Screen Exam Container */
.cbt-exam {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: var(--bg-primary);
}

.cbt-exam.active {
    display: block;
}

.cbt-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* CBT Header */
.cbt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-bottom: 2px solid var(--primary-color);
    flex-shrink: 0;
}

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

.cbt-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.cbt-exam-info h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.cbt-exam-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cbt-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* CBT Language Toggle */
.cbt-language-toggle {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cbt-lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbt-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cbt-lang-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.cbt-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.timer-icon {
    font-size: 1.2rem;
}

.timer-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.timer-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #ef4444;
}

.cbt-submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* CBT Main Layout */
.cbt-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Question Panel (Left Side) */
.cbt-question-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--bg-primary);
}

.cbt-question-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.question-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.question-number strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-badge {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cbt-question-content {
    flex: 1;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    overflow-y: auto;
}

.cbt-question-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

/* Hindi Translation in CBT Question Text - Bilingual Display */
.cbt-question-text .hindi-translation {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Hindi Translation in CBT Options */
.cbt-option .option-text .hindi-translation {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* ============================================
   CBT PASSAGE BOX (Comprehension Questions)
   ============================================ */
.cbt-passage-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.cbt-passage-box .passage-header {
    font-weight: 700;
    font-size: 1rem;
    color: #3b82f6;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cbt-passage-box .passage-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
}

/* ============================================
   CBT QUESTION IMAGE (Diagram Questions)
   ============================================ */
.cbt-question-image {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.cbt-question-image img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 12px;
    background: white;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cbt-passage-box {
        max-height: 200px;
        padding: 1rem;
    }

    .cbt-passage-box .passage-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .cbt-question-image img {
        max-height: 200px;
        padding: 8px;
    }
}

.cbt-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cbt-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbt-option:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.cbt-option.selected {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.cbt-option .option-letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.cbt-option.selected .option-letter {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cbt-option .option-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Question Actions */
.cbt-question-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cbt-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cbt-action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cbt-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cbt-action-btn.mark-review {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid #a855f7;
}

.cbt-action-btn.mark-review:hover {
    background: rgba(168, 85, 247, 0.3);
}

.cbt-action-btn.mark-review.active {
    background: #a855f7;
    color: white;
}

.cbt-action-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.cbt-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Navigation */
.cbt-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cbt-nav-btn {
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cbt-nav-btn.prev {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cbt-nav-btn.prev:hover {
    background: var(--bg-tertiary);
}

.cbt-nav-btn.save-next {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
}

.cbt-nav-btn.save-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Navigator Panel (Right Side) */
.cbt-navigator-panel {
    width: 320px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.cbt-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-bottom: 1px solid var(--border-color);
}

.cbt-user-info .user-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    color: var(--text-primary);
}

.user-id {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Legend */
.cbt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.legend-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-box.answered {
    background: #10b981;
    border-color: #10b981;
}

.legend-box.not-answered {
    background: #ef4444;
    border-color: #ef4444;
}

.legend-box.not-visited {
    background: transparent;
    border-color: #6b7280;
}

.legend-box.marked {
    background: #a855f7;
    border-color: #a855f7;
}

.legend-box.answered-marked {
    background: linear-gradient(135deg, #10b981, #a855f7);
    border-color: #a855f7;
}

/* Section Tabs */
.cbt-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.cbt-section-tab {
    flex: 1;
    min-width: calc(50% - 0.25rem);
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbt-section-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cbt-section-tab:hover:not(.active) {
    background: var(--bg-primary);
}

/* Question Grid */
.cbt-question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    align-content: start;
}

.cbt-q-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.cbt-q-btn:hover {
    transform: scale(1.1);
    z-index: 1;
}

.cbt-q-btn.current {
    box-shadow: 0 0 0 3px var(--primary-color);
}

.cbt-q-btn.answered {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.cbt-q-btn.not-answered {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.cbt-q-btn.marked {
    background: #a855f7;
    border-color: #a855f7;
    color: white;
}

.cbt-q-btn.answered-marked {
    background: linear-gradient(135deg, #10b981, #a855f7);
    border-color: #a855f7;
    color: white;
}

/* Submit Modal */
.cbt-submit-modal,
.cbt-result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.cbt-submit-modal.active,
.cbt-result-modal.active {
    display: flex;
}

.cbt-submit-dialog,
.cbt-result-dialog {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

.submit-header h2,
.result-header h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.submit-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.summary-item.answered {
    border-left: 4px solid #10b981;
}

.summary-item.not-answered {
    border-left: 4px solid #ef4444;
}

.summary-item.marked {
    border-left: 4px solid #a855f7;
}

.summary-item.not-visited {
    border-left: 4px solid #6b7280;
}

.submit-warning {
    text-align: center;
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.submit-actions,
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Result Modal */
.result-header {
    text-align: center;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.result-score {
    text-align: center;
    margin: 2rem 0;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    margin-bottom: 1rem;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.score-total {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.score-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-breakdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    text-align: center;
}

.breakdown-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.breakdown-item strong {
    font-size: 1.5rem;
}

.breakdown-item.correct strong {
    color: #10b981;
}

.breakdown-item.wrong strong {
    color: #ef4444;
}

.breakdown-item.skipped strong {
    color: #6b7280;
}

.result-xp {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.result-xp strong {
    color: #f59e0b;
    font-size: 1.3rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .cbt-main {
        flex-direction: column;
    }

    .cbt-navigator-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        max-height: 40vh;
    }

    .cbt-question-grid {
        grid-template-columns: repeat(10, 1fr);
    }

    .cbt-header {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cbt-exam-info h1 {
        font-size: 0.9rem;
    }

    .cbt-exam-subtitle {
        display: none;
    }

    .cbt-timer {
        padding: 0.4rem 0.75rem;
    }

    .timer-label {
        display: none;
    }

    .timer-value {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .cbt-question-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .cbt-navigation {
        flex-direction: column;
    }

    .cbt-question-actions {
        flex-direction: column;
    }

    .cbt-sections {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .cbt-section-tab {
        min-width: auto;
        white-space: nowrap;
    }
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */

.jnv-tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.language-toggle {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn .lang-flag {
    font-size: 1.1rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    color: white;
}

.lang-btn.active .lang-text {
    font-weight: 700;
}

/* Transition for translated content */
[data-translate] {
    transition: opacity 0.2s ease;
}

.translating [data-translate] {
    opacity: 0.5;
}

/* Hindi font adjustments */
body.lang-hi {
    --hindi-font: 'Noto Sans Devanagari', 'Mangal', sans-serif;
}

body.lang-hi .translate-content,
body.lang-hi [data-translate] {
    font-family: var(--hindi-font);
}

/* Mobile language toggle */
@media (max-width: 768px) {
    .jnv-tabs-container {
        flex-direction: column;
        gap: 1rem;
    }

    .language-toggle {
        order: -1;
    }

    .lang-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Footer */
.jnv-footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-content a:hover {
    opacity: 0.8;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ============================================
   GATHRI (BUNDLE) SELECTION MODAL
   ============================================ */
.gathri-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.gathri-modal.active {
    display: flex;
}

.gathri-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* CUTE ANIMATED FACE - Modal Close Button */
.gathri-container .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
    background-image: url('/assets/icons/close-face-open.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 0;
    font-size: 0;
    color: transparent;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    animation: gathriCloseFloat 3s ease-in-out infinite;
}

@keyframes gathriCloseFloat {

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

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

/* Tooltip "Close" label */
.gathri-container .modal-close::after {
    content: 'Close';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    pointer-events: none;
}

/* Tooltip arrow */
.gathri-container .modal-close::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 5px solid transparent;
    border-bottom-color: #ff6b6b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

/* Hover state - show closed mouth face + tooltip */
.gathri-container .modal-close:hover {
    background-image: url('/assets/icons/close-face-closed.png');
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.5);
    animation: none;
}

.gathri-container .modal-close:hover::after,
.gathri-container .modal-close:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Active/Click state - squish effect */
.gathri-container .modal-close:active {
    transform: scale(0.9);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

/* Hide any text content inside */
.gathri-container .modal-close * {
    display: none;
}

.gathri-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-bottom: 1px solid var(--border-color);
}

.gathri-subject-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gathri-subject-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.gathri-subject-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.gathri-info-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

.gathri-info-icon {
    font-size: 1.5rem;
}

.gathri-info-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.gathri-info-text strong {
    color: #10b981;
    font-weight: 700;
}

.gathri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.gathri-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gathri-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s;
}

.gathri-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.08);
}

.gathri-card:hover::before {
    opacity: 1;
}

.gathri-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
}

.gathri-card.completed::before {
    background: linear-gradient(90deg, #10b981, #34d399);
    opacity: 1;
}

.gathri-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.gathri-card.locked:hover {
    transform: none;
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

/* JNV 2023 PYQ Badge for Gathri 2 */
.gathri-card.pyq-card {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(255, 255, 255, 0.03));
}

.gathri-card.pyq-card:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.gathri-pyq-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    animation: pyqPulse 2s ease-in-out infinite;
}

/* JNV 2024 - FREE - Emerald Green */
.gathri-pyq-badge.jnv-2024 {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: pyq2024Pulse 2s ease-in-out infinite;
}

/* JNV 2025 - Premium - Royal Violet/Purple */
.gathri-pyq-badge.jnv-2025 {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    animation: pyq2025Pulse 2s ease-in-out infinite;
}

/* JNV 2023 - Premium - Orange/Amber */
.gathri-pyq-badge.jnv-2023 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

@keyframes pyqPulse {

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

    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

@keyframes pyq2024Pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.6);
    }
}

@keyframes pyq2025Pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(124, 58, 237, 0.6);
    }
}

.pyq-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.gathri-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.gathri-card.completed .gathri-number {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Locked Gathri Card Styling */
.gathri-card.locked {
    opacity: 0.7;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.1), rgba(50, 50, 50, 0.1));
    border-color: rgba(150, 150, 150, 0.3);
}

.gathri-card.locked:hover {
    opacity: 0.9;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.gathri-card.locked .gathri-number {
    background: linear-gradient(135deg, #888, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gathri-lock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gathri-status.locked {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.gathri-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gathri-questions {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.gathri-status {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.gathri-status.new {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.gathri-status.in-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.gathri-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.gathri-status.locked {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.gathri-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.gathri-back-btn {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gathri-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .gathri-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gathri-header {
        padding: 1.25rem;
    }

    .gathri-subject-icon {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .gathri-subject-info h2 {
        font-size: 1.25rem;
    }
}

/* ============================================
   PREMIUM QUIZ STYLING WITH INTELLIGENT OPTIONS
   ============================================ */

/* Section Badge in Quiz */
.quiz-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #a5b4fc;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quiz-question-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Premium Option Styling */
.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    margin-bottom: 0.5rem;
}

.quiz-option:hover:not(:disabled) {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
}

.quiz-option .option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #a5b4fc;
    flex-shrink: 0;
}

.quiz-option .option-content {
    flex: 1;
    line-height: 1.5;
}

.quiz-option.correct {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.quiz-option.correct .option-label {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
}

.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.quiz-option.wrong .option-label {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: white;
}

.quiz-option:disabled {
    cursor: not-allowed;
}

/* Quiz Feedback Styling */
.quiz-feedback {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    line-height: 1.6;
}

.quiz-feedback.correct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.quiz-feedback.wrong {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.quiz-feedback strong {
    font-size: 1.1rem;
}

/* ============================================
   FULL PAGE GATHRI QUIZ - PREMIUM DESIGN
   ============================================ */

.gathri-quiz-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem 1rem;
    flex-direction: column;
    align-items: center;
}

.gathri-quiz-page.active {
    display: flex;
}

/* CUTE ANIMATED FACE - Quiz Close Button */
.gathri-quiz-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    background-image: url('/assets/icons/close-face-open.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    padding: 0;
    font-size: 0;
    color: transparent;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    animation: gathriQuizCloseFloat 3s ease-in-out infinite;
}

@keyframes gathriQuizCloseFloat {

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

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

/* Tooltip "Close" label */
.gathri-quiz-close::after {
    content: 'Close';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    pointer-events: none;
}

/* Tooltip arrow */
.gathri-quiz-close::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 5px solid transparent;
    border-bottom-color: #ff6b6b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
}

/* Hover state - show closed mouth face + tooltip */
.gathri-quiz-close:hover {
    background-image: url('/assets/icons/close-face-closed.png');
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.5);
    animation: none;
}

.gathri-quiz-close:hover::after,
.gathri-quiz-close:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Active/Click state - squish effect */
.gathri-quiz-close:active {
    transform: scale(0.9);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

/* Hide any text content inside */
.gathri-quiz-close * {
    display: none;
}

/* Gathri Badge */
.gathri-quiz-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    margin-bottom: 0.75rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    }
}

.gathri-quiz-badge .badge-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quiz Title */
.gathri-quiz-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
    text-align: center;
}

/* Progress Counter */
.gathri-quiz-progress {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.gathri-quiz-progress span:first-child {
    color: white;
    font-weight: 600;
}

/* Quiz Content */
.gathri-quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 1rem;
}

/* Topic Icon */
.topic-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

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

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

/* Question Text */
.gathri-question-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 100%;
}

/* Hindi Translation in Question Text - Bilingual Display */
.gathri-question-text .hindi-translation {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Options */
.gathri-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gathri-option-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gathri-option-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(8px);
}

.gathri-option-btn .option-text {
    flex: 1;
}

.gathri-option-btn .option-text .hindi-translation {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.gathri-option-btn.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.gathri-option-btn.correct::after {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.gathri-option-btn.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.gathri-option-btn.wrong::after {
    content: '✗';
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
}

.gathri-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Bottom Stats Bar */
.gathri-stats-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    z-index: 10002;
}

.gathri-stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gathri-stats-bar .stat-icon {
    font-size: 1.1rem;
}

.gathri-stats-bar .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.gathri-stats-bar .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.25rem;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .gathri-quiz-page {
        padding: 1.5rem 1rem;
    }

    .gathri-quiz-title {
        font-size: 1.4rem;
    }

    .topic-icon {
        font-size: 3rem;
    }

    .gathri-question-text {
        font-size: 1.1rem;
    }

    .gathri-option-btn {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .gathri-stats-bar {
        gap: 1.5rem;
        padding: 0.75rem 1rem;
    }
}

/* ============================================
   FLOATING RED BALL MASCOT WITH ANIMATED MOUTH
   ============================================ */

.floating-mascot {
    position: fixed;
    top: 1rem;
    right: 4.5rem;
    z-index: 10003;
    animation: mascotFloat 3s ease-in-out infinite;
}

.mascot-ball {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #ef4444, #dc2626);
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 8px 25px rgba(239, 68, 68, 0.5),
        inset 0 -8px 15px rgba(0, 0, 0, 0.2),
        inset 0 8px 15px rgba(255, 255, 255, 0.2);
}

/* Eyes */
.mascot-eye {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 35%;
}

.mascot-eye::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: #1a1a2e;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mascot-eye.left {
    left: 25%;
}

.mascot-eye.right {
    right: 25%;
}

/* Cheeks - rosy blush */
.mascot-cheek {
    position: absolute;
    width: 10px;
    height: 6px;
    background: rgba(255, 150, 150, 0.6);
    border-radius: 50%;
    top: 55%;
}

.mascot-cheek.left {
    left: 12%;
}

.mascot-cheek.right {
    right: 12%;
}

/* Animated Mouth - Opens and Closes */
.mascot-mouth {
    position: absolute;
    width: 16px;
    height: 12px;
    background: #1a1a2e;
    border-radius: 50%;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    animation: mouthTalk 1s ease-in-out infinite;
}

@keyframes mouthTalk {

    0%,
    100% {
        height: 12px;
        width: 16px;
        border-radius: 50%;
    }

    25% {
        height: 8px;
        width: 14px;
        border-radius: 40%;
    }

    50% {
        height: 16px;
        width: 18px;
        border-radius: 50%;
    }

    75% {
        height: 6px;
        width: 12px;
        border-radius: 40%;
    }
}

@keyframes mascotFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .floating-mascot {
        right: 3.5rem;
        top: 0.75rem;
    }

    .mascot-ball {
        width: 45px;
        height: 45px;
    }

    .mascot-eye {
        width: 8px;
        height: 8px;
    }

    .mascot-eye::after {
        width: 4px;
        height: 4px;
    }

    .mascot-mouth {
        width: 12px;
        height: 10px;
    }
}


/* ============================================
   COMPLETION MODAL - PREMIUM DESIGN
   ============================================ */

.gathri-complete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gathri-complete-modal.active {
    display: flex;
}

.complete-modal-content {
    background: linear-gradient(145deg, #1e1e2e, #252538);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 380px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease-out;
}

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

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

.complete-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconPop 0.5s ease-out 0.2s both;
}

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

    60% {
        transform: scale(1.2);
    }

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

.complete-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem 0;
}

.complete-title.excellent {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Grid */
.complete-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.complete-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.complete-stat .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.complete-stat .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Action Buttons */
.complete-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.complete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-btn span {
    font-size: 1.1rem;
}

.complete-btn.learn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.complete-btn.learn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.complete-btn.play-again {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
}

.complete-btn.play-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.complete-btn.menu {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.complete-btn.menu:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Excellent performance styles */
.complete-modal-content.excellent {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 25px 80px rgba(16, 185, 129, 0.2);
}

/* Mobile */
@media (max-width: 640px) {
    .floating-mascot {
        width: 50px;
        height: 50px;
        right: 3rem;
    }

    .complete-modal-content {
        padding: 2rem 1.5rem;
    }

    .complete-stats {
        gap: 1rem;
    }

    .complete-stat .stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================
   CBT REVIEW MODAL - Premium Answer Review
   ============================================ */
.cbt-review-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10002;
    overflow: hidden;
}

.cbt-review-modal.active {
    display: flex;
}

.cbt-review-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--card-bg));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.review-header h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.close-review-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-review-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

/* Review Modal Language Toggle */
.review-language-toggle {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.review-lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.review-lang-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.review-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.review-stats .stat {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--bg-tertiary);
}

.review-stats .stat.correct {
    color: #10b981;
}

.review-stats .stat.wrong {
    color: #ef4444;
}

.review-stats .stat.skipped {
    color: #6b7280;
}

.review-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-section-header {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1rem;
}

.review-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.review-item.correct {
    border-left: 4px solid #10b981;
}

.review-item.wrong {
    border-left: 4px solid #ef4444;
}

.review-item.skipped {
    border-left: 4px solid #6b7280;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-q-num {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.review-status {
    font-size: 1.5rem;
}

.review-question {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.review-question .hindi-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-style: italic;
}

.review-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
    padding: 8px;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.review-option {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.review-option .opt-letter {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.review-option.correct-option {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.review-option.wrong-option {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
    text-decoration: line-through;
}

.review-option .hindi-small {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.review-explanation {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.explanation-header {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.explanation-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.review-footer {
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

/* Mobile Responsive Review */
@media (max-width: 768px) {
    .review-header {
        padding: 1rem;
    }

    .review-header h2 {
        font-size: 1rem;
    }

    .review-stats {
        gap: 1rem;
        padding: 0.75rem;
    }

    .review-stats .stat {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .review-content {
        padding: 1rem;
    }

    .review-item {
        padding: 1rem;
    }

    .review-section-header {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    .review-image {
        max-width: 100%;
    }
}

/* Review Modal - Passage Display */
.review-passage {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.review-passage .passage-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.review-passage .passage-content {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: justify;
}