/* ===================================================
   Valentine's Day Website - Style Sheet
   Theme: Soft Pink Nature / Romantic
   =================================================== */

/* ----- CSS Variables ----- */
:root {
    --pink-lightest: #fff5f7;
    --pink-light: #ffe4ec;
    --pink-soft: #ffb6c1;
    --pink-medium: #ff85a1;
    --pink-deep: #ff4d7d;
    --pink-rose: #e84078;
    --rose-gold: #b76e79;
    --cream: #fef9f3;
    --blush: #fce4ec;
    --green-leaf: #6db36d;
    --green-dark: #3a7d44;
    --green-soft: #a8d5a2;
    --white: #ffffff;
    --text-dark: #4a3040;
    --text-medium: #7a5568;
    --text-light: #a87d93;

    --font-display: 'Dancing Script', cursive;
    --font-cute: 'Sriracha', 'Caveat', cursive;
    --font-body: 'Quicksand', 'Noto Sans Thai', sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-soft: 0 8px 32px rgba(255, 105, 135, 0.15);
    --shadow-card: 0 12px 40px rgba(255, 105, 135, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.5);
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--pink-lightest) 0%, var(--cream) 30%, var(--blush) 70%, var(--pink-light) 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ----- Floating Petals ----- */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -60px;
    opacity: 0;
    pointer-events: none;
    animation: petalFall linear forwards;
}

.petal::before {
    content: '';
    display: block;
    width: var(--size, 15px);
    height: var(--size, 15px);
    background: var(--petal-color, rgba(255, 182, 193, 0.7));
    border-radius: 50% 0 50% 50%;
    transform: rotate(var(--rotation, 45deg));
    box-shadow: 0 0 6px rgba(255, 105, 135, 0.15);
}

@keyframes petalFall {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(0deg) scale(0.8);
    }

    10% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateX(var(--drift, 80px)) translateY(110vh) rotate(var(--spin, 720deg)) scale(0.4);
    }
}

/* ----- Audio Toggle ----- */
.audio-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--pink-soft);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.audio-toggle:hover {
    transform: scale(1.1);
    background: var(--pink-light);
}

.audio-toggle.playing {
    border-color: var(--pink-deep);
    animation: audioGlow 2s ease-in-out infinite;
}

@keyframes audioGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(255, 77, 125, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 77, 125, 0.6);
    }
}

