:root {
    --primary: #8B5FBF;
    --primary-light: #9D69DD;
    --primary-dark: #7A4BA6;
    --secondary: #6C63FF;
    --accent: #FF6B8B;
    --text-dark: #2D3748;
    --text-light: #718096;
    --background: #FAF7FF;
    --white: #FFFFFF;
    --gray-light: #F7FAFC;
    --border: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo h2 {
    color: var(--primary);
    font-weight: 700;
}

.nav-logo span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.login-btn {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.dashboard-btn {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.dashboard-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.signup-btn {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: var(--primary-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: #ff5277;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    color: var(--text-dark);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.floating-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.card-1 {
    top: 20px;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 120px;
    right: 0;
    animation-delay: 1s;
}

.card-3 {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

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

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Courses Preview */
.courses-preview {
    padding: 80px 0;
    background: var(--gray-light);
}

.courses-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.course-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--primary-light);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4A5568;
    color: var(--text-light);
}

/* Class Forum Styles */
.forum-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.forum-filters select {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.forum-topics-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forum-topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.2s;
    cursor: pointer;
}

.forum-topic-item:hover {
    background: var(--bg-hover);
}

.forum-topic-item.pinned {
    border-left-color: var(--accent-yellow);
    background: rgba(253,214,99,0.05);
}

.forum-topic-item.solved {
    border-left-color: var(--accent-green);
}

.forum-topic-left {
    flex: 1;
}

.forum-topic-title {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 4px;
}

.forum-topic-title:hover {
    color: var(--accent-blue);
}

.forum-topic-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.pin-badge {
    margin-right: 6px;
}

.solved-badge {
    background: rgba(129,201,149,0.15);
    color: var(--accent-green);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-right: 6px;
}

.topic-category {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 2px 10px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.forum-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.forum-empty-sub {
    margin: 8px 0 16px;
    font-size: 14px;
}

.forum-locked {
    text-align: center;
    padding: 40px;
    background: var(--bg-elevated);
    border-radius: 12px;
}

.forum-locked p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.forum-error {
    text-align: center;
    padding: 40px;
    color: var(--accent-red);
}

/* ===== REVIEWS STYLES ===== */

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.reviews-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.rating-stars {
    font-size: 20px;
    margin: 4px 0;
}

.rating-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.rating-distribution {
    min-width: 150px;
}

.distribution-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.star-label {
    font-size: 12px;
    min-width: 35px;
    color: var(--text-secondary);
}

.distribution-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    background: var(--accent-yellow);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.distribution-count {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 20px;
    text-align: right;
}

.reviews-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.review-locked {
    color: var(--text-muted);
    font-size: 14px;
}

/* Review Cards */
.review-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.review-card:hover {
    border-color: var(--border-subtle);
}

.review-card.user-review {
    border-color: var(--accent-blue);
    background: rgba(138, 180, 248, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--bg-primary);
}

.reviewer-avatar.initials {
    background: var(--accent-blue);
    color: var(--bg-primary);
    font-size: 16px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
}

.your-review-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--accent-blue);
    color: var(--bg-primary);
    border-radius: 12px;
    margin-left: 6px;
}

.verified-badge {
    font-size: 11px;
    color: var(--accent-green);
    margin-left: 4px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.review-rating {
    font-size: 16px;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-body {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 8px 0;
}

.review-footer {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.review-helpful-btn,
.review-report-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.review-helpful-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.review-report-btn:hover {
    background: rgba(242, 139, 130, 0.1);
    color: var(--accent-red);
}

/* No reviews state */
.no-reviews {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Review Modal */
.review-modal-content {
    max-width: 500px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin: 8px 0;
}

.star-rating-input {
    display: none;
}

.star-label {
    font-size: 32px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    user-select: none;
}

.star-label:hover,
.star-label:hover ~ .star-label {
    opacity: 1 !important;
    transform: scale(1.2);
}

.star-rating-input:checked ~ .star-label {
    opacity: 1;
}

.rating-display {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Reviews loading */
.reviews-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.reviews-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--accent-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.reviews-error {
    text-align: center;
    padding: 30px;
    color: var(--accent-red);
}

.distribution-empty {
    color: var(--text-muted);
    font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reviews-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .rating-distribution {
        min-width: 100%;
    }
    
    .review-header {
        flex-direction: column;
    }
    
    .review-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .reviews-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .reviews-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Forum Loading State */
.forum-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.forum-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    border: 3px solid var(--accent-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.forum-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.forum-empty p {
    font-size: 18px;
    margin-bottom: 8px;
}

.forum-empty-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.forum-error {
    text-align: center;
    padding: 30px 20px;
    color: var(--accent-red);
}

.forum-error .btn {
    margin-top: 12px;
}

/* Forum Header Actions */
.forum-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.forum-filters select {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.forum-filters select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Forum Topics List */
.forum-topics-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forum-topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: background 0.2s, border-color 0.2s;
    gap: 8px;
}

.forum-topic-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
}

.forum-topic-item.pinned {
    border-color: var(--accent-yellow);
    background: rgba(253, 214, 99, 0.05);
}

.forum-topic-item.solved {
    border-color: var(--accent-green);
    background: rgba(129, 201, 149, 0.05);
}

.forum-topic-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.forum-topic-title {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.forum-topic-title:hover {
    color: var(--accent-blue);
}

.pin-badge,
.solved-badge {
    font-size: 12px;
    margin-right: 6px;
}

.solved-badge {
    color: var(--accent-green);
}

.forum-topic-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.forum-topic-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topic-category {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-elevated);
    border-radius: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Forum Locked State */
.forum-locked {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.forum-locked p {
    font-size: 16px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .forum-topic-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .topic-category {
        align-self: flex-start;
    }
    
    .forum-topic-meta {
        font-size: 11px;
        gap: 8px;
    }
}

/* Video status badges */
.processing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(253, 214, 99, 0.9);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    animation: pulse 1.5s infinite;
}

.ready-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(129, 201, 149, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.error-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(242, 139, 130, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.processing-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.recording-card.processing {
    opacity: 0.8;
    cursor: pointer;
}

.recording-card.ready {
    opacity: 1;
    cursor: pointer;
}

.recording-card.ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.status-text {
    color: var(--accent-yellow);
    font-size: 11px;
}

/* ===== PAYMENT STYLES ===== */
.payment-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.payment-info {
    text-align: center;
}

.price-display .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD700;
}

.price-display .label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.payment-benefits ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.payment-benefits ul li {
    color: rgba(255,255,255,0.8);
    padding: 4px 0;
    font-size: 0.95rem;
}

.buy-course-btn {
    font-size: 1.1rem;
    padding: 14px 40px;
}

.secure-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
}

.free-badge .badge {
    display: inline-block;
    background: #10B981;
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
}

.paid-badge .badge {
    display: inline-block;
    background: #8B5FBF;
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
}

.price-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    z-index: 2;
}

.price-badge.free {
    background: #10B981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.price-badge.paid {
    background: #8B5FBF;
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.3);
}

.class-card-image {
    position: relative;
}

/* Locked video styles */
.video-card.locked {
    opacity: 0.7;
    cursor: pointer;
    position: relative;
}

.video-card.locked:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    font-size: 48px;
    z-index: 1;
    backdrop-filter: blur(2px);
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-yellow);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.locked-badge {
    color: var(--accent-yellow);
    font-size: 11px;
    font-weight: 600;
}

.recording-card.locked {
    opacity: 0.7;
    cursor: pointer;
    position: relative;
}

.recording-card.locked:hover {
    opacity: 0.9;
}



/* Dashboard Styles */
.dashboard {
    padding: 100px 0 50px;
    background: var(--gray-light);
    min-height: 100vh;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-light);
    color: var(--white);
}

.dashboard-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.progress-bar {
    background: var(--border);
    border-radius: 10px;
    height: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    background: var(--primary);
    height: 100%;
    border-radius: 10px;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 100px auto 50px;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Add to existing styles.css */

/* Page Hero */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero2 {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 15px;
}

.page-hero2 h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Classes Filter */
.classes-filter {
    padding: 30px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.classes-filter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border: 2px solid var(--border);
    border-radius: 25px;
    width: 250px;
}

.search-box span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Classes Grid */
.classes-grid-section {
    padding: 60px 0;
    background: var(--gray-light);
}

.classes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.class-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
}

.class-card-content {
    padding: 25px;
}

.class-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.class-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.class-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.class-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.class-actions {
    display: flex;
    gap: 10px;
}

/* Class Hero */
.class-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.class-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: center;
}

.class-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.class-description {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
    color:white;
}

.class-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.class-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Class Content */
.class-content {
    padding: 60px 0;
    background: var(--gray-light);
}

.class-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

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

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-thumbnail {
    height: 160px;
    background: var(--primary);
    position: relative;
}

.video-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}


/* Sidebar */
.class-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-card h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.progress-container {
    text-align: center;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.instructor-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.video-modal {
    max-width: 800px;
}

.video-modal video {
    width: 100%;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Loading */
.loading-indicator {
    text-align: center;
    padding: 40px;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.no-content {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Dashboard Updates */
.enrolled-classes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.enrolled-class-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.enrolled-class-card h4 {
    margin-bottom: 10px;
}

.class-progress-small {
    margin: 10px 0;
}

.continue-btn {
    width: 100%;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .class-header,
    .class-layout {
        grid-template-columns: 1fr;
    }
    
    .classes-filter .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .classes-container {
        grid-template-columns: 1fr;
    }
}
/* Dashboard Specific Styles */

/* Dashboard Header */
.dashboard-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top:4%;
}

.welcome-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.date-display {
    font-size: 0.9rem;
    opacity: 0.8;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-info p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Dashboard Layout */
.dashboard-main {
    padding: 40px 0;
    background: var(--gray-light);
    min-height: calc(100vh - 200px);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-section h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--primary-light);
    color: var(--white);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--gray-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Goal Tracker */
.goal-tracker {
    text-align: center;
}

.progress-circle {
    position: relative;
    margin: 0 auto 15px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--primary);
}

.goal-tracker p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Dashboard Content */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-section {
    display: none;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.overview-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.overview-card.full-width {
    grid-column: 1 / -1;
}

.overview-card h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 10px;
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.activity-icon.completed {
    background: #48BB78;
    color: white;
}

.activity-icon.enrolled {
    background: var(--primary);
    color: white;
}

.activity-icon.watched {
    background: #4299E1;
    color: white;
}

.activity-icon.quiz {
    background: #ED8936;
    color: white;
}

.activity-details p {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Continue Learning */
.continue-class {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.class-met
#backToClasses{
   color:white; 
}

.class-info h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.class-info p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Live Sessions */
.live-sessions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 10px;
}

.session-time {
    text-align: center;
    min-width: 70px;
}

.session-time .date {
    display: block;
    font-weight: 600;
    color: var(--primary);
}

.session-time .time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.session-details h5 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.session-details p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Enrolled Classes Grid */
.enrolled-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.enrolled-class-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.enrolled-class-card:hover {
    transform: translateY(-3px);
}

.enrolled-class-card h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.class-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.class-progress {
    margin: 15px 0;
}

.class-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Progress Grid */
.progress-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.progress-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.progress-card.full-width {
    grid-column: 1 / -1;
}

.chart-placeholder {
    height: 200px;
    background: var(--gray-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 500;
    color: var(--text-dark);
}

.skill-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 60%;
}

.skill-progress .progress-bar {
    flex: 1;
}

/* Achievements */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 10px;
}

.achievement-item.locked {
    opacity: 0.5;
}

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

.achievement-details h5 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.achievement-details p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* User Dropdown */
.nav-user {
    position: relative;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.user-dropdown:hover {
    background: rgba(139, 95, 191, 0.1);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--gray-light);
}

.dropdown-content .logout {
    color: #E53E3E;
    border-top: 1px solid var(--border);
    margin-top: 5px;
}

/* Filter Buttons */
.classes-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        order: 2;
    }
    
    .dashboard-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .overview-grid,
    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-card.full-width {
        grid-column: 1;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .continue-class {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .session-item {
        flex-direction: column;
        text-align: center;
    }
}
/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        display: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hamburger span {
        transition: all 0.3s ease;
    }
}
/* Auth Pages Styles */
.auth-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.auth-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.password-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox input {
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-google:hover {
    border-color: #DB4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #F56565;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 33%;
    background: #F56565;
}

.strength-fill.medium {
    width: 66%;
    background: #ED8936;
}

.strength-fill.strong {
    width: 100%;
    background: #48BB78;
}

#passwordText {
    font-size: 0.8rem;
    color: var(--text-light);
}

:root {
    --primary: #8B5FBF;
    --primary-light: #9D69DD;
    --primary-dark: #7A4BA6;
    --secondary: #6C63FF;
    --accent: #FF6B8B;
    --text-dark: #2D3748;
    --text-light: #718096;
    --background: #FAF7FF;
    --white: #FFFFFF;
    --gray-light: #F7FAFC;
    --border: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   NAVIGATION - FIXED
   ============================================================ */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-logo span {
    color: var(--text-light);
    font-size: 0.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.login-btn {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.dashboard-btn {
    background: transparent;
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.dashboard-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.signup-btn {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: var(--primary-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* ============================================================
   HERO SECTION - FIXED
   ============================================================ */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ============================================================
   CLASS HERO - FIXED
   ============================================================ */
.class-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.class-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: center;
}

.class-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* ============================================================
   CLASS LAYOUT - FIXED
   ============================================================ */
.class-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* ============================================================
   DASHBOARD LAYOUT - FIXED
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ===== LAPTOP / SMALL DESKTOP ===== */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .class-header {
        grid-template-columns: 1fr 250px;
        gap: 40px;
    }
    
    .class-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    
    .dashboard-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }
}

/* ===== TABLET ===== */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 20px;
        display: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
        gap: 8px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
    }

    .login-btn,
    .dashboard-btn,
    .signup-btn {
        padding: 12px 20px;
        border-radius: 8px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero */
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
    
    /* Class Hero */
    .class-hero {
        padding: 80px 0 40px;
    }
    
    .class-header {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .class-info h1 {
        font-size: 2rem;
    }
    
    .class-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .class-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .class-image {
        display: none;
    }
    
    /* Class Layout */
    .class-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .class-sidebar {
        order: 2;
    }
    
    .class-main {
        order: 1;
    }
    
    /* Dashboard */
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-sidebar {
        order: 2;
    }
    
    .dashboard-content {
        order: 1;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    /* Content Tabs */
    .content-tabs {
        flex-wrap: wrap;
        gap: 4px;
        border-bottom: none;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: var(--white);
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
    }
    
    .tab-btn.active {
        border-color: var(--primary);
        background: var(--primary);
        color: var(--white);
        border-bottom-color: var(--primary);
    }
    
    /* Videos Grid */
    .videos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .video-thumbnail {
        height: 120px;
    }
    
    /* Reviews */
    .reviews-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .reviews-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .average-rating {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .rating-number {
        font-size: 28px;
    }
    
    .rating-stars {
        font-size: 16px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .review-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .reviews-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .reviews-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Forum */
    .forum-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .forum-topic-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px;
    }
    
    .forum-topic-meta {
        font-size: 11px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .topic-category {
        align-self: flex-start;
    }
    
    /* Payment Section */
    .payment-section {
        padding: 16px;
        margin-top: 16px;
    }
    
    .price-display .price {
        font-size: 2rem;
    }
    
    .buy-course-btn {
        font-size: 1rem;
        padding: 12px 24px;
        width: 100%;
    }
    
    .payment-benefits ul {
        text-align: left;
    }
    
    /* Sidebar */
    .sidebar-card {
        padding: 18px;
    }
    
    .instructor-info {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-container {
        text-align: center;
    }
    
    /* Modal */
    .modal-content {
        padding: 20px;
        margin: 16px;
        width: 95%;
    }
    
    .video-modal {
        max-width: 100%;
    }
    
    .video-modal video {
        height: auto;
        max-height: 50vh;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    /* Auth Pages */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .social-auth {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        padding: 24px 20px;
        margin: 0 16px;
    }
    
    /* Classes Grid */
    .classes-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* General */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* ===== MOBILE PHONE ===== */
@media (max-width: 480px) {
    /* Navigation */
    .nav-logo h2 {
        font-size: 1.1rem;
    }
    
    .nav-logo span {
        font-size: 0.7rem;
    }
    
    /* Hero */
    .hero {
        padding: 70px 0 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat h3 {
        font-size: 1.3rem;
    }
    
    /* Class Hero */
    .class-hero {
        padding: 70px 0 30px;
    }
    
    .class-info h1 {
        font-size: 1.6rem;
    }
    
    .class-description {
        font-size: 0.95rem;
    }
    
    .class-meta {
        font-size: 0.85rem;
        gap: 12px;
    }
    
    .class-actions .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    /* Videos */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .video-card {
        max-width: 100%;
    }
    
    /* Content */
    .content-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
        min-width: calc(50% - 4px);
    }
    
    /* Dashboard */
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
        padding: 14px 16px;
    }
    
    .stat-info h3 {
        font-size: 1.3rem;
    }
    
    /* Reviews */
    .review-card {
        padding: 12px 14px;
    }
    
    .reviewer-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .reviewer-name {
        font-size: 0.9rem;
    }
    
    .review-rating {
        font-size: 14px;
    }
    
    .review-body {
        font-size: 0.9rem;
    }
    
    /* Forum */
    .forum-topic-title {
        font-size: 14px;
    }
    
    .forum-topic-item {
        padding: 10px 12px;
    }
    
    /* Payment */
    .price-display .price {
        font-size: 1.8rem;
    }
    
    .payment-benefits ul li {
        font-size: 0.85rem;
    }
    
    /* Classes Grid */
    .classes-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .class-card {
        max-width: 100%;
    }
    
    /* Features & Courses */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    /* Sidebar */
    .sidebar-card {
        padding: 14px;
    }
    
    .sidebar-card h4 {
        font-size: 1rem;
    }
    
    /* Modal */
    .modal-content {
        padding: 16px;
        margin: 12px;
    }
    
    .close-modal {
        top: 10px;
        right: 14px;
        font-size: 1.2rem;
    }
    
    /* Auth */
    .auth-container {
        padding: 20px 16px;
        margin: 0 12px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .auth-header p {
        font-size: 0.95rem;
    }
    
    .password-options {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    /* CTA */
    .cta h2 {
        font-size: 1.6rem;
    }
    
    .cta p {
        font-size: 0.95rem;
    }
    
    .cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-light {
        width: 100%;
        text-align: center;
    }
    
    /* Headings */
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    h4 {
        font-size: 1rem !important;
    }
    
    /* Container */
    .container {
        padding: 0 14px;
    }
}

/* ===== VERY SMALL PHONES ===== */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .class-info h1 {
        font-size: 1.3rem;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .tab-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .video-thumbnail {
        height: 150px;
    }
    
    .review-card {
        padding: 10px 12px;
    }
    
    .forum-topic-item {
        padding: 8px 10px;
    }
    
    .price-display .price {
        font-size: 1.5rem;
    }
}

/* ============================================================
   ADDITIONAL STYLES FOR MOBILE NAVIGATION
   ============================================================ */
.nav-menu {
    transition: none;
}

/* Fix for dropdown on mobile */
@media (max-width: 768px) {
    .user-dropdown {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .user-dropdown .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-top: 8px;
        width: 100%;
    }
    
    .user-dropdown .dropdown-content a {
        padding: 10px 20px;
        text-align: center;
        border-radius: 8px;
        background: var(--gray-light);
        margin-bottom: 4px;
    }
    
    .user-dropdown .dropdown-content .logout {
        border-top: none;
        margin-top: 0;
    }
}

/* ============================================================
   ADDITIONAL STYLES FOR TABLE SCROLL ON MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 500px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   ADDITIONAL STYLES FOR FORMS ON MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   ADDITIONAL STYLES FOR MODALS ON MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .video-modal video {
        max-height: 40vh;
    }
    
    .review-modal-content {
        padding: 20px 16px;
    }
    
    .star-rating {
        justify-content: center;
    }
    
    .star-label {
        font-size: 28px;
    }
}

/* ============================================================
   ADDITIONAL STYLES FOR SIDEBAR ON MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 280px;
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
        transition: transform 0.3s ease;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 99;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 16px;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .admin-topbar .topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-topbar .topbar-actions .search-box {
        width: 100%;
    }
    
    .admin-topbar .topbar-actions .search-box input {
        width: 100%;
    }
    
    .admin-topbar .topbar-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .admin-pagination .page-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-card .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.75rem;
    }
}

/* ============================================================
   UTILITY CLASSES FOR RESPONSIVE
   ============================================================ */
.hide-on-mobile {
    display: block;
}

.show-on-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
    
    .show-on-mobile {
        display: block;
    }
    
    .text-center-mobile {
        text-align: center;
    }
    
    .flex-column-mobile {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .text-center-phone {
        text-align: center;
    }
    
    .flex-column-phone {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar,
    .footer,
    .class-actions,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .class-hero {
        padding: 20px 0 !important;
        background: white !important;
        color: black !important;
    }
    
    .class-hero .container {
        color: black !important;
    }
}

/* ============================================================
   QUIZ STYLES 
   ============================================================ */

/* Quiz Cards */
.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.quiz-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.quiz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.quiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.quiz-card-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.quiz-status {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.quiz-status.completed {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.quiz-status.in-progress {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    animation: pulse 1.5s infinite;
}

.quiz-status.available {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
}

.quiz-status.locked {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.quiz-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.quiz-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.quiz-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quiz-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-attempts {
    font-size: 0.8rem;
    color: var(--text-light);
}

.no-quizzes {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-quizzes p {
    font-size: 1.1rem;
}

.no-quizzes-sub {
    font-size: 0.95rem;
    margin-top: 8px;
}

/* Toast types */
.toast-warning {
    background: #F59E0B !important;
}

/* Pulse animation for in-progress */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive quiz cards */
@media (max-width: 768px) {
    .quizzes-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quiz-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quiz-card-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   ACCESS LOCKED STYLES
   ============================================================ */

.access-locked {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.access-locked .lock-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.access-locked h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.access-locked p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.access-locked .btn-link {
    color: var(--accent-blue);
    text-decoration: underline;
    cursor: pointer;
}

.access-locked .btn-link:hover {
    color: var(--accent-blue-hover);
}

.price-display-small {
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.price-display-small .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
    display: block;
}

.price-display-small .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.access-locked .btn {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .access-locked {
        padding: 40px 16px;
    }
    
    .access-locked .lock-icon {
        font-size: 3rem;
    }
    
    .access-locked h3 {
        font-size: 1.2rem;
    }
    
    .price-display-small .price {
        font-size: 1.4rem;
    }
}