/* ============================
   CSS Variables
   ============================ */
:root {
    --bg-fundo: #f4f5f7;
    --laranja: #ff6600;
    --laranja-escuro: #e55c00;
    --laranja-gradient: linear-gradient(135deg, #FF6A00, #FF3D00);
    --verde: #00c853;
    --verde-claro-bg: #eafaf1;
    --verde-badge: #e8f8ee;
    --verde-texto: #1db954;
    --vermelho: #e50000;
    --vermelho-bg: #fff5f5;
    --texto-escuro: #1a1a1a;
    --texto-medio: #444;
    --texto-cinza: #888;
    --branco: #ffffff;
    --sombra-card: 0 2px 12px rgba(0,0,0,0.06);
    --sombra-elevada: 0 8px 28px rgba(0,0,0,0.12);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================
   Global Reset
   ============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-fundo);
    color: var(--texto-escuro);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 120px;
}

/* ============================
   Confetti Canvas
   ============================ */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ============================
   Header
   ============================ */
.header-top {
    background: var(--branco);
    text-align: center;
    padding: 18px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra mais destacada */
}

.header-top h1 {
    font-size: 22px;
    font-weight: 800;
    background: var(--laranja-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* ============================
   Main Container
   ============================ */
.main-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 14px;
}

/* ============================
   Cards Base
   ============================ */
.card {
    background: var(--branco);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--sombra-card);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: var(--sombra-elevada);
}

.card.visible:hover {
    transform: translateY(-2px) scale(1.005);
}

/* ============================
   Balance Card
   ============================ */
.card-saldo {
    border: 1px solid #f0f0f0;
}

.saldo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.saldo-label {
    font-size: 13px;
    color: var(--texto-cinza);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot-verde {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--verde);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

#saldo-valor {
    font-size: 32px;
    font-weight: 800;
    color: var(--texto-escuro);
    margin-top: 4px;
    letter-spacing: -1px;
}

.btn-sacar {
    color: var(--branco);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-sacar.disabled {
    background: #ccc;
    cursor: not-allowed;
    animation: none;
}

.btn-sacar.ativo {
    background: var(--laranja-gradient);
    animation: pulse-btn 2s ease-in-out infinite;
    cursor: pointer;
}

.btn-sacar.ativo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.4);
}

.btn-sacar.ativo:active {
    transform: scale(0.97);
}

#saldo-valor.saldo-somando {
    animation: glow-saldo 0.6s ease;
}

@keyframes glow-saldo {
    0% { transform: scale(1); }
    30% { transform: scale(1.08); color: var(--laranja); }
    100% { transform: scale(1); }
}

/* ============================
   Tickets Card
   ============================ */
.card-tickets {
    border: 1px solid #ffebd6;
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
    position: relative;
    overflow: hidden;
}

