/* =========================================================
   EXAMSPARK GLOBAL CSS THEME (Based on Economics Ch 8)
   ========================================================= */

/* =========================================================
   EXAMSPARK GLOBAL CSS THEME (Based on Economics Ch 8)
   ========================================================= */

:root {
    --primary-color: #4A90E2; 
    --accent-color: #FF6B6B;
    --bg-color: #F4F7F6;
    --text-dark: #333;
    --sst-color: #27ae60;
    --success-color: #2ecc71;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ================= HEADER & NAVBAR (CLEAN VERSION) ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10000;
    height: 60px;
}

.left, .right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    height: 38px;
    width: auto;
}

#coin-navbar {
    background: #fff;
    border: 2px solid #f39c12;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

/* Nav Links - Desktop View */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

 
/* ================= REST OF YOUR CSS (UNCHANGED) ================= */

/* KEEPING EVERYTHING EXACTLY SAME BELOW 👇 */

/* ================= FOOTER ================= */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 5px solid var(--primary-color);
}

/* (rest of your CSS continues exactly same...) */

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

.copyright {
    font-size: 0.9rem;
    color: #7f8c8d;
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================= CHAPTER PAGES LAYOUT ================= */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .main-layout, .dashboard-container { grid-template-columns: 1fr !important; }
}

.content-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-color);
}

.breadcrumbs { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--primary-color); text-decoration: none; }

