    :root {
        --bg-deep: #4F0D64;
        --bg-gradient: linear-gradient(135deg, #6A1B9A 0%, #4F0D64 100%);
        --accent-yellow: #F8D127;
        --accent-pink: #F1296B;
        --text-white: #ffffff;
        --text-gray: #e0d0f0;
        --surface-black: #1A0422;
        --glass-bg: rgba(255, 255, 255, 0.05);
        --glass-border: rgba(255, 255, 255, 0.1);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Outfit', 'Inter', sans-serif;
    }

    body {
        background: var(--bg-gradient);
        background-attachment: fixed;
        color: var(--text-white);
        line-height: 1.6;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* Typography */
    h1, h2, h3, h4 {
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .text-yellow { color: var(--accent-yellow); }
    .text-pink { color: var(--accent-pink); }
    .text-white { color: var(--text-white); }
    .text-gray { color: var(--text-gray); }

    .bg-pink { background: var(--accent-pink); }
    .bg-purple { background: var(--bg-deep); }

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        padding: 0.8rem 1.5rem;
        border-radius: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
        cursor: pointer;
        gap: 0.5rem;
        border: none;
    }

    .btn-primary {
        background: var(--accent-yellow);
        color: var(--surface-black);
    }

    .btn-primary:hover {
        background: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
    }

    .btn-outline {
        background: transparent;
        border: 2px solid var(--accent-yellow);
        color: var(--accent-yellow);
    }

    .btn-outline:hover {
        background: var(--accent-yellow);
        color: var(--surface-black);
    }

    /* Glassmorphism Classes */
    .glass {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        box-shadow: var(--glass-shadow);
    }

    /* Navigation Overhaul */
    nav {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        padding: 1.8rem 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .glass-nav {
        background: transparent;
    }

    nav.scrolled {
        padding: 1rem 0;
        background: rgba(45, 11, 78, 0.85); /* Deep Purple Scrolled */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .nav-links {
        display: flex;
        gap: 2.5rem;
        list-style: none;
        align-items: center;
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: var(--transition);
        position: relative;
        letter-spacing: 0.2px;
    }

    .nav-links a:hover {
        color: var(--accent-yellow);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-yellow);
        transition: var(--transition);
        border-radius: 10px;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    /* Nav Actions Styling */
    .nav-link-icon {
        color: #fff; /* Pure White */
        font-size: 1.1rem;
        transition: var(--transition);
        text-decoration: none;
        opacity: 0.9;
    }

    .nav-link-icon:hover {
        color: var(--accent-pink);
        transform: scale(1.1);
        opacity: 1;
    }

    .btn-nav-primary {
        background: #fbbf24;
        color: #2D0B4E;
        padding: 12px 28px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 0.9rem;
        text-decoration: none;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(251, 191, 36, 0.15);
    }

    .btn-nav-primary:hover {
        background: #fff;
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(251, 191, 36, 0.25);
    }

    .btn-dashboard {
        background: #fff; /* Pure White Button */
        color: #2D0B4E;   /* Deep Purple Text */
        padding: 10px 22px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 0.85rem;
        text-decoration: none;
        border: 1px solid #fff;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(255,255,255,0.1);
    }

    .btn-dashboard:hover {
        background: transparent;
        color: #fff;
        border-color: #fff;
    }

    /* Floating Actions */
    .floating-actions {
        position: fixed;
        bottom: 30px;
        right: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 10000;
    }

    .float-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        transition: var(--transition);
    }

    .float-btn:hover {
        transform: scale(1.1) rotate(5deg);
    }

    .whatsapp-btn {
        background: #25d366;
        position: fixed;
        bottom: 30px;
        left: 30px;
        z-index: 10001;
        pointer-events: all;
        text-decoration: none;
    }

    .chat-btn {
        background: var(--accent-yellow);
        color: var(--surface-black);
    }

    /* Chatbot Window */
    .chat-window {
        position: fixed;
        bottom: 100px;
        right: 30px;
        width: 380px;
        height: 500px;
        display: none;
        flex-direction: column;
        z-index: 10000;
        overflow: hidden;
        animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .chat-window.active {
        display: flex;
    }

    .chat-header {
        padding: 1.5rem;
        background: var(--accent-yellow);
        color: var(--surface-black);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chat-messages {
        flex-grow: 1;
        padding: 1.5rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: rgba(11, 0, 20, 0.95);
    }

    .msg {
        max-width: 80%;
        padding: 0.8rem 1rem;
        border-radius: 15px;
        font-size: 0.9rem;
    }

    .msg-bot {
        align-self: flex-start;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
    }

    .msg-user {
        align-self: flex-end;
        background: var(--accent-yellow);
        color: var(--surface-black);
    }

    .chat-input {
        padding: 1rem;
        background: var(--surface-black);
        display: flex;
        gap: 10px;
    }

    .chat-input input {
        flex-grow: 1;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        color: white;
        padding: 0.8rem;
        border-radius: 10px;
        outline: none;
    }

    @keyframes slideUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
        70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
        100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }

    .whatsapp-btn {
        animation: pulse 2s infinite;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-white);
        text-decoration: none;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    .nav-links a {
        color: var(--text-white);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }

    .nav-links a:hover {
        color: var(--accent-yellow);
    }

    /* Hero Section */
    .hero {
        padding: 180px 0 100px;
        display: flex;
        align-items: center;
        min-height: 80vh;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        font-size: 1.25rem;
        color: var(--text-gray);
        margin-bottom: 2.5rem;
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-up {
        animation: fadeInUp 0.8s ease forwards;
    }

    /* Carousel Styles */
    .carousel-container {
        width: 100%;
        overflow: hidden;
        position: relative;
        border-radius: 32px;
        margin-top: 50px;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
        width: 100%;
    }

    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 2px;
    }

    .offer-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 30px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .offer-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
    }

    .offer-card:hover .offer-card-img {
        transform: scale(1.04);
    }

    .offer-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(241, 41, 107, 0.1) 0%, transparent 70%);
        pointer-events: none;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 25px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        cursor: pointer;
        transition: var(--transition);
    }

    .dot.active {
        width: 30px;
        border-radius: 10px;
        background: var(--accent-pink);
    }

    /* Typography Utilities */
    .text-gradient {
        background: linear-gradient(to right, #fff, var(--accent-pink), var(--accent-yellow));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }

    @media (max-width: 768px) {
        .offer-card {
            grid-template-columns: 1fr !important;
            min-height: auto !important;
        }
        .offer-card > div:last-child {
            height: 220px;
            border-radius: 0 0 30px 30px !important;
        }
        .offer-card > div:first-child {
            padding: 32px 24px !important;
            text-align: center;
        }
        .offer-card a[href] {
            margin: 0 auto;
        }
    }

    /* Dashboard Utilities */
    .metric-card {
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .metric-card:hover {
        transform: translateY(-5px);
        border-color: rgba(241, 41, 107, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .progress-bar-glow {
        position: relative;
        overflow: hidden;
    }

    .progress-bar-glow::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        animation: progress-shine 2s infinite;
    }

    @keyframes progress-shine {
        0% { left: -100%; }
        100% { left: 100%; }
    }

    .status-pill {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .status-published { background: rgba(50, 255, 126, 0.1); color: #32ff7e; }
    .status-draft { background: rgba(241, 41, 107, 0.1); color: var(--accent-pink); }
    .status-pending { background: rgba(255, 215, 0, 0.1); color: var(--accent-yellow); }

    .admin-table th {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-gray);
        padding: 1.5rem 1rem;
    }

    .admin-table td {
        padding: 1.2rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* ── Lesson View Layouts ── */
    .lesson-main-layout {
        display: grid;
        grid-template-columns: 1fr 400px;
        height: calc(100vh - 100px);
    }
    .lesson-header-block {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .lesson-content-grid {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 4rem;
    }

    /* ── Assignments Layouts ── */
    .assignment-metrics-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    .assignment-help-banner {
        margin-top: 4rem;
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        padding: 3rem;
        border-radius: 30px;
        color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }


    /* Global Grid Utilities */
    .grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); }
    .grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); }
    .grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); }
    .grid-1-2   { display: grid; grid-template-columns: 1fr 2fr; }
    .grid-2-1   { display: grid; grid-template-columns: 2fr 1fr; }

    @media (max-width: 1024px) {
        .grid-4-col { grid-template-columns: repeat(2, 1fr); }
        .grid-3-col { grid-template-columns: repeat(2, 1fr); }
        .grid-1-2   { grid-template-columns: 1fr; }
        .grid-2-1   { grid-template-columns: 1fr; }
    }

    @media (max-width: 768px) {
        .grid-4-col, .grid-3-col, .grid-2-col, .grid-1-2, .grid-2-1 {
            grid-template-columns: 1fr !important;
        }
    }
