/* ==========================================================================
   DESIGN SYSTEM, RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Accents stay vibrant in both themes */
    --accent-pink: #FF4D8D;
    --accent-rose: #FF6B6B;
    --accent-gold: #FFD166;
    --gradient-pink: linear-gradient(135deg, #FF4D8D, #FF6B6B);
    --gradient-gold: linear-gradient(135deg, #FFD166, #FF6B6B);
    --shadow-pink: 0 15px 35px rgba(255, 77, 141, 0.3);
    
    --font-hero: 'Poppins', sans-serif;
    --font-quote: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Theme-specific variables (Default: Midnight Mode) */
    --bg-primary: #0F0F14;
    --bg-secondary: #16161D;
    --text-white: #FFFFFF;
    --text-gray: #B8B8C0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --line-color: rgba(255, 255, 255, 0.05);
    --timeline-glow: rgba(255, 77, 141, 0.5);

    /* Background gradients for Wrapped slides in Dark Mode */
    --wrap-bg-1: linear-gradient(135deg, #0F0F14 0%, #1a0a1e 50%, #0F0F14 100%);
    --wrap-bg-2: linear-gradient(135deg, #0F0F14 0%, #141028 50%, #0F0F14 100%);
    --wrap-bg-3: linear-gradient(135deg, #0F0F14 0%, #1a1020 50%, #0F0F14 100%);
    --wrap-bg-4: linear-gradient(135deg, #0F0F14 0%, #0d1a1a 50%, #0F0F14 100%);
    --wrap-bg-5: linear-gradient(135deg, #0F0F14 0%, #1e0a14 50%, #0F0F14 100%);
    --wrap-bg-6: linear-gradient(135deg, #0F0F14 0%, #18101e 50%, #0F0F14 100%);
    --wrap-bg-7: linear-gradient(135deg, #0F0F14 0%, #101520 50%, #0F0F14 100%);
    --wrap-bg-8: linear-gradient(135deg, #0F0F14 0%, #1a0e18 50%, #0F0F14 100%);
    --wrap-bg-9: linear-gradient(135deg, #0F0F14 0%, #141020 50%, #0F0F14 100%);
    --wrap-bg-10: linear-gradient(135deg, #0F0F14 0%, #0e1518 50%, #0F0F14 100%);
    --wrap-bg-11: linear-gradient(135deg, #0F0F14 0%, #1a1010 50%, #0F0F14 100%);
    --wrap-bg-12: linear-gradient(135deg, #0F0F14 0%, #180e1a 50%, #0F0F14 100%);
    --wrap-bg-13: linear-gradient(135deg, #0F0F14 0%, #1a0a1e 50%, #0F0F14 100%);
}

/* Light Theme Overrides (Warm Blush & Soft Pastel Colors) */
body.light-theme {
    --bg-primary: #FFF5F7;
    --bg-secondary: #FFFFFF;
    --text-white: #2C2A35;
    --text-gray: #5F5E6B;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 77, 141, 0.15);
    --line-color: rgba(255, 77, 141, 0.08);
    --timeline-glow: rgba(255, 77, 141, 0.2);

    /* Soft warm gradients for Wrapped slides in Light Mode */
    --wrap-bg-1: linear-gradient(135deg, #FFF5F7 0%, #FFE3E9 50%, #FFF5F7 100%);
    --wrap-bg-2: linear-gradient(135deg, #FFF5F7 0%, #E5EAFF 50%, #FFF5F7 100%);
    --wrap-bg-3: linear-gradient(135deg, #FFF5F7 0%, #FFE0FF 50%, #FFF5F7 100%);
    --wrap-bg-4: linear-gradient(135deg, #FFF5F7 0%, #DCF6F6 50%, #FFF5F7 100%);
    --wrap-bg-5: linear-gradient(135deg, #FFF5F7 0%, #FFD6E3 50%, #FFF5F7 100%);
    --wrap-bg-6: linear-gradient(135deg, #FFF5F7 0%, #ECD6FF 50%, #FFF5F7 100%);
    --wrap-bg-7: linear-gradient(135deg, #FFF5F7 0%, #DCEBFF 50%, #FFF5F7 100%);
    --wrap-bg-8: linear-gradient(135deg, #FFF5F7 0%, #FFDBF1 50%, #FFF5F7 100%);
    --wrap-bg-9: linear-gradient(135deg, #FFF5F7 0%, #E3D9FF 50%, #FFF5F7 100%);
    --wrap-bg-10: linear-gradient(135deg, #FFF5F7 0%, #D1ECFD 50%, #FFF5F7 100%);
    --wrap-bg-11: linear-gradient(135deg, #FFF5F7 0%, #FFCCD5 50%, #FFF5F7 100%);
    --wrap-bg-12: linear-gradient(135deg, #FFF5F7 0%, #ECCEFF 50%, #FFF5F7 100%);
    --wrap-bg-13: linear-gradient(135deg, #FFF5F7 0%, #FFE3E9 50%, #FFF5F7 100%);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    font-family: var(--font-body);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow: hidden; /* Scrolling confined inside virtual frame container */
    min-height: 100vh;
}

/* ==========================================================================
   APP FRAME CONTAINER (PREVENTS DESKTOP STRETCH, ENFORCES FIXED VIEWS)
   ========================================================================== */
#app-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Scroll lock: navs and overlays remain fixed! */
    position: relative;
    background-color: var(--bg-primary);
    transition: background-color 0.5s ease;
}

/* Scroll is fully delegated to this page wrapper */
#page-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 120px; /* Generous breathing space above nav dock */
}

#page-wrapper::-webkit-scrollbar {
    width: 4px;
}
#page-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
#page-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border-radius: 2px;
}

/* Centers virtual mobile frame on widescreen monitors */
@media (min-width: 480px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        background: radial-gradient(circle at top right, var(--bg-secondary) 0%, #0F0F14 100%);
        padding: 20px;
        height: 100vh;
    }
    
    #app-container {
        width: 420px;
        height: 90vh;
        min-height: 760px;
        border-radius: 40px;
        border: 10px solid rgba(255, 255, 255, 0.12); /* Glass device mock border */
        box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 77, 141, 0.15);
    }
}

/* ==========================================================================
   REUSABLE UTILITIES & DENSE WHITESPACE
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: background 0.5s, border 0.5s, box-shadow 0.3s;
}

.section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    position: relative;
}

/* Precise Font hierarchy details */
.section-title {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 24px;
}

.cta-button {
    background: var(--gradient-pink);
    color: white !important;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--shadow-pink);
}
.cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255, 77, 141, 0.45);
}

/* ==========================================================================
   APP HEADER & PERSISTENT SWITCH CONTROLS (FIXED AT THE TOP)
   ========================================================================== */
.app-header {
    height: 60px;
    width: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    border-radius: 0 0 24px 24px;
    border-top: none;
    border-left: none;
    border-right: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: var(--header-bg);
    border: 1px solid var(--glass-border);
    transition: background 0.5s, border 0.5s, box-shadow 0.5s;
    flex-shrink: 0;
}

body.light-theme .app-header {
    box-shadow: 0 8px 30px rgba(255, 77, 141, 0.05);
}

.app-header-title {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sliding Theme Switch Pill */
.theme-switch-pill {
    width: 56px;
    height: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: background 0.4s, border 0.4s;
}

body.light-theme .theme-switch-pill {
    background: rgba(255, 77, 141, 0.08);
}

.theme-switch-icon {
    font-size: 11px;
    color: var(--text-gray);
    z-index: 2;
    transition: color 0.4s;
    pointer-events: none;
}

#sun-icon {
    color: var(--accent-gold);
}

body.light-theme #moon-icon {
    color: #5d4ebd;
}

.theme-switch-slider {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-pink);
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 6px rgba(255, 77, 141, 0.3);
}

/* Slide position depending on theme */
body.light-theme .theme-switch-slider {
    transform: translateX(28px);
    box-shadow: 0 2px 6px rgba(255, 77, 141, 0.2);
}

/* ==========================================================================
   ANCHORED BOTTOM NAVIGATION TAB BAR (FIXED AT THE BOTTOM)
   ========================================================================== */
.bottom-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px 10px 12px; /* Pad bottom for mobile safe zones */
    border-radius: 28px 28px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    background: var(--nav-bg);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    transition: background 0.5s, border 0.5s, box-shadow 0.5s;
}

body.light-theme .bottom-tab-bar {
    box-shadow: 0 -8px 30px rgba(255, 77, 141, 0.05);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-gray);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    transition: color 0.3s, transform 0.2s;
    gap: 4px;
    position: relative;
}

.tab-item i {
    font-size: 16px;
    transition: transform 0.3s, color 0.3s;
}

.tab-item:active {
    transform: scale(0.92);
}

.tab-item:hover {
    color: var(--accent-pink);
}

.tab-item.active {
    color: var(--accent-pink);
}

/* Active tab top glowing bar marker */
.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--gradient-pink);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 10px rgba(255, 77, 141, 0.6);
}

/* ==========================================================================
   FULLSCREEN OVERLAYS (DESKTOP BLOCK & PWA ENFORCEMENT)
   ========================================================================== */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: radial-gradient(circle at center, #161224 0%, #08060d 100%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

body.light-theme .fullscreen-overlay {
    background: radial-gradient(circle at center, #fff3f5 0%, #ffe9ee 100%);
}

.block-card {
    max-width: 360px;
    width: 100%;
    text-align: center;
    padding: 36px 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-radius: 28px;
    animation: modalSlideUp 0.6s ease;
}

.block-icon {
    font-size: 56px;
    color: var(--accent-pink);
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.block-title {
    font-family: var(--font-hero);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}

.block-text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-white);
    margin-bottom: 10px;
}

.block-subtext {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.qr-code-wrapper {
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(255, 77, 141, 0.12);
    margin-bottom: 20px;
}

.qr-code-svg {
    display: block;
}

.block-link {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 15px;
    color: var(--accent-pink);
    font-weight: 600;
}

/* PWA Installer blocker customization */
#install-required-block {
    position: absolute; /* Lock inside app container */
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(9, 7, 12, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
}

body.light-theme #install-required-block {
    background: rgba(255, 245, 247, 0.96);
}

#install-required-block .block-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 320px;
}

.block-heart-badge {
    font-size: 40px;
    color: var(--accent-pink);
    margin-bottom: 16px;
    animation: pulse 1.8s infinite;
}

.install-action-area {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.block-install-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 30px;
    box-shadow: var(--shadow-pink);
}

.ios-instructions {
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
}

body.light-theme .ios-instructions {
    background: rgba(255, 77, 141, 0.04);
}

.ios-heading {
    display: block;
    font-family: var(--font-hero);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-pink);
    margin-bottom: 8px;
}

.ios-steps {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-white);
    padding-left: 16px;
}

.ios-steps li {
    margin-bottom: 6px;
}

.ios-steps li i {
    margin: 0 1px;
}

.install-waiting-text {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   PWA INSTALL OVERLAY DIALOG MOCKUP
   ========================================================================== */
.install-prompt-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.install-prompt-overlay.active {
    display: flex;
    opacity: 1;
}
.install-prompt-content {
    max-width: 320px;
    width: 85%;
    text-align: center;
    padding: 36px 24px;
    border-radius: 24px;
    border-color: var(--glass-border);
    animation: modalSlideUp 0.4s ease;
}
.install-prompt-icon {
    font-size: 56px;
    color: var(--accent-pink);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}
.install-prompt-title {
    font-family: var(--font-hero);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.3;
}
.install-prompt-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 28px;
}
.install-prompt-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.install-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}
.install-cancel-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: color 0.3s;
}
.install-cancel-btn:hover {
    color: var(--text-white);
}

/* ==========================================================================
   SECTION 0 — INTRO OVERLAY
   ========================================================================== */
#intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #0F0F14;
    display: flex;
    align-items: center;
    justify-content: center;
}
.intro-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--accent-pink);
    display: flex;
    align-items: center;
}
.typed-cursor {
    margin-left: 2px;
    color: var(--accent-pink);
}

/* ==========================================================================
   SECTION 1 — HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    z-index: 1;
    width: 100%;
}
.hero-heart-icon {
    font-size: 40px;
    color: var(--accent-pink);
    animation: pulse 2s infinite;
    margin-bottom: 12px;
}
.hero-title {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 48px;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 17px;
    color: var(--text-gray);
    margin: 0 auto 20px;
    line-height: 1.7;
    max-width: 320px;
}
.hero-names {
    font-family: var(--font-hero);
    font-weight: 600;
    font-size: 20px;
    color: var(--accent-pink);
    margin-bottom: 32px;
}
.hero-image-wrapper {
    width: 90%;
    max-width: 340px;
    margin: 0 auto 32px;
}
.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-pink);
    animation: float 6s ease-in-out infinite;
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.floating-heart {
    position: absolute;
    bottom: -50px;
    opacity: 0.25;
    animation: floatUp linear infinite;
}

.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite alternate;
}

/* ==========================================================================
   SECTION 2 — WELCOME MESSAGE
   ========================================================================== */
.letter-text p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 12px;
}
.letter-text .highlight {
    color: var(--accent-pink);
    font-weight: 600;
}
.letter-text .highlight-big {
    font-family: var(--font-hero);
    font-size: 36px;
    color: var(--text-white);
    font-weight: 800;
    margin: 24px 0;
}
.scroll-indicator {
    margin-top: 36px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   SECTION 3 — TIMELINE
   ========================================================================== */
.timeline {
    position: relative;
    width: 100%;
    margin-top: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-pink), var(--accent-rose), var(--accent-gold));
    box-shadow: 0 0 10px var(--timeline-glow);
    border-radius: 3px;
}
.timeline-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    position: relative;
    padding-left: 44px;
    width: 100%;
}
.timeline-bullet {
    position: absolute;
    left: 16px;
    transform: translateX(-50%);
    top: 4px;
    z-index: 2;
    background: var(--bg-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    box-shadow: 0 0 8px var(--timeline-glow);
    font-size: 11px;
    transition: background 0.5s;
}
.timeline-date {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 14px;
    color: var(--accent-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: left;
}
.timeline-card {
    width: 100%;
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.timeline-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 77, 141, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 77, 141, 0.04);
}
.timeline-card h3 {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 8px;
}
.timeline-card p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 8px;
}
.timeline-card blockquote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 16px;
    color: var(--accent-rose);
    border-left: 2px solid var(--accent-pink);
    padding-left: 12px;
    margin: 16px 0;
    line-height: 1.6;
}

/* ==========================================================================
   SECTION 4 — WHY I LOVE YOU
   ========================================================================== */
.reason-display {
    max-width: 100%;
    width: 100%;
    margin: 32px auto;
    text-align: center;
    min-height: 200px;
    padding: 32px 20px;
}
.reason-number {
    font-family: var(--font-hero);
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-pink);
    opacity: 0.25;
}
.reason-text {
    font-family: var(--font-quote);
    font-size: 20px;
    color: var(--text-white);
    line-height: 1.6;
    margin-top: 12px;
}
.reason-btn {
    width: 100%;
    justify-content: center;
}
.reason-counter {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 12px;
}