h1 { color: var(--primary-color); margin-top: 0; font-size: 2rem; }
h2 { border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; margin-top: 2rem; color: #2c3e50; }
h3 { font-size: 1.2rem; color: #444; margin-bottom: 0.5rem; font-weight: bold; }

.question-block { margin-bottom: 1.5rem; }
.answer-box {
    background: #f4f8fd;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
    border-radius: 4px;
}

.section-label {
    background: #eee; padding: 5px 10px; border-radius: 4px;
    font-size: 0.8rem; font-weight: bold; color: #555; display: inline-block; margin-bottom: 10px;
}
.pyq-tag {
    background: #ffecb3; color: #856404; padding: 2px 8px; border-radius: 4px;
    font-size: 0.8rem; font-weight: bold; margin-left: 10px;
}

.concept-list { list-style-type: none; padding: 0; }
.concept-list li {
    background: #fdfdfd; margin: 5px 0; padding: 10px; border-radius: 5px;
    border-left: 3px solid var(--primary-color); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-widget {
    background: white; padding: 1.5rem; border-radius: 8px;
    margin-bottom: 1.5rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; top: 80px;
}

/* ================= BUTTONS & SOCIAL BOX ================= */
.cta-btn {
    display: inline-block; background: var(--primary-color); color: white;
    padding: 10px 15px; border-radius: 6px; text-decoration: none;
    margin: 10px 10px 10px 0; font-weight: 500; transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.cta-btn:hover { background: #357abd; transform: translateY(-2px); }

.social-box {
    background: linear-gradient(135deg, #f9f9f9, #eef2f5);
    border-left: 5px solid #4A90E2; padding: 20px; border-radius: 10px;
    margin: 25px auto; max-width: 1100px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.social-box h3 { margin-top: 0; margin-bottom: 5px; color: #333; font-size: 1.4rem; border: none; }
.social-box p { color: #666; font-size: 0.95rem; margin-bottom: 20px;}

.social-buttons a {
    display: inline-block; margin: 8px; padding: 12px 20px; border-radius: 8px;
    text-decoration: none; color: white; font-weight: bold; transition: transform 0.2s, box-shadow 0.2s;
}
.social-buttons a:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.15); }

.insta-btn { background: linear-gradient(45deg, #e1306c, #fd1d1d, #fcb045); }
.yt-btn { background: #ff0000; }
.telegram-btn { background: #0088cc; }

/* ================= ADVERTISEMENTS ================= */
.ad-placeholder {
    background-color: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 12px;
    color: #94a3b8; font-weight: 600; text-align: center; display: flex;
    align-items: center; justify-content: center; margin: 2rem 0; padding: 1rem;
    min-height: 100px; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); transition: background-color 0.3s;
}
.ad-placeholder:hover { background-color: #f1f5f9; }
.in-content-ad { height: 100px; margin-top: 20px; margin-bottom: 20px; }

/* ================= INDEX / HERO SECTION ================= */
.hero {
    text-align: center; padding: 4rem 1rem;
   background: linear-gradient(135deg, #1c2025, #6a5acd);
    color: rgb(255, 255, 255);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 270px;
    height: 270px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.hero h1 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero h1 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero {
    animation: fadeIn 0.6s ease;
}

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

.hero h1 { margin-bottom: 1rem; color: rgb(255, 255, 255); font-size: 2.5rem; border: none; }
.search-box { margin-top: 1.5rem; }
.search-box input {
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.container { max-width: 1100px; margin: 0 auto; padding: 3rem 1rem; }
.section-title { text-align: center; margin-bottom: 2rem; color: var(--text-dark); border: none; }

/* ================= DASHBOARD & GRIDS ================= */
.dashboard-container {
    max-width: 1200px; margin: 2rem auto; padding: 0 1rem;
    display: grid; grid-template-columns: 250px 1fr; gap: 2rem;
}

.sidebar h3 { color: var(--text-dark); margin-top: 0; border: none; }
.subject-btn {
    display: block; width: 100%; text-align: left; padding: 10px 15px; margin-bottom: 10px;
    background: #f8f9fa; border: none; border-radius: 8px; cursor: pointer;
    font-weight: 600; color: #555; transition: all 0.2s;
}
.subject-btn:hover, .subject-btn.active { background: var(--primary-color); color: white; }

.content-area {
    background: white; padding: 2rem; border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); min-height: 500px;
}

.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; padding: 2rem; border-radius: 12px; margin-bottom: 2rem;
}
.welcome-banner h2 { margin: 0 0 10px 0; color: white; border: none; }

.class-grid, .grid-container, .chapter-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; margin-top: 1.5rem;
}

/* ================= CARDS (Classes & Chapters) ================= */
.class-card, .card, .chapter-card, .note-card {
    background: white; padding: 1.5rem; border-radius: 12px; text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer; display: flex; flex-direction: column; justify-content: center;
    text-decoration: none; color: var(--text-dark); border: 1px solid #eee; position: relative; overflow: hidden;
}
.class-card { padding: 2rem; border-bottom: 4px solid var(--primary-color); }
.card::before, .chapter-card::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--primary-color);
}
.class-card:hover, .card:hover, .chapter-card:hover, .note-card:hover {
    transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); border-color: var(--primary-color);
}

.class-card h3 { margin: 0; font-size: 1.5rem; color: var(--primary-color); }
.class-card p, .card p, .chapter-card span { color: #666; margin-top: 0.5rem; font-size: 0.95rem; }
.card h4, .chapter-card h4 { margin: 0; font-size: 1.1rem; color: var(--text-dark); }

/* Badges */
.badge { display: inline-block; padding: 4px 8px; font-size: 0.75rem; border-radius: 4px; margin-top: 10px; align-self: flex-start; font-weight: bold; }
.badge.ready { background: #e8f5e9; color: var(--success-color); }
.badge.soon { background: #fff3e0; color: #d35400; border: 1px solid #ffe0b2; }
.badge.hot { background: #fee2e2; color: #e53e3e; }

/* Disabled Elements */
.disabled-card, .disabled-link { opacity: 0.65; cursor: default; pointer-events: none; }
.disabled-card:hover { transform: none; box-shadow: none; border-color: #eee; }
.disabled-card::before { background: #ccc; }

/* Toggle Views */
.stream-view, .chapter-view { display: none; }
.active-view { display: block; }
.section-header { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; margin-top: 30px; color: var(--primary-color); font-size: 1.5rem; }
.section-header:first-of-type { margin-top: 0; }
.back-btn { background: #eee; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; color: #333; margin-bottom: 1.5rem; transition: background 0.2s; }
.back-btn:hover { background: #ddd; }

/* ================= RESOURCES ACCORDION ================= */
.accordion-btn {
    background-color: #f8f9fa; color: #333; cursor: pointer; padding: 18px 20px; width: 100%;
    border: 1px solid #e0e0e0; border-left: 5px solid var(--primary-color); text-align: left;
    outline: none; font-size: 1.2rem; font-weight: bold; border-radius: 8px; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease;
}
.accordion-btn:hover, .accordion-btn.active { background-color: var(--primary-color); color: white; border-left-color: var(--accent-color); }
.accordion-content {
    padding: 20px; display: none; background-color: white; margin-bottom: 20px; border: 1px solid #eee;
    border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.chapter-links { list-style: none; padding: 0; margin: 0; }
.chapter-links li { margin-bottom: 8px; }
.chapter-links a {
    text-decoration: none; color: #555; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; background: #fdfdfd; border: 1px solid #eee; border-radius: 6px; transition: 0.2s;
}
.chapter-links a:hover { background: #fff; color: var(--primary-color); transform: translateX(5px); border-color: var(--primary-color); }

/* ================= ABOUT US PAGE ================= */
.about-header { text-align: center; margin-bottom: 3rem; }
.about-header h1 { font-size: 2.8rem; margin-bottom: 0.5rem; color: var(--primary-color); border: none; }
.mission-statement { font-size: 1.2rem; color: #555; max-width: 750px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid var(--primary-color); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-8px); }
.feature-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.story-section { background: white; padding: 3rem; border-radius: 12px; margin-top: 4rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-left: 5px solid var(--accent-color); }
        /* Word Meaning Table */
        .word-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }
        .word-table th, .word-table td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }
        .word-table th {
            background-color: var(--primary-color);
            color: white;
        }
        .word-table tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        /* FAQ Section */
        .faq-item {
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
        }
        .faq-question {
            font-weight: bold;
            color: var(--sst-color);
            cursor: pointer;
        }
        .faq-answer {
            margin-top: 5px;
            color: #555;
        }
        /* ==========================================
   DPP UNLOCKER & INTERACTIVE FAQ STYLES
   ========================================== */
.dpp-wrapper { background: white; border-radius: 15px; padding: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.08); margin-top: 3rem; margin-bottom: 2rem; border-top: 5px solid #3498db; position: relative; overflow: hidden; }
.dpp-gatekeeper { background: #f4f9fd; border-radius: 12px; padding: 1.5rem; border: 2px dashed #3498db; text-align: center; margin-bottom: 2rem; transition: all 0.5s ease; }
.dpp-gatekeeper h3 { margin-top: 0; color: #2980b9; }
.mcq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.mcq-btn { background: white; border: 2px solid #bdc3c7; border-radius: 8px; padding: 12px; font-size: 1rem; font-weight: bold; color: #333; cursor: pointer; transition: 0.3s; }
.mcq-btn:hover { border-color: #3498db; background: #ebf5fb; }
.mcq-btn.correct { background: #2ecc71; color: white; border-color: #27ae60; pointer-events: none; }
.mcq-btn.wrong { background: #e74c3c; color: white; border-color: #c0392b; animation: shake 0.4s; }
.dpp-locked-content { filter: blur(8px); pointer-events: none; opacity: 0.5; transition: all 0.8s ease-in-out; }
.dpp-locked-content.unlocked { filter: blur(0); pointer-events: auto; opacity: 1; }
#dpp-success-msg { display: none; background: #eaffea; color: #2ecc71; padding: 15px; border-radius: 8px; font-weight: bold; text-align: center; border: 2px solid #2ecc71; margin-bottom: 15px; }

@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

/* Accordion FAQ Styles */
.faq-accordion { background: white; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px; overflow: hidden; transition: all 0.3s; }
.faq-accordion summary { padding: 15px; font-weight: bold; color: #333; background: #f9f9f9; cursor: pointer; outline: none; list-style: none; position: relative; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: '+'; position: absolute; right: 15px; font-size: 1.2rem; color: #888; }
.faq-accordion[open] summary::after { content: '-'; }
.faq-accordion .faq-answer { padding: 15px; border-top: 1px solid #eee; color: #555; line-height: 1.6; }
/* 🔥 DARK MODE STYLES 🔥 */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-theme .content-card, 
.dark-theme header, 
.dark-theme .sidebar, 
.dark-theme .answer-box, 
.dark-theme .dpp-gatekeeper {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    box-shadow: none;
}

.dark-theme h1, .dark-theme h2, .dark-theme h3 {
    color: #ffffff;
}

.dark-theme a.cta-btn {
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.dark-theme .faq-accordion {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.dark-theme .mcq-btn {
    background-color: #2d2d2d;
    color: #fff;
    border-color: #555;
}

.dark-theme .mcq-btn:hover {
    background-color: #444;
}
/* =========================================================
   SPECIAL CSS FOR NESTED ACCORDIONS, BOXES & BADGES
   ========================================================= */
.acc-main {
    background-color: var(--primary-color); color: white; border: none; border-radius: 8px;
    padding: 16px 20px; font-size: 1.2rem; font-weight: bold; width: 100%; text-align: left;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.2); margin-bottom: 0; z-index: 2; position: relative; margin-top: 15px;
}

.acc-panel-grid {
    display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
    padding: 25px 20px; border: 1px solid #e0e0e0; border-top: none; border-radius: 0 0 8px 8px;
    background: white; margin-bottom: 20px; margin-top: -5px; 
}

.stream-header { font-size: 1.2rem; color: #333; margin-top: 0; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }

.acc-inner {
    background-color: var(--primary-color); color: white; border: none; border-radius: 6px;
    padding: 12px 15px; font-size: 1.05rem; font-weight: bold; width: 100%; text-align: left;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; transition: background-color 0.2s;
}
.acc-inner:hover { background-color: #357abd; }

.acc-inner-panel {
    display: none; padding: 15px; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 15px; background: #fafcff; 
}

.ex-card {
    display: flex; justify-content: space-between; align-items: center; background: white;
    border: 1px solid #eaeaea; padding: 12px 15px; border-radius: 6px; text-decoration: none;
    color: #555; margin-bottom: 8px; transition: all 0.2s ease; font-size: 0.95rem; font-weight: 500;
}
.ex-card:hover { border-color: var(--primary-color); transform: translateX(4px); box-shadow: 0 2px 5px rgba(0,0,0,0.05); color: var(--primary-color); }

.ex-title { font-size: 0.9rem; color: #666; font-weight: bold; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

.inner-acc-btn { padding: 12px 15px; font-size: 1rem; margin-top: 5px; margin-bottom: 0px; background-color: #f1f5f9; color:#333; border-left: 4px solid var(--primary-color);}
.inner-content { border: none; box-shadow: none; padding: 10px 0 10px 15px; margin-bottom: 0; background: transparent; }
/* =========================================================
   PDF VIEWER STYLES (BYJU'S STYLE)
   ========================================================= */
.pdf-container {
    width: 100%;
    background-color: #f1f5f9;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.pdf-viewer-frame {
    width: 100%;
    height: 75vh; /* Covers 75% of screen height */
    min-height: 600px;
    border: none;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .pdf-viewer-frame {
        height: 60vh;
        min-height: 400px;
    }
}
/* =========================================================
   CUET SYLLABUS TABLE STYLES (MATCHING EXACT IMAGE)
   ========================================================= */
.cuet-title-container {
    text-align: center;
    margin: 2rem 0;
}

.cuet-main-title {
    font-size: 2rem;
    color: #000;
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
    border: none;
}

/* The Orange Underline */
.cuet-main-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: #f5a623;
    bottom: -10px;
    left: 20%;
}

.cuet-table-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Dark Grey Top Bar */
.cuet-header-bar {
    background-color: #4a4a4a;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 20px;
}

.cuet-table {
    width: 100%;
    border-collapse: collapse;
}

/* Orange Column Headers */
.cuet-table th {
    background-color: #f5a623;
    color: #000;
    font-weight: bold;
    text-align: left;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
}

.cuet-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.95rem;
}

/* Make links fill the cell and look normal */
.cuet-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.cuet-link:hover {
    text-decoration: underline;
}

/* Red Subject Name */
.cuet-subject-name {
    color: #d0021b;
    font-weight: bold;
}
/* =========================================
   LOCKED PDF UI (BLUR EFFECT)
   ========================================= */
.locked-pdf-wrapper {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #fff;
    border: 1px solid #ddd;
}

.pdf-preview-img {
    width: 100%;
    height: auto;
    display: block;
    /* Yeh property image ke neeche wale hisse ko blur karti hai */
    filter: blur(2px); 
    opacity: 0.8;
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; /* Niche se 70% hissa cover karega */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.4) 60%, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lock-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); /* Apple style glass effect */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
/* =========================================
   🌙 EXAMSPARK DARK MODE 
   ========================================= */
body.dark-mode {
    --bg-color: #121212;
    --text-dark: #e0e0e0;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* Make Cards and Header Dark */
body.dark-mode header,
body.dark-mode .content-card,
body.dark-mode .sidebar,
body.dark-mode .contact-card,
body.dark-mode .success-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
    box-shadow: 0 4px 15px rgba(255,255,255,0.02) !important;
}

/* Fix text colors inside dark mode */
body.dark-mode p, 
body.dark-mode li, 
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode label {
    color: #e0e0e0 !important;
}

/* Forms in Dark Mode */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background: #2d2d2d;
    color: white;
    border: 1px solid #444;
}

/* Floating Toggle Button Style */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Kept on left so it doesn't clash with WhatsApp/Chat widgets */
    background: #2c3e50;
    color: #f1c40f;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.3s ease;
}
#theme-toggle:hover {
    transform: scale(1.1);
}
/* =========================================
   🌙 EXAMSPARK DARK MODE (FINAL MASTER VERSION)
   ========================================= */
body.dark-mode {
    --bg-color: #121212;
    --text-dark: #e0e0e0;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* Core Layout Elements */
body.dark-mode header,
body.dark-mode .content-card,
body.dark-mode .contact-card,
body.dark-mode .success-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
    box-shadow: none !important;
}

/* ALL Specific Boxes (Answers, Sidebars, Ads, DPP, Social) */
body.dark-mode .answer-box,
body.dark-mode .sidebar-widget,
body.dark-mode .ad-placeholder,
body.dark-mode .concept-list li,
body.dark-mode .info-box,
body.dark-mode .dpp-wrapper,
body.dark-mode .dpp-gatekeeper,
body.dark-mode .social-box {
    background-color: #262626 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
    box-shadow: none !important;
}

/* Social Box Special Gradient */
body.dark-mode .social-box {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a) !important;
}

/* Text Colors inside Boxes */
body.dark-mode .answer-box p,
body.dark-mode .answer-box li,
body.dark-mode .answer-box b,
body.dark-mode .answer-box strong,
body.dark-mode .social-box h3,
body.dark-mode .social-box p {
    color: #e0e0e0 !important;
}

/* General Text Fixes */
body.dark-mode p, 
body.dark-mode li, 
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode label {
    color: #e0e0e0 !important;
}
body.dark-mode .sidebar-widget h3 {
    color: #4A90E2 !important; /* ExamSpark Blue */
}

/* Forms */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background: #2d2d2d;
    color: white;
    border: 1px solid #444;
}

/* Floating Toggle Button */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #2c3e50;
    color: #f1c40f;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.3s ease;
}
#theme-toggle:hover {
    transform: scale(1.1);
}
body.dark-mode #ai-chat-container { background: #1e1e1e !important; border-color: #444 !important; }
body.dark-mode #ai-chat-messages { background: #121212 !important; }
/* ===== APP HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);

    position: sticky;
    top: 0;
    z-index: 10000;

    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.left, .right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo */
.app-logo {
    height: 40px;
}

/* Coin inside navbar */
#coin-navbar {
    background: #fff;
    border: 2px solid #f39c12;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

/* Hamburger */
.menu-toggle {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* =========================================
   📱 FINAL MOBILE MENU FIX (TRANSFORM METHOD)
   ========================================= */
@media (max-width: 768px) {
    /* Screen ko right side stretch hone se rokne ke liye */
    body {
        overflow-x: hidden !important; 
    }

    /* Menu Styling & Hide Logic */
    .nav-links {
        position: fixed !important;
        top: 0;
        right: 0 !important; /* Isko 0 rakho */
        transform: translateX(100%) !important; /* Ye magic trick hai - isse menu 100% bahar push ho jayega */
        height: 100vh;
        width: 280px;
        background: white !important;
        flex-direction: column;
        padding: 80px 20px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        transition: transform 0.4s ease-in-out !important; /* Smooth animation */
        z-index: 99999 !important;
        display: flex !important; 
    }

    /* Jab 3-lines pe click hoga, menu wapas apni jagah aayega */
    .nav-links.active {
        transform: translateX(0) !important; 
    }

    /* Dashboard Grid Fix */
    .dashboard-container, .main-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: 10px !important;
    }
    
    .sidebar {
        margin-bottom: 20px;
    }

    /* Black Overlay Logic */
    #menu-overlay {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6) !important;
        display: none !important;
        z-index: 99998 !important;
    }

    #menu-overlay.active {
        display: block !important;
    }
}
/* ================= AI CHAT & TOGGLE BUTTONS FIX (FINAL) ================= */

/* Dark Mode Button (Right Side Fix) */
#theme-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important; 
    left: auto !important; 
    width: 45px !important;
    height: 45px !important;
    z-index: 10005 !important;
}

/* AI Chat Bubble (Left Side Fix) */
#ai-chat-bubble {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important; 
    right: auto !important; 
    width: 50px !important;
    height: 50px !important;
    z-index: 10005 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

/* AI Chat Box - Pura Layout Fix */
#ai-chat-container {
    position: fixed !important;
    bottom: 80px !important; 
    left: 20px !important; /* Ab ye sirf left side rahega */
    right: auto !important; /* Right se hata diya taaki stretch na ho */
    width: 350px !important; /* Fixed standard width */
    max-width: calc(100vw - 40px) !important; /* Mobile par screen se bahar na jaye */
    height: 450px !important;
    max-height: 70vh !important; 
    background: white !important;
    border-radius: 15px !important;
    z-index: 10006 !important;
    display: none; /* JS isko flex banayega */
    flex-direction: column !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    overflow: hidden !important;
}

/* Input Bar Fix (Taaki bahar na nikle) */
#ai-chat-container div[style*="border-top"] {
    display: flex !important;
    padding: 10px !important;
    gap: 5px !important;
    background: white !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#ai-user-input {
    flex: 1 !important;
    min-width: 0 !important; 
    width: 100% !important;
}
/* ================= SEARCH WIDGET STYLES ================= */
.search-toggle {
    transition: transform 0.2s ease;
}
.search-toggle:hover {
    transform: scale(1.15);
}

#search-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100000 !important; /* Sabse upar */
    display: flex;
    justify-content: center;
    padding-top: 15vh; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

#search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    display: flex;
    gap: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    height: 55px; 
}

#search-input {
    flex: 1;
    padding: 0 20px;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.search-container button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.search-container button:hover {
    background: #357abd;
}

.close-search {
    position: absolute;
    right: 0;
    top: -45px;
    background: none !important;
    color: #333 !important;
    font-size: 28px !important;
    padding: 0 !important;
}

/* 🌙 Dark Mode Support for Search */
body.dark-mode #search-overlay {
    background: rgba(18, 18, 18, 0.95);
}
body.dark-mode .close-search {
    color: #fff !important;
}
body.dark-mode #search-input {
    background: #2d2d2d;
    color: white;
    border-color: #444;
}
/* =========================================
   📱 ULTIMATE MOBILE MENU FIX (ZOOM/SHRINK ISSUE)
   ========================================= */

/* Yeh sabse zaroori hai - isse page left mein shrink nahi hoga */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed !important;
        top: 0;
        right: 0 !important; /* Ise 0 hi rehne do */
        transform: translateX(110%) !important; /* Ye magic trick hai! Ise browser zoom out nahi karega */
        height: 100vh;
        width: 280px;
        background: white !important;
        flex-direction: column;
        padding: 80px 20px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Smooth animation */
        z-index: 99999 !important;
        display: flex !important; 
    }

    /* Jab 3-lines par click hoga tab ye chalega */
    .nav-links.active {
        transform: translateX(0) !important; 
    }

    #menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6); /* Thoda dark background */
        display: none;
        z-index: 99998;
    }

    #menu-overlay.active {
        display: block !important;
    }
}
/* =========================================
   🚀 ZERO BUILD HEADER & MENU (BUG-FREE)
   ========================================= */

/* Desktop Header Layout */
#es-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; background: white; border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 10000; height: 60px;
}
.es-left { display: flex; align-items: center; }
.es-right { display: flex; align-items: center; gap: 15px; }

/* Desktop Nav Links */
#es-nav { display: flex; align-items: center; gap: 20px; }
#es-nav a { text-decoration: none; color: #333; font-size: 15px; font-weight: 500; }
#es-nav .es-close { display: none; } /* Close button PC par hide rahega */

#es-hamburger { display: none; } /* Hamburger PC par hide rahega */
#es-overlay { display: none; } 

/* Mobile Layout */
@media (max-width: 768px) {
    /* 1. Page Shrink hone se rokne ka permanent fix */
    html, body { overflow-x: hidden !important; width: 100% !important; margin: 0; padding: 0; }

    /* 2. Hamburger Design */
    #es-hamburger {
        display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px;
    }
    #es-hamburger .bar { width: 25px; height: 3px; background: #333; border-radius: 2px; }

    /* 3. The Slide-in Menu */
    #es-nav {
        position: fixed; top: 0; right: -300px; /* Screen se bilkul bahar safe distance par */
        width: 250px; height: 100vh; background: white;
        flex-direction: column; align-items: flex-start; padding: 70px 20px 20px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease-in-out; z-index: 10002;
    }
    
    /* Jab menu khulega */
    #es-nav.open { right: 0; } 

    #es-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }

    /* Naya Close Button Menu ke andar */
    #es-nav .es-close {
        display: block; position: absolute; top: 15px; right: 20px;
        font-size: 24px; color: #333; cursor: pointer; font-weight: bold;
    }

    /* 4. Black Overlay */
    #es-overlay {
        display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.5); z-index: 10001;
        opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
    }
    #es-overlay.open { opacity: 1; visibility: visible; }
}

/* Dark Mode Fixes */
body.dark-mode #es-header, body.dark-mode #es-nav { background: #1e1e1e; border-color: #333; }
body.dark-mode #es-nav a, body.dark-mode #es-nav .es-close { color: #e0e0e0; border-color: #333; }
body.dark-mode #es-hamburger .bar { background: #e0e0e0; }
/* =========================================
   🛑 WHITE SPACE & HORIZONTAL SCROLL FIX
   ========================================= */

html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative; /* Layout ko screen ke andar lock rakhta hai */
}

/* Ensure ki koi bhi frame, image ya container screen faad kar bahar na nikle */
* {
    box-sizing: border-box !important;
}

img, video, iframe, .container {
    max-width: 100% !important;
}

/* Footer ko strictly screen width ke andar rakhne ke liye */
footer {
    width: 100% !important;
    overflow-x: hidden !important;
}

/* =========================================================
   EXAMSPARK PREMIUM SAAS REFRESH
   Scoped as the final layer so existing pages upgrade together.
   ========================================================= */

:root {
    --primary-color: #2563eb;
    --accent-color: #f97316;
    --bg-color: #f6f8fb;
    --text-dark: #111827;
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line: #e5e7eb;
    --line-strong: #d8dee8;
    --brand-navy: #0f172a;
    --brand-teal: #0f766e;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

html {
    scroll-behavior: smooth;
    background: var(--bg-color);
}

body {
    background:
        linear-gradient(180deg, #eef4ff 0, rgba(246, 248, 251, 0) 360px),
        var(--bg-color);
    color: var(--text-dark);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(37, 99, 235, 0.18);
    color: var(--brand-navy);
}

a {
    color: var(--primary-color);
    text-underline-offset: 3px;
}

a:hover {
    color: #1d4ed8;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

header,
#es-header {
    min-height: 68px;
    height: auto;
    padding: 12px clamp(16px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.86) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.logo-container,
.left,
.es-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img,
.app-logo {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--brand-navy) !important;
    font-size: 1.18rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
}

.nav-links,
#es-nav {
    align-items: center;
    gap: 8px;
}

.nav-links a,
#es-nav a {
    color: #334155 !important;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
#es-nav a:hover {
    background: #eef4ff;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

#es-nav .es-auth-link,
.nav-links .es-auth-link {
    background: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

#es-nav .es-auth-link:hover,
.nav-links .es-auth-link:hover {
    background: #1d4ed8;
    color: #ffffff !important;
}

#coin-navbar {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    box-shadow: var(--shadow-xs);
}

.container,
.main-layout,
.dashboard-container {
    width: calc(100% - 32px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    padding: clamp(32px, 5vw, 72px) 0;
}

.main-layout,
.dashboard-container {
    padding: 0;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 28px auto 18px;
    padding: clamp(48px, 8vw, 92px) clamp(22px, 5vw, 72px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.94) 58%, rgba(15, 118, 110, 0.92));
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.23);
    text-align: left;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.35), transparent 72%);
}