.card-tickets::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,106,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tickets-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tickets-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--texto-cinza);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ticket-count {
    font-size: 48px;
    font-weight: 900;
    background: var(--laranja-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ticket-count.bump {
    transform: scale(1.1);
}

.tickets-sub {
    font-size: 13px;
    color: var(--texto-medio);
    font-weight: 500;
    margin-top: 6px;
    max-width: 220px;
    line-height: 1.4;
}

.destaque-laranja {
    color: var(--laranja);
    font-weight: 800;
}

.tickets-icons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.roleta-image-float {
    width: 110px;
    height: auto;
    object-fit: contain;
    animation: float-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(255, 106, 0, 0.3));
}

/* ============================
   Button States (Roleta vs Saque)
   ============================ */
.btn-pix.estado-roleta {
    background: var(--laranja-gradient);
}

.btn-pix.estado-saque {
    background: linear-gradient(135deg, #00D23A, #00b33c);
    animation: pulse-btn 2s ease-in-out infinite;
}

.btn-pix.spinning {
    pointer-events: none;
    opacity: 0.8;
}

/* ============================
   Urgency Alert
   ============================ */
.alerta-expira {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--vermelho-bg);
    border: 1px solid #ffe0e0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.alerta-expira.visible {
    opacity: 1;
    transform: translateY(0);
}

.alerta-expira i {
    font-size: 18px;
    color: var(--vermelho);
    flex-shrink: 0;
}

.alerta-expira p {
    font-size: 12.5px;
    color: var(--texto-medio);
    line-height: 1.4;
}

.timer-text {
    color: var(--vermelho);
    font-weight: 800;
    animation: pulse-alert 1.5s ease-in-out infinite;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    width: 58px;
    text-align: center;
}

/* ============================
   Task Cards
   ============================ */
.tarefa-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.tarefa-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.tarefa-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff3e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tarefa-icon-wrap i {
    font-size: 20px;
    color: var(--laranja);
}

.tarefa-icon-wrap.icon-green {
    background: var(--verde-claro-bg);
}

.tarefa-icon-wrap.icon-green i {
    color: var(--verde);
}

.tarefa-titulo {
    font-size: 14px;
    font-weight: 700;
    color: var(--texto-escuro);
    line-height: 1.3;
}

.tarefa-pontos {
    font-size: 13px;
    font-weight: 700;
    color: var(--verde-texto);
    margin-top: 2px;
}

.tarefa-sub {
    font-size: 12.5px;
    color: var(--texto-cinza);
    margin-top: 2px;
    line-height: 1.4;
}

.tarefa-sub strong {
    color: var(--verde-texto);
    font-weight: 700;
}

/* Badge Concluído */
.badge-concluido {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--verde-badge);
    color: var(--verde-texto);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.check-icon {
    font-size: 14px;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card.visible .check-icon {
    transform: scale(1);
}

/* Task Completed Box */
.task-completed-box {
    margin-top: 12px;
    background: var(--verde-claro-bg);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--verde-texto);
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-completed-box i {
    font-size: 16px;
}

/* ============================
   Progress Bars
   ============================ */
.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.progress-bar-bg {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--laranja-gradient);
    border-radius: 10px;
    transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-fill.fill-green {
    background: linear-gradient(135deg, #00D23A, #00b33c);
}

.card.visible .progress-fill {
    width: 100%;
}

.progress-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--texto-cinza);
    white-space: nowrap;
}

/* ============================
   Footer Section (FAQ & Support)
   ============================ */
.footer-section {
    background: var(--branco);
    border-radius: var(--radius);
    padding: 30px 20px 40px;
    margin-bottom: 24px;
    box-shadow: var(--sombra-card);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--texto-escuro);
    text-align: center;
    margin-bottom: 8px;
}

/* Bank Logos Row */
.bank-logos-container {
    text-align: center;
    margin-bottom: 8px;
}

.bank-logos-title {
    font-size: 13px;
    color: var(--texto-medio);
    margin-bottom: 12px;
    font-weight: 600;
}

.bank-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bank-box {
    width: 52px;
    height: 52px;
    background: #f4f5f7;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.bank-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* FAQ Container */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f9f9fb;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: #ff9d5c;
    background: #fffdfb;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.08);
}

.faq-question {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--texto-escuro);
    cursor: pointer;
    user-select: none;
}

.faq-question i {
    font-size: 20px;
    color: var(--laranja);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 16px 16px;
}

.faq-answer p {
    font-size: 13.5px;
    color: var(--texto-medio);
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* Support Container */
.support-container {
    background: linear-gradient(135deg, #fff3e0, #fff8f0);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    border: 1px dashed rgba(255, 106, 0, 0.3);
    margin-top: 12px;
}

.support-icon {
    font-size: 32px;
    color: var(--laranja);
    margin-bottom: 12px;
    display: inline-block;
    background: #fff;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.15);
}

.support-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--texto-escuro);
    margin-bottom: 6px;
}

.support-text {
    font-size: 13px;
    color: var(--texto-medio);
    margin-bottom: 16px;
    line-height: 1.4;
}

.support-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--laranja);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid var(--laranja);
    transition: var(--transition);
}

.support-email:hover {
    background: var(--laranja);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.2);
}

/* Legal Container */
.legal-container {
    text-align: center;
    margin-top: 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.legal-container p {
    font-size: 12px;
    color: var(--texto-cinza);
    margin-bottom: 8px;
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legal-links a {
    color: var(--texto-cinza);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--laranja);
    text-decoration: underline;
}

.legal-links span {
    color: #ddd;
}

/* ============================
   Sticky Footer
   ============================ */
.footer-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--branco);
    padding: 14px 16px 18px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 200;
    text-align: center;
}

.btn-pix {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 16px 24px;
    background: var(--laranja-gradient);
    color: var(--branco);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    font-family: inherit;
    animation: pulse-btn 2.5s ease-in-out infinite;
}

