/* ============================================
   FEBRUARY LOVE LETTERS - ROMANTIC THEME
   Soft & Elegant Blazor Styles
   ============================================ */

/* === CSS Custom Properties === */
:root {
    /* Primary Colors */
    --soft-blush: #F8E1E7;
    --rose-pink: #E8B4B8;
    --cream: #FFF8F0;
    --champagne: #F7E7CE;
    --dusty-rose: #D4A5A5;
    --warm-gold: #D4AF37;
    --soft-white: #FFFBF7;
    --deep-rose: #C9929A;
    --burgundy-text: #8B5A5A;

    /* Gradients */
    --romantic-gradient: linear-gradient(135deg, #FFF8F0 0%, #F8E1E7 50%, #F7E7CE 100%);
    --anniversary-gradient: linear-gradient(135deg, #F8E1E7 0%, #D4AF37 50%, #E8B4B8 100%);
    --modal-gradient: linear-gradient(180deg, #FFFBF7 0%, #F8E1E7 100%);

    /* Shadows */
    --card-shadow: 0 8px 32px rgba(200, 146, 154, 0.2);
    --hover-shadow: 0 12px 40px rgba(200, 146, 154, 0.35);
    --glow-shadow: 0 0 30px rgba(212, 175, 55, 0.4);

    /* Typography */
    --font-romantic: 'Great Vibes', cursive;
    --font-elegant: 'Playfair Display', Georgia, serif;
    --font-clean: 'Lato', system-ui, sans-serif;

    /* Spacing */
    --container-max: 900px;
    --border-radius: 20px;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-clean);
    background: var(--romantic-gradient);
    min-height: 100vh;
    color: var(--burgundy-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Romantic App Container === */
.romantic-app {
    position: relative;
    min-height: 100vh;
}

/* === Background Hearts Container === */
.bg-hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-floating-heart {
    position: absolute;
    animation: bgHeartFloat infinite ease-in-out;
    filter: blur(1px);
}

/* === Sparkles Container === */
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 1rem;
    animation: sparkleGlow 3s infinite ease-in-out;
    opacity: 0;
}

/* === Background Gradient Overlay === */
.background-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(232, 180, 184, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(248, 225, 231, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

/* === Main Calendar Wrapper === */
.calendar-wrapper {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header Styles === */
.calendar-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1rem;
}

/* === Title Container with Hearts === */
.title-container {
    position: relative;
    display: inline-block;
}

.title-hearts {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.title-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: heartPulse 2s infinite ease-in-out;
}

.title-heart.left {
    left: -2.5rem;
    animation-delay: 0s;
}

.title-heart.right {
    right: -2.5rem;
    animation-delay: 0.5s;
}

/* === Animated Title === */
.animate-title {
    animation: titleEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.animate-subtitle {
    animation: subtitleEntrance 1s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-year {
    animation: yearEntrance 0.8s ease-out 0.7s forwards;
    opacity: 0;
}

/* === Footer Hearts === */
.footer-heart {
    display: inline-block;
    animation: heartPulse 1.5s infinite ease-in-out;
    margin: 0 0.5rem;
}

.title {
    font-family: var(--font-romantic);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--deep-rose);
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(200, 146, 154, 0.2);
}

.subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--dusty-rose);
    font-style: italic;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.year {
    font-family: var(--font-clean);
    font-size: 1rem;
    color: var(--rose-pink);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* === Calendar Container === */
.calendar-container {
    background: var(--soft-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 180, 184, 0.3);
    animation: fadeSlideUp 0.8s ease-out 0.2s backwards;
}

/* === Weekday Headers === */
.weekday-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--soft-blush);
}

.weekday-headers span {
    text-align: center;
    font-family: var(--font-clean);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--dusty-rose);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === Dates Grid === */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

/* === Date Cells === */
.date-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    color: var(--burgundy-text);
    box-shadow: 0 4px 15px rgba(200, 146, 154, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    animation: bounceIn 0.4s ease-out backwards;
}

.date-cell:hover {
    transform: scale(1.1);
    background: var(--soft-blush);
    box-shadow: var(--hover-shadow);
    border-color: var(--rose-pink);
}

.date-cell:active {
    transform: scale(0.95);
}

.date-cell.empty {
    background: transparent;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

.date-cell.has-note::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 6px;
    height: 6px;
    background: var(--rose-pink);
    border-radius: 50%;
}

/* === Valentine's Week Start (Feb 7) === */
.date-cell.valentines-week {
    background: linear-gradient(135deg, #FF6B8A, #FF4D6D, #E8B4B8);
    color: white;
    border: 3px solid #FF4D6D;
    font-weight: 600;
    animation: valentinesPulse 1.5s infinite ease-in-out;
    box-shadow: 0 0 25px rgba(255, 77, 109, 0.4);
}

.date-cell.valentines-week::before {
    content: '💘';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 1rem;
    animation: cupidArrow 1s infinite ease-in-out;
}

.date-cell.valentines-week::after {
    content: '💕';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    animation: heartFloat 2s infinite ease-in-out;
}

.date-cell.valentines-week:hover {
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(255, 77, 109, 0.6);
}

/* === Valentine's Day (Feb 14) - The Big Day! === */
.date-cell.valentines-day {
    background: linear-gradient(135deg, #C9184A, #FF4D6D, #FF6B8A);
    color: white;
    border: 3px solid #C9184A;
    font-weight: 700;
    font-size: 1.4rem;
    animation: vdayPulse 1.2s infinite ease-in-out;
    box-shadow: 0 0 30px rgba(201, 24, 74, 0.5);
}

.date-cell.valentines-day::before {
    content: '❤️';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    animation: bigHeartBeat 0.8s infinite ease-in-out;
}

.date-cell.valentines-day::after {
    content: '✨';
    position: absolute;
    bottom: -8px;
    right: -5px;
    font-size: 0.9rem;
    animation: vdaySparkle 1.5s infinite ease-in-out;
}

.date-cell.valentines-day:hover {
    transform: scale(1.2);
    box-shadow: 0 0 50px rgba(201, 24, 74, 0.7);
}

@keyframes vdayPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(201, 24, 74, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 24, 74, 0.7), 0 0 60px rgba(255, 77, 109, 0.4);
        transform: scale(1.05);
    }
}

@keyframes bigHeartBeat {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.3); }
}

@keyframes vdaySparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.6; transform: scale(1.2) rotate(180deg); }
}

@keyframes valentinesPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 77, 109, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 77, 109, 0.6), 0 0 50px rgba(255, 107, 138, 0.3);
    }
}

@keyframes cupidArrow {
    0%, 100% { transform: rotate(-15deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.2); }
}

@keyframes heartFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

/* === Valentine's Question Modal === */
.valentine-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.valentine-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.valentine-modal-content {
    background: linear-gradient(135deg, #FFF0F3, #FFE4E8, #FFDCE2);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 25px 80px rgba(255, 77, 109, 0.35);
    border: 3px solid #FF4D6D;
    position: relative;
    overflow: hidden;
}

.valentine-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 77, 109, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 138, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.valentine-hearts-shower {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.valentine-heart {
    position: absolute;
    animation: valentineRain 3s linear infinite;
    opacity: 0.6;
}

@keyframes valentineRain {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(400px) rotate(360deg);
        opacity: 0;
    }
}

.valentine-question-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: heartBeat 1s infinite ease-in-out;
    display: block;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

.valentine-question {
    font-family: var(--font-romantic);
    font-size: 2.2rem;
    color: #C9184A;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(201, 24, 74, 0.2);
}

.valentine-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.valentine-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.valentine-btn.yes {
    background: linear-gradient(135deg, #FF4D6D, #C9184A);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
}

.valentine-btn.yes:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 77, 109, 0.5);
}

.valentine-btn.no {
    background: linear-gradient(135deg, #E8B4B8, #D4A5A5);
    color: var(--burgundy-text);
    box-shadow: 0 5px 15px rgba(200, 146, 154, 0.3);
    transition: all 0.3s ease;
}

.valentine-btn.no:hover {
    transform: translateY(-2px);
}

/* No button escaping animation */
.valentine-btn.no.escaping {
    animation: noButtonEscape 0.4s ease-in-out;
}

@keyframes noButtonEscape {
    0% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-30px) rotate(-10deg); }
    50% { transform: translateX(30px) rotate(10deg); }
    75% { transform: translateX(-20px) rotate(-5deg); }
    100% { transform: translateX(0) rotate(0); }
}