/* ----- Steps / Sections ----- */
.step {
    display: none;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.step.active {
    display: flex;
    animation: stepFadeIn 0.8s ease-out forwards;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-inner {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 20px 0 100px;
}

.step-header {
    text-align: center;
    margin-bottom: 8px;
}

.step-number {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
    animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {

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

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

.step-title {
    font-family: var(--font-cute);
    font-size: 2.4rem;
    color: var(--pink-deep);
    text-shadow: 0 2px 8px rgba(255, 77, 125, 0.15);
    letter-spacing: 1px;
}

/* ----- Fade-up animation ----- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Glass Card ----- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.message-text {
    font-family: var(--font-cute);
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-medium);
    font-weight: 400;
}

/* ----- Navigation Buttons ----- */
.step-nav {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.nav-btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-btn {
    background: linear-gradient(135deg, var(--pink-medium), var(--pink-deep));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 77, 125, 0.35);
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 77, 125, 0.45);
}

.prev-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    color: var(--pink-deep);
    border: 2px solid var(--pink-soft);
}

.prev-btn:hover {
    background: var(--pink-light);
    transform: translateY(-3px);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.next-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.prev-btn:hover .btn-arrow {
    transform: translateX(-4px);
}

/* ----- Progress Dots ----- */
.progress-dots {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 9998;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pink-soft);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.dot.active {
    background: var(--pink-deep);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 77, 125, 0.5);
}

/* =====================================================
   LANDING: Envelope Section
   ===================================================== */
.step-landing {
    background: radial-gradient(ellipse at center top, var(--pink-light) 0%, transparent 60%),
        radial-gradient(ellipse at center bottom, var(--blush) 0%, transparent 50%);
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

.sparkle-text {
    margin-bottom: 40px;
    position: relative;
}

.landing-subtitle {
    font-family: var(--font-cute);
    font-size: 2rem;
    color: var(--pink-deep);
    text-align: center;
    animation: sparkleIn 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes sparkleIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
        filter: blur(4px);
    }

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

/* ----- Envelope ----- */
.envelope-wrapper {
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.envelope {
    width: 280px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: translateY(-8px);
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f8d0d8, #f4b8c5);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(255, 105, 135, 0.25);
    overflow: hidden;
}

.envelope-pattern {
    position: absolute;
    inset: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.envelope-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(160deg, #fce4ec, #f8bbd0);
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.envelope-seal {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--pink-deep), var(--pink-rose));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(232, 64, 120, 0.35);
    animation: sealPulse 2s ease-in-out infinite;
}

@keyframes sealPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(232, 64, 120, 0.35);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 5px 20px rgba(232, 64, 120, 0.55);
    }
}

.seal-heart {
    font-size: 1.4rem;
}

.envelope-label {
    font-family: var(--font-cute);
    font-size: 1.2rem;
    color: var(--text-medium);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #f8bbd0, #f4a4b8);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    z-index: 4;
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.letter {
    position: absolute;
    top: 30%;
    left: 10%;
    width: 80%;
    height: 70%;
    background: var(--white);
    border-radius: 6px;
    z-index: 2;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
}

.envelope.opened .letter {
    transform: translateY(-90%);
}

.letter-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: center;
}

.letter-stamp {
    font-size: 1.5rem;
}

.letter-text {
    font-family: var(--font-cute);
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.letter-heart {
    font-size: 1.8rem;
    animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {

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

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

.tap-hint {
    font-family: var(--font-cute);
    font-size: 1.15rem;
    color: var(--pink-medium);
    margin-top: 28px;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.96);
    }
}

/* Landing flowers */
.landing-flower {
    position: absolute;
    bottom: 10%;
}

.landing-flower.left {
    left: 5%;
    transform: rotate(-15deg);
}

.landing-flower.right {
    right: 5%;
    transform: rotate(15deg) scaleX(-1);
}

.deco-flower {
    position: relative;
    width: 70px;
    height: 70px;
    animation: bloomIn 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes bloomIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.1) rotate(5deg);
    }

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

.deco-petal {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--pink-soft);
    border-radius: 50% 0 50% 50%;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    opacity: 0.85;
}

.deco-petal:nth-child(1) {
    transform: rotate(0deg) translate(-50%, -50%);
    background: #ffb6c1;
}

.deco-petal:nth-child(2) {
    transform: rotate(72deg) translate(-50%, -50%);
    background: #ffc0cb;
}

.deco-petal:nth-child(3) {
    transform: rotate(144deg) translate(-50%, -50%);
    background: #ffb6c1;
}

.deco-petal:nth-child(4) {
    transform: rotate(216deg) translate(-50%, -50%);
    background: #ffc0cb;
}

.deco-petal:nth-child(5) {
    transform: rotate(288deg) translate(-50%, -50%);
    background: #ffb6c1;
}

.deco-center {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #ffe0e6, #ffcdd6);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* =====================================================
   STEP 1: SVG Flower Bouquet
   ===================================================== */
.bouquet-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.bouquet-svg {
    width: 320px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 8px 20px rgba(196, 84, 110, 0.15));
    overflow: visible;
}

/* Wrapper cone entrance - slides up & fades in first */
.wrapper-group {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center bottom;
}

.bouquet-container.visible .wrapper-group {
    animation: wrapperSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

@keyframes wrapperSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.7);
    }

    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.03);
    }

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

/* Stems grow upward from base */
.stems-group {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center bottom;
}

.stems-group line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.bouquet-container.visible .stems-group {
    animation: stemsAppear 0.5s ease 0.3s forwards;
}

