:root {
    --bg-primary: #0B0F19;
    --bg-secondary: #111827;
    --bg-card: rgba(31, 41, 55, 0.6);
    --primary: #06b6d4;
    --primary-glow: rgba(6, 182, 212, 0.3);
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.3);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --danger: #ef4444;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100dvh; /* dvh previne cortes em barras de navegador mobile */
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: calc(100px + env(safe-area-inset-bottom)); /* Respeita a barra do iPhone */
}

body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, -2%); }
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 24px);
}

.header {
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0 16px;
    text-align: center;
    position: relative;
    z-index: 50;
}

.header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #fff 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    max-width: 600px;
    margin: 0 auto 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.wallet-balance-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px var(--success-glow);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 60;
}

.wallet-balance-badge.visible { display: flex !important; }
.wallet-balance-badge:hover { transform: translateY(-2px); filter: brightness(1.1); }

.header-buttons {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    justify-items: center;
    margin-bottom: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px; /* Aumentado levemente para melhor área de toque */
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), #0891b2); color: #fff; box-shadow: 0 4px 20px var(--primary-glow); }
.btn-success { background: linear-gradient(135deg, var(--success), #059669); color: #fff; box-shadow: 0 4px 20px var(--success-glow); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); border: 1px solid var(--border); padding: 8px 14px; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }

/* ✅ ACESSIBILIDADE PREMIUM: Foco visível elegante */
.btn:focus-visible, .number-btn:focus-visible, input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.draw-card {
    width: 100%;
    max-width: 100%;
    margin: 8px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.draw-image { width: 100%; height: auto; display: block; object-fit: cover; }
.draw-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02));
    border: 2px dashed rgba(245, 158, 11, 0.3);
    color: var(--text-secondary);
    gap: 12px;
}

.prize-section { padding: 20px 0; text-align: center; }
.prize-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 12px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    aspect-ratio: 16/9;
}
.prize-image { width: 100%; height: 100%; object-fit: cover; }
.prize-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    color: var(--text-secondary);
    gap: 12px;
}
.prize-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    color: var(--text-primary);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-badge {
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.price-image { width: 100%; height: auto; display: block; object-fit: cover; }
.price-placeholder {
    width: 100%;
    aspect-ratio: 3/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 2px dashed rgba(16, 185, 129, 0.3);
    color: var(--text-secondary);
    gap: 12px;
}

.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
}
.stat-number { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.progress-section { margin: 20px 0; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; }
.progress-track { height: 8px; background: rgba(255,255,255,0.05); border-radius: var(--radius-full); overflow: hidden; position: relative; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.winner-section { padding: 24px 0; display: none; }
.winner-section.active { display: block; animation: fadeIn 0.6s ease; }
.winner-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.03));
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}
.winner-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.winner-content { position: relative; z-index: 1; }
.winner-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.winner-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 1px;
    font-weight: 700;
    white-space: nowrap;
}
.winner-details { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.winner-name { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.winner-number-badge {
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: #000;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.winner-prize-info { font-size: 1rem; color: var(--text-secondary); margin-top: 4px; }
.winner-prize-info strong { color: var(--success); font-size: 1.4rem; margin-left: 6px; font-family: 'Space Grotesk', sans-serif; }
.winner-date-info { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; margin-top: 8px; opacity: 0.8; }

.winner-receipt-container {
    margin-top: 24px;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease;
}
.receipt-label {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.receipt-frame {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--success);
    border-radius: var(--radius-md);
    padding: 8px;
    position: relative;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}
.receipt-image { width: 100%; border-radius: 8px; display: block; object-fit: cover; }
.receipt-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.1);
}

.numbers-section { padding: 20px 0; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; text-align: center; margin-bottom: 6px; white-space: nowrap; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 12px; font-size: 0.85rem; }
.legend { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text-secondary); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid; }
.legend-dot.available { border-color: var(--primary); background: transparent; }
.legend-dot.selected { background: var(--success); border-color: var(--success); }
.legend-dot.pending { background: var(--accent); border-color: var(--accent); }
.legend-dot.sold { background: var(--danger); border-color: var(--danger); }

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.number-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.number-btn:hover:not(.sold):not(.pending) { border-color: var(--primary); background: rgba(6, 182, 212, 0.1); transform: translateY(-2px); }
.number-btn.selected { background: var(--success); border-color: var(--success); color: #000; font-weight: 700; box-shadow: 0 4px 12px var(--success-glow); }
.number-btn.sold { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: rgba(239, 68, 68, 0.5); cursor: not-allowed; text-decoration: line-through; }
.number-btn.pending { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: var(--accent); cursor: not-allowed; }

.participants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.participant-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}
.participant-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.participant-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; flex-shrink: 0; }
.participant-info { flex: 1; min-width: 0; overflow: hidden; }
.participant-name { font-weight: 600; color: var(--text-primary); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.participant-numbers { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.participant-date { font-size: 0.65rem; color: var(--text-secondary); opacity: 0.7; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.selection-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom)); /* ✅ Safe area iPhone */
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.selection-panel.active { transform: translateY(0); }
.selected-numbers-display { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; max-height: 60px; overflow-y: auto; }
.selected-tag {
    background: var(--success);
    color: #000;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.panel-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.total-display { font-size: 0.9rem; }
.total-display span { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--success); }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 100%;
    max-width: 450px;
    max-height: 90dvh; /* ✅ dvh para evitar corte em mobile */
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; text-align: center; margin-bottom: 20px; color: var(--text-primary); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); background: rgba(6, 182, 212, 0.05); }