.valentine-btn.no.shrinking {
    animation: noButtonShrink 0.5s ease-in-out forwards;
}

@keyframes noButtonShrink {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.5); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

/* Valentine celebration after yes */
.valentine-celebration {
    animation: celebrationPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celebrationPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.valentine-celebration-text {
    font-family: var(--font-romantic);
    font-size: 2.5rem;
    color: #C9184A;
    margin-bottom: 1rem;
}

.valentine-celebration-emoji {
    font-size: 3rem;
    animation: celebrationBounce 0.5s ease-out;
}

@keyframes celebrationBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.valentine-funny-text {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: var(--burgundy-text);
    font-style: italic;
    margin: 1rem 0;
    animation: fadeInUp 0.5s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Anniversary Date (Feb 22) === */
.date-cell.anniversary {
    background: var(--anniversary-gradient);
    color: var(--burgundy-text);
    border: 3px solid var(--warm-gold);
    font-weight: 600;
    font-size: 1.5rem;
    animation: pulseGlow 2s infinite ease-in-out;
    box-shadow: var(--glow-shadow);
}

.date-cell.anniversary::before {
    content: '\1F48D';
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 1rem;
    animation: sparkle 1.5s infinite ease-in-out;
}

.date-cell.anniversary:hover {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.6);
}

/* === Footer === */
.calendar-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
}

.footer-text {
    font-family: var(--font-elegant);
    font-style: italic;
    color: var(--dusty-rose);
    font-size: 1rem;
}

/* === Modal Overlay === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 146, 154, 0.4);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Note Modal === */
.note-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--modal-gradient);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(200, 146, 154, 0.4);
    border: 1px solid rgba(232, 180, 184, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.note-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.note-modal.anniversary-mode {
    border: 2px solid var(--warm-gold);
    animation: glowPulse 2s ease-in-out infinite;
}

/* === Close Button === */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--soft-blush);
    color: var(--burgundy-text);
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    background: var(--rose-pink);
    color: var(--soft-white);
    transform: rotate(90deg);
}

/* === Note Header === */
.note-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.date-display {
    display: inline-block;
    font-family: var(--font-clean);
    font-size: 0.9rem;
    color: var(--rose-pink);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    padding: 0.3rem 1rem;
    background: var(--soft-blush);
    border-radius: 20px;
}

.note-title {
    font-family: var(--font-romantic);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--deep-rose);
    font-weight: 400;
    margin: 0;
}

.anniversary-mode .note-title {
    background: linear-gradient(90deg, var(--deep-rose) 0%, var(--warm-gold) 50%, var(--deep-rose) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

/* === Note Image === */
.note-image-container {
    margin: 1.5rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(200, 146, 154, 0.25);
}

.note-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* === Note Text === */
.note-text {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--burgundy-text);
    text-align: center;
    white-space: pre-wrap;
}

/* === Anniversary Badge === */
.anniversary-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(232, 180, 184, 0.2) 100%);
    border-radius: 15px;
    border: 2px solid var(--warm-gold);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: sparkle 2s infinite;
}

.badge-text {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--deep-rose);
    text-align: center;
}

/* === Theme Badge === */
.theme-badge {
    display: inline-block;
    font-family: var(--font-clean);
    font-size: 0.75rem;
    color: var(--soft-white);
    background: linear-gradient(135deg, var(--rose-pink), var(--deep-rose));
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === Gift Hint Box === */
.gift-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(248, 225, 231, 0.3) 100%);
    border-radius: 15px;
    border: 2px dashed var(--rose-pink);
    animation: giftPulse 2s infinite ease-in-out;
}

.gift-icon {
    font-size: 1.5rem;
    animation: giftBounce 1s infinite ease-in-out;
}

.gift-text {
    font-family: var(--font-elegant);
    font-size: 1rem;
    color: var(--burgundy-text);
    font-style: italic;
}

@keyframes giftPulse {
    0%, 100% { border-color: var(--rose-pink); }
    50% { border-color: var(--warm-gold); }
}

@keyframes giftBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* === Future Locked Date === */
.date-cell.future-locked {
    background: linear-gradient(135deg, var(--champagne), var(--soft-blush));
    opacity: 0.7;
    cursor: pointer;
    position: relative;
}

.date-cell.future-locked .lock-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    animation: lockWiggle 2s infinite ease-in-out;
}

.date-cell.future-locked:hover {
    opacity: 1;
    transform: scale(1.05);
    animation: lockedShake 0.5s ease-in-out;
}

@keyframes lockWiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes lockedShake {
    0%, 100% { transform: scale(1.05) translateX(0); }
    25% { transform: scale(1.05) translateX(-3px); }
    75% { transform: scale(1.05) translateX(3px); }
}

/* === Future Modal (Witty Message) === */
.future-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.future-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.future-modal-content {
    background: linear-gradient(135deg, var(--soft-white), var(--champagne));
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 25px 80px rgba(200, 146, 154, 0.4);
    border: 2px solid var(--rose-pink);
    position: relative;
}

.future-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.future-main-icon {
    font-size: 3.5rem;
    display: block;
    animation: peekaboo 2s infinite ease-in-out;
}

.future-sparkle {
    position: absolute;
    font-size: 1rem;
    animation: orbitSparkle 3s infinite ease-in-out;
}

.future-sparkle.s1 { top: 0; right: 0; animation-delay: 0s; }
.future-sparkle.s2 { bottom: 0; left: 0; animation-delay: 1s; }
.future-sparkle.s3 { top: 50%; right: -10px; animation-delay: 2s; }

@keyframes peekaboo {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-10deg); }
    75% { transform: scale(1.1) rotate(10deg); }
}

@keyframes orbitSparkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.future-title {
    font-family: var(--font-romantic);
    font-size: 2rem;
    color: var(--deep-rose);
    margin-bottom: 1rem;
}

.future-message {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: var(--burgundy-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.future-countdown {
    padding: 0.75rem 1.5rem;
    background: var(--soft-blush);
    border-radius: 25px;
    display: inline-block;
}

.countdown-text {
    font-family: var(--font-clean);
    font-size: 0.9rem;
    color: var(--deep-rose);
    font-weight: 400;
}

/* === Special Day (Day 1) Calendar Cell === */
.date-cell.special-day {
    background: linear-gradient(135deg, var(--soft-blush), var(--champagne));
    border: 2px solid var(--rose-pink);
    animation: specialDayPulse 2s infinite ease-in-out;
}

.date-cell.special-day .special-icon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    animation: envelopeFloat 2s infinite ease-in-out;
}

@keyframes specialDayPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(232, 180, 184, 0.4); }
    50% { box-shadow: 0 0 25px rgba(232, 180, 184, 0.6); }
}

@keyframes envelopeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

/* === Special Letter Modal === */
.special-letter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.special-letter-modal.active {
    opacity: 1;
    visibility: visible;
}

/* === Envelope Container === */
.envelope-container {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.envelope {
    width: 200px;
    height: 140px;
    margin: 0 auto 2rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: scale(1.05);
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--soft-white) 0%, var(--champagne) 100%);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(200, 146, 154, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.envelope-heart {
    font-size: 3rem;
    animation: heartPulse 1.5s infinite ease-in-out;
    position: relative;
    z-index: 3;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, var(--rose-pink) 0%, var(--soft-blush) 100%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    transform-origin: top center;
    transition: transform 0.8s ease-in-out;
    z-index: 2;
}

.envelope.opening .envelope-flap {
    transform: rotateX(180deg);
}

.envelope.opening .envelope-body {
    animation: envelopeShake 0.5s ease-in-out;
}

@keyframes envelopeShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.envelope-text {
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    color: var(--burgundy-text);
    font-style: italic;
    margin-bottom: 1.5rem;
    animation: textFade 1s ease-out 0.3s backwards;
}

.open-letter-btn, .read-letter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--rose-pink), var(--deep-rose));
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(200, 146, 154, 0.4);
}

