/* ============================================
   HRBP Academy - Web3 Style
   ============================================ */

:root {
    --bg-primary: #10132a;
    --bg-secondary: #161938;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f0f5;
    --text-secondary: #d0d0dc;
    --text-muted: #a0a0b4;
    --accent-purple: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --gradient-main: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 粒子画布 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    transition: all 0.3s ease, transform 0.3s ease;
    background: rgba(10, 10, 30, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar.scrolled {
    background: rgba(10, 10, 30, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon svg {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.btn-connect {
    position: relative;
    padding: 8px 18px;
    background: var(--gradient-main);
    border: none;
    border-radius: 50px;
    white-space: nowrap;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: var(--gradient-main);
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.3); }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(16, 19, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 32px;
    z-index: 99;
    border-bottom: 1px solid var(--border-glass);
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 15px;
    transition: 0.2s;
}

.mobile-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 32px 100px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 60px;
    z-index: 2;
}

.hero-bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: -10%;
    left: -10%;
    animation: float1 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    bottom: 10%;
    right: -5%;
    animation: float2 10s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    top: 40%;
    left: 30%;
    animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 30px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -40px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

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

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    margin-bottom: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.stat-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat-unit {
    position: absolute;
    top: 2px;
    right: -14px;
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-main);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    min-height: 400px;
    z-index: 10;
}

.floating-card {
    position: absolute;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: cardFloat 6s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, z-index 0s;
    z-index: 1;
}

.floating-card:hover,
.floating-card.tip-active {
    transform: scale(1.08) translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.4);
    animation-play-state: paused;
    z-index: 100;
}

.fc-progress-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    margin-left: 4px;
}

/* Tooltip on hover — uses JS-driven .show class for reliable interaction */
.fc-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 35, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    padding: 16px 18px 20px;
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(99,102,241,0.08);
}

/* Bridge area: card → tooltip gap */
.fc-tooltip::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
}

/* Extra bottom padding zone so CTA is easier to reach */
.fc-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 12px;
}

.fc-tooltip.show {
    display: block;
    animation: tooltipIn 0.2s ease;
}

@keyframes tooltipIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.fc-tooltip-title {
    font-size: 12px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 8px;
}

.fc-tooltip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 3px 0;
    color: rgba(255,255,255,0.7);
}

.fc-tooltip-item.learned {
    color: #10b981;
}

.fc-tooltip-item .tip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.fc-tooltip-item.learned .tip-dot {
    background: #10b981;
}

/* Quick question in tooltip */
.fc-quick-q {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fc-quick-q-title {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 6px;
}

.fc-quick-q-text {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 8px;
}

.fc-quick-opts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fc-quick-opt {
    padding: 7px 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    line-height: 1.4;
}

.fc-quick-opt:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #e0e0ff;
}

.fc-quick-opt.correct {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.fc-quick-opt.wrong {
    opacity: 0.4;
}

.fc-quick-feedback {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255,255,255,0.6);
    animation: fadeSlideUp 0.2s ease;
}

.fc-tooltip-cta {
    margin-top: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 8px;
    font-size: 12px;
    color: #a5b4fc;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.fc-tooltip-cta:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(168,85,247,0.3));
    color: #e0e0ff;
}

.fc-icon {
    font-size: 24px;
}

.fc-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.fc-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-left: 8px;
}

.fc-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-main);
}

.card-1 { top: 5%; left: 5%; animation-delay: 0s; }
.card-2 { top: 30%; right: 0%; animation-delay: -1.5s; }
.card-3 { bottom: 30%; left: 10%; animation-delay: -3s; }
.card-4 { bottom: 12%; right: 10%; animation-delay: -4.5s; }

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

.hex-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, 60px);
    gap: 8px;
    opacity: 0.15;
}

.hex {
    width: 60px;
    height: 52px;
    background: var(--gradient-main);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ============ 通用段落 ============ */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 32px 28px;
    position: relative;
    z-index: 1;
}

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

.section-header.compact {
    margin-bottom: 20px;
}

.section-header.compact .section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-title-sub {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0;
    margin-top: 6px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============ 模块卡片 ============ */
.module-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* P0: 默认只显示前3个卡片 */
.modules-grid:not(.expanded) .module-card:nth-child(n+4) {
    display: none;
}

.models-grid:not(.expanded) .model-card:nth-child(n+7) {
    display: none;
}

.section-show-all {
    text-align: center;
    margin-top: 28px;
}

.section-show-all-btn {
    padding: 12px 36px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}

.section-show-all-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    transform: translateY(-1px);
}

.section-show-all-btn svg {
    vertical-align: middle;
    margin-left: 6px;
    transition: transform 0.25s;
}

.section-show-all-btn.expanded svg {
    transform: rotate(180deg);
}

/* P1: 板块间渐变分隔 */
section + section::before,
.models-section::before {
    content: '';
    display: block;
    height: 1px;
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15) 20%, rgba(168, 85, 247, 0.15) 80%, transparent);
}

/* P1: 导航搜索 */
.nav-search {
    position: relative;
    margin-right: 12px;
}

.nav-search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.nav-search-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    justify-content: center;
    padding-top: 18vh;
}

.nav-search-overlay.active {
    display: flex;
}

.nav-search-box {
    width: 560px;
    max-width: 90vw;
    background: var(--bg-card, #1a1a3e);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.nav-search-input {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.nav-search-input::placeholder {
    color: var(--text-muted);
}

.nav-search-results {
    overflow-y: auto;
    padding: 4px 0;
    max-height: 45vh;
}

.nav-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.nav-search-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.nav-search-item-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99,102,241,0.12);
    color: var(--accent-purple);
    white-space: nowrap;
}

.nav-search-item-name {
    font-size: 14px;
    color: var(--text-primary);
}