/* ==========================================================================
   SECTION 5 — MEMORY GALLERY
   ========================================================================== */
.memory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 24px;
    padding: 0;
}
.memory-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
    padding: 32px 20px;
}
.memory-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 77, 141, 0.3);
    box-shadow: 0 20px 45px rgba(255, 77, 141, 0.15), 0 0 25px rgba(255, 77, 141, 0.05);
}
.memory-emoji {
    font-size: 44px;
    margin-bottom: 12px;
    color: var(--accent-pink);
    display: inline-block;
    transition: transform 0.3s;
}
.memory-card:hover .memory-emoji {
    transform: scale(1.15) rotate(5deg);
}
.memory-card h3 {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 6px;
}
.memory-card p {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 13px;
    color: var(--text-gray);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    background: rgba(9, 7, 12, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.light-theme .modal-overlay {
    background: rgba(255, 245, 247, 0.96);
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    max-width: 340px;
    width: 90%;
    padding: 36px 24px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-radius: 28px;
    animation: modalSlideUp 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}

.modal-emoji {
    font-size: 48px;
    color: var(--accent-pink);
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.modal-content h3 {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 22px;
    color: var(--text-white);
    margin-bottom: 12px;
}

.modal-content p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==========================================================================
   SECTION 6 — OPEN WHEN
   ========================================================================== */
.envelope-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 24px;
    padding: 0 4px;
}

.envelope-card {
    perspective: 1000px;
    position: relative;
    min-height: 150px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.envelope-card .envelope-front,
.envelope-card .envelope-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.5s, border 0.5s;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

/* Front Face */
.envelope-card .envelope-front {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-pink);
    transform: rotateY(0deg);
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme .envelope-card .envelope-front {
    box-shadow: 0 8px 30px rgba(255, 77, 141, 0.04);
}

.envelope-card .envelope-front i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--accent-pink);
}

.envelope-card .envelope-front p {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-white);
    text-align: center;
}