.hero::after {
    display: none;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 18px !important;
    color: #ffffff !important;
    font-size: clamp(2.4rem, 5vw, 4.8rem) !important;
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: none;
}

.hero p {
    max-width: 760px !important;
    margin: 0 !important;
    color: #dbeafe !important;
    font-size: clamp(1rem, 1.7vw, 1.22rem) !important;
    line-height: 1.75 !important;
}

.hero .search-box {
    margin: 34px 0 0 !important;
    max-width: 680px !important;
    display: flex;
    gap: 12px !important;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.hero .search-box input {
    min-width: 0;
    min-height: 50px;
    padding: 0 20px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: var(--brand-navy);
    box-shadow: none !important;
}

.hero .search-box input::placeholder {
    color: #94a3b8;
}

.hero .search-box button {
    min-height: 50px;
    padding: 0 24px !important;
    border-radius: 999px !important;
    background: #f97316 !important;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.hero .search-box button:hover {
    background: #ea580c !important;
    transform: translateY(-1px);
}

.section-title,
h1,
h2,
h3 {
    letter-spacing: 0;
}

h1 {
    color: var(--brand-navy);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 900;
}

h2,
.section-title {
    color: var(--brand-navy);
    border-bottom: 0 !important;
    padding-bottom: 0;
    font-weight: 850;
    line-height: 1.18;
}

.section-title {
    display: block !important;
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.section-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

h3 {
    color: #1f2937;
    font-weight: 800;
}

p,
li {
    color: #475569;
}

.class-grid,
.grid-container,
.chapter-grid,
.features-grid,
.subject-grid {
    gap: 18px;
}

.class-card,
.card,
.chapter-card,
.note-card,
.feature-card,
.content-card,
.sidebar-widget,
.content-area,
.story-section,
.dpp-wrapper,
.social-box,
.accordion-content,
.faq-accordion,
.cuet-table-wrapper,
.pdf-container {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.class-card,
.card,
.chapter-card,
.note-card {
    min-height: 150px;
    padding: 24px;
    text-align: left;
    justify-content: flex-start;
    border-bottom: 1px solid var(--line) !important;
    transform: translateZ(0);
}

.class-card::before,
.note-card::before,
.card::before,
.chapter-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--brand-teal));
}

