:root {
    --bg-primary: #0a0a0a;
    --bg-card: #141414;
    --bg-hover: #1a1a1a;
    --bg-input: #252525;
    --border: #222;
    --border-hover: #333;
    --text-primary: #fff;
    --text-body: #ccc;
    --text-muted: #888;
    --text-subtle: #666;
    --text-dim: #555;
    --text-faint: #444;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-indigo: #6366f1;
    --accent-green: #4ade80;
    --accent-green-dark: #22c55e;
    --accent-red: #f87171;
    --accent-blue: #4da6ff;
    --accent-yellow: #fbbf24;
    --code-color: #e5c07b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Auth Header */
.auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-header-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
}

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

.auth-header-name {
    font-size: 13px;
    color: #888;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    border: 1px solid #2d5a8a;
    color: #4da6ff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.badge svg {
    width: 16px;
    height: 16px;
}

/* Main Title */
.main-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 48px;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Index Courses Grid */
.index-courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.index-course-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, #141414 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.index-course-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, #1a1a1a 100%);
    transform: translateY(-2px);
}

.index-card-icon {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-card-icon svg {
    width: 28px;
    height: 28px;
}

.index-course-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.index-course-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.index-lessons-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin-top: auto;
}

.index-lessons-count svg {
    color: #4ade80;
}

/* Learning Grid */
.learning-grid {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}

.learning-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.learning-item:not(.locked):hover {
    background: #1a1a1a;
    border-color: #333;
}

.learning-item.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #222;
    border-radius: 8px;
    flex-shrink: 0;
    color: #888;
}

.learning-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.lock-icon {
    flex-shrink: 0;
    color: #555;
    width: 16px;
    height: 16px;
}

/* Resources Section */
.resources-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 14px 16px;
    color: #666;
}

.resource-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.resource-item span {
    flex: 1;
    font-size: 14px;
}

.prompt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 14px 16px;
    color: #b8860b;
}

.prompt-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.prompt-item .item-icon {
    color: #b8860b;
}

.prompt-item span {
    flex: 1;
    font-size: 14px;
}

/* Courses List */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.course-item:not(.locked):hover {
    background: #1a1a1a;
    border-color: #333;
}

.course-item.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.course-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #222;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
}

.course-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.course-description {
    font-size: 13px;
    color: #666;
}

.arrow-icon {
    flex-shrink: 0;
    color: #444;
}

/* Access Notice */
.access-notice {
    text-align: center;
    font-size: 13px;
    color: #555;
    margin: 40px 0;
}

.access-notice a {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
}

.access-notice a:hover {
    color: #a78bfa;
}

/* Footer */
.footer {
    border-top: 1px solid #1a1a1a;
    padding-top: 24px;
    margin-top: auto;
}

.footer-trust {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.trust-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #888;
    font-size: 14px;
    transition: color 0.2s ease;
}

.trust-logo:hover {
    color: #a78bfa;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    white-space: nowrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #888;
}

.copyright {
    font-size: 13px;
    color: #444;
}

/* Help Banner */
.help-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a1a1a;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 24px;
    max-width: 340px;
    z-index: 9999;
    font-family: Inter, sans-serif;
    flex-direction: column;
    gap: 12px;
}

.help-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-banner-title {
    color: #a78bfa;
    font-weight: 700;
    font-size: 15px;
}

.help-banner-close {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.help-banner-close:hover {
    color: #999;
}

.help-banner-text {
    color: #888;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.help-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.help-banner-btn:hover {
    opacity: 0.9;
}

/* Promo blocks (partner/affiliate) */
.promo-card {
    background: rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 1.4rem 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
}

.promo-card:hover {
    border-color: rgba(124, 58, 237, 0.45);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .main-title {
        font-size: 24px;
    }

    .index-courses-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .learning-grid {
        gap: 8px;
    }

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

@media (max-width: 480px) {
    .index-courses-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==================== */
/* Course Page Styles   */
/* ==================== */

.course-page {
    padding-top: 24px;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a78bfa;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.7);
}

.help-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    background: transparent;
    color: #a78bfa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-btn:hover {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.7);
}

.course-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
    text-align: center;
}