/* Back Face */
.envelope-card .envelope-back {
    background: var(--gradient-pink);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: rotateY(180deg);
    z-index: 1;
    overflow-y: auto;
}

.envelope-card .envelope-back p {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff !important;
    text-align: center;
}

/* Flip State */
.envelope-card.opened .envelope-front {
    transform: rotateY(-180deg);
}

.envelope-card.opened .envelope-back {
    transform: rotateY(0deg);
    z-index: 2;
    box-shadow: var(--shadow-pink);
}

/* ==========================================================================
   SECTION 7 — RELATIONSHIP WRAPPED
   ========================================================================== */
/* Dynamic Background Gradients mapping to slides */
.wrapped-gradient-1 { background: var(--wrap-bg-1); }
.wrapped-gradient-2 { background: var(--wrap-bg-2); }
.wrapped-gradient-3 { background: var(--wrap-bg-3); }
.wrapped-gradient-4 { background: var(--wrap-bg-4); }
.wrapped-gradient-5 { background: var(--wrap-bg-5); }
.wrapped-gradient-6 { background: var(--wrap-bg-6); }
.wrapped-gradient-7 { background: var(--wrap-bg-7); }
.wrapped-gradient-8 { background: var(--wrap-bg-8); }
.wrapped-gradient-9 { background: var(--wrap-bg-9); }
.wrapped-gradient-10 { background: var(--wrap-bg-10); }
.wrapped-gradient-11 { background: var(--wrap-bg-11); }
.wrapped-gradient-12 { background: var(--wrap-bg-12); }
.wrapped-gradient-13 { background: var(--wrap-bg-13); }

