/*
    HERO TEXT LIGHT THEME CONTRAST IMPROVEMENT
    -------------------------------------------------------------------------
    Improves contrast for .hero-text in the hero panel in light theme only.
    Last updated: Jan 2026
    -------------------------------------------------------------------------
*/
[data-theme="light"] #intro .hero-text {
    color: #1f2a2b !important;
}

[data-theme="light"] #intro .sub-headline,
[data-theme="light"] #intro .quote {
    color: #2e3a3c;
}
/* ═══════════════════════════════════════════════════════════════════════════
   PRIVATE TIMELINE PAGE — PINK/RED THEME
   Personal/Free Time Timeline (separate from Career Timeline which uses green)
   Uses global header, footer, HUD, and theme toggle from main.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   1. PINK THEME VARIABLES - Override global accents for private timeline
   ═══════════════════════════════════════════════════════════════════════════ */

/* Dark Theme - Black/Grey with Pink accents */
[data-theme="dark"] .private-timeline-page {
    --bg-root: #0d0d0d;
    --bg-surface: #1a1a1a;
    --bg-card: #242424;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Mint / Pistachio accents */
    --accent-primary: #2FA9BC;
    --accent-secondary: #AACBC4;
    --accent-tertiary: #F1F7F6;
    --primary-accent: #2FA9BC;
    --primary-accent-rgb: 47, 169, 188;
    
    --chip-bg: rgba(47, 169, 188, 0.18);
    --chip-text: #AACBC4;
    
    --border-subtle: rgba(47, 169, 188, 0.3);
    --border-strong: rgba(47, 169, 188, 0.5);
    
    --gradient-card: linear-gradient(135deg, rgba(47, 169, 188, 0.12) 0%, rgba(30, 30, 30, 0.85) 100%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    --shadow-glow: 0 0 25px rgba(47, 169, 188, 0.35);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --glow-color: rgba(47, 169, 188, 0.25);
    --hero-video-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.7) 90%), radial-gradient(circle at 25% 20%, rgba(47, 169, 188, 0.3) 0%, rgba(0,0,0,0.6) 55%);
    
    --quote-bg: rgba(255, 255, 255, 0.03);
    --player-bg: rgba(0, 0, 0, 0.6);
}