.nav-search-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.module-card {
    position: relative;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.module-card:hover .card-glow {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.card-icon.strategy { background: rgba(99, 102, 241, 0.15); color: var(--accent-purple); }
.card-icon.talent { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); }
.card-icon.org { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.card-icon.culture { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.card-icon.data { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.card-icon.change { background: rgba(139, 92, 246, 0.15); color: var(--accent-violet); }
.card-icon.coaching { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

.card-level {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--bg-glass);
    color: var(--text-muted);
}

.card-level.hot {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
}

.card-level.new {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

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

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-item svg {
    color: var(--text-muted);
}

.card-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.card-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.card-btn.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
}

/* ============ HR 模型库 ============ */
.models-section {
    background: transparent;
}

/* All sections use tighter vertical padding */

.model-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.model-filter-btn {
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.model-filter-btn:hover,
.model-filter-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

.model-filter-btn.highlight {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
}

.model-filter-btn.highlight:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
}

.model-filter-btn.coming-soon {
    opacity: 0.5;
    cursor: default;
    padding-right: 28px;
}

.model-filter-btn.coming-soon::after {
    content: '即将上线';
    position: absolute;
    top: -8px;
    right: -4px;
    padding: 2px 6px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    font-size: 9px;
    color: var(--accent-amber);
    white-space: nowrap;
    font-weight: 600;
}

.model-filter-btn.coming-soon:hover {
    background: var(--bg-glass);
    border-color: var(--border-glass);
    color: var(--text-secondary);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.model-card {
    cursor: pointer;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.model-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.08);
}

.model-card:hover::before {
    opacity: 1;
}

.model-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.model-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.model-icon svg {
    width: 26px;
    height: 26px;
}

.model-difficulty {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
}

.model-difficulty.beginner {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
}

.model-difficulty.intermediate {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-purple);
}

.model-difficulty.advanced {
    background: rgba(236, 72, 153, 0.12);
    color: var(--accent-pink);
}

.model-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.model-card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.model-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.model-origin {
    font-size: 12px;
    color: var(--text-muted);
}

.model-elements {
    font-size: 12px;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 50px;
    color: var(--accent-purple);
}

/* ============ 模型分栏布局 ============ */
.model-split-view {
    display: flex;
    gap: 0;
    min-height: 80vh;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.model-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 85vh;
    position: sticky;
    top: 80px;
}

.sidebar-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.sidebar-back:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-models {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-glass);
}

.sidebar-model-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
}

.sidebar-model-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.sidebar-model-item.active {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-purple);
    border-left-color: var(--accent-purple);
    font-weight: 600;
}

.sidebar-model-item .sidebar-difficulty {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50px;
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-difficulty.beginner { background: rgba(16,185,129,0.1); color: var(--accent-emerald); }
.sidebar-difficulty.intermediate { background: rgba(99,102,241,0.1); color: var(--accent-purple); }
.sidebar-difficulty.advanced { background: rgba(236,72,153,0.1); color: var(--accent-pink); }

.sidebar-toc {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-toc-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-toc-item {
    display: block;
    padding: 7px 20px 7px 24px;
    font-size: 12.5px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    text-decoration: none;
}

.sidebar-toc-item:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-toc-item.active {
    color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
}

.model-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    max-height: 85vh;
}

.model-detail-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.model-detail-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.model-detail-oneliner {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.model-detail-origin {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-detail-origin::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

.model-section {
    margin-bottom: 28px;
}

.model-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-section-title .section-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.model-section-title .icon-framework { background: rgba(99, 102, 241, 0.12); }
.model-section-title .icon-usage { background: rgba(6, 182, 212, 0.12); }
.model-section-title .icon-steps { background: rgba(16, 185, 129, 0.12); }
.model-section-title .icon-case { background: rgba(245, 158, 11, 0.12); }
.model-section-title .icon-pitfall { background: rgba(239, 68, 68, 0.12); }
.model-section-title .icon-related { background: rgba(168, 85, 247, 0.12); }

.model-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.model-diagram {
    margin-bottom: 20px;
    padding: 24px;
    background: rgba(10, 12, 30, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
}

.model-diagram svg {
    width: 100%;
    max-width: 55%;
    height: auto;
}

.model-framework {
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
}

.framework-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.framework-element {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent-purple);
    font-weight: 500;
}

.framework-element.core {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    font-weight: 600;
}

.framework-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* 理论深度 */
.theory-block {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    margin-bottom: 12px;
}

.theory-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

.theory-content {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.usage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.usage-tag {
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-xs);
    font-size: 13px;
    color: var(--accent-cyan);
}

.model-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xs);
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-top: 2px;
}

.case-study-block {
    padding: 20px 24px;
    background: rgba(245, 158, 11, 0.04);
    border-left: 3px solid var(--accent-amber);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.case-study-company {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-amber);
    margin-bottom: 10px;
}

.case-study-block p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.pitfall-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pitfall-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-xs);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pitfall-item::before {
    content: '!';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.related-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-model-tag {
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent-violet);
    cursor: pointer;
    transition: all 0.2s;
}

.related-model-tag:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

/* 要素详解 */
.element-detail-block {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.element-detail-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.element-detail-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.questions-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.element-questions {
    padding: 12px 16px;
    background: rgba(6, 182, 212, 0.04);
    border-radius: var(--radius-xs);
}

.question-item {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0 5px 18px;
    position: relative;
    line-height: 1.6;
}

.question-item::before {
    content: '?';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 多案例 */
.case-study-block + .case-study-block {
    margin-top: 16px;
}

.case-details {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
}

.case-details li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0 4px 20px;
    position: relative;
    line-height: 1.7;
}

.case-details li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-amber);
    opacity: 0.6;
}

.case-result {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-xs);
    font-size: 13px;
    color: var(--accent-emerald);
    font-weight: 500;
    line-height: 1.6;
}

.case-result::before {
    content: '> ';
    font-weight: 700;
}

.case-links {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xs);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.case-links-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.case-link {
    font-size: 12px;
    color: var(--accent-purple);
    text-decoration: none;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 50px;
    transition: all 0.2s;
    white-space: nowrap;
}

.case-link:hover {
    background: rgba(99, 102, 241, 0.18);
    color: var(--text-primary);
}

/* 步骤详情 */
.step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* 可折叠步骤 */
.step-collapsible {
    cursor: pointer;
    transition: background 0.2s;
}

.step-collapsible:hover {
    background: rgba(255, 255, 255, 0.04);
}

.step-toggle {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.step-open .step-toggle {
    transform: rotate(180deg);
}

.step-desc-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0;
}

.step-open .step-desc-wrap {
    max-height: 1500px;
    padding-top: 6px;
}

.step-substeps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.substep-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-xs);
}

.substep-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-emerald);
    white-space: nowrap;
    padding-top: 2px;
}

.substep-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.substep-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0 0 12px 0;
    letter-spacing: 0.01em;
}

