/* CSS Variables for Light and Dark Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #d7d8d9;
    --bg-tertiary: #c6d9ff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;
    --shadow-sm: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: #dbeafe;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
}

body.dark-mode {
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-primary: #374151;
    --border-secondary: #4b5563;
    --shadow-sm: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.5);
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-blue-light: #1e3a8a;
    --success-bg: #064e3b;
    --success-text: #d1fae5;
    --error-bg: #7f1d1d;
    --error-text: #fecaca;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--bg-primary);
    box-shadow: 0 1px 3px var(--shadow-sm);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo i {
    color: var(--accent-blue);
    font-size: 2rem;
}

.search-bar {
    flex: 1;
    max-width: 32rem;
    margin: 0 2rem;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-form i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-form input {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    border: 1px solid var(--border-secondary);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-desktop a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--accent-blue);
}

.dark-mode-toggle,
.auth-btn,
.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    font-size: inherit;
    font-weight: 500;
}

.dark-mode-toggle {
    padding: 0.5rem;
    font-size: 1.25rem;
}

.dark-mode-toggle:hover,
.auth-btn:hover,
.cart-btn:hover {
    color: var(--accent-blue);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--accent-blue);
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-search {
    display: none;
    padding-bottom: 1rem;
}

.mobile-nav {
    display: none;
    background: var(--bg-primary);
    border-top: 1px solid #e5e7eb;
}

.mobile-nav-content {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-content a,
.mobile-nav-content button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.mobile-nav-content a:hover,
.mobile-nav-content button:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    background: var(--bg-tertiary);
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-text .highlight {
    color: #2563eb;
    display: block;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #eff6ff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-icon i {
    color: #2563eb;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat p {
    color: var(--text-secondary);
    margin: 0;
}

.hero-card {
    position: relative;
}

.course-preview {
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    transform: rotate(3deg);
    transition: transform 0.3s;
}

.course-preview:hover {
    transform: rotate(0deg);
}

.preview-video {
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.preview-video i {
    font-size: 4rem;
    color: #2563eb;
}

.course-preview h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.course-preview p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
}

.rating span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2563eb;
}

/* Featured Courses */
.featured-courses {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.course-card {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.course-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.course-card:hover .course-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.play-icon {
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.course-card:hover .play-icon {
    opacity: 1;
}

.level-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.level-beginner {
    background: #dcfce7;
    color: #166534;
}

.level-intermediate {
    background: #fef3c7;
    color: #92400e;
}

.level-advanced {
    background: #fee2e2;
    color: #991b1b;
}

.course-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-blue, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.course-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-footer {
    margin-top: auto;
}

.course-instructor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.instructor-info:hover {
    opacity: 0.8;
}

.avatar {
width: 3rem;
height: 3rem;
border-radius: 50%;
background-color: #4b5563; /* fallback color (gray) */
color: white;
font-weight: 600;
font-size: 24px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
user-select: none;
}
.avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}

.instructor-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.instructor-avatar:hover {
    opacity: 0.8;
}

.instructor-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.instructor-info:hover .instructor-name {
    color: #2563eb;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-rating .stars {
    color: #fbbf24;
}

.course-rating span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.enroll-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.enroll-btn:hover {
    background: #1d4ed8;
}

.enroll-btn.added {
    background: #059669;
    cursor: default;
}

.section-footer {
    text-align: center;
}

.section-footer .btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Course Gallery Page */
.course-gallery {
    padding: 2rem 0 4rem;
    background: var(--bg-secondary);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.filters-section {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filters-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover,
.view-btn.active {
    background: #eff6ff;
    color: #2563eb;
}

.results-info {
    margin-bottom: 1.5rem;
}

.results-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: #1d4ed8;
}

/* Course Preview Page */
.course-preview-page {
    padding: 2rem 0 4rem;
    background: var(--bg-secondary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.breadcrumb span {
    color: var(--text-secondary);
}

.course-preview-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.course-info {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    /* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
}

.course-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.course-category-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.course-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-item i {
    color: #2563eb;
}

.instructor-info-detailed {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.2s;
}

.instructor-info-detailed:hover {
    opacity: 0.8;
}

.instructor-avatar-large {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-details h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.instructor-details .instructor-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.course-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.course-section:last-child {
    border-bottom: none;
}

.course-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.course-description-full {
    color: var(--text-secondary);
    line-height: 1.7;
}

.course-description-full p {
    margin-bottom: 1rem;
}

.learning-objectives {
    display: grid;
    gap: 1rem;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.objective-item i {
    color: #059669;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.objective-item span {
    color: var(--text-secondary);
    line-height: 1.5;
}

.course-curriculum {
    color: var(--text-secondary);
}

.curriculum-stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.curriculum-sections {
    display: grid;
    gap: 1rem;
}

.curriculum-section {
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.section-header:hover {
    background: var(--bg-secondary);
}

.section-header i {
    color: #2563eb;
}

.section-header h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-duration {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.section-lectures {
    padding: 0;
}

/* Hide sections by default only on course preview page */
.course-preview-page .section-lectures {
    display: none;
}

.lecture-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.lecture-item:hover {
    background: var(--bg-secondary);
}

.lecture-item i {
    color: var(--text-secondary);
    width: 1rem;
}

.lecture-item span:first-of-type {
    flex: 1;
    color: var(--text-secondary);
}

.lecture-duration {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.enrollment-sidebar {
    position: sticky;
    top: 2rem;
}

.enrollment-card {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.course-preview-video {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
}

.preview-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-preview-video:hover .preview-thumbnail {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s;
}

.course-preview-video:hover .play-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.play-overlay i {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.play-overlay span {
    font-size: 1.125rem;
    font-weight: 500;
}

.enrollment-content {
    padding: 1.5rem;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.original-price {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.discount-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.enroll-btn-large {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.enroll-btn-large:hover {
    background: #1d4ed8;
}

.enroll-btn-large.added {
    background: #059669;
    cursor: default;
}

.wishlist-btn {
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wishlist-btn:hover {
    border-color: var(--text-tertiary);
    background: var(--bg-secondary);
}

.course-includes {
    margin-bottom: 1.5rem;
}

.course-includes h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.include-item i {
    color: #2563eb;
    width: 1rem;
}

.money-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 0.5rem;
    color: #166534;
    font-size: 0.875rem;
    font-weight: 500;
}

.money-back i {
    color: #059669;
}

/* Course Creation Page */
.course-creation {
    padding: 2rem 0 4rem;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.creation-header {
    text-align: center;
    margin-bottom: 3rem;
}

.creation-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.creation-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 100%;
    width: 2rem;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.progress-step.completed:not(:last-child)::after {
    background: #2563eb;
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-number {
    background: #2563eb;
    color: white;
}

.progress-step.completed .step-number {
    background: #059669;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.progress-step.active .step-label {
    color: #2563eb;
}

.progress-step.completed .step-label {
    color: #059669;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.form-step {
    display: none;
    padding: 2rem;
}

.form-step.active {
    display: block;
}

.step-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group small {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.price-input {
    position: relative;
}

.currency {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 500;
}

.price-input input {
    padding-left: 2rem;
}

.file-upload {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-upload:hover {
    border-color: #2563eb;
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content i {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.file-upload-content p {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.file-upload-content small {
    color: var(--text-secondary);
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.checkbox-label input,
.radio-label input {
    display: none;
}

.checkmark,
.radio-mark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.radio-mark {
    border-radius: 50%;
}

.checkbox-label input:checked + .checkmark,
.radio-label input:checked + .radio-mark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.radio-label input:checked + .radio-mark::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--bg-primary);
    border-radius: 50%;
}

.radio-content {
    flex: 1;
}

.radio-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.radio-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Content Builder Sections */
.content-builder {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-builder h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.content-builder > div > p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.objectives-container,
.curriculum-container,
.requirements-container {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-primary);
}

.objective-item,
.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-primary);
    transition: all 0.2s;
}

.objective-item:hover,
.requirement-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.objective-input-group,
.requirement-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.objective-icon {
    color: #059669;
    font-size: 1.125rem;
}

.requirement-icon {
    color: #dc2626;
    font-size: 1.125rem;
}

.objective-input,
.requirement-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
}

.objective-input::placeholder,
.requirement-input::placeholder {
    color: var(--text-tertiary);
}

.remove-objective,
.remove-requirement,
.remove-lecture {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.25rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.remove-objective:hover,
.remove-requirement:hover,
.remove-lecture:hover {
    background: #fecaca;
    border-color: #f87171;
}

.add-objective-btn,
.add-requirement-btn,
.add-lecture-btn,
.add-section-btn {
    background: var(--bg-primary);
    color: #2563eb;
    border: 2px dashed #2563eb;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
    font-size: 0.875rem;
}

.add-objective-btn:hover,
.add-requirement-btn:hover,
.add-lecture-btn:hover,
.add-section-btn:hover {
    background: #eff6ff;
    border-style: solid;
}

.curriculum-section {
    background: var(--bg-primary);
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px var(--shadow-sm);
}

.section-header-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.section-icon {
    color: #2563eb;
    font-size: 1.25rem;
}

.section-title-input {
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    flex: 1;
}

.section-title-input::placeholder {
    color: var(--text-tertiary);
}

.remove-section {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.25rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-section:hover {
    background: #fecaca;
    border-color: #f87171;
}

.section-lectures {
    margin-bottom: 1rem;
}

.lecture-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.lecture-item:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lecture-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.lecture-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lecture-title-input {
    font-size: 1rem;
    font-weight: 500;
    border: none;
    outline: none;
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    color: var(--text-primary);
}

.lecture-title-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.lecture-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lecture-type-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: var(--bg-primary);
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 120px;
}

.lecture-type-select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.duration-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.duration-input:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.lecture-duration-input {
    border: none;
    outline: none;
    background: transparent;
    width: 60px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.duration-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.add-lecture-btn {
    margin-top: 0.5rem;
    align-self: flex-start;
}

.publish-options {
    margin-top: 2rem;
}

.publish-options h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.publish-choice {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    transition: border-color 0.2s;
}

.publish-choice:hover {
    border-color: #2563eb;
}

.course-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.preview-card {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.preview-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.preview-header p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.preview-course-card {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.preview-course-image {
    position: relative;
    height: 8rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.placeholder-image i {
    font-size: 2rem;
    color: var(--text-tertiary);
}

.preview-course-content {
    padding: 1rem;
}

.preview-course-content .course-category {
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.preview-course-content .course-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.preview-course-content .course-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.preview-course-content .course-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.preview-objectives h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.preview-objectives ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-objectives li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.preview-objectives li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 600;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: var(--bg-secondary);
}

.form-navigation button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#prevBtn {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid #d1d5db;
}

#prevBtn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-tertiary);
}

#nextBtn,
#submitBtn {
    background: #2563eb;
    color: white;
    border: none;
}

#nextBtn:hover,
#submitBtn:hover {
    background: #1d4ed8;
}

/* Checkout Page */
.checkout-page {
    padding: 2rem 0 4rem;
    background: var(--bg-secondary);
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-form-section {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.form-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h2 i {
    color: #2563eb;
}

#payment-element {
    min-height: 200px;
    margin-top: 1rem;
}

.payment-message {
    margin-top: 1rem;
}

.stripe-notice {
    padding: 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #0369a1;
}

.stripe-notice i {
    color: #0284c7;
}

.order-summary-section {
    position: sticky;
    top: 2rem;
}

.order-summary {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.order-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-summary h2 i {
    color: #2563eb;
}

.cart-items {
    margin-bottom: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.25rem;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 0;
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    background: var(--bg-primary);
}

.cart-item:hover {
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-image {
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.cart-item-instructor {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.cart-item-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cart-item-category,
.cart-item-level {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-transform: capitalize;
}

.cart-item-category {
    background: #eff6ff;
    color: #1e40af;
}

.cart-item-level {
    background: #f0fdf4;
    color: #166534;
}

.remove-item-btn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.remove-item-btn:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.cart-item-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2563eb;
}

.item-image {
    width: 4rem;
    height: 3rem;
    border-radius: 0.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.item-instructor {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.item-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.item-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.item-level {
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 500;
}

.item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.item-price .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.remove-item {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 0.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.remove-item:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-cart i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.promo-code-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-primary);
}

.promo-code-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
}

.promo-input-group input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.promo-input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.apply-promo-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.apply-promo-btn:hover {
    background: #1d4ed8;
}

.order-totals {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.total-row.promo-discount {
    color: #059669;
}

.total-row.promo-discount span:last-child {
    font-weight: 600;
}

.total-final {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.checkout-actions {
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkout-btn:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.checkout-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.continue-shopping:hover {
    color: #2563eb;
}

.security-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 0.5rem;
    border: 1px solid #bbf7d0;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #166534;
}

.security-item i {
    color: #059669;
    width: 1rem;
    text-align: center;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #059669;
    margin-bottom: 1.5rem;
}

.success-message h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.success-details {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.success-details p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.success-details p:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive for Checkout */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .order-summary-section {
        position: static;
        order: -1;
    }
    
    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 140px;
    }

    .cart-item-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .remove-item-btn {
        align-self: flex-end;
    }

    .item-image {
        width: 100%;
        height: 8rem;
    }
    
    .item-price {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .security-badges {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Instructor Courses Page Styles */
.instructor-courses-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    background: var(--bg-primary);
}

.instructor-courses-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.instructor-courses-page .page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.instructor-courses-page .page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Instructor Stats Grid */
.instructor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.stat-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Course Filters */
.course-filters {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: var(--bg-primary);
    color: #64748b;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}

.filter-tab.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-actions .filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-actions .filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Instructor Courses List */
.instructor-courses-list {
    display: grid;
    gap: 1.5rem;
}

.instructor-course-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.instructor-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.course-thumbnail {
    position: relative;
    width: 200px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
}

.status-published {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.status-draft {
    background: rgba(251, 191, 36, 0.9);
    color: white;
}

.status-archived {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}



.course-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.course-description {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.meta-item i {
    color: #3b82f6;
}

.course-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.stat-item i {
    color: #3b82f6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instructor-courses-page .page-header h1 {
        font-size: 2rem;
    }
    
    .instructor-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .course-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .instructor-course-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .course-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .course-actions {
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: #2a3b52;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-tertiary);
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}

.footer-links h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    max-width: 28rem;
    width: 100%;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-secondary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.instructor-profile {
    text-align: center;
    padding: 1rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.input-group input {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.full-width {
    width: 100%;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-switch p {
    color: var(--text-secondary);
    margin: 0;
}

.auth-switch button {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.auth-switch button:hover {
    color: #1d4ed8;
}

/* User Dropdown Menu */
.user-dropdown-menu {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-primary);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
}

.user-info {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.user-dropdown-menu hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.menu-item i {
    width: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.sign-out-btn {
    color: #dc2626;
    border-top: 1px solid #e5e7eb;
}

.sign-out-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.sign-out-btn i {
    color: #dc2626;
}

/* Instructor Profile Page */
.instructor-profile-page {
    padding: 2rem 0 4rem;
    background: var(--bg-secondary);
}

.instructor-profile-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.instructor-info-card {
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.instructor-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.instructor-profile-image {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.instructor-details h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.instructor-role {
    font-size: 1.125rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.instructor-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.instructor-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.instructor-stats .stat-item i {
    color: #2563eb;
}

.instructor-bio h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.instructor-bio p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.instructor-courses h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Mobile responsive for instructor profile */
@media (max-width: 768px) {
    .instructor-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .instructor-profile-image {
        width: 6rem;
        height: 6rem;
        align-self: center;
    }
    
    .instructor-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .instructor-details h1 {
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-search {
        display: block;
    }
    
    .search-bar {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .filters-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filters-left {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .course-preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .enrollment-sidebar {
        position: static;
        order: -1;
    }
    
    .course-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .course-preview {
        grid-template-columns: 1fr;
    }
    
    .lecture-inputs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.125rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .creation-header h1 {
        font-size: 2rem;
    }
    
    .step-content h2 {
        font-size: 1.5rem;
    }
    
    .progress-indicator {
        gap: 0.5rem;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}