.wrapped-slide {
    margin: 28px 16px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    padding: 36px 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 30px var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .wrapped-slide {
    box-shadow: 0 15px 35px rgba(255, 77, 141, 0.05), 0 0 30px rgba(255, 77, 141, 0.03);
}

.wrapped-slide-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrapped-badge {
    background: rgba(255, 77, 141, 0.12);
    color: var(--accent-pink);
    border: 1px solid rgba(255, 77, 141, 0.25);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.wrapped-hero-title {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.2;
}

.wrapped-hero-subtitle {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 18px;
    color: var(--accent-pink);
    margin-bottom: 16px;
}

.wrapped-tagline {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-gray);
    max-width: 280px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.wrapped-slide-title {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--text-white);
}

.wrapped-sub-title {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 16px;
    margin: 24px 0 16px;
    color: var(--text-white);
}

.wrapped-footnote {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-top: 24px;
    max-width: 320px;
}

.wrapped-big-number {
    margin: 20px 0;
}

.wrapped-big-number .wrapped-counter {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 54px;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.wrapped-big-label {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.wrapped-comparison {
    width: 100%;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wrapped-bar-group {
    width: 100%;
}

.wrapped-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.wrapped-bar-name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-white);
}

.wrapped-bar-name i {
    color: var(--accent-pink);
}

.wrapped-bar-value {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 13px;
    color: var(--text-white);
}

.wrapped-bar-track {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

body.light-theme .wrapped-bar-track {
    background: rgba(0, 0, 0, 0.04);
}

.wrapped-bar-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
    animation: barGrow 1.5s cubic-bezier(0.1, 1, 0.1, 1) forwards;
    animation-play-state: paused;
}

.wrapped-bar-fill.bhumika-bar {
    background: var(--gradient-pink);
    width: var(--bar-width);
}

.wrapped-bar-fill.monish-bar {
    background: linear-gradient(135deg, #4da3ff, #6b8eff);
    width: var(--bar-width);
}

.wrapped-verdict {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px;
    margin-top: 12px;
}

body.light-theme .wrapped-verdict {
    background: rgba(255, 77, 141, 0.02);
}

.wrapped-verdict-text {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.wrapped-verdict-text strong {
    color: var(--accent-pink);
}

.wrapped-verdict-quote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}

.wrapped-chart-container {
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.wrapped-vertical-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    height: 180px;
    gap: 10px;
}

.wrapped-vchart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.wrapped-vchart-fill {
    width: 100%;
    height: 0%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: height 1.5s cubic-bezier(0.1, 1, 0.1, 1);
    animation: vbarGrow 1.5s cubic-bezier(0.1, 1, 0.1, 1) forwards;
    animation-play-state: paused;
    height: var(--bar-height);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

body.light-theme .wrapped-vchart-fill {
    background: rgba(0, 0, 0, 0.03);
}

.wrapped-vchart-bar-highlight .wrapped-vchart-fill {
    background: var(--gradient-pink);
    box-shadow: 0 0 15px rgba(255, 77, 141, 0.3);
    border: none;
}

.wrapped-vchart-value {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 9px;
    color: var(--text-white);
    position: absolute;
    top: -20px;
    white-space: nowrap;
}

.wrapped-vchart-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 8px;
}

.wrapped-vchart-bar-highlight .wrapped-vchart-label {
    color: var(--accent-pink);
    font-weight: 700;
}

.wrapped-leaderboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.wrapped-leader-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    gap: 12px;
    text-align: left;
}

body.light-theme .wrapped-leader-item {
    background: rgba(255, 255, 255, 0.5);
}

.wrapped-leader-gold {
    border-color: rgba(255, 209, 102, 0.3);
    background: rgba(255, 209, 102, 0.04);
}

body.light-theme .wrapped-leader-gold {
    background: rgba(255, 209, 102, 0.08);
}

.wrapped-leader-rank {
    font-size: 20px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wrapped-leader-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    z-index: 2;
}

.wrapped-leader-date {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-white);
}

.wrapped-leader-count {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
}

.wrapped-leader-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: var(--gradient-pink);
    width: 0%;
    animation: barGrow 1.5s cubic-bezier(0.1, 1, 0.1, 1) forwards;
    animation-play-state: paused;
    width: var(--bar-width);
}