.substep-item p:last-child {
    margin-bottom: 0;
}

/* 误区详情 */
.pitfall-item strong {
    color: var(--text-primary);
}

/* 实操模板 */
.template-block {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
}
.template-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 6px;
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
}
.template-copy-btn:hover {
    background: rgba(99, 102, 241, 0.25);
}
.template-copy-btn.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
}

.template-pre {
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", monospace;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* 在线诊断表 */
.interactive-form {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
}

.form-intro {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.form-label {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.5;
}

.form-rating {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.rating-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.rating-btn:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent-purple);
}

.rating-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent-purple);
}

.form-report {
    margin-top: 24px;
    padding: 20px;
    background: rgba(10, 12, 30, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.report-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.report-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-label {
    font-size: 12px;
    color: var(--text-secondary);
    width: 140px;
    flex-shrink: 0;
}

.report-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.report-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.report-score {
    font-size: 13px;
    font-weight: 700;
    width: 90px;
    text-align: right;
    flex-shrink: 0;
}

.report-level {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
}

.report-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 14px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-xs);
}

.report-summary strong {
    color: var(--accent-purple);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .report-label {
        width: 100%;
    }
}

/* ============ 学习路径 ============ */
.learning-path {
    background: var(--bg-secondary);
}

.path-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 60px;
}

.path-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-purple), rgba(99, 102, 241, 0.1));
}

.path-node {
    position: relative;
    margin-bottom: 32px;
}

.path-node:last-child {
    margin-bottom: 0;
}

.node-marker {
    position: absolute;
    left: -60px;
    top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.node-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
    z-index: 1;
}

.node-dot.completed {
    border-color: var(--accent-emerald);
    background: var(--accent-emerald);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.node-dot.active {
    border-color: var(--accent-purple);
    background: var(--accent-purple);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 24px rgba(99, 102, 241, 0.6); }
}