/* Light Theme - Cream/Vintage Yellow with Pink accents */
[data-theme="light"] .private-timeline-page {
    --bg-root: #F1F7F6;
    --bg-surface: #E6EFED;
    --bg-card: #ffffff;
    --bg-overlay: rgba(241, 247, 246, 0.9);
    
    --text-primary: #1e2a2b;
    --text-secondary: #3b4a4c;
    --text-muted: #5d7275;
    
    /* Mint / Pistachio accents */
    --accent-primary: #2FA9BC;
    --accent-secondary: #AACBC4;
    --accent-tertiary: #F1F7F6;
    --primary-accent: #2FA9BC;
    --primary-accent-rgb: 47, 169, 188;
    
    --chip-bg: rgba(47, 169, 188, 0.12);
    --chip-text: #2C7E8F;
    
    --border-subtle: rgba(47, 169, 188, 0.25);
    --border-strong: rgba(47, 169, 188, 0.4);
    
    --gradient-card: linear-gradient(135deg, rgba(241, 247, 246, 0.85) 0%, rgba(170, 203, 196, 0.6) 100%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(241, 247, 246, 0.9) 100%);
    --shadow-glow: 0 0 25px rgba(47, 169, 188, 0.2);
    --shadow-soft: 0 4px 20px rgba(45, 37, 32, 0.1);
    --glow-color: rgba(47, 169, 188, 0.25);
    --hero-video-overlay: linear-gradient(180deg, rgba(241, 247, 246, 0.6) 0%, rgba(170, 203, 196, 0.85) 100%);
    
    --quote-bg: rgba(170, 203, 196, 0.35);
    --player-bg: rgba(241, 247, 246, 0.95);
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. BODY & BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.private-timeline-page {
    background-color: var(--bg-root) !important;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Hide loading screen and particles on this page */
.private-timeline-page #loading-screen,
.private-timeline-page #particles-canvas {
    display: none !important;
}

.private-timeline-page footer {
    position: relative;
    z-index: 200;
}

/* Hide viewpoint-nav on mobile (use mobile-bottom-bar instead) */
@media (max-width: 768px) {
    .private-timeline-page .viewpoint-nav {
        display: none !important;
    }
}

/* Ensure mobile bottom bar is visible on this page */
.private-timeline-page .mobile-bottom-bar {
    z-index: 9999 !important;
    position: fixed !important;
    bottom: 0 !important;
}

/* Add padding to prevent content being hidden behind mobile bar */
@media (max-width: 768px) {
    .private-timeline-page .viewport:last-of-type {
        padding-bottom: 80px;
    }
}

/* Typography */
.private-timeline-page h1, 
.private-timeline-page h2, 
.private-timeline-page h3, 
.private-timeline-page h4 { 
    font-family: var(--font-heading, 'Montserrat', sans-serif); 
    font-weight: 600; 
    line-height: 1.1; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.private-timeline-page p { 
    margin-bottom: 1.5rem; 
    font-size: clamp(1rem, 1.2vw, 1.3rem); 
    color: var(--text-secondary); 
    max-width: 65ch; 
}

.private-timeline-page a { 
    color: var(--accent-primary); 
    text-decoration: none; 
}

.panel-hero .hero-core {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.panel-hero .headline {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.1;
}

.panel-hero .accent-word {
    color: var(--accent-primary);
}

.panel-hero .sub-headline {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--text-secondary);
    font-weight: 400;
}

.chips-center { justify-content: flex-start; }

.panel-fit {
    max-width: 1100px;
    margin: 0 auto;
}

.content-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

@media (max-width: 768px) {
    .content-scroll {
        max-height: 60vh;
    }
}

.tight-blurb {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. TIMELINE LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.timeline-main {
    margin-left: 60px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .timeline-main {
        margin-left: 40px;
    }
}

/* Viewport sections */
.private-timeline-page .viewport {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .private-timeline-page .viewport {
        padding: 1.5rem 1.25rem;
    }
}

.private-timeline-page .panel-summary {
    background-color: var(--bg-root);
}

.private-timeline-page .panel-detail {
    background: var(--gradient-card);
}

/* Chapter container */
.private-timeline-page .chapter {
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.private-timeline-page .grid-detail {
    max-width: 900px;
    width: 100%;
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. TIMELINE TRACK (Left side vertical line)
   ═══════════════════════════════════════════════════════════════════════════ */

.timeline-track {
    position: fixed;
    left: 0;
    top: 0;
    width: 60px;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-subtle);
}

.timeline-line-tl {
    width: 2px;
    height: 80%;
    background: var(--border-subtle);
    position: relative;
    border-radius: 2px;
}

.timeline-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    transition: top 0.3s ease;
}

@media (max-width: 768px) {
    .timeline-track {
        width: 40px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. YEAR FLOATER
   ═══════════════════════════════════════════════════════════════════════════ */

.year-floater {
    position: fixed;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-secondary);
    opacity: 0.15;
    pointer-events: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: all 0.5s ease;
    z-index: 50;
}

@media (max-width: 768px) {
    .year-floater {
        left: 50px;
        font-size: 2.5rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. CARDS & COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Chips */
.private-timeline-page .chip {
    background: var(--chip-bg);
    color: var(--chip-text);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin: 4px;
}

.chips-compact {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

/* Quote styling */
.private-timeline-page .quote {
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 1rem;
    margin: 1rem 0;
}

/* Meta data label */
.meta-data {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: block;
}

/* Role title */
.role-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. SLIDESHOW COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.slideshow-container {
    position: relative;
    width: 100%;
    max-height: 220px;
    overflow: hidden;
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slideshow-track .slide-card {
    flex: 0 0 calc(33.333% - 1rem);
    margin-right: 1rem;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

@media (max-width: 900px) {
    .slideshow-track .slide-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .slideshow-track .slide-card {
        flex: 0 0 calc(100% - 1rem);
    }
}

.slideshow-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slideshow-nav button {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.slideshow-nav button:hover {
    background: var(--accent-primary);
    color: #fff;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.slideshow-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-subtle);
    cursor: pointer;
    transition: background 0.3s;
}

.slideshow-dots .dot.active {
    background: var(--accent-primary);
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. QUOTE STACK & MOBILE CAROUSEL (Origins section)
   ═══════════════════════════════════════════════════════════════════════════ */

.origins-quotes-desktop {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quote-carousel {
    position: relative;
    height: 140px;
    overflow: hidden;
    display: none;
}

.quote-carousel .quote-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quote-carousel .quote-slide.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .origins-quotes-desktop { display: none !important; }
    .quote-carousel { display: block; }
}

@media (min-width: 769px) {
    .quote-carousel { display: none; }
    .origins-quotes-desktop { display: block; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   9. INLINE PLAYER (Soundtrack section)
   ═══════════════════════════════════════════════════════════════════════════ */

.inline-music-shell {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    max-width: 520px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.album-cover-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-glow);
}

.album-cover-wrapper.compact {
    width: 120px;
    height: 120px;
}

.album-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-play-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.5rem;
    pointer-events: none;
}

.inline-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.1rem 1.8rem;
    background: linear-gradient(180deg, rgba(60, 60, 60, 0.6) 0%, rgba(30, 30, 30, 0.8) 100%);
    border-radius: 60px;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.inline-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
}

.inline-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.inline-btn:active {
    transform: scale(0.95);
}

.inline-play {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 64, 129, 0.22) 0%, rgba(255, 64, 129, 0.1) 100%);
    border: 2px solid rgba(255, 64, 129, 0.5);
    color: var(--accent-primary);
    box-shadow:
        0 4px 20px rgba(255, 64, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.inline-play:hover {
    background: linear-gradient(145deg, var(--accent-primary) 0%, var(--accent-tertiary) 100%);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow:
        0 0 40px rgba(255, 64, 129, 0.45),
        0 0 80px rgba(255, 64, 129, 0.18);
    transform: scale(1.1);
}

@keyframes pulse-glow-pink {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(255, 64, 129, 0.35),
            0 0 0 0 rgba(255, 64, 129, 0.35);
    }
    50% {
        box-shadow:
            0 4px 30px rgba(255, 64, 129, 0.55),
            0 0 0 8px rgba(255, 64, 129, 0);
    }
}

.inline-play.is-playing {
    animation: pulse-glow-pink 2s ease-in-out infinite;
}

@keyframes subtle-vibrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.inline-btn.is-playing:not(.inline-play) {
    animation: subtle-vibrate 1.5s ease-in-out infinite;
}

.inline-prev.is-playing { animation-delay: 0.2s; }
.inline-next.is-playing { animation-delay: 0.4s; }

.now-playing-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.7) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: 240px;
}

.now-playing-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    font-weight: 600;
}

.now-playing-track {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-align: center;
}

.now-playing-time {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.now-playing-info::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .inline-player-controls {
        gap: 1rem;
        padding: 1rem 1.4rem;
    }
    .inline-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    .inline-play {
        width: 64px;
        height: 64px;
        font-size: 1.3rem;
    }
    .now-playing-info {
        min-width: 220px;
        padding: 0.85rem 1.1rem;
    }
}

[data-theme="light"] .inline-player-controls {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 242, 232, 0.95) 100%);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .inline-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .inline-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .inline-play {
    background: linear-gradient(145deg, rgba(233, 30, 99, 0.15) 0%, rgba(233, 30, 99, 0.08) 100%);
    border-color: rgba(233, 30, 99, 0.5);
    color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.25);
}

[data-theme="light"] .now-playing-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 249, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


/* ═══════════════════════════════════════════════════════════════════════════
   10. EXERCISE MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.exercise-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.exercise-modal {
    background: var(--bg-surface);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.exercise-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

[data-theme="light"] .private-timeline-page .exercise-modal-overlay {
    background: rgba(253, 248, 240, 0.9);
}


/* ═══════════════════════════════════════════════════════════════════════════
   11. SCHEDULE WIDGET (Batalanto section)
   ═══════════════════════════════════════════════════════════════════════════ */

.schedule-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
}

.day-chip {
    display: inline-block;
    padding: 6px 12px;
    background: var(--chip-bg);
    color: var(--chip-text);
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 4px;
}

.day-chip:hover,
.day-chip.active {
    background: var(--accent-primary);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════════
   12. RISK CARDS (Credit Risk Easter Egg section)
   ═══════════════════════════════════════════════════════════════════════════ */

.risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.risk-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    height: 200px;
    transition: all 0.3s ease;
    cursor: default;
}

.risk-card:hover {
    border-color: var(--accent-primary);
}

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

.risk-icon {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.risk-badge {
    font-size: 0.65rem;
    font-family: monospace;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--chip-bg);
    color: var(--chip-text);
    border: 1px solid var(--border-subtle);
}

.problem-text h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.problem-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.3;
}

.solution-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 2px solid var(--accent-primary);
}

.risk-card:hover .solution-overlay,
.risk-card.active .solution-overlay {
    transform: translateY(0);
}

.solution-title {
    color: var(--accent-primary);
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.solution-desc {
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .risk-card {
        height: 180px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   13. BUTTONS & CTA
   ═══════════════════════════════════════════════════════════════════════════ */

.private-timeline-page .btn-cta-tl {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.private-timeline-page .btn-cta-tl:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.private-timeline-page .btn-icon-tl {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.private-timeline-page .btn-icon-tl:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}


/* ═══════════════════════════════════════════════════════════════════════════
   14. FORM STYLES (Contact section)
   ═══════════════════════════════════════════════════════════════════════════ */

.timeline-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.timeline-input {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

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

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

.btn-submit {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}


/* ═══════════════════════════════════════════════════════════════════════════
   15. SCROLL HINT
   ═══════════════════════════════════════════════════════════════════════════ */

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-primary);
    font-size: 1.5rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   16. PROFILE IMAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.profile-square {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    margin-bottom: 1.5rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   17. BUNKROS LINK CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.bunkros-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.bunkros-link-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.bunkros-popouts {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.popout-card {
    width: 150px;
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.popout-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 0.75rem auto;
    border: 1px solid var(--border-subtle);
}

.popout-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}


/* ═══════════════════════════════════════════════════════════════════════════
   18. ROUTINE BLOCKS
   ═══════════════════════════════════════════════════════════════════════════ */

.routine-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s;
}

.routine-block:hover {
    border-color: var(--accent-primary);
}


/* ═══════════════════════════════════════════════════════════════════════════
   19. TWO-COLUMN BLOCKS (AI Era section)
   ═══════════════════════════════════════════════════════════════════════════ */

.two-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.block-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.block-card:hover {
    border-color: var(--accent-primary);
}

.block-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .two-blocks {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   20. EXERCISE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.exercise-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.exercise-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.exercise-card i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   21. QUOTE CARDS (Origins section)
   ═══════════════════════════════════════════════════════════════════════════ */

.quote-card {
    padding: 1rem 1.25rem;
    background: var(--quote-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.quote-card:hover {
    background: rgba(255, 64, 129, 0.08);
    border-color: var(--accent-primary);
}

.quote-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

.quote-card .quote-label {
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRIVATE 16-PANEL TIMELINE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Using a more specific selector to avoid conflicts and apply pink theme */
.private-timeline-page {
    --accent-primary: #2FA9BC;
    --accent-tertiary: #AACBC4;
    --chip-bg: rgba(47, 169, 188, 0.18);
    --chip-text: #AACBC4;
    --border-subtle: rgba(47, 169, 188, 0.3);
    --shadow-glow: 0 0 25px rgba(47, 169, 188, 0.3);
}

[data-theme="light"] .private-timeline-page {
    --accent-primary: #2FA9BC;
    --accent-tertiary: #AACBC4;
    --chip-bg: rgba(47, 169, 188, 0.14);
    --chip-text: #2C7E8F;
    --border-subtle: rgba(47, 169, 188, 0.25);
    --shadow-glow: 0 0 25px rgba(47, 169, 188, 0.2);
}


/* --- Base Layout & Full Viewport Scroll --- */
html {
    scroll-snap-type: y mandatory;
}

.private-timeline-page {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.private-timeline-page footer {
    scroll-snap-align: start;
}

.timeline-wrapper {
    padding-left: 60px; /* Match timeline track width */
}

@media (max-width: 768px) {
    .timeline-wrapper {
        padding-left: 0;
    }
}

.private-timeline-page .viewport {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden; /* Prevent content spill */
    border-bottom: 1px solid var(--border-subtle);
}

.private-timeline-page .viewport:last-child {
    border-bottom: none;
}

/* --- Panel Variations --- */
.private-timeline-page .panel-summary {
    text-align: left;
}

.private-timeline-page .panel-detail .chapter {
    text-align: left;
}

/* --- Typography & Content Elements --- */
.private-timeline-page .role-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.private-timeline-page .meta-data {
    color: var(--accent-primary);
}

.private-timeline-page .quote {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    border-left-color: var(--accent-primary);
}

.private-timeline-page .chip {
    background: var(--chip-bg);
    color: var(--chip-text);
    border-color: transparent;
}

/* --- Hero Intro Panel --- */
#intro.panel-hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}

#intro .hero-bg-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

#intro .hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.02);
    transform-origin: center;
}

#intro .hero-video-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-video-overlay);
    pointer-events: none;
}

#intro .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(47, 169, 188, 0.16) 0%, rgba(0,0,0,0.6) 75%);
    z-index: 0;
}

#intro .chapter {
    position: relative;
    z-index: 1;
}

#intro .hero-chapter {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 2rem;
}

@media (max-width: 768px) {
    #intro .hero-chapter {
        padding: 1.5rem 1.25rem;
    }
}

#intro .scroll-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

/* --- Grid Layout for Detail Panels --- */
.private-timeline-page .grid-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

@media(min-width: 1024px) {
    .private-timeline-page .grid-detail {
        grid-template-columns: minmax(400px, 1.5fr) 1fr;
        gap: 4rem;
    }
}

/* --- Rotterdam Slider (Origins Panel) --- */
#origins .rotterdam-swiper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    --swiper-pagination-color: var(--accent-primary);
    --swiper-pagination-bullet-inactive-color: rgba(255, 255, 255, 0.6);
    --swiper-pagination-bullet-inactive-opacity: 1;
}

#origins .rotterdam-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-card);
}

#origins .rotterdam-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#origins .rotterdam-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f5f5;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* --- Amsterdam Slider (Anchor Panel) --- */
#amsterdam-return .amsterdam-swiper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    --swiper-pagination-color: var(--accent-primary);
    --swiper-pagination-bullet-inactive-color: rgba(255, 255, 255, 0.6);
    --swiper-pagination-bullet-inactive-opacity: 1;
}

#amsterdam-return .amsterdam-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-card);
}