.class-card::after,
.note-card::after,
.card::after,
.chapter-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 42%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.class-card:hover,
.card:hover,
.chapter-card:hover,
.note-card:hover,
.feature-card:hover {
    border-color: #bfdbfe !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.class-card:hover::after,
.note-card:hover::after,
.card:hover::after,
.chapter-card:hover::after {
    opacity: 1;
}

.class-card h3,
.card h4,
.chapter-card h4,
.note-card h4 {
    color: var(--brand-navy) !important;
    font-size: 1.16rem;
    line-height: 1.25;
    margin: 0 0 8px !important;
}

.class-card p,
.card p,
.chapter-card span,
.note-card p {
    color: var(--text-muted) !important;
    margin: 0.35rem 0 0 !important;
}

.feature-card {
    border-top: 1px solid var(--line);
    text-align: left;
}

.feature-icon,
.note-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: #eef4ff;
    color: var(--primary-color);
    font-size: 1.65rem;
}

.content-card {
    padding: clamp(24px, 4vw, 44px);
    border-top: 1px solid var(--line);
}

.breadcrumbs {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.answer-box,
.concept-list li,
.acc-inner-panel,
.inner-content,
.vault-empty {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.section-label,
.badge,
.pyq-tag,
.level-badge {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0;
}

.badge.ready {
    background: #dcfce7;
    color: #166534;
}

.badge.hot,
.pyq-tag {
    background: #ffedd5;
    color: #9a3412;
}

.badge.soon {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.cta-btn,
.daily-btn,
.subject-btn,
.back-btn,
.search-container button,
.accordion-btn,
.acc-main,
.acc-inner,
.mcq-btn,
.vault-item a {
    border-radius: var(--radius-md);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta-btn,
.daily-btn,
.search-container button {
    background: var(--primary-color);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.cta-btn:hover,
.daily-btn:hover:not(:disabled),
.search-container button:hover {
    background: #1d4ed8;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
    transform: translateY(-2px);
}

.subject-btn,
.back-btn {
    background: #eef4ff;
    border: 1px solid #dbeafe;
    color: #1e3a8a;
}

.subject-btn:hover,
.subject-btn.active,
.back-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.accordion-btn,
.acc-main,
.acc-inner {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary-color);
    color: var(--brand-navy);
    box-shadow: var(--shadow-xs);
}

.accordion-btn:hover,
.accordion-btn.active,
.acc-main:hover,
.acc-inner:hover {
    background: #eef4ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.faq-accordion {
    overflow: hidden;
}

.faq-accordion summary {
    background: #ffffff;
    color: var(--brand-navy);
    padding: 18px 22px;
}

.faq-accordion .faq-answer {
    background: var(--surface-soft);
    color: #475569;
    padding: 18px 22px;
}

.sidebar-widget {
    top: 92px;
}

.social-box {
    border-left: 0;
    padding: clamp(24px, 4vw, 36px);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08)),
        #ffffff;
}

.social-buttons a {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    color: #94a3b8;
    border-top-color: rgba(148, 163, 184, 0.18);
}

#search-overlay {
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(18px);
}

#search-input,
input,
select,
textarea {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--brand-navy);
}

