@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #d4a017;
    /* Rich Gold */
    --secondary: #b8860b;
    /* Dark Goldenrod */
    --accent: #f5c842;
    /* Bright Gold */
    --dark-bg: #0f0c00;
    /* Near-black dark gold */
    --glass-bg: rgba(212, 160, 23, 0.07);
    --glass-border: rgba(212, 160, 23, 0.25);
    --glass-highlight: rgba(245, 200, 66, 0.4);
    --neon-glow: 0 0 10px rgba(212, 160, 23, 0.6), 0 0 20px rgba(184, 134, 11, 0.4);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: #f5e6b3;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 40%, #2a1f00, #0f0c00 60%);
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.45;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #c8860a;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: #b8860b;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: #f5c842;
    animation-delay: -10s;
    opacity: 0.25;
}

/* Gold Sparkle Particles */
.heart-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart {
    position: absolute;
    color: rgba(245, 200, 66, 0.5);
    font-size: 16px;
    animation: heartFloat 10s linear infinite;
    opacity: 0;
}

@keyframes heartFloat {
    0% {
        transform: translateY(110vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-10vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float {

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

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(20, 15, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(245, 200, 66, 0.1);
}

.glass-card {
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(184, 134, 11, 0.03));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--neon-glow);
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.15), rgba(184, 134, 11, 0.07));
}

/* Typography & Effects */
.text-glow {
    text-shadow: 0 0 10px rgba(245, 200, 66, 0.7);
}

.title-gradient {
    background: linear-gradient(to right, #fff0a0, #f5c842, #d4a017, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* Custom Animations */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(212, 160, 23, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(245, 200, 66, 0.8), 0 0 50px rgba(212, 160, 23, 0.4);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Progress Bar */
.progress-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    background: linear-gradient(90deg, #b8860b, #d4a017, #f5c842, #fff0a0, #f5c842, #d4a017);
    background-size: 300% 100%;
    animation: gradient-move 2s ease infinite;
    border-radius: 999px;
    height: 100%;
    transition: width 0.5s ease-out;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Input Styles */
.glass-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 160, 23, 0.3);
    color: #f5e6b3;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.4);
    outline: none;
}

/* Button Styles */
.btn-neon {
    background: linear-gradient(45deg, #b8860b, #d4a017);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #0f0c00;
    font-weight: 700;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #d4a017, #f5c842);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-neon:hover::before {
    opacity: 1;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(245, 200, 66, 0.6), 0 0 50px rgba(212, 160, 23, 0.3);
}

/* Marquee */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    animation: marquee 30s linear infinite;
}

/* Popup Styles */
body.popup-active {
    overflow: hidden;
}

body.popup-active>*:not(#ios-popup) {
    filter: blur(8px) brightness(0.5);
    transition: filter 0.3s ease;
}

#ios-popup {
    z-index: 9999;
}

.popup-glass {
    background: rgba(15, 10, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 160, 23, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 160, 23, 0.1);
}