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

:root {
    --theme-color: #FF6B9D;
    --theme-light: #FFB6C1;
    --theme-dark: #7A2E35;
    --bg-start: #FFF9FB;
    --bg-mid: #FCE4EC;
    --bg-end: #F8BBD0;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    font-family: 'Cormorant Garamond', serif;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23FF6B9D' d='M16 2C8.3 2 2 8.3 2 16s6.3 14 14 14 14-6.3 14-14S23.7 2 16 2zm0 4c2.8 0 5 2.2 5 5s-2.2 5-5 5-5-2.2-5-5 2.2-5 5-5z'/%3E%3C/svg%3E") 16 16, auto;
    transition: background 1s ease;
}

/* Background glow */
.bg-glow {
    position: absolute;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
    z-index: 0;
}

/* Falling Petals */
.petal {
    position: absolute;
    top: -20px;
    opacity: 0;
    animation: fall 18s linear infinite;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.petal:hover {
    transform: scale(1.5) rotate(180deg);
}

/* Card Container */
.card-container {
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    perspective: 1000px;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(248, 187, 208, 0.6);
    border-radius: 28px;
    box-shadow:
        0 15px 35px rgba(233, 30, 99, 0.2),
        0 5px 15px rgba(244, 143, 177, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-align: center;
    color: #4A1F24;
    padding: 50px 70px;
    position: relative;
    overflow: hidden;
    max-width: 850px;
    width: 90%;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow:
        0 20px 40px rgba(233, 30, 99, 0.25),
        0 10px 20px rgba(244, 143, 177, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            var(--theme-light),
            var(--theme-color),
            #FF9AA2,
            #FFB7C3,
            var(--theme-light));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 30px;
    animation: gradient-border 12s ease infinite;
    filter: blur(2px);
    opacity: 0.8;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%);
    opacity: 0.5;
    z-index: -1;
    border-radius: 28px;
}

/* Day Indicator */
.day-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 9999;
}

.day-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.day-dot:hover {
    transform: scale(1.3);
    background: var(--theme-color);
}

.day-dot.active {
    background: var(--theme-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--theme-color);
}

/* Day Title */
.day-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--theme-color), #FF9AA2);
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* Day Number - Small indicator */
.day-number {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8B3A62;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Subtitle - Story Arc */
.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #7A2E45;
    margin-bottom: 25px;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

/* Message - Extra story detail */
.message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #5A2035;
    margin-top: 25px;
    padding: 15px 30px;
    background: rgba(233, 30, 99, 0.08);
    border-radius: 15px;
    border-left: 3px solid var(--theme-color);
    text-align: left;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 1.5s ease 3.5s forwards;
}

/* Icon Display */
.icon-display {
    display: flex;
    justify-content: center;
    margin: 25px 0 35px;
    gap: 35px;
}

.main-icon {
    font-size: 4.5rem;
    opacity: 0;
    animation: roseBloom 2s ease forwards;
    text-shadow:
        0 0 20px rgba(248, 187, 208, 0.8),
        0 0 40px rgba(255, 107, 157, 0.4);
    transform: scale(0.8);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main-icon:hover {
    transform: scale(1.3) rotate(15deg);
    text-shadow:
        0 0 30px rgba(248, 187, 208, 1),
        0 0 60px rgba(255, 107, 157, 0.6);
}

.main-icon.left {
    animation-delay: 0.5s;
}

.main-icon.center {
    font-size: 5.5rem;
    animation-delay: 0.7s;
}

.main-icon.right {
    animation-delay: 0.9s;
}

/* SVG Icons */
.svg-icon {
    width: 60px;
    height: 60px;
    opacity: 0;
    animation: roseBloom 2s ease forwards;
    filter: drop-shadow(0 0 15px rgba(255, 107, 157, 0.5));
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.svg-icon:hover {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 25px rgba(255, 107, 157, 0.8));
}

.svg-icon.left {
    animation-delay: 0.5s;
}

.svg-icon.center {
    width: 80px;
    height: 80px;
    animation-delay: 0.7s;
}

.svg-icon.right {
    animation-delay: 0.9s;
}


/* Quote */
.quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    letter-spacing: 1px;
    line-height: 1.6;
    opacity: 0;
    color: #2D1018;
    animation: fadeUp 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    text-shadow: none;
    margin: 0 0 25px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    font-weight: 500;
}