#search-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus);
}

.ad-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    color: #94a3b8;
    box-shadow: none;
}

.word-table,
.cuet-table {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.word-table th,
.cuet-table th {
    background: var(--brand-navy);
    color: #ffffff;
}

.word-table td,
.cuet-table td {
    border-color: var(--line);
}

.pdf-container {
    background: #eef4ff;
    border-color: #dbeafe;
}

body.dark-mode,
body.dark-theme {
    --bg-color: #0b1120;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --surface: #111827;
    --surface-soft: #0f172a;
    --line: #263244;
    --line-strong: #334155;
    background:
        linear-gradient(180deg, rgba(30, 64, 175, 0.24) 0, rgba(11, 17, 32, 0) 340px),
        #0b1120;
    color: #e5e7eb;
}

body.dark-mode header,
body.dark-mode #es-header,
body.dark-mode #es-nav,
body.dark-theme header,
body.dark-theme #es-header,
body.dark-theme #es-nav {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(51, 65, 85, 0.9) !important;
}

body.dark-mode .class-card,
body.dark-mode .card,
body.dark-mode .chapter-card,
body.dark-mode .note-card,
body.dark-mode .feature-card,
body.dark-mode .content-card,
body.dark-mode .sidebar-widget,
body.dark-mode .content-area,
body.dark-mode .story-section,
body.dark-mode .dpp-wrapper,
body.dark-mode .social-box,
body.dark-mode .accordion-content,
body.dark-mode .faq-accordion,
body.dark-theme .class-card,
body.dark-theme .card,
body.dark-theme .chapter-card,
body.dark-theme .note-card,
body.dark-theme .feature-card,
body.dark-theme .content-card,
body.dark-theme .sidebar-widget,
body.dark-theme .content-area,
body.dark-theme .story-section,
body.dark-theme .dpp-wrapper,
body.dark-theme .social-box,
body.dark-theme .accordion-content,
body.dark-theme .faq-accordion {
    background: rgba(17, 24, 39, 0.94);
    border-color: var(--line);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .section-title,
body.dark-mode .class-card h3,
body.dark-mode .card h4,
body.dark-mode .chapter-card h4,
body.dark-mode .note-card h4,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme .section-title,
body.dark-theme .class-card h3,
body.dark-theme .card h4,
body.dark-theme .chapter-card h4,
body.dark-theme .note-card h4 {
    color: #f8fafc !important;
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode .class-card p,
body.dark-mode .card p,
body.dark-mode .chapter-card span,
body.dark-mode .note-card p,
body.dark-theme p,
body.dark-theme li,
body.dark-theme .class-card p,
body.dark-theme .card p,
body.dark-theme .chapter-card span,
body.dark-theme .note-card p {
    color: #cbd5e1 !important;
}

body.dark-mode .nav-links a,
body.dark-mode #es-nav a,
body.dark-theme .nav-links a,
body.dark-theme #es-nav a {
    color: #cbd5e1 !important;
}

body.dark-mode .nav-links a:hover,
body.dark-mode #es-nav a:hover,
body.dark-theme .nav-links a:hover,
body.dark-theme #es-nav a:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode #search-input,
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme #search-input {
    background: #111827;
    border-color: #334155;
    color: #f8fafc;
}