/* ✅ CORREÇÃO DO AUTOFILL DO NAVEGADOR (Fundo branco/amarelo) */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover, 
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-secondary) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.step-indicator { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.step {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
    font-size: 0.9rem;
}
.step.active { background: var(--primary); color: #000; border-color: var(--primary); }
.step.completed { background: var(--success); color: #000; border-color: var(--success); }
.checkout-step { display: none; animation: fadeIn 0.3s; }
.checkout-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.pix-section { background: rgba(6, 182, 212, 0.05); border: 1px solid rgba(6, 182, 212, 0.2); border-radius: var(--radius-md); padding: 16px; text-align: center; margin: 16px 0; }
.pix-qr-code { width: 180px; height: 180px; margin: 12px auto; background: #fff; padding: 10px; border-radius: var(--radius-sm); }
.pix-qr-code img { width: 100%; height: 100%; object-fit: contain; }
.pix-key { font-family: monospace; font-size: 0.7rem; background: rgba(0,0,0,0.3); padding: 10px; border-radius: var(--radius-sm); word-break: break-all; margin: 10px 0; color: var(--accent); max-height: 80px; overflow-y: auto; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; justify-content: center; }

.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-secondary);
    border: 1px solid var(--success);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 300;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 90%;
    text-align: center;
    pointer-events: none; /* Evita clique acidental no toast */
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--danger); }

.whatsapp-float {
    position: fixed;
    bottom: 16px; right: 16px;
    width: 56px; height: 56px; /* Aumentado para padrão de toque de 48px+ */
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #fff;
    font-size: 1.5rem;
    z-index: 99;
    transition: all 0.3s;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(5deg); }

.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 250; }
.confetti { position: absolute; width: 8px; height: 8px; top: -10px; animation: confettiFall 3s ease-in forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

.footer { text-align: center; padding: 30px 0 80px; color: var(--text-secondary); font-size: 0.8rem; }
.sponsors-logos { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 16px 0; opacity: 0.6; }
.sponsor-logo { height: 40px; width: auto; object-fit: contain; filter: grayscale(100%) brightness(200%); transition: 0.3s; }
.sponsor-logo:hover { filter: grayscale(0%) brightness(100%); opacity: 1; }

.bingo-roulette-section { padding: 30px 0; display: none; }
.bingo-roulette-section.active { display: block; animation: fadeIn 0.6s ease; }
.bingo-roulette-container {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.4);
}
.bingo-roulette-container::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}
.bingo-roulette-content { position: relative; z-index: 1; }
.bingo-roulette-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}
.bingo-roulette-subtitle { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 25px; }

