/* ===== CSS Variables ===== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --dark: #2d3436;
    --gray-900: #1a1a2e;
    --gray-800: #2d3436;
    --gray-700: #636e72;
    --gray-600: #b2bec3;
    --gray-500: #dfe6e9;
    --gray-400: #f0f0f0;
    --gray-300: #f5f6fa;
    --gray-200: #fafafa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-secondary: linear-gradient(135deg, #00cec9, #81ecec);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 30px rgba(108,92,231,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: var(--gray-300);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(108,92,231,0.4);
    transform: translateY(-2px);
    color: var(--white);
}

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

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

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

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Header ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo i {
    font-size: 28px;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: 5px 0;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    position: relative;
    font-size: 20px;
    color: var(--gray-700);
    padding: 8px;
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--gray-400);
}

.user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-btn span {
    font-weight: 500;
    font-size: 14px;
}

.user-btn i {
    font-size: 12px;
    color: var(--gray-600);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--gray-400);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-500);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ===== Flash Message ===== */
.flash-message {
    padding: 12px 0;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.flash-message .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.flash-success {
    background: var(--success);
    color: var(--white);
}

.flash-error {
    background: var(--danger);
    color: var(--white);
}

.flash-info {
    background: var(--primary);
    color: var(--white);
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.hero-actions .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

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

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

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===== Section Styling ===== */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--gray-700);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ===== Features ===== */
.features {
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: var(--radius);
    background: var(--gray-300);
    transition: var(--transition);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== Course/Product Cards ===== */
.courses-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.course-card,
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.course-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.course-thumbnail,
.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-thumbnail img,
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.course-badge,
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.course-badge.sale,
.product-badge.sale {
    background: var(--danger);
    color: var(--white);
}

.product-badge.out-of-stock {
    background: var(--gray-700);
    color: var(--white);
}

.course-info,
.product-info {
    padding: 20px;
}

.course-category,
.product-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}

.course-info h3,
.product-info h3 {
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.4;
}

.course-info h3 a,
.product-info h3 a {
    color: var(--dark);
}

.course-info h3 a:hover,
.product-info h3 a:hover {
    color: var(--primary);
}

.course-instructor {
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.course-meta,
.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-500);
}

.course-meta i,
.product-meta i {
    margin-right: 5px;
}

.course-footer,
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price,
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-sale {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.price-original {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: line-through;
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

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

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-actions .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-500);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--primary-light);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.contact-info i {
    width: 20px;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 24px;
    opacity: 0.7;
}

/* ===== Page Header ===== */
.page-header {
    background: var(--gradient);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== Auth Pages ===== */
.auth-section {
    padding: 60px 0;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.auth-box {
    max-width: 450px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 8px;
}

.auth-box .subtitle {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-500);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--gray-200);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

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

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-700);
}

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

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

/* ===== Forms ===== */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--gray-500);
    border-radius: var(--radius);
    font-size: 15px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    padding: 12px 24px;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--gray-500);
    border-radius: 50px;
    background: var(--white);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108,92,231,0.05);
}

/* ===== Course Detail ===== */
.course-detail-header {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0;
}

.course-detail-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.course-detail-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    opacity: 0.9;
}

.course-detail-meta i {
    margin-right: 5px;
}

.course-detail-video img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.course-detail-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.course-detail-price .current-price {
    font-size: 36px;
    font-weight: 800;
}

.course-detail-price .old-price {
    font-size: 20px;
    text-decoration: line-through;
    opacity: 0.6;
}

.course-content {
    padding: 60px 0;
}

.course-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.course-description h2,
.course-curriculum h2 {
    margin-bottom: 20px;
}

.course-description p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}

/* Lesson List */
.lesson-list {
    border: 1px solid var(--gray-500);
    border-radius: var(--radius);
    overflow: hidden;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-500);
    transition: var(--transition);
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item:hover {
    background: var(--gray-300);
}

.lesson-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.lesson-info h4 {
    font-size: 14px;
}

.lesson-info span {
    font-size: 12px;
    color: var(--gray-700);
}

.lesson-duration {
    margin-left: auto;
    font-size: 13px;
    color: var(--gray-700);
}

/* Sidebar */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.sidebar-card .course-price {
    margin-bottom: 20px;
}

.sidebar-features {
    margin-bottom: 20px;
}

.sidebar-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-500);
}

.sidebar-features li i {
    color: var(--success);
    width: 20px;
}

/* ===== Instructor Card ===== */
.instructor-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.instructor-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-info h3 {
    margin-bottom: 5px;
}

.instructor-info p {
    color: var(--gray-700);
    font-size: 14px;
}

/* ===== Video Player ===== */
.video-player-wrapper {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.video-player-wrapper video {
    width: 100%;
    max-height: 500px;
    display: block;
}

.video-lesson-content {
    padding: 60px 0;
}

.video-lesson-content .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.lesson-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lesson-sidebar h3 {
    padding: 20px;
    border-bottom: 1px solid var(--gray-500);
}

.lesson-sidebar-list .lesson-item {
    cursor: pointer;
}

.lesson-sidebar-list .lesson-item.active {
    background: rgba(108,92,231,0.1);
    border-left: 3px solid var(--primary);
}

.lesson-sidebar-list .lesson-item.completed {
    opacity: 0.7;
}

.lesson-sidebar-list .lesson-item.completed .lesson-icon {
    background: var(--success);
    color: var(--white);
}

/* ===== Cart ===== */
.cart-section {
    padding: 60px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--gray-500);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 14px;
    color: var(--gray-700);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-actions .price {
    font-weight: 700;
    font-size: 18px;
    color: var(--danger);
}

.cart-item-actions .remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.cart-item-actions .remove-btn:hover {
    transform: scale(1.1);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-500);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    border-top: 2px solid var(--gray-500);
    padding-top: 15px;
    margin-top: 15px;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-700);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        z-index: 100;
    }
    
    .main-nav.active ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .hero-image {
        display: none;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .course-detail-header .container {
        grid-template-columns: 1fr;
    }
    
    .course-content .container {
        grid-template-columns: 1fr;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .video-lesson-content .container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-actions .btn {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .courses-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0 10px;
    flex-wrap: wrap;
}
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--gray-500);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.pagination .page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}
.pagination .page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}
.pagination .page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.pagination .page-link.dots {
    border: none;
    background: transparent;
    cursor: default;
    min-width: 20px;
    color: var(--gray-600);
}

/* Admin Pagination */
.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid var(--gray-500);
    flex-wrap: wrap;
    gap: 10px;
}
.admin-pagination .page-info {
    font-size: 13px;
    color: var(--gray-600);
}
.admin-pagination .page-buttons {
    display: flex;
    gap: 5px;
}