@media (max-width: 900px) {
    .main-layout,
    .dashboard-container {
        width: calc(100% - 24px);
        max-width: 1180px;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .sidebar-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    header,
    #es-header {
        min-height: 62px;
        padding: 10px 14px;
    }

    .container {
        width: calc(100% - 24px);
        max-width: 1180px;
        padding: 30px 0;
    }

    .hero {
        width: calc(100% - 24px);
        max-width: 1180px;
        margin-top: 18px;
        padding: 38px 20px;
        border-radius: var(--radius-lg);
        text-align: left;
    }

    .hero h1,
    .hero p,
    .hero .search-box,
    .hero > div {
        max-width: 100% !important;
    }

    .hero .search-box {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius-lg);
        padding: 8px;
    }

    .hero .search-box input,
    .hero .search-box button {
        width: 100%;
    }

    .class-grid,
    .grid-container,
    .chapter-grid,
    .features-grid,
    .subject-grid {
        grid-template-columns: 1fr !important;
    }

    .content-card,
    .story-section,
    .dpp-wrapper,
    .social-box {
        padding: 22px;
    }

    .nav-links {
        background: #ffffff !important;
        border-left: 1px solid var(--line);
        box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
    }

    .nav-links a {
        width: 100%;
        border-radius: var(--radius-md);
        padding: 13px 14px;
    }

    body.dark-mode .nav-links,
    body.dark-theme .nav-links {
        background: #111827 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   PREMIUM COMMUNITY / SOCIAL MODULE
   ========================================================= */

.social-box {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.35fr);
    gap: clamp(24px, 4vw, 54px);
    align-items: center;
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: clamp(36px, 6vw, 76px) auto;
    padding: clamp(28px, 5vw, 54px);
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 16px;
    background:
        radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.14), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(15, 118, 110, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 56%, #eefdf9 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.10);
}

.social-box::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    pointer-events: none;
}

.social-copy {
    max-width: 430px;
}

.social-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 11px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.social-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.social-box h3 {
    margin: 0 0 12px;
    border: 0;
    color: var(--brand-navy);
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 1.03;
    font-weight: 920;
    letter-spacing: 0;
}

.social-box p {
    max-width: 42rem;
    margin: 0;
    color: #526173;
    font-size: 1.02rem;
    line-height: 1.72;
}

.social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.social-proof span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: var(--shadow-xs);
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.social-buttons a.social-channel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    margin: 0;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand-navy);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(10px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.social-buttons a.social-channel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background: var(--channel-color, var(--primary-color));
    transition: opacity 0.22s ease;
}

.social-buttons a.social-channel::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.34;
    transform: rotate(45deg);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.social-buttons a.social-channel:hover {
    border-color: color-mix(in srgb, var(--channel-color, var(--primary-color)) 38%, #ffffff);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.13);
    color: var(--brand-navy);
    transform: translateY(-4px);
}

.social-buttons a.social-channel:hover::before {
    opacity: 0.17;
}

.social-buttons a.social-channel:hover::after {
    opacity: 0.7;
    transform: translateX(3px) rotate(45deg);
}

.social-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: var(--channel-color, var(--primary-color));
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 950;
    letter-spacing: 0;
    box-shadow: 0 14px 26px color-mix(in srgb, var(--channel-color, var(--primary-color)) 28%, transparent);
}

.social-channel span:last-child {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
}

.social-channel strong {
    color: var(--brand-navy);
    font-size: 1.05rem;
    line-height: 1.1;
}

.social-channel small {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.insta-btn {
    --channel-color: #e11d48;
}

.yt-btn {
    --channel-color: #dc2626;
}

.telegram-btn {
    --channel-color: #0284c7;
}

.whatsapp-btn {
    --channel-color: #16a34a;
}

body.dark-mode .social-box,
body.dark-theme .social-box {
    border-color: rgba(51, 65, 85, 0.92);
    background:
        radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.24), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(15, 118, 110, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96));
}

body.dark-mode .social-eyebrow,
body.dark-theme .social-eyebrow {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(96, 165, 250, 0.34);
    color: #bfdbfe;
}

body.dark-mode .social-box p,
body.dark-theme .social-box p {
    color: #cbd5e1 !important;
}

body.dark-mode .social-proof span,
body.dark-theme .social-proof span,
body.dark-mode .social-buttons a.social-channel,
body.dark-theme .social-buttons a.social-channel {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(51, 65, 85, 0.9);
}

body.dark-mode .social-channel strong,
body.dark-theme .social-channel strong {
    color: #f8fafc;
}

body.dark-mode .social-channel small,
body.dark-theme .social-channel small {
    color: #94a3b8;
}

@media (max-width: 900px) {
    .social-box {
        grid-template-columns: 1fr;
    }

    .social-copy {
        max-width: 680px;
    }
}

@media (max-width: 640px) {
    .social-box {
        width: calc(100% - 24px);
        padding: 22px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .social-buttons a.social-channel {
        min-height: 82px;
        padding: 15px;
    }
}

/* =========================================================
   CLASS 9/10 ACADEMIC DASHBOARD PARITY
   style.css loads last on class9.html/class10.html, so these
   rules keep those dashboards aligned with class9and10style.css.
   ========================================================= */

.dashboard-container {
    width: calc(100% - 32px);
    max-width: 1180px;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin: clamp(24px, 4vw, 46px) auto;
    padding: 0;
}

.sidebar {
    position: sticky;
    top: 92px;
    height: fit-content;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.sidebar h3 {
    margin: 0 0 14px;
    color: var(--brand-navy);
    border: 0;
    font-size: 1rem;
    font-weight: 900;
}

.subject-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.subject-list li {
    margin: 0;
}

.subject-btn {
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 800;
}

.subject-btn:hover {
    background: #eef4ff;
    border-color: #dbeafe;
    color: #1d4ed8;
    transform: translateX(2px);
}

.subject-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #0f766e);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.content-area {
    min-width: 0;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.welcome-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 28px;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.94) 58%, rgba(15, 118, 110, 0.92));
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.welcome-banner::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.38), transparent 75%);
}

.welcome-banner h2 {
    margin: 0 0 10px;
    border: 0;
    color: #ffffff;
    font-size: clamp(1.85rem, 4vw, 3.35rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: 0;
}

.welcome-banner p {
    max-width: 680px;
    margin: 0;
    color: #dbeafe !important;
    font-size: 1.02rem;
    line-height: 1.7;
}

.subject-section {
    display: none;
}

.subject-section.active {
    display: block;
}

.subject-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 34px 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line) !important;
    color: var(--brand-navy);
    font-size: 1.25rem;
    font-weight: 900;
}

.subject-section .section-header::before {
    content: "";
    width: 10px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

body.dark-mode .sidebar,
body.dark-theme .sidebar,
body.dark-mode .content-area,
body.dark-theme .content-area {
    background: rgba(17, 24, 39, 0.94);
    border-color: var(--line);
}

@media (max-width: 900px) {
    .dashboard-container {
        width: calc(100% - 24px);
        grid-template-columns: 1fr !important;
    }

    .sidebar {
        position: static;
    }
}

/* =========================================================
   PREMIUM HUB PAGES: NOTES, CUET, RESOURCES
   ========================================================= */

.page-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 clamp(28px, 4vw, 44px);
    padding: clamp(42px, 7vw, 78px) clamp(24px, 5vw, 64px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.94) 58%, rgba(15, 118, 110, 0.92));
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.20);
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.38), transparent 76%);
}