.node-level {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.glass-card {
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

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

.node-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.node-card.active {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

.node-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-secondary);
}

.node-status {
    font-size: 13px;
    font-weight: 500;
}

.node-status.completed {
    color: var(--accent-emerald);
}

.node-status.active {
    color: var(--accent-purple);
}

.node-status.locked {
    color: var(--text-muted);
}

.status-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-bar {
    flex: 1;
    max-width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.sp-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 3px;
}

/* ============ 学习路径卡片 ============ */
.paths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.path-card {
    padding: 28px;
}

.path-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.path-audience {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.path-duration {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 11px;
    color: var(--accent-purple);
    font-weight: 600;
}

.path-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.path-model-tag {
    padding: 6px 12px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 6px;
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 500;
}

.path-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

.path-course-link {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
}

/* ============ 工具箱 ============ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    text-align: center;
    padding: 32px 24px;
    cursor: pointer;
}

.tool-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.tool-icon-wrap {
    margin-bottom: 16px;
}

.tool-icon {
    font-size: 36px;
    display: inline-block;
    animation: iconBounce 3s ease-in-out infinite;
}

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

.tool-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.tool-type {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    color: var(--accent-purple);
}

/* ============ 社区 ============ */
.community {
    background: var(--bg-secondary);
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comm-card {
    padding: 28px;
    cursor: pointer;
}

.comm-card.featured {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.comm-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.comm-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-main);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    width: fit-content;
}

.comm-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.comm-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

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

.comm-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-right: -8px;
    border: 2px solid var(--bg-secondary);
}

.avatar.more {
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.comm-replies {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============ Footer ============ */
.footer {
    border-top: 1px solid var(--border-glass);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 32px 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.2s;
}

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

/* ============ Modal ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 28, 0.8);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    font-size: 12px;
    color: var(--accent-purple);
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-main);
}

.modal-outline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xs);
    font-size: 14px;
    color: var(--text-secondary);
}

.outline-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

/* ============ 滚动条 ============ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============ 登录弹窗 ============ */
.auth-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-modal {
    max-width: 400px; width: 100%; padding: 32px;
    background: var(--bg-secondary); border: 1px solid var(--border-glass);
    border-radius: var(--radius); position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.auth-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; color: var(--text-muted);
    font-size: 24px; cursor: pointer; padding: 4px 8px;
}
.auth-close:hover { color: var(--text-primary); }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.auth-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.auth-field { margin-bottom: 12px; }
.auth-field input {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass); background: var(--bg-glass);
    color: var(--text-primary); font-size: 15px; outline: none;
}
.auth-field input:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 2px rgba(99,102,241,0.2); }
.auth-code-row { display: flex; gap: 8px; }
.auth-code-row input { flex: 1; }
.auth-send-btn {
    flex-shrink: 0; padding: 0 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--accent-purple); background: transparent;
    color: var(--accent-purple); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.auth-send-btn:hover { background: rgba(99,102,241,0.1); }
.auth-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-submit-btn {
    width: 100%; padding: 12px; border: none; border-radius: var(--radius-sm);
    background: var(--gradient-main); color: white; font-size: 15px; font-weight: 600;
    cursor: pointer; margin-top: 4px;
}
.auth-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-tip { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.auth-logged {
    display: flex; align-items: center; gap: 16px; padding: 16px 0;
}
.auth-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-main); display: flex; align-items: center; justify-content: center;
    color: white; font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.auth-user-info { flex: 1; }
.auth-phone { font-size: 16px; font-weight: 600; }
.auth-nickname { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.auth-logout-btn {
    padding: 6px 16px; border-radius: var(--radius-xs);
    border: 1px solid var(--border-glass); background: transparent;
    color: var(--text-muted); font-size: 13px; cursor: pointer;
}
.auth-logout-btn:hover { color: var(--accent-pink); border-color: rgba(236,72,153,0.3); }

/* 登录提示条（内容截断处显示） */
.login-gate {
    padding: 24px; text-align: center;
    background: linear-gradient(to bottom, transparent, var(--bg-primary) 30%);
    margin-top: -40px; position: relative;
}
.login-gate-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px;
    background: var(--gradient-main); border: none; border-radius: 50px;
    color: white; font-size: 14px; font-weight: 600; cursor: pointer;
}
.login-gate-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.4); }
.login-gate-text { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding-top: 100px;
        min-height: 100vh;
    }
    .hero-visual {
        position: static;
        min-height: auto;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 16px;
        scroll-snap-type: x mandatory;
    }
    .hero-visual .hex-grid { display: none; }
    .hero-visual .floating-card {
        position: static;
        flex-shrink: 0;
        width: 140px;
        animation: none;
        scroll-snap-align: start;
        transform: none !important;
    }
    .hero-visual .floating-card:hover,
    .hero-visual .floating-card.tip-active {
        transform: none !important;
        animation-play-state: running;
    }
    .hero-visual .fc-tooltip { display: none !important; }
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-item {
        min-width: 80px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .section-title {
        font-size: 28px;
    }
    .section-header.compact .section-title {
        font-size: 20px;
    }
    .section-title-sub {
        font-size: 12px;
    }
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .models-grid {
        grid-template-columns: 1fr;
    }
    .model-split-view {
        flex-direction: column;
        min-height: auto;
    }
    .model-sidebar {
        width: 100%;
        max-height: none;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    .sidebar-toc {
        display: none;
    }
    .model-content {
        max-height: none;
        padding: 24px;
    }
    .model-detail-header h2 {
        font-size: 22px;
    }
    .model-filters {
        gap: 6px;
    }
    .model-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .community-grid {
        grid-template-columns: 1fr;
    }
    .comm-card.featured {
        grid-row: auto;
    }
    .footer-top {
        flex-direction: column;
    }
    .footer-links {
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .paths-grid {
        grid-template-columns: 1fr;
    }
    .path-timeline {
        padding-left: 50px;
    }
    .node-marker {
        left: -50px;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
    .section-container {
        padding: 40px 16px 24px;
    }
    .hero {
        padding: 100px 16px 80px;
    }
    .hero-title {
        font-size: 28px;
    }
    .module-filters {
        gap: 6px;
    }
    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .model-filter-btn.coming-soon::after {
        font-size: 8px;
        padding: 1px 4px;
    }
    .model-content {
        padding: 20px;
    }
    .framework-elements {
        gap: 6px;
    }
    .framework-element {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ============ Interactive Tools ============ */

.tool-interactive {
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tool-interactive:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}

.tool-type-active {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #a78bfa !important;
    font-weight: 600;
}

.tool-coming-soon {
    opacity: 0.55;
    cursor: default !important;
    position: relative;
}

.tool-coming-soon:hover {
    transform: none !important;
    border-color: var(--border-glass) !important;
}

.tool-coming-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    font-size: 11px;
    color: var(--accent-amber);
    font-weight: 600;
}

/* Tool Modal */
.tool-modal-content {
    max-width: 720px;
    max-height: 88vh;
}

.tool-inner {
    padding: 8px 0;
}

.tool-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.tool-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.btn-secondary {
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Q12 Tool */
.q12-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
}

.q12-question {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.5;
}

.q12-num {
    display: inline-block;
    min-width: 32px;
    font-weight: 700;
    color: var(--accent-purple);
    font-size: 12px;
}

.q12-rating {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.q12-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.q12-btn:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.q12-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-purple);
}

.q12-btn.selected {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* Q12 Results */
.q12-results {
    animation: modalIn 0.3s ease;
}

.q12-overall {
    text-align: center;
    padding: 32px 0;
    margin-bottom: 24px;
}

.q12-overall-score {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.q12-overall-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.q12-overall-verdict {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.q12-levels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.q12-level-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.q12-level-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.q12-level-name {
    font-weight: 700;
    font-size: 14px;
    flex: 1;
}

.q12-level-range {
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 12px;
}

.q12-level-score {
    font-weight: 700;
    font-size: 18px;
}

.q12-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.q12-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* GROW Tool */
.grow-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.grow-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grow-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.grow-input {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.grow-input:focus {
    border-color: rgba(99, 102, 241, 0.4);
}

.grow-input option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.grow-results {
    animation: modalIn 0.3s ease;
}

.grow-header-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xs);
}

.grow-phase {
    padding: 16px 16px 16px 20px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.grow-phase-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.grow-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grow-q-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xs);
}

.grow-q-text {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.5;
}

.grow-copy-btn {
    flex-shrink: 0;
    padding: 4px 12px;
    border: 1px solid var(--border-glass);
    background: transparent;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.grow-copy-btn:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--accent-purple);
}

.grow-copy-btn.copied {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--accent-emerald);
}

/* Nine Box Tool */
.nb-add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.nb-name-input {
    flex: 1;
}

.nb-add-btn {
    flex-shrink: 0;
}

.nb-grid-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.nb-y-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 4px;
}

.nb-grid-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nb-y-labels {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: absolute;
    left: -28px;
    top: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-end;
}

.nb-y-labels span {
    font-size: 11px;
    color: var(--text-muted);
}

.nb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    position: relative;
}

.nb-cell {
    min-height: 100px;
    padding: 8px;
    border: 1px solid;
    border-radius: var(--radius-xs);
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    position: relative;
}

.nb-cell.nb-dragover {
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-purple) !important;
}

.nb-cell-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.nb-cell-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.nb-cell-people {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nb-person {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 11px;
    color: var(--text-primary);
    cursor: grab;
    user-select: none;
}

.nb-person:active {
    cursor: grabbing;
}

.nb-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.nb-remove:hover {
    color: #ef4444;
}

.nb-x-labels {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 6px;
}

.nb-x-labels span {
    font-size: 11px;
    color: var(--text-muted);
}

.nb-x-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}

.nb-unassigned {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-sm);
    min-height: 48px;
}

.nb-unassigned-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.nb-unassigned-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nb-unassigned-person {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
}

/* ============ Course Detail View ============ */
.course-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0;
    background: var(--bg-primary);
    z-index: 110;
    animation: courseSlideIn 0.4s ease;
    overflow: hidden;
}

.course-detail-view.closing {
    animation: courseSlideOut 0.3s ease forwards;
}

@keyframes courseSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes courseSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