.open-letter-btn:hover, .read-letter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 146, 154, 0.5);
}

.btn-heart, .btn-arrow {
    animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* === Teaser Container === */
.teaser-container {
    text-align: center;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.teaser-container.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.teaser-note {
    background: var(--soft-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(200, 146, 154, 0.3);
    max-width: 350px;
    margin: 0 auto 2rem;
    position: relative;
    border: 1px solid var(--soft-blush);
}

.teaser-decoration {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.teaser-decoration.top {
    margin-bottom: 1rem;
}

.teaser-decoration.bottom {
    margin-top: 1rem;
    font-family: var(--font-romantic);
    font-size: 1.5rem;
    color: var(--deep-rose);
}

.teaser-text {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    color: var(--burgundy-text);
    line-height: 1.8;
    font-style: italic;
}

/* === Letter Container === */
.letter-container {
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
    position: relative;
    background: var(--soft-white);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

/* Close button for letter container - sticky at top */
.letter-container > .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1100;
    background: var(--rose-pink);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
}

.letter-container > .close-btn:hover {
    background: var(--deep-rose);
    transform: rotate(90deg) scale(1.1);
}

/* Make the letter paper scrollable, not the container */
.letter-container .letter-paper {
    overflow-y: auto;
    max-height: calc(85vh - 80px);
    margin: 50px 0 20px 0;
}

.letter-container.visible {
    opacity: 1;
    transform: scale(1);
}

.letter-paper {
    background: linear-gradient(180deg, #FFFEF9 0%, #FFF8F0 50%, #F7E7CE 100%);
    padding: 3rem 2.5rem;
    border-radius: 5px;
    box-shadow:
        0 2px 5px rgba(0,0,0,0.1),
        0 20px 60px rgba(200, 146, 154, 0.3);
    position: relative;
    border: 1px solid rgba(200, 146, 154, 0.2);
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            transparent,
            transparent 31px,
            rgba(200, 146, 154, 0.1) 31px,
            rgba(200, 146, 154, 0.1) 32px
        );
    pointer-events: none;
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--soft-blush);
}

.letter-date {
    font-family: var(--font-clean);
    font-size: 0.85rem;
    color: var(--dusty-rose);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.letter-title {
    font-family: var(--font-romantic);
    font-size: 2rem;
    color: var(--deep-rose);
    margin: 0;
}

.letter-content {
    position: relative;
    z-index: 1;
}

.letter-paragraph {
    font-family: var(--font-elegant);
    font-size: 1.05rem;
    color: var(--burgundy-text);
    line-height: 2;
    margin-bottom: 1.2rem;
    min-height: 1.5em;
}

.letter-paragraph.signature {
    font-style: italic;
    text-align: right;
    margin-top: 1.5rem;
}

.animated-word {
    display: inline;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out;
}

.animated-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.letter-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

.letter-seal {
    font-size: 2.5rem;
    animation: sealPulse 2s infinite ease-in-out;
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.letter-gift-hint {
    margin-top: 1.5rem;
    animation: fadeSlideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes textFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Responsive for Special Letter === */
@media (max-width: 480px) {
    .envelope {
        width: 160px;
        height: 110px;
    }

    .envelope-heart {
        font-size: 2.5rem;
    }

    .letter-paper {
        padding: 2rem 1.5rem;
    }

    .letter-title {
        font-size: 1.6rem;
    }

    .letter-paragraph {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .teaser-note {
        padding: 2rem 1.5rem;
        margin: 0 1rem 2rem;
    }
}

/* === Floating Hearts Container === */
.floating-hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.floating-heart {
    position: absolute;
    bottom: -20px;
    animation: floatUp 4s ease-out forwards;
    opacity: 0.7;
    font-size: 1.2rem;
}

/* === Confetti === */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    animation: confettiFall 4s ease-out forwards;
}

.confetti-piece.square {
    width: 10px;
    height: 10px;
}

.confetti-piece.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.confetti-piece.heart {
    background: none !important;
    width: auto;
    height: auto;
    font-size: 1rem;
}

/* === Animations === */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(212, 175, 55, 0.3),
            0 4px 15px rgba(200, 146, 154, 0.2);
    }
    50% {
        box-shadow:
            0 0 40px rgba(212, 175, 55, 0.5),
            0 0 60px rgba(232, 180, 184, 0.3),
            0 4px 15px rgba(200, 146, 154, 0.2);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.1) rotate(5deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2) rotate(-5deg);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.05) rotate(3deg);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0.8;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-400px) rotate(45deg) scale(0.5);
    }
}

/* === Open When Envelope Set (Day 8) === */
.open-when-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.open-when-modal.active {
    opacity: 1;
    visibility: visible;
}

.open-when-content {
    background: linear-gradient(135deg, #FFF8F0 0%, #F8E1E7 50%, #FFF0F5 100%);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(200, 146, 154, 0.4);
    border: 2px solid var(--rose-pink);
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.open-when-header {
    text-align: center;
    margin-bottom: 2rem;
}

.open-when-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: envelopeWiggle 2s ease-in-out infinite;
}

@keyframes envelopeWiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.open-when-title {
    font-family: var(--font-romantic);
    font-size: 2.5rem;
    color: var(--deep-rose);
    margin-bottom: 0.5rem;
}

.open-when-subtitle {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: var(--dusty-rose);
    font-style: italic;
}

.envelope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

@media (max-width: 500px) {
    .envelope-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.open-when-envelope {
    background: linear-gradient(145deg, #FFFBF7, #F7E7CE);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 20px rgba(200, 146, 154, 0.2);
    border: 2px solid transparent;
    text-align: center;
    overflow: hidden;
}

.open-when-envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, var(--rose-pink), var(--soft-blush));
    clip-path: polygon(0 0, 50% 70%, 100% 0);
    transition: all 0.3s ease;
}

.open-when-envelope:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(200, 146, 154, 0.35);
    border-color: var(--rose-pink);
}

.open-when-envelope:hover::before {
    transform: rotateX(30deg);
}

.open-when-envelope:active {
    transform: scale(0.98);
}

.open-when-envelope.opened {
    background: linear-gradient(145deg, #F0FFF0, #E8F5E8);
    border-color: #98D798;
}

.envelope-front {
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
}

.envelope-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.8rem;
    animation: emojiFloat 3s ease-in-out infinite;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.envelope-label {
    font-family: var(--font-elegant);
    font-size: 0.85rem;
    color: var(--burgundy-text);
    font-weight: 500;
    line-height: 1.3;
}

.envelope-seal {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    z-index: 3;
    animation: sealPulse 2s ease-in-out infinite;
}

@keyframes sealPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

.envelope-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 5;
    animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.open-when-footer-text {
    text-align: center;
    font-family: var(--font-elegant);
    font-size: 0.95rem;
    color: var(--dusty-rose);
    font-style: italic;
}

/* Open When Note View */
.open-when-note-view {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.open-when-note-view.visible {
    opacity: 1;
    transform: translateX(0);
}

.back-btn {
    background: none;
    border: none;
    color: var(--deep-rose);
    font-family: var(--font-elegant);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    color: var(--rose-pink);
    transform: translateX(-5px);
}

.open-when-note-card {
    background: linear-gradient(180deg, #FFFEF9 0%, #FFF8F0 50%, #F7E7CE 100%);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(200, 146, 154, 0.25);
    border: 1px solid rgba(232, 180, 184, 0.3);
    position: relative;
}

.open-when-note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        transparent,
        transparent 28px,
        rgba(200, 146, 154, 0.08) 28px,
        rgba(200, 146, 154, 0.08) 29px
    );
    pointer-events: none;
    border-radius: 15px;
}

.note-card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--soft-blush);
    position: relative;
    z-index: 1;
}

.note-card-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: noteEmojiPulse 1.5s ease-in-out infinite;
}

@keyframes noteEmojiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.note-card-title {
    font-family: var(--font-romantic);
    font-size: 1.8rem;
    color: var(--deep-rose);
}