.wrapped-leader-gold .wrapped-leader-bar {
    background: var(--gradient-gold);
}

.wrapped-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin: 20px 0;
}

.wrapped-mini-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.light-theme .wrapped-mini-stat {
    background: rgba(255, 255, 255, 0.5);
}

.wrapped-mini-icon {
    font-size: 28px;
    color: var(--accent-pink);
    margin-bottom: 8px;
}

.wrapped-mini-number {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-white);
    margin-bottom: 4px;
}

.wrapped-mini-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.3;
}

.wrapped-love-variations {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px;
    margin-top: 16px;
    text-align: left;
}

body.light-theme .wrapped-love-variations {
    background: rgba(255, 255, 255, 0.5);
}

.wrapped-small-title {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 12px;
    color: var(--accent-pink);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wrapped-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wrapped-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4px 10px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-white);
}

body.light-theme .wrapped-tag {
    background: rgba(0, 0, 0, 0.03);
}

.wrapped-award-badge {
    width: 100%;
    background: rgba(255, 209, 102, 0.04);
    border: 1px solid rgba(255, 209, 102, 0.2);
    border-radius: 24px;
    padding: 20px 16px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

body.light-theme .wrapped-award-badge {
    background: rgba(255, 209, 102, 0.08);
}

.wrapped-award-badge .wrapped-award-emoji {
    font-size: 36px;
    color: var(--accent-gold);
    animation: pulse 2s infinite;
}

.wrapped-award-badge .wrapped-award-title {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 17px;
    color: var(--accent-gold);
}

.wrapped-award-winner {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-white);
}