.btn-pix::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer-sweep 3s ease-in-out infinite;
}

.btn-pix:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.45);
}

.btn-pix:active {
    transform: scale(0.98);
}

.btn-pix-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-roleta-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.btn-pix .bx-chevron-right {
    font-size: 20px;
    margin-left: 4px;
}

.footer-seguro {
    font-size: 11.5px;
    color: var(--texto-cinza);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.footer-seguro i {
    font-size: 14px;
    color: var(--verde);
}

/* ============================
   Modal Roleta
   ============================ */
.modal-roleta {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(30, 15, 0, 0.85) 0%, rgba(0, 0, 0, 0.92) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow: hidden;
}

/* Floating golden particles — layer 1 */
.modal-roleta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255,215,0,0.7) 50%, transparent 100%),
        radial-gradient(2px 2px at 25% 60%, rgba(255,215,0,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 40% 10%, rgba(255,180,0,0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 55% 80%, rgba(255,215,0,0.5) 50%, transparent 100%),
        radial-gradient(2px 2px at 70% 35%, rgba(255,200,0,0.6) 50%, transparent 100%),
        radial-gradient(3px 3px at 85% 70%, rgba(255,215,0,0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 15% 90%, rgba(255,180,0,0.5) 50%, transparent 100%),
        radial-gradient(2px 2px at 90% 15%, rgba(255,215,0,0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 50% 45%, rgba(255,200,0,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 30% 75%, rgba(255,215,0,0.5) 50%, transparent 100%);
    animation: float-particles-up 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Floating golden particles — layer 2 (offset) */
.modal-roleta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 5% 50%, rgba(255,215,0,0.5) 50%, transparent 100%),
        radial-gradient(3px 3px at 20% 30%, rgba(255,180,0,0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 45% 65%, rgba(255,215,0,0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 60% 15%, rgba(255,200,0,0.5) 50%, transparent 100%),
        radial-gradient(2px 2px at 75% 85%, rgba(255,215,0,0.4) 50%, transparent 100%),
        radial-gradient(3px 3px at 95% 45%, rgba(255,180,0,0.5) 50%, transparent 100%),
        radial-gradient(2px 2px at 35% 95%, rgba(255,215,0,0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 80% 25%, rgba(255,200,0,0.4) 50%, transparent 100%);
    animation: float-particles-up 18s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.modal-roleta.aberto {
    opacity: 1;
    visibility: visible;
}

.roleta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.roleta-titulo {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(90deg, #FFD700, #FF6A00, #FFD700, #FF6A00);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(255, 165, 0, 0.4));
    letter-spacing: 0.5px;
}

.roleta-wheel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Radial glow behind the wheel */
.roleta-wheel-wrap::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 40%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.seta-indicadora {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 28px solid #FFD700;
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)) drop-shadow(0 3px 6px rgba(0,0,0,0.4));
    animation: pointer-pulse 1.5s ease-in-out infinite;
}

#roleta-canvas {
    border-radius: 50%;
    box-shadow: none;
    transition: box-shadow 0.4s ease;
}

#roleta-canvas.roleta-canvas-glow {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.7), 0 0 80px rgba(255, 106, 0, 0.35);
}

.resultado-giro {
    font-size: 28px;
    font-weight: 900;
    color: #FFD700;
    text-align: center;
    min-height: 40px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 2px 8px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resultado-giro i {
    vertical-align: middle;
    margin-right: 6px;
    font-size: 1.1em;
}

.resultado-giro.mostrar {
    opacity: 1;
    transform: scale(1);
    animation: result-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resultado-giro.perda {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.4), 0 2px 8px rgba(0,0,0,0.4);
}

.resultado-giro.bonus {
    color: #00D23A;
    text-shadow: 0 0 10px rgba(0, 210, 58, 0.5), 0 2px 8px rgba(0,0,0,0.4);
}

.resultado-giro.jackpot {
    font-size: 36px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: result-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), gradient-shift 2s ease infinite;
    filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.6));
}

.btn-girar-modal {
    background: var(--laranja-gradient);
    color: var(--branco);
    border: none;
    padding: 18px 56px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
    animation: btn-glow-pulse 2s ease-in-out infinite;
}

.btn-girar-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: shimmer-sweep 2.5s ease-in-out infinite;
}

.btn-girar-modal:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 32px rgba(255, 102, 0, 0.6), 0 0 50px rgba(255, 106, 0, 0.2);
}