.note-card-content {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.note-card-text {
    font-family: var(--font-elegant);
    font-size: 1.05rem;
    color: var(--burgundy-text);
    line-height: 1.9;
    white-space: pre-wrap;
    text-align: center;
}

.note-card-footer {
    text-align: right;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
    border-top: 1px solid var(--soft-blush);
}

.note-card-signature {
    font-family: var(--font-romantic);
    font-size: 1.4rem;
    color: var(--deep-rose);
}

/* Day 8 Special Calendar Styling */
.date-cell.open-when-day {
    background: linear-gradient(135deg, #FFE4B5, #FFDAB9, #FFE4C4);
    color: var(--burgundy-text);
    border: 3px solid #DEB887;
    font-weight: 600;
    animation: envelopeDayPulse 2s infinite ease-in-out;
}

.date-cell.open-when-day::before {
    content: '💌';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    animation: envelopeFloat 2s infinite ease-in-out;
}

@keyframes envelopeDayPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(222, 184, 135, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(222, 184, 135, 0.6);
    }
}

@keyframes envelopeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-5deg); }
    50% { transform: translateX(-50%) translateY(-3px) rotate(5deg); }
}

/* === Date Vouchers (Day 12) === */
.voucher-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.voucher-modal.active {
    opacity: 1;
    visibility: visible;
}

.voucher-content {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFEFD5 50%, #FFE4B5 100%);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    max-width: 550px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(218, 165, 32, 0.3);
    border: 3px solid #DAA520;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.voucher-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.voucher-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: ticketSpin 3s ease-in-out infinite;
}

@keyframes ticketSpin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(15deg); }
}

.voucher-title {
    font-family: var(--font-romantic);
    font-size: 2.2rem;
    color: #8B4513;
    margin-bottom: 0.3rem;
}

.voucher-subtitle {
    font-family: var(--font-elegant);
    font-size: 1rem;
    color: #A0522D;
    font-style: italic;
}

.voucher-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.date-voucher {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.date-voucher:hover {
    transform: translateX(5px) scale(1.02);
}

.date-voucher:active {
    transform: scale(0.98);
}

.voucher-ticket {
    display: flex;
    background: linear-gradient(135deg, #FFFAF0, #FFF8DC);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    overflow: hidden;
    position: relative;
    border: 2px dashed #DEB887;
}

.voucher-perforation {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px 0;
}

.voucher-perforation.left {
    left: -10px;
}

.voucher-perforation.right {
    right: 70px;
}

.voucher-perforation::before,
.voucher-perforation::after {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 50%;
}

.voucher-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.voucher-emoji {
    font-size: 2.5rem;
    animation: voucherEmojiBounce 2s ease-in-out infinite;
}

@keyframes voucherEmojiBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.voucher-details {
    flex: 1;
}

.voucher-name {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: #8B4513;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.voucher-desc {
    font-family: var(--font-clean);
    font-size: 0.85rem;
    color: #A0522D;
    line-height: 1.4;
}

.voucher-stub {
    width: 70px;
    background: linear-gradient(135deg, #DAA520, #B8860B);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 2px dashed rgba(255, 255, 255, 0.5);
    position: relative;
}

.redeem-text {
    font-family: var(--font-clean);
    font-size: 0.65rem;
    color: white;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.redeemed-stamp {
    font-family: var(--font-clean);
    font-size: 0.8rem;
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-15deg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: stampPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stampPop {
    0% { transform: rotate(-15deg) scale(0); }
    50% { transform: rotate(-15deg) scale(1.3); }
    100% { transform: rotate(-15deg) scale(1); }
}

.date-voucher.redeemed .voucher-ticket {
    background: linear-gradient(135deg, #F0FFF0, #E8F5E8);
    border-color: #90EE90;
    opacity: 0.85;
}

.date-voucher.redeemed .voucher-stub {
    background: linear-gradient(135deg, #32CD32, #228B22);
}

.date-voucher.redeemed .voucher-emoji {
    animation: none;
}

.voucher-heart-burst {
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    display: flex;
    gap: 2px;
    pointer-events: none;
}

.voucher-heart-burst span {
    animation: heartBurst 0.5s ease-out forwards;
    opacity: 0;
}

.voucher-heart-burst span:nth-child(1) { animation-delay: 0s; }
.voucher-heart-burst span:nth-child(2) { animation-delay: 0.1s; }
.voucher-heart-burst span:nth-child(3) { animation-delay: 0.2s; }

@keyframes heartBurst {
    0% {
        opacity: 1;
        transform: scale(0) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.5) translateY(-20px);
    }
}

.voucher-footer-text {
    text-align: center;
    font-family: var(--font-elegant);
    font-size: 0.9rem;
    color: #A0522D;
    font-style: italic;
}

/* Day 12 Special Calendar Styling */
.date-cell.voucher-day {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    color: white;
    border: 3px solid #DAA520;
    font-weight: 600;
    animation: voucherDayPulse 2s infinite ease-in-out;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.date-cell.voucher-day::before {
    content: '🎟️';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    animation: ticketFloat 2s infinite ease-in-out;
}

@keyframes voucherDayPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

@keyframes ticketFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-5deg); }
    50% { transform: translateX(-50%) translateY(-4px) rotate(5deg); }
}

/* Mobile adjustments for vouchers */
@media (max-width: 480px) {
    .voucher-content {
        padding: 1.5rem 1rem;
    }

    .voucher-main {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }

    .voucher-emoji {
        font-size: 2rem;
    }

    .voucher-name {
        font-size: 0.95rem;
    }

    .voucher-desc {
        font-size: 0.75rem;
    }

    .voucher-stub {
        width: 55px;
    }

    .redeem-text {
        font-size: 0.55rem;
    }
}

/* === Message Jar (Day 9) === */
.jar-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1010;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #fdf6f0 0%, #fff5f7 50%, #fef0e8 100%);
    border-radius: 30px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(200, 146, 154, 0.4), 0 0 60px rgba(232, 180, 184, 0.2);
}

.jar-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.jar-content {
    position: relative;
    text-align: center;
}

/* === Jar Closed Scene === */
.jar-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

.jar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: jarGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes jarGlowPulse {
    0%, 100% { transform: translate(-50%, -60%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -60%) scale(1.2); opacity: 0.8; }
}

/* Jar Sparkles */
.jar-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.jar-sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: jarSparkle 2s ease-in-out infinite;
}

.jar-sparkle.s1 { top: 10%; left: 15%; animation-delay: 0s; }
.jar-sparkle.s2 { top: 20%; right: 15%; animation-delay: 0.5s; }
.jar-sparkle.s3 { top: 50%; left: 8%; animation-delay: 1s; }
.jar-sparkle.s4 { top: 40%; right: 10%; animation-delay: 1.5s; }
.jar-sparkle.s5 { bottom: 30%; left: 20%; animation-delay: 0.8s; }

@keyframes jarSparkle {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

/* === The Jar === */
.message-jar {
    position: relative;
    width: 140px;
    height: 180px;
    margin: 0 auto;
    animation: jarFloat 3s ease-in-out infinite;
}

@keyframes jarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Jar Lid */
.jar-lid {
    position: relative;
    z-index: 3;
    transition: all 0.6s ease;
}

.lid-top {
    width: 80px;
    height: 18px;
    background: linear-gradient(180deg, #d4a574 0%, #c4956a 50%, #b8865d 100%);
    border-radius: 8px 8px 0 0;
    margin: 0 auto;
    box-shadow: 0 -3px 10px rgba(180, 130, 90, 0.3);
}

.lid-rim {
    width: 100px;
    height: 12px;
    background: linear-gradient(180deg, #c4956a 0%, #d4a574 50%, #c4956a 100%);
    border-radius: 3px;
    margin: 0 auto;
    box-shadow: 0 3px 8px rgba(180, 130, 90, 0.2);
}

/* Jar Body */
.jar-body {
    position: relative;
    width: 120px;
    height: 140px;
    margin: 0 auto;
    margin-top: -2px;
}

.jar-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 240, 245, 0.3) 30%,
        rgba(255, 228, 225, 0.2) 60%,
        rgba(255, 255, 255, 0.35) 100%);
    border: 2px solid rgba(255, 200, 200, 0.5);
    border-radius: 10px 10px 25px 25px;
    backdrop-filter: blur(2px);
    box-shadow:
        inset 0 0 30px rgba(255, 192, 203, 0.15),
        0 10px 30px rgba(200, 146, 154, 0.2);
}

.jar-shine {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 20px;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 10px;
    transform: rotate(-5deg);
    pointer-events: none;
}

/* Note Inside Jar */
.jar-note-inside {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.rolled-note {
    width: 45px;
    height: 55px;
    background: linear-gradient(135deg, #fef9f0 0%, #f5e6d0 100%);
    border-radius: 5px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: noteWiggle 3s ease-in-out infinite;
}

.rolled-note::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(200, 146, 154, 0.3);
    box-shadow: 0 8px 0 rgba(200, 146, 154, 0.25), 0 16px 0 rgba(200, 146, 154, 0.2), 0 24px 0 rgba(200, 146, 154, 0.15);
}

.note-ribbon {
    position: absolute;
    top: -12px;
    font-size: 1rem;
    animation: ribbonBounce 2s ease-in-out infinite;
}

@keyframes noteWiggle {
    0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
    50% { transform: translate(-50%, -50%) rotate(2deg); }
}

@keyframes ribbonBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Tiny Hearts Inside Jar */
.jar-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tiny-heart {
    position: absolute;
    color: var(--rose-pink);
    font-size: 0.6rem;
    opacity: 0.5;
    animation: tinyHeartFloat 4s ease-in-out infinite;
}

.tiny-heart.h1 { bottom: 15%; left: 20%; animation-delay: 0s; color: #ffb6c1; }
.tiny-heart.h2 { bottom: 25%; right: 22%; animation-delay: 0.8s; color: #ff69b4; }
.tiny-heart.h3 { bottom: 10%; left: 45%; animation-delay: 1.6s; color: #e8b4b8; }
.tiny-heart.h4 { bottom: 35%; left: 15%; animation-delay: 2.4s; color: #ffb6c1; }
.tiny-heart.h5 { bottom: 20%; right: 15%; animation-delay: 0.4s; color: #ff69b4; }

@keyframes tinyHeartFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-8px) scale(1.2); opacity: 0.7; }
}

/* Jar Title & Button */
.jar-title {
    font-family: var(--font-romantic);
    color: var(--deep-rose);
    font-size: 2rem;
    margin: 0.5rem 0 0;
}

.jar-subtitle {
    font-family: var(--font-elegant);
    color: var(--rose-pink);
    font-size: 1rem;
    font-style: italic;
    margin: 0;
}

.open-jar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--rose-pink), var(--deep-rose));
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(200, 146, 154, 0.4);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    animation: jarBtnPulse 2s ease-in-out infinite;
}

.open-jar-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(200, 146, 154, 0.5);
}

.open-jar-btn:active {
    transform: scale(0.95);
}

.btn-sparkle {
    animation: sparkleRotate 2s linear infinite;
}

@keyframes sparkleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes jarBtnPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(200, 146, 154, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(200, 146, 154, 0.6), 0 0 20px rgba(255, 182, 193, 0.3); }
}

