/* ===================================
   Best360 Course Platform Styles
   Skool.com Inspired Redesign
   =================================== */

/* CSS Variables - Skool Color Scheme */
:root {
    /* Primary Skool Green */
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;

    /* Secondary colors */
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #06b6d4;
    --success: #22c55e;
    --warning: #eab308;
    --error: #ef4444;

    /* Sidebar Dark Theme */
    --sidebar-bg: #1a1a1a;
    --sidebar-hover: #2a2a2a;
    --sidebar-active: #333333;
    --sidebar-text: #9ca3af;
    --sidebar-text-active: #ffffff;
    --sidebar-border: #2d2d2d;

    /* Content Area */
    --content-bg: #f9fafb;
    --card-bg: #ffffff;

    /* Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --white: #ffffff;
    --black: #000000;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition: all 0.2s ease;

    /* Skool Layout */
    --sidebar-width-collapsed: 72px;
    --sidebar-width-expanded: 280px;
    --topbar-height: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-social {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 0.875rem 1.5rem;
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius);
}

.btn-icon:hover {
    background: var(--gray-100);
}

/* ===================================
   Skool Dark Sidebar
   =================================== */
.skool-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width-expanded);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.skool-sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-brand {
    padding: 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand .logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius);
}

.sidebar-brand .logo-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

.skool-sidebar.collapsed .sidebar-brand .logo-text {
    display: none;
}

.sidebar-nav-list {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.sidebar-nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
}

.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: currentColor;
}

.sidebar-nav-item .nav-label {
    white-space: nowrap;
}

.skool-sidebar.collapsed .sidebar-nav-item .nav-label {
    display: none;
}

.sidebar-section-title {
    padding: 1rem 1rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.skool-sidebar.collapsed .sidebar-section-title {
    display: none;
}

/* Sidebar User & Toggle */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-user:hover {
    background: var(--sidebar-hover);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    color: var(--white);
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.skool-sidebar.collapsed .sidebar-user-info {
    display: none;
}

.sidebar-toggle {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--sidebar-bg);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sidebar-text);
    z-index: 10;
}

.sidebar-toggle:hover {
    background: var(--sidebar-hover);
    color: var(--white);
}

.sidebar-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.skool-sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

/* Progress Widget in Sidebar */
.sidebar-progress-widget {
    margin: 0 0.75rem 1rem;
    padding: 1rem;
    background: var(--sidebar-hover);
    border-radius: var(--radius);
}