#amsterdam-return .amsterdam-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#amsterdam-return .amsterdam-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f5f5;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* --- Berlin Slider (Study Panel) --- */
#berlin-study .berlin-swiper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    --swiper-pagination-color: var(--accent-primary);
    --swiper-pagination-bullet-inactive-color: rgba(255, 255, 255, 0.6);
    --swiper-pagination-bullet-inactive-opacity: 1;
}

#berlin-study .berlin-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-card);
}

#berlin-study .berlin-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#berlin-study .berlin-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f5f5;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* --- Berlin Recommendations Slider (Berlin Life Panel) --- */
#berlin-life .berlin-recommendations-swiper {
    width: 100%;
    max-width: 420px;
    margin: 1.5rem auto 0;
    padding-bottom: 2.5rem;
    height: auto;
    overflow: hidden;
    position: relative;
    --swiper-pagination-color: var(--accent-primary);
    --swiper-pagination-bullet-inactive-color: rgba(255, 255, 255, 0.6);
    --swiper-pagination-bullet-inactive-opacity: 1;
}

#berlin-life .berlin-recommendations-swiper .swiper-wrapper {
    align-items: stretch;
}

#berlin-life .berlin-recommendations-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

#berlin-life .berlin-rec-card {
    width: min(360px, 85vw);
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