.quote::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--theme-color) 30%, #FF9AA2 70%, transparent);
    margin: 25px auto 0;
    border-radius: 4px;
    opacity: 0;
    animation: lineGlow 2.5s ease 2.5s forwards;
}

/* Name */
.name {
    margin-top: 15px;
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #C71585;
    opacity: 0;
    animation: nameGlow 3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 2.5s;
    text-shadow:
        0 2px 10px rgba(199, 21, 133, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.name:hover {
    transform: scale(1.05);
    text-shadow:
        0 3px 20px rgba(0, 0, 0, 0.4),
        0 5px 35px rgba(255, 107, 157, 0.5);
}

/* Footer */
.footer {
    margin-top: 35px;
    font-size: 1.2rem;
    color: #7A2E45;
    opacity: 0;
    animation: fadeIn 2s ease 3s forwards;
    font-style: italic;
    letter-spacing: 2px;
    position: relative;
    padding-top: 15px;
}

.footer::before {
    content: "💝";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    opacity: 0.6;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

.nav-arrow:hover {
    background: var(--theme-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

/* Animations */
@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(120vh) rotate(720deg) scale(1.2);
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0.5deg);
    }

    25% {
        transform: translateY(-10px) rotate(-0.5deg);
    }

    75% {
        transform: translateY(-5px) rotate(0.5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes roseBloom {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-45deg);
        filter: blur(5px);
    }

    70% {
        transform: scale(1.2) rotate(15deg);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes nameGlow {
    0% {
        opacity: 0;
        letter-spacing: 15px;
        transform: scale(0.8);
        filter: blur(5px);
    }

    50% {
        transform: scale(1.1);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        letter-spacing: 3px;
        transform: scale(1);
    }
}

@keyframes lineGlow {
    0% {
        opacity: 0;
        width: 0;
    }

    100% {
        opacity: 1;
        width: 100px;
        box-shadow: 0 0 15px var(--theme-color);
    }
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--music-color-start, rgba(255, 107, 157, 0.95)), var(--music-color-end, rgba(255, 154, 162, 0.95)));
    border-radius: 50px;
    width: 180px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    z-index: 6000;
    box-shadow: 0 8px 25px var(--music-shadow, rgba(255, 107, 157, 0.3));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: var(--music-text, #2D1018);
}

.music-player::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: inherit;
    z-index: 0;
}

.music-player > * {
    position: relative;
    z-index: 1;
}

.music-player:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px var(--music-shadow-strong, rgba(255, 107, 157, 0.4));
    width: 200px;
}

.music-player.active {
    animation: musicPulse 2s infinite;
}

.player-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.player-icon i {
    font-size: 24px;
    color: var(--music-text, #2D1018);
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.music-player:hover .player-icon i {
    transform: scale(1.2);
}

.song-info {
    flex: 1;
    padding: 0 15px;
    color: var(--music-text, #2D1018);
    opacity: 0.9;
    overflow: hidden;
}

.song-title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    opacity: 0.85;
}

.song-artist {
    font-size: 10px;
    opacity: 0.7;
    font-style: italic;
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, white, #FFE4EC);
    transition: width 0.1s linear;
}

@keyframes musicPulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    }

    50% {
        box-shadow: 0 8px 35px rgba(255, 107, 157, 0.5), 0 0 20px rgba(255, 107, 157, 0.3);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 40px 30px;
        border-radius: 24px;
    }

    .quote {
        font-size: 2rem;
    }

    .name {
        font-size: 3rem;
    }

    .main-icon {
        font-size: 3.5rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .nav-arrow.prev {
        left: 10px;
    }

    .nav-arrow.next {
        right: 10px;
    }

    .music-player {
        bottom: 20px;
        right: 20px;
        width: 160px;
        height: 50px;
    }

    .player-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }

    .quote {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .name {
        font-size: 2.5rem;
    }

    .main-icon {
        font-size: 2.8rem;
    }

    .day-badge {
        font-size: 0.75rem;
        padding: 6px 18px;
    }

    .footer {
        font-size: 1.1rem;
    }

    .music-player {
        width: 140px;
        height: 45px;
    }
}

/* ========== STAGES CONTAINER ========== */
.stages-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    padding: 20px;
}

.stage p,
.stage h1,
.stage h2,
.stage div {
    text-align: center;
}

/* Floating Background Animation */
#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.25));
    pointer-events: none;
}

.floating-icon.float-up {
    animation: floatUp linear forwards, gentleSway ease-in-out infinite alternate;
}

.floating-icon.float-down {
    animation: floatDown linear forwards, gentleSway ease-in-out infinite alternate;
}

.floating-icon.drift-left {
    animation: driftLeft linear forwards, gentleFloat ease-in-out infinite alternate;
}

.floating-icon.drift-right {
    animation: driftRight linear forwards, gentleFloat ease-in-out infinite alternate;
}

@keyframes gentleSway {
    0% {
        transform: translateX(-8px) rotate(-3deg);
    }

    50% {
        transform: translateX(8px) rotate(3deg);
    }

    100% {
        transform: translateX(-8px) rotate(-3deg);
    }
}

@keyframes gentleFloat {
    0% {
        transform: translateY(-5px) rotate(-2deg);
    }

    50% {
        transform: translateY(5px) rotate(2deg);
    }

    100% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* Keyframes for internal sway/rotation only - Position controlled by JS now */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
    }

    10% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }

    90% {
        opacity: 0.8;
        transform: scale(0.95) rotate(10deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) rotate(25deg);
    }
}