/* === Jar Note Reveal === */
.jar-note-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding: 0.5rem 0;
}

.jar-note-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.unrolled-note {
    perspective: 1000px;
}

.note-paper {
    background: linear-gradient(145deg, #fef9f0 0%, #fdf3e7 50%, #fef9f0 100%);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow:
        0 10px 40px rgba(180, 130, 90, 0.15),
        inset 0 0 30px rgba(255, 240, 230, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.2);
    position: relative;
    overflow: hidden;
}

.note-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        transparent,
        transparent 28px,
        rgba(200, 146, 154, 0.08) 28px,
        rgba(200, 146, 154, 0.08) 29px
    );
    pointer-events: none;
}

.note-decorations {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.note-decorations.bottom {
    margin-bottom: 0;
    margin-top: 1rem;
}

.note-message {
    position: relative;
    z-index: 1;
}

.jar-message-line {
    font-family: var(--font-elegant);
    font-size: 1.05rem;
    color: var(--dark-text);
    line-height: 1.8;
    margin: 0;
    padding: 2px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    min-height: 0.5rem;
}

.jar-message-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.jar-message-line.bold-line {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--deep-rose);
    font-style: italic;
    text-shadow: 0 0 20px rgba(200, 146, 154, 0.3);
}

.jar-message-line:empty {
    height: 0.8rem;
}

.note-signature {
    text-align: right;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
    position: relative;
    z-index: 1;
}

.note-signature.visible {
    opacity: 1;
    transform: translateX(0);
}

.signature-line {
    font-family: var(--font-romantic);
    font-size: 1.4rem;
    color: var(--deep-rose);
}

/* Floating hearts around the note */
.jar-floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.jar-float-heart {
    position: absolute;
    bottom: -20px;
    font-size: 1rem;
    animation: jarHeartRise 4s ease-in-out infinite;
}

@keyframes jarHeartRise {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 0.8; transform: translateY(-30px) scale(1); }
    80% { opacity: 0.6; }
    100% { transform: translateY(-300px) scale(0.5); opacity: 0; }
}

/* === Calendar Styling for Day 9 === */
.date-cell.jar-day {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8e0 100%);
    border: 2px solid rgba(212, 165, 116, 0.4);
    animation: jarDayGlow 3s infinite ease-in-out;
}

.date-cell.jar-day::before {
    content: '🫙';
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 0.8rem;
    animation: jarDayBounce 2s ease-in-out infinite;
}

@keyframes jarDayGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 165, 116, 0.2); }
    50% { box-shadow: 0 4px 25px rgba(212, 165, 116, 0.4), 0 0 15px rgba(255, 182, 193, 0.2); }
}

@keyframes jarDayBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(10deg); }
}

/* Mobile adjustments for message jar */
@media (max-width: 480px) {
    .jar-modal {
        width: 95%;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .message-jar {
        width: 110px;
        height: 150px;
    }

    .jar-body {
        width: 95px;
        height: 115px;
    }

    .lid-top {
        width: 65px;
        height: 15px;
    }

    .lid-rim {
        width: 80px;
        height: 10px;
    }

    .jar-title {
        font-size: 1.6rem;
    }

    .jar-message-line {
        font-size: 0.95rem;
    }

    .note-paper {
        padding: 1.5rem 1rem;
    }

    .signature-line {
        font-size: 1.2rem;
    }
}

/* === Music Toggle Button === */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--rose-pink), var(--deep-rose));
    border: none;
    border-radius: 30px;
    color: white;
    font-family: var(--font-clean);
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(200, 146, 154, 0.4);
    transition: all 0.3s ease;
    animation: musicButtonEntrance 1s ease-out 1s backwards;
}

.music-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(200, 146, 154, 0.5);
}

.music-toggle:active {
    transform: scale(0.95);
}

.music-toggle .music-icon {
    font-size: 1.3rem;
    animation: musicIconBounce 1s ease-in-out infinite;
}

.music-toggle.playing .music-icon {
    animation: musicIconPulse 0.5s ease-in-out infinite;
}

.music-toggle .music-label {
    font-weight: 500;
}

.music-toggle .music-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.music-toggle .wave {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: waveAnimation 0.5s ease-in-out infinite;
}

.music-toggle .wave:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.music-toggle .wave:nth-child(2) {
    height: 14px;
    animation-delay: 0.1s;
}

.music-toggle .wave:nth-child(3) {
    height: 10px;
    animation-delay: 0.2s;
}

@keyframes musicButtonEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes musicIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes musicIconPulse {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50% { transform: scale(1.15) rotate(5deg); }
}