.bingo-globe-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 20px auto;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), rgba(0,0,0,0.4));
    border-radius: 50%;
    border: 4px solid rgba(245, 158, 11, 0.6);
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.6), 0 0 50px rgba(245, 158, 11, 0.3);
}
.bingo-ball {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.4), inset 5px 5px 10px rgba(255,255,255,0.3), 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s;
    pointer-events: none;
}
.bingo-ball.spinning { animation: spinBall 0.5s linear infinite; }
@keyframes spinBall {
    0% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(90deg) translateX(20px); }
    50% { transform: rotate(180deg) translateX(0); }
    75% { transform: rotate(270deg) translateX(-20px); }
    100% { transform: rotate(360deg) translateX(0); }
}
.bingo-ball.winner {
    width: 110px;
    height: 110px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #000;
    box-shadow: 0 0 50px rgba(255,215,0,0.9), inset -10px -10px 20px rgba(0,0,0,0.2), inset 10px 10px 20px rgba(255,255,255,0.4);
    animation: winnerPulse 1s ease-in-out infinite;
    z-index: 100;
}
@keyframes winnerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.bingo-globe-container.shaking { animation: shakeGlobe 0.5s ease-in-out infinite; }
@keyframes shakeGlobe {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, 10px) rotate(-5deg); }
    50% { transform: translate(10px, -10px) rotate(5deg); }
    75% { transform: translate(-10px, -10px) rotate(-3deg); }
}
.bingo-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    animation: pulseLive 2s infinite;
}
@keyframes pulseLive { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.bingo-winner-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 2px solid var(--success);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    display: none;
    animation: winnerSlideIn 0.5s ease;
}
@keyframes winnerSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.bingo-winner-info.active { display: block; }
.bingo-winner-info h4 { color: var(--success); margin-bottom: 10px; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bingo-winner-info p { color: #fff; font-size: 1.5rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.loading-overlay.active { display: flex; }
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(6, 182, 212, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--primary-glow);
}
.loading-spinner.accent { border-top-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-text { color: var(--text-primary); font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; animation: pulse-text 1.5s ease-in-out infinite; }
@keyframes pulse-text { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.loading-subtext { color: var(--text-secondary); font-size: 0.85rem; }

/* ✅ SCROLLBAR PROFISSIONAL (Chrome + Firefox) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) rgba(255,255,255,0.05); }

@media (max-width: 640px) {
    .header { padding: 10px 0 12px; }
    .header h1 { font-size: 1.1rem; }
    .subtitle { font-size: 0.75rem; }
    .wallet-balance-badge { top: 8px; right: 8px; padding: 5px 10px; font-size: 0.75rem; }
    .btn { padding: 6px 12px; font-size: 0.75rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .stat-card { padding: 10px 6px; }
    .stat-number { font-size: 1.2rem; }
    .numbers-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px; }
    .number-btn { font-size: 0.9rem; }
    .modal { padding: 16px 12px; }
    .panel-actions { flex-direction: column; align-items: stretch; }
    body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
    .section-title { font-size: 1.2rem; }
    .prize-section { padding: 16px 0; }
    .header-buttons { gap: 6px; }
    .winner-number-badge { font-size: 1.4rem; padding: 8px 20px; }
    .loading-spinner { width: 50px; height: 50px; }
    .bingo-globe-container { width: 240px; height: 240px; }
    .bingo-ball { width: 38px; height: 38px; font-size: 0.9rem; }
    .bingo-ball.winner { width: 95px; height: 95px; font-size: 2rem; }
}