        :root {
            --dark: #0f1117;
            --dark-soft: #2d3142;
            --dark-muted: #6b7280;
            --light-overlay: #f4f3ef;
            --light-deep: #ede9e0;
            --light: #faf9f6;
            --white: #ffffff;
            --accent: #00a8a8;
            --highlight: #e0f5f5;
            --coral: #e85d3a;
            --coral-light: #fdeee9;
            --gold: #c9a84c;
            --gold-light: #fdf5e4;
            --sage: #6b8f6b;
            --sage-light: #ecf3ec;
            --main: #1a2f4e;
            --primary: #0f4c81;
            --secondary: #00a8cc;
            --orange: #ff6b35;
            --success: #06d6a0;
            --border: #e5e0d8;
            --shadow: rgba(15,17,23,0.08);
            --shadow-md: rgba(15,17,23,0.14);
            --shadow-lg: rgba(15,17,23,0.22);
            }
/* Color swatches for gradients */

.g-light-orange { background: var(--highlight); }

.c-orange { color: var(--orange); }
.c-coral { color: var(--coral); }
.c-gold { color: var(--gold); }
.c-sage { color: var(--sage); }

.news-tag-orange { background: var(--highlight); color: var(--orange); }
.news-tag-coral { background: var(--coral-light); color: var(--coral); }
.news-tag-gold { background: var(--gold-light); color: var(--gold); }
.news-tag-sage { background: var(--sage-light); color: var(--sage); }





        /* ══════════════════════════════════════
           CONCEPT SWITCHER (META NAV)
        ══════════════════════════════════════ */
        .meta-nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 1000;
            background: rgba(15,17,23,0.97);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255,255,255,0.08);
            padding: 0 40px;
            height: 56px;
            display: flex;
            align-items: center;
            gap: 8px;
            overflow-x: auto;
        }

        .meta-nav::-webkit-scrollbar { height: 2px; }
        .meta-nav::-webkit-scrollbar-thumb { background: var(--accent); }

        .meta-logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.1em;
            color: white;
            letter-spacing: -0.5px;
            white-space: nowrap;
            margin-right: 20px;
        }

        .meta-logo span { color: var(--accent); font-style: normal; }

        .meta-btn {
            background: none;
            border: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.6);
            padding: 6px 16px;
            border-radius: 100px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.8em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .meta-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .meta-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }

        /* ══════════════════════════════════════
           PAGE WRAPPER
        ══════════════════════════════════════ */
        .page {
            display: none;
            min-height: 100vh;
            padding-top: 56px;
            background: var(--light);
        }

        .page.active { display: block; }

        /* ══════════════════════════════════════
           SHARED SITE NAV
        ══════════════════════════════════════ */
        .site-nav {
            background: var(--white);
            border-bottom: 1px solid var(--light-dark);
            padding: 0 60px;
            height: 72px;
            display: flex;
            align-items: center;
            gap: 0;
            position: sticky;
            top: 56px;
            z-index: 900;
        }

        .site-nav-logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.4em;
            font-weight: 700;
            color: var(--dark);
            letter-spacing: -0.5px;
            margin-right: 50px;
            white-space: nowrap;
        }

        .site-nav-logo span {
            color: var(--accent);
        }

        .site-nav-ldarks {
            display: flex;
            gap: 4px;
            flex: 1;
        }

        .site-nav-ldark {
            padding: 8px 18px;
            border-radius: 8px;
            font-size: 0.9em;
            font-weight: 500;
            color: var(--dark-muted);
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
        }

        .site-nav-ldark:hover { background: var(--light-overlay); color: var(--dark); }
        .site-nav-ldark.active { background: var(--highlight); color: var(--accent); }

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

        .nav-btn {
            padding: 9px 22px;
            border-radius: 8px;
            font-size: 0.875em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            font-family: 'DM Sans', sans-serif;
        }

        .nav-btn-ghost {
            background: none;
            color: var(--dark-muted);
        }

        .nav-btn-ghost:hover { background: var(--light-overlay); color: var(--dark); }

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

        .nav-btn-primary:hover { background: #009090; }

        .nav-avatar {
            width: 38px; height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: white;
            font-size: 0.85em;
            cursor: pointer;
        }

        /* ══════════════════════════════════════
           HERO SECTION — HOMEPAGE
        ══════════════════════════════════════ */
        .hero {
            background: var(--main);
            min-height: 88vh;
            display: grid;
            grid-template-columns: 1fr 1fr;
            overflow: hidden;
            position: relative;
        }

        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,168,168,0.15) 0%, transparent 70%),
                        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(232,93,58,0.1) 0%, transparent 60%);
        }

        .hero-content {
            padding: 80px 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            z-index: 2;
        }

        .hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(0,168,168,0.12);
            border: 1px solid rgba(0,168,168,0.3);
            color: var(--accent);
            padding: 6px 16px;
            border-radius: 100px;
            font-size: 0.8em;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 32px;
            width: fit-content;
        }

        .hero-tag-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--accent);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(0.8); }
        }

        .hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 4.2em;
            line-height: 1.05;
            color: white;
            letter-spacing: -2px;
            margin-bottom: 28px;
            font-weight: 800;
        }

        .hero h1 em {
            font-style: italic;
            color: var(--accent);
        }

        .hero-desc {
            font-size: 1.15em;
            line-height: 1.7;
            color: rgba(255,255,255,0.65);
            margin-bottom: 48px;
            max-width: 480px;
        }

        .hero-actions {
            display: flex;
            gap: 16px;
            align-items: center;
        }

        .btn-primary {
            padding: 16px 36px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 10px;
            font-family: 'DM Sans', sans-serif;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .btn-primary:hover {
            background: #009090;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0,168,168,0.35);
        }

        .btn-outline-light {
            padding: 15px 28px;
            background: none;
            color: rgba(255,255,255,0.75);
            border: 1.5px solid rgba(255,255,255,0.2);
            border-radius: 10px;
            font-family: 'DM Sans', sans-serif;
            font-size: 1em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-outline-light:hover {
            border-color: rgba(255,255,255,0.5);
            color: white;
        }

        .hero-stats {
            display: flex;
            gap: 40px;
            margin-top: 60px;
            padding-top: 40px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .hero-stat-value {
            font-family: 'Playfair Display', serif;
            font-size: 2.2em;
            font-weight: 700;
            color: white;
            line-height: 1;
            margin-bottom: 4px;
        }

        .hero-stat-label {
            font-size: 0.8em;
            color: rgba(255,255,255,0.45);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .hero-visual {
            position: relative;
            overflow: hidden;
        }

        .hero-visual-bg {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
        }

        .hero-cards {
            position: absolute;
            inset: 40px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            justify-content: center;
        }

        .hero-feature-card {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            padding: 24px 28px;
            backdrop-filter: blur(10px);
            transition: all 0.3s;
        }

        .hero-feature-card:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(0,168,168,0.3);
            transform: translateX(-4px);
        }

        .hero-feature-card-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 12px;
        }

        .hero-feature-icon {
            width: 44px; height: 44px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3em;
            flex-shrink: 0;
        }

        .hero-feature-card h4 {
            font-weight: 600;
            color: white;
            font-size: 1em;
        }

        .hero-feature-card p {
            font-size: 0.875em;
            color: rgba(255,255,255,0.5);
            line-height: 1.5;
        }

        /* ══════════════════════════════════════
           HOMEPAGE SECTIONS
        ══════════════════════════════════════ */
        .section {
            padding: 80px 60px;
        }

        .section-label {
            font-size: 0.75em;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 12px;
        }

        .section-title {
            font-family: 'Playfair Display', serif;
            font-size: 2.6em;
            font-weight: 700;
            color: var(--dark);
            letter-spacing: -1.5px;
            line-height: 1.1;
            margin-bottom: 16px;
        }

        .section-subtitle {
            font-size: 1.05em;
            color: var(--dark-muted);
            line-height: 1.6;
            max-width: 560px;
        }

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

        .ldark-more {
            font-size: 0.9em;
            font-weight: 600;
            color: var(--accent);
            text-decoration: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .ldark-more:hover { opacity: 0.7; }

        /* Featured modules grid */
        .modules-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .module-card-home {
            background: white;
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--light-dark);
            transition: all 0.3s;
            cursor: pointer;
        }

        .module-card-home:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 50px var(--shadow-lg);
            border-color: transparent;
        }

        .module-card-thumb {
            height: 160px;
            position: relative;
            overflow: hidden;
        }

        .module-card-thumb-inner {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3.5em;
        }

        .module-card-body {
            padding: 24px;
        }

        .module-card-category {
            font-size: 0.75em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--accent);
            margin-bottom: 8px;
        }

        .module-card-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.25em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 10px;
            line-height: 1.25;
        }

        .module-card-desc {
            font-size: 0.875em;
            color: var(--dark-muted);
            line-height: 1.6;
            margin-bottom: 18px;
        }

        .module-card-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 0.8em;
            color: var(--dark-muted);
        }

        .module-progress-bar {
            height: 3px;
            background: var(--light-deep);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 14px;
        }

        .module-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--success));
            border-radius: 2px;
        }

        /* News row */
        .news-row {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 24px;
        }

        .news-card {
            background: white;
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--light-dark);
            cursor: pointer;
            transition: all 0.3s;
        }

        .news-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 40px var(--shadow-md);
        }

        .news-card-img {
            height: 200px;
            background: linear-gradient(135deg, var(--main) 0%, #2d4f6e 100%);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4em;
        }

        .news-card-img-sm {
            height: 120px;
        }

        .news-card-body {
            padding: 20px 22px;
        }

        .news-tag {
            display: inline-block;
            font-size: 0.7em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 3px 10px;
            border-radius: 100px;
            margin-bottom: 10px;
        }

        .news-tag-accent { background: var(--highlight); color: var(--accent); }
        .news-tag-coral { background: var(--coral-light); color: var(--coral); }
        .news-tag-gold { background: var(--gold-light); color: var(--gold); }
        .news-tag-sage { background: var(--sage-light); color: var(--sage); }

        .news-card-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.15em;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.3;
            margin-bottom: 8px;
        }

        .news-card-title-sm {
            font-size: 0.95em;
        }

        .news-card-date {
            font-size: 0.78em;
            color: var(--dark-muted);
        }

        /* Discover section (dark) */
        .section-dark {
            background: var(--main);
            padding: 80px 60px;
        }

        .section-dark .section-label { color: var(--accent); }
        .section-dark .section-title { color: white; }
        .section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

        .discover-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-top: 48px;
        }

        .discover-card {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: var(--radius-lg);
            padding: 32px 24px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .discover-card:hover {
            background: rgba(0,168,168,0.1);
            border-color: rgba(0,168,168,0.3);
            transform: translateY(-4px);
        }

        .discover-icon {
            width: 60px; height: 60px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8em;
            margin: 0 auto 18px;
        }

        .discover-card h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.2em;
            color: white;
            margin-bottom: 8px;
        }

        .discover-card p {
            font-size: 0.85em;
            color: rgba(255,255,255,0.5);
            line-height: 1.5;
        }

        .discover-count {
            margin-top: 16px;
            font-size: 0.8em;
            font-weight: 600;
            color: var(--accent);
        }

        /* ══════════════════════════════════════
           DISCUSSION FORUM PAGE
        ══════════════════════════════════════ */
        .forum-layout {
            display: grid;
            grid-template-columns: 260px 1fr 280px;
            gap: 0;
            min-height: calc(100vh - 128px);
        }

        .forum-sidebar {
            background: white;
            border-right: 1px solid var(--light-dark);
            padding: 32px 24px;
            position: sticky;
            top: 128px;
            height: calc(100vh - 128px);
            overflow-y: auto;
        }

        .forum-main {
            padding: 32px 40px;
            background: var(--light);
        }

        .forum-right {
            background: white;
            border-left: 1px solid var(--light-dark);
            padding: 32px 24px;
        }

        .forum-sidebar-title {
            font-size: 0.7em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--dark-muted);
            margin-bottom: 12px;
        }

        .forum-cat {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s;
            margin-bottom: 2px;
            text-decoration: none;
        }

        .forum-cat:hover { background: var(--light-overlay); }
        .forum-cat.active { background: var(--highlight); }

        .forum-cat-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .forum-cat-name {
            flex: 1;
            font-size: 0.9em;
            font-weight: 500;
            color: var(--dark);
        }

        .forum-cat.active .forum-cat-name { color: var(--accent); }

        .forum-cat-count {
            font-size: 0.75em;
            color: var(--dark-muted);
            background: var(--light-overlay);
            padding: 2px 8px;
            border-radius: 100px;
        }

        .forum-search {
            display: flex;
            align-items: center;
            gap: 12px;
            background: white;
            border: 1.5px solid var(--light-dark);
            border-radius: 10px;
            padding: 12px 18px;
            margin-bottom: 24px;
        }

        .forum-search input {
            border: none;
            outline: none;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9em;
            color: var(--dark);
            flex: 1;
            background: none;
        }

        .forum-filter-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 24px;
            background: var(--light-overlay);
            padding: 4px;
            border-radius: 10px;
        }

        .forum-filter-tab {
            flex: 1;
            text-align: center;
            padding: 8px;
            border-radius: 7px;
            font-size: 0.82em;
            font-weight: 500;
            color: var(--dark-muted);
            cursor: pointer;
            transition: all 0.2s;
        }

        .forum-filter-tab.active {
            background: white;
            color: var(--dark);
            box-shadow: 0 1px 4px var(--shadow);
        }

        .forum-post-card {
            background: white;
            border-radius: var(--radius);
            border: 1px solid var(--light-dark);
            padding: 24px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .forum-post-card:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 20px var(--shadow);
            transform: translateY(-1px);
        }

        .post-card-header {
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .post-avatar {
            width: 40px; height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9em;
            color: white;
            flex-shrink: 0;
        }

        .post-meta {
            flex: 1;
            min-width: 0;
        }

        .post-author-line {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }

        .post-author {
            font-weight: 600;
            font-size: 0.9em;
            color: var(--dark);
        }

        .post-role-badge {
            font-size: 0.7em;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 100px;
        }

        .post-time {
            font-size: 0.8em;
            color: var(--dark-muted);
        }

        .post-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.1em;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.3;
            margin-bottom: 8px;
            margin-top: 12px;
        }

        .post-excerpt {
            font-size: 0.875em;
            color: var(--dark-muted);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .post-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 14px;
        }

        .post-tag {
            font-size: 0.72em;
            font-weight: 500;
            padding: 3px 10px;
            border-radius: 100px;
            background: var(--light-overlay);
            color: var(--dark-muted);
        }

        .post-actions {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--light-overlay);
        }

        .post-action {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.82em;
            color: var(--dark-muted);
            cursor: pointer;
            transition: color 0.15s;
        }

        .post-action:hover { color: var(--accent); }
        .post-action.liked { color: var(--coral); }

        /* ══════════════════════════════════════
           SINGLE POST PAGE
        ══════════════════════════════════════ */
        .post-view-layout {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
            padding: 40px 60px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .post-full {
            background: white;
            border-radius: var(--radius-lg);
            border: 1px solid var(--light-dark);
            overflow: hidden;
        }

        .post-full-header {
            padding: 40px 40px 32px;
            border-bottom: 1px solid var(--light-dark);
        }

        .post-full-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82em;
            color: var(--dark-muted);
            margin-bottom: 20px;
        }

        .post-full-breadcrumb a {
            color: var(--accent);
            text-decoration: none;
            cursor: pointer;
        }

        .post-full-title {
            font-family: 'Playfair Display', serif;
            font-size: 2em;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.15;
            letter-spacing: -0.5px;
            margin-bottom: 20px;
        }

        .post-full-author-row {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .author-avatar-lg {
            width: 48px; height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1em;
            color: white;
            flex-shrink: 0;
        }

        .post-full-body {
            padding: 40px;
        }

        .post-full-body p {
            font-size: 1em;
            line-height: 1.75;
            color: var(--dark-soft);
            margin-bottom: 20px;
        }

        .post-full-body h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.3em;
            color: var(--dark);
            margin: 28px 0 12px;
        }

        .post-full-actions {
            padding: 24px 40px;
            border-top: 1px solid var(--light-dark);
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .action-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.875em;
            font-weight: 500;
            cursor: pointer;
            border: 1.5px solid var(--light-dark);
            background: white;
            color: var(--dark-muted);
            font-family: 'DM Sans', sans-serif;
            transition: all 0.2s;
        }

        .action-btn:hover { border-color: var(--accent); color: var(--accent); }
        .action-btn.liked { border-color: var(--coral); color: var(--coral); background: var(--coral-light); }
        .action-btn.bookmarked { border-color: var(--gold); color: var(--gold); background: var(--gold-light); }

        /* Comments section */
        .comments-section {
            padding: 0 40px 40px;
        }

        .comments-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 32px;
            padding-top: 32px;
            border-top: 1px solid var(--light-dark);
        }

        .comments-header h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.4em;
            color: var(--dark);
        }

        .comment-count-badge {
            background: var(--light-overlay);
            color: var(--dark-muted);
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 0.85em;
            font-weight: 600;
        }

        .comment-input-area {
            display: flex;
            gap: 14px;
            margin-bottom: 32px;
        }

        .comment-input {
            flex: 1;
            background: var(--light-overlay);
            border: 1.5px solid var(--light-dark);
            border-radius: 12px;
            padding: 14px 18px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9em;
            color: var(--dark);
            resize: vertical;
            min-height: 80px;
            transition: border-color 0.2s;
            outline: none;
        }

        .comment-input:focus { border-color: var(--accent); background: white; }

        .comment-card {
            display: flex;
            gap: 14px;
            margin-bottom: 20px;
        }

        .comment-thread-line {
            position: relative;
        }

        .comment-thread-line::after {
            content: '';
            position: absolute;
            left: 19px;
            top: 50px;
            bottom: -12px;
            width: 2px;
            background: var(--light-dark);
        }

        .comment-body {
            flex: 1;
            background: var(--light-overlay);
            border-radius: 12px;
            padding: 18px 20px;
        }

        .comment-body.reply {
            background: white;
            border: 1px solid var(--light-dark);
        }

        .comment-author-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .comment-author {
            font-weight: 600;
            font-size: 0.9em;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .comment-time {
            font-size: 0.78em;
            color: var(--dark-muted);
        }

        .comment-text {
            font-size: 0.9em;
            line-height: 1.65;
            color: var(--dark-soft);
            margin-bottom: 12px;
        }

        .comment-actions {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .comment-action {
            font-size: 0.78em;
            color: var(--dark-muted);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: color 0.15s;
        }

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

        .nested-replies {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--light-dark);
        }

        .nested-reply {
            display: flex;
            gap: 10px;
            margin-top: 12px;
        }

        .nested-reply-avatar {
            width: 30px; height: 30px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.7em;
            color: white;
            flex-shrink: 0;
        }

        .nested-reply-body {
            flex: 1;
            background: rgba(255,255,255,0.7);
            border-radius: 8px;
            padding: 12px 14px;
            border: 1px solid var(--light-dark);
        }

        /* ══════════════════════════════════════
           COURSES LISTING PAGE
        ══════════════════════════════════════ */
        .courses-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            min-height: calc(100vh - 128px);
        }

        .courses-filter-panel {
            background: white;
            border-right: 1px solid var(--light-dark);
            padding: 32px 24px;
        }

        .courses-main {
            padding: 32px 40px;
            background: var(--light);
        }

        .courses-hero {
            background: linear-gradient(135deg, var(--main) 0%, #1e3a5f 100%);
            border-radius: var(--radius-xl);
            padding: 48px;
            margin-bottom: 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .courses-hero::before {
            content: '';
            position: absolute;
            right: -60px;
            top: -60px;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: rgba(0,168,168,0.1);
        }

        .courses-hero::after {
            content: '';
            position: absolute;
            right: 60px;
            bottom: -80px;
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: rgba(232,93,58,0.08);
        }

        .courses-hero-content { position: relative; z-index: 2; }

        .courses-hero h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2em;
            color: white;
            margin-bottom: 8px;
        }

        .courses-hero p {
            color: rgba(255,255,255,0.65);
            font-size: 0.95em;
            margin-bottom: 24px;
        }

        .filter-section-title {
            font-size: 0.72em;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--dark-muted);
            margin-bottom: 10px;
            margin-top: 24px;
        }

        .filter-section-title:first-child { margin-top: 0; }

        .filter-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s;
            margin-bottom: 2px;
        }

        .filter-item:hover { background: var(--light-overlay); }

        .filter-checkbox {
            width: 16px; height: 16px;
            border-radius: 4px;
            border: 2px solid var(--light-dark);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }

        .filter-item.checked .filter-checkbox {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
            font-size: 0.65em;
        }

        .filter-label {
            font-size: 0.875em;
            color: var(--dark);
            flex: 1;
        }

        .filter-count {
            font-size: 0.75em;
            color: var(--dark-muted);
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .course-card {
            background: white;
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--light-dark);
            transition: all 0.25s;
            cursor: pointer;
        }

        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px var(--shadow-md);
            border-color: transparent;
        }

        .course-card-thumb {
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3em;
            position: relative;
        }

        .course-card-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            font-size: 0.72em;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 100px;
        }

        .course-card-enrolled {
            background: rgba(6,214,160,0.15);
            color: var(--success);
        }

        .course-card-new {
            background: rgba(0,168,168,0.15);
            color: var(--accent);
        }

        .course-card-body {
            padding: 20px;
        }

        .course-card-level {
            font-size: 0.72em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--dark-muted);
            margin-bottom: 6px;
        }

        .course-card-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.05em;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.25;
            margin-bottom: 8px;
        }

        .course-card-instructor {
            font-size: 0.82em;
            color: var(--dark-muted);
            margin-bottom: 14px;
        }

        .course-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 14px;
            border-top: 1px solid var(--light-overlay);
        }

        .course-card-meta {
            font-size: 0.78em;
            color: var(--dark-muted);
        }

        .course-stars {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.78em;
            color: var(--gold);
            font-weight: 600;
        }

        .enrolled-progress {
            margin-top: 12px;
        }

        .enrolled-progress-bar {
            height: 3px;
            background: var(--light-deep);
            border-radius: 2px;
            overflow: hidden;
        }

        .enrolled-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--success));
            border-radius: 2px;
        }

        .enrolled-progress-label {
            font-size: 0.75em;
            color: var(--accent);
            font-weight: 600;
            margin-top: 4px;
        }

        /* ══════════════════════════════════════
           COURSE LESSON PAGE
        ══════════════════════════════════════ */
        .lesson-layout {
            display: grid;
            grid-template-columns: 1fr 340px;
            min-height: calc(100vh - 128px);
        }

        .lesson-main {
            padding: 40px 60px;
            background: var(--light);
        }

        .lesson-sidebar {
            background: white;
            border-left: 1px solid var(--light-dark);
            overflow-y: auto;
        }

        .lesson-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82em;
            color: var(--dark-muted);
            margin-bottom: 24px;
        }

        .lesson-breadcrumb a { color: var(--accent); cursor: pointer; text-decoration: none; }

        .lesson-content {
            background: white;
            border-radius: var(--radius-xl);
            overflow: hidden;
            border: 1px solid var(--light-dark);
            margin-bottom: 32px;
        }

        .lesson-video-placeholder {
            height: 400px;
            background: linear-gradient(135deg, var(--main) 0%, #0d2137 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .lesson-play-btn {
            width: 80px; height: 80px;
            border-radius: 50%;
            background: rgba(255,255,255,0.15);
            border: 2px solid rgba(255,255,255,0.4);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2em;
            cursor: pointer;
            transition: all 0.2s;
        }

        .lesson-play-btn:hover {
            background: rgba(0,168,168,0.3);
            border-color: var(--accent);
            transform: scale(1.08);
        }

        .lesson-video-info {
            position: absolute;
            bottom: 20px;
            left: 24px;
            right: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .lesson-duration {
            background: rgba(0,0,0,0.5);
            color: white;
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 0.8em;
            font-family: 'DM Mono', monospace;
        }

        .lesson-content-body {
            padding: 36px 40px;
        }

        .lesson-number {
            font-size: 0.8em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--accent);
            margin-bottom: 8px;
        }

        .lesson-title {
            font-family: 'Playfair Display', serif;
            font-size: 2em;
            font-weight: 700;
            color: var(--dark);
            letter-spacing: -0.5px;
            margin-bottom: 20px;
        }

        .lesson-body p {
            font-size: 1em;
            line-height: 1.8;
            color: var(--dark-soft);
            margin-bottom: 20px;
        }

        .lesson-callout {
            background: var(--highlight);
            border-left: 4px solid var(--accent);
            border-radius: 0 10px 10px 0;
            padding: 18px 22px;
            margin: 24px 0;
        }

        .lesson-callout p {
            font-size: 0.95em;
            color: var(--dark-soft);
            margin: 0;
            font-style: italic;
        }

        .lesson-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .lesson-nav-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 24px;
            border-radius: 10px;
            border: 1.5px solid var(--light-dark);
            background: white;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9em;
            font-weight: 600;
            color: var(--dark);
            cursor: pointer;
            transition: all 0.2s;
        }

        .lesson-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
        .lesson-nav-btn.primary { background: var(--accent); color: white; border-color: var(--accent); }
        .lesson-nav-btn.primary:hover { background: #009090; }

        /* Lesson sidebar */
        .lesson-sidebar-header {
            padding: 24px;
            border-bottom: 1px solid var(--light-dark);
        }

        .lesson-sidebar-course {
            font-size: 0.8em;
            color: var(--dark-muted);
            margin-bottom: 4px;
        }

        .lesson-sidebar-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.1em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 14px;
        }

        .lesson-overall-progress {
            margin-bottom: 8px;
        }

        .lesson-progress-bar {
            height: 6px;
            background: var(--light-deep);
            border-radius: 3px;
            overflow: hidden;
        }

        .lesson-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--success));
            border-radius: 3px;
        }

        .lesson-progress-text {
            font-size: 0.78em;
            color: var(--accent);
            font-weight: 600;
            margin-top: 4px;
        }

        .lesson-sidebar-module {
            border-bottom: 1px solid var(--light-dark);
        }

        .module-sidebar-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 24px;
            cursor: pointer;
            transition: background 0.15s;
        }

        .module-sidebar-header:hover { background: var(--light-overlay); }

        .module-sidebar-number {
            width: 28px; height: 28px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8em;
            font-weight: 700;
            flex-shrink: 0;
        }

        .module-sidebar-name {
            flex: 1;
            font-weight: 600;
            font-size: 0.875em;
            color: var(--dark);
        }

        .module-sidebar-progress {
            font-size: 0.75em;
            color: var(--dark-muted);
        }

        .module-lessons-list {
            padding: 4px 0 12px;
        }

        .sidebar-lesson {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 24px 10px 64px;
            cursor: pointer;
            transition: background 0.15s;
            position: relative;
        }

        .sidebar-lesson::before {
            content: '';
            position: absolute;
            left: 37px;
            top: 0; bottom: 0;
            width: 1px;
            background: var(--light-dark);
        }

        .sidebar-lesson:hover { background: var(--light-overlay); }
        .sidebar-lesson.active { background: var(--highlight); }

        .sidebar-lesson-icon {
            width: 22px; height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65em;
            font-weight: 700;
            flex-shrink: 0;
            color: white;
        }

        .sidebar-lesson-name {
            font-size: 0.84em;
            color: var(--dark-soft);
            line-height: 1.3;
        }

        .sidebar-lesson.active .sidebar-lesson-name {
            color: var(--accent);
            font-weight: 600;
        }

        /* ══════════════════════════════════════
           KNOWLEDGE BASE PAGE
        ══════════════════════════════════════ */
        /* KB hero now uses shared .page-hero system */

        .kb-categories {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 60px;
        }

        .kb-cat-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: 28px;
            border: 1px solid var(--light-dark);
            cursor: pointer;
            transition: all 0.25s;
        }

        .kb-cat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 40px var(--shadow-md);
            border-color: transparent;
        }

        .kb-cat-icon {
            width: 52px; height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6em;
            margin-bottom: 16px;
        }

        .kb-cat-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.15em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .kb-cat-desc {
            font-size: 0.85em;
            color: var(--dark-muted);
            line-height: 1.5;
            margin-bottom: 14px;
        }

        .kb-cat-count {
            font-size: 0.78em;
            font-weight: 600;
            color: var(--accent);
        }

        .kb-articles {
            padding: 0 60px 60px;
        }

        .kb-article-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .kb-article-card {
            background: white;
            border-radius: var(--radius);
            padding: 24px;
            border: 1px solid var(--light-dark);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            gap: 20px;
        }

        .kb-article-card:hover {
            border-color: var(--accent);
            transform: translateX(4px);
        }

        .kb-article-icon {
            width: 44px; height: 44px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3em;
            flex-shrink: 0;
        }

        .kb-article-title {
            font-weight: 600;
            font-size: 0.95em;
            color: var(--dark);
            margin-bottom: 4px;
        }

        .kb-article-meta {
            font-size: 0.78em;
            color: var(--dark-muted);
        }

        /* ══════════════════════════════════════
           REPORT PAGE
        ══════════════════════════════════════ */
        .report-layout {
            display: grid;
            grid-template-columns: 1fr 280px;
            gap: 40px;
            padding: 40px 60px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .report-main {
            background: white;
            border-radius: var(--radius-xl);
            overflow: hidden;
            border: 1px solid var(--light-dark);
        }

        .report-header {
            background: linear-gradient(135deg, var(--main) 0%, #1e3a5f 100%);
            padding: 48px 48px 40px;
            position: relative;
            overflow: hidden;
        }

        .report-header::before {
            content: '';
            position: absolute;
            top: -40px; right: -40px;
            width: 200px; height: 200px;
            border-radius: 50%;
            background: rgba(0,168,168,0.1);
        }

        .report-type {
            font-size: 0.75em;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 16px;
        }

        .report-title {
            font-family: 'Playfair Display', serif;
            font-size: 2.4em;
            color: white;
            font-weight: 800;
            letter-spacing: -1px;
            line-height: 1.1;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }

        .report-meta-row {
            display: flex;
            align-items: center;
            gap: 24px;
            position: relative;
            z-index: 2;
        }

        .report-meta-item {
            font-size: 0.82em;
            color: rgba(255,255,255,0.6);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .report-body {
            padding: 40px 48px;
        }

        .report-executive-summary {
            background: var(--main);
            border-radius: 14px;
            padding: 28px 32px;
            margin-bottom: 40px;
        }

        .report-executive-summary h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.1em;
            color: var(--accent);
            margin-bottom: 12px;
        }

        .report-executive-summary p {
            font-size: 0.95em;
            color: rgba(255,255,255,0.7);
            line-height: 1.7;
        }

        .report-section-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.5em;
            color: var(--dark);
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--light-deep);
        }

        .report-body p {
            font-size: 0.95em;
            line-height: 1.8;
            color: var(--dark-soft);
            margin-bottom: 16px;
        }

        .report-data-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin: 28px 0;
        }

        .report-stat-card {
            border-radius: 12px;
            padding: 20px;
            text-align: center;
        }

        .report-stat-number {
            font-family: 'Playfair Display', serif;
            font-size: 2.5em;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 6px;
        }

        .report-stat-desc {
            font-size: 0.82em;
            color: var(--dark-muted);
            line-height: 1.3;
        }

        .report-chart-placeholder {
            background: var(--light-overlay);
            border-radius: 12px;
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 24px 0;
            overflow: hidden;
            position: relative;
        }

        .report-chart-bars {
            display: flex;
            align-items: flex-end;
            gap: 12px;
            height: 140px;
            padding: 0 20px;
        }

        .report-bar {
            width: 36px;
            border-radius: 6px 6px 0 0;
            transition: opacity 0.2s;
        }

        .report-bar:hover { opacity: 0.8; }

        .report-toc {
            background: white;
            border-radius: var(--radius-lg);
            border: 1px solid var(--light-dark);
            padding: 24px;
            margin-bottom: 24px;
        }

        .report-toc h4 {
            font-family: 'Playfair Display', serif;
            font-size: 1em;
            color: var(--dark);
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--light-dark);
        }

        .report-toc-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            font-size: 0.85em;
            color: var(--dark-muted);
            cursor: pointer;
            border-bottom: 1px solid var(--light-overlay);
            transition: color 0.15s;
        }

        .report-toc-item:last-child { border-bottom: none; }
        .report-toc-item:hover { color: var(--accent); }
        .report-toc-item.active { color: var(--accent); font-weight: 600; }

        .report-toc-num {
            font-family: 'DM Mono', monospace;
            font-size: 0.8em;
            color: var(--accent);
            width: 24px;
        }

        /* ══════════════════════════════════════
           NEWS ARTICLE PAGE
        ══════════════════════════════════════ */
        .article-layout {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
            padding: 40px 60px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .article-main {
            background: white;
            border-radius: var(--radius-xl);
            overflow: hidden;
            border: 1px solid var(--light-dark);
        }

        .article-hero-img {
            height: 380px;
            background: linear-gradient(135deg, #1a2f4e 0%, #2d5f7a 50%, #1e3a4f 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6em;
            position: relative;
        }

        .article-hero-overlay {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            padding: 40px;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
        }

        .article-category-pill {
            display: inline-block;
            font-size: 0.72em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 5px 14px;
            border-radius: 100px;
            background: var(--accent);
            color: white;
            margin-bottom: 12px;
        }

        .article-hero-title {
            font-family: 'Playfair Display', serif;
            font-size: 2em;
            color: white;
            font-weight: 700;
            line-height: 1.15;
            letter-spacing: -0.5px;
        }

        .article-byline {
            padding: 28px 40px;
            display: flex;
            align-items: center;
            gap: 16px;
            border-bottom: 1px solid var(--light-dark);
        }

        .article-author-info h4 {
            font-weight: 600;
            font-size: 0.9em;
            color: var(--dark);
        }

        .article-author-info p {
            font-size: 0.8em;
            color: var(--dark-muted);
        }

        .article-share {
            margin-left: auto;
            display: flex;
            gap: 8px;
        }

        .share-btn {
            width: 36px; height: 36px;
            border-radius: 8px;
            border: 1.5px solid var(--light-dark);
            background: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.2s;
        }

        .share-btn:hover { border-color: var(--accent); background: var(--highlight); }

        .article-body {
            padding: 40px;
        }

        .article-body p {
            font-size: 1.05em;
            line-height: 1.85;
            color: var(--dark-soft);
            margin-bottom: 24px;
        }

        .article-body h2 {
            font-family: 'Playfair Display', serif;
            font-size: 1.6em;
            color: var(--dark);
            margin: 36px 0 16px;
            letter-spacing: -0.3px;
        }

        .article-pullquote {
            border-left: 4px solid var(--accent);
            padding: 20px 28px;
            margin: 32px 0;
            background: var(--highlight);
            border-radius: 0 12px 12px 0;
        }

        .article-pullquote p {
            font-family: 'Playfair Display', serif;
            font-size: 1.25em;
            font-style: italic;
            color: var(--dark);
            line-height: 1.5;
            margin: 0;
        }

        .article-pullquote cite {
            display: block;
            font-size: 0.78em;
            font-style: normal;
            color: var(--accent);
            font-weight: 600;
            margin-top: 12px;
            font-family: 'DM Sans', sans-serif;
        }

        /* Sidebar widgets */
        .sidebar-widget {
            background: white;
            border-radius: var(--radius-lg);
            border: 1px solid var(--light-dark);
            padding: 24px;
            margin-bottom: 20px;
        }

        .sidebar-widget-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.05em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--light-dark);
        }

        .related-article {
            display: flex;
            gap: 12px;
            margin-bottom: 14px;
            cursor: pointer;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--light-overlay);
        }

        .related-article:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

        .related-article-img {
            width: 60px; height: 60px;
            border-radius: 8px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
        }

        .related-article-title {
            font-weight: 600;
            font-size: 0.85em;
            color: var(--dark);
            line-height: 1.3;
            margin-bottom: 4px;
        }

        .related-article-date {
            font-size: 0.75em;
            color: var(--dark-muted);
        }

        /* Tags cloud */
        .tags-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag-chip {
            padding: 5px 14px;
            border-radius: 100px;
            font-size: 0.78em;
            font-weight: 500;
            background: var(--light-overlay);
            color: var(--dark-muted);
            cursor: pointer;
            transition: all 0.15s;
            border: 1.5px solid transparent;
        }

        .tag-chip:hover { background: var(--highlight); color: var(--accent); border-color: var(--accent); }

        /* Page footer */
        .site-footer {
            background: var(--main);
            padding: 60px;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 60px;
        }

        .footer-logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.8em;
            color: white;
            font-weight: 700;
            margin-bottom: 14px;
            font-style: italic;
        }

        .footer-logo span { color: var(--accent); font-style: normal; }

        .footer-desc {
            font-size: 0.875em;
            color: rgba(255,255,255,0.45);
            line-height: 1.6;
        }

        .footer-section-title {
            font-size: 0.72em;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.35);
            margin-bottom: 16px;
        }

        .footer-ldark {
            display: block;
            font-size: 0.875em;
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            margin-bottom: 10px;
            cursor: pointer;
            transition: color 0.15s;
        }

        .footer-ldark:hover { color: var(--accent); }

        .footer-bottom {
            background: rgba(0,0,0,0.3);
            padding: 20px 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.82em;
            color: rgba(255,255,255,0.3);
        }

        /* ══════════════════════════════════════
           UTILITY CLASSES
        ══════════════════════════════════════ */
        .flex { display: flex; }
        .items-center { align-items: center; }
        .gap-8 { gap: 8px; }
        .gap-12 { gap: 12px; }
        .gap-16 { gap: 16px; }
        .mt-4 { margin-top: 4px; }
        .mt-8 { margin-top: 8px; }
        .mb-16 { margin-bottom: 16px; }
        .mb-24 { margin-bottom: 24px; }
        .mb-32 { margin-bottom: 32px; }
        .text-muted { color: var(--dark-muted); font-size: 0.85em; }
        .fw-600 { font-weight: 600; }
        .divider { height: 1px; background: var(--light-dark); margin: 20px 0; }

        /* Color swatches for gradients */
        .g-blue { background: linear-gradient(135deg, #0f4c81 0%, #00a8cc 100%); }
        .g-accent { background: linear-gradient(135deg, #00a8a8 0%, #06d6a0 100%); }
        .
        .g-main { background: linear-gradient(135deg, #1a2f4e 0%, #2d5f7a 100%); }

        .g-light-accent { background: var(--highlight); }

        .c-accent { color: var(--accent); }
        .c-coral { color: var(--coral); }
        .c-gold { color: var(--gold); }
        .c-sage { color: var(--sage); }

        /* ══════════════════════════════════════
           INDUSTRY NEWS PAGE
        ══════════════════════════════════════ */
        /* News hero now uses shared .page-hero system */
        /* Topic pills now in page body (light background) */
        .news-topic-pills {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 36px;
        }
        .news-topic-pill {
            padding: 7px 18px;
            border-radius: 100px;
            font-size: 0.8em;
            font-weight: 600;
            cursor: pointer;
            border: 1.5px solid var(--light-dark);
            color: var(--dark-muted);
            background: var(--white);
            font-family: 'DM Sans', sans-serif;
            transition: all 0.18s;
        }
        .news-topic-pill:hover { border-color: var(--accent); color: var(--accent); }
        .news-topic-pill.active { background: var(--accent); border-color: var(--accent); color: white; }

        .news-page-body {
            max-width: 1280px;
            margin: 0 auto;
            padding: 56px 60px;
        }

        /* Feature card — full-width hero story */
        .news-feature-card {
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: white;
            border-radius: var(--radius-xl);
            overflow: hidden;
            border: 1px solid var(--light-dark);
            margin-bottom: 40px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .news-feature-card:hover {
            box-shadow: 0 20px 60px var(--shadow-md);
            transform: translateY(-3px);
        }
        .news-feature-photo {
            min-height: 360px;
            background: linear-gradient(135deg, #0d2137 0%, #1e4060 50%, #0f3050 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 7em;
            position: relative;
            overflow: hidden;
        }
        .news-feature-photo::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(0,168,168,0.15), transparent 60%);
        }
        .news-feature-photo-label {
            position: absolute;
            top: 20px;
            left: 20px;
            background: var(--accent);
            color: white;
            font-size: 0.14em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 5px 14px;
            border-radius: 100px;
            z-index: 2;
        }
        .news-feature-content {
            padding: 48px 44px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .news-feature-eyebrow {
            font-size: 0.75em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
            margin-bottom: 14px;
        }
        .news-feature-headline {
            font-family: 'Playfair Display', serif;
            font-size: 2em;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.15;
            letter-spacing: -0.5px;
            margin-bottom: 16px;
        }
        .news-feature-deck {
            font-size: 1em;
            line-height: 1.7;
            color: var(--dark-muted);
            margin-bottom: 28px;
        }
        .news-feature-byline {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.85em;
            color: var(--dark-muted);
            padding-top: 24px;
            border-top: 1px solid var(--light-dark);
        }
        .news-feature-byline strong { color: var(--dark); font-weight: 600; }

        /* News grid — 3-col */
        .news-grid-section-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.6em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 24px;
            letter-spacing: -0.3px;
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .news-grid-section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--light-dark);
        }
        .news-card-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin-bottom: 56px;
        }
        .news-card-v2 {
            background: white;
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--light-dark);
            cursor: pointer;
            transition: all 0.25s;
            display: flex;
            flex-direction: column;
        }
        .news-card-v2:hover {
            transform: translateY(-5px);
            box-shadow: 0 16px 48px var(--shadow-md);
            border-color: transparent;
        }
        .news-card-photo {
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4.5em;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }
        .news-card-photo-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            font-size: 0.16em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            padding: 4px 10px;
            border-radius: 100px;
        }
        .news-card-v2-body {
            padding: 22px 22px 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .news-card-v2-headline {
            font-family: 'Playfair Display', serif;
            font-size: 1.15em;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.3;
            margin-bottom: 10px;
            flex: 1;
        }
        .news-card-v2-excerpt {
            font-size: 0.85em;
            color: var(--dark-muted);
            line-height: 1.55;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 16px;
        }
        .news-card-v2-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 14px;
            border-top: 1px solid var(--light-overlay);
            font-size: 0.78em;
            color: var(--dark-muted);
        }

        /* Opinion strip */
        .news-opinion-strip {
            background: var(--light-overlay);
            border-radius: var(--radius-xl);
            padding: 40px;
            margin-bottom: 56px;
        }
        .news-opinion-strip-label {
            font-size: 0.72em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--dark-muted);
            margin-bottom: 20px;
        }
        .news-opinion-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        .news-opinion-item {
            background: white;
            border-radius: var(--radius);
            padding: 24px;
            border: 1px solid var(--light-dark);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }
        .news-opinion-item:hover { border-color: var(--accent); box-shadow: 0 6px 24px var(--shadow); }
        .news-opinion-num {
            font-family: 'Playfair Display', serif;
            font-size: 2.2em;
            font-weight: 700;
            color: var(--light-dark);
            line-height: 1;
            flex-shrink: 0;
        }
        .news-opinion-title {
            font-family: 'Playfair Display', serif;
            font-size: 1em;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.3;
            margin-bottom: 6px;
        }
        .news-opinion-author {
            font-size: 0.8em;
            color: var(--dark-muted);
        }

        /* ══════════════════════════════════════
           DISCOVER PAGE
        ══════════════════════════════════════ */
        /* Discover hero now uses shared .page-hero system */

        /* Featured person card — now lives in the page body */
        .discover-hero-feature {
            background: var(--white);
            border: 1px solid var(--light-dark);
            border-radius: var(--radius-xl);
            padding: 28px 28px;
            max-width: 420px;
            margin: 0 auto 48px;
        }
        .discover-hero-feature-label {
            font-size: 0.72em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--accent);
            margin-bottom: 16px;
        }
        .discover-hero-person {
            display: flex;
            gap: 14px;
            align-items: center;
            margin-bottom: 14px;
        }
        .discover-person-avatar {
            width: 52px; height: 52px;
            border-radius: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4em;
            flex-shrink: 0;
        }
        .discover-person-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.1em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 3px;
        }
        .discover-person-role {
            font-size: 0.8em;
            color: var(--dark-muted);
            line-height: 1.4;
        }
        .discover-hero-quote {
            font-size: 0.88em;
            font-style: italic;
            color: var(--dark-soft);
            line-height: 1.6;
            border-left: 3px solid var(--accent);
            padding-left: 14px;
            margin-bottom: 16px;
        }
        .discover-hero-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .discover-hero-tag {
            font-size: 0.72em;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 100px;
            background: var(--highlight);
            color: var(--accent);
        }

        .discover-page-body {
            padding: 64px 60px;
        }

        /* Tabs for People / Projects / Initiatives */
        .discover-tab-row {
            display: flex;
            gap: 0;
            border-bottom: 2px solid var(--light-dark);
            margin-bottom: 48px;
        }
        .discover-tab {
            padding: 14px 28px;
            font-size: 0.9em;
            font-weight: 600;
            color: var(--dark-muted);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: all 0.2s;
        }
        .discover-tab:hover { color: var(--dark); }
        .discover-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

        /* People grid */
        .people-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin-bottom: 56px;
        }
        .person-card {
            background: white;
            border-radius: var(--radius-xl);
            border: 1px solid var(--light-dark);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.25s;
        }
        .person-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 16px 48px var(--shadow-md);
            border-color: transparent;
        }
        .person-card-header {
            height: 100px;
            position: relative;
        }
        .person-card-cover {
            position: absolute;
            inset: 0;
        }
        .person-card-avatar-wrap {
            position: absolute;
            bottom: -28px;
            left: 24px;
        }
        .person-card-avatar {
            width: 64px; height: 64px;
            border-radius: 16px;
            border: 3px solid white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6em;
        }
        .person-card-body {
            padding: 36px 24px 24px;
        }
        .person-card-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.2em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 4px;
        }
        .person-card-role {
            font-size: 0.82em;
            color: var(--dark-muted);
            margin-bottom: 14px;
            line-height: 1.4;
        }
        .person-card-bio {
            font-size: 0.875em;
            color: var(--dark-soft);
            line-height: 1.6;
            margin-bottom: 18px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .person-card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 18px;
        }
        .person-tag {
            font-size: 0.72em;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 100px;
            background: var(--light-overlay);
            color: var(--dark-muted);
        }
        .person-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 16px;
            border-top: 1px solid var(--light-overlay);
        }
        .person-follow-btn {
            padding: 8px 18px;
            border-radius: 8px;
            border: 1.5px solid var(--accent);
            color: var(--accent);
            background: none;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.8em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .person-follow-btn:hover { background: var(--accent); color: white; }
        .person-followers {
            font-size: 0.78em;
            color: var(--dark-muted);
        }

        /* Projects & Initiatives — wide card */
        .initiative-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 56px;
        }
        .initiative-card {
            background: white;
            border-radius: var(--radius-lg);
            border: 1px solid var(--light-dark);
            padding: 28px 32px;
            display: grid;
            grid-template-columns: 72px 1fr auto;
            gap: 24px;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .initiative-card:hover {
            border-color: var(--accent);
            box-shadow: 0 8px 28px var(--shadow);
            transform: translateX(4px);
        }
        .initiative-icon {
            width: 72px; height: 72px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2em;
            flex-shrink: 0;
        }
        .initiative-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.2em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 6px;
        }
        .initiative-desc {
            font-size: 0.875em;
            color: var(--dark-muted);
            line-height: 1.5;
            margin-bottom: 12px;
        }
        .initiative-meta {
            display: flex;
            gap: 16px;
            font-size: 0.78em;
            color: var(--dark-muted);
        }
        .initiative-meta strong { color: var(--dark); font-weight: 600; }
        .initiative-action {
            text-align: right;
        }
        .initiative-status {
            display: inline-block;
            font-size: 0.75em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 5px 12px;
            border-radius: 100px;
            margin-bottom: 12px;
        }
        .status-active { background: rgba(6,214,160,0.12); color: var(--success); }
        .status-growing { background: var(--highlight); color: var(--accent); }
        .status-new { background: var(--coral-light); color: var(--coral); }
        .initiative-join-btn {
            display: block;
            padding: 9px 20px;
            border-radius: 8px;
            background: var(--accent);
            color: white;
            border: none;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.82em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .initiative-join-btn:hover { background: #009090; }

        /* ══════════════════════════════════════
           COURSES INSET (no sidebar)
        ══════════════════════════════════════ */
        .courses-inset-layout {
            max-width: 1100px;
            margin: 0 auto;
            padding: 48px 60px;
        }
        .courses-inset-hero {
            background: linear-gradient(135deg, var(--main) 0%, #1e4060 100%);
            border-radius: var(--radius-xl);
            padding: 48px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
            margin-bottom: 48px;
            position: relative;
            overflow: hidden;
        }
        .courses-inset-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(0,168,168,0.15) 0%, transparent 70%);
        }
        .courses-inset-hero-text { position: relative; z-index: 2; }
        .courses-inset-hero h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2em;
            color: white;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 10px;
        }
        .courses-inset-hero p { font-size: 0.95em; color: rgba(255,255,255,0.55); }
        .courses-inset-hero-stats { position: relative; z-index: 2; display: flex; gap: 32px; flex-shrink: 0; }
        .courses-inset-stat { text-align: center; }
        .courses-inset-stat-val {
            font-family: 'Playfair Display', serif;
            font-size: 2em;
            font-weight: 700;
            color: white;
        }
        .courses-inset-stat-lbl { font-size: 0.78em; color: rgba(255,255,255,0.45); }

        /* Category pills strip */
        .courses-category-strip {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 32px;
        }
        .course-cat-pill {
            padding: 7px 18px;
            border-radius: 100px;
            font-size: 0.82em;
            font-weight: 600;
            cursor: pointer;
            border: 1.5px solid var(--light-dark);
            color: var(--dark-muted);
            background: white;
            font-family: 'DM Sans', sans-serif;
            transition: all 0.2s;
        }
        .course-cat-pill:hover { border-color: var(--accent); color: var(--accent); }
        .course-cat-pill.active { background: var(--accent); border-color: var(--accent); color: white; }

        /* 4-col grid for inset */
        .courses-inset-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        /* ══════════════════════════════════════
           LESSON INSET (with progress sidebar)
        ══════════════════════════════════════ */
        .lesson-inset-wrapper {
            max-width: 1140px;
            margin: 0 auto;
            padding: 40px 40px;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 32px;
            align-items: start;
        }

        .lesson-inset-main { min-width: 0; }

        .lesson-inset-content {
            background: white;
            border-radius: var(--radius-xl);
            overflow: hidden;
            border: 1px solid var(--light-dark);
            margin-bottom: 28px;
        }
        .lesson-inset-video {
            height: 360px;
            background: linear-gradient(135deg, var(--main) 0%, #0d2137 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        /* Progress sidebar (inset-specific) */
        .lesson-progress-sidebar {
            background: white;
            border-radius: var(--radius-xl);
            border: 1px solid var(--light-dark);
            overflow: hidden;
            position: sticky;
            top: calc(56px + 40px);
        }
        .lps-header {
            padding: 20px 20px 16px;
            border-bottom: 1px solid var(--light-dark);
            background: var(--main);
        }
        .lps-course-name {
            font-size: 0.72em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255,255,255,0.4);
            margin-bottom: 6px;
        }
        .lps-title {
            font-family: 'Playfair Display', serif;
            font-size: 1em;
            font-weight: 700;
            color: white;
            line-height: 1.3;
            margin-bottom: 14px;
        }
        .lps-progress-bar {
            height: 5px;
            background: rgba(255,255,255,0.12);
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 5px;
        }
        .lps-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--success));
            border-radius: 3px;
        }
        .lps-progress-text {
            font-size: 0.75em;
            font-weight: 600;
            color: var(--accent);
        }
        .lps-module {
            border-bottom: 1px solid var(--light-overlay);
        }
        .lps-module-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 13px 18px;
            cursor: pointer;
            transition: background 0.15s;
        }
        .lps-module-header:hover { background: var(--light-overlay); }
        .lps-module-num {
            width: 24px; height: 24px;
            border-radius: 7px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.72em;
            font-weight: 700;
            flex-shrink: 0;
        }
        .lps-module-name {
            flex: 1;
            font-size: 0.82em;
            font-weight: 600;
            color: var(--dark);
            line-height: 1.25;
        }
        .lps-module-done {
            font-size: 0.7em;
            color: var(--dark-muted);
        }
        .lps-lessons {
            padding: 4px 0 8px 18px;
        }
        .lps-lesson {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px 8px 0;
            cursor: pointer;
            transition: background 0.15s;
            border-radius: 8px;
            margin-bottom: 1px;
        }
        .lps-lesson:hover { background: var(--light-overlay); padding-left: 8px; }
        .lps-lesson.active { background: var(--highlight); padding-left: 8px; }
        .lps-lesson-dot {
            width: 18px; height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.55em;
            font-weight: 700;
            flex-shrink: 0;
            color: white;
        }
        .lps-lesson-name {
            font-size: 0.8em;
            color: var(--dark-soft);
            line-height: 1.3;
            flex: 1;
        }
        .lps-lesson.active .lps-lesson-name { color: var(--accent); font-weight: 600; }
        .lps-lesson-dur {
            font-size: 0.7em;
            color: var(--dark-muted);
            font-family: 'DM Mono', monospace;
        }
        .lps-footer {
            padding: 16px 18px;
            background: var(--light-overlay);
        }
        .lps-next-up-label {
            font-size: 0.7em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--dark-muted);
            margin-bottom: 6px;
        }
        .lps-next-up-title {
            font-size: 0.82em;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 10px;
        }
        .lps-next-btn {
            width: 100%;
            padding: 10px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 8px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.82em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .lps-next-btn:hover { background: #009090; }
    

        /* ══════════════════════════════════════
           AVATAR DROPDOWN
        ══════════════════════════════════════ */
        .nav-avatar-wrap {
            position: relative;
        }

        .avatar-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            z-index: 2000;
            min-width: 210px;
            background: var(--white);
            border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg);
            box-shadow: 0 16px 48px var(--shadow-lg), 0 4px 12px var(--shadow-md);
            padding: 6px;
            animation: dropIn 0.18s cubic-bezier(0.16,1,0.3,1);
        }

        @keyframes dropIn {
            from { opacity: 0; transform: translateY(-8px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)   scale(1); }
        }

        .avatar-dropdown.open { display: block; }

        .avatar-dropdown-user {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 12px 10px;
        }

        .avatar-dropdown-avatar {
            width: 34px; height: 34px;
            border-radius: 9px;
            background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.78em;
            color: white;
            flex-shrink: 0;
        }

        .avatar-dropdown-name {
            font-weight: 700;
            font-size: 0.875em;
            color: var(--dark);
            line-height: 1.2;
        }

        .avatar-dropdown-email {
            font-size: 0.75em;
            color: var(--dark-muted);
            margin-top: 1px;
        }

        .avatar-dd-divider {
            height: 1px;
            background: var(--light-dark);
            margin: 4px 6px;
        }

        .avatar-dd-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            border-radius: 9px;
            font-size: 0.875em;
            font-weight: 500;
            color: var(--dark-muted);
            cursor: pointer;
            transition: all 0.15s;
            text-decoration: none;
            width: 100%;
            background: none;
            border: none;
            font-family: 'DM Sans', sans-serif;
            text-align: left;
        }

        .avatar-dd-item:hover { background: var(--highlight); color: var(--accent); }
        .avatar-dd-item.signout:hover { background: var(--coral-light); color: var(--coral); }

        .avatar-dd-item-icon {
            width: 18px;
            text-align: center;
            font-size: 0.85em;
            flex-shrink: 0;
        }

        .avatar-dd-soon {
            margin-left: auto;
            font-size: 0.68em;
            font-weight: 600;
            background: var(--light-deep);
            color: var(--dark-muted);
            padding: 2px 8px;
            border-radius: 100px;
        }

        /* ══════════════════════════════════════
           USER PROFILE PAGE
        ══════════════════════════════════════ */
        .profile-layout {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 28px;
            padding: 40px 60px;
            max-width: 1280px;
            margin: 0 auto;
        }

        .profile-card {
            background: var(--white);
            border-radius: var(--radius-xl);
            border: 1px solid var(--light-dark);
            overflow: hidden;
            position: sticky;
            top: calc(56px + 72px + 20px);
            align-self: start;
        }

        .profile-banner {
            height: 120px;
            background: linear-gradient(135deg, var(--main) 0%, #1e3a5f 60%, #0d2137 100%);
            position: relative;
            overflow: hidden;
        }

        .profile-banner::before {
            content: '';
            position: absolute; inset: 0;
            background: radial-gradient(ellipse 80% 80% at 80% 40%, rgba(0,168,168,0.2) 0%, transparent 70%);
        }

        .profile-banner-pattern {
            position: absolute; inset: 0; opacity: 0.055;
            background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
            background-size: 18px 18px;
        }

        .profile-banner-edit-btn {
            position: absolute;
            top: 12px; right: 12px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.22);
            color: rgba(255,255,255,0.85);
            padding: 5px 14px;
            border-radius: 100px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.75em;
            font-weight: 600;
            cursor: pointer;
            backdrop-filter: blur(6px);
            transition: all 0.18s;
        }

        .profile-banner-edit-btn:hover { background: rgba(255,255,255,0.22); color: white; }

        .profile-avatar-area {
            padding: 0 24px;
            margin-top: -38px;
            margin-bottom: 14px;
        }

        .profile-avatar {
            width: 76px; height: 76px;
            border-radius: 18px;
            border: 4px solid var(--white);
            box-shadow: 0 4px 16px var(--shadow-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.4em;
            color: white;
        }

        .profile-card-body { padding: 0 24px 24px; }

        .profile-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.2em;
            font-weight: 700;
            color: var(--dark);
            letter-spacing: -0.3px;
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .profile-handle {
            font-size: 0.8em;
            color: var(--dark-muted);
            margin-bottom: 14px;
        }

        .profile-badge-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            background: var(--white);
            border: 1.5px solid var(--light-dark);
            border-radius: 100px;
            font-size: 0.75em;
            font-weight: 600;
            color: var(--dark-muted);
            margin-bottom: 16px;
        }

        .profile-badge-star { color: var(--gold); }

        .profile-meta-line {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82em;
            color: var(--dark-muted);
            margin-bottom: 7px;
        }

        .profile-bio {
            font-size: 0.875em;
            line-height: 1.65;
            color: var(--dark-soft);
            margin: 14px 0 18px;
        }

        .profile-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            background: var(--light-dark);
            border-radius: var(--radius);
            overflow: hidden;
            margin-top: 18px;
        }

        .profile-stat {
            background: var(--light-overlay);
            padding: 14px 6px;
            text-align: center;
        }

        .profile-stat-val {
            font-family: 'Playfair Display', serif;
            font-size: 1.45em;
            font-weight: 700;
            color: var(--dark);
            line-height: 1;
        }

        .profile-stat-lbl {
            font-size: 0.68em;
            color: var(--dark-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-top: 3px;
        }

        /* Profile right column */
        .profile-right { min-width: 0; }

        .profile-tabs {
            display: flex;
            gap: 0;
            border-bottom: 2px solid var(--light-dark);
            margin-bottom: 24px;
            background: var(--white);
            border-radius: var(--radius-lg) var(--radius-lg) 0 0;
            padding: 0 24px;
        }

        .profile-tab {
            padding: 14px 20px;
            font-size: 0.875em;
            font-weight: 500;
            color: var(--dark-muted);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: all 0.18s;
        }

        .profile-tab:hover { color: var(--dark); }
        .profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

        .profile-feed-card {
            background: var(--white);
            border-radius: 0 0 var(--radius-lg) var(--radius-lg);
            border: 1px solid var(--light-dark);
            border-top: none;
            padding: 8px 24px 8px;
        }

        .activity-item {
            display: flex;
            gap: 14px;
            align-items: flex-start;
            padding: 18px 0;
            border-bottom: 1px solid var(--light-deep);
        }

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

        .activity-icon {
            width: 36px; height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.88em;
            flex-shrink: 0;
        }

        .activity-icon-post    { background: var(--highlight); color: var(--accent); }
        .activity-icon-comment { background: #eef0ff; color: #5b6fe6; }
        .activity-icon-like    { background: var(--coral-light); color: var(--coral); }

        .activity-action {
            font-size: 0.85em;
            color: var(--dark-muted);
            margin-bottom: 3px;
        }

        .activity-action strong { font-weight: 600; color: var(--dark); }
        .activity-action .activity-link { color: var(--accent); font-weight: 500; cursor: pointer; }

        .activity-excerpt {
            font-size: 0.82em;
            color: var(--dark-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .activity-time {
            font-size: 0.75em;
            color: var(--dark-muted);
            margin-top: 3px;
        }

        /* ══════════════════════════════════════
           ACCOUNT SETTINGS PAGE
        ══════════════════════════════════════ */
        .settings-wrap {
            padding: 36px 60px 60px;
            max-width: 1100px;
            margin: 0 auto;
        }

        /* ════════════════════════════════════════════════════════
           SUBPAGE TITLE
           Spans the full settings-wrap width, above the sidebar
           + body grid. light background — part of the page, not
           a separate layer. Reusable on any settings-style page.
        ════════════════════════════════════════════════════════ */
        .settings-page-title {
            padding: 44px 0 32px;
            border-bottom: 1px solid var(--light-dark);
            margin-bottom: 36px;
        }

        .settings-page-crumbs {
            font-size: 0.75em;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent);
            margin: 0 0 12px;
        }

        .settings-page-crumbs a {
            color: var(--accent);
            text-decoration: none;
            cursor: pointer;
            opacity: 0.65;
            transition: opacity 0.15s;
        }

        .settings-page-crumbs a:hover { opacity: 1; }

        .settings-page-crumbs-sep { opacity: 0.4; margin: 0 4px; }

        .settings-page-title h1 {
            font-family: 'Playfair Display', serif;
            font-size: 2.4em;
            font-weight: 700;
            color: var(--dark);
            letter-spacing: -1px;
            line-height: 1;
            margin: 0 0 10px;
        }

        .settings-page-desc {
            font-size: 0.9em;
            color: var(--dark-muted);
            margin: 0;
            line-height: 1.5;
        }

        .settings-layout {
            display: grid;
            grid-template-columns: 210px 1fr;
            gap: 28px;
            align-items: start;
        }

        .settings-sidenav {
            background: var(--white);
            border-radius: var(--radius-lg);
            border: 1px solid var(--light-dark);
            padding: 8px;
            position: sticky;
            top: calc(56px + 72px + 20px);
        }

        .settings-nav-group-label {
            font-size: 0.68em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--dark-muted);
            padding: 8px 12px 2px;
        }

        .settings-nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 9px;
            font-size: 0.875em;
            font-weight: 500;
            color: var(--dark-muted);
            cursor: pointer;
            transition: all 0.15s;
            margin-bottom: 1px;
        }

        .settings-nav-item:hover { background: var(--light-overlay); color: var(--dark); }
        .settings-nav-item.active { background: var(--highlight); color: var(--accent); font-weight: 600; }
        .settings-nav-item.danger-item { color: var(--coral); }
        .settings-nav-item.danger-item:hover { background: var(--coral-light); }

        .settings-nav-icon { width: 16px; text-align: center; font-size: 0.9em; flex-shrink: 0; }
        .settings-nav-divider { height: 1px; background: var(--light-dark); margin: 6px 0; }

        .settings-body { display: flex; flex-direction: column; gap: 20px; }

        .settings-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            border: 1px solid var(--light-dark);
            overflow: hidden;
        }

        .settings-card-head {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 20px 28px;
            border-bottom: 1px solid var(--light-dark);
        }

        .settings-card-icon {
            width: 36px; height: 36px;
            border-radius: 10px;
            background: var(--highlight);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.88em;
            flex-shrink: 0;
        }

        .settings-card-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.1em;
            font-weight: 700;
            color: var(--dark);
        }

        .settings-card-body { padding: 28px; }

        /* Avatar upload row */
        .avatar-upload-row {
            display: flex;
            align-items: center;
            gap: 20px;
            background: var(--light-overlay);
            border-radius: var(--radius);
            padding: 18px 20px;
            margin-bottom: 26px;
        }

        .avatar-upload-preview {
            position: relative;
            flex-shrink: 0;
        }

        .avatar-upload-img {
            width: 70px; height: 70px;
            border-radius: 17px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.3em;
            color: white;
        }

        .avatar-upload-cam {
            position: absolute;
            bottom: -3px; right: -3px;
            width: 24px; height: 24px;
            border-radius: 50%;
            background: var(--accent);
            border: 2px solid var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6em;
            color: white;
            cursor: pointer;
        }

        .avatar-upload-info { flex: 1; }

        .avatar-upload-info strong {
            font-size: 0.875em;
            font-weight: 600;
            color: var(--dark);
            display: block;
            margin-bottom: 3px;
        }

        .avatar-upload-info p {
            font-size: 0.78em;
            color: var(--dark-muted);
            margin-bottom: 10px;
        }

        /* Form grid */
        .form-grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-grid-full { grid-column: 1 / -1; }

        .form-field-label {
            display: block;
            font-size: 0.8em;
            font-weight: 600;
            color: var(--dark-muted);
            margin-bottom: 6px;
            letter-spacing: 0.01em;
        }

        .form-field-label em {
            font-weight: 400;
            font-style: italic;
            opacity: 0.75;
        }

        .settings-input {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid var(--light-dark);
            border-radius: 9px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9em;
            color: var(--dark);
            background: var(--white);
            transition: all 0.18s;
            outline: none;
        }

        .settings-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,168,168,0.1); }
        .settings-input:disabled { background: var(--light-overlay); color: var(--dark-muted); cursor: not-allowed; }
        .settings-input.is-textarea { resize: vertical; min-height: 96px; }

        .form-field-hint {
            font-size: 0.75em;
            color: var(--dark-muted);
            margin-top: 5px;
        }

        .form-actions {
            display: flex;
            justify-content: flex-end;
            padding-top: 20px;
            margin-top: 20px;
            border-top: 1px solid var(--light-deep);
        }

        /* Password-required alert */
        .form-alert-gold {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            background: var(--gold-light);
            border: 1.5px solid rgba(201,168,76,0.35);
            border-radius: var(--radius);
            padding: 14px 16px;
            margin-top: 20px;
        }

        .form-alert-gold-icon { color: var(--gold); flex-shrink: 0; margin-top: 1px; }

        .form-alert-gold p {
            font-size: 0.84em;
            color: var(--dark-soft);
            line-height: 1.5;
        }

        .form-alert-gold p strong { color: var(--dark); }

        /* Danger zone */
        .settings-danger-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            border: 1.5px solid rgba(232,93,58,0.3);
            overflow: hidden;
        }

        .settings-danger-head {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 18px 28px;
            background: rgba(232,93,58,0.04);
            border-bottom: 1.5px solid rgba(232,93,58,0.15);
        }

        .settings-danger-icon {
            width: 34px; height: 34px;
            border-radius: 9px;
            background: var(--coral-light);
            color: var(--coral);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85em;
            flex-shrink: 0;
        }

        .settings-danger-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.05em;
            font-weight: 700;
            color: var(--coral);
        }

        .settings-danger-body {
            padding: 22px 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
        }

        .settings-danger-desc p {
            font-size: 0.875em;
            color: var(--dark-muted);
            line-height: 1.55;
        }

        .settings-danger-desc strong {
            display: block;
            font-size: 0.9em;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 4px;
        }

        .btn-settings-save {
            padding: 10px 24px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 9px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.875em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-settings-save:hover { background: #009090; transform: translateY(-1px); }

        .btn-settings-secondary {
            padding: 10px 22px;
            background: var(--white);
            color: var(--dark-muted);
            border: 1.5px solid var(--light-dark);
            border-radius: 9px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.875em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-settings-secondary:hover { border-color: var(--accent); color: var(--accent); }

        .btn-settings-danger {
            padding: 10px 22px;
            background: var(--white);
            color: var(--coral);
            border: 1.5px solid var(--coral);
            border-radius: 9px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.875em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

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

        /* ══════════════════════════════════════
           MEMBER DIRECTORY PAGE
        ══════════════════════════════════════ */
        /* Directory hero now uses shared .page-hero system */

        .directory-filter-bar {
            background: var(--white);
            border-bottom: 1px solid var(--light-dark);
            padding: 0 60px;
            height: 52px;
            display: flex;
            align-items: center;
            gap: 8px;
            overflow-x: auto;
            position: sticky;
            top: calc(56px + 72px);
            z-index: 80;
        }

        .directory-filter-bar::-webkit-scrollbar { height: 2px; }
        .directory-filter-bar::-webkit-scrollbar-thumb { background: var(--accent); }

        .dir-filter-label {
            font-size: 0.7em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--dark-muted);
            white-space: nowrap;
            margin-right: 4px;
            flex-shrink: 0;
        }

        .dir-filter-pill {
            padding: 5px 14px;
            border-radius: 100px;
            border: 1.5px solid var(--light-dark);
            background: var(--white);
            color: var(--dark-muted);
            font-size: 0.8em;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
            font-family: 'DM Sans', sans-serif;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .dir-filter-pill:hover { border-color: var(--accent); color: var(--accent); }
        .dir-filter-pill.active { background: var(--accent); border-color: var(--accent); color: white; }

        .directory-body {
            padding: 36px 60px 60px;
            background: var(--light);
        }

        .dir-sort-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
        }

        .dir-count { font-size: 0.875em; color: var(--dark-muted); }
        .dir-count strong { color: var(--dark); font-weight: 600; }

        .dir-sort-select {
            padding: 7px 12px;
            border: 1.5px solid var(--light-dark);
            border-radius: 8px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.82em;
            color: var(--dark-muted);
            background: var(--white);
            outline: none;
            cursor: pointer;
        }

        .member-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }

        .member-card {
            background: var(--white);
            border-radius: var(--radius-xl);
            border: 1px solid var(--light-dark);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.25s;
        }

        .member-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 50px var(--shadow-md);
            border-color: transparent;
        }

        .member-card-cover { height: 76px; position: relative; }

        .member-card-avatar {
            position: absolute;
            bottom: -22px; left: 20px;
            width: 52px; height: 52px;
            border-radius: 14px;
            border: 3px solid var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.88em;
            color: white;
            box-shadow: 0 2px 8px var(--shadow-md);
        }

        .member-card-body { padding: 30px 20px 20px; }

        .member-card-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.05em;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .member-card-role {
            font-size: 0.78em;
            color: var(--dark-muted);
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .member-card-bio {
            font-size: 0.82em;
            color: var(--dark-muted);
            line-height: 1.55;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 14px;
        }

        .member-card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 14px;
        }

        .member-tag {
            font-size: 0.7em;
            font-weight: 500;
            padding: 3px 10px;
            border-radius: 100px;
            background: var(--light-overlay);
            color: var(--dark-muted);
        }

        .member-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 12px;
            border-top: 1px solid var(--light-deep);
            font-size: 0.75em;
            color: var(--dark-muted);
        }

        .member-card-footer strong { color: var(--dark); font-weight: 600; }

        .member-follow-btn {
            padding: 5px 14px;
            border-radius: 7px;
            border: 1.5px solid var(--accent);
            color: var(--accent);
            background: none;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.78em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.18s;
        }

        .member-follow-btn:hover { background: var(--accent); color: white; }
        .member-follow-btn.following { background: var(--accent); color: white; }

        .dir-pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .dir-page-btn {
            width: 36px; height: 36px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85em;
            font-weight: 500;
            cursor: pointer;
            border: 1.5px solid var(--light-dark);
            background: var(--white);
            color: var(--dark-muted);
            transition: all 0.15s;
            font-family: 'DM Sans', sans-serif;
        }

        .dir-page-btn:hover { border-color: var(--accent); color: var(--accent); }
        .dir-page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
    

        /* ══════════════════════════════════════
           LOGIN & REGISTER PAGES
        ══════════════════════════════════════ */
        .auth-page {
            min-height: calc(100vh - 56px);
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        .auth-pitch {
            background: var(--main);
            padding: 80px 64px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        .auth-pitch::before {
            content: '';
            position: absolute; inset: 0;
            background: radial-gradient(ellipse 80% 70% at 110% 30%, rgba(0,168,168,0.18) 0%, transparent 65%),
                        radial-gradient(ellipse 60% 60% at -10% 90%, rgba(232,93,58,0.1) 0%, transparent 60%);
        }
        .auth-pitch-pattern {
            position: absolute; inset: 0; opacity: 0.045;
            background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
            background-size: 20px 20px;
        }
        .auth-pitch-inner { position: relative; z-index: 2; }
        .auth-pitch-logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.8em; font-weight: 700; color: white;
            margin-bottom: 52px; cursor: pointer;
        }
        .auth-pitch-logo span { color: var(--accent); font-style: normal; }
        .auth-pitch h2 {
            font-family: 'Playfair Display', serif;
            font-size: 3em; font-weight: 800; color: white;
            line-height: 1.06; letter-spacing: -1.5px; margin-bottom: 20px;
        }
        .auth-pitch h2 em { font-style: italic; color: var(--accent); }
        .auth-pitch-desc {
            font-size: 1em; color: rgba(255,255,255,0.6);
            line-height: 1.7; max-width: 400px; margin-bottom: 44px;
        }
        .auth-pitch-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
        .auth-pitch-feature { display: flex; align-items: center; gap: 14px; }
        .auth-pitch-feature-icon {
            width: 42px; height: 42px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.1em; flex-shrink: 0;
        }
        .auth-pitch-feature-text { font-size: 0.88em; color: rgba(255,255,255,0.65); line-height: 1.45; }
        .auth-pitch-feature-text strong { display: block; font-weight: 600; color: white; margin-bottom: 2px; }
        .auth-pitch-stats {
            display: flex; gap: 32px;
            padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
        }
        .auth-pitch-stat-val {
            font-family: 'Playfair Display', serif;
            font-size: 1.8em; font-weight: 700; color: white; line-height: 1; margin-bottom: 3px;
        }
        .auth-pitch-stat-lbl { font-size: 0.73em; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; }
        .auth-form-panel {
            background: var(--light);
            display: flex; align-items: center; justify-content: center;
            padding: 60px 48px;
        }
        .auth-form-inner { width: 100%; max-width: 420px; }
        .auth-form-eyebrow {
            font-size: 0.72em; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px;
        }
        .auth-form-title {
            font-family: 'Playfair Display', serif;
            font-size: 2em; font-weight: 700; color: var(--dark);
            letter-spacing: -0.8px; margin-bottom: 8px; line-height: 1.1;
        }
        .auth-form-subtitle { font-size: 0.9em; color: var(--dark-muted); margin-bottom: 32px; line-height: 1.5; }
        .auth-form-subtitle a { color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; }
        .auth-form-subtitle a:hover { text-decoration: underline; }
        .auth-field { margin-bottom: 18px; }
        .auth-field-label { display: block; font-size: 0.8em; font-weight: 600; color: var(--dark-muted); margin-bottom: 6px; }
        .auth-input {
            width: 100%; padding: 11px 16px;
            border: 1.5px solid var(--light-dark); border-radius: 10px;
            font-family: 'DM Sans', sans-serif; font-size: 0.925em; color: var(--dark);
            background: var(--white); outline: none; transition: all 0.18s;
        }
        .auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,168,168,0.1); }
        .auth-input::placeholder { color: var(--dark-muted); opacity: 0.55; }
        .auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
        .auth-input-wrap { position: relative; }
        .auth-input-wrap .auth-input { padding-right: 44px; }
        .auth-input-reveal {
            position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
            background: none; border: none; color: var(--dark-muted); cursor: pointer; font-size: 0.85em; padding: 2px;
        }
        .auth-forgot {
            display: block; text-align: right; font-size: 0.78em; font-weight: 600;
            color: var(--accent); margin-top: -10px; margin-bottom: 20px; cursor: pointer;
        }
        .auth-forgot:hover { text-decoration: underline; }
        .auth-submit-btn {
            width: 100%; padding: 13px 24px;
            background: var(--accent); color: white; border: none; border-radius: 10px;
            font-family: 'DM Sans', sans-serif; font-size: 0.95em; font-weight: 700; cursor: pointer;
            transition: all 0.22s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px;
        }
        .auth-submit-btn:hover { background: #009090; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,168,168,0.32); }
        .auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--dark-muted); font-size: 0.78em; }
        .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--light-dark); }
        .auth-terms { font-size: 0.75em; color: var(--dark-muted); text-align: center; line-height: 1.55; margin-top: 16px; }
        .auth-terms a { color: var(--accent); text-decoration: none; font-weight: 500; }
        .auth-check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
        .auth-check-row input[type="checkbox"] { margin-top: 3px; orange-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
        .auth-check-label { font-size: 0.82em; color: var(--dark-muted); line-height: 1.5; }
        .auth-check-label a { color: var(--accent); text-decoration: none; font-weight: 600; }
        .auth-social-btn {
            width: 100%; padding: 11px 20px;
            background: var(--white); border: 1.5px solid var(--light-dark); border-radius: 10px;
            font-family: 'DM Sans', sans-serif; font-size: 0.88em; font-weight: 600;
            color: var(--dark); cursor: pointer; transition: all 0.18s;
            display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 4px;
        }
        .auth-social-btn:hover { border-color: var(--accent); background: var(--highlight); }
        .auth-strength-bar { display: flex; gap: 4px; margin-top: 7px; }
        .auth-strength-seg { flex: 1; height: 3px; border-radius: 2px; background: var(--light-deep); transition: background 0.3s; }
        .auth-strength-seg.weak   { background: var(--coral); }
        .auth-strength-seg.medium { background: var(--gold); }
        .auth-strength-seg.strong { background: var(--accent); }
        .auth-testimonial {
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px; padding: 24px 26px; margin-top: 12px;
        }
        /* ══════════════════════════════════════
           SHARED PAGE HERO — all top-level sections
           (centred, main, consistent typography)
        ══════════════════════════════════════ */
        .page-hero {
            background: var(--main);
            padding: 64px 60px 56px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .page-hero::before {
            content: '';
            position: absolute; inset: 0;
            background:
                radial-gradient(ellipse 80% 80% at 50% -10%, rgba(0,168,168,0.14) 0%, transparent 65%),
                radial-gradient(ellipse 50% 60% at 10% 110%, rgba(232,93,58,0.07) 0%, transparent 55%),
                radial-gradient(ellipse 40% 50% at 90% 110%, rgba(201,168,76,0.06) 0%, transparent 55%);
        }
        .page-hero-inner {
            position: relative; z-index: 2;
            max-width: 680px;
            margin: 0 auto;
        }
        /* Eyebrow label */
        .page-hero-eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 0.72em; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.1em;
            color: var(--accent); margin-bottom: 14px;
        }
        .page-hero-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 7px rgba(0,168,168,0.9);
            animation: hero-dot-pulse 2.2s ease-in-out infinite;
            flex-shrink: 0;
        }
        @keyframes hero-dot-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.45; transform: scale(0.65); }
        }
        /* Heading */
        .page-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 3em; font-weight: 800; color: white;
            letter-spacing: -1.5px; line-height: 1.05;
            margin-bottom: 16px;
        }
        .page-hero h1 em { font-style: italic; color: var(--accent); }
        /* Description */
        .page-hero-desc {
            font-size: 1em; color: rgba(255,255,255,0.5);
            line-height: 1.7; margin-bottom: 0;
            max-width: 520px; margin-left: auto; margin-right: auto;
        }
        /* Search bar — shared across Forum, Courses, KB, Directory */
        .page-hero-search {
            display: flex; align-items: center; gap: 12px;
            max-width: 560px; margin: 32px auto 0;
            background: white;
            border-radius: 14px;
            padding: 13px 18px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        }
        .page-hero-search i {
            color: var(--dark-muted);
            font-size: 0.9em;
            flex-shrink: 0;
        }
        .page-hero-search input {
            border: none; outline: none; background: none;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9em; color: var(--dark);
            flex: 1; line-height: 1.2;
        }
        .page-hero-search input::placeholder { color: var(--dark-muted); opacity: 0.6; }

        /* Post-view hero — lighter treatment, no stats */
        .post-hero {
            background: var(--main);
            padding: 28px 60px 32px;
            position: relative; overflow: hidden;
        }
        .post-hero::before {
            content: '';
            position: absolute; inset: 0;
            background: radial-gradient(ellipse 60% 120% at 100% 50%, rgba(0,168,168,0.12) 0%, transparent 60%);
        }
        .post-hero-inner { position: relative; z-index: 2; }
        .post-hero-breadcrumb {
            display: flex; align-items: center; gap: 8px;
            font-size: 0.8em; color: rgba(255,255,255,0.4);
            margin-bottom: 14px;
        }
        .post-hero-breadcrumb a {
            color: rgba(255,255,255,0.55); text-decoration: none; cursor: pointer; transition: color 0.15s;
        }
        .post-hero-breadcrumb a:hover { color: var(--accent); }
        .post-hero-breadcrumb .sep { color: rgba(255,255,255,0.2); }
        .post-hero-tag {
            display: inline-flex; align-items: center; gap: 7px;
            font-size: 0.72em; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.08em;
            color: var(--accent); margin-bottom: 10px;
        }
        .post-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 1.85em; font-weight: 800; color: white;
            letter-spacing: -0.8px; line-height: 1.1;
            max-width: 780px;
        }



        /* ══════════════════════════════════════
           COURSE / MODULE PROMO PAGE
        ══════════════════════════════════════ */

        /* ── Hero banner ── */
        .promo-hero {
            background: var(--main);
            padding: 0;
            position: relative;
            overflow: hidden;
        }
        .promo-hero::before {
            content: '';
            position: absolute; inset: 0;
            background:
                radial-gradient(ellipse 70% 100% at 100% 50%, rgba(0,168,168,0.13) 0%, transparent 60%),
                radial-gradient(ellipse 40% 60% at 0% 80%, rgba(232,93,58,0.07) 0%, transparent 55%);
            pointer-events: none;
        }
        .promo-hero-inner {
            position: relative; z-index: 2;
            display: grid;
            grid-template-columns: 1fr 360px;
            align-items: stretch;
            max-width: 1200px;
            margin: 0 auto;
            padding: 52px 60px 52px;
            gap: 48px;
        }
        .promo-hero-content { display: flex; flex-direction: column; justify-content: center; }
        .promo-breadcrumb {
            display: flex; align-items: center; gap: 8px;
            font-size: 0.78em; color: rgba(255,255,255,0.38);
            margin-bottom: 22px;
        }
        .promo-breadcrumb a {
            color: rgba(255,255,255,0.5); text-decoration: none; cursor: pointer; transition: color 0.15s;
        }
        .promo-breadcrumb a:hover { color: var(--accent); }
        .promo-breadcrumb .sep { color: rgba(255,255,255,0.18); }

        .promo-type-row {
            display: flex; align-items: center; gap: 10px;
            margin-bottom: 16px;
        }
        .promo-type-badge {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: 0.7em; font-weight: 700;
            letter-spacing: 0.07em; text-transform: uppercase;
            padding: 4px 12px; border-radius: 100px;
        }
        .promo-type-badge.is-course { background: rgba(0,168,168,0.18); color: var(--accent); border: 1px solid rgba(0,168,168,0.25); }
        .promo-type-badge.is-module { background: rgba(232,93,58,0.16); color: #f07a5a; border: 1px solid rgba(232,93,58,0.22); }
        .promo-level-badge {
            font-size: 0.72em; font-weight: 600;
            color: rgba(255,255,255,0.45);
        }
        .promo-level-badge i { margin-right: 4px; }

        .promo-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5em; font-weight: 800; color: white;
            letter-spacing: -1.2px; line-height: 1.08;
            margin-bottom: 18px;
        }
        .promo-hero-desc {
            font-size: 1em; color: rgba(255,255,255,0.58);
            line-height: 1.7; margin-bottom: 28px;
            max-width: 560px;
        }
        .promo-hero-meta {
            display: flex; align-items: center; gap: 20px;
            flex-wrap: wrap;
        }
        .promo-hero-meta-item {
            display: flex; align-items: center; gap: 7px;
            font-size: 0.82em; color: rgba(255,255,255,0.5);
        }
        .promo-hero-meta-item i { color: var(--accent); font-size: 0.9em; }
        .promo-hero-meta-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.12); }
        .promo-rating-stars { color: var(--gold); letter-spacing: 1px; }

        /* Part-of chip — shown on modules */
        .promo-part-of-chip {
            display: inline-flex; align-items: center; gap: 8px;
            background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
            border-radius: 100px; padding: 5px 14px 5px 8px;
            font-size: 0.78em; color: rgba(255,255,255,0.55);
            cursor: pointer; transition: all 0.2s; margin-bottom: 20px; width: fit-content;
        }
        .promo-part-of-chip:hover { border-color: rgba(0,168,168,0.4); color: var(--accent); }
        .promo-part-of-chip-icon {
            width: 22px; height: 22px; border-radius: 6px;
            background: var(--highlight); display: flex; align-items: center;
            justify-content: center; font-size: 0.85em; flex-shrink: 0;
        }
        .promo-part-of-chip span { font-weight: 500; }
        .promo-part-of-chip em { color: var(--accent); font-style: normal; }

        /* Hero visual — gradient thumbnail */
        .promo-hero-visual {
            border-radius: var(--radius-xl);
            overflow: hidden;
            position: relative;
            min-height: 260px;
            display: flex; align-items: center; justify-content: center;
            align-self: center;
        }
        .promo-hero-emoji {
            font-size: 6em; position: relative; z-index: 2;
            filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
        }
        .promo-hero-visual-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
            z-index: 1;
        }
        .promo-standalone-flag {
            position: absolute; bottom: 14px; left: 14px; z-index: 3;
            display: inline-flex; align-items: center; gap: 5px;
            background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.18);
            border-radius: 100px; padding: 4px 12px;
            font-size: 0.68em; font-weight: 600; color: rgba(255,255,255,0.8);
        }

        /* ── Page body layout ── */
        .promo-body {
            max-width: 1200px; margin: 0 auto;
            padding: 40px 60px 80px;
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 36px;
            align-items: start;
        }
        .promo-main { min-width: 0; }

        /* ── Instructor strip ── */
        .promo-instructor-strip {
            background: white;
            border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg);
            padding: 20px 24px;
            display: flex; align-items: center; gap: 16px;
            margin-bottom: 24px;
        }
        .promo-instructor-avatar {
            width: 52px; height: 52px; border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.5em; flex-shrink: 0;
        }
        .promo-instructor-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.05em; font-weight: 700; color: var(--dark);
            margin-bottom: 2px;
        }
        .promo-instructor-role { font-size: 0.82em; color: var(--dark-muted); line-height: 1.4; }
        .promo-instructor-right { margin-left: auto; }
        .promo-instructor-stat {
            text-align: right;
            font-size: 0.78em; color: var(--dark-muted);
        }
        .promo-instructor-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.4em; color: var(--dark); line-height: 1; margin-bottom: 2px; }

        /* ── Tabs ── */
        .promo-tabs {
            display: flex; gap: 0;
            border-bottom: 2px solid var(--light-dark);
            margin-bottom: 28px;
        }
        .promo-tab {
            padding: 12px 22px;
            font-size: 0.875em; font-weight: 500;
            color: var(--dark-muted);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: all 0.18s;
        }
        .promo-tab:hover { color: var(--dark); }
        .promo-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

        .promo-panel { display: none; }
        .promo-panel.active { display: block; }

        /* ── Overview panel ── */
        .promo-overview-lead {
            font-size: 1.05em; line-height: 1.8; color: var(--dark-soft);
            margin-bottom: 28px;
        }
        .promo-section-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.25em; font-weight: 700; color: var(--dark);
            margin: 32px 0 16px; letter-spacing: -0.3px;
        }
        .promo-section-title:first-child { margin-top: 0; }
        .promo-learn-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
            margin-bottom: 32px;
        }
        .promo-learn-item {
            display: flex; align-items: flex-start; gap: 10px;
            font-size: 0.875em; color: var(--dark-soft); line-height: 1.5;
        }
        .promo-learn-check {
            width: 20px; height: 20px; border-radius: 6px;
            background: var(--highlight); color: var(--accent);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.65em; font-weight: 700; flex-shrink: 0; margin-top: 1px;
        }
        .promo-callout {
            background: var(--highlight); border-left: 3px solid var(--accent);
            border-radius: 0 var(--radius) var(--radius) 0;
            padding: 18px 22px; margin: 24px 0;
            font-size: 0.9em; color: var(--dark-soft); line-height: 1.7;
        }
        .promo-callout strong { color: var(--accent); }
        .promo-body-text { font-size: 0.95em; line-height: 1.8; color: var(--dark-soft); margin-bottom: 16px; }

        /* ── Curriculum panel ── */
        .promo-curriculum-summary {
            display: flex; gap: 20px; flex-wrap: wrap;
            padding: 16px 20px;
            background: var(--light-overlay); border-radius: var(--radius);
            margin-bottom: 24px;
        }
        .promo-curriculum-stat {
            font-size: 0.82em; color: var(--dark-muted);
            display: flex; align-items: center; gap: 7px;
        }
        .promo-curriculum-stat i { color: var(--accent); }

        .promo-section-accordion {
            border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg);
            overflow: hidden;
            margin-bottom: 12px;
        }
        .promo-section-head {
            display: flex; align-items: center; gap: 14px;
            padding: 16px 20px;
            background: white;
            cursor: pointer;
            transition: background 0.15s;
        }
        .promo-section-head:hover { background: var(--light-overlay); }
        .promo-section-num {
            width: 28px; height: 28px; border-radius: 8px;
            background: var(--light-deep); color: var(--dark-muted);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.75em; font-weight: 700; flex-shrink: 0;
        }
        .promo-section-info { flex: 1; }
        .promo-section-name {
            font-weight: 600; font-size: 0.92em; color: var(--dark);
            margin-bottom: 2px;
        }
        .promo-section-meta { font-size: 0.75em; color: var(--dark-muted); }
        .promo-section-toggle {
            font-size: 0.8em; color: var(--dark-muted);
            transition: transform 0.2s;
        }
        .promo-section-accordion.open .promo-section-toggle { transform: rotate(180deg); }
        .promo-lessons-list {
            display: none; border-top: 1px solid var(--light-dark);
        }
        .promo-section-accordion.open .promo-lessons-list { display: block; }
        .promo-lesson-row {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 20px;
            border-bottom: 1px solid var(--light-overlay);
            font-size: 0.875em; color: var(--dark-soft);
        }
        .promo-lesson-row:last-child { border-bottom: none; }
        .promo-lesson-icon {
            width: 28px; height: 28px; border-radius: 7px;
            background: var(--light-deep); color: var(--dark-muted);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.75em; flex-shrink: 0;
        }
        .promo-lesson-icon.preview { background: var(--highlight); color: var(--accent); }
        .promo-lesson-name { flex: 1; }
        .promo-lesson-duration { font-size: 0.78em; color: var(--dark-muted); white-space: nowrap; }
        .promo-lesson-preview {
            font-size: 0.7em; font-weight: 600;
            color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
            margin-left: 8px;
        }

        /* ── Reviews panel ── */
        .promo-rating-hero {
            display: flex; align-items: center; gap: 32px;
            background: white; border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg); padding: 28px;
            margin-bottom: 24px;
        }
        .promo-rating-score {
            font-family: 'Playfair Display', serif;
            font-size: 4em; font-weight: 800; color: var(--dark);
            line-height: 1; flex-shrink: 0;
        }
        .promo-rating-stars-lg { color: var(--gold); font-size: 1.3em; letter-spacing: 2px; margin-bottom: 4px; }
        .promo-rating-count { font-size: 0.82em; color: var(--dark-muted); }
        .promo-rating-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
        .promo-rating-bar-row {
            display: flex; align-items: center; gap: 10px;
            font-size: 0.78em; color: var(--dark-muted);
        }
        .promo-rating-bar-label { width: 16px; text-align: right; flex-shrink: 0; }
        .promo-rating-bar-track {
            flex: 1; height: 6px; border-radius: 3px;
            background: var(--light-deep); overflow: hidden;
        }
        .promo-rating-bar-fill { height: 100%; border-radius: 3px; background: var(--gold); }
        .promo-review-card {
            background: white; border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg); padding: 22px 24px;
            margin-bottom: 14px;
        }
        .promo-review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
        .promo-review-avatar {
            width: 38px; height: 38px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 0.85em; color: white; flex-shrink: 0;
        }
        .promo-review-name { font-weight: 600; font-size: 0.9em; color: var(--dark); margin-bottom: 2px; }
        .promo-review-date { font-size: 0.75em; color: var(--dark-muted); }
        .promo-review-stars { margin-left: auto; color: var(--gold); font-size: 0.85em; }
        .promo-review-text { font-size: 0.875em; line-height: 1.7; color: var(--dark-soft); }

        /* ── Sticky sidebar ── */
        .promo-sidebar {
            position: sticky;
            top: calc(56px + 72px + 20px);
        }
        .promo-enrol-card {
            background: white; border: 1px solid var(--light-dark);
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: 0 8px 32px var(--shadow);
            margin-bottom: 16px;
        }
        .promo-enrol-thumb {
            height: 140px;
            display: flex; align-items: center; justify-content: center;
            font-size: 4em; position: relative; overflow: hidden;
        }
        .promo-enrol-body { padding: 22px; }
        .promo-enrol-free {
            font-size: 0.7em; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.1em;
            color: var(--accent); margin-bottom: 14px;
            display: flex; align-items: center; gap: 6px;
        }
        .promo-enrol-free::before {
            content: '';
            width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
            box-shadow: 0 0 6px rgba(0,168,168,0.8);
        }
        .promo-btn-enrol {
            width: 100%; padding: 14px 20px;
            background: var(--accent); color: white; border: none;
            border-radius: 10px; font-family: 'DM Sans', sans-serif;
            font-size: 0.95em; font-weight: 700; cursor: pointer;
            transition: all 0.22s; display: flex; align-items: center;
            justify-content: center; gap: 9px; margin-bottom: 10px;
        }
        .promo-btn-enrol:hover { background: #009090; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,168,168,0.3); }
        .promo-btn-enrol.enrolled {
            background: var(--light-deep); color: var(--dark-muted); cursor: default;
        }
        .promo-btn-enrol.enrolled:hover { transform: none; box-shadow: none; background: var(--light-deep); }
        .promo-btn-continue {
            width: 100%; padding: 14px 20px;
            background: var(--main); color: white; border: none;
            border-radius: 10px; font-family: 'DM Sans', sans-serif;
            font-size: 0.95em; font-weight: 700; cursor: pointer;
            transition: all 0.22s; display: flex; align-items: center;
            justify-content: center; gap: 9px; margin-bottom: 10px;
        }
        .promo-btn-continue:hover { background: #0d2137; transform: translateY(-2px); }
        .promo-enrol-note {
            text-align: center; font-size: 0.75em;
            color: var(--dark-muted); margin-bottom: 18px;
        }
        .promo-enrol-divider {
            height: 1px; background: var(--light-dark); margin: 16px 0;
        }
        .promo-enrol-details {
            display: flex; flex-direction: column; gap: 10px;
        }
        .promo-enrol-detail {
            display: flex; align-items: center; gap: 10px;
            font-size: 0.82em; color: var(--dark-soft);
        }
        .promo-enrol-detail i { color: var(--accent); width: 14px; text-align: center; font-size: 0.9em; flex-shrink: 0; }

        /* Progress bar in sidebar for enrolled */
        .promo-enrol-progress { margin: 14px 0; }
        .promo-enrol-progress-track {
            height: 5px; background: var(--light-deep); border-radius: 3px; overflow: hidden; margin-bottom: 6px;
        }
        .promo-enrol-progress-fill {
            height: 100%; border-radius: 3px;
            background: linear-gradient(90deg, var(--accent), var(--success));
        }
        .promo-enrol-progress-label {
            font-size: 0.75em; color: var(--accent); font-weight: 600;
        }

        /* Part-of sidebar card */
        .promo-part-of-card {
            background: white; border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg); padding: 18px 20px;
            margin-bottom: 16px; cursor: pointer; transition: all 0.2s;
        }
        .promo-part-of-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px var(--shadow); }
        .promo-part-of-label {
            font-size: 0.68em; font-weight: 700; text-transform: uppercase;
            letter-spacing: 0.1em; color: var(--dark-muted); margin-bottom: 12px;
        }
        .promo-part-of-row {
            display: flex; align-items: center; gap: 12px;
        }
        .promo-part-of-thumb {
            width: 44px; height: 44px; border-radius: 11px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4em; flex-shrink: 0;
        }
        .promo-part-of-title {
            font-weight: 600; font-size: 0.875em; color: var(--dark);
            line-height: 1.3; margin-bottom: 3px;
        }
        .promo-part-of-meta { font-size: 0.75em; color: var(--dark-muted); }
        .promo-part-of-arrow { margin-left: auto; color: var(--accent); font-size: 0.8em; }

        /* Share / save row */
        .promo-action-row {
            display: flex; gap: 8px;
        }
        .promo-action-btn {
            flex: 1; padding: 9px 12px;
            background: white; border: 1.5px solid var(--light-dark);
            border-radius: 9px; font-family: 'DM Sans', sans-serif;
            font-size: 0.8em; font-weight: 600; color: var(--dark-muted);
            cursor: pointer; transition: all 0.18s;
            display: flex; align-items: center; justify-content: center; gap: 7px;
        }
        .promo-action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--highlight); }

        /* Variant toggle — COURSE vs MODULE demo switcher */
        .promo-variant-bar {
            background: var(--light-deep); border-bottom: 1px solid var(--light-dark);
            padding: 10px 60px;
            display: flex; align-items: center; gap: 12px;
            font-size: 0.8em; color: var(--dark-muted);
        }
        .promo-variant-btn {
            padding: 5px 16px; border-radius: 100px;
            border: 1.5px solid var(--light-dark);
            background: white; color: var(--dark-muted);
            font-family: 'DM Sans', sans-serif; font-size: 0.85em; font-weight: 600;
            cursor: pointer; transition: all 0.18s;
        }
        .promo-variant-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
        .promo-variant-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }


    
        /* ══════════════════════════════════════
           COURSE / UNIT EDITOR PAGE
        ══════════════════════════════════════ */

        .editor-page {
            background: var(--light);
            min-height: calc(100vh - 128px);
            padding: 36px 60px 80px;
        }

        /* ── Page header ── */
        .editor-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 28px;
            gap: 24px;
        }
        .editor-header-left { min-width: 0; flex: 1; }
        .editor-breadcrumb {
            display: flex; align-items: center; gap: 6px;
            font-size: 0.75em; color: var(--dark-muted);
            margin-bottom: 8px;
        }
        .editor-breadcrumb a {
            color: var(--dark-muted); text-decoration: none;
            cursor: pointer; transition: color 0.15s;
        }
        .editor-breadcrumb a:hover { color: var(--accent); }
        .editor-breadcrumb .sep { color: var(--light-dark); }

        .editor-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.9em; font-weight: 800;
            color: var(--dark); letter-spacing: -0.8px;
            line-height: 1.1; margin-bottom: 10px;
        }

        .editor-part-of-chips {
            display: flex; gap: 8px; flex-wrap: wrap;
        }
        .editor-part-of-chip {
            display: inline-flex; align-items: center; gap: 6px;
            background: white; border: 1.5px solid var(--light-dark);
            border-radius: 100px; padding: 4px 12px 4px 8px;
            font-size: 0.75em; color: var(--dark-muted);
            cursor: pointer; transition: all 0.18s; text-decoration: none;
        }
        .editor-part-of-chip:hover { border-color: var(--accent); color: var(--accent); }
        .editor-part-of-chip-dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: var(--accent); flex-shrink: 0;
        }

        .editor-header-right {
            display: flex; align-items: center; gap: 10px;
            flex-shrink: 0; padding-top: 4px;
        }

        /* Status toggle pill */
        .editor-status-toggle {
            display: inline-flex; align-items: center; gap: 7px;
            padding: 7px 16px; border-radius: 100px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.8em; font-weight: 700;
            cursor: pointer; border: none;
            transition: all 0.22s;
        }
        .editor-status-toggle.draft {
            background: var(--light-deep); color: var(--dark-muted);
        }
        .editor-status-toggle.draft:hover {
            background: var(--highlight); color: var(--accent);
        }
        .editor-status-toggle.published {
            background: var(--highlight); color: var(--accent);
        }
        .editor-status-toggle.published:hover {
            background: var(--light-deep); color: var(--dark-muted);
        }
        .editor-status-dot {
            width: 7px; height: 7px; border-radius: 50%;
        }
        .draft .editor-status-dot { background: var(--dark-muted); }
        .published .editor-status-dot {
            background: var(--accent);
            box-shadow: 0 0 6px rgba(0,168,168,0.7);
        }

        .editor-preview-btn {
            display: inline-flex; align-items: center; gap: 7px;
            padding: 7px 16px; border-radius: 100px;
            background: white; border: 1.5px solid var(--light-dark);
            font-family: 'DM Sans', sans-serif;
            font-size: 0.8em; font-weight: 600;
            color: var(--dark-muted); cursor: pointer;
            transition: all 0.18s; text-decoration: none;
        }
        .editor-preview-btn:hover {
            border-color: var(--accent); color: var(--accent);
        }

        /* ── Tabs ── */
        .editor-tabs {
            display: flex; gap: 0;
            border-bottom: 2px solid var(--light-dark);
            margin-bottom: 32px;
        }
        .editor-tab {
            padding: 12px 24px;
            font-size: 0.875em; font-weight: 500;
            color: var(--dark-muted); cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px; transition: all 0.18s;
            background: none; border-top: none;
            border-left: none; border-right: none;
            font-family: 'DM Sans', sans-serif;
        }
        .editor-tab:hover { color: var(--dark); }
        .editor-tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
            font-weight: 600;
        }

        .editor-panel { display: none; }
        .editor-panel.active { display: block; }

        /* ── Promo tab — two column on wide screens ── */
        .editor-promo-grid {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 28px;
            align-items: start;
        }

        .editor-card {
            background: white;
            border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg);
            padding: 28px;
            margin-bottom: 20px;
        }
        .editor-card:last-child { margin-bottom: 0; }

        .editor-card-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.05em; font-weight: 700;
            color: var(--dark); margin-bottom: 18px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--light-dark);
        }

        /* Form fields */
        .mb-5 { margin-bottom: 20px; }
        .mb-5:last-child { margin-bottom: 0; }
        .editor-label {
            display: block; font-size: 0.8em;
            font-weight: 600; color: var(--dark-muted);
            margin-bottom: 6px; text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .editor-input {
            width: 100%; padding: 10px 14px;
            border: 1.5px solid var(--light-dark);
            border-radius: 10px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9em; color: var(--dark);
            background: white; outline: none;
            transition: all 0.18s;
        }
        .editor-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0,168,168,0.08);
        }
        .editor-input::placeholder { color: var(--dark-muted); opacity: 0.5; }
        .editor-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

        /* Rich text placeholder */
        .editor-rich-placeholder {
            width: 100%; min-height: 180px;
            border: 1.5px solid var(--light-dark);
            border-radius: 10px; background: white;
            overflow: hidden;
        }
        .editor-rich-toolbar {
            display: flex; gap: 2px; padding: 8px 10px;
            border-bottom: 1px solid var(--light-dark);
            background: var(--light-overlay);
        }
        .editor-rich-tool {
            width: 28px; height: 28px;
            border-radius: 6px; border: none;
            background: none; cursor: pointer;
            font-size: 0.8em; color: var(--dark-muted);
            display: flex; align-items: center; justify-content: center;
            transition: all 0.15s;
        }
        .editor-rich-tool:hover { background: white; color: var(--dark); }
        .editor-rich-body {
            padding: 14px; min-height: 140px;
            font-size: 0.9em; color: var(--dark-muted);
            line-height: 1.7;
        }

        /* Image upload */
        .bg-light-overlay border-2 border-light-dark rounded-2xl text-center cursor-pointer transition duration-300 {
            border: 2px dashed var(--light-dark);
            border-radius: 10px; padding: 28px;
            text-align: center; cursor: pointer;
            transition: all 0.18s; background: var(--light-overlay);
        }
        .bg-light-overlay border-2 border-light-dark rounded-2xl text-center cursor-pointer transition duration-300:hover {
            border-color: var(--accent); background: var(--highlight);
        }
        .bg-light-overlay border-2 border-light-dark rounded-2xl text-center cursor-pointer transition duration-300-icon {
            font-size: 1.8em; color: var(--dark-muted);
            margin-bottom: 8px;
        }
        .bg-light-overlay border-2 border-light-dark rounded-2xl text-center cursor-pointer transition duration-300 p {
            font-size: 0.82em; color: var(--dark-muted); line-height: 1.5;
        }
        .bg-light-overlay border-2 border-light-dark rounded-2xl text-center cursor-pointer transition duration-300 strong { color: var(--accent); }

        /* Image preview */
        .editor-image-preview {
            position: relative; border-radius: 10px;
            overflow: hidden; height: 160px;
            background: linear-gradient(135deg, #00a8a8, #06d6a0);
            display: flex; align-items: center; justify-content: center;
            font-size: 4em;
        }
        .editor-image-change {
            position: absolute; bottom: 10px; right: 10px;
            background: rgba(0,0,0,0.55); color: white;
            border: none; border-radius: 6px; padding: 5px 12px;
            font-size: 0.72em; font-weight: 600; cursor: pointer;
            backdrop-filter: blur(4px); transition: background 0.15s;
        }
        .editor-image-change:hover { background: rgba(0,0,0,0.75); }

        /* Select */
        .editor-select {
            width: 100%; padding: 10px 14px;
            border: 1.5px solid var(--light-dark); border-radius: 10px;
            font-family: 'DM Sans', sans-serif; font-size: 0.9em;
            color: var(--dark); background: white; outline: none;
            transition: all 0.18s; appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
        }
        .editor-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0,168,168,0.08);
        }

        /* Save button */
        .editor-save-btn {
            padding: 11px 28px;
            background: var(--accent); color: white; border: none;
            border-radius: 10px; font-family: 'DM Sans', sans-serif;
            font-size: 0.9em; font-weight: 700; cursor: pointer;
            transition: all 0.22s; display: inline-flex;
            align-items: center; gap: 8px;
        }
        .editor-save-btn:hover {
            background: #009090;
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(0,168,168,0.28);
        }

        .editor-delete-btn {
            padding: 11px 20px;
            background: none; color: var(--coral);
            border: 1.5px solid var(--coral); border-radius: 10px;
            font-family: 'DM Sans', sans-serif; font-size: 0.9em;
            font-weight: 600; cursor: pointer; transition: all 0.18s;
        }
        .editor-delete-btn:hover {
            background: var(--coral-light);
        }

        /* ── Modules tab ── */
        .editor-modules-layout {
            display: grid;
            grid-template-columns: 1fr 280px;
            gap: 28px;
            align-items: start;
        }

        .editor-module-list {
            background: white; border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg); overflow: hidden;
        }
        .editor-module-list-header {
            padding: 18px 22px;
            border-bottom: 1px solid var(--light-dark);
            display: flex; align-items: center;
            justify-content: space-between;
        }
        .editor-module-list-title {
            font-weight: 700; font-size: 0.9em; color: var(--dark);
        }
        .editor-module-count {
            font-size: 0.78em; color: var(--dark-muted);
        }

        .editor-module-row {
            display: flex; align-items: center; gap: 14px;
            padding: 16px 22px;
            border-bottom: 1px solid var(--light-overlay);
            transition: background 0.15s; cursor: pointer;
        }
        .editor-module-row:last-child { border-bottom: none; }
        .editor-module-row:hover { background: var(--light-overlay); }

        .editor-module-handle {
            color: var(--light-dark); font-size: 0.85em;
            cursor: grab; flex-shrink: 0;
            transition: color 0.15s;
        }
        .editor-module-row:hover .editor-module-handle { color: var(--dark-muted); }

        .editor-module-thumb {
            width: 40px; height: 40px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2em; flex-shrink: 0;
        }

        .editor-module-info { flex: 1; min-width: 0; }
        .editor-module-name {
            font-weight: 600; font-size: 0.9em; color: var(--dark);
            margin-bottom: 3px; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis;
        }
        .editor-module-meta {
            font-size: 0.75em; color: var(--dark-muted);
            display: flex; align-items: center; gap: 8px;
        }
        .editor-module-status {
            display: inline-flex; align-items: center; gap: 4px;
            font-size: 0.68em; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.06em;
        }
        .editor-module-status.draft { color: var(--dark-muted); }
        .editor-module-status.published { color: var(--accent); }
        .editor-module-status-dot {
            width: 5px; height: 5px; border-radius: 50%;
        }
        .draft .editor-module-status-dot { background: var(--dark-muted); }
        .published .editor-module-status-dot { background: var(--accent); }

        .editor-module-actions {
            display: flex; align-items: center; gap: 6px;
            flex-shrink: 0; opacity: 0;
            transition: opacity 0.15s;
        }
        .editor-module-row:hover .editor-module-actions { opacity: 1; }

        .editor-module-action-btn {
            width: 30px; height: 30px; border-radius: 7px;
            border: 1.5px solid var(--light-dark); background: white;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.78em; color: var(--dark-muted);
            cursor: pointer; transition: all 0.15s;
        }
        .editor-module-action-btn:hover {
            border-color: var(--accent); color: var(--accent);
            background: var(--highlight);
        }
        .editor-module-action-btn.remove:hover {
            border-color: var(--coral); color: var(--coral);
            background: var(--coral-light);
        }

        /* Empty state */
        .editor-empty {
            padding: 48px 24px; text-align: center;
        }
        .editor-empty-icon {
            font-size: 2.5em; margin-bottom: 14px; opacity: 0.4;
        }
        .editor-empty-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.05em; font-weight: 700;
            color: var(--dark); margin-bottom: 6px;
        }
        .editor-empty-desc {
            font-size: 0.82em; color: var(--dark-muted);
            line-height: 1.6; margin-bottom: 0;
        }

        /* Module picker sidebar */
        .editor-picker-card {
            background: white; border: 1px solid var(--light-dark);
            border-radius: var(--radius-lg); overflow: hidden;
            margin-bottom: 16px;
        }
        .editor-picker-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--light-dark);
            font-weight: 700; font-size: 0.875em; color: var(--dark);
        }
        .editor-picker-body { padding: 18px 20px; }
        .editor-picker-search {
            display: flex; align-items: center; gap: 10px;
            background: var(--light-overlay); border-radius: 9px;
            padding: 9px 13px; margin-bottom: 14px;
            border: 1.5px solid transparent;
            transition: all 0.18s;
        }
        .editor-picker-search:focus-within {
            background: white; border-color: var(--accent);
        }
        .editor-picker-search i { color: var(--dark-muted); font-size: 0.85em; }
        .editor-picker-search input {
            border: none; background: none; outline: none;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.85em; color: var(--dark); flex: 1;
        }
        .editor-picker-search input::placeholder { color: var(--dark-muted); }

        .editor-picker-list {
            display: flex; flex-direction: column; gap: 6px;
            max-height: 260px; overflow-y: auto;
            margin-bottom: 14px;
        }
        .editor-picker-list::-webkit-scrollbar { width: 3px; }
        .editor-picker-list::-webkit-scrollbar-thumb { background: var(--light-dark); border-radius: 2px; }

        .editor-picker-item {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 12px; border-radius: 9px;
            cursor: pointer; transition: all 0.15s;
            border: 1.5px solid transparent;
        }
        .editor-picker-item:hover {
            background: var(--light-overlay); border-color: var(--light-dark);
        }
        .editor-picker-item.selected {
            background: var(--highlight); border-color: var(--accent);
        }
        .editor-picker-thumb {
            width: 32px; height: 32px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1em; flex-shrink: 0;
        }
        .editor-picker-name {
            font-size: 0.82em; font-weight: 600; color: var(--dark);
            flex: 1; line-height: 1.3;
        }
        .editor-picker-meta {
            font-size: 0.72em; color: var(--dark-muted);
        }
        .editor-picker-check {
            width: 18px; height: 18px; border-radius: 5px;
            border: 1.5px solid var(--light-dark);
            background: white; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.65em; color: white; transition: all 0.15s;
        }
        .editor-picker-item.selected .editor-picker-check {
            background: var(--accent); border-color: var(--accent);
        }
        .editor-picker-add-btn {
            width: 100%; padding: 10px 16px;
            background: var(--accent); color: white; border: none;
            border-radius: 9px; font-family: 'DM Sans', sans-serif;
            font-size: 0.85em; font-weight: 700; cursor: pointer;
            transition: all 0.2s;
        }
        .editor-picker-add-btn:hover { background: #009090; }
        .editor-picker-add-btn:disabled {
            background: var(--light-deep); color: var(--dark-muted);
            cursor: not-allowed;
        }

        .editor-new-module-btn {
            width: 100%; padding: 10px 16px;
            background: white; color: var(--dark-muted);
            border: 1.5px dashed var(--light-dark); border-radius: 9px;
            font-family: 'DM Sans', sans-serif; font-size: 0.85em;
            font-weight: 600; cursor: pointer; transition: all 0.2s;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .editor-new-module-btn:hover {
            border-color: var(--accent); color: var(--accent);
            background: var(--highlight);
        }

        /* ── Settings tab ── */
        .editor-settings-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            align-items: start;
        }
        .editor-settings-grid .editor-card { margin-bottom: 0; }

        .editor-danger-zone {
            border-color: var(--coral-light);
        }
        .editor-danger-zone .editor-card-title { color: var(--coral); }

        .editor-toggle-row {
            display: flex; align-items: center;
            justify-content: space-between;
            padding: 14px 0;
            border-bottom: 1px solid var(--light-overlay);
        }
        .editor-toggle-row:last-child { border-bottom: none; padding-bottom: 0; }
        .editor-toggle-label {
            font-size: 0.875em; font-weight: 600; color: var(--dark);
            margin-bottom: 2px;
        }
        .editor-toggle-desc {
            font-size: 0.75em; color: var(--dark-muted); line-height: 1.4;
        }
        .editor-toggle {
            width: 42px; height: 24px; border-radius: 100px;
            background: var(--light-deep); border: none; cursor: pointer;
            position: relative; transition: background 0.22s; flex-shrink: 0;
        }
        .editor-toggle.on { background: var(--accent); }
        .editor-toggle::after {
            content: ''; position: absolute;
            top: 3px; left: 3px;
            width: 18px; height: 18px; border-radius: 50%;
            background: white; transition: transform 0.22s;
            box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        }
        .editor-toggle.on::after { transform: translateX(18px); }
        /* ── My Learning page ───────────────────────── */
        .ml-hero {
            background: var(--white);
            border-bottom: 1px solid var(--border);
            padding: 36px 60px 32px;
        }
        .ml-hero-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 24px;
        }
        .ml-hero-greeting {
            font-size: 0.8em;
            color: var(--ink-muted);
            margin-bottom: 4px;
        }
        .ml-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 1.9em;
            font-weight: 700;
            color: var(--ink);
            line-height: 1.2;
        }
        .ml-hero h1 em { color: var(--teal); font-style: italic; }
        .ml-stats {
            display: flex;
            gap: 28px;
        }
        .ml-stat {
            text-align: center;
        }
        .ml-stat-num {
            font-family: 'Playfair Display', serif;
            font-size: 1.6em;
            font-weight: 700;
            color: var(--teal);
            line-height: 1;
            margin-bottom: 2px;
        }
        .ml-stat-label {
            font-size: 0.72em;
            color: var(--ink-muted);
            white-space: nowrap;
        }

        .ml-body {
            max-width: 1100px;
            margin: 0 auto;
            padding: 40px 60px 80px;
            display: grid;
            grid-template-columns: 1fr 280px;
            gap: 40px;
        }

        /* Section label */
        .ml-section-label {
            font-size: 0.72em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--ink-muted);
            margin-bottom: 16px;
        }

        /* In-progress cards */
        .ml-progress-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }

        .ml-progress-card {
            background: var(--white);
            border: 1.5px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px 22px;
            display: flex;
            gap: 18px;
            align-items: center;
            transition: all 0.2s;
            cursor: pointer;
        }
        .ml-progress-card:hover {
            border-color: var(--teal);
            box-shadow: 0 4px 20px var(--shadow);
            transform: translateX(3px);
        }
        .ml-progress-card-icon {
            width: 48px; height: 48px;
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.3em;
            flex-shrink: 0;
        }
        .ml-progress-card-main { flex: 1; min-width: 0; }
        .ml-progress-card-type {
            font-size: 0.65em;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 3px;
        }
        .ml-progress-card-type.is-course { color: var(--teal); }
        .ml-progress-card-type.is-module { color: var(--coral); }
        .ml-progress-card-title {
            font-family: 'Playfair Display', serif;
            font-size: 0.95em;
            font-weight: 700;
            color: var(--ink);
            line-height: 1.3;
            margin-bottom: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .ml-progress-bar-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .ml-progress-track {
            flex: 1;
            height: 5px;
            background: var(--fog-deep);
            border-radius: 100px;
            overflow: hidden;
        }
        .ml-progress-fill {
            height: 100%;
            border-radius: 100px;
            background: linear-gradient(90deg, var(--teal), var(--secondary));
        }
        .ml-progress-pct {
            font-size: 0.72em;
            font-weight: 600;
            color: var(--ink-muted);
            white-space: nowrap;
        }
        .ml-progress-sub {
            font-size: 0.7em;
            color: var(--ink-muted);
            margin-top: 5px;
        }
        .ml-continue-btn {
            font-size: 0.75em;
            font-weight: 700;
            padding: 8px 16px;
            background: var(--teal);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.18s;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .ml-continue-btn:hover { background: #009090; }

        /* Completed section */
        .ml-completed-list { display: flex; flex-direction: column; gap: 10px; }
        .ml-completed-card {
            background: var(--white);
            border: 1.5px solid var(--border);
            border-radius: var(--radius);
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
            transition: all 0.18s;
        }
        .ml-completed-card:hover { border-color: var(--border); box-shadow: 0 2px 10px var(--shadow); }
        .ml-completed-icon {
            width: 36px; height: 36px;
            border-radius: 9px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1em;
            flex-shrink: 0;
        }
        .ml-completed-main { flex: 1; }
        .ml-completed-title { font-size: 0.85em; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
        .ml-completed-meta { font-size: 0.7em; color: var(--ink-muted); }
        .ml-completed-badge {
            font-size: 0.68em;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 100px;
        }
        .ml-completed-badge.cert { background: var(--gold-light); color: #7a5a10; }
        .ml-completed-badge.done { background: var(--teal-light); color: var(--teal); }

        /* Sidebar */
        .ml-sidebar { display: flex; flex-direction: column; gap: 20px; }
        .ml-sidebar-card {
            background: var(--white);
            border: 1.5px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px;
        }
        .ml-sidebar-title {
            font-size: 0.78em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--ink-muted);
            margin-bottom: 14px;
        }
        .ml-cert-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: opacity 0.15s;
        }
        .ml-cert-item:last-child { border-bottom: none; padding-bottom: 0; }
        .ml-cert-item:hover { opacity: 0.8; }
        .ml-cert-icon {
            width: 36px; height: 36px;
            border-radius: 8px;
            background: var(--gold-light);
            display: flex; align-items: center; justify-content: center;
            font-size: 1em;
            flex-shrink: 0;
        }
        .ml-cert-name { font-size: 0.8em; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 2px; }
        .ml-cert-date { font-size: 0.68em; color: var(--ink-muted); }
        .ml-cert-download {
            font-size: 0.68em;
            color: var(--teal);
            font-weight: 600;
            margin-left: auto;
            flex-shrink: 0;
        }

        /* Suggested next */
        .ml-suggest-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: opacity 0.15s;
        }
        .ml-suggest-item:last-child { border-bottom: none; padding-bottom: 0; }
        .ml-suggest-item:hover { opacity: 0.75; }
        .ml-suggest-dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: var(--teal);
            margin-top: 5px;
            flex-shrink: 0;
        }
        .ml-suggest-name { font-size: 0.8em; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 2px; }
        .ml-suggest-meta { font-size: 0.68em; color: var(--ink-muted); }

        /* Activity streak */
        .ml-streak-row {
            display: flex;
            gap: 5px;
            margin-top: 4px;
        }
        .ml-streak-day {
            flex: 1;
            height: 28px;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6em;
            font-weight: 600;
            color: var(--ink-muted);
        }
        .ml-streak-day.active { background: var(--teal); color: white; }
        .ml-streak-day.partial { background: var(--teal-light); color: var(--teal); }
        .ml-streak-day.empty { background: var(--fog); }
        .ml-streak-label {
            font-size: 0.72em;
            color: var(--ink-muted);
            margin-top: 8px;
            text-align: center;
        }