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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none; 
}

img[onclick], img[role="button"], img.clickable {
  pointer-events: auto;
}

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}


.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    scrollbar-width: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
}

.notification-index {z-index: 9999999 !important}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.main-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #6366f1;
    text-decoration: none;
}

.user-area {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a, .dropdown-content button {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-content a:hover, .dropdown-content button:hover {
    background: #f5f5f5;
}

.btn-login {
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}

/* Cards */
.rodadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-banner {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0,0,0,0.7);
    color: white;
}

.card-content {
    padding: 16px;
}

.card-content h3 {
    margin-bottom: 8px;
}

.gerente, .valor-aposta {
    color: #666;
    margin: 5px 0;
}

.premio {
    font-size: 18px;
    font-weight: bold;
    color: #d97706;
    margin: 10px 0;
}

.btn-view {
    display: inline-block;
    background: #6366f1;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
}

/* Filtros */
.filters {
    margin-bottom: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 20px;
}

.close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-body input, .modal-body select, .modal-body textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-footer {
    text-align: center;
    margin-top: 15px;
}

/* Rodada detalhes */
.rodada-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
}

.status-badge.aguardando { background: #10b98120; color: #10b981; }
.status-badge.ativa { background: #f59e0b20; color: #f59e0b; }
.status-badge.finalizada { background: #6b728020; color: #6b7280; }

.info-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item .label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.info-item.destaque {
    background: #fef3c7;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.btn-apostar {
    width: 100%;
    padding: 15px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
}

.apostas-section, .minhas-apostas {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.ranking-item.top-1 { background: #fef3c7; }
.ranking-item.top-2 { background: #f3f4f6; }
.ranking-item.top-3 { background: #e0e7ff; }

.posicao { width: 50px; font-weight: bold; }
.jogador { flex: 1; }
.acertos { width: 100px; }

.numeros {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.numero {
    display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 14px;
}

.numero.acertou {
    background: #10b981;
    color: white;
}

.numeros-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.numero-btn {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.numero-btn:hover {
    border-color: #6366f1;
}

.numero-btn.selecionado {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.ganhadores-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.ganhador-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.ganhador-nome {
    font-size: 18px;
    font-weight: bold;
    color: #d97706;
}

.ganhador-premio {
    font-size: 20px;
    font-weight: bold;
    color: #10b981;
    margin-top: 10px;
}

.minha-aposta-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.aposta-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status.pago { color: #10b981; }
.status.pendente { color: #f59e0b; }

.btn-pagar {
    margin-top: 10px;
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Footer */
.main-footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .posicao, .acertos {
        width: auto;
    }
    
    .numeros-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}
.aposta-id {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.acertos-detalhe {
    font-size: 11px;
    color: #6b7280;
    margin-left: 5px;
}

.ranking-info {
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #e0e7ff;
    border-radius: 8px;
    font-size: 13px;
    color: #3730a3;
}

.ranking-info small {
    display: block;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .aposta-id {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .acertos-detalhe {
        display: block;
        margin-left: 0;
        font-size: 10px;
    }
}