.bouquet-container.visible .stems-group line {
    animation: stemGrow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.4s;
}

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

    100% {
        opacity: 1;
    }
}

@keyframes stemGrow {
    0% {
        stroke-dashoffset: 400;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Rose bloom pop-in animation */
.rose-bloom-group {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center center;
}

.bouquet-container.visible .rose-bloom-group {
    animation: rosePop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--bloom-delay, 0.5s);
}

@keyframes rosePop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(8deg);
    }

    75% {
        transform: scale(0.92) rotate(-3deg);
    }

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

/* Ribbon bow animation */
.ribbon-group {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center top;
}

.bouquet-container.visible .ribbon-group {
    animation: ribbonPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 1.8s;
}

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

    60% {
        opacity: 1;
        transform: scale(1.15) rotate(3deg);
    }

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

/* Gentle idle swaying after bloom */
.bouquet-container.visible .bouquet-svg {
    animation: bouquetSway 4s ease-in-out 2.5s infinite;
}

@keyframes bouquetSway {

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

    50% {
        transform: rotate(1.5deg);
    }
}

/* =====================================================
   STEP 2: Photo Gallery
   ===================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 580px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 50px rgba(255, 105, 135, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
}

.gi-large {
    grid-column: span 2;
    min-height: 220px;
}

.gi-medium {
    min-height: 180px;
}

.gi-small {
    min-height: 160px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: linear-gradient(135deg, var(--pink-light), var(--blush));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 3px dashed var(--pink-soft);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.photo-placeholder:hover {
    background: linear-gradient(135deg, var(--blush), var(--pink-light));
    border-color: var(--pink-medium);
}

.placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

.placeholder-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0 0 20px 20px;
}

/* =====================================================
   STEP 3: Video
   ===================================================== */
.video-wrapper {
    width: 100%;
    max-width: 580px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--pink-light) 0%, #e8c4d0 50%, var(--blush) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 182, 193, 0.3));
}

.video-placeholder-inner {
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(255, 77, 125, 0.25);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--white);
    box-shadow: 0 12px 40px rgba(255, 77, 125, 0.35);
}

.play-icon {
    font-size: 1.8rem;
    color: var(--pink-deep);
    margin-left: 6px;
}

.placeholder-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.7;
}

.video-wrapper video {
    width: 100%;
    border-radius: 24px;
}

/* =====================================================
   STEP 4: Love Letter
   ===================================================== */
.love-letter-card {
    width: 100%;
    max-width: 540px;
}

.letter-paper {
    background: linear-gradient(180deg, #fffef9 0%, #fef6ee 100%);
    border-radius: 4px;
    padding: 48px 40px;
    position: relative;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 16px 40px rgba(0, 0, 0, 0.05),
        inset 0 0 60px rgba(255, 228, 225, 0.3);
    border: 1px solid rgba(255, 228, 225, 0.5);
    /* Lined paper effect */
    background-image: repeating-linear-gradient(transparent,
            transparent 31px,
            rgba(255, 182, 193, 0.18) 31px,
            rgba(255, 182, 193, 0.18) 32px);
    background-position: 0 20px;
}

.letter-decoration {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.4;
}

.letter-decoration.top-left {
    top: 16px;
    left: 16px;
    transform: rotate(-15deg);
}

.letter-decoration.top-right {
    top: 16px;
    right: 16px;
    transform: rotate(15deg) scaleX(-1);
}

.letter-decoration.bottom-left {
    bottom: 16px;
    left: 16px;
    transform: rotate(15deg);
}

.letter-decoration.bottom-right {
    bottom: 16px;
    right: 16px;
    transform: rotate(-15deg) scaleX(-1);
}

.love-letter-content {
    position: relative;
    z-index: 2;
}

.love-greeting {
    font-family: var(--font-cute);
    font-size: 1.6rem;
    color: var(--pink-deep);
    margin-bottom: 24px;
}

.love-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 2.2;
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 32px;
}

.love-signature {
    font-family: var(--font-cute);
    font-size: 1.2rem;
    color: var(--text-medium);
    text-align: right;
    line-height: 2;
}