.course-sidebar {
    width: 268px;
    min-width: 268px;
    background: rgba(10, 12, 28, 0.95);
    border-right: 1px solid var(--border-glass);
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 18px 20px;
    background: rgba(99, 102, 241, 0.05);
    border: none;
    border-bottom: 1px solid var(--border-glass);
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.sidebar-back:hover {
    background: rgba(99, 102, 241, 0.12);
    padding-left: 16px;
}

.course-sidebar-info {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.sidebar-course-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.sidebar-course-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.sidebar-course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.sidebar-course-meta span {
    font-size: 12px;
    color: var(--accent-purple);
    font-weight: 600;
    background: rgba(99, 102, 241, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
}

.sidebar-course-goals h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.sidebar-course-goals ul {
    list-style: none;
    padding: 0;
}

.sidebar-course-goals li {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.5;
}

.sidebar-course-goals li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
}

.course-chapters-nav {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.chapter-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.chapter-nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.chapter-nav-item.active {
    background: rgba(99, 102, 241, 0.12);
    border-left-color: var(--accent-purple);
}

.chapter-nav-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 1px;
}

.chapter-nav-item.active .chapter-nav-num {
    background: var(--accent-purple);
    color: white;
}

.chapter-nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chapter-nav-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

.chapter-nav-item.active .chapter-nav-label {
    color: var(--text-primary);
}

.chapter-nav-duration {
    font-size: 11px;
    color: var(--text-muted);
}

/* Course Content Area */
.course-content {
    flex: 1;
    padding: 72px 40px 80px;
    max-width: 820px;
    overflow-y: auto;
}

/* Chapter content fade-in */
.course-content > * {
    animation: chapterFadeIn 0.35s ease;
}

@keyframes chapterFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.chapter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.chapter-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
}

.chapter-duration {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-purple);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 4px;
}

.chapter-summary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 36px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.chapter-section {
    margin-bottom: 32px;
}

.chapter-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 3px solid var(--accent-purple);
}

.chapter-section-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.85;
    padding-left: 14px;
}

.chapter-related {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.chapter-related h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chapter-related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chapter-related-tags .related-model-tag {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent-purple);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.chapter-related-tags .related-model-tag.clickable {
    cursor: pointer;
}

.chapter-related-tags .related-model-tag.clickable:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.chapter-exercise {
    margin-top: 32px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.chapter-exercise-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.chapter-exercise-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-emerald);
    margin-bottom: 8px;
}

.chapter-exercise-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.chapter-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    gap: 16px;
}

.chapter-nav-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 45%;
    text-align: left;
    line-height: 1.4;
}

.chapter-nav-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

.chapter-nav-btn.next {
    text-align: right;
    margin-left: auto;
}

/* Course detail responsive */
@media (max-width: 900px) {
    .course-detail-view {
        flex-direction: column;
    }
    .course-sidebar {
        width: 100%;
        min-width: 100%;
        position: sticky;
        top: 0;
        bottom: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    .course-content {
        padding: 24px 16px 60px;
    }
    .course-sidebar-info {
        padding: 16px;
    }
    .sidebar-course-goals {
        display: none;
    }
    .course-chapters-nav {
        display: flex;
        overflow-x: auto;
        padding: 8px 12px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .chapter-nav-item {
        flex-direction: column;
        align-items: center;
        padding: 8px 12px;
        min-width: 80px;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
        gap: 4px;
    }
    .chapter-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-purple);
    }
    .chapter-nav-label {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .course-content {
        padding: 24px 20px;
        max-height: none;
    }
    .chapter-title {
        font-size: 20px;
    }
    .chapter-header {
        flex-direction: column;
        gap: 8px;
    }
    .chapter-section-title {
        font-size: 17px;
    }
    .chapter-section-content {
        font-size: 14px;
    }
    .chapter-nav-bottom {
        flex-direction: column;
        gap: 12px;
    }
    .chapter-nav-btn {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    .chapter-nav-btn.next {
        text-align: center;
    }
}

/* Tool responsive */
@media (max-width: 768px) {
    .q12-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .tool-modal-content {
        max-height: 92vh;
        padding: 20px;
    }
    .grow-q-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .nb-cell {
        min-height: 80px;
    }
}

/* Model Side Panel */
.side-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 149;
}

.side-panel-overlay.open {
    display: block;
}

.model-side-panel {
    position: fixed;
    top: 0;
    right: -55%;
    width: 55%;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    z-index: 150;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.model-side-panel.open {
    right: 0;
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.side-panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.side-panel-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.side-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.side-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Side panel content blocks */
.sp-oneliner {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.sp-origin {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.sp-diagram {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
}

.sp-diagram svg {
    width: 100%;
    height: auto;
}

.sp-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.sp-element {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.sp-element.core {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-purple);
    font-weight: 600;
}

.sp-theory-preview {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    margin-bottom: 20px;
}

.sp-theory-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.sp-theory-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.sp-usage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.sp-usage-tag {
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 4px;
    font-size: 11px;
    color: var(--accent-cyan);
}

.sp-full-link {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.sp-full-link:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Course view compression when panel is open */
.course-detail-view.side-panel-active {
    margin-right: 55%;
    transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-detail-view {
    transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile: panel takes full width */
@media (max-width: 900px) {
    .model-side-panel {
        width: 100%;
        right: -100%;
    }

    .course-detail-view.side-panel-active {
        margin-right: 0;
    }
}

/* ============ Feature 1: Progress Tracking ============ */
.viewed-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    color: var(--accent-emerald);
    font-weight: 500;
}

.hero-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
}
.hero-progress-label {
    font-size: 13px;
    color: var(--accent-emerald);
    font-weight: 500;
    white-space: nowrap;
}
.hero-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}
.hero-progress-text {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.hero-progress-reset {
    font-size: 11px;
    padding: 3px 8px;
    background: none;
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
}
.hero-progress-reset:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.15); }

/* ============ Feature 2: Model Comparison ============ */
.compare-check {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--border-glass);
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.compare-check:hover { border-color: var(--accent-purple); color: var(--accent-purple); }
.compare-check.checked {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}
.compare-fab {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 90;
    font-size: 13px;
    color: var(--text-secondary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.compare-btn {
    padding: 6px 16px;
    background: var(--gradient-main);
    border: none; border-radius: 50px;
    color: white; font-size: 13px; font-weight: 600;
    cursor: pointer;
}
.compare-clear {
    padding: 6px 12px;
    background: none; border: 1px solid var(--border-glass);
    border-radius: 50px; color: var(--text-muted);
    font-size: 12px; cursor: pointer;
}
.compare-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 32px;
}
.compare-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    max-width: 900px; width: 100%;
    max-height: 80vh; overflow-y: auto;
}
.compare-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
}
.compare-header h3 { font-size: 18px; font-weight: 700; }
.compare-header button {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.05);
    color: var(--text-secondary); font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.compare-body { padding: 24px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th {
    text-align: left; padding: 12px;
    background: rgba(99,102,241,0.08);
    color: var(--accent-purple); font-weight: 600;
    border-bottom: 1px solid var(--border-glass);
}
.compare-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-secondary);
    vertical-align: top; line-height: 1.6;
}
.compare-label {
    font-weight: 600; color: var(--text-primary);
    white-space: nowrap; width: 100px;
}

/* ============ Feature 3: TL;DR Box ============ */
.tldr-box {
    margin-bottom: 20px;
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.tldr-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(245,158,11,0.06);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-amber);
    transition: background 0.2s;
}
.tldr-toggle:hover { background: rgba(245,158,11,0.1); }
.tldr-icon { font-size: 16px; }
.tldr-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s;
}
.tldr-box.expanded .tldr-arrow { transform: rotate(180deg); }
.tldr-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}
.tldr-box.expanded .tldr-content {
    max-height: 500px;
    padding: 12px 16px 16px;
}
.tldr-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}
.tldr-content strong {
    color: var(--text-primary);
}