@keyframes floatDown {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(15deg);
    }

    10% {
        opacity: 0.8;
        transform: scale(0.9) rotate(5deg);
    }

    90% {
        opacity: 0.8;
        transform: scale(1) rotate(-5deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.7) rotate(-20deg);
    }
}

@keyframes driftLeft {
    0% {
        opacity: 0;
        transform: scale(0.6) rotateY(30deg);
    }

    10% {
        opacity: 0.8;
        transform: scale(1) rotateY(0deg);
    }

    90% {
        opacity: 0.8;
        transform: scale(0.9) rotateY(-15deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.7) rotateY(-30deg);
    }
}

@keyframes driftRight {
    0% {
        opacity: 0;
        transform: scale(0.6) rotateY(-30deg);
    }

    10% {
        opacity: 0.8;
        transform: scale(1) rotateY(0deg);
    }

    90% {
        opacity: 0.8;
        transform: scale(0.9) rotateY(15deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.7) rotateY(30deg);
    }
}

/* Sakura Petal Falling Animation */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.sakura-petal {
    position: absolute;
    top: -50px;
    opacity: 0;
    pointer-events: none;
    animation: sakuraFall linear infinite, sakuraSway ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes sakuraFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes sakuraSway {
    0% {
        margin-left: -40px;
    }

    100% {
        margin-left: 40px;
    }
}

/* Stage 1: Greeting */
.greeting-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: #2D1018;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.highlight-name {
    color: #C71585;
    text-shadow: 0 2px 15px rgba(199, 21, 133, 0.4);
}

.greeting-sub {
    font-size: 1.8rem;
    color: #4A1F24;
    font-style: italic;
}

/* Stage 2: Day Announcement */
.day-announce {
    text-align: center;
}

.day-icon {
    font-size: 8rem;
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.6));
}

.day-announce h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #2D1018;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* Stage 3: Text Box */
.text-box-container {
    perspective: 1000px;
}

/* WhatsApp Chat Container */
.text-box {
    background: #ECE5DD;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 400px;
    min-width: 280px;
}

