:root {
    --bg-color: #0b0510;
    --text-main: #f5eef8;
    --text-muted: #b5a4bd;
    --accent-red: #e6194b;
    --accent-pink: #ff007f;
    --accent-glow: rgba(255, 0, 127, 0.4);
    --glass-bg: rgba(20, 10, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gold: #ffd700;
    --gold-dark: #ffaa00;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ambient Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.7;
    animation: float 10s infinite ease-in-out alternate;
}

.glow.red {
    background: var(--accent-red);
    top: -10%;
    left: -10%;
}

.glow.purple {
    background: #6a00ff;
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.3); }
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
    padding: 2rem 0;
}

.screen.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.screen.active {
    visibility: visible;
    opacity: 1;
}

.container {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.text-center {
    text-align: center;
}

/* Typography */
h1 {
    line-height: 1.2;
}

.gift-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease;
}

.gift-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.highlight-pink {
    color: var(--accent-pink);
    display: inline-block;
    text-shadow: 0 0 20px var(--accent-glow);
}

.reward-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    margin-bottom: 1rem;
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Gift Animation Box */
.gift-wrapper {
    perspective: 1000px;
    margin: 30px auto 10px;
    width: 200px;
    height: 200px;
    cursor: pointer;
    animation: fadeInUp 1s ease 0.6s both;
}

.gift-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    animation: floating 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.gift-box-inner.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

.gift-box-inner.open .gift-lid {
    transform: translateY(-120px) rotate(-15deg);
    opacity: 0;
}

.gift-box-inner.open .gift-body {
    transform: scale(1.1);
    opacity: 0;
    transition-delay: 0.2s;
}

.gift-body {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 160px;
    height: 130px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    border-radius: 10px;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3), 0 15px 35px var(--accent-glow);
    transition: all 0.5s ease;
}

.gift-lid {
    position: absolute;
    top: 30px;
    left: 10px;
    width: 180px;
    height: 45px;
    background: linear-gradient(135deg, #ff3399, var(--accent-red));
    border-radius: 8px;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.4);
    z-index: 10;
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.gift-ribbon-v {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 100%;
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.gift-lid .gift-ribbon-v {
    height: 45px;
}

.gift-ribbon-h {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.gift-bow-center {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--gold), var(--gold-dark));
    border-radius: 50%;
    z-index: 12;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.gift-bow-left, .gift-bow-right {
    position: absolute;
    top: -40px;
    width: 80px;
    height: 60px;
    border: 18px solid var(--gold-dark);
    border-radius: 50%;
    z-index: 11;
}

.gift-bow-left {
    left: 20px;
    transform: rotate(-25deg);
}

.gift-bow-right {
    right: 20px;
    transform: rotate(25deg);
}

/* Glass Panel Reward */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.pulse-glow {
    animation: pulseBox 3s infinite alternate;
}

.dopamine-copy {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
}

.dopamine-copy strong {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
}

.dopamine-copy .highlight {
    color: #ff5e00;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 94, 0, 0.5);
    display: block;
    margin-top: 0.5rem;
}

/* CTA */
.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-pink));
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 25px rgba(230, 25, 75, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
    margin: 0 auto;
}

.cta-button:hover, .cta-button:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 0, 127, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    z-index: 1;
}

.scarcity-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    animation: blink 2s infinite;
    margin-top: 1rem;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.confetto {
    position: absolute;
    top: -20px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Keyframes */
@keyframes shake {
    10%, 90% { transform: translate3d(-4px, 0, 0) rotate(-3deg); }
    20%, 80% { transform: translate3d(6px, 0, 0) rotate(3deg); }
    30%, 50%, 70% { transform: translate3d(-10px, 0, 0) rotate(-6deg); }
    40%, 60% { transform: translate3d(10px, 0, 0) rotate(6deg); }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0); }
}

@keyframes pulseBox {
    0% { box-shadow: 0 10px 30px rgba(255, 0, 127, 0.2); border-color: rgba(255, 255, 255, 0.08); }
    100% { box-shadow: 0 15px 40px rgba(255, 0, 127, 0.5); border-color: rgba(255, 0, 127, 0.4); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsividade Mobile Extra */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .gift-title {
        font-size: 1.8rem;
    }

    .gift-subtitle {
        font-size: 1.1rem;
    }

    .reward-title {
        font-size: 1.8rem;
    }

    .glass-panel {
        padding: 1.5rem 1rem;
    }

    .dopamine-copy {
        font-size: 1.05rem;
    }

    .dopamine-copy strong {
        font-size: 1.15rem;
    }

    .dopamine-copy .highlight {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1.15rem;
    }

    .gift-wrapper {
        transform: scale(0.85);
        margin: 10px auto;
    }
}

@media (max-width: 360px) {
    .gift-wrapper {
        transform: scale(0.75);
    }
    
    .reward-title {
        font-size: 1.5rem;
    }
    
    .gift-title {
        font-size: 1.5rem;
    }
    
    .cta-button {
        font-size: 1.05rem;
    }
}