.signature-name {
    font-family: var(--font-cute);
    font-size: 1.8rem;
    color: var(--pink-deep);
    display: block;
    margin-top: 4px;
}

/* Typewriter */
.love-letter-content.typewriter .love-body {
    overflow: hidden;
    border-right: 2px solid var(--pink-deep);
    animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--pink-deep);
    }
}

/* ----- Final Love Button ----- */
.final-action {
    margin-top: 8px;
}

.love-btn {
    font-family: var(--font-cute);
    font-size: 1.4rem;
    padding: 18px 48px;
    border-radius: 60px;
    border: none;
    background: linear-gradient(135deg, var(--pink-medium), var(--pink-deep), var(--pink-rose));
    background-size: 200% 200%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 30px rgba(255, 77, 125, 0.4);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

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

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

.love-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 40px rgba(255, 77, 125, 0.5);
}

.love-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.love-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 62px;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    background-size: 300% 300%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 100%;
    }

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

.love-btn-text {
    position: relative;
    z-index: 2;
}

/* Hearts burst */
.hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

.burst-heart {
    position: absolute;
    font-size: var(--heart-size, 1.5rem);
    animation: heartFloat var(--duration, 3s) ease-out forwards;
    opacity: 0;
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0) rotate(0deg);
    }

    20% {
        opacity: 1;
        transform: translate(var(--tx1, 20px), var(--ty1, -40px)) scale(1.2) rotate(var(--rot, 15deg));
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx2, 60px), var(--ty2, -200px)) scale(0.3) rotate(var(--rot2, 45deg));
    }
}

/* =====================================================
   STEP 5: Sweet Messages
   ===================================================== */
.sweet-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 500px;
    padding: 20px 0;
}

.sweet-line {
    font-family: var(--font-cute);
    font-size: 1.3rem;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    padding: 12px 24px;
    border-radius: 16px;
    position: relative;
}

.sweet-emoji {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.step-5.active .sweet-messages.visible .sweet-line {
    animation: sweetLineIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: var(--line-delay, 0s);
}

@keyframes sweetLineIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(4px);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.03);
        filter: blur(0);
    }

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

.sweet-highlight {
    font-size: 1.5rem;
    color: var(--pink-deep);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 228, 236, 0.6), rgba(255, 200, 215, 0.4));
    padding: 16px 28px;
    border: 1px solid rgba(255, 182, 193, 0.4);
}

/* Sweet nav appears after messages */
.step-5.active .sweet-nav.visible {
    animation: sweetLineIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: var(--line-delay, 8s);
}

/* Glowing next button */
.glow-btn {
    animation: glowPulse 2s ease-in-out infinite !important;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(255, 77, 125, 0.35);
    }

    50% {
        box-shadow: 0 8px 35px rgba(255, 77, 125, 0.6), 0 0 40px rgba(255, 77, 125, 0.2);
    }
}

/* =====================================================
   STEP 6: Gift Box Selection
   ===================================================== */
.gift-subtitle {
    font-family: var(--font-cute);
    font-size: 1.2rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 8px;
}

.gift-boxes {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 700px;
    padding: 16px 0;
}

/* Individual Gift Box */
.gift-box {
    width: 160px;
    height: 200px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
    perspective: 500px;
}

.gift-box:hover:not(.opened) {
    transform: translateY(-8px) scale(1.05);
}

.gift-box:hover:not(.opened) .gift-box-wrap {
    animation: giftWiggle 0.4s ease-in-out;
}

@keyframes giftWiggle {

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

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

/* Gift wrap (visible before opening) */
.gift-box-wrap {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
}

.gift-box.opened .gift-box-wrap {
    pointer-events: none;
}

/* Gift body (the box itself) */
.gift-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 77, 125, 0.2);
}