@keyframes waveAnimation {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* Mobile adjustments for music button */
@media (max-width: 480px) {
    .music-toggle {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .music-toggle .music-icon {
        font-size: 1.1rem;
    }
}

/* === Love Story Book (Day 20) === */
.storybook-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1010;
    width: 94%;
    max-width: 600px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #fef9f0 0%, #fff5f7 30%, #fdf3e7 70%, #fef9f0 100%);
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 30px 100px rgba(139, 90, 60, 0.25),
        0 0 60px rgba(232, 180, 184, 0.15),
        inset 0 0 80px rgba(255, 245, 235, 0.5);
    border: 2px solid rgba(212, 165, 116, 0.3);
}

.storybook-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.storybook-content {
    position: relative;
    padding: 0;
}

.book-container {
    padding: 1.5rem;
}

/* Story Page */
.story-page {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.story-page.page-exit-left {
    opacity: 0;
    transform: translateX(-30px);
}

.story-page.page-exit-right {
    opacity: 0;
    transform: translateX(30px);
}

.story-page.page-enter-right {
    animation: pageEnterRight 0.4s ease forwards;
}

.story-page.page-enter-left {
    animation: pageEnterLeft 0.4s ease forwards;
}

@keyframes pageEnterRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pageEnterLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === Cover Page === */
.scene-cover {
    text-align: center;
    padding: 2rem 1rem 1rem;
    position: relative;
}

.cover-hearts {
    margin-bottom: 1rem;
}

.cover-heart {
    font-size: 1.5rem;
    display: inline-block;
    margin: 0 0.5rem;
    animation: coverHeartFloat 3s ease-in-out infinite;
}

.cover-heart.h1 { animation-delay: 0s; }
.cover-heart.h2 { animation-delay: 0.5s; font-size: 2rem; }
.cover-heart.h3 { animation-delay: 1s; }

@keyframes coverHeartFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

.cover-book-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bookPulse 2s ease-in-out infinite;
}

@keyframes bookPulse {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.05) rotate(2deg); }
}

.cover-title {
    font-family: var(--font-romantic);
    font-size: 2.5rem;
    color: var(--deep-rose);
    margin: 0.5rem 0;
    text-shadow: 0 2px 10px rgba(200, 146, 154, 0.3);
}

.cover-subtitle {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: var(--rose-pink);
    font-style: italic;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.cover-date {
    font-family: var(--font-clean);
    font-size: 0.9rem;
    color: var(--muted-rose);
    margin-top: 1rem;
    letter-spacing: 0.1em;
}

.cover-divider {
    font-size: 1.2rem;
    color: var(--rose-pink);
    margin-top: 0.8rem;
    letter-spacing: 0.3em;
}

/* === Scene Illustrations === */
.story-scene {
    background: linear-gradient(180deg, #e8f4fd 0%, #fdf2f4 60%, #fef9f0 100%);
    border-radius: 15px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.story-scene.scene-0 {
    background: linear-gradient(145deg, #fef9f0 0%, #fff0f3 50%, #fef5e7 100%);
    min-height: 280px;
}

.scene-illustration {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

/* Scene 1: The Journey */
.scene-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, #87CEEB 0%, #B8E4F9 60%, #FDD7B4 100%);
}

.scene-sky.sunset {
    background: linear-gradient(180deg, #ff9a9e 0%, #fad0c4 40%, #ffecd2 100%);
}

.scene-road {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, #8B7355 0%, #A0926B 100%);
}

.road-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(90deg, #fff 0, #fff 20px, transparent 20px, transparent 40px);
    opacity: 0.7;
}

.scene-bike-rider {
    position: absolute;
    bottom: 35%;
    font-size: 2.5rem;
    animation: bikeRide 4s linear infinite;
}

@keyframes bikeRide {
    0% { left: -10%; }
    100% { left: 110%; }
}

.scene-city-from {
    position: absolute;
    bottom: 8%;
    left: 8%;
    font-family: var(--font-clean);
    font-size: 0.75rem;
    color: white;
    background: rgba(0,0,0,0.3);
    padding: 3px 10px;
    border-radius: 10px;
}

.scene-city-to {
    position: absolute;
    bottom: 8%;
    right: 8%;
    font-family: var(--font-clean);
    font-size: 0.75rem;
    color: white;
    background: rgba(200, 146, 154, 0.6);
    padding: 3px 10px;
    border-radius: 10px;
}

.scene-items {
    position: absolute;
    top: 15%;
    right: 15%;
    display: flex;
    gap: 0.5rem;
    font-size: 1.8rem;
    animation: itemsFloat 2s ease-in-out infinite;
}

@keyframes itemsFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.scene-hearts-trail {
    position: absolute;
    bottom: 42%;
    left: 30%;
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

.scene-hearts-trail span {
    animation: trailPulse 1.5s ease-in-out infinite;
}

.scene-hearts-trail span:nth-child(1) { animation-delay: 0s; }
.scene-hearts-trail span:nth-child(2) { animation-delay: 0.3s; }
.scene-hearts-trail span:nth-child(3) { animation-delay: 0.6s; }

@keyframes trailPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Scene 2: First Sight */
.bus-station {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.station-sign {
    font-family: var(--font-clean);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.scene-him-waiting {
    position: absolute;
    bottom: 25%;
    left: 30%;
    font-size: 2.5rem;
    animation: waitingBob 2s ease-in-out infinite;
}

@keyframes waitingBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.scene-her-arriving {
    position: absolute;
    bottom: 25%;
    right: 15%;
    font-size: 2.5rem;
    animation: scooterArrive 3s ease-out forwards;
}

@keyframes scooterArrive {
    0% { right: -15%; opacity: 0; }
    100% { right: 15%; opacity: 1; }
}

.blur-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 60%, transparent 30%, rgba(255,228,225,0.4) 100%);
    pointer-events: none;
}

.scene-sparkles-burst {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    font-size: 1.3rem;
}

.scene-sparkles-burst span {
    animation: sparkleBurst 2s ease-in-out infinite;
}

.scene-sparkles-burst span:nth-child(1) { animation-delay: 0s; }
.scene-sparkles-burst span:nth-child(2) { animation-delay: 0.3s; }
.scene-sparkles-burst span:nth-child(3) { animation-delay: 0.6s; }
.scene-sparkles-burst span:nth-child(4) { animation-delay: 0.9s; }

@keyframes sparkleBurst {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Scene 3: SoulBrew */
.cafe-sign {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-romantic);
    font-size: 1.6rem;
    color: #6B4423;
    background: linear-gradient(135deg, #f5e6d0, #fef9f0);
    padding: 8px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.2);
    border: 2px solid rgba(107, 68, 35, 0.2);
}

.cafe-table {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.coffee {
    font-size: 2.2rem;
    animation: coffeeFloat 3s ease-in-out infinite;
}

.coffee.hot { animation-delay: 0s; }
.coffee.cold { animation-delay: 0.5s; }

@keyframes coffeeFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-5px) rotate(3deg); }
}

.swap-arrows {
    font-size: 1.5rem;
    animation: swapSpin 3s ease-in-out infinite;
}

@keyframes swapSpin {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.7; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
}

.scene-date-badge {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-clean);
    font-size: 0.75rem;
    color: white;
    background: linear-gradient(135deg, var(--rose-pink), var(--deep-rose));
    padding: 4px 14px;
    border-radius: 15px;
    letter-spacing: 0.05em;
}

.couple-silhouette {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.8;
}

/* Scene 4: Magnus */
.white-motorcycle {
    position: absolute;
    top: 15%;
    left: 15%;
    font-size: 2.5rem;
    animation: mcFloat 2.5s ease-in-out infinite;
}

@keyframes mcFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.scene-home {
    position: absolute;
    top: 15%;
    right: 15%;
    font-size: 2.5rem;
}

.magnus-dog {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: dogWag 1s ease-in-out infinite;
}

@keyframes dogWag {
    0%, 100% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(5deg); }
}

.dog-name {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-romantic);
    font-size: 1.2rem;
    color: var(--deep-rose);
}

.first-kiss-hearts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.first-kiss-hearts .big-heart {
    font-size: 2.5rem;
    animation: bigHeartPulse 1.5s ease-in-out infinite;
}

@keyframes bigHeartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Scene 5: Yellow Vespa */
.yellow-vespa {
    position: absolute;
    top: 25%;
    left: 25%;
    font-size: 3.5rem;
    filter: hue-rotate(30deg) saturate(2);
    animation: vespaRide 3s ease-in-out infinite;
}

@keyframes vespaRide {
    0%, 100% { transform: translateX(0) rotate(-2deg); }
    50% { transform: translateX(10px) rotate(2deg); }
}

.vespa-color-label {
    position: absolute;
    top: 18%;
    left: 25%;
    font-family: var(--font-clean);
    font-size: 0.7rem;
    color: #B8860B;
    background: rgba(255, 215, 0, 0.3);
    padding: 2px 10px;
    border-radius: 10px;
}

.church-icon {
    position: absolute;
    top: 20%;
    right: 20%;
    font-size: 3rem;
}

.blessing-rays {
    position: absolute;
    top: 10%;
    right: 18%;
    display: flex;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.blessing-rays .ray {
    animation: blessingGlow 2s ease-in-out infinite;
}

.blessing-rays .ray.r1 { animation-delay: 0s; }
.blessing-rays .ray.r2 { animation-delay: 0.5s; }
.blessing-rays .ray.r3 { animation-delay: 1s; }

@keyframes blessingGlow {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* Scene 6: Aviation School */
.airplane-icon {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: planeFly 4s ease-in-out infinite;
}

@keyframes planeFly {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-5deg); }
    25% { transform: translateX(-30%) translateY(-10px) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-5px) rotate(5deg); }
    75% { transform: translateX(-70%) translateY(-10px) rotate(0deg); }
}

