/* ===== RESET & BASE ===== */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background: #0f0f14;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* ===== PROGRESS INDICATOR ===== */

.progress {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    transition: opacity 0.4s ease;
}

.progress.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== SCREENS ===== */

.screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    width: 100%;
    max-width: 440px;
    text-align: center;
}

/* ===== TYPOGRAPHY ===== */

.text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.title-big {
    font-size: 26px;
}

.title-huge {
    font-size: 48px;
}

.subtitle {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.subtitle-small {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6fa3, #ff8fb8);
    color: #fff;
    box-shadow: 0 4px 24px rgba(255, 111, 163, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(255, 111, 163, 0.45);
}

.btn-primary:active {
    transform: scale(0.96) translateY(0);
}

.btn-yes {
    background: linear-gradient(135deg, #ff6fa3, #ff8fb8);
    color: #fff;
    box-shadow: 0 4px 24px rgba(255, 111, 163, 0.3);
    padding: 14px 48px;
    font-size: 17px;
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(255, 111, 163, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

.btn-cta {
    margin-top: 8px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 280px;
}

/* ===== CHOCOLATE ICON ===== */

.icon-crossed {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.chocolate-icon {
    font-size: 40px;
    opacity: 0.5;
}

.cross-line {
    position: absolute;
    width: 56px;
    height: 3px;
    background: #ff6fa3;
    border-radius: 2px;
    transform: rotate(-45deg);
}

/* ===== CARDS ===== */

.image-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 4 / 3;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

/* ===== HERO IMAGE ===== */

.hero-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 10;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== CONFIRMATION ===== */

.confirmation-details {
    margin-top: 16px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.detail-line {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

/* ===== ANIMATIONS ===== */

.fade-up {
    opacity: 0;
    transform: translateY(20px);
}

.screen.active .fade-up {
    animation: fadeUp 0.7s ease forwards;
}

.screen.active .fade-up.delay-1 { animation-delay: 0.15s; }
.screen.active .fade-up.delay-2 { animation-delay: 0.3s; }
.screen.active .fade-up.delay-3 { animation-delay: 0.45s; }
.screen.active .fade-up.delay-4 { animation-delay: 0.6s; }

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

/* Pulse animation for final confirmation */
.pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

.screen.active .pulse {
    animation: fadeUp 0.7s ease forwards, pulse 2.5s ease-in-out 0.8s infinite;
}

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

/* ===== FLOATING DECORATIONS ===== */

.decorations {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco {
    position: absolute;
    opacity: 0;
    animation: floatUp linear forwards;
    pointer-events: none;
    user-select: none;
    font-size: 18px;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(360deg) scale(1);
    }
}

/* ===== CONFETTI CANVAS ===== */

#confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* ===== RESPONSIVE ===== */

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

    .title-big {
        font-size: 22px;
    }

    .title-huge {
        font-size: 40px;
    }

    .subtitle {
        font-size: 16px;
    }

    .subtitle-small {
        font-size: 14px;
    }

    .screen-content {
        gap: 28px;
        padding: 20px;
    }

    .btn {
        padding: 13px 36px;
        font-size: 15px;
    }

    .image-cards {
        gap: 10px;
    }

    .card {
        border-radius: 14px;
    }

    .hero-image {
        border-radius: 16px;
    }
}

@media (min-width: 768px) {
    .title {
        font-size: 36px;
    }

    .title-big {
        font-size: 32px;
    }

    .title-huge {
        font-size: 56px;
    }

    .subtitle {
        font-size: 20px;
    }

    .screen-content {
        max-width: 520px;
    }
}

/* Subtle background gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(111, 211, 255, 0.04) 0%,
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 80%,
        rgba(255, 111, 163, 0.04) 0%,
        transparent 50%
    );
    z-index: 0;
    pointer-events: none;
    animation: bgDrift 20s ease-in-out infinite alternate;
}

@keyframes bgDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-3%, -2%); }
}