.wrapped-donut-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

.wrapped-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-pink) 0% 70%, var(--accent-rose) 70% 90%, var(--accent-gold) 90% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.wrapped-donut-center {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s;
}

body.light-theme .wrapped-donut-center {
    background: #fff;
}

.wrapped-donut-label {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 10px;
    color: var(--text-white);
    text-align: center;
    line-height: 1.3;
}

.wrapped-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.wrapped-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-white);
}

.wrapped-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.wrapped-emoji-rankings {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.wrapped-emoji-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.wrapped-emoji-medal {
    font-size: 14px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wrapped-emoji-icon {
    font-size: 20px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    flex-shrink: 0;
}

.wrapped-emoji-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

body.light-theme .wrapped-emoji-bar-track {
    background: rgba(0, 0, 0, 0.03);
}

.wrapped-emoji-bar-fill {
    height: 100%;
    background: var(--gradient-pink);
    border-radius: 6px;
    width: 0%;
    animation: barGrow 1.5s cubic-bezier(0.1, 1, 0.1, 1) forwards;
    animation-play-state: paused;
    width: var(--bar-width);
}

.wrapped-emoji-count {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 12px;
    color: var(--text-gray);
    width: 45px;
    text-align: right;
    flex-shrink: 0;
}

.wrapped-duo-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 20px 0;
}

.wrapped-person-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    text-align: left;
}

body.light-theme .wrapped-person-card {
    background: rgba(255, 255, 255, 0.5);
}

.wrapped-person-name {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wrapped-person-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    padding: 0;
}

.wrapped-person-list li {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.wrapped-person-list li i {
    color: var(--accent-pink);
    flex-shrink: 0;
}

.wrapped-person-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wrapped-trait-tag {
    background: rgba(255, 77, 141, 0.1);
    border: 1px solid rgba(255, 77, 141, 0.2);
    color: var(--accent-pink);
    border-radius: 20px;
    padding: 3px 8px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
}

.wrapped-person-card:nth-child(2) .wrapped-trait-tag {
    background: rgba(77, 163, 255, 0.1);
    border: 1px solid rgba(77, 163, 255, 0.2);
    color: #4da3ff;
}

.wrapped-locations {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 20px 0;
}

.wrapped-location-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    gap: 12px;
    text-align: left;
}