.gift-box:nth-child(1) .gift-body {
    background: linear-gradient(145deg, #ff85a1, #e8607d);
}

.gift-box:nth-child(2) .gift-body {
    background: linear-gradient(145deg, #ff92b8, #d45c8a);
}

.gift-box:nth-child(3) .gift-body {
    background: linear-gradient(145deg, #ffb6c1, #e8879c);
}

/* Vertical ribbon */
.gift-ribbon-v {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700, #daa520);
    opacity: 0.85;
}

/* Horizontal ribbon */
.gift-ribbon-h {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 22px;
    background: linear-gradient(90deg, #ffd700, #daa520);
    opacity: 0.85;
}

/* Gift lid */
.gift-lid {
    position: absolute;
    top: 40px;
    left: -6px;
    right: -6px;
    height: 38px;
    border-radius: 10px 10px 4px 4px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gift-box:nth-child(1) .gift-lid {
    background: linear-gradient(145deg, #ff6b8a, #d14a68);
}

.gift-box:nth-child(2) .gift-lid {
    background: linear-gradient(145deg, #ff7da8, #c04a78);
}

.gift-box:nth-child(3) .gift-lid {
    background: linear-gradient(145deg, #ffa0b6, #d47088);
}

.gift-box.opened .gift-lid {
    animation: lidFlyOff 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

    40% {
        transform: translateY(-60px) rotate(-8deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-120px) rotate(-25deg);
        opacity: 0;
    }
}

/* Ribbon bow on lid */
.gift-ribbon-bow {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 24px;
}

.gift-ribbon-bow::before,
.gift-ribbon-bow::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50% 0 50% 50%;
    top: 2px;
}

.gift-ribbon-bow::before {
    left: 0;
    transform: rotate(45deg);
}

.gift-ribbon-bow::after {
    right: 0;
    transform: rotate(-45deg) scaleX(-1);
}

/* Gift label number */
.gift-label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-cute);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gift reveal (hidden until opened) */
.gift-reveal {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
    gap: 6px;
    padding: 16px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--pink-soft);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(255, 77, 125, 0.2);
}

.gift-box.opened .gift-reveal {
    animation: giftRevealPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
    pointer-events: auto;
}

@keyframes giftRevealPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-10deg);
    }

    60% {
        opacity: 1;
        transform: scale(1.08) rotate(2deg);
    }

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

.gift-reveal-icon {
    font-size: 2.5rem;
    animation: iconBounce 1s ease-in-out 1s infinite;
}

@keyframes iconBounce {

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

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

.gift-reveal-title {
    font-family: var(--font-cute);
    font-size: 1.1rem;
    color: var(--pink-deep);
    line-height: 1.5;
    font-weight: 600;
}

.gift-reveal-bonus {
    font-family: var(--font-cute);
    font-size: 1rem;
    color: var(--pink-rose);
    background: linear-gradient(135deg, rgba(255, 228, 236, 0.8), rgba(255, 200, 215, 0.6));
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 4px;
}

/* Gift result message */
.gift-result-msg {
    font-family: var(--font-cute);
    font-size: 1.6rem;
    color: var(--pink-deep);
    text-align: center;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(10px);
}

.gift-result-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gift confetti */
.gift-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 14px;
    opacity: 0;
    animation: confettiFall linear forwards;
}

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

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(var(--confetti-rot, 720deg)) scale(0.3);
    }
}

/* =====================================================
   STEP 6: Love Question
   ===================================================== */
.love-question-card {
    text-align: center;
    padding: 40px 32px;
    max-width: 480px;
    width: 100%;
}

.love-question-emoji {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: emojiFloat 2s ease-in-out infinite;
}

@keyframes emojiFloat {

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

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.love-question-text {
    font-family: var(--font-cute);
    font-size: 2rem;
    color: var(--pink-deep);
    margin-bottom: 8px;
}

.love-question-sub {
    font-family: var(--font-cute);
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.love-question-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* YES Button - Love */
.love-yes-btn {
    font-family: var(--font-cute);
    font-size: 1.3rem;
    padding: 16px 40px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #ff6b8a, #e84078, #ff4d7d);
    background-size: 200% 200%;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 77, 125, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: yesBtnPulse 1.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.love-yes-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 53px;
    background: linear-gradient(45deg, #ff6b8a, #ff4d7d, #e84078, #ff85a1);
    background-size: 300% 300%;
    animation: shimmer 2s linear infinite;
    z-index: -1;
    opacity: 0.7;
}

@keyframes yesBtnPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(255, 77, 125, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 12px 45px rgba(255, 77, 125, 0.6), 0 0 60px rgba(255, 77, 125, 0.2);
        transform: scale(1.03);
    }
}

.love-yes-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 14px 50px rgba(255, 77, 125, 0.5);
}

.love-yes-btn:active {
    transform: scale(0.95) !important;
}

/* Mega pulse after popup close */
.love-yes-btn.mega-pulse {
    animation: megaPulse 0.6s ease-in-out infinite !important;
}

@keyframes megaPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(255, 77, 125, 0.5);
    }

    50% {
        box-shadow: 0 16px 60px rgba(255, 77, 125, 0.8), 0 0 100px rgba(255, 77, 125, 0.4);
    }
}

