<style>
        /* --- EXAMSPARK THEME CSS --- */
        :root {
            --primary-color: #4A90E2; 
            --accent-color: #FF6B6B;
            --bg-color: #F4F7F6;
            --text-dark: #333;
            --success-color: #2ecc71;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            color: var(--text-dark);
        }

        /* Navbar */
        header {
            background: white;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-dark);
            margin-left: 20px;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .nav-links a:hover { color: var(--primary-color); }

        /* Dashboard Container */
        .dashboard-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: 250px 1fr; /* Sidebar + Content */
            gap: 2rem;
        }

        @media (max-width: 768px) {
            .dashboard-container { grid-template-columns: 1fr; }
        }

        /* Sidebar Styles */
        .sidebar {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            height: fit-content;
        }

        .sidebar h3 { color: var(--text-dark); margin-top: 0; }
        
        .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;
        }

        /* Main Content Area */
        .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; }

        /* Chapter & Subject Grid */
        .grid-container, .chapter-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .card, .chapter-card {
            background: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 1.5rem;
            text-decoration: none;
            color: var(--text-dark);
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .card:hover, .chapter-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-color: var(--primary-color);
        }

        .card::before, .chapter-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: var(--primary-color);
        }

        .card h4, .chapter-card h4 { margin: 0; font-size: 1.1rem; }
        .card p, .chapter-card span { margin: 5px 0 0 0; font-size: 0.85rem; color: #777; }

        .badge {
            display: inline-block;
            padding: 4px 8px;
            font-size: 0.75rem;
            border-radius: 4px;
            margin-top: 10px;
            align-self: flex-start;
        }

        .badge.ready { background: #e8f5e9; color: var(--success-color); }
        .badge.soon { background: #fff3e0; color: #f57c00; }

        /* Section Display Toggles */
        .stream-view { display: none; }
        .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);
        }
        .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; }

        /* Social Box */
        .social-box {
            background: linear-gradient(135deg, #f9f9f9, #eef2f5);
            border-left: 5px solid #4A90E2;
            padding: 20px;
            border-radius: 10px;
            max-width: 1100px;
            margin: 25px auto;
            text-align: center;
        }

        .social-box h3 { margin-bottom: 5px; color: #333; }
        .social-box p { color: #666; font-size: 0.95rem; }
        .social-buttons { margin-top: 15px; }

        .social-buttons a {
            display: inline-block;
            margin: 8px;
            padding: 10px 15px;
            border-radius: 6px;
            text-decoration: none;
            color: white;
            font-weight: 500;
        }

        .insta-btn { background: linear-gradient(45deg, #e1306c, #fd1d1d, #fcb045); }
        .yt-btn { background: #ff0000; }
        .cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    margin: 10px 5px;
    font-weight: 500;
    transition: 0.2s;
}

.cta-btn:hover {
    background: #357ABD;
    transform: translateY(-2px);
}

        /* --- FIX FOR INJECTED GLOBAL HEADER --- */
#global-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-logo {
    height: 40px !important; 
    width: auto;
}

.left, .right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#coin-navbar {
    background: #fff;
    border: 2px solid #f39c12;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}
.dashboard-hero {
    background: linear-gradient(135deg, #030304, #7c3aed);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-hero h1 {
    margin: 0 0 10px;
    color: white;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: white;
    color: #4A90E2;
}

.btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}
/* 🔥 Engagement bar */
.engagement-bar {
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: space-between;
}

/* 🔥 Card upgrade */
.card, .chapter-card {
    border-radius: 12px;
    transition: all 0.25s ease;
}

.card:hover, .chapter-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 🔥 Hero polish */
.dashboard-hero {
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
    </style>