#berlin-life .berlin-rec-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

#berlin-life .berlin-rec-card:hover img {
    transform: scale(1.05);
}

/* --- Quote Slider (Origins Panel) --- */
.quote-slider {
    height: 100px; /* Give it a fixed height */
    position: relative;
    overflow: hidden;
}

.quote-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.quote-slide.active {
    opacity: 1;
}

/* --- Inline Music Player --- */
.inline-player-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
}

.player-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-album-art {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.track-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.track-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.player-main-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.player-main-controls .player-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.player-main-controls .player-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.player-main-controls .play-pause-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-root);
    width: 44px;
    height: 44px;
}

.player-progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar-wrapper {
    flex-grow: 1;
    background: var(--bg-root);
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
}

.time-display {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
    min-width: 45px;
}

/* --- Bunkros Music Links --- */
.music-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.music-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.music-link img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
    transition: border-color 0.2s ease;
}

.music-link:hover img {
    border-color: var(--accent-primary);
}

.music-link span {
    font-family: var(--font-head);
    font-weight: 600;
}

/* --- Card Grid & Slider (Amsterdam/Berlin Recs) --- */
.card-slider-container {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scroll on mobile */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.card-slider-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .recommendations-grid {
        display: flex; /* Switch to flex for mobile scrolling */
        width: max-content; /* Allow flex items to determine width */
        padding-bottom: 1rem; /* Space for scrollbar if visible */
        scroll-snap-type: x mandatory;
    }
    .recommendations-grid .card {
        flex: 0 0 280px; /* Fixed width for each card on mobile */
        scroll-snap-align: start;
    }
}

