/* --- ESTILO ULTRA PREMIUM MELLANY NAILS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&family=Cinzel:wght@600;700;900&display=swap');

:root {
    --rose-gold: #c07c88;
    --rose-gold-light: #f5d0d6;
    --rose-gold-dark: #7a3e48;
    --gold: #dfb94c;
    --gold-light: #fff5d7;
    --gold-dark: #9e7a15;
}

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

body {
    background: radial-gradient(circle at center, #2a1b1e 0%, #050505 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

#app-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* LOGO COM EFEITO DE JOIA */
.logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.logo span { 
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(223, 185, 76, 0.4));
    font-weight: 900;
}

/* CARD GLASSMORPHISM - PRETO PURO LUXUOSO (SEM MARROM) */
.glass-card {
    background: linear-gradient(145deg, rgba(12, 12, 12, 0.95), rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(212, 175, 55, 0.08);
    padding: 35px;
    border-radius: 30px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* --- MOLDURA 3D DA ROLETA --- */
.roulette-wrapper {
    position: relative;
    padding: 20px;
    border-radius: 50%;
    background: conic-gradient(
        #3a3a3a 0deg, #111 45deg, #444 90deg, #111 135deg, 
        #3a3a3a 180deg, #111 225deg, #444 270deg, #111 315deg, #3a3a3a 360deg
    );
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.9),
        inset 0 3px 5px rgba(255,255,255,0.2),
        0 0 80px rgba(192, 124, 136, 0.1);
    margin: 30px auto 20px auto;
    width: 100%;
    max-width: 380px;
}

/* Aro Dourado Interno */
.roulette-wrapper::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border-radius: 50%;
    background: conic-gradient(
        var(--gold-dark) 0deg, var(--gold-light) 45deg, var(--gold-dark) 90deg, var(--gold) 135deg,
        var(--gold-dark) 180deg, var(--gold-light) 225deg, var(--gold-dark) 270deg, var(--gold) 315deg, var(--gold-dark) 360deg
    );
    box-shadow: 0 0 15px rgba(0,0,0,0.9), inset 0 0 15px rgba(0,0,0,0.8);
    z-index: 0;
}


/* CONTAINER DA ROLETA (Para não ter fundo marrom vazando) */
.wheel-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 10px auto 25px auto;
    border: 8px solid #d4af37;
    border-radius: 50%;
    padding: 2px;
    background: #000; /* Fundo totalmente preto */
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3), inset 0 0 20px rgba(0,0,0,1);
}


#wheel { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%;
    display: block;
}

/* Lente de Vidro sobre o Canvas */
.glass-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 100%),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 40%);
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 20px 40px rgba(255,255,255,0.15), inset 0 -20px 50px rgba(0,0,0,0.8);
}