.aviation-label {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-clean);
    font-size: 0.8rem;
    color: #4A6FA5;
    background: rgba(74, 111, 165, 0.1);
    padding: 4px 14px;
    border-radius: 10px;
    white-space: nowrap;
}

.growing-heart {
    position: absolute;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
}

.heart-grow {
    animation: heartGrowAnim 3s ease-in-out infinite;
}

.heart-grow.h1 { font-size: 1rem; animation-delay: 0s; }
.heart-grow.h2 { font-size: 1.5rem; animation-delay: 0.5s; }
.heart-grow.h3 { font-size: 2rem; animation-delay: 1s; }

@keyframes heartGrowAnim {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.together-icon {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
}

.together-label {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-elegant);
    font-size: 0.8rem;
    color: var(--rose-pink);
    font-style: italic;
    white-space: nowrap;
}

/* Scene 7: Engagement */
.ring-scene {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    display: inline-block;
}

.engagement-ring {
    font-size: 4rem;
    animation: ringShine 2s ease-in-out infinite;
}

@keyframes ringShine {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    50% { transform: scale(1.15) rotate(10deg); filter: brightness(1.3); }
}

.ring-sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: ringSpark 2s ease-in-out infinite;
}

.ring-sparkle.s1 { top: -15px; left: -20px; animation-delay: 0s; }
.ring-sparkle.s2 { top: -10px; right: -25px; animation-delay: 0.5s; }
.ring-sparkle.s3 { bottom: -10px; left: 50%; animation-delay: 1s; }

@keyframes ringSpark {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

.she-said-yes {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-romantic);
    font-size: 1.8rem;
    color: var(--deep-rose);
    text-shadow: 0 2px 10px rgba(200, 146, 154, 0.4);
    white-space: nowrap;
    animation: yesGlow 2s ease-in-out infinite;
}

@keyframes yesGlow {
    0%, 100% { text-shadow: 0 2px 10px rgba(200, 146, 154, 0.4); }
    50% { text-shadow: 0 2px 25px rgba(200, 146, 154, 0.7), 0 0 40px rgba(255, 182, 193, 0.3); }
}

.engagement-confetti {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.engagement-confetti span {
    animation: engConfetti 2s ease-in-out infinite;
}

.engagement-confetti span:nth-child(1) { animation-delay: 0s; }
.engagement-confetti span:nth-child(2) { animation-delay: 0.4s; }
.engagement-confetti span:nth-child(3) { animation-delay: 0.8s; }

@keyframes engConfetti {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-10px) rotate(15deg); opacity: 1; }
}

/* Scene 8: World Adventures */
.world-map {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5rem;
    opacity: 0.7;
}

.travel-flags {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    font-size: 1.5rem;
}

.travel-flags .flag {
    animation: flagWave 2s ease-in-out infinite;
    display: inline-block;
}

.travel-flags .flag:nth-child(1) { animation-delay: 0s; }
.travel-flags .flag:nth-child(2) { animation-delay: 0.2s; }
.travel-flags .flag:nth-child(3) { animation-delay: 0.4s; }
.travel-flags .flag:nth-child(4) { animation-delay: 0.6s; }
.travel-flags .flag:nth-child(5) { animation-delay: 0.8s; }
.travel-flags .flag:nth-child(6) { animation-delay: 1s; }

@keyframes flagWave {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.travel-plane {
    position: absolute;
    top: 20%;
    font-size: 1.5rem;
    animation: travelFly 5s linear infinite;
}

@keyframes travelFly {
    0% { left: -10%; top: 25%; transform: rotate(15deg); }
    50% { left: 50%; top: 10%; transform: rotate(-5deg); }
    100% { left: 110%; top: 20%; transform: rotate(15deg); }
}

.travel-trail {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(200,146,154,0.4) 0, rgba(200,146,154,0.4) 5px, transparent 5px, transparent 10px);
    animation: trailDash 2s linear infinite;
}

@keyframes trailDash {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Scene 9: Wedding */
.wedding-church {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.wedding-couple {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    animation: coupleGlow 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes coupleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 15px rgba(255,215,0,0.5)); }
}

.wedding-rings {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    letter-spacing: 0.3rem;
    animation: ringsFloat 2s ease-in-out infinite;
}

@keyframes ringsFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.wedding-bells {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem;
    font-size: 1.5rem;
}

.wedding-bells span {
    animation: bellSwing 1.5s ease-in-out infinite;
}

.wedding-bells span:nth-child(1) { animation-delay: 0s; transform-origin: top center; }
.wedding-bells span:nth-child(2) { animation-delay: 0.3s; transform-origin: top center; }

@keyframes bellSwing {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

.wedding-confetti {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    font-size: 1.2rem;
}

.wedding-confetti span {
    animation: weddingConfettiFall 3s ease-in-out infinite;
}

.wedding-confetti span:nth-child(1) { animation-delay: 0s; }
.wedding-confetti span:nth-child(2) { animation-delay: 0.4s; }
.wedding-confetti span:nth-child(3) { animation-delay: 0.8s; }
.wedding-confetti span:nth-child(4) { animation-delay: 1.2s; }
.wedding-confetti span:nth-child(5) { animation-delay: 1.6s; }

@keyframes weddingConfettiFall {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-15px) rotate(20deg); opacity: 1; }
}

.scene-date-badge.wedding-date {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 18px;
    box-shadow: 0 3px 15px rgba(212, 175, 55, 0.4);
}

/* Scene 10: Future Dream */
.future-home {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.future-family {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
}

.future-family .parent {
    font-size: 2.5rem;
    animation: familyBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes familyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.kids-names {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    white-space: nowrap;
}

.kid-name {
    font-family: var(--font-romantic);
    font-size: 1.1rem;
    padding: 4px 12px;
    border-radius: 15px;
    animation: kidNameBounce 2s ease-in-out infinite;
}

.kid-name.girl {
    color: #E91E8C;
    background: rgba(233, 30, 140, 0.1);
    animation-delay: 0s;
}

.kid-name.boy {
    color: #4A90D9;
    background: rgba(74, 144, 217, 0.1);
    animation-delay: 0.5s;
}

@keyframes kidNameBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.curly-hair-note {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-elegant);
    font-size: 0.8rem;
    color: var(--rose-pink);
    font-style: italic;
    white-space: nowrap;
}

.future-stars {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.future-stars span {
    animation: starTwinkle 2s ease-in-out infinite;
}

.future-stars span:nth-child(1) { animation-delay: 0s; }
.future-stars span:nth-child(2) { animation-delay: 0.7s; }
.future-stars span:nth-child(3) { animation-delay: 1.4s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.forever-text {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-romantic);
    font-size: 1.3rem;
    color: var(--deep-rose);
    text-shadow: 0 2px 10px rgba(200, 146, 154, 0.3);
    white-space: nowrap;
}

/* === Story Text Area === */
.story-text-area {
    text-align: center;
    padding: 0.5rem 0.5rem 0;
}

.story-chapter {
    font-family: var(--font-clean);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-rose);
    margin-bottom: 0.3rem;
}

.story-title {
    font-family: var(--font-romantic);
    font-size: 1.8rem;
    color: var(--deep-rose);
    margin: 0 0 0.8rem;
}

.story-narrative {
    font-family: var(--font-elegant);
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.7;
}

.story-narrative p {
    margin: 0.15rem 0;
}

.story-date-stamp {
    font-family: var(--font-clean);
    font-size: 0.75rem;
    color: white;
    background: linear-gradient(135deg, var(--rose-pink), var(--deep-rose));
    display: inline-block;
    padding: 4px 16px;
    border-radius: 15px;
    margin-top: 0.8rem;
}

/* === Story Navigation === */
.story-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.story-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-family: var(--font-clean);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-nav-btn.prev {
    background: rgba(200, 146, 154, 0.1);
    color: var(--rose-pink);
}

.story-nav-btn.prev:hover {
    background: rgba(200, 146, 154, 0.2);
    transform: translateX(-3px);
}

.story-nav-btn.next {
    background: linear-gradient(135deg, var(--rose-pink), var(--deep-rose));
    color: white;
    box-shadow: 0 4px 15px rgba(200, 146, 154, 0.3);
}

.story-nav-btn.next:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(200, 146, 154, 0.4);
}