/* NO Button - Not love */
.love-no-btn {
    font-family: var(--font-cute);
    font-size: 1.1rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid #ccc;
    background: rgba(240, 240, 240, 0.8);
    color: #888;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.love-no-btn:hover {
    background: rgba(220, 220, 220, 0.8);
    border-color: #aaa;
}

/* Warning messages */
.love-warning {
    margin-top: 24px;
    font-family: var(--font-cute);
    font-size: 1.15rem;
    padding: 14px 24px;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.love-warning.visible {
    opacity: 1;
    transform: translateY(0);
}

.love-warning.love-danger {
    background: linear-gradient(135deg, #fff0f0, #ffe0e0);
    color: #c44;
    border: 1px solid rgba(255, 100, 100, 0.3);
    animation: warningShake 0.5s ease-in-out;
}

.love-warning.love-success {
    background: linear-gradient(135deg, #f0fff0, #e0ffe0);
    color: #4a4;
    border: 1px solid rgba(100, 255, 100, 0.3);
}

@keyframes warningShake {

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

    10% {
        transform: translateX(-8px);
    }

    30% {
        transform: translateX(8px);
    }

    50% {
        transform: translateX(-6px);
    }

    70% {
        transform: translateX(6px);
    }

    90% {
        transform: translateX(-3px);
    }
}

/* Violent screen shake */
.shake-violent {
    animation: shakeViolent 0.8s ease-in-out !important;
}

@keyframes shakeViolent {

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

    5% {
        transform: translate(-15px, 8px) rotate(-2deg);
    }

    10% {
        transform: translate(12px, -10px) rotate(3deg);
    }

    15% {
        transform: translate(-10px, 15px) rotate(-3deg);
    }

    20% {
        transform: translate(18px, -5px) rotate(2deg);
    }

    25% {
        transform: translate(-8px, 12px) rotate(-1deg);
    }

    30% {
        transform: translate(10px, -8px) rotate(2deg);
    }

    35% {
        transform: translate(-15px, 5px) rotate(-2deg);
    }

    40% {
        transform: translate(12px, 10px) rotate(1deg);
    }

    45% {
        transform: translate(-6px, -12px) rotate(-3deg);
    }

    50% {
        transform: translate(8px, 8px) rotate(2deg);
    }

    55% {
        transform: translate(-10px, -5px) rotate(-1deg);
    }

    60% {
        transform: translate(6px, 12px) rotate(1deg);
    }

    65% {
        transform: translate(-8px, -8px) rotate(-2deg);
    }

    70% {
        transform: translate(5px, 6px) rotate(1deg);
    }

    75% {
        transform: translate(-4px, -4px) rotate(-1deg);
    }

    80% {
        transform: translate(3px, 3px) rotate(0.5deg);
    }

    85% {
        transform: translate(-2px, -2px) rotate(-0.5deg);
    }

    90% {
        transform: translate(1px, 1px) rotate(0deg);
    }
}

/* Red flash background */
.red-flash {
    animation: redFlash 0.6s ease-out !important;
}

@keyframes redFlash {
    0% {
        background-color: transparent;
    }

    20% {
        background-color: rgba(255, 50, 50, 0.3);
    }

    100% {
        background-color: transparent;
    }
}

/* Hearts overlay when pressing YES */
.love-hearts-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.love-hearts-overlay.active {
    opacity: 1;
    background: rgba(255, 220, 230, 0.4);
}

.love-burst-heart {
    position: absolute;
    animation: loveBurstFloat var(--duration, 2s) ease-out forwards;
    opacity: 0;
}

@keyframes loveBurstFloat {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    30% {
        opacity: 1;
        transform: scale(1.2) rotate(15deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-100px) rotate(360deg);
    }
}

/* =====================================================
   Transformation Video Modal
   ===================================================== */
.transform-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.transform-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.transform-modal-content {
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.5);
    animation: modalPulseRed 1s ease-in-out infinite;
}

@keyframes modalPulseRed {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 80px rgba(255, 0, 0, 0.7), 0 0 120px rgba(255, 50, 50, 0.3);
    }
}

.transform-modal-content video {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* =====================================================
   Please Popup
   ===================================================== */
.please-popup {
    position: fixed;
    inset: 0;
    z-index: 20001;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.please-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.please-popup-content {
    background: linear-gradient(135deg, #fff5f7, #ffe4ec);
    border-radius: 28px;
    padding: 48px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(255, 77, 125, 0.3);
    animation: popupBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupBounce {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) rotate(2deg);
        opacity: 1;
    }

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

.please-popup-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: pleadingEmoji 1s ease-in-out infinite;
}

@keyframes pleadingEmoji {

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

    50% {
        transform: scale(1.15) rotate(-5deg);
    }
}

.please-popup-text {
    font-family: var(--font-cute);
    font-size: 1.8rem;
    color: var(--pink-deep);
    margin-bottom: 8px;
}

.please-popup-sub {
    font-family: var(--font-cute);
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 28px;
}

.please-popup-btn {
    font-family: var(--font-cute);
    font-size: 1.2rem;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #ff6b8a, #e84078);
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 77, 125, 0.4);
    transition: all 0.3s ease;
    animation: popupBtnPulse 1.5s ease-in-out infinite;
}

@keyframes popupBtnPulse {

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

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(255, 77, 125, 0.6);
    }
}

.please-popup-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(255, 77, 125, 0.5);
}

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