.recommendations-grid .card {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease;
}

.recommendations-grid .card:hover {
    transform: scale(1.03);
}

.recommendations-grid .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recommendations-grid .card:hover img {
    transform: scale(1.1);
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.card-label span {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.card-label p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* --- Responsive Images --- */
.responsive-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

/* --- Exercise Library --- */
.exercise-grid-container {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.exercise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1024px) {
    .exercise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .exercise-grid {
        grid-template-columns: 1fr;
    }
}

.exercise-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exercise-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.exercise-card i {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.exercise-card-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.exercise-card-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* --- Schedule Widget --- */
.schedule-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.day-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.day-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    transition: all 0.2s ease;
}

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

.day-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-root);
}

.schedule-container {
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 1rem; /* for scrollbar */
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 1rem;
    align-items: start;
    background: var(--bg-root);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    opacity: 0;
    transform: translateX(20px);
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.schedule-time {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-align: right;
}

@media (max-width: 480px) {
    .schedule-item {
        grid-template-columns: 64px 1fr;
        column-gap: 0.75rem;
    }
}

.schedule-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.schedule-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   22. BUNKROS CARTOON (Final Fixed Version)
   ═══════════════════════════════════════════════════════════════════════════ */

.private-timeline-page .bunkros-play {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.private-timeline-page .cartoon-stage {
    --cartoon-scale: 0.5;
    position: relative;
    width: min(180px, 35vmin);
    height: min(260px, 45vmin);
}

/* 1. CRITICAL RESET: Force 'content-box' so borders don't crush the eyes */
.private-timeline-page #person,
.private-timeline-page #person * {
    box-sizing: content-box !important;
}

/* 2. Container Positioning */
.private-timeline-page .cartoon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--cartoon-scale));
}