/* Modules */
.module {
    margin-bottom: 24px;
}

.module-title {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-bottom: 12px;
}

.module-name {
    color: #a78bfa;
}

.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.lesson-item:hover {
    background: #1a1a1a;
    border-color: #333;
}

.lesson-icon {
    flex-shrink: 0;
    color: #8b5cf6;
}

.lesson-item.completed .lesson-icon {
    color: #8b5cf6;
}

.lesson-item.advanced .lesson-icon {
    color: #8b5cf6;
}

.lesson-item span {
    font-size: 14px;
}

/* Templates Section */
.templates-section {
    margin-top: 48px;
    margin-bottom: 40px;
}

.templates-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.templates-icon-svg {
    color: #8b5cf6;
    flex-shrink: 0;
}

.templates-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.templates-description {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
}

.template-category {
    margin-bottom: 24px;
}

.category-title {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-bottom: 12px;
}

.templates-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.template-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.template-item:hover {
    background: #1a1a1a;
    border-color: #333;
}

/* Responsive for Course Pages */
@media (max-width: 768px) {
    .course-page-title {
        font-size: 24px;
    }

    .templates-grid {
        gap: 6px;
    }
}

/* ==================== */
/* Lesson Page Styles   */
/* ==================== */

.lesson-page {
    padding-top: 24px;
    max-width: 700px;
}

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

.lesson-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
}

.lesson-meta {
    text-align: center;
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.lesson-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #8b5cf6, #6366f1);
    margin: 0 auto 40px;
    border-radius: 2px;
}

.lesson-content {
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
}

.lesson-content code {
    background: #252525;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    color: #e5c07b;
}

.intro-text {
    margin-bottom: 12px;
}

.intro-highlight {
    font-weight: 600;
    color: #fff;
    margin-bottom: 32px;
}