.page-header h1 {
    max-width: 820px;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.page-header p {
    max-width: 780px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.72;
}

.page-header .cta-btn {
    margin: 0;
    background: #f97316 !important;
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.page-header .cta-btn:hover {
    background: #ea580c !important;
}

.resource-section {
    margin: clamp(28px, 5vw, 56px) 0;
    padding: clamp(22px, 4vw, 34px) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.resource-section > h2,
.resource-section .section-title {
    margin-top: 0;
}

.acc-main.toggle-btn,
.acc-inner.toggle-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    border: 1px solid var(--line) !important;
    color: var(--brand-navy) !important;
    text-align: left;
    box-shadow: var(--shadow-xs);
}

.acc-main.toggle-btn {
    margin: 14px 0 0;
    padding: 18px 20px;
    border-left: 4px solid var(--primary-color) !important;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(15, 118, 110, 0.08)),
        #ffffff !important;
    font-size: 1.05rem;
}

.acc-inner.toggle-btn {
    margin: 0 0 10px;
    padding: 13px 15px;
    border-left: 4px solid var(--brand-teal) !important;
    border-radius: var(--radius-md);
    background: #f8fafc !important;
    font-size: 0.96rem;
}

.acc-main.toggle-btn:hover,
.acc-inner.toggle-btn:hover {
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.acc-main .icon,
.acc-inner .icon {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary-color);
    font-weight: 900;
}

.acc-panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 0 0 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.96));
    box-shadow: var(--shadow-xs);
}

.acc-panel-grid > div {
    min-width: 0;
}

.stream-header {
    margin: 0 0 14px;
    color: var(--brand-navy);
    font-size: 1rem;
    font-weight: 900;
}

.acc-inner-panel {
    margin: -2px 0 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.ex-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--brand-navy);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ex-card:hover {
    border-color: #bfdbfe;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}

.ex-title {
    min-width: 0;
    color: inherit;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.35;
}

.top-banner-ad,
.mid-content-ad {
    min-height: 120px;
}

.es-footer {
    position: relative;
    overflow: hidden;
    margin-top: clamp(60px, 8vw, 100px);
    padding: clamp(42px, 6vw, 72px) 0 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background:
        radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.20), transparent 32%),
        radial-gradient(circle at 100% 100%, rgba(15, 118, 110, 0.20), transparent 32%),
        #0b1120;
    color: #e5e7eb;
}

.es-footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) repeat(4, minmax(150px, 0.75fr));
    gap: clamp(24px, 4vw, 44px);
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 0 auto;
}

.es-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 950;
}

.es-footer-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
}

.es-footer-brand p {
    max-width: 380px;
    margin: 16px 0 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.es-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.es-footer-badges span {
    padding: 6px 10px;
    border: 1px solid rgba(191, 219, 254, 0.22);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 850;
}

.es-footer-col {
    display: grid;
    align-content: start;
    gap: 9px;
}

.es-footer-col h4 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.es-footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.es-footer-col a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.es-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 42px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 0.88rem;
}

body.dark-mode .resource-section,
body.dark-theme .resource-section,
body.dark-mode .acc-panel-grid,
body.dark-theme .acc-panel-grid,
body.dark-mode .acc-inner-panel,
body.dark-theme .acc-inner-panel,
body.dark-mode .ex-card,
body.dark-theme .ex-card,
body.dark-mode .acc-main.toggle-btn,
body.dark-theme .acc-main.toggle-btn,
body.dark-mode .acc-inner.toggle-btn,
body.dark-theme .acc-inner.toggle-btn {
    background: rgba(17, 24, 39, 0.94) !important;
    border-color: #263244 !important;
}

body.dark-mode .acc-main.toggle-btn,
body.dark-theme .acc-main.toggle-btn,
body.dark-mode .acc-inner.toggle-btn,
body.dark-theme .acc-inner.toggle-btn,
body.dark-mode .stream-header,
body.dark-theme .stream-header,
body.dark-mode .ex-card,
body.dark-theme .ex-card {
    color: #f8fafc !important;
}

@media (max-width: 1000px) {
    .es-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .es-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 34px 20px;
    }

    .resource-section {
        padding: 18px !important;
    }

    .acc-panel-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .es-footer-inner {
        grid-template-columns: 1fr;
        width: calc(100% - 24px);
    }

    .es-footer-bottom {
        width: calc(100% - 24px);
        flex-direction: column;
    }
}

/* =========================================================
   GLOBAL HEADER SEARCH
   ========================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#es-header {
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

#es-header *,
#es-header *::before,
#es-header *::after {
    box-sizing: border-box;
}

#es-header .es-left {
    flex: 0 0 auto;
}

.es-site-search {
    position: relative;
    flex: 1 1 360px;
    max-width: 520px;
    min-width: 220px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-xs);
}

.es-site-search input {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--brand-navy);
    font-size: 0.94rem;
    outline: 0;
    box-shadow: none;
}

.es-site-search input:focus {
    box-shadow: none;
}

.es-site-search input::placeholder {
    color: #94a3b8;
}

.es-site-search button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.20);
}

.es-site-search button:hover {
    background: #1d4ed8;
}

.es-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 10050;
    display: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.es-search-results.active {
    display: block;
}

.es-search-result {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border-bottom: 1px solid #eef2f7;
    color: var(--brand-navy);
    text-decoration: none;
}

.es-search-result:hover {
    background: #f8fbff;
    color: var(--brand-navy);
}

.es-search-result-title {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.25;
}

.es-search-result-desc {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.es-search-result-tag {
    justify-self: start;
    margin-top: 3px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 850;
}

.es-search-view-all,
.es-search-empty {
    display: block;
    padding: 13px 15px;
    background: #f8fafc;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
}

.es-search-empty {
    color: #64748b;
}

body.dark-mode .es-site-search,
body.dark-theme .es-site-search {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.86);
}

body.dark-mode .es-site-search input,
body.dark-theme .es-site-search input {
    color: #f8fafc;
}

body.dark-mode .es-search-results,
body.dark-theme .es-search-results {
    background: rgba(15, 23, 42, 0.98);
    border-color: #334155;
}

body.dark-mode .es-search-result,
body.dark-theme .es-search-result {
    border-bottom-color: #263244;
    color: #f8fafc;
}

body.dark-mode .es-search-result:hover,
body.dark-theme .es-search-result:hover,
body.dark-mode .es-search-view-all,
body.dark-theme .es-search-view-all,
body.dark-mode .es-search-empty,
body.dark-theme .es-search-empty {
    background: #111827;
}

@media (max-width: 1120px) {
    .es-site-search {
        max-width: none;
    }

    #es-nav {
        gap: 4px;
    }

    #es-nav a {
        padding-inline: 10px;
    }
}

@media (max-width: 768px) {
    #es-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .es-site-search {
        order: 3;
        flex: 0 0 calc(100vw - 40px);
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        min-width: 0;
    }

    .es-site-search button {
        padding-inline: 13px;
    }

    .es-search-results {
        position: fixed;
        top: 116px;
        left: 12px;
        right: 12px;
        max-height: min(68vh, 520px);
        overflow-y: auto;
    }
}

/* ================= NEET PDF MOCK HUB ================= */
.neet-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(20, 184, 166, 0.24), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #0f766e 100%) !important;
}