/* ============ Sprint 3: Model Share Button ============ */
.model-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 8px;
    color: var(--accent-purple);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}
.model-share-btn:hover { background: rgba(99,102,241,0.15); }
.model-share-btn.copied { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: var(--accent-emerald); }

/* ============ Sprint 3: Back to Top Button ============ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 80;
    backdrop-filter: blur(10px);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: rgba(99,102,241,0.15); color: var(--accent-purple); }

/* ============ Sprint 3: Mobile Experience Polish ============ */
@media (max-width: 768px) {
    .compare-modal { max-width: 100%; margin: 16px; }
    .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
    .compare-fab { bottom: 16px; padding: 8px 16px; font-size: 12px; }
    .tldr-content p { font-size: 12px; }
    .hero-progress { flex-wrap: wrap; gap: 8px; }
    .hero-progress-bar { min-width: 100%; order: 3; }
    .compare-overlay { padding: 16px; }
    .tool-modal-content { width: 100% !important; max-width: 100% !important; height: 100vh; max-height: 100vh; border-radius: 0; margin: 0; }
    .modal-overlay .modal { max-width: 100%; margin: 8px; border-radius: 12px; }
}

/* ============================================
   UX Optimizations
   ============================================ */

/* 1. Course breadcrumb topbar */
.course-topbar {
    position: absolute;
    top: 0;
    left: 268px;
    right: 0;
    height: 48px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 5;
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--text-primary); }

.breadcrumb-sep { font-size: 10px; opacity: 0.4; }

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-esc {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb-esc kbd {
    padding: 2px 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    font-size: 10px;
    font-family: inherit;
}

@media (max-width: 900px) {
    .course-topbar { left: 0; padding: 0 16px; }
}

/* 2. Model cards show more */
.model-card-hidden {
    display: none !important;
}

.show-more-models {
    text-align: center;
    margin-top: 24px;
}

.show-more-btn {
    padding: 12px 32px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* 3. Q12 suggestions */
.q12-suggestions {
    margin-top: 20px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
}
.q12-suggestions h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-emerald);
    margin-bottom: 16px;
}
.q12-suggest-block {
    margin-bottom: 16px;
}
.q12-suggest-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.q12-suggest-block ul {
    list-style: none;
    padding: 0;
}
.q12-suggest-block li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.6;
}
.q12-suggest-block li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--accent-emerald);
    font-size: 12px;
}
.q12-suggest-tip {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
}

/* 4. Welcome overlay */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.3s;
}

.welcome-card {
    max-width: 500px;
    width: 100%;
    padding: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    animation: modalIn 0.4s ease;
}

.welcome-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.welcome-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.welcome-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.welcome-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.welcome-step strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.welcome-step p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.welcome-start {
    width: 100%;
    padding: 14px;
    background: var(--gradient-main);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.welcome-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* 5. Chapter self-check */
.chapter-selfcheck {
    margin-top: 32px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
}
.chapter-selfcheck h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 12px;
}
.selfcheck-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.selfcheck-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.selfcheck-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2px;
}

.theme-opt {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.theme-opt:hover { color: var(--text-secondary); }

.theme-opt.active {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-purple);
}

/* ============================================
   Light Theme Variables & Overrides
   ============================================ */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.08);
}

[data-theme="light"] body {
    background: var(--bg-primary);
}

[data-theme="light"] .navbar {
    background: rgba(248, 249, 252, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 249, 252, 0.65);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #particles {
    opacity: 0.3;
}

[data-theme="light"] .module-card,
[data-theme="light"] .model-card,
[data-theme="light"] .nav-search-box {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

[data-theme="light"] .nav-search-overlay {
    background: rgba(0,0,0,0.25);
}

[data-theme="light"] .tool-card,
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

[data-theme="light"] .course-sidebar {
    background: rgba(245, 246, 250, 0.98);
}

[data-theme="light"] .course-topbar {
    background: rgba(248, 249, 252, 0.92);
}

[data-theme="light"] .model-side-panel {
    background: #ffffff;
}

[data-theme="light"] .welcome-card,
[data-theme="light"] .compare-modal {
    background: #ffffff;
}

[data-theme="light"] .orb { opacity: 0.15; }

[data-theme="light"] .template-block,
[data-theme="light"] .element-detail-block,
[data-theme="light"] .theory-block {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .case-study-block {
    border-left-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.03);
}

[data-theme="light"] .chapter-section-content,
[data-theme="light"] .chapter-summary {
    color: var(--text-secondary);
}

/* ============================================
   Keyboard Navigation Hint
   ============================================ */
.keyboard-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.4;
    margin-top: 16px;
    padding-bottom: 24px;
}

/* ============================================
   Reading Time Estimate
   ============================================ */
.chapter-reading-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.chapter-header {
    flex-wrap: wrap;
}

/* ============================================
   Sprint 4: BEI Interview Tool
   ============================================ */