body.light-theme .wrapped-location-item {
    background: rgba(255, 255, 255, 0.5);
}

.wrapped-location-rank {
    font-size: 18px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wrapped-location-icon {
    font-size: 20px;
    color: var(--accent-pink);
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wrapped-location-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wrapped-location-name {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-white);
}

.wrapped-location-desc {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.3;
    margin-top: 2px;
}

.wrapped-achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin: 20px 0;
}

.wrapped-achievement {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.light-theme .wrapped-achievement {
    background: rgba(255, 255, 255, 0.5);
}

.wrapped-achievement-icon {
    font-size: 22px;
    color: var(--accent-pink);
}

.wrapped-achievement-name {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 11px;
    color: var(--text-white);
    line-height: 1.3;
}

.wrapped-achievement-status {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wrapped-achievement-special {
    background: rgba(255, 77, 141, 0.05);
    border-color: rgba(255, 77, 141, 0.3);
    grid-column: span 2;
}

.wrapped-awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin: 20px 0;
}

.wrapped-award-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 120px;
}

body.light-theme .wrapped-award-card {
    background: rgba(255, 255, 255, 0.5);
}

.wrapped-award-category {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.2;
}

.wrapped-award-emoji-lg {
    font-size: 28px;
    color: var(--accent-pink);
}

.wrapped-award-card:nth-child(even) .wrapped-award-emoji-lg {
    color: var(--accent-rose);
}

.wrapped-award-winner-name {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-white);
}

.wrapped-award-card-special {
    background: rgba(255, 209, 102, 0.04);
    border-color: rgba(255, 209, 102, 0.3);
    grid-column: span 2;
}

body.light-theme .wrapped-award-card-special {
    background: rgba(255, 209, 102, 0.08);
}

.wrapped-award-card-special .wrapped-award-emoji-lg {
    color: var(--accent-gold);
    animation: float 4s ease-in-out infinite;
}

.wrapped-finale-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

body.light-theme .wrapped-finale-card {
    background: rgba(255, 255, 255, 0.5);
}

.wrapped-finale-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-color);
}

.wrapped-finale-row:last-child {
    border-bottom: none;
}

.wrapped-finale-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-gray);
}

.wrapped-finale-value {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wrapped-finale-value i {
    color: var(--accent-pink);
}

.wrapped-final-message {
    margin: 20px 0;
}

.wrapped-final-message p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: 10px;
}

.wrapped-final-message blockquote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 14px;
    color: var(--accent-rose);
    border-left: 2px solid var(--accent-pink);
    padding-left: 12px;
    margin: 16px 0;
    line-height: 1.6;
}

.wrapped-final-highlight {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-pink) !important;
}

.wrapped-infinity {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
}

.wrapped-inf-item {
    background: rgba(255, 77, 141, 0.05);
    border: 1px solid rgba(255, 77, 141, 0.15);
    border-radius: 16px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}

.wrapped-inf-item i {
    color: var(--accent-pink);
    font-size: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   SECTION 8 — THE LETTER
   ========================================================================== */
.letter-paper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 77, 141, 0.05);
    width: 100%;
    position: relative;
    transition: background 0.5s, border 0.5s;
}

body.light-theme .letter-paper {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 77, 141, 0.15);
    box-shadow: 0 20px 45px rgba(255, 77, 141, 0.08);
}

.letter-paper h2 {
    font-family: var(--font-hero);
    font-weight: 800;
    font-size: 28px;
    color: var(--text-white);
    margin-bottom: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.letter-paper h2 i {
    color: var(--accent-pink);
}

.letter-block {
    background: rgba(255, 77, 141, 0.02);
    border: 1px solid rgba(255, 77, 141, 0.08);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(255, 77, 141, 0.02);
    transition: border-color 0.3s, background-color 0.3s;
}

body.light-theme .letter-block {
    background: rgba(255, 77, 141, 0.02);
    border-color: rgba(255, 77, 141, 0.1);
}

.letter-block h3 {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 20px;
    color: var(--accent-pink);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.letter-block p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-white);
    line-height: 1.8;
    margin-bottom: 8px;
}

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

.letter-block .highlight {
    color: var(--accent-pink);
    font-weight: 600;
}

.letter-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 77, 141, 0.3);
    margin: 24px 0;
    gap: 16px;
}

.letter-divider::before,
.letter-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 141, 0.2), transparent);
}

.letter-divider i {
    animation: pulse 2.5s infinite;
}

.promises-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding: 0;
}

.promise-item {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-white);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.promise-check {
    color: var(--accent-pink);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}