.neet-hero.biology-focus {
    background:
        radial-gradient(circle at 16% 18%, rgba(34, 197, 94, 0.28), transparent 34%),
        linear-gradient(135deg, #10251e 0%, #146c43 48%, #1d4ed8 100%) !important;
}

.compact-hero {
    padding-top: clamp(32px, 5vw, 56px) !important;
    padding-bottom: clamp(32px, 5vw, 56px) !important;
}

.neet-title-symbol {
    display: inline-grid;
    place-items: center;
    min-width: 58px;
    min-height: 58px;
    margin-right: 12px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 0.42em;
    vertical-align: middle;
}

.neet-stats-strip,
.neet-formula-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.neet-stats-strip > div,
.neet-formula-band > div {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow-xs);
}

.neet-stats-strip strong {
    display: block;
    color: var(--brand-navy);
    font-size: 2rem;
    line-height: 1;
}

.neet-stats-strip span,
.neet-formula-band p {
    color: var(--text-muted);
    margin: 6px 0 0;
}

.neet-formula-band strong {
    display: block;
    margin-top: 10px;
    color: var(--brand-navy);
}

.neet-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.neet-card-grid.long-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.neet-resource-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.neet-resource-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
}

.neet-resource-card h3 {
    margin: 0;
    border: 0;
    color: var(--brand-navy);
    font-size: 1.05rem;
    line-height: 1.28;
}

.neet-resource-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.neet-card-top,
.neet-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.neet-card-meta {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.neet-symbol {
    display: inline-grid;
    place-items: center;
    min-width: 48px;
    height: 42px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 950;
    letter-spacing: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.neet-symbol.big {
    min-width: 64px;
    height: 52px;
    background: #ecfdf5;
    color: #047857;
    font-size: 1.15rem;
}

.neet-chip {
    max-width: 145px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 900;
    text-align: right;
}

.neet-biology {
    border-left-color: #16a34a;
}

.neet-biology .neet-symbol {
    background: #ecfdf5;
    color: #047857;
}

.neet-physics {
    border-left-color: #2563eb;
}

.neet-chemistry {
    border-left-color: #f97316;
}

.neet-chemistry .neet-symbol {
    background: #fff7ed;
    color: #c2410c;
}

.neet-admissions {
    border-left-color: #7c3aed;
}

.neet-admissions .neet-symbol {
    background: #f5f3ff;
    color: #6d28d9;
}

.neet-grid-ad {
    grid-column: 1 / -1;
    min-height: 96px;
}

.neet-section-copy {
    max-width: 820px;
    color: var(--text-muted);
    margin: -6px 0 22px;
}

.neet-viewer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.neet-extracted-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.neet-extracted-content {
    min-width: 0;
}

.neet-content-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.neet-content-summary > div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.neet-content-summary strong {
    display: block;
    color: var(--brand-navy);
    font-size: 1.1rem;
    line-height: 1.2;
}

.neet-content-summary span {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.neet-download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.neet-download-panel h2 {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    color: var(--brand-navy);
    font-size: 1.25rem;
}

.neet-download-panel p {
    margin: 0;
    color: #475569;
}

.neet-download-price {
    display: inline-grid;
    place-items: center;
    min-width: 104px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 950;
    box-shadow: var(--shadow-xs);
}

.neet-download-btn {
    border: 0;
    cursor: pointer;
}

.neet-download-message {
    grid-column: 1 / -1;
    display: none;
    padding: 10px 12px;
    border-radius: 7px;
    font-weight: 800;
}

.neet-download-message.error,
.neet-download-message.success {
    display: block;
}

.neet-download-message.error {
    background: #fef2f2;
    color: #b91c1c;
}

.neet-download-message.success {
    background: #ecfdf5;
    color: #047857;
}

.neet-paper-gallery {
    display: grid;
    gap: 18px;
}

.neet-paper-sheet {
    margin: 0;
    padding: clamp(10px, 2vw, 16px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.neet-paper-sheet img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.neet-seo-notes {
    margin-top: 20px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.neet-seo-notes h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.neet-seo-notes ul {
    margin: 0;
    padding-left: 20px;
    color: #334155;
}

.neet-extracted-page {
    margin-bottom: 18px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.neet-page-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 900;
}

.neet-extracted-page h3 {
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    color: var(--brand-navy);
    font-size: 1.2rem;
}

.neet-extracted-page p {
    margin: 9px 0;
    color: #334155;
    line-height: 1.78;
}

.neet-topic-line {
    margin: 8px 0;
    padding: 10px 12px;
    border-left: 4px solid #16a34a;
    border-radius: 6px;
    background: #f0fdf4;
    color: #14532d;
    font-weight: 850;
}

.neet-question-block {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background: #f8fbff;
}

.neet-question-text {
    margin-top: 0 !important;
    color: var(--brand-navy) !important;
    font-weight: 850;
}

.neet-options {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.neet-options li {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2937;
}

.math-token {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: Cambria, "Times New Roman", serif;
    font-weight: 800;
}

.pdf-frame-shell {
    overflow: hidden;
    min-height: 78vh;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.pdf-frame-shell iframe {
    display: block;
    width: 100%;
    height: 78vh;
    border: 0;
}

.neet-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.neet-detail-row span {
    color: var(--text-muted);
}

.neet-related-list {
    display: grid;
    gap: 10px;
}

.neet-related-list a {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 750;
}

.neet-mini-symbol {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 34px;
    border-radius: 8px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 950;
}

body.dark-mode .neet-stats-strip > div,
body.dark-theme .neet-stats-strip > div,
body.dark-mode .neet-formula-band > div,
body.dark-theme .neet-formula-band > div,
body.dark-mode .neet-resource-card,
body.dark-theme .neet-resource-card,
body.dark-mode .pdf-frame-shell,
body.dark-theme .pdf-frame-shell,
body.dark-mode .neet-content-summary > div,
body.dark-theme .neet-content-summary > div,
body.dark-mode .neet-extracted-page,
body.dark-theme .neet-extracted-page,
body.dark-mode .neet-paper-sheet,
body.dark-theme .neet-paper-sheet,
body.dark-mode .neet-seo-notes,
body.dark-theme .neet-seo-notes {
    background: rgba(17, 24, 39, 0.94);
    border-color: #263244;
}

body.dark-mode .neet-resource-card h3,
body.dark-theme .neet-resource-card h3,
body.dark-mode .neet-stats-strip strong,
body.dark-theme .neet-stats-strip strong,
body.dark-mode .neet-formula-band strong,
body.dark-theme .neet-formula-band strong,
body.dark-mode .neet-related-list a,
body.dark-theme .neet-related-list a,
body.dark-mode .neet-content-summary strong,
body.dark-theme .neet-content-summary strong,
body.dark-mode .neet-extracted-page h3,
body.dark-theme .neet-extracted-page h3,
body.dark-mode .neet-question-text,
body.dark-theme .neet-question-text {
    color: #f8fafc;
}

body.dark-mode .neet-extracted-page p,
body.dark-theme .neet-extracted-page p,
body.dark-mode .neet-options li,
body.dark-theme .neet-options li {
    color: #cbd5e1;
}

body.dark-mode .neet-question-block,
body.dark-theme .neet-question-block,
body.dark-mode .neet-options li,
body.dark-theme .neet-options li {
    background: #111827;
    border-color: #263244;
}

@media (max-width: 640px) {
    .neet-download-panel {
        grid-template-columns: 1fr;
    }

    .neet-download-price {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .neet-viewer-layout {
        grid-template-columns: 1fr;
    }

    .neet-extracted-layout {
        grid-template-columns: 1fr;
    }

    .pdf-frame-shell,
    .pdf-frame-shell iframe {
        min-height: 70vh;
        height: 70vh;
    }
}