.story-nav-btn.start-reading {
    padding: 12px 28px;
    font-size: 0.95rem;
    animation: startBtnPulse 2s ease-in-out infinite;
}

@keyframes startBtnPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(200, 146, 154, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(200, 146, 154, 0.5), 0 0 15px rgba(255, 182, 193, 0.2); }
}

.story-nav-btn.finish {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #5C3D1E;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.story-nav-btn.finish:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Page Dots */
.story-page-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(200, 146, 154, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-dot.active {
    background: var(--deep-rose);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(200, 146, 154, 0.4);
}

.page-dot:hover {
    background: var(--rose-pink);
    transform: scale(1.2);
}

/* === Calendar Styling for Day 20 === */
.date-cell.storybook-day {
    background: linear-gradient(135deg, #fef9f0 0%, #fdf3e7 100%);
    border: 2px solid rgba(212, 165, 116, 0.4);
    animation: storybookDayGlow 3s infinite ease-in-out;
}

.date-cell.storybook-day::before {
    content: '📖';
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 0.8rem;
    animation: bookBounce 2s ease-in-out infinite;
}

@keyframes storybookDayGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 165, 116, 0.2); }
    50% { box-shadow: 0 4px 25px rgba(212, 165, 116, 0.4), 0 0 15px rgba(139, 90, 60, 0.15); }
}

@keyframes bookBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

/* Mobile adjustments for storybook */
@media (max-width: 480px) {
    .storybook-modal {
        width: 96%;
        max-height: 94vh;
    }

    .book-container {
        padding: 1rem;
    }

    .cover-title {
        font-size: 2rem;
    }

    .cover-book-icon {
        font-size: 3rem;
    }

    .story-scene {
        min-height: 180px;
    }

    .story-scene.scene-0 {
        min-height: 240px;
    }

    .scene-illustration {
        height: 180px;
    }

    .story-title {
        font-size: 1.5rem;
    }

    .story-narrative {
        font-size: 0.85rem;
    }

    .story-nav-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .story-nav-btn.start-reading {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .page-dot {
        width: 6px;
        height: 6px;
    }

    .kids-names {
        gap: 1rem;
    }

    .kid-name {
        font-size: 0.9rem;
    }

    .travel-flags .flag {
        font-size: 1.2rem;
    }

    .travel-flags {
        gap: 0.4rem;
    }

    .she-said-yes {
        font-size: 1.4rem;
    }
}

/* === Landing Page Animations === */
@keyframes bgHeartFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(10deg);
    }
    50% {
        transform: translateY(-15px) translateX(-15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(5deg);
    }
}

@keyframes sparkleGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
        filter: blur(10px);
    }
    50% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes subtitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 0.3em;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.05em;
    }
}

@keyframes yearEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(232, 180, 184, 0.3), 0 25px 80px rgba(200, 146, 154, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.4), 0 25px 80px rgba(200, 146, 154, 0.4);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-10vh) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* === Stagger Animations for Date Cells === */
.date-cell:nth-child(1) { animation-delay: 0.1s; }
.date-cell:nth-child(2) { animation-delay: 0.12s; }
.date-cell:nth-child(3) { animation-delay: 0.14s; }
.date-cell:nth-child(4) { animation-delay: 0.16s; }
.date-cell:nth-child(5) { animation-delay: 0.18s; }
.date-cell:nth-child(6) { animation-delay: 0.2s; }
.date-cell:nth-child(7) { animation-delay: 0.22s; }
.date-cell:nth-child(8) { animation-delay: 0.24s; }
.date-cell:nth-child(9) { animation-delay: 0.26s; }
.date-cell:nth-child(10) { animation-delay: 0.28s; }
.date-cell:nth-child(11) { animation-delay: 0.3s; }
.date-cell:nth-child(12) { animation-delay: 0.32s; }
.date-cell:nth-child(13) { animation-delay: 0.34s; }
.date-cell:nth-child(14) { animation-delay: 0.36s; }
.date-cell:nth-child(15) { animation-delay: 0.38s; }
.date-cell:nth-child(16) { animation-delay: 0.4s; }
.date-cell:nth-child(17) { animation-delay: 0.42s; }
.date-cell:nth-child(18) { animation-delay: 0.44s; }
.date-cell:nth-child(19) { animation-delay: 0.46s; }
.date-cell:nth-child(20) { animation-delay: 0.48s; }
.date-cell:nth-child(21) { animation-delay: 0.5s; }
.date-cell:nth-child(22) { animation-delay: 0.52s; }
.date-cell:nth-child(23) { animation-delay: 0.54s; }

/* === Responsive Styles === */
@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 1.5rem 1rem 2rem;
    }

    .calendar-container {
        padding: 1rem;
    }

    .dates-grid {
        gap: 6px;
    }

    .date-cell {
        font-size: 1rem;
    }

    .date-cell.anniversary {
        font-size: 1.2rem;
    }

    .weekday-headers span {
        font-size: 0.7rem;
    }

    .note-modal {
        padding: 2rem 1.5rem;
    }

    .close-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .title {
        margin-bottom: 0.3rem;
    }

    .dates-grid {
        gap: 4px;
    }

    .date-cell {
        font-size: 0.9rem;
    }

    .date-cell.anniversary::before {
        font-size: 0.8rem;
        top: -6px;
        right: -2px;
    }

    .note-modal {
        width: 95%;
        padding: 1.5rem 1rem;
        max-height: 90vh;
    }

    .note-title {
        font-size: 1.6rem;
    }

    .note-text {
        font-size: 1rem;
    }

    .anniversary-badge {
        padding: 1rem;
    }

    .badge-text {
        font-size: 1rem;
    }
}

/* === Very Small Screens (iPhone SE, etc.) === */
@media (max-width: 360px) {
    .calendar-wrapper {
        padding: 1rem 0.5rem;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .date-cell {
        font-size: 0.8rem;
    }
}

/* === Touch-specific styles === */
@media (hover: none) and (pointer: coarse) {
    .date-cell:hover {
        transform: none;
        background: var(--cream);
        box-shadow: 0 4px 15px rgba(200, 146, 154, 0.15);
        border-color: transparent;
    }

    .date-cell:active {
        transform: scale(0.95);
        background: var(--soft-blush);
    }

    .date-cell.anniversary:hover {
        transform: none;
    }

    .date-cell.anniversary:active {
        transform: scale(0.95);
    }
}

/* === Safe area insets for notched phones === */
@supports (padding: max(0px)) {
    .calendar-wrapper {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
        padding-bottom: max(3rem, env(safe-area-inset-bottom));
    }

    .note-modal {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Focus States === */
.date-cell:focus {
    outline: 3px solid var(--rose-pink);
    outline-offset: 3px;
}

.close-btn:focus {
    outline: 3px solid var(--rose-pink);
    outline-offset: 3px;
}

/* === Error UI === */
#blazor-error-ui {
    background: var(--rose-pink);
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem;
    text-align: center;
    color: white;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}