/* ==========================================================================
   SECTION 9 — FUTURE PLANS
   ========================================================================== */
.roadmap {
    padding-left: 40px;
}
.roadmap::before {
    left: 12px;
}
.roadmap-item::before {
    left: -38px;
    top: 6px;
    font-size: 14px;
}
.roadmap-year {
    font-size: 22px;
    margin-bottom: 8px;
}
.roadmap-content {
    padding: 16px;
}
.roadmap-content p {
    font-size: 14px;
}

/* ==========================================================================
   SECTION 10 — FINALE SECTION & SURPRISE
   ========================================================================== */
.finale-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}
.finale-content h2 {
    font-size: 28px;
    margin-bottom: 24px;
}
.finale-content p {
    font-size: 16px;
    line-height: 1.8;
}
.finale-name {
    font-size: 36px !important;
    margin: 16px 0 !important;
}
.finale-heart {
    font-size: 48px;
    margin: 16px 0;
}
.finale-btn {
    margin-top: 24px;
    font-size: 16px;
    padding: 14px 32px;
}

.surprise-content {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    animation: fadeInUp 1s ease;
}
.surprise-content.active {
    display: flex;
}
.surprise-title {
    font-size: 28px;
    margin-bottom: 28px;
}
.surprise-message p {
    font-size: 18px;
    line-height: 1.8;
}
.surprise-message .highlight {
    font-size: 20px;
}
.surprise-emojis {
    font-size: 36px;
    margin-top: 28px;
}

/* ==========================================================================
   GLOBAL AUDIO BUTTON (PERMANENTLY PINNED ABOVE NAV DOCK)
   ========================================================================== */
.music-btn {
    position: absolute;
    bottom: 78px;
    right: 16px;
    z-index: 999;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 12px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
    50% { opacity: 0.15; }
    100% { transform: translateY(-80vh) rotate(360deg); opacity: 0; }
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.3); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes barGrow {
    to { width: var(--bar-width); }
}

@keyframes vbarGrow {
    to { height: var(--bar-height); }
}

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

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

/* ==========================================================================
   HIGHLIGHTS STORIES & FULL-SCREEN STORIES VIEWER
   ========================================================================== */
.stories-row-wrapper {
    width: 100%;
    padding: 24px 16px 8px 16px;
    margin-bottom: 4px;
    background: transparent;
    flex-shrink: 0;
}

.stories-row-title {
    font-family: var(--font-hero);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.highlights-stories-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.highlights-stories-row::-webkit-scrollbar {
    display: none;
}

.story-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.story-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 10px rgba(255, 77, 141, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.story-circle-item:hover .story-ring {
    transform: scale(1.04);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    font-size: 18px;
    transition: background-color 0.5s, border-color 0.5s;
}

body.light-theme .story-avatar {
    background: #fff;
    border-color: #fff5f7;
}

.story-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-gray);
    margin-top: 5px;
    max-width: 68px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: center;
}

/* Stories Viewer Modal */
.story-viewer-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-viewer-modal.active {
    display: flex;
    opacity: 1;
}

.story-viewer-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
    border: none;
    justify-content: space-between;
}

.story-progress-container {
    display: flex;
    gap: 4px;
    width: 100%;
    position: absolute;
    top: 12px;
    left: 0;
    padding: 0 16px;
    box-sizing: border-box;
    z-index: 10;
}

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

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
}

.story-progress-fill.completed {
    width: 100%;
}

.story-progress-fill.active {
    animation: fillProgress 4s linear forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.story-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 24px;
    left: 0;
    padding: 0 16px;
    z-index: 10;
    box-sizing: border-box;
}

.story-viewer-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent-pink);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.story-author-name {
    font-family: var(--font-hero);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: block;
}

.story-timestamp {
    font-family: var(--font-body);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.story-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.story-slide-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: 50px;
    margin-bottom: 10px;
}

.story-slide-inner {
    width: 100%;
    max-width: 300px;
    text-align: center;
    color: #fff;
}

.story-slide-icon {
    font-size: 48px;
    color: var(--accent-pink);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 77, 141, 0.4);
}

.story-slide-date {
    font-family: var(--font-hero);
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.story-slide-title {
    font-family: var(--font-hero);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.story-slide-text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.story-click-zone {
    position: absolute;
    top: 60px;
    bottom: 60px;
    z-index: 5;
    cursor: pointer;
}

.story-click-zone.left {
    left: 0;
    width: 30%;
}

.story-click-zone.right {
    right: 0;
    width: 70%;
}