/* =====================================================
   Gift Coupon
   ===================================================== */
.coupon-modal {
    position: fixed;
    inset: 0;
    z-index: 20002;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.coupon-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.coupon-card {
    width: 90%;
    max-width: 380px;
    background: linear-gradient(145deg, #fff9fb, #fff0f5);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(255, 77, 125, 0.3),
        0 0 0 3px rgba(255, 182, 193, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    animation: couponAppear 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

    60% {
        transform: scale(1.05) rotate(2deg);
        opacity: 1;
    }

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

/* Sparkle decorations */
.coupon-sparkle {
    position: absolute;
    font-size: 1.5rem;
    z-index: 3;
    animation: sparkleFloat 2s ease-in-out infinite;
}

.coupon-sparkle-1 {
    top: 10px;
    left: 15px;
    animation-delay: 0s;
}

.coupon-sparkle-2 {
    top: 50%;
    right: 10px;
    animation-delay: 0.5s;
}

.coupon-sparkle-3 {
    bottom: 80px;
    left: 10px;
    animation-delay: 1s;
}

@keyframes sparkleFloat {

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

    50% {
        transform: scale(1.3) rotate(15deg);
        opacity: 1;
    }
}

/* Header ribbon */
.coupon-header {
    background: linear-gradient(135deg, #ff6b8a, #e84078, #d63384);
    padding: 18px 20px;
    text-align: center;
    position: relative;
}

.coupon-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(135deg, #fff9fb, #fff0f5);
    clip-path: polygon(0 100%, 5% 0, 10% 100%, 15% 0, 20% 100%, 25% 0, 30% 100%, 35% 0, 40% 100%, 45% 0, 50% 100%, 55% 0, 60% 100%, 65% 0, 70% 100%, 75% 0, 80% 100%, 85% 0, 90% 100%, 95% 0, 100% 100%);
}

.coupon-ribbon {
    font-family: var(--font-cute);
    font-size: 1.2rem;
    color: white;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Body */
.coupon-body {
    padding: 36px 28px 20px;
    text-align: center;
}

.coupon-emoji {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: emojiFloat 2s ease-in-out infinite;
}

.coupon-title {
    font-family: var(--font-cute);
    font-size: 1.5rem;
    color: var(--pink-deep);
    margin-bottom: 8px;
    line-height: 1.4;
}

.coupon-bonus {
    font-family: var(--font-cute);
    font-size: 1.1rem;
    color: var(--pink-rose);
    margin-bottom: 16px;
}

.coupon-divider {
    color: var(--pink-soft);
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin: 12px 0;
    opacity: 0.6;
}

.coupon-note {
    font-family: var(--font-cute);
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.coupon-footer {
    padding: 16px 28px;
    border-top: 2px dashed rgba(255, 182, 193, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.coupon-signature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.coupon-from {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coupon-name {
    font-family: var(--font-cute);
    font-size: 1.1rem;
    color: var(--pink-deep);
    margin-top: 2px;
}

.coupon-date {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Close button */
.coupon-close-btn {
    display: block;
    width: calc(100% - 56px);
    margin: 8px 28px 24px;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6b8a, #e84078);
    color: white;
    font-family: var(--font-cute);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 77, 125, 0.35);
    transition: all 0.3s ease;
    animation: yesBtnPulse 1.5s ease-in-out infinite;
}

.coupon-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 77, 125, 0.45);
}

.coupon-close-btn:active {
    transform: scale(0.97);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .step-title {
        font-size: 1.8rem;
    }

    .landing-subtitle {
        font-size: 1.5rem;
    }

    .envelope {
        width: 240px;
        height: 170px;
    }

    .bouquet-svg {
        width: 260px;
    }

    .glass-card {
        padding: 24px 20px;
    }

    .letter-paper {
        padding: 32px 24px;
    }

    .gallery {
        gap: 12px;
    }

    .gi-large {
        min-height: 180px;
    }

    .gi-medium {
        min-height: 140px;
    }

    .gi-small {
        min-height: 120px;
    }

    .landing-flower {
        display: none;
    }

    .love-btn {
        font-size: 1.1rem;
        padding: 16px 36px;
    }

    .nav-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .love-question-text {
        font-size: 1.6rem;
    }

    .love-yes-btn {
        font-size: 1.1rem;
        padding: 14px 32px;
    }

    .love-no-btn {
        font-size: 0.95rem;
        padding: 12px 24px;
    }

    .please-popup-content {
        padding: 36px 28px;
    }

    .please-popup-text {
        font-size: 1.4rem;
    }

    .step-inner {
        gap: 24px;
        padding: 20px 0 80px;
    }
}

@media (max-width: 480px) {
    .step {
        padding: 24px 16px;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gi-large {
        grid-column: span 1;
    }

    .bouquet-svg {
        width: 220px;
    }

    .envelope {
        width: 200px;
        height: 145px;
    }

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

    .love-body {
        font-size: 0.95rem;
    }

    .progress-dots {
        padding: 8px 16px;
        gap: 8px;
    }
}

/* =====================================================
   EXTRA POLISH
   ===================================================== */

/* Smooth scroll-snap feel */
.step.exiting {
    animation: stepFadeOut 0.5s ease-in forwards;
}

@keyframes stepFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Message card hover */
.message-card {
    transition: var(--transition-smooth);
}

.message-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(255, 105, 135, 0.18);
}

/* Selection color */
::selection {
    background: var(--pink-soft);
    color: var(--white);
}