* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.background {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 100%);
    position: relative;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stars::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.flying-item {
    position: absolute;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message {
    color: #ff69b4;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 0 0 20px #ff1493, 0 0 40px #ff69b4;
    white-space: nowrap;
    animation: float 8s linear infinite;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 2px;
}

.photo {
    width: 140px;
    height: 140px;
    border-radius: 15px;
    border: 4px solid #ff69b4;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5);
    animation: float 8s linear infinite;
}

.heart {
    font-size: 40px;
    animation: float 8s linear infinite;
    filter: drop-shadow(0 0 10px #ff1493);
}

@keyframes float {
    to {
        transform: translateY(100vh) rotate(45deg);
        opacity: 0;
    }
}

/* Control Panel */
.control-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff69b4;
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    color: #ff69b4;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
    z-index: 1000;
}

.control-panel h3 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
    text-shadow: 0 0 10px #ff69b4;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}

.form-group input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid #ff69b4;
    color: #ff69b4;
    border-radius: 5px;
    font-size: 12px;
}

.form-group input::placeholder {
    color: #ff69b4;
    opacity: 0.6;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 10px #ff69b4;
}

.form-group button,
.control-panel button {
    padding: 10px 15px;
    background: #ff69b4;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s;
    white-space: nowrap;
}

.form-group button:hover,
.control-panel button:hover {
    background: #ff1493;
    box-shadow: 0 0 20px #ff69b4;
    transform: scale(1.05);
}

.btn-danger {
    width: 100%;
    background: #8b0000;
    color: white !important;
}

.btn-danger:hover {
    background: #ff0000;
}

.btn-cake {
    width: 100%;
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    color: white !important;
    font-size: 16px !important;
    font-weight: bold;
    margin-top: 15px;
    animation: pulse 1.5s infinite;
}

.btn-cake:hover {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    transform: scale(1.05);
}

.btn-cake-modern {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    padding: 18px 40px !important;
    font-size: 18px !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 50%, #ff1493 100%) !important;
    background-size: 200% 200%;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6), 0 0 20px rgba(255, 105, 180, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: modernPulse 2s ease-in-out infinite;
    margin-top: 0 !important;
}

.btn-cake-modern:hover {
    transform: translateY(-5px) scale(1.08) !important;
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.8), 0 0 30px rgba(255, 105, 180, 0.6) !important;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #ff69b4 100%) !important;
}

.btn-cake-modern:active {
    transform: translateY(-2px) scale(1.05) !important;
}

@keyframes modernPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6), 0 0 20px rgba(255, 105, 180, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 20, 147, 0.8), 0 0 30px rgba(255, 105, 180, 0.6);
    }
}

.qr-button-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.qr-button-fixed .btn-qr {
    display: block;
    padding: 15px 25px;
}

.btn-qr {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: white !important;
    font-size: 16px !important;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .control-panel {
        width: 280px;
        bottom: 15px;
        right: 15px;
        padding: 15px;
    }

    .control-panel h3 {
        font-size: 16px;
    }

    .form-group input,
    .form-group button {
        font-size: 14px;
        padding: 10px;
    }

    .message {
        font-size: 18px;
    }

    .photo {
        width: 110px;
        height: 110px;
        border-radius: 12px;
        border: 3px solid #ff69b4;
    }

    .heart {
        font-size: 35px;
    }
}

/* Responsive - Mobil */
@media (max-width: 480px) {
    .control-panel {
        width: 90%;
        max-width: 300px;
        bottom: 10px;
        right: 5%;
        left: auto;
        padding: 12px;
    }

    .control-panel h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group button {
        font-size: 12px;
        padding: 8px;
        width: 100%;
    }

    .message {
        font-size: 16px;
    }

    .photo {
        width: 90px;
        height: 90px;
        border-radius: 10px;
        border: 2px solid #ff69b4;
    }

    .heart {
        font-size: 28px;
    }

    .btn-cake-modern {
        width: auto !important;
        padding: 14px 28px !important;
        font-size: 14px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
}