/* CSS DARK CASINO (CASMIRO STYLE) */
:root {
    --bg-cor: #121212;
    --bg-card: #1E1E1E;
    --texto-dourado: #F5C542;
    --texto-branco: #FFFFFF;
    --gradiente-btn: linear-gradient(90deg, #FF4B1F 0%, #FF9068 100%);
}

/* Reset Global */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #121212 !important;
    /* Forçar fundo preto */
    font-family: 'Inter', sans-serif;
    color: white;
}

body {
    padding-bottom: 80px;
    /* Espaço navbar */
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

/* Status Bar */
.status-bar {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.status-text {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 14px;
}


.tag-popular {
    background: #F5C542;
    color: black;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-new {
    background: #00E5FF;
    color: black;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Navbar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 10px;
    gap: 4px;
}

.nav-item.active {
    color: white;
}

.nav-item.active i {
    color: #F5C542;
}

.nav-fab-wrapper {
    position: relative;
    top: -24px;
}

.nav-fab {
    width: 56px;
    height: 56px;
    background: var(--gradiente-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 4px solid #141414;
    box-shadow: 0 4px 15px rgba(255, 75, 31, 0.4);
    color: white;
}

.nav-fab-label {
    position: absolute;
    bottom: -18px;
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: flex-end;
    /* Mobile bottom sheet style */
}

.modal-content {
    background: #1E1E1E;
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 0;
    animation: slideUp 0.3s ease;
    color: white;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Grid Números */
.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 4px;
}

.number-btn {
    aspect-ratio: 1;
    background: #2A2A2A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn.selected {
    background: #F5C542;
    color: black;
    border-color: #F5C542;
}

.number-btn.vermelho.selected {
    background: #FF4444;
    color: white;
    border-color: #FF4444;
}

.action-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    background: var(--gradiente-btn);
    color: white;
}

/* CSS UPDATE - TIER SYSTEM & PROGRESS */

/* Painel de Status (Nível) */
.tier-panel {
    background: linear-gradient(180deg, #1E1E1E 0%, #141414 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    margin-top: 16px;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tier-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-badge.amador {
    background: #333;
    color: #aaa;
    border: 1px solid #444;
}

.tier-badge.guerreiro {
    background: linear-gradient(90deg, #888 0%, #333 100%);
    color: white;
    border: 1px solid #777;
}

.tier-badge.rei {
    background: linear-gradient(90deg, #F5C542 0%, #FF8C00 100%);
    color: black;
    border: 1px solid #F5C542;
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
}

.progress-container {
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    margin: 12px 0;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    background: var(--gradiente-btn);
    transition: width 0.5s ease;
    width: 0%;
}

.tier-info {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* Cards de Depósito Gamificado */
.deposit-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deposit-card {
    background: #2A2A2A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.deposit-card:active {
    transform: scale(0.98);
}

.deposit-card.featured {
    border-color: #F5C542;
    background: rgba(245, 197, 66, 0.05);
}

.deposit-card.featured::after {
    content: 'MELHOR CUSTO-BENEFÍCIO';
    position: absolute;
    top: -8px;
    right: 12px;
    background: #F5C542;
    color: black;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.deposit-value {
    font-size: 18px;
    font-weight: 700;
    min-width: 80px;
    color: white;
}

.deposit-desc {
    flex: 1;
}

.deposit-perk {
    font-size: 10px;
    color: #F5C542;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.deposit-label {
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

/* Modal Bloqueio */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

/* === TEMA MEGA MILLIONS OURO === */
.tema-mega-ouro .number-btn.vermelho {
    border-color: rgba(245, 197, 66, 0.2);
}

.tema-mega-ouro .number-btn.vermelho.selected,
.tema-mega-ouro .ball.selected-red {
    background: linear-gradient(135deg, #F5C542 0%, #B8860B 100%);
    color: black;
    border-color: #F5C542;
    box-shadow: 0 0 15px rgba(245, 197, 66, 0.5);
}

/* Badge de Modo na Sheet */
.mode-selector-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.mode-selector {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.mode-btn {
    flex: 1;
    padding: 10px 4px;
    border-radius: 10px;
    background: #2A2A2A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #888;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mode-btn.active {
    color: white;
}

.mode-btn.active.normal {
    background: rgba(245, 197, 66, 0.1);
    border-color: #F5C542;
    color: #F5C542;
}

.mode-btn.active.elite {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.mode-btn.active.king {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.mode-price {
    font-size: 9px;
    opacity: 0.8;
}

/* Ajustes no Grid para responsividade */
.number-grid {
    grid-template-columns: repeat(7, 1fr) !important;
    /* 7 colunas fica melhor para pools grandes */
}

@media (max-width: 360px) {
    .number-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}