.btn-girar-modal:active {
    transform: scale(0.97);
}

.btn-girar-modal:disabled {
    opacity: 0.5;
    pointer-events: none;
    animation: none;
}

@media (min-width: 500px) {
    #roleta-canvas {
        width: 360px;
        height: 360px;
    }
}

/* ============================
   Toast Notification
   ============================ */
.toast-saque {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--branco);
    border-radius: 50px;
    padding: 10px 18px 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 340px;
    width: max-content;
}

.toast-saque.show {
    top: 70px;
}

.toast-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--verde-claro-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-avatar i {
    font-size: 18px;
    color: var(--verde);
}

.toast-nome {
    font-size: 13px;
    font-weight: 700;
    color: var(--texto-escuro);
}

.toast-nome i {
    color: var(--laranja);
    font-size: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.toast-msg {
    font-size: 11.5px;
    color: var(--texto-cinza);
}

.toast-dot {
    width: 8px;
    height: 8px;
    background: var(--verde);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ============================
   Keyframe Animations
   ============================ */
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer-sweep {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

@keyframes pulse-alert {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes spin-icon {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes shake-alert {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

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

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes pointer-pulse {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(255,215,0,0.6)) drop-shadow(0 3px 6px rgba(0,0,0,0.4)); }
    50% { filter: drop-shadow(0 0 14px rgba(255,215,0,1)) drop-shadow(0 3px 6px rgba(0,0,0,0.4)); }
}

@keyframes btn-glow-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255,102,0,0.4); }
    50% { box-shadow: 0 4px 30px rgba(255,102,0,0.7), 0 0 50px rgba(255,106,0,0.25); }
}

@keyframes float-particles-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100vh); }
}

@keyframes result-pop {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.15); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ============================
   Responsive
   ============================ */
@media (min-width: 500px) {
    .main-container {
        padding: 20px;
    }

    .card {
        padding: 22px;
    }

    #saldo-valor {
        font-size: 36px;
    }
}

@media (max-width: 360px) {
    #saldo-valor {
        font-size: 26px;
    }

    .concluido-valor {
        font-size: 20px;
    }

    .btn-pix {
        font-size: 14px;
        padding: 14px 18px;
    }
}

/* ============================
   Jackpot Overlay Animations
   ============================ */
.jackpot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9) 0%, rgba(218, 165, 32, 0.95) 50%, rgba(153, 111, 8, 0.98) 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.jackpot-overlay.active {
    opacity: 1;
    pointer-events: all;
    animation: jackpot-bg-pulse 2s infinite alternate;
}

.jackpot-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 15deg,
        rgba(255, 255, 255, 0.3) 15deg 30deg
    );
    transform: translate(-50%, -50%);
    animation: rotate-rays 20s linear infinite;
    z-index: -1;
}

.jackpot-text-container {
    text-align: center;
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.jackpot-overlay.active .jackpot-text-container {
    transform: scale(1);
}

.jackpot-title {
    font-size: clamp(36px, 12vw, 54px);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px #FFD700, 0 0 40px #FFA500, 2px 4px 10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #FFFFE0, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}

.jackpot-amount {
    font-size: clamp(32px, 10vw, 64px);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px #00FF00, 0 0 60px #008000, 3px 6px 15px rgba(0,0,0,0.6);
    background: linear-gradient(to bottom, #e0ffe0, #00ff00, #008000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 6px 15px rgba(0, 0, 0, 0.6));
    animation: jackpot-bounce 1s infinite alternate;
}

.jackpot-close {
    margin-top: 40px;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(255, 165, 0, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse-btn 2s infinite;
}

.jackpot-close:active {
    transform: scale(0.95);
}

@keyframes rotate-rays {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes jackpot-bg-pulse {
    0% { background: radial-gradient(circle, rgba(255, 215, 0, 0.9) 0%, rgba(218, 165, 32, 0.95) 50%, rgba(153, 111, 8, 0.98) 100%); }
    100% { background: radial-gradient(circle, rgba(255, 235, 100, 0.95) 0%, rgba(255, 140, 0, 0.95) 50%, rgba(139, 69, 19, 0.98) 100%); }
}

@keyframes jackpot-bounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-15px) scale(1.05); }
}

/* ============================
   Modal Entry (Boas-vindas)
   ============================ */
.modal-entry {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.modal-entry.aberto {
    opacity: 1;
    visibility: visible;
}

.modal-entry-content {
    background: linear-gradient(180deg, #fff8f0 0%, #ffffff 40%);
    border-radius: 22px;
    padding: 70px 26px 28px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,106,0,0.08);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
}

.modal-entry.aberto .modal-entry-content {
    transform: scale(1) translateY(0);
}

/* Wrapper to keep image centered without animating float */
.modal-entry-img-wrap {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.modal-entry-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(255, 106, 0, 0.45));
}

.modal-entry-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--texto-escuro);
    margin-bottom: 10px;
    line-height: 1.25;
}