/* Centro Metálico Fixo */
.roulette-center {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90px; height: 90px;
    background: radial-gradient(circle at 35% 35%, #fff 0%, var(--rose-gold-light) 15%, var(--rose-gold) 45%, var(--rose-gold-dark) 85%, #3a151b 100%);
    border-radius: 50%;
    box-shadow: 0 15px 25px rgba(0,0,0,0.8), inset 0 -5px 10px rgba(0,0,0,0.6), inset 0 5px 15px rgba(255,255,255,0.9);
    display: flex; justify-content: center; align-items: center;
    z-index: 5;
}
.roulette-center::before {
    content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    background: conic-gradient(var(--gold-dark), var(--gold-light), var(--gold), var(--gold-dark));
    z-index: -1; box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}
.center-text {
    font-family: 'Cinzel', serif; font-weight: 900; font-size: 14px;
    color: #fff; text-align: center; text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Ponteiro Dourado 3D */
.pointer-wrapper {
    position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
    z-index: 10; filter: drop-shadow(0 15px 10px rgba(0,0,0,0.8));
}
.pointer-3d {
    width: 40px; height: 55px;
    background: linear-gradient(to right, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    position: relative;
}
.pointer-3d::after {
    content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%);
    clip-path: polygon(100% 100%, 0 0, 100% 0);
}

/* BOTÃO DE GIRAR LUXUOSO */
.spin-btn-luxury {
    width: 100%; max-width: 300px; padding: 18px; margin-top: 20px;
    font-size: 1.1rem; font-family: 'Cinzel', serif; font-weight: 900;
    color: #1a1112;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    border: none; border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(223, 185, 76, 0.3), inset 0 3px 10px rgba(255,255,255,0.8);
    text-transform: uppercase; letter-spacing: 2px;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.spin-btn-luxury::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: rotate(45deg) translateY(-100%); transition: 0.5s;
}
.spin-btn-luxury:hover::after { transform: rotate(45deg) translateY(100%); }
.spin-btn-luxury:hover { transform: translateY(-3px); filter: brightness(1.1); }
.spin-btn-luxury:disabled { opacity: 0.5; cursor: not-allowed; }

/* ÁREA DE RESULTADO (PARTE DE BAIXO) */
.prize-result-box {
    margin-top: 25px;
    width: 100%;
    background: rgba(10, 8, 8, 0.6);
    border: 1px solid rgba(223, 185, 76, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    display: none; /* Escondido por padrão */
}
.prize-result-box.show {
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#result-text-content {
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(223, 185, 76, 0.5);
    margin-bottom: 15px;
}

/* OUTROS ELEMENTOS (INPUTS, BTN PADRÃO) */
input {
    width: 100%; max-width: 360px; padding: 15px; margin: 10px 0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(223, 185, 76, 0.4); color: #fff;
    border-radius: 10px; font-family: 'Montserrat'; text-align: center;
    outline: none; transition: 0.3s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 10px rgba(223, 185, 76, 0.3); }

.btn-pix { width: 100%; max-width: 360px; padding: 16px; margin-top: 15px; border: none; border-radius: 12px; font-family: 'Montserrat'; font-weight: 700; cursor: pointer; text-transform: uppercase; color: #1a1a1a; background: linear-gradient(135deg, #d4af37, #fcf6ba); transition: 0.3s; }
.btn-whatsapp { width: 100%; padding: 16px; background: linear-gradient(135deg, #075e54, #128c7e); border-radius: 12px; color: #fff; font-weight: 700; text-decoration: none; text-align: center; margin-top: 10px; box-shadow: 0 5px 15px rgba(7, 94, 84, 0.4); transition: 0.3s; }
.btn-whatsapp:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ========================================================
   EFEITO LUXO NEON DOURADO: FLUTUAR E PULSAR
======================================================== */

@keyframes neonGoldFloat {
    0% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 0 10px rgba(223, 185, 76, 0.4), 
                    0 0 20px rgba(223, 185, 76, 0.2);
    }
    50% {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 0 20px rgba(223, 185, 76, 0.9), 
                    0 0 40px rgba(223, 185, 76, 0.6), 
                    0 0 60px rgba(223, 185, 76, 0.3);
    }
    100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 0 10px rgba(223, 185, 76, 0.4), 
                    0 0 20px rgba(223, 185, 76, 0.2);
    }
}

/* Aplica o efeito nos botões da roleta e do WhatsApp */
#spin-btn, 
.btn-pix, 
.btn-whatsapp {
    animation: neonGoldFloat 2s infinite ease-in-out !important;
    border: 1px solid #dfb94c !important; /* Borda dourada fina para realçar a luz */
    position: relative;
    z-index: 10;
}

/* Opcional: Se quiser que o botão brilhe ainda mais quando o cliente passar o mouse */
#spin-btn:hover, 
.btn-pix:hover, 
.btn-whatsapp:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 30px rgba(223, 185, 76, 1), 0 0 60px rgba(223, 185, 76, 0.8) !important;
    transform: translateY(-8px) scale(1.05) !important;
}
