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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

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

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 90%;
    margin: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
}

.heart-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px 0 rgba(255, 71, 87, 0.2),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.heart {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 100%);
    display: inline-block;
    height: 130px;
    margin: 0 10px;
    position: relative;
    top: 0;
    transform: rotate(-45deg);
    width: 130px;
    animation: heartbeat 1.4s infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 71, 87, 0.4));
}

.heart:before,
.heart:after {
    content: "";
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 100%);
    border-radius: 50%;
    height: 130px;
    position: absolute;
    width: 130px;
}

.heart:before {
    top: -65px;
    left: 0;
}

.heart:after {
    left: 65px;
    top: 0;
}

.title {
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.5s;
    text-shadow: 0 2px 20px rgba(255, 71, 87, 0.3);
    filter: drop-shadow(0 2px 10px rgba(255, 71, 87, 0.2));
}

.message {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.8s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 1.1s;
}

.btn {
    padding: 0.9rem 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.yes-btn {
    background: rgba(255, 107, 157, 0.3);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.yes-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.yes-btn:hover::before {
    left: 100%;
}

.no-btn {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2),
                0 4px 20px rgba(255, 71, 87, 0.4),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
}

.yes-btn:hover {
    background: rgba(255, 107, 157, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.no-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

.celebration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.celebration.show {
    opacity: 1;
    visibility: visible;
}

.hidden {
    display: none;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

@keyframes heartbeat {
    0% {
        transform: rotate(-45deg) scale(1);
    }
    14% {
        transform: rotate(-45deg) scale(1.3);
    }
    28% {
        transform: rotate(-45deg) scale(1);
    }
    42% {
        transform: rotate(-45deg) scale(1.3);
    }
    70% {
        transform: rotate(-45deg) scale(1);
    }
}

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

/* Additional glassmorphic enhancements */
.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 1.1s;
    flex-wrap: wrap;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Glassmorphic overlay effects */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Audio Enable Overlay */
.audio-enable-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.audio-enable-overlay.hidden {
    display: none;
}

.audio-enable-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.audio-enable-content h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Dancing Script', cursive;
}

.audio-enable-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.audio-enable-btn {
    padding: 1rem 2.5rem;
    background: rgba(255, 107, 157, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.audio-enable-btn:hover {
    background: rgba(255, 107, 157, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 71, 87, 0.4);
}

.audio-enable-btn:active {
    transform: translateY(0);
}

/* Sender Mode Indicator */
.sender-mode-indicator {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sender-mode-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.generate-link-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 107, 157, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-link-btn:hover {
    background: rgba(255, 107, 157, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* Link Modal */
.link-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-modal-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.link-modal-content h3 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.link-modal-content > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.link-input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    outline: none;
}

.link-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
}

.copy-link-input-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 107, 157, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-link-input-btn:hover {
    background: rgba(255, 107, 157, 0.6);
    transform: translateY(-2px);
}

.link-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.close-link-modal {
    padding: 0.8rem 2rem;
    background: rgba(255, 107, 157, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.close-link-modal:hover {
    background: rgba(255, 107, 157, 0.5);
}

/* Controls Panel */
.controls-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 180px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.control-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.control-label input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.control-select {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-select:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.control-select option {
    background: #667eea;
    color: white;
}

/* Photo Upload */
.photo-upload-container {
    margin-bottom: 1.5rem;
}

/* Photo Display (Recipient View) */
.photo-display-container {
    margin-bottom: 1.5rem;
}

.photo-display-container .photo-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
    pointer-events: none;
}

.photo-upload-btn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 107, 157, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-btn:hover {
    background: rgba(255, 107, 157, 0.6);
    transform: translateX(-50%) translateY(-2px);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.share-modal-content h3 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-link {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.share-link.facebook {
    background: rgba(59, 89, 152, 0.6);
}

.share-link.twitter {
    background: rgba(29, 161, 242, 0.6);
}

.share-link.whatsapp {
    background: rgba(37, 211, 102, 0.6);
}

.share-link.copy-link {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.share-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-modal {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 107, 157, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 107, 157, 0.5);
}

/* Celebration Styles */
.celebration-title {
    font-size: 2.5em;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 10px rgba(255, 71, 87, 0.3));
}

.celebration-message {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Animation Presets */
.heart.bounce {
    animation: heartbeat 1.4s infinite, bounce 2s infinite;
}

.heart.float {
    animation: heartbeat 1.4s infinite, float 3s ease-in-out infinite;
}

.heart.pulse {
    animation: heartbeat 1.4s infinite, pulse 2s ease-in-out infinite;
}

.heart.rotate {
    animation: heartbeat 1.4s infinite, rotate 4s linear infinite;
}

.heart.wave {
    animation: heartbeat 1.4s infinite, wave 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(-45deg) scale(1) translateY(0); }
    50% { transform: rotate(-45deg) scale(1.1) translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: rotate(-45deg) scale(1) translateY(0); }
    50% { transform: rotate(-45deg) scale(1.05) translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.2); }
}

@keyframes rotate {
    0% { transform: rotate(-45deg) scale(1); }
    100% { transform: rotate(315deg) scale(1); }
}

@keyframes wave {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    25% { transform: rotate(-50deg) scale(1.1); }
    75% { transform: rotate(-40deg) scale(1.1); }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    
    .message {
        font-size: 1rem;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }

    .controls-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .control-group {
        flex: 1;
        min-width: 120px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}
