* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd1dc 0%, #ffb3d9 25%, #e6b3ff 50%, #d9b3f0 75%, #ffb3e6 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stars::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.8s ease-out;
    text-align: center;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heart-animation {
    font-size: 5em;
    animation: heartBeat 1.5s ease-in-out infinite;
    margin-bottom: 30px;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
}

.main-title {
    font-size: clamp(1.8em, 6vw, 3em);
    color: #d946a6;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: clamp(0.9em, 3vw, 1.2em);
    color: #b565a7;
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 400;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 50px;
    font-size: 1.1em;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-yes {
    background: linear-gradient(135deg, #ec4899 0%, #d946a6 100%);
    color: white;
}

.btn-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

.btn-yes:active {
    transform: translateY(0px);
}

.btn-no {
    background: #e0e0e0;
    color: #333;
    transition: all 0.2s ease;
}

.btn-no:hover {
    background: #d0d0d0;
    transform: translateX(80px) translateY(-60px) scale(0.8);
}

.success {
    text-align: center;
    margin-top: 40px;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success.hidden {
    display: none;
}

.success h2 {
    font-size: 2.8em;
    color: #d946a6;
    margin-bottom: 20px;
    font-weight: 900;
}

.success p {
    font-size: 1.4em;
    color: #b565a7;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success .heart-big {
    font-size: 5em;
    animation: heartBeat 1.5s ease-in-out infinite;
    margin: 20px 0;
}

.celebration-gif {
    width: 200px;
    height: auto;
    margin: 30px 0;
    border-radius: 20px;
    animation: fadeIn 0.8s ease-out;
}

.date-selection {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.date-selection.hidden {
    display: none;
}

.date-selection h2 {
    font-size: clamp(1.5em, 5vw, 2em);
    color: #d946a6;
    margin-bottom: 25px;
    font-weight: 900;
}

.date-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.date-card {
    background: linear-gradient(135deg, #ec489915 0%, #d946a615 100%);
    border: 2px solid #ec4899;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
}

.date-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg, #ec489925 0%, #d946a625 100%);
}

.date-card h3 {
    font-size: clamp(1em, 4vw, 1.2em);
    color: #333;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.date-card p {
    font-size: clamp(0.8em, 3vw, 0.9em);
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.btn-select {
    padding: 10px 16px;
    font-size: clamp(0.8em, 2vw, 0.9em);
    background: linear-gradient(135deg, #ec4899 0%, #d946a6 100%);
    color: white;
    width: 100%;
    margin-top: auto;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.confirmation {
    text-align: center;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.confirmation.hidden {
    display: none;
}

.confirmation h2 {
    font-size: 2.8em;
    color: #d946a6;
    margin-bottom: 30px;
    font-weight: 900;
}

.confirmation-content {
    background: linear-gradient(135deg, #ec489915 0%, #d946a615 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #ec4899;
}

.selected-date {
    font-size: 1.5em;
    color: #d946a6;
    margin-bottom: 15px;
    line-height: 1.8;
    font-weight: 600;
    white-space: pre-line;
}

.date-info {
    font-size: 1.1em;
    color: #b565a7;
    margin: 0;
    line-height: 1.6;
}

.confirmation .heart-big {
    font-size: 5em;
    animation: heartBeat 1.5s ease-in-out infinite;
    margin: 20px 0;
}

.qr-container {
    background: linear-gradient(135deg, #ec489915 0%, #d946a615 100%);
    border: 2px solid #ec4899;
    border-radius: 20px;
    padding: 30px 25px;
    margin-top: 30px;
    animation: fadeIn 0.8s ease-out;
}

.qr-label {
    font-size: 1em;
    color: #d946a6;
    margin-bottom: 20px;
    font-weight: 600;
    display: block;
}

.qr-container p {
    font-size: 0.95em;
    color: #b565a7;
    margin: 10px 0;
}

.qr-code {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    background: white;
    padding: 8px;
    border-radius: 15px;
}

.qr-code img {
    width: clamp(150px, 40vw, 250px);
    height: clamp(150px, 40vw, 250px);
}

.qr-text {
    font-size: 0.85em;
    color: #764ba2;
    font-weight: 600;
    margin-top: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .content {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .heart-animation {
        font-size: clamp(3em, 8vw, 5em);
        margin-bottom: 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 0.9em;
    }

    .date-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .qr-container {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .confirmation-content {
        padding: 15px;
        margin-bottom: 20px;
    }
}