/* WhatsApp Green Message Bubble */
.typing-text {
    background: #DCF8C6;
    padding: 10px 12px 22px 12px;
    border-radius: 8px;
    border-top-right-radius: 0;
    font-size: 1rem;
    color: #303030;
    text-align: left;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Message tail */
.typing-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid #DCF8C6;
    border-top: 8px solid transparent;
}

/* Timestamp and ticks - Hidden initially */
.typing-text::after {
    content: '12:00 AM';
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 0.65rem;
    color: #667781;
    display: flex;
    align-items: center;
    gap: 3px;
}

.typing-text.sent::after {
    content: '12:00 AM ✓✓';
    color: #53bdeb;
    /* Blue ticks */
}

.typing-text span {
    opacity: 0;
}

/* WhatsApp Input Bar */
.wa-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0F0F0;
    border-radius: 25px;
    padding: 6px 6px 6px 16px;
}

.wa-input-text {
    flex: 1;
    color: #303030;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Roboto, sans-serif;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.wa-input-text.placeholder {
    color: #667781;
}

.wa-input-text span {
    opacity: 0;
}

/* WhatsApp Green Send Button */
.fake-send-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.4);
    position: relative;
}

/* SVG Paper Plane Icon */
.fake-send-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
    margin-left: 2px;
    transform: translateX(-1px);
}

.fake-send-btn:hover {
    transform: scale(1.1);
}

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

@keyframes sendPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Stage 4: Ideas */
.stage-4 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.idea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 40px;
    box-sizing: border-box;

    font-size: 2.5rem;
    /* Larger text */
    color: #2D1018;
    opacity: 0;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    pointer-events: none;
}

.idea strong {
    color: #C71585;
}

.emphasis {
    font-size: 3.2rem;
    color: #C71585;
    font-weight: bold;
    display: inline-block;
}

/* Stage 5: Reveal Card */
.reveal-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(248, 187, 208, 0.6);
    border-radius: 28px;
    box-shadow:
        0 15px 35px rgba(233, 30, 99, 0.2),
        0 5px 15px rgba(244, 143, 177, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-align: center;
    color: #4A1F24;
    padding: 50px 70px;
    max-width: 850px;
    width: 90%;
    position: relative;
    z-index: 4;
}

.effect-toggle {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.effect-toggle-btn {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.9), rgba(255, 105, 180, 0.9));
    border: none;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.effect-toggle-btn.active {
    box-shadow: 0 12px 24px rgba(255, 105, 180, 0.45);
    transform: translateY(-1px) scale(1.02);
}

#dayEffectLayer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.effect-burst {
    position: absolute;
    opacity: 0;
    animation: effectBurst 1.8s ease-out forwards;
    filter: drop-shadow(0 6px 10px rgba(255, 105, 180, 0.35));
    will-change: transform, opacity;
}

.effect-float {
    position: absolute;
    opacity: 0;
    animation: effectFloat 3.2s ease-out forwards;
    filter: drop-shadow(0 6px 10px rgba(255, 182, 193, 0.4));
    will-change: transform, opacity;
}

.effect-sparkle {
    position: absolute;
    opacity: 0;
    animation: effectSparkle 1.6s ease-in-out forwards;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.4));
    will-change: transform, opacity;
}

.reveal-card.effects-on {
    animation: cardGlow 3.5s ease-in-out infinite;
}

@keyframes effectBurst {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.25) rotate(12deg);
        opacity: 0;
    }
}

@keyframes effectFloat {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.15);
        opacity: 0;
    }
}

@keyframes effectSparkle {
    0% {
        transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotate(12deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6) rotate(-12deg);
    }
}

