/* ========================================
   NEW SECTIONS — Timeline, Skills, Code, GitHub, Testimonials, Contact, Command Palette, Widgets
======================================== */
        /* ========================================
           SCROLL PROGRESS BAR
        ======================================== */
        .scroll-progress {
            position: fixed; top: 0; left: 0;
            width: 0%; height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
            z-index: 100002;
            transition: width 0.05s linear;
            box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
        }

        /* ========================================
           EXPERIENCE TIMELINE
        ======================================== */
        .timeline-section {
            position: relative; z-index: 1;
            padding: 120px 48px;
        }
        .timeline-section .section-title {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            font-weight: 800; letter-spacing: -0.04em;
            margin-bottom: 16px; text-align: center;
        }
        .timeline-section .section-title .outline {
            -webkit-text-stroke: 1px var(--text-primary);
            color: transparent;
        }
        .timeline-subtitle {
            font-size: 0.78rem; color: var(--text-muted);
            margin-bottom: 80px; text-align: center;
        }
        .timeline {
            position: relative;
            max-width: 900px; margin: 0 auto;
        }
        .timeline::before {
            content: '';
            position: absolute; left: 50%; top: 0; bottom: 0;
            width: 1px;
            background: linear-gradient(to bottom, transparent, var(--accent-dim), rgba(var(--accent-rgb), 0.2), var(--accent-dim), transparent);
            transform: translateX(-50%);
        }
        .timeline-item {
            display: flex; align-items: flex-start;
            margin-bottom: 60px; position: relative;
        }
        .timeline-left {
            flex: 1; text-align: right; padding-right: 48px;
        }
        .timeline-center {
            width: 16px; display: flex; justify-content: center;
            position: relative; z-index: 2; flex-shrink: 0;
        }
        .timeline-dot {
            width: 14px; height: 14px;
            background: var(--bg);
            border: 2px solid var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
            transition: background 0.3s ease, transform 0.3s ease;
        }
        .timeline-item.visible .timeline-dot {
            background: var(--accent);
            transform: scale(1.3);
        }
        .timeline-right {
            flex: 1; padding-left: 48px;
        }
        .timeline-year {
            font-family: var(--font-display);
            font-size: 0.72rem; color: var(--accent);
            letter-spacing: 0.1em; font-weight: 600;
            margin-bottom: 8px;
        }
        .timeline-role {
            font-family: var(--font-display);
            font-size: 1.25rem; font-weight: 700;
            letter-spacing: -0.02em; margin-bottom: 4px;
        }
        .timeline-company {
            font-size: 0.75rem; color: var(--accent-secondary);
            letter-spacing: 0.05em; margin-bottom: 12px;
        }
        .timeline-desc {
            font-size: 0.78rem; color: var(--text-secondary);
            line-height: 1.7;
        }
        .timeline-tags {
            display: flex; flex-wrap: wrap; gap: 6px;
            margin-top: 12px;
            justify-content: flex-end;
        }
        .timeline-tag {
            font-size: 0.58rem; color: var(--text-muted);
            padding: 3px 8px; border: 1px solid rgba(255,255,255,0.06);
            border-radius: 4px; letter-spacing: 0.05em;
        }

        /* ========================================
           SKILLS MATRIX
        ======================================== */
        .skills-section {
            position: relative; z-index: 1;
            padding: 120px 48px;
        }
        .skills-section .section-title {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            font-weight: 800; letter-spacing: -0.04em;
            margin-bottom: 16px; text-align: center;
        }
        .skills-section .section-title .outline {
            -webkit-text-stroke: 1px var(--text-primary);
            color: transparent;
        }
        .skills-subtitle {
            font-size: 0.78rem; color: var(--text-muted);
            margin-bottom: 64px; text-align: center;
        }
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 32px; max-width: 900px; margin: 0 auto;
        }
        .skill-category {
            background: var(--bg-elevated);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: 16px;
            padding: 32px;
            transition: border-color 0.3s ease;
        }
        .skill-category:hover {
            border-color: rgba(var(--accent-rgb), 0.15);
        }
        .skill-cat-title {
            font-family: var(--font-display);
            font-size: 0.75rem; font-weight: 700;
            color: var(--accent); letter-spacing: 0.1em;
            text-transform: uppercase;
            margin-bottom: 24px;
            display: flex; align-items: center; gap: 10px;
        }
        .skill-cat-icon {
            width: 28px; height: 28px;
            background: var(--accent-dim);
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.85rem;
        }
        .skill-bar-item {
            margin-bottom: 18px;
        }
        .skill-bar-item:last-child { margin-bottom: 0; }
        .skill-bar-header {
            display: flex; justify-content: space-between;
            margin-bottom: 6px;
        }
        .skill-bar-name {
            font-size: 0.72rem; color: var(--text-primary);
        }
        .skill-bar-pct {
            font-size: 0.65rem; color: var(--text-muted);
            font-variant-numeric: tabular-nums;
        }
        .skill-bar-track {
            width: 100%; height: 4px;
            background: rgba(255,255,255,0.04);
            border-radius: 2px; overflow: hidden;
        }
        .skill-bar-fill {
            height: 100%; width: 0%;
            border-radius: 2px;
            transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
            background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
        }

        /* ========================================
           FEATURED CODE
        ======================================== */
        .featured-code-section {
            position: relative; z-index: 1;
            padding: 120px 48px;
        }
        .featured-code-wrap {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px; align-items: center;
            max-width: 1100px; margin: 0 auto;
        }
        .featured-code-text .section-label { margin-bottom: 16px; }
        .featured-code-text h3 {
            font-family: var(--font-display);
            font-size: clamp(1.8rem, 3vw, 2.5rem);
            font-weight: 700; letter-spacing: -0.03em;
            line-height: 1.2; margin-bottom: 20px;
        }
        .featured-code-text h3 .hl { color: var(--accent); }
        .featured-code-text p {
            font-size: 0.82rem; color: var(--text-secondary);
            line-height: 1.8; margin-bottom: 24px;
        }
        .featured-code-tags {
            display: flex; flex-wrap: wrap; gap: 8px;
        }
        .featured-code-tags span {
            font-size: 0.62rem; color: var(--accent);
            padding: 4px 12px;
            border: 1px solid rgba(var(--accent-rgb), 0.2);
            border-radius: 100px; letter-spacing: 0.05em;
        }
        .code-window {
            background: var(--bg-elevated);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 14px; overflow: hidden;
            box-shadow: 0 30px 80px rgba(0,0,0,0.4);
        }
        .code-window-header {
            display: flex; align-items: center; gap: 8px;
            padding: 14px 18px;
            background: rgba(255,255,255,0.02);
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }
        .code-window-dot {
            width: 10px; height: 10px; border-radius: 50%;
        }
        .code-window-title {
            font-size: 0.65rem; color: var(--text-muted);
            margin-left: 8px; letter-spacing: 0.05em;
        }
        .code-window-body {
            padding: 24px;
            font-size: 0.72rem; line-height: 1.8;
            overflow-x: auto;
            counter-reset: line;
        }
        .code-line {
            white-space: pre;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .code-typing-cursor {
            color: var(--accent);
            animation: cursorBlink 0.7s step-end infinite;
            font-weight: 400;
        }
        @keyframes cursorBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }
        .code-line::before {
            counter-increment: line;
            content: counter(line);
            display: inline-block;
            width: 28px; margin-right: 16px;
            text-align: right;
            color: var(--text-dim);
            font-size: 0.65rem;
        }
        .code-kw { color: var(--accent-secondary); }
        .code-fn { color: var(--accent); }
        .code-str { color: #fbbf24; }
        .code-cm { color: var(--text-secondary); font-style: italic; }
        .code-num { color: var(--pink); }
        .code-type { color: #38bdf8; }
        .code-op { color: var(--text-muted); }
        .code-param { color: #fb923c; }

        /* ========================================
           GITHUB ACTIVITY
        ======================================== */
        .github-section {
            position: relative; z-index: 1;
            padding: 120px 48px;
        }
        .github-section .section-title {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            font-weight: 800; letter-spacing: -0.04em;
            margin-bottom: 16px; text-align: center;
        }
        .github-section .section-title .outline {
            -webkit-text-stroke: 1px var(--text-primary);
            color: transparent;
        }
        .github-subtitle {
            font-size: 0.78rem; color: var(--text-muted);
            margin-bottom: 48px; text-align: center;
        }
        .gh-stats-row {
            display: flex; justify-content: center; gap: 48px;
            margin-bottom: 48px;
        }
        .gh-stat {
            text-align: center;
        }
        .gh-stat-num {
            font-family: var(--font-display);
            font-size: 2rem; font-weight: 800;
            color: var(--accent); letter-spacing: -0.03em;
        }
        .gh-stat-label {
            font-size: 0.65rem; color: var(--text-muted);
            letter-spacing: 0.08em; text-transform: uppercase;
            margin-top: 4px;
        }
        .gh-heatmap {
            max-width: 800px; margin: 0 auto;
            background: var(--bg-elevated);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: 16px;
            padding: 32px;
            overflow-x: auto;
        }
        .gh-grid {
            display: grid;
            grid-template-columns: repeat(52, 1fr);
            grid-template-rows: repeat(7, 1fr);
            gap: 3px;
            width: 100%;
        }
        .gh-cell {
            aspect-ratio: 1;
            border-radius: 2px;
            background: rgba(var(--accent-rgb), 0.04);
            transition: background 0.3s ease, transform 0.2s ease;
            cursor: default;
            min-width: 8px;
        }
        .gh-cell:hover {
            transform: scale(1.5);
            z-index: 2; position: relative;
        }
        .gh-cell.l1 { background: rgba(var(--accent-rgb), 0.15); }
        .gh-cell.l2 { background: rgba(var(--accent-rgb), 0.3); }
        .gh-cell.l3 { background: rgba(var(--accent-rgb), 0.5); }
        .gh-cell.l4 { background: rgba(var(--accent-rgb), 0.75); }
        .gh-legend {
            display: flex; justify-content: flex-end;
            align-items: center; gap: 4px;
            margin-top: 16px; font-size: 0.62rem;
            color: var(--text-muted);
        }
        .gh-legend-cell {
            width: 12px; height: 12px; border-radius: 2px;
        }

        /* ========================================
           TESTIMONIALS
        ======================================== */
        .testimonials-section {
            position: relative; z-index: 1;
            padding: 120px 48px;
        }
        .testimonials-section .section-title {
            font-family: var(--font-display);
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            font-weight: 800; letter-spacing: -0.04em;
            margin-bottom: 16px; text-align: center;
        }
        .testimonials-section .section-title .outline {
            -webkit-text-stroke: 1px var(--text-primary);
            color: transparent;
        }
        .testimonials-subtitle {
            font-size: 0.78rem; color: var(--text-muted);
            margin-bottom: 64px; text-align: center;
        }
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px; max-width: 1000px; margin: 0 auto;
        }
        .testimonial-card {
            background: var(--bg-elevated);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: 16px;
            padding: 32px;
            transition: border-color 0.3s ease, transform 0.3s ease;
            position: relative;
        }
        .testimonial-card:hover {
            border-color: rgba(var(--accent-rgb), 0.15);
            transform: translateY(-4px);
        }
        .testimonial-quote {
            font-size: 2rem; color: var(--accent);
            opacity: 0.3; line-height: 1;
            margin-bottom: 12px;
            font-family: var(--font-display);
        }
        .testimonial-text {
            font-size: 0.8rem; color: var(--text-secondary);
            line-height: 1.8; margin-bottom: 24px;
            font-style: italic;
        }
        .testimonial-author {
            display: flex; align-items: center; gap: 12px;
        }
        .testimonial-avatar {
            width: 40px; height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
            display: flex; align-items: center; justify-content: center;
            font-family: var(--font-display);
            font-size: 0.8rem; font-weight: 700;
            color: var(--bg);
        }
        .testimonial-name {
            font-size: 0.78rem; font-weight: 600;
            color: var(--text-primary);
        }
        .testimonial-role {
            font-size: 0.65rem; color: var(--text-muted);
        }

        /* ========================================
           CONTACT FORM (Enhanced)
        ======================================== */
        .contact-section {
            position: relative; z-index: 1;
            padding: 200px 48px;
            overflow: hidden;
        }
        .contact-bg-text {
            position: absolute; top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            font-family: var(--font-display);
            font-size: clamp(4rem, 13vw, 14rem);
            font-weight: 800;
            color: transparent;
            -webkit-text-stroke: 1px var(--text-dim);
            white-space: nowrap;
            pointer-events: none; user-select: none;
            letter-spacing: -0.03em;
        }
        .contact-heading {
            font-family: var(--font-display);
            font-size: clamp(2.2rem, 5vw, 4.5rem);
            font-weight: 800; letter-spacing: -0.04em;
            line-height: 1.15; margin-bottom: 16px;
            text-align: center; position: relative;
        }
        .contact-heading .hl { color: var(--accent); }
        .contact-subtitle {
            font-size: 0.82rem; color: var(--text-secondary);
            text-align: center; margin-bottom: 56px;
            position: relative;
        }
        .contact-form-wrap {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            max-width: 700px; margin: 0 auto;
            position: relative;
        }
        .form-group {
            position: relative;
        }
        .form-group.full { grid-column: 1 / -1; }
        .form-input,
        .form-textarea {
            width: 100%;
            background: var(--bg-elevated);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            padding: 16px 20px;
            font-family: var(--font-mono);
            font-size: 0.82rem;
            color: var(--text-primary);
            outline: none;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .form-textarea {
            min-height: 140px;
            resize: vertical;
        }
        .form-input:focus,
        .form-textarea:focus {
            border-color: rgba(var(--accent-rgb), 0.4);
            box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08);
        }
        .form-input::placeholder,
        .form-textarea::placeholder {
            color: var(--text-secondary);
            opacity: 0.72;
        }
        .form-label {
            position: absolute; top: -8px; left: 16px;
            font-size: 0.6rem; color: var(--accent);
            letter-spacing: 0.1em; text-transform: uppercase;
            background: var(--bg);
            padding: 0 6px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .form-input:focus ~ .form-label,
        .form-input:not(:placeholder-shown) ~ .form-label,
        .form-textarea:focus ~ .form-label,
        .form-textarea:not(:placeholder-shown) ~ .form-label {
            opacity: 1;
        }
        .form-submit {
            grid-column: 1 / -1;
            padding: 18px 44px;
            background: var(--accent); color: var(--bg);
            font-family: var(--font-display);
            font-size: 0.95rem; font-weight: 700;
            border: none; border-radius: 100px;
            cursor: pointer; position: relative; overflow: hidden;
            transition: transform 0.3s ease;
            letter-spacing: -0.01em;
        }
        .form-submit::before {
            content: '';
            position: absolute; inset: 0;
            background: var(--text-primary);
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
            border-radius: 100px;
        }
        .form-submit:hover::before { transform: translateY(0); }
        .form-submit span {
            position: relative; z-index: 1;
        }
        .form-submit:hover { transform: scale(1.02); }
        .form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

        .form-status {
            grid-column: 1 / -1;
            text-align: center;
            font-size: 0.85rem;
            min-height: 1.2em;
            transition: all 0.3s ease;
        }
        .form-status.success { color: var(--accent); }
        .form-status.error { color: var(--pink); }

        /* ========================================
           COMMAND PALETTE
        ======================================== */
        .cmdk-overlay {
            position: fixed; inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            z-index: 100003;
            display: flex; justify-content: center;
            padding-top: 15vh;
            opacity: 0; visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }
        .cmdk-overlay.active {
            opacity: 1; visibility: visible;
        }
        .cmdk-modal {
            width: min(580px, 90vw);
            background: var(--bg-elevated);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 40px 100px rgba(0,0,0,0.6);
            transform: translateY(-20px) scale(0.98);
            transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
            max-height: 440px;
            display: flex; flex-direction: column;
        }
        .cmdk-overlay.active .cmdk-modal {
            transform: translateY(0) scale(1);
        }
        .cmdk-input-wrap {
            display: flex; align-items: center; gap: 12px;
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }
        .cmdk-search-icon {
            color: var(--text-muted); font-size: 1rem;
        }
        .cmdk-input {
            flex: 1; background: none; border: none;
            font-family: var(--font-mono);
            font-size: 0.88rem; color: var(--text-primary);
            outline: none;
        }
        .cmdk-input::placeholder { color: var(--text-dim); }
        .cmdk-hint {
            font-size: 0.62rem; color: var(--text-dim);
            padding: 2px 8px;
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 4px;
        }
        .cmdk-results {
            overflow-y: auto; padding: 8px;
        }
        .cmdk-group-title {
            font-size: 0.6rem; color: var(--text-dim);
            letter-spacing: 0.1em; text-transform: uppercase;
            padding: 8px 12px 4px;
        }
        .cmdk-item {
            display: flex; align-items: center; gap: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.15s ease;
        }
        .cmdk-item:hover, .cmdk-item.selected {
            background: rgba(var(--accent-rgb), 0.08);
        }
        .cmdk-item-icon {
            width: 32px; height: 32px;
            background: rgba(var(--accent-rgb), 0.06);
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
        }
        .cmdk-item-text {
            flex: 1;
        }
        .cmdk-item-title {
            font-size: 0.78rem; color: var(--text-primary);
        }
        .cmdk-item-desc {
            font-size: 0.65rem; color: var(--text-muted);
        }
        .cmdk-item-shortcut {
            font-size: 0.6rem; color: var(--text-dim);
            display: flex; gap: 4px;
        }
        .cmdk-item-shortcut kbd {
            padding: 2px 6px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 4px;
            font-family: var(--font-mono);
            font-size: 0.6rem;
        }

        /* ========================================
           BACK TO TOP
        ======================================== */
        .back-to-top {
            position: fixed;
            bottom: 32px; right: 32px;
            width: 48px; height: 48px;
            background: var(--bg-elevated);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            z-index: 10001;
            cursor: pointer;
            opacity: 0; visibility: hidden;
            transform: translateY(16px);
            transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
            font-size: 1rem; color: var(--text-muted);
            /* Reset button defaults to prevent layout overflow */
            padding: 0; margin: 0;
            outline: none; -webkit-appearance: none;
            appearance: none; min-width: 0;
        }
        .back-to-top.visible {
            opacity: 1; visibility: visible;
            transform: translateY(0);
        }
        .back-to-top:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* ========================================
           NOW PLAYING
        ======================================== */
        .now-playing {
            position: fixed;
            bottom: 32px; left: 32px;
            z-index: 9999;
            display: flex; align-items: center; gap: 12px;
            padding: 10px 16px;
            background: var(--bg-elevated);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 100px;
            font-size: 0.68rem; color: var(--text-muted);
            opacity: 0; transform: translateY(16px);
            animation: npIn 0.6s ease 3s forwards;
            cursor: pointer;
            transition: border-color 0.3s, background 0.3s;
            user-select: none;
        }
        .now-playing:hover {
            border-color: rgba(var(--accent-rgb), 0.3);
            background: rgba(var(--accent-rgb), 0.05);
        }
        @keyframes npIn {
            to { opacity: 1; transform: translateY(0); }
        }
        .np-bars {
            display: flex; align-items: flex-end; gap: 2px; height: 14px;
        }
        .np-bar {
            width: 3px;
            background: var(--accent);
            border-radius: 1px;
            transform: scaleY(0.4);
            transition: transform 0.2s;
        }
        .np-bars.playing .np-bar {
            animation: npPulse 1.2s ease-in-out infinite;
        }
        .np-bar:nth-child(1) { height: 60%; }
        .np-bar:nth-child(2) { height: 100%; }
        .np-bar:nth-child(3) { height: 40%; }
        .np-bar:nth-child(4) { height: 80%; }
        .np-bars.playing .np-bar:nth-child(1) { animation-delay: 0s; }
        .np-bars.playing .np-bar:nth-child(2) { animation-delay: 0.15s; }
        .np-bars.playing .np-bar:nth-child(3) { animation-delay: 0.3s; }
        .np-bars.playing .np-bar:nth-child(4) { animation-delay: 0.45s; }
        @keyframes npPulse {
            0%, 100% { transform: scaleY(0.4); }
            50% { transform: scaleY(1); }
        }
        .np-icon {
            color: var(--accent);
            font-size: 0.6rem;
        }
        .np-title { color: var(--text-primary); }

        /* ========================================
           SECTION DIVIDER DECORATION
        ======================================== */
        .section-divider {
            position: relative; z-index: 1;
            height: 1px;
            max-width: 800px; margin: 0 auto;
            background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.15), transparent);
        }

        /* ========================================
           NEXT CHAPTER — System Upgrade
        ======================================== */
        .next-chapter {
            position: relative; z-index: 1;
            padding: 120px 48px;
            overflow: hidden;
        }
        .next-chapter-bg-text {
            position: absolute; top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            font-family: var(--font-display);
            font-size: clamp(4rem, 13vw, 14rem);
            font-weight: 800;
            color: transparent;
            -webkit-text-stroke: 1px var(--text-dim);
            white-space: nowrap;
            pointer-events: none; user-select: none;
            letter-spacing: -0.03em;
            opacity: 0.4;
        }
        .next-chapter-grid-bg {
            position: absolute; inset: 0;
            background-image:
                linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
            -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
            pointer-events: none;
        }
        .next-subtitle {
            font-size: 0.82rem; color: var(--text-secondary);
            text-align: center; margin-bottom: 60px;
            position: relative;
            font-family: var(--font-mono);
        }

        /* --- Holographic Card --- */
        .next-chapter-card {
            position: relative;
            max-width: 960px; margin: 0 auto 48px;
            border-radius: 20px;
            padding: 2px;
            background: linear-gradient(135deg,
                rgba(var(--accent-rgb), 0.4),
                rgba(168, 85, 247, 0.4),
                rgba(255, 51, 102, 0.3),
                rgba(var(--accent-rgb), 0.4));
            background-size: 300% 300%;
            animation: holoShift 6s ease-in-out infinite;
        }
        @keyframes holoShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        .next-card-holo-border {
            position: absolute; inset: -1px;
            border-radius: 20px;
            background: linear-gradient(135deg,
                rgba(var(--accent-rgb), 0.15),
                rgba(168, 85, 247, 0.15),
                rgba(255, 51, 102, 0.1),
                rgba(var(--accent-rgb), 0.15));
            background-size: 300% 300%;
            animation: holoShift 6s ease-in-out infinite;
            filter: blur(12px);
            z-index: -1;
        }
        .next-card-inner {
            background: var(--bg-elevated, #0a0e14);
            /* 仅上圆角：与下方 .next-card-progress 共成一块面板，避免底圆角与进度区顶边视觉「叠在一起」 */
            border-radius: 19px 19px 0 0;
            padding: 48px;
            display: flex;
            align-items: stretch;
            gap: 0;
            position: relative;
            overflow: hidden;
        }
        .next-card-inner::before {
            content: '';
            position: absolute; inset: 0;
            background: radial-gradient(ellipse 80% 60% at 50% 0%,
                rgba(var(--accent-rgb), 0.04), transparent 60%);
            pointer-events: none;
        }

        /* --- Status Blocks --- */
        .next-card-status {
            flex: 1;
            display: flex; flex-direction: column;
            align-items: center; text-align: center;
            padding: 12px 20px;
            position: relative;
        }
        .next-status-badge {
            display: inline-flex; align-items: center; gap: 6px;
            font-family: var(--font-mono);
            font-size: 0.62rem; font-weight: 700;
            letter-spacing: 0.15em; text-transform: uppercase;
            padding: 4px 14px;
            border-radius: 100px;
            margin-bottom: 20px;
            position: relative;
        }
        .next-status-badge.completed {
            color: var(--accent);
            background: rgba(var(--accent-rgb), 0.1);
            border: 1px solid rgba(var(--accent-rgb), 0.25);
        }
        .next-status-badge.incoming {
            color: #a855f7;
            background: rgba(168, 85, 247, 0.1);
            border: 1px solid rgba(168, 85, 247, 0.25);
            animation: badgeGlow 2s ease-in-out infinite;
        }
        @keyframes badgeGlow {
            0%, 100% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.15); }
            50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
        }
        .badge-pulse {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: currentColor;
            animation: pulse 2s ease-in-out infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.4); }
        }
        .next-status-icon {
            font-size: 2.4rem;
            margin-bottom: 16px;
            filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.3));
        }
        .next-status-future .next-status-icon {
            filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.4));
            animation: floatIcon 3s ease-in-out infinite;
        }
        @keyframes floatIcon {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-6px); }
        }
        .next-status-title {
            font-family: var(--font-display);
            font-size: 1.5rem; font-weight: 700;
            margin-bottom: 2px;
            letter-spacing: -0.02em;
        }
        .next-status-abbr {
            font-family: var(--font-mono);
            font-size: 0.62rem;
            color: var(--text-muted);
            letter-spacing: 0.15em;
            text-transform: uppercase;
            opacity: 0.6;
            display: block;
            margin-bottom: 6px;
        }
        .next-status-sub {
            font-family: var(--font-mono);
            font-size: 0.72rem; color: var(--text-secondary);
            margin-bottom: 8px;
        }
        .next-status-desc {
            font-size: 0.75rem; color: var(--text-muted);
            margin-bottom: 16px;
            line-height: 1.5;
        }
        .next-status-tags {
            display: flex; flex-wrap: wrap; gap: 6px;
            justify-content: center;
        }
        .next-status-tags span {
            font-family: var(--font-mono);
            font-size: 0.58rem;
            padding: 3px 10px;
            border-radius: 100px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            color: var(--text-muted);
            transition: all 0.3s ease;
        }
        .next-card-status:hover .next-status-tags span {
            border-color: rgba(var(--accent-rgb), 0.2);
            color: var(--text-secondary);
        }

        /* --- Arrow / Beam --- */
        .next-card-arrow {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 80px;
            flex-shrink: 0;
            position: relative;
        }
        .arrow-beam {
            width: 2px; flex: 1;
            background: linear-gradient(to bottom,
                transparent,
                rgba(var(--accent-rgb), 0.5),
                rgba(168, 85, 247, 0.5),
                transparent);
            position: relative;
        }
        .arrow-beam::after {
            content: '';
            position: absolute;
            width: 2px; height: 20px;
            background: var(--accent);
            border-radius: 2px;
            left: 0;
            animation: beamTravel 2s linear infinite;
            box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
        }
        @keyframes beamTravel {
            0% { top: -20px; opacity: 0; }
            20% { opacity: 1; }
            80% { opacity: 1; }
            100% { top: calc(100% + 20px); opacity: 0; }
        }
        .arrow-node {
            width: 40px; height: 40px;
            border-radius: 50%;
            background: rgba(var(--accent-rgb), 0.1);
            border: 1.5px solid rgba(var(--accent-rgb), 0.4);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            position: relative;
            z-index: 2;
            animation: nodeGlow 3s ease-in-out infinite;
        }
        @keyframes nodeGlow {
            0%, 100% { box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.2), inset 0 0 8px rgba(var(--accent-rgb), 0.1); }
            50% { box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.4), inset 0 0 12px rgba(var(--accent-rgb), 0.2); }
        }
        .arrow-icon {
            font-size: 0.7rem; color: var(--accent);
        }
        .arrow-particles {
            position: absolute; inset: 0;
            pointer-events: none;
        }

        /* --- Progress Bar --- */
        .next-card-progress {
            padding: 20px 48px 36px;
            background: var(--bg-elevated, #0a0e14);
            border-radius: 0 0 19px 19px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
        }
        .progress-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 10px;
        }
        .progress-label {
            font-family: var(--font-mono);
            font-size: 0.62rem; font-weight: 700;
            letter-spacing: 0.15em;
            color: var(--text-muted);
        }
        .progress-pct {
            font-family: var(--font-mono);
            font-size: 0.72rem; font-weight: 700;
            color: var(--accent);
        }
        .progress-track {
            height: 4px;
            background: rgba(255,255,255,0.06);
            border-radius: 4px;
            position: relative;
            overflow: hidden;
            margin-bottom: 16px;
        }
        .progress-fill {
            height: 100%;
            width: 0%;
            border-radius: 4px;
            background: linear-gradient(90deg, var(--accent), #a855f7);
            transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }
        .progress-fill.animated {
            width: 85%;
        }
        .progress-glow {
            position: absolute;
            top: -4px; right: -2px;
            width: 12px; height: 12px;
            border-radius: 50%;
            background: var(--accent);
            filter: blur(6px);
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        .progress-fill.animated ~ .progress-glow {
            opacity: 0.6;
            animation: glowPulse 2s ease-in-out infinite;
        }
        @keyframes glowPulse {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 0.8; }
        }
        .progress-milestones {
            display: flex; justify-content: space-between;
            gap: 8px;
        }
        .milestone {
            font-family: var(--font-mono);
            font-size: 0.6rem;
            color: var(--text-dim);
            transition: color 0.3s ease;
        }
        .milestone.done { color: var(--accent); }
        .milestone.active {
            color: #a855f7;
            animation: milestonePulse 2s ease-in-out infinite;
        }
        @keyframes milestonePulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        /* --- Floating Stats --- */
        .next-floating-stats {
            display: flex;
            justify-content: center;
            gap: 48px;
            position: relative;
        }
        .next-float-stat {
            text-align: center;
            padding: 20px 28px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 14px;
            transition: all 0.3s ease;
        }
        .next-float-stat:hover {
            border-color: rgba(var(--accent-rgb), 0.2);
            background: rgba(var(--accent-rgb), 0.03);
            transform: translateY(-4px);
        }
        .float-stat-num {
            font-family: var(--font-display);
            font-size: 1.6rem; font-weight: 800;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, var(--accent), #a855f7);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 4px;
        }
        .float-arrow {
            font-size: 1rem;
            opacity: 0.5;
            margin: 0 2px;
        }
        .float-stat-label {
            font-family: var(--font-mono);
            font-size: 0.62rem;
            color: var(--text-muted);
            letter-spacing: 0.05em;
        }
