@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --bg-dark: #080510;
    --card-bg: rgba(18, 12, 36, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-color: #ff007f;
    --primary-glow: rgba(255, 0, 127, 0.3);
    --secondary-color: #7b2cbf;
    --gold-color: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --text-light: #ffffff;
    --text-muted: #b5b0cd;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background animated glow spots */
.bg-glows {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.2) 0%, rgba(0,0,0,0) 70%);
    filter: blur(50px);
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
    animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Floating particles in background */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatParticle 8s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) translateX(100px) scale(1.2);
        opacity: 0;
    }
}

/* Main Container Card */
.presell-card {
    position: relative;
    z-index: 10;
    width: 92%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.presell-card.revealed {
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 25px 60px rgba(255, 215, 0, 0.15), 
                0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Header elements */
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 127, 0.12);
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px 2px rgba(255, 0, 127, 0.2);
        transform: scale(1.02);
    }
}

h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 30%, #b5b0cd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 35px;
    font-weight: 300;
}

/* Interactive Gift Area */
.gift-area {
    position: relative;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

/* Gift Box 3D/CSS Styling */
.gift-box-container {
    position: relative;
    width: 140px;
    height: 140px;
    cursor: pointer;
    z-index: 5;
    transform-style: preserve-3d;
    animation: floatGift 3s infinite ease-in-out;
}

@keyframes floatGift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.gift-box-container.idle:hover {
    animation: shakeBox 0.5s ease-in-out infinite alternate;
}

@keyframes shakeBox {
    0% { transform: rotate(-5deg) translateY(-6px); }
    100% { transform: rotate(5deg) translateY(-6px); }
}

.gift-lid {
    position: absolute;
    width: 148px;
    height: 35px;
    background: linear-gradient(135deg, #ff0055, #ff007f);
    left: -4px;
    top: -5px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 
                inset 0 1px rgba(255, 255, 255, 0.3);
    z-index: 3;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gift-lid::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -12px;
    width: 32px;
    height: 15px;
    background: var(--gold-color);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 -2px 5px rgba(255, 215, 0, 0.5);
}

/* Lid ribbon bows */
.gift-bow-left, .gift-bow-right {
    position: absolute;
    top: -24px;
    width: 36px;
    height: 24px;
    border: 5px solid var(--gold-color);
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gift-bow-left {
    left: 36px;
    transform: rotate(-35deg);
}

.gift-bow-right {
    right: 36px;
    transform: rotate(35deg);
}

.gift-body {
    position: absolute;
    width: 140px;
    height: 110px;
    bottom: 0;
    background: linear-gradient(135deg, #d9006c, #a80055);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 
                inset 0 -5px 15px rgba(0,0,0,0.2);
    z-index: 1;
    overflow: hidden;
    transition: all 0.6s ease;
}

/* Ribbons on box */
.ribbon-vertical {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 100%;
    background: linear-gradient(to right, #ffd700, #ffea70, #ffd700);
    box-shadow: inset 1px 0 rgba(255,255,255,0.2), inset -1px 0 rgba(0,0,0,0.2);
}

.ribbon-horizontal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 26px;
    background: linear-gradient(to bottom, #ffd700, #ffea70, #ffd700);
    box-shadow: inset 0 1px rgba(255,255,255,0.2), inset 0 -1px rgba(0,0,0,0.2);
}

/* Sparkles animation behind gift box */
.gift-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.25) 0%, rgba(255, 215, 0, 0.05) 50%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(10px);
    animation: pulseGlow 2s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

/* Open/reveal animations */
.gift-box-container.opened .gift-lid {
    transform: translateY(-130px) rotate(-25deg) scale(0.85);
    opacity: 0;
    pointer-events: none;
}

.gift-box-container.opened .gift-body {
    transform: translateY(20px) scaleY(0.85);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* The Gift Card that pops out */
.reveal-card {
    position: absolute;
    width: 270px;
    background: linear-gradient(135deg, #1c1538 0%, #0d091e 100%);
    border: 2px solid var(--gold-color);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.25), 
                0 10px 20px rgba(0,0,0,0.6);
    z-index: 2;
    transform: translateY(120px) scale(0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gift-box-container.opened + .reveal-card {
    transform: translateY(-30px) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Details inside the VIP Gift Card */
.card-shine-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    overflow: hidden;
    pointer-events: none;
}

.card-shine-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
    animation: shineCard 4s infinite linear;
}

@keyframes shineCard {
    0% { transform: translate(-30%, -30%) rotate(0deg); }
    100% { transform: translate(30%, 30%) rotate(0deg); }
}

.ticket-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    animation: floatIcon 2s infinite ease-in-out;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.reveal-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-color);
    text-shadow: 0 0 10px var(--gold-glow);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.reveal-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.card-perks {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.perk-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #e2dff0;
    margin: 5px 0;
}

.perk-item span {
    color: var(--gold-color);
}

/* Call to Action Button */
.cta-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ff8800 100%);
    border: none;
    outline: none;
    color: #0b0716;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.4), 
                inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    text-align: center;
    text-shadow: 0 1px rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 136, 0, 0.6), 
                inset 0 1px 0 rgba(255,255,255,0.5);
}

.cta-button:hover::after {
    left: 100%;
    transition: all 0.6s ease;
}

.cta-button:active {
    transform: translateY(1px);
}

/* Action Area (Pulse hint button or helper text before clicking present) */
.action-hint {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.7; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Footer / Urgency Timer */
.countdown-box {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.timer-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timer-digits {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 127, 0.2);
}

/* Confetti Styles for explosion */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 4;
    pointer-events: none;
    animation: confettiFall 4s forwards ease-out;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) rotate(720deg);
        opacity: 0;
    }
}