/* Lesson Sections */
.lesson-section {
    margin-bottom: 40px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.section-heading svg {
    color: #8b5cf6;
}

.section-subtitle {
    color: #888;
    margin-bottom: 20px;
}

.section-intro {
    margin-bottom: 20px;
}

/* Code Image Block */
.code-image {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.code-image-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: #252525;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.main-image {
    width: 100%;
    display: block;
}

.description-text {
    margin-bottom: 20px;
}

/* Info Blocks */
.info-block {
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.info-block.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.info-block.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 88, 12, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.info-block.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.info-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.info-icon {
    font-size: 16px;
}

.info-title {
    font-weight: 600;
    color: #fff;
}

.info-block p {
    color: #ccc;
    margin: 0;
}

.info-block p + p {
    margin-top: 12px;
}

/* Feature Groups */
.feature-group {
    margin-bottom: 20px;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #ccc;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

.highlight-link {
    color: #888;
    margin-top: 16px;
}

.highlight-link a {
    color: #8b5cf6;
    text-decoration: underline;
}

.highlight-link a:hover {
    color: #a78bfa;
}

/* Numbered Items */
.numbered-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.number {
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.numbered-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.numbered-content p {
    margin-bottom: 12px;
}

.numbered-content em {
    color: #888;
    font-style: italic;
}

.italic-note {
    font-style: italic;
    color: #888;
}

/* Tariffs */
.tariffs-title {
    font-weight: 600;
    color: #fff;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
}

.tariffs-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px 0;
}

.tariffs-list li {
    margin-bottom: 6px;
}

.tariffs-list strong {
    color: #fff;
}

.tariff-note {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* Next Steps */
.next-steps-list {
    padding-left: 20px;
    margin-bottom: 16px;
}

.next-steps-list li {
    margin-bottom: 8px;
    color: #ccc;
}

.highlight-text {
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
}

/* Next Lesson Navigation */
.next-lesson-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 40px 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.next-lesson-nav:hover {
    background: #1a1a1a;
    border-color: #333;
}

.next-lesson-label {
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.next-lesson-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.next-lesson-nav svg {
    color: #555;
    flex-shrink: 0;
}

/* VS Code Banner */
.vscode-banner {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1f33 100%);
}

.vscode-banner .main-image {
    width: 100%;
    display: block;
}

/* Step Blocks */
.step-block {
    margin-bottom: 24px;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.step-list {
    padding-left: 24px;
    margin: 0;
}

.step-list li {
    margin-bottom: 10px;
    color: #ccc;
}

.step-list strong {
    color: #fff;
}

.step-list code {
    background: #252525;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    color: #e5c07b;
}

.link {
    color: #4da6ff;
    text-decoration: underline;
}

.link:hover {
    color: #7bbfff;
}

/* Yellow Info Block */
.info-block.yellow {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(202, 138, 4, 0.1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Check Block */
.check-block {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.check-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    color: #ccc;
}

.check-list li.checked::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 600;
    width: 20px;
    height: 20px;
    background: rgba(74, 222, 128, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.check-result {
    color: #888;
    font-style: italic;
}

/* Lesson Navigation Grid */
.lesson-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 40px 0;
}

.lesson-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lesson-nav-item:hover {
    background: #1a1a1a;
    border-color: #333;
}

.lesson-nav-item.prev {
    justify-content: flex-start;
}

.lesson-nav-item.next {
    justify-content: flex-end;
    text-align: right;
}

.lesson-nav-item svg {
    color: #555;
    flex-shrink: 0;
}

.lesson-nav-text {
    display: flex;
    flex-direction: column;
}

.lesson-nav-label {
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.lesson-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Responsive for Lesson Pages */
@media (max-width: 768px) {
    .lesson-title {
        font-size: 24px;
    }

    .numbered-item {
        flex-direction: column;
        gap: 8px;
    }

    .next-lesson-nav {
        padding: 16px 20px;
    }

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

    .lesson-nav-item.next {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Additional Lesson Styles */
.hotkey-line {
    margin: 4px 0 !important;
}

.hotkey-line code {
    background: #252525;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    color: #e5c07b;
}

/* Gray Info Block */
.info-block.gray {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(75, 85, 99, 0.1) 100%);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.italic-text {
    font-style: italic;
}

/* Subsection Titles */
.subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 32px 0 16px;
}

.method-title {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    margin: 24px 0 12px;
}

/* Problem Blocks */
.problem-block {
    margin-bottom: 24px;
}

.problem-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

/* Folder Icon Block */
.folder-icon-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 32px;
    margin: 20px 0;
}

.folder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.folder-icon-block span {
    font-size: 14px;
    color: #888;
}

/* Code Block */
.code-block {
    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
    white-space: pre;
}

/* Green Info Block */
.info-block.green {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Red Info Block */
.info-block.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.info-block .step-list.light li {
    color: #ccc;
}

/* Name Examples */
.name-examples {
    margin-top: 12px;
}

.good-example {
    color: #4ade80;
    margin: 4px 0;
}

.bad-example {
    color: #ef4444;
    margin: 4px 0;
}

/* Input Example */
.input-example {
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #888;
    font-style: italic;
}

/* Success Check Result */
.check-result.success {
    color: #4ade80;
    font-weight: 600;
    font-style: normal;
}

/* Quote Block */
.quote-block {
    background: #141414;
    border-left: 3px solid #555;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.quote-block p {
    margin: 0;
    color: #888;
    font-style: italic;
}

/* Highlight Text Purple */
.highlight-text-purple {
    color: #a78bfa;
    font-weight: 500;
    margin: 20px 0;
}

/* Aside Block */
.aside-block {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(202, 138, 4, 0.05) 100%);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.aside-marker {
    font-size: 20px;
    flex-shrink: 0;
}

.aside-content {
    flex: 1;
}

.aside-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.aside-content p {
    margin: 0;
    color: #ccc;
}

/* Example Block */
.example-block {
    margin-bottom: 24px;
}

.example-label {
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

.example-response {
    color: #888;
    font-style: italic;
    margin-top: 8px;
}

/* Conversation List */
.conversation-list li {
    margin-bottom: 8px;
}

.conversation-list em {
    color: #888;
}

/* Practice Step */
.practice-step {
    margin-bottom: 20px;
}

.practice-step p {
    margin-bottom: 8px;
}

/* Code Block Bad */
.code-block.bad {
    border-color: rgba(239, 68, 68, 0.3);
}

.code-block.bad pre {
    color: #f87171;
}

/* Dialogue Block */
.dialogue-block {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.dialogue-block p {
    margin-bottom: 12px;
    color: #ccc;
}

.dialogue-block p:last-child {
    margin-bottom: 0;
}

.dialogue-block em {
    color: #888;
}

/* Expandable Code Block */
.code-block.expandable {
    position: relative;
}

.expand-hint {
    text-align: center;
    color: #555;
    font-size: 12px;
    padding-top: 8px;
    cursor: pointer;
}

/* Info Block Subtitle */
.info-subtitle {
    margin-top: 16px !important;
    margin-bottom: 8px !important;
    color: #fff;
}

/* Cycle Diagram */
.cycle-diagram {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    overflow-x: auto;
}

.cycle-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cycle-step {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.cycle-arrow {
    color: #8b5cf6;
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .cycle-steps {
        flex-direction: column;
        gap: 12px;
    }

    .cycle-arrow {
        transform: rotate(90deg);
    }
}

/* Example Card */
.example-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.example-card-title {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 12px;
}

.example-note {
    color: #666;
    font-style: italic;
    margin-top: 8px;
    font-size: 14px;
}

/* Query Group */
.query-group {
    margin: 20px 0;
}

.query-group-title {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 12px;
}

.query-group-title.yellow {
    color: #fbbf24;
}

/* Workflow Diagram */
.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.workflow-step {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 16px;
    color: #ccc;
    font-size: 14px;
}

.workflow-step.highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    color: #fff;
}

.workflow-step.highlight-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.workflow-arrow {
    color: #555;
    font-size: 18px;
}

/* Highlight text inline */
.highlight-text-inline {
    color: #8b5cf6;
    font-weight: 600;
}

.highlight-text-green {
    color: #22c55e;
    font-weight: 600;
}

/* Solution text */
.solution {
    color: #22c55e;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .workflow-diagram {
        flex-direction: column;
        gap: 12px;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }
}

/* Chat Type */
.chat-type {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0;
}

.chat-type h4 {
    color: #8b5cf6;
    margin-bottom: 8px;
    font-size: 16px;
}

.chat-type p {
    color: #aaa;
    margin: 0;
}

/* Problem Block */
.problem-block {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.problem-block h4 {
    color: #f87171;
    margin-bottom: 16px;
    font-size: 18px;
}

/* Path Block */
.path-block {
    background: #141414;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.path-block h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 18px;
}

.highlight-link {
    color: #8b5cf6;
    text-decoration: underline;
}

/* File Structure */
.file-structure {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
}

.file-structure pre {
    color: #888;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Marker Colors */
code.marker {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

code.marker.red {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

code.marker.green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

code.marker.yellow {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

code.marker.blue {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

/* Final Message */
.final-message {
    margin-top: 32px;
}

/* Completed Navigation */
.lesson-nav-item.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.3);
}

.lesson-nav-item.completed .lesson-nav-label {
    color: #22c55e;
}

/* Expandable Learning Items */
.learning-item.expandable {
    cursor: pointer;
    position: relative;
}

.learning-item.expandable .chevron-icon {
    color: #444;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.learning-item.expandable.expanded .chevron-icon {
    transform: rotate(90deg);
}

.learning-subitems {
    display: none;
    flex-direction: column;
    gap: 2px;
    grid-column: 1 / -1;
    margin-top: -4px;
}

.learning-subitems.expanded {
    display: flex;
}

.learning-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    color: #888;
    transition: all 0.2s ease;
}

.learning-subitem:hover {
    background: #1a1a1a;
    border-color: #333;
    color: #ccc;
}

.subitem-bullet {
    width: 6px;
    height: 6px;
    background: #555;
    border-radius: 50%;
    flex-shrink: 0;
}

.learning-subitem:hover .subitem-bullet {
    background: #888;
}

.learning-subitem span:last-child {
    font-size: 14px;
}

@media (max-width: 768px) {
    .learning-subitems {
        grid-column: 1 / -1;
    }
}

/* ==================== */
/* Pricing Page Styles  */
/* ==================== */

.section-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

#pricing .section-heading {
    display: block;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0;
}

.section-desc {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 48px;
}

/* Wider container for pricing page */
.pricing-page .container {
    max-width: 1060px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/* Pricing Card */
.pricing-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card.recommended {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, #111 100%);
    border-color: rgba(139, 92, 246, 0.4);
}

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.pricing-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pricing-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.1;
}

.pricing-price span {
    font-size: 24px;
    font-weight: 400;
    color: #888;
}

.pricing-old-price {
    font-size: 18px;
    color: #555;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.pricing-per-unit {
    font-size: 13px;
    color: #4ade80;
    margin-bottom: 8px;
}

.pricing-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.pricing-savings {
    color: #4ade80;
    font-weight: 600;
}

.pricing-divider {
    width: 100%;
    height: 1px;
    background: #222;
    margin: 16px 0;
}

/* Pricing Features */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    width: 100%;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pricing-features li.disabled {
    color: #555;
}

.pricing-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features li svg.check {
    color: #4ade80;
}

.pricing-features li svg.cross {
    color: #555;
}

/* Pricing Buttons */
.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    border: none;
    font-family: inherit;
}

.pricing-btn.secondary {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
}

.pricing-btn.secondary:hover {
    background: #222;
    border-color: #444;
}

.pricing-btn.primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
}

.pricing-btn.primary:hover {
    background: linear-gradient(135deg, #9b6ff7, #747bf2);
    transform: translateY(-1px);
}

/* Full Package */
.pricing-full {
    max-width: 520px;
    margin: 0 auto 40px;
}

/* Guarantee */
.guarantee-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    justify-content: center;
    margin: 32px 0 16px;
    color: #888;
}

.guarantee-block svg {
    flex-shrink: 0;
    color: #888;
}

.guarantee-block p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.guarantee-block strong {
    color: #ccc;
}

.pricing-guarantee {
    text-align: center;
    font-size: 13px;
    color: #555;
}

/* Comparison Toggle */
.comparison-toggle {
    text-align: center;
    margin: 24px 0;
}

.comparison-toggle button {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.comparison-toggle button:hover {
    border-color: #555;
    color: #ccc;
}

/* Comparison Table */
.comparison-table {
    display: none;
    overflow-x: auto;
    margin: 24px 0;
}

.comparison-table.visible {
    display: block;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a1a;
    text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table thead th {
    color: #888;
    font-weight: 600;
    font-size: 13px;
    padding-bottom: 16px;
}

.comparison-table thead th small {
    display: block;
    color: #555;
    font-weight: 400;
    margin-top: 4px;
}

.comparison-table td.yes {
    color: #4ade80;
    font-weight: 600;
}

.comparison-table td.no {
    color: #333;
}

/* Pricing Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 32px;
    }

    #pricing .section-heading {
        font-size: 26px;
    }

    .pricing-price {
        font-size: 36px;
    }

    .pricing-full {
        max-width: 100%;
        padding: 0;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
}

/* Single next navigation */
.lesson-nav-grid.single-next {
    grid-template-columns: 1fr;
    justify-items: end;
}

.lesson-nav-grid.single-next .lesson-nav-item.next {
    max-width: 50%;
}

@media (max-width: 768px) {
    .lesson-nav-grid.single-next .lesson-nav-item.next {
        max-width: 100%;
    }
}