@keyframes cardGlow {
    0% {
        box-shadow:
            0 15px 35px rgba(233, 30, 99, 0.2),
            0 5px 15px rgba(244, 143, 177, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 20px 45px rgba(233, 30, 99, 0.35),
            0 12px 25px rgba(244, 143, 177, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }
    100% {
        box-shadow:
            0 15px 35px rgba(233, 30, 99, 0.2),
            0 5px 15px rgba(244, 143, 177, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Stage 6: Celebration */
.celebration-container {
    position: absolute;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
}

.balloon {
    position: absolute;
    font-size: 4rem;
    animation: floatUp 4s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0.8;
    }
}

/* Replay Section */
.replay-section {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.replay-section p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
    opacity: 0.8;
}

.replay-btn {
    background: linear-gradient(135deg, var(--theme-color), #FF9AA2);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.replay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

/* Proposal Stage Styles */
.proposal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.3);
    max-width: 500px;
    width: 90%;
}

.proposal-question {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2D1018;
    margin-bottom: 15px;
    font-style: italic;
}

.proposal-sub {
    font-size: 1.3rem;
    color: #7A2E45;
    margin-bottom: 40px;
}

.proposal-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    display: block;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.15);
    }
}

.proposal-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.proposal-btn {
    padding: 18px 50px;
    font-size: 1.3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.proposal-btn.yes {
    background: linear-gradient(135deg, #ff4d6d, #ff758f);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
}

.proposal-btn.yes:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 77, 109, 0.5);
}

.proposal-btn.no {
    background: #f0f0f0;
    color: #666;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

.proposal-response {
    text-align: center;
    opacity: 0;
    visibility: hidden;
}

.response-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    display: block;
}

.response-text {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #C71585;
    margin-bottom: 20px;
}

.response-sub {
    font-size: 1.3rem;
    color: #7A2E45;
}

/* Teddy Gift Stage Styles */
.teddy-gift-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(224, 172, 105, 0.4);
    max-width: 500px;
    width: 90%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.gift-box {
    font-size: 9rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    animation: giftShake 2.5s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.gift-box:hover {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

@keyframes giftShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30%,
    50%,
    70% {
        transform: rotate(-5deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(5deg);
    }

    90% {
        transform: rotate(0deg);
    }
}

/* Magical Aura around Gift Box */
.gift-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: auraPulse 2s infinite alternate;
    pointer-events: none;
}

.gift-box::after {
    content: '✨';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 2rem;
    animation: sparkleFloat 1.5s infinite alternate;
}

@keyframes auraPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-15px) scale(0.8) rotate(20deg);
        opacity: 0.5;
    }
}

.gift-box.opened {
    animation: none;
}

.teddy-reveal {
    display: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-direction: column;
    align-items: center;
}

.teddy-reveal.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.teddy-reveal .teddy-icon {
    font-size: 10rem;
    display: block;
    margin-bottom: 20px;
    animation: teddyBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(224, 172, 105, 0.4));
}

@keyframes teddyBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.teddy-message {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #C71585;
    margin-bottom: 15px;
}

.teddy-sub {
    font-size: 1.2rem;
    color: #7A2E45;
}

.tap-hint {
    font-size: 1rem;
    color: #888;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

/* Responsive for stages */
@media (max-width: 768px) {
    .greeting-title {
        font-size: 3rem;
    }

    .day-icon {
        font-size: 5rem;
    }

    .day-announce h2 {
        font-size: 2.5rem;
    }

    .idea {
        font-size: 1.5rem;
    }

    .reveal-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .greeting-title {
        font-size: 2.5rem;
    }

    .greeting-sub {
        font-size: 1.3rem;
    }

    .day-icon {
        font-size: 4rem;
    }

    .day-announce h2 {
        font-size: 2rem;
    }

    .text-box {
        padding: 20px 30px;
    }

    .typing-text {
        font-size: 1.3rem;
    }

    .idea {
        font-size: 1.2rem;
    }
}

/* Music Consent Modal */
.music-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
}

/* Coming Soon Overlay */
#comingSoonOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
}

#comingSoonOverlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Coming Soon Cupid Cursor */
#customCursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    background: url('../assets/svgs/sparkle-star.svg') no-repeat center / contain;
    pointer-events: none;
    z-index: 7000;
    display: none;
    transform: translate(-50%, -50%) rotate(-20deg);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