.private-timeline-page .cartoon div {
  position: absolute;
}

.private-timeline-page .b {
  border: 1vmin solid black;
}

.private-timeline-page .r {
  border-radius: 100%;
}

.private-timeline-page .hb::before,
.private-timeline-page .ha::after {
  content: "";
  display: block;
  position: absolute;
}

/* 3. Character Definitions */
.private-timeline-page #person {
  width: 50vmin;
  height: 80vmin;
  cursor: pointer;
  touch-action: manipulation;
}

.private-timeline-page .head {
  width: 60%;
  height: 60%;
  background: #222;
  background: linear-gradient(#222, #fca);
  top: 20%;
  left: 20%;
  border-radius: 50vmin 50vmin 90vmin 90vmin;
  box-shadow: inset  1.75vmin 0 0 -1vmin #fb8, inset -1.75vmin 0 0 -1vmin #fff4, inset 0 -45vmin #fca, 10vmin -9vmin 0 -9vmin #222, -10vmin -9vmin 0 -9vmin #222;
}

.private-timeline-page .nose {
  width: 20%;
  height: 34%;
  background: linear-gradient(#fca, #f96);
  background: #f96;
  background: linear-gradient(#fb8, #f96);
  background: linear-gradient(135deg, #fca, #f96);
  background: #fca;
  box-shadow:  inset -0.5vmin -0.5vmin #fff4, inset 1vmin -1.5vmin 0 -1vmin #fb8;
  top: 34%;
  left: 40%;
  border-radius: 150% 100% 9vmin 9vmin;
}

.private-timeline-page .eyebrows {
  height: 10%;
  width: 86%;
  top: 25%;
  left: 7%;
  background: #222;
  border-radius: 100vmin 100vmin 0 0;
  box-shadow: 0 1vmin #fca, -0.25vmin 0 #fca, -0.7vmin 0.15vmin #222, -0.95vmin 0 #fca, -1.2vmin 0.25vmin #222, 0.25vmin 0 #fca, 0.7vmin 0.15vmin #222, 0.95vmin 0 #fca, 1.2vmin 0.25vmin #222;
  clip-path: polygon(-50% 0%, 150% 0%, 150% 100%, -50% 100%);
}

.private-timeline-page .mustache {
  width: 60%;
  left: 20%;
  top: 65%;
  height: 12%;
  background: #222;
  border-radius: 100vmin 100vmin 0 0;
  box-shadow:  -0.25vmin 0 #fca, -0.7vmin 0.25vmin #222, 0.25vmin 0 #fca, 0.7vmin 0.25vmin #222;
  clip-path: polygon(-50% 0%, 150% 0%, 150% 100%, 94% 100%, 92% 90%, 90% 100%, 89% 95%, 88% 100%, -50% 100%);
  transform: rotate(-3deg);
}

.private-timeline-page .lip {
  width: 40%;
  left: 30%;
  height: 10%;
  top: 72%;
  background: #fb8;
}

/* THIS IS YOUR EXACT EYES CODE 
   (It will now render correctly because of the box-sizing fix at the top)
*/
.private-timeline-page .eyes, 
.private-timeline-page .eyelids {
  top: 29%;
  left: 11%;
  width: 12%;
  height: 0;
  padding-top: 12%;
  background: #222;
  border: 2vmin solid white;
  border-bottom: 1.75vmin solid white;
  clip-path: polygon(-50% 55%, 400% 49%, 400% 100%, -50% 100%);
  box-shadow: 16vmin 0.25vmin 0 -2.25vmin #222, 16vmin 0 0 -0.5vmin white;
}

.private-timeline-page .eyelids {
  background: #fb8;
  border-color: #fb8;
  clip-path: none;
  box-shadow: 16vmin 0 0 -0.5vmin #fb8;
  /* Added these to ensure they can blink/hide */
  z-index: 3;
  opacity: 0;
  transform: scaleY(0);
}

.private-timeline-page .chin {
  width: 40%;
  height: 7%;
  background: #fca;
  top: 95%;
  left: 50%;
  border-radius: 0 0 10vmin 10vmin;
  transform: translate(-50%, 0);
  aclip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 90%, 0% 100%);
  box-shadow: 0 0.5vmin #fb8;
}

.private-timeline-page .ear {
  height: 25%;
  width: 20%;
  background: red;
  top: 40%;
  left: 8%;
  border-radius: 100% 100% 0 20vmin;
  transform: rotate(-15deg);
  background: #fca;
  abackground-image: radial-gradient(#f966, #fca 50%);
  box-shadow: inset 0.5vmin 0.25vmin #fb8;
}

.private-timeline-page .ear2 {
  left: auto;
  right: 8%;
  transform: rotate(15deg);
  border-radius: 100% 100% 20vmin 0;
  box-shadow: inset -0.5vmin 0 #fff4;
}

.private-timeline-page .hair {
  width: 78%;
  height: 50%;
  background: #222;
  left: 11%;
  top: 8%;
  box-shadow: inset -0.75vmin 0 #fff2, inset 0.75vmin 0 #111;
}

.private-timeline-page .nose-side {
  width: 4vmin;
  height: 4vmin;
  background: #fca;
  left: 53%;
  top: 58%;
  box-shadow: inset -0.25vmin -0.25vmin #fff4
}

.private-timeline-page .nose-side2 {
  left: 30%;
  box-shadow: inset 0.25vmin -0.25vmin #fb8;
  transform: rotate(-30deg);
}

.private-timeline-page .neck {
  width: 46%;
  height: 50%;
  background: #fca;
  left: 27%;
  top: 35%;
  border-radius: 0 0 0.5vmin 0.5vmin;
  box-shadow: inset -0.3vmin 0 #fff4, inset 0.5vmin 0 #fb8;
}

.private-timeline-page .neck::after {
  width: 100%;
  height: 10%;
  background: #fca;
  bottom: 0;
  border-radius: 50%;
  transform: translate(0, 40%);
  abox-shadow: 0 0 0 0.4vmin rgba(0,0,0,0.2), 0 0 0 2vmin rgba(0,0,0,0.2);
  clip-path: polygon(0% 50%, 100% 50%, 100% 100%, 0% 100%);
}

.private-timeline-page .vneck {
  width: 56%;
  height: 15%;
  background: #306754;
  background-image: linear-gradient(to right, #306754 95%, rgba(0,0,0,0.125));
  background-size: 8% 100%;
  top: 82%;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: 2vmin 2vmin 3vmin 3vmin;
}

.private-timeline-page .vneck::after {
  width: 85%;
  height: 25%;
  background: #306754;
  background: linear-gradient(transparent 40%, #306754 50%);
  bottom: 0;
  border-radius: 50%;
  left: 50%;
  transform: translate(-50%, 37%);
  z-index: -1; 
}

.private-timeline-page .hairdo {
  color: #222;
  width: 30%;
  height: 20%;
  background: #222;
  top: 10%;
  left: 5%;
  box-shadow: 8vmin -5vmin, 17vmin -6vmin 0 2vmin, 17.25vmin -6.5vmin 0 2vmin #444, 29vmin -4vmin 0 -2vmin, 29.5vmin -4.25vmin 0 -2vmin #444, 0.75vmin -7.5vmin 0 -6vmin, -0.5vmin -0.5vmin #111;
}

/* Animations (Needed for the poke effect) */
@keyframes poke-wiggle {
    0% { transform: translate(-50%, -50%) scale(var(--cartoon-scale)) rotate(0); }
    20% { transform: translate(-50%, -50%) scale(var(--cartoon-scale)) rotate(-6deg) scale(1.02); }
    45% { transform: translate(-50%, -50%) scale(var(--cartoon-scale)) rotate(6deg); }
    70% { transform: translate(-50%, -50%) scale(var(--cartoon-scale)) rotate(-4deg); }
    100% { transform: translate(-50%, -50%) scale(var(--cartoon-scale)) rotate(0); }
}

@keyframes blink {
    0%, 100% { transform: scaleY(0); opacity: 0; }
    45%, 55% { transform: scaleY(1); opacity: 1; }
}

@keyframes mustache-wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(7deg); }
}

@keyframes head-shake {
    0% { transform: rotate(0); }
    15% { transform: rotate(-6deg); }
    35% { transform: rotate(6deg); }
    55% { transform: rotate(-4deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0); }
}

@keyframes hair-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.6vmin); }
}

.private-timeline-page #person.poked {
    animation: poke-wiggle 0.6s ease;
}