.bei-results { margin-top: 20px; }
.bei-comp-header { margin-bottom: 20px; }
.bei-comp-header h3 { font-size: 20px; color: var(--accent-purple); }
.bei-comp-desc { color: var(--text-muted); margin-top: 4px; font-size: 14px; }
.bei-question-block { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.bei-main-q { font-size: 15px; font-weight: 600; display: flex; align-items: flex-start; gap: 10px; }
.bei-q-num { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; min-width: 24px; }
.bei-probes { margin-top: 12px; padding-left: 34px; }
.bei-probes-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.bei-probe-item { font-size: 13px; color: var(--text-secondary); padding: 3px 0; }
.bei-probe-item::before { content: '→ '; color: var(--accent-purple); }
.bei-scoring { margin-top: 24px; padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-glass); }
.bei-scoring h4 { margin-bottom: 12px; font-size: 15px; }
.bei-score-grid { display: flex; flex-direction: column; gap: 8px; }
.bei-score-item { display: flex; align-items: center; gap: 12px; }
.bei-score-num { font-weight: 700; font-size: 14px; min-width: 36px; color: var(--accent-purple); }
.bei-score-desc { font-size: 13px; color: var(--text-secondary); }

/* ============================================
   Sprint 4: Turnover Analysis Tool
   ============================================ */
.turnover-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-glass); }
.turnover-factor { flex: 1; }
.turnover-factor-name { font-weight: 600; font-size: 15px; display: block; }
.turnover-factor-desc { font-size: 12px; color: var(--text-muted); }
.turnover-weight { font-size: 11px; color: var(--accent-purple); }
.turnover-results { margin-top: 20px; }
.turnover-overview { display: flex; align-items: center; gap: 24px; padding: 24px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-glass); margin-bottom: 20px; }
.turnover-risk-circle { width: 100px; height: 100px; border-radius: 50%; border: 4px solid; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.turnover-risk-pct { font-size: 28px; font-weight: 700; }
.turnover-risk-label { font-size: 11px; color: var(--text-muted); }
.turnover-risk-level { font-size: 18px; font-weight: 700; }
.turnover-risk-target { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.turnover-detail-bars { margin-bottom: 20px; }
.turnover-detail-bars h4 { margin-bottom: 12px; }
.turnover-bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.turnover-bar-name { min-width: 80px; font-size: 13px; text-align: right; }
.turnover-bar-score { min-width: 35px; font-size: 13px; font-weight: 600; }
.turnover-interventions { margin-top: 16px; }
.turnover-interventions h4 { margin-bottom: 12px; }
.turnover-intervention-block { background: var(--bg-card); padding: 14px; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid var(--border-glass); }
.turnover-intervention-label { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.turnover-intervention-block ul { padding-left: 20px; font-size: 13px; color: var(--text-secondary); }
.turnover-intervention-block li { margin-bottom: 4px; }

/* ============================================
   Sprint 4: HR ROI Calculator
   ============================================ */
.roi-form { margin-top: 12px; }
.roi-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.roi-col-title { font-size: 15px; margin-bottom: 12px; }
.roi-input-row { margin-bottom: 10px; }
.roi-input-row label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.roi-input-row input { width: 100%; }
.roi-results { margin-top: 20px; }
.roi-overview { text-align: center; padding: 24px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border-glass); margin-bottom: 20px; }
.roi-pct { font-size: 48px; font-weight: 700; }
.roi-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.roi-sub-stats { display: flex; justify-content: center; gap: 32px; margin-top: 16px; }
.roi-sub { text-align: center; }
.roi-sub span { display: block; font-size: 12px; }
.roi-sub strong { font-size: 18px; }
.roi-verdict { margin-top: 16px; font-weight: 600; font-size: 15px; }
.roi-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.roi-breakdown-col h4 { margin-bottom: 10px; font-size: 14px; }
.roi-break-item { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border-glass); }
.roi-formula { background: var(--bg-card); padding: 14px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); border: 1px solid var(--border-glass); }
.roi-formula p { margin-bottom: 4px; }

/* ============================================
   Sprint 4: AI Diagnostic Tool
   ============================================ */
.ai-tool { max-width: 700px; margin: 0 auto; }
.ai-chat { margin-top: 16px; }
.ai-examples { margin-bottom: 16px; }
.ai-example-title { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.ai-example-btn { background: var(--bg-card); border: 1px solid var(--border-glass); color: var(--text-secondary); padding: 8px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; margin: 0 6px 6px 0; transition: all 0.2s; }
.ai-example-btn:hover { border-color: var(--accent-purple); color: var(--text-primary); }
.ai-input-row { display: flex; gap: 10px; align-items: flex-end; }
.ai-input { flex: 1; background: var(--bg-card); border: 1px solid var(--border-glass); color: var(--text-primary); padding: 12px; border-radius: var(--radius-sm); font-size: 14px; resize: vertical; font-family: inherit; }
.ai-input:focus { outline: none; border-color: var(--accent-purple); }
.ai-send-btn { min-width: 70px; height: 45px; align-self: flex-end; }
.ai-loading-dots { animation: aiDots 1.4s infinite; }
@keyframes aiDots { 0%,20% { content: '.'; } 40% { content: '..'; } 60%,100% { content: '...'; } }
.ai-result { margin-top: 20px; }
.ai-answer { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius); padding: 20px; line-height: 1.7; font-size: 14px; }
.ai-answer h3 { font-size: 16px; color: var(--accent-purple); margin: 16px 0 8px; }
.ai-answer h3:first-child { margin-top: 0; }
.ai-answer h4 { font-size: 15px; color: var(--accent-violet); margin: 14px 0 6px; }
.ai-answer strong { color: var(--accent-purple); }
.ai-answer ul, .ai-answer ol { padding-left: 20px; margin: 8px 0; }
.ai-answer li { margin-bottom: 4px; }
.ai-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius-sm); padding: 14px; color: #ef4444; font-size: 14px; }