#customCursor.active {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    body.custom-cursor,
    body.custom-cursor * {
        cursor: none;
    }

    body.custom-cursor:hover #customCursor {
        animation: sparkleHover 1s ease-in-out infinite;
    }
}

body.modal-open,
body.modal-open * {
    cursor: auto !important;
}

body.modal-open #customCursor {
    display: none !important;
}

@keyframes sparkleHover {
    0% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(12deg) scale(1.14);
        filter: drop-shadow(0 10px 16px rgba(255, 200, 230, 0.55));
    }
    100% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(1);
    }
}

/* Countdown Timer Styles */
.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 25px;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: countdownFloat 4.5s ease-in-out infinite, countdownGlow 3.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
    opacity: 0;
    transform: translateX(-60%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.countdown-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.25);
}

.countdown-box:hover::before {
    opacity: 0.4;
    transform: translateX(60%);
}

.countdown-box.tick .countdown-num {
    animation: countdownTick 0.45s ease;
}

.countdown-num.flip {
    animation: countdownFlip 0.6s ease;
}

.countdown-box:nth-child(2) {
    animation-delay: 0.4s, 0.7s;
}

.countdown-box:nth-child(3) {
    animation-delay: 0.8s, 1.2s;
}

.countdown-box:nth-child(4) {
    animation-delay: 1.2s, 1.6s;
}

.countdown-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 15px rgba(255, 105, 180, 0.6);
    letter-spacing: 2px;
    transform-origin: 50% 100%;
    backface-visibility: hidden;
    perspective: 800px;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes countdownFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes countdownGlow {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.45);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

@keyframes countdownTick {
    0% {
        transform: translateY(0) scale(1);
    }
    45% {
        transform: translateY(-6px) scale(1.08);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes countdownFlip {
    0% {
        transform: rotateX(0deg);
    }
    45% {
        transform: rotateX(-75deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* Responsive Countdown */
@media (max-width: 768px) {
    #countdownContainer {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .countdown-box {
        padding: 15px;
        min-width: 65px;
        flex: 1 1 40%;
        /* 2 per row */
        max-width: 45%;
    }

    .countdown-num {
        font-size: 2.2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }
}

.music-modal.visible {
    opacity: 1;
    visibility: visible;
}

.music-modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
    font-family: 'Cormorant Garamond', serif;
}

.music-btn {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.music-btn:hover {
    transform: scale(1.05);
}

/* Valentine Stage Special */
.valentine-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

.v-yes {
    background: #ff0040;
    /* Red */
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 64, 0.4);
    animation: beat 0.8s infinite alternate;
}

.v-no {
    background: #f0f0f0;
    color: #333;
}

@keyframes beat {
    to {
        transform: scale(1.1);
        box-shadow: 0 4px 25px rgba(255, 0, 64, 0.6);
    }
}

/* Love Letter Modal */
#letterModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s;
    backdrop-filter: blur(5px);
}

#letterModal.visible {
    opacity: 1;
}

.letter-content {
    background: #fff9f0;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(#f5d5b0 1px, transparent 1px);
    background-size: 100% 30px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    line-height: 30px;
    color: #5c3d4a;
    transform: translateY(50px) rotate(-1deg);
    transition: transform 0.5s;
    max-height: 80vh;
    overflow-y: auto;
    border: 20px solid transparent;
    border-image: url('https://www.transparenttextures.com/patterns/paper.png') 30 round;
}

#letterModal.visible .letter-content {
    transform: translateY(0) rotate(0deg);
}

.letter-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #d32f2f;
    line-height: 1;
    font-family: sans-serif;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.letter-close:hover {
    opacity: 1;
}

.read-letter-btn {
    background: #ffffff;
    color: #d32f2f;
    border: 2px solid #d32f2f;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    margin-top: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
    animation: pulse 2s infinite;
}

.read-letter-btn:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

@media (max-width: 768px) {

    /* Countdown Timer Mobile Adjustments */
    .countdown-box {
        padding: 5px 10px;
        min-width: 50px;
    }

    .countdown-num {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }
}