.modal-entry-desc {
    font-size: 13.5px;
    color: #777;
    margin-bottom: 22px;
    line-height: 1.55;
    padding: 0 8px;
}

.modal-entry-desc strong {
    color: var(--laranja);
    font-weight: 700;
}

.modal-entry-highlight {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #00c853, #009624);
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
    white-space: nowrap;
}

.modal-entry-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--texto-medio);
    margin-bottom: 26px;
}

.timer-text-label {
    margin-right: 6px;
}

.timer-box {
    background: linear-gradient(180deg, #ff1a1a, #cc0000);
    color: white;
    font-weight: 900;
    padding: 0;
    border-radius: 6px;
    font-size: 15px;
    width: 26px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(200,0,0,0.3), inset 0 -2px 0 rgba(0,0,0,0.15);
    font-family: 'Inter', monospace;
}

.btn-entry-girar {
    background: var(--laranja-gradient);
    color: white;
    font-size: 18px;
    font-weight: 800;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse-btn 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-entry-girar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer-sweep 3s ease-in-out infinite;
}

.btn-entry-girar:active {
    transform: scale(0.96);
}

/* ============================
   Modal PIX Saque
   ============================ */
.modal-pix {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-pix.aberto {
    opacity: 1;
    visibility: visible;
}

.modal-pix-content {
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-pix.aberto .modal-pix-content {
    transform: scale(1) translateY(0);
}

.modal-pix-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.modal-pix-close:hover {
    color: #333;
}

.modal-pix-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--texto-escuro);
    margin-bottom: 12px;
}

.modal-pix-header {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--texto-medio);
    margin-bottom: 24px;
    font-weight: 500;
}

.modal-pix-separator {
    margin: 0 6px;
    color: #ccc;
}

.modal-pix-badge {
    color: #4CAF50;
    font-weight: 700;
}

.modal-pix-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-pix-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--texto-medio);
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.modal-pix-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--texto-escuro);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.modal-pix-input:focus {
    border-color: var(--laranja);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
    background: #fff;
}

.modal-pix-input::placeholder {
    color: #bbb;
}

.pix-tipo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.pix-tipo-btn {
    padding: 10px 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--texto-medio);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pix-tipo-btn:hover {
    border-color: #ff9d5c;
    color: var(--laranja);
}

.pix-tipo-btn.active {
    border-color: var(--laranja);
    color: var(--laranja);
    background: #fff8f0;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.08);
}

.btn-validar-pix {
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: var(--laranja-gradient);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-validar-pix:active {
    transform: scale(0.97);
}

.modal-pix-disclaimer {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
}

/* Validation Status Box */
.pix-validation-status {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.pix-status-loading,
.pix-status-success {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pix-spinner {
    width: 36px;
    height: 36px;
    border: 3.5px solid #f0f0f0;
    border-top-color: var(--laranja);
    border-radius: 50%;
    animation: pix-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes pix-spin {
    to { transform: rotate(360deg); }
}

.pix-check-circle {
    width: 36px;
    height: 36px;
    background: #e8f5e9;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pix-check-circle i {
    font-size: 20px;
    color: #4CAF50;
    font-weight: 700;
}

.pix-status-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--texto-escuro);
    margin-bottom: 2px;
}

.pix-status-title.success {
    color: #2e7d32;
}

.pix-status-sub {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

.pix-validation-status.success-state {
    background: #f0faf0;
    border-color: #c8e6c9;
}

/* Button states */
.btn-validar-pix.validando {
    opacity: 0.7;
    pointer-events: none;
}

.btn-validar-pix.solicitar {
    background: var(--laranja-gradient);
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