/* AI tool card glow */
.tool-ai-card { position: relative; overflow: hidden; }
.tool-ai-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 60%); animation: aiGlow 4s ease-in-out infinite; pointer-events: none; }
@keyframes aiGlow { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.tool-type-ai { background: linear-gradient(135deg, #6366f1, #a855f7) !important; color: white !important; border: none !important; }

/* ============================================
   Sprint 4: Certification Section
   ============================================ */
.cert-section { padding: 0; }
.cert-card { max-width: 850px; margin: 0 auto; padding: 32px; text-align: center; }
.cert-preview { margin-bottom: 24px; }
.cert-preview canvas { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.cert-placeholder { padding: 40px 24px; border: 2px dashed var(--border-glass); border-radius: var(--radius); }
.cert-placeholder-icon { font-size: 48px; margin-bottom: 12px; }
.cert-placeholder h3 { font-size: 20px; margin-bottom: 8px; }
.cert-placeholder p { color: var(--text-muted); font-size: 14px; }
.cert-progress-wrap { display: flex; align-items: center; gap: 12px; max-width: 300px; margin: 16px auto 0; }
.cert-progress-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.cert-progress-fill { height: 100%; background: var(--gradient-main); border-radius: 4px; transition: width 0.5s ease; }
.cert-progress-text { font-size: 14px; font-weight: 600; color: var(--accent-purple); min-width: 40px; }
.cert-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================
   Sprint 4: Community Feedback
   ============================================ */
.feedback-section { margin-top: 48px; }
.feedback-title { font-size: 20px; margin-bottom: 16px; text-align: center; }
.feedback-form { padding: 20px; margin-bottom: 24px; }
.feedback-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border-glass); color: var(--text-primary); padding: 10px 14px; border-radius: var(--radius-xs); font-size: 14px; margin-bottom: 10px; font-family: inherit; }
.feedback-textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border-glass); color: var(--text-primary); padding: 10px 14px; border-radius: var(--radius-xs); font-size: 14px; resize: vertical; font-family: inherit; }
.feedback-input:focus, .feedback-textarea:focus { outline: none; border-color: var(--accent-purple); }
.feedback-form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.feedback-count { font-size: 12px; color: var(--text-muted); }
.feedback-submit { padding: 8px 20px; font-size: 14px; }
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-item { padding: 16px; }
.feedback-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feedback-author { font-weight: 600; font-size: 14px; }
.feedback-time { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.feedback-delete { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; padding: 0 4px; opacity: 0; transition: opacity 0.2s; }
.feedback-item:hover .feedback-delete { opacity: 1; }
.feedback-delete:hover { color: #ef4444; }
.feedback-body { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.feedback-empty { text-align: center; padding: 32px; color: var(--text-muted); font-size: 14px; }

/* ============================================
   Scenario Story Modal
   ============================================ */
.scenario-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 5, 20, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.scenario-overlay.active {
    display: flex;
}

.scenario-modal {
    background: linear-gradient(135deg, rgba(15, 15, 40, 0.98), rgba(25, 25, 60, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 40px rgba(99, 102, 241, 0.1);
}

.scenario-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

.scenario-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.scenario-header {
    padding: 32px 32px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.scenario-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.scenario-step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.scenario-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s;
}

.scenario-dot.active {
    background: #6366f1;
    width: 24px;
    border-radius: 4px;
}

.scenario-dot.done {
    background: #10b981;
}

.scenario-body {
    padding: 24px 32px 32px;
}

.scenario-situation {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 12px;
    border-left: 3px solid #6366f1;
}

.scenario-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scenario-choice {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.scenario-choice:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.scenario-choice-label {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scenario-choice.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.scenario-choice.best {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.scenario-choice.best .scenario-choice-label {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.scenario-feedback {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    animation: fadeSlideUp 0.3s ease;
}

.scenario-feedback.correct {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.scenario-feedback.partial {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.scenario-result {
    padding: 24px 32px 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.scenario-result-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-model-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.scenario-model-card {
    padding: 14px 18px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.scenario-model-card:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.scenario-model-name {
    font-size: 14px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 4px;
}

.scenario-model-reason {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

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

.scenario-nav .btn-primary,
.scenario-nav .btn-secondary {
    padding: 10px 24px;
    font-size: 14px;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Sprint 4: Mobile Responsive Additions
   ============================================ */
@media (max-width: 768px) {
    .roi-columns { grid-template-columns: 1fr; gap: 16px; }
    .roi-breakdown { grid-template-columns: 1fr; }
    .roi-sub-stats { flex-direction: column; gap: 12px; }
    .turnover-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .turnover-overview { flex-direction: column; text-align: center; }
    .ai-input-row { flex-direction: column; }
    .ai-send-btn { width: 100%; }
    .cert-preview canvas { max-width: 100%; }
    .bei-main-q { flex-wrap: wrap; }
    .fc-tooltip { min-width: 160px; }
    .scenario-modal { margin: 10px; }
    .scenario-header, .scenario-body, .scenario-result { padding-left: 20px; padding-right: 20px; }
}

/* ============ ROI Calculator ============ */
.roi-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; }
.roi-col-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.roi-item { margin-bottom: 10px; }
.roi-item label { font-size: 13px; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.roi-item input { width: 100%; }
.roi-result-card { padding: 24px; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius); margin-top: 20px; }
.roi-result-card h3 { font-size: 18px; margin-bottom: 16px; }
.roi-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.roi-metric { text-align: center; padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm); }
.roi-metric-value { font-size: 28px; font-weight: 700; }
.roi-metric-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.roi-summary { padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm); margin-bottom: 16px; }
.roi-bar-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-glass); font-size: 14px; }
.roi-bar-row:last-child { border-bottom: none; font-weight: 600; }
.roi-advice { font-size: 14px; color: var(--text-secondary); line-height: 1.6; padding: 12px; background: rgba(99,102,241,0.05); border-radius: var(--radius-sm); }

/* ============ AI Diagnose ============ */
.ai-form textarea { resize: vertical; min-height: 80px; }
.ai-quick-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ai-tag {
    padding: 6px 14px; border-radius: 50px; font-size: 13px; cursor: pointer;
    background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-secondary);
    transition: all 0.2s;
}
.ai-tag:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); color: var(--text-primary); }
.ai-result-card {
    padding: 24px; background: var(--bg-glass); border: 1px solid var(--border-glass);
    border-radius: var(--radius); margin-top: 16px; line-height: 1.8; font-size: 14px;
}
.ai-result-card h2, .ai-result-card h3 { margin: 16px 0 8px; color: var(--accent-purple); }
.ai-result-card h3:first-child { margin-top: 0; }
.ai-result-card ul { padding-left: 20px; margin: 8px 0; }
.ai-result-card li { margin: 4px 0; }
.ai-section-title { font-size: 16px; font-weight: 600; }

@media (max-width: 768px) {
    .roi-columns { grid-template-columns: 1fr; }
    .roi-metrics { grid-template-columns: repeat(2, 1fr); }
}