.progress-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.progress-widget-title {
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-widget-percent {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
}

.progress-widget-bar {
    height: 6px;
    background: var(--sidebar-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-widget-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.skool-sidebar.collapsed .sidebar-progress-widget {
    display: none;
}

/* ===================================
   Skool Main Layout
   =================================== */
.skool-layout {
    display: flex;
    min-height: 100vh;
    background: var(--content-bg);
}

.skool-main {
    flex: 1;
    margin-left: var(--sidebar-width-expanded);
    transition: margin-left 0.3s ease;
}

.skool-sidebar.collapsed ~ .skool-main {
    margin-left: var(--sidebar-width-collapsed);
}

.skool-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.skool-content-wide {
    max-width: 1200px;
}

/* ===================================
   Skool Tab Navigation
   =================================== */
.skool-tabs {
    display: flex;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.skool-tab {
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    background: none;
}

.skool-tab:hover {
    color: var(--gray-900);
}

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

.skool-tab-content {
    display: none;
}

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

/* ===================================
   Community Feed
   =================================== */
.community-header {
    padding: 1.5rem 0;
}

.community-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.community-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* Post Composer */
.post-composer {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.post-composer-top {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.composer-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
}

.composer-input-wrap {
    flex: 1;
}

.composer-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    background: var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
}

.composer-input:hover {
    border-color: var(--gray-300);
}

.composer-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.post-composer-expanded .composer-input {
    border-radius: var(--radius);
    min-height: 100px;
    resize: vertical;
    cursor: text;
}

.post-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.composer-tools {
    display: flex;
    gap: 0.5rem;
}

.composer-tool {
    padding: 0.5rem;
    color: var(--gray-500);
    border-radius: var(--radius);
    transition: var(--transition);
}

.composer-tool:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.composer-tool svg {
    width: 20px;
    height: 20px;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
}

.category-filter:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

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

/* Post Card */
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author-badge {
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
}

.post-time {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
    margin-top: 0.25rem;
}

.post-options {
    padding: 0.25rem;
    color: var(--gray-400);
    border-radius: var(--radius);
}

.post-options:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.post-content {
    margin-bottom: 1rem;
}

.post-content p {
    color: var(--gray-700);
    line-height: 1.7;
}

.post-content p + p {
    margin-top: 0.75rem;
}

.post-image {
    margin: 1rem -1.5rem;
    max-height: 400px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    object-fit: cover;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.post-action:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.post-action.liked {
    color: var(--error);
}

.post-action svg {
    width: 18px;
    height: 18px;
}

/* Comments Section */
.post-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.comment-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-top: 0.125rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.comment-action {
    cursor: pointer;
    transition: var(--transition);
}

.comment-action:hover {
    color: var(--primary);
}

/* Comment Input */
.comment-input-wrap {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.comment-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: var(--transition);
}

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

/* ===================================
   Member Cards
   =================================== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.member-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.member-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.member-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: var(--radius-full);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.member-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-bio {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.member-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

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

.member-stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
}

.member-stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Member Search */
.members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.members-search {
    position: relative;
}

.members-search input {
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    width: 250px;
    transition: var(--transition);
}

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

.members-search svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

/* ===================================
   Classroom Module Cards (Skool Style)
   =================================== */
.classroom-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.classroom-module {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.classroom-module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.classroom-module-header:hover {
    background: var(--gray-50);
}

.module-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.125rem;
}

.module-icon-circle.locked {
    background: var(--gray-300);
}

.module-icon-circle.completed {
    background: var(--success);
}

.classroom-module-info {
    flex: 1;
}

.classroom-module-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.classroom-module-meta {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.classroom-module-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-progress-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.module-progress-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.module-progress-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.module-progress-badge.in-progress {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.classroom-module-toggle {
    padding: 0.5rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.classroom-module-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.classroom-module.expanded .classroom-module-toggle svg {
    transform: rotate(180deg);
}

/* Lesson List */
.classroom-lessons {
    border-top: 1px solid var(--gray-100);
    display: none;
}

.classroom-module.expanded .classroom-lessons {
    display: block;
}

.classroom-lesson {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem 1rem 5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

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

.classroom-lesson:hover {
    background: var(--gray-50);
}

.lesson-status-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}

.classroom-lesson.completed .lesson-status-icon {
    color: var(--success);
}

.classroom-lesson.current .lesson-status-icon {
    color: var(--primary);
}

.lesson-info {
    flex: 1;
}

.lesson-title {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.lesson-duration {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.lesson-current-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius);
}

.logo-text {
    color: var(--gray-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gray-900);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-600);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-minimal {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.navbar-minimal .container {
    justify-content: center;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

.hero-visual {
    position: relative;
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-3d {
    position: relative;
    width: 200px;
    height: 300px;
}

.camera-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--gray-800) 0%, var(--gray-900) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.camera-lens {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--gray-600) 0%, var(--gray-800) 50%, var(--gray-900) 100%);
    border-radius: 50%;
    border: 3px solid var(--gray-700);
}

.lens-left {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.lens-right {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.camera-screen {
    position: absolute;
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.badge-2 {
    top: 50%;
    left: 0;
    animation-delay: 0.5s;
}

.badge-3 {
    bottom: 15%;
    right: 5%;
    animation-delay: 1s;
}

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

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ===================================
   Sections
   =================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ===================================
   Curriculum Section
   =================================== */
.curriculum {
    background: var(--gray-50);
}

.curriculum-modules {
    max-width: 800px;
    margin: 0 auto;
}

.module {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.module-header:hover {
    background: var(--gray-50);
}

.module-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 48px;
}

.module-info {
    flex: 1;
}

.module-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.module-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.module-toggle {
    padding: 0.5rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.module-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.module.active .module-toggle svg {
    transform: rotate(180deg);
}

.module-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

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

.lesson-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gray-100);
}

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

.lesson-icon {
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: var(--warning);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.testimonial-card > p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
}

.author-title {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===================================
   Pricing Section
   =================================== */
.pricing {
    background: var(--gray-50);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.07);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.pricing-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-500);
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.pricing-features .check {
    color: var(--success);
    font-weight: 600;
}

.pricing-features .x {
    color: var(--gray-300);
}

.pricing-features li.disabled {
    color: var(--gray-400);
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.guarantee-text strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.guarantee-text p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-100);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--secondary-light) 100%);
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--gray-400);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ===================================
   Auth Pages
   =================================== */
.auth-page {
    min-height: 100vh;
    background: var(--gray-50);
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

.auth-card-wide {
    max-width: 900px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-500);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.link {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.link:hover {
    color: var(--primary-dark);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.9375rem;
    color: var(--gray-500);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-align: center;
}

.form-note a {
    color: var(--primary);
}

/* Signup Layout */
.signup-container {
    padding: 2rem 1rem 4rem;
}

.signup-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.signup-plan-section {
    padding-right: 2rem;
    border-right: 1px solid var(--gray-100);
}

.signup-plan-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.plan-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.plan-option {
    cursor: pointer;
}

.plan-option input {
    display: none;
}

.plan-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.plan-option input:checked + .plan-card {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.plan-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 0.125rem 0.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
}

.plan-info h3 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.plan-info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.plan-features h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.plan-features ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.plan-features ul li::before {
    content: '✓';
    color: var(--success);
    font-weight: 600;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.payment-option input:checked + .payment-card {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.payment-form {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.stripe-element {
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.order-summary {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.summary-total {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.125rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.trust-badges .badge-icon {
    font-size: 1.25rem;
}

/* ===================================
   Old Dashboard Styles (for backwards compatibility)
   =================================== */
.dashboard-page {
    background: var(--gray-50);
}

.dashboard-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 100;
}

.nav-brand .logo {
    font-size: 1.125rem;
}

.nav-brand .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 0.625rem;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50%;
}

.user-menu-btn span:not(.user-avatar) {
    font-weight: 500;
    color: var(--gray-700);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 180px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.user-dropdown a:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Old Sidebar (preserved for backwards compatibility) */
.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-100);
    overflow-y: auto;
    z-index: 50;
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.sidebar-nav .nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.sidebar-nav .nav-item.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.sidebar-nav .nav-item svg {
    flex-shrink: 0;
}

.sidebar-progress {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

.sidebar-progress h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-bg {
    stroke: var(--gray-200);
}

.progress-fill {
    stroke: var(--primary);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.progress-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.progress-stats .stat span:first-child {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.progress-stats .stat span:last-child {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Dashboard Main */
.dashboard-main {
    margin-left: 260px;
    padding: 64px 0 0;
    min-height: 100vh;
}

.dashboard-main > * {
    padding: 0 2rem;
}

.dashboard-header {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.welcome-section h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.welcome-section p {
    color: var(--gray-500);
}

.dashboard-section {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 1.125rem;
}

/* Continue Card */
.continue-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.continue-thumbnail {
    position: relative;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-play {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail-play:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.thumbnail-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.thumbnail-progress .progress-bar {
    height: 100%;
    background: var(--primary);
}

.continue-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.continue-module {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.continue-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.continue-info p {
    color: var(--gray-500);
    flex: 1;
}

.continue-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.continue-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Module Cards */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.module-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.module-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.module-card.locked {
    opacity: 0.6;
}

.module-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.module-card:not(.locked) .module-icon {
    background: var(--primary);
    color: var(--white);
}

.module-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.module-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.module-progress {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.module-progress .progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}

.module-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
}

.module-status.completed {
    color: var(--success);
}

.module-status.in-progress {
    color: var(--primary);
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.quick-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    color: var(--gray-600);
}

.quick-link span {
    font-weight: 500;
    color: var(--gray-700);
}

/* ===================================
   Course Page
   =================================== */
.course-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
}

.course-module {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.module-header-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.module-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.module-details h2 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.module-details p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.module-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.module-progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.completed-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-weight: 600;
    border-radius: 100px;
}

.progress-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    font-weight: 600;
    border-radius: 100px;
}

.lesson-count {
    color: var(--gray-500);
}

.module-expand {
    padding: 0.5rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.module-expand[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.module-lessons {
    border-top: 1px solid var(--gray-100);
    padding: 0.5rem 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

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

.lesson-status {
    flex-shrink: 0;
    color: var(--gray-300);
}

.lesson-item.completed .lesson-status {
    color: var(--success);
}

.lesson-item.current .lesson-status {
    color: var(--primary);
}

.lesson-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lesson-info h4 {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.lesson-duration {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.current-badge {
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

/* ===================================
   Lesson Page
   =================================== */
.lesson-page {
    background: var(--gray-900);
}

.lesson-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--gray-900);
    border-bottom: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 100;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--white);
}

.lesson-module-name {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.logo-mini .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.5rem;
}

.lesson-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    min-height: calc(100vh - 56px);
    margin-top: 56px;
}

.lesson-main {
    background: var(--gray-900);
    overflow-y: auto;
}

.video-container {
    background: var(--black);
}

.video-player {
    aspect-ratio: 16/9;
    max-height: calc(100vh - 300px);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

.placeholder-content {
    text-align: center;
    color: var(--gray-400);
}

.placeholder-content svg {
    margin-bottom: 1rem;
}

.placeholder-content p {
    margin-bottom: 0.5rem;
}

.placeholder-note {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.video-controls {
    padding: 0 1rem 1rem;
    background: var(--black);
}

.video-progress-bar {
    height: 4px;
    background: var(--gray-700);
    border-radius: 2px;
    cursor: pointer;
}

.lesson-content {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: -1rem;
}

.lesson-header {
    margin-bottom: 2rem;
}

.lesson-number {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lesson-header h1 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.lesson-description {
    color: var(--gray-500);
}

.lesson-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--gray-700);
}

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

.tab-content {
    display: none;
}

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

.overview-content h3,
.resources-content h3,
.notes-content h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.learn-list {
    margin-bottom: 2rem;
}

.learn-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--gray-600);
}

.learn-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 600;
}

.overview-content > p {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: var(--transition);
}

.resource-item:hover {
    background: var(--gray-100);
}

.resource-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--gray-500);
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.resource-info span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.resource-download {
    color: var(--primary);
}

.notes-content textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.notes-content textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Lesson Sidebar */
.lesson-sidebar {
    background: var(--gray-800);
    border-left: 1px solid var(--gray-700);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--gray-700);
}

.sidebar-header h3 {
    font-size: 0.9375rem;
    color: var(--white);
}

.lesson-list-sidebar {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.sidebar-lesson {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-lesson:hover {
    background: var(--gray-700);
}

.sidebar-lesson.current {
    background: rgba(16, 185, 129, 0.2);
}

.sidebar-lesson-status {
    flex-shrink: 0;
    color: var(--gray-600);
}

.sidebar-lesson.completed .sidebar-lesson-status {
    color: var(--success);
}

.sidebar-lesson.current .sidebar-lesson-status {
    color: var(--primary);
}

.sidebar-lesson-info {
    flex: 1;
    min-width: 0;
}

.sidebar-lesson-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-lesson.current .sidebar-lesson-title {
    color: var(--white);
}

.sidebar-lesson-duration {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.lesson-navigation {
    padding: 1rem;
    border-top: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lesson-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-400);
    border-radius: var(--radius);
    transition: var(--transition);
}

.lesson-nav-btn:hover {
    background: var(--gray-700);
    color: var(--white);
}

.complete-btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.8125rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .continue-card {
        grid-template-columns: 1fr;
    }

    .continue-thumbnail {
        max-height: 250px;
    }

    .signup-layout {
        grid-template-columns: 1fr;
    }

    .signup-plan-section {
        padding-right: 0;
        border-right: none;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .lesson-layout {
        grid-template-columns: 1fr;
    }

    .lesson-sidebar {
        position: fixed;
        top: 56px;
        right: -320px;
        bottom: 0;
        width: 320px;
        transition: right 0.3s ease;
    }

    .lesson-sidebar.open {
        right: 0;
    }

    /* Skool Layout Responsive */
    .skool-sidebar {
        width: var(--sidebar-width-collapsed);
    }

    .skool-sidebar .sidebar-brand .logo-text,
    .skool-sidebar .sidebar-nav-item .nav-label,
    .skool-sidebar .sidebar-section-title,
    .skool-sidebar .sidebar-user-info,
    .skool-sidebar .sidebar-progress-widget {
        display: none;
    }

    .skool-main {
        margin-left: var(--sidebar-width-collapsed);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links,
    .nav-auth {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }

    /* Skool Layout Mobile */
    .skool-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width-expanded);
    }

    .skool-sidebar.open {
        transform: translateX(0);
    }

    .skool-main {
        margin-left: 0;
    }

    .skool-content {
        padding: 1rem;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .members-search input {
        width: 100%;
    }

    .post-image {
        margin: 1rem -1rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }
}