.private-timeline-page #person.poked .head {
    animation: head-shake 0.6s ease;
    transform-origin: 50% 90%;
}

.private-timeline-page #person.poked .eyelids {
    animation: blink 0.35s ease 0.1s;
    z-index: 3;
    transform-origin: 50% 50%;
}

.private-timeline-page #person.poked .mustache {
    animation: mustache-wiggle 0.6s ease;
}

.private-timeline-page #person.poked .hairdo {
    animation: hair-bounce 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    .private-timeline-page #person,
    .private-timeline-page #person * {
        animation: none !important;
    }
}

/* --- Contact Form --- */
.contact-form-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-timeline .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-timeline label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-form-timeline input,
.contact-form-timeline textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-status-tl {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: none;
}

.form-status-tl.success {
    color: var(--accent-primary);
}

.form-status-tl.error {
    color: #f87171;
}

.contact-form-timeline input:focus,
.contact-form-timeline textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.contact-form-timeline .btn-cta-tl {
    align-self: flex-start;
    margin-top: 1rem;
    background: var(--accent-primary);
    color: var(--bg-root);
}

.contact-info-panel {
    margin-bottom: 2rem;
}
.contact-info-panel p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.contact-info-panel i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* --- Modals --- */
.private-timeline-page .modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}
.private-timeline-page .modal-backdrop.open {
    display: block;
    opacity: 1;
}

.private-timeline-page .contact-modal-tl {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    z-index: 9999;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none; /* Hidden by default */
}

.private-timeline-page .modal-backdrop.open .contact-modal-tl {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.private-timeline-page .modal-header-tl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.private-timeline-page .modal-header-tl h2 {
    margin: 0;
    color: var(--text-primary);
}

.private-timeline-page .close-modal-tl {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}
.private-timeline-page .close-modal-tl:hover {
    color: var(--accent-primary);
}

#exerciseModalDetails {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}
#exerciseModalDetails p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
#exerciseModalDetails strong {
    color: var(--text-primary);
    font-weight: 600;
}
#exerciseModalDetails ul {
    list-style-position: inside;
    padding-left: 0.5rem;
}
#exerciseModalDetails li {
    margin-bottom: 0.5rem;
}
