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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: white;
    min-height: 100vh;
    padding: 0;
    position: relative;
}

#hacker-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background-image: url('https://media.istockphoto.com/id/178786888/pt/foto/nova-unidade-monet%C3%A1ria-brasileira.jpg?s=612x612&w=0&k=20&c=qmkWAlPvs76jXYzCjbH-syVuvdex8W2YyfTCxw7WeUg=');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

#hacker-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
    backdrop-filter: blur(0.5px);
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 15px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.hora-fixa {
    position: fixed;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 30px;
    border: 2px solid #00ff96;
    color: #00ff96;
    font-weight: 800;
    font-size: 1.1em;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.6), inset 0 0 10px rgba(0, 255, 150, 0.2);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0, 255, 150, 0.8);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.card {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(0, 255, 150, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.1), inset 0 0 20px rgba(0, 255, 150, 0.05);
}

.card h3 {
    color: #00ff96;
    margin-bottom: 10px;
    font-size: 0.9em;
    text-shadow: 0 0 10px rgba(0, 255, 150, 0.5);
}

.card-value {
    font-size: 1.4em;
    font-weight: bold;
    margin: 10px 0;
}

.status-btn {
    background: rgba(0, 255, 150, 0.2);
    border: 1px solid #00ff96;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75em;
    font-weight: bold;
    color: #00ff96;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 5px;
    display: inline-block;
}

.status-btn:hover {
    background: rgba(0, 255, 150, 0.5);
    transform: scale(1.02);
}

.placar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.placar-item {
    text-align: center;
    padding: 12px 5px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

.placar-item.win-primeira { border: 2px solid #00ff00; background: rgba(0, 255, 0, 0.1); }
.placar-item.win-gale1 { border: 2px solid #00cc00; background: rgba(0, 204, 0, 0.1); }
.placar-item.win-gale2 { border: 2px solid #009900; background: rgba(0, 153, 0, 0.1); }
.placar-item.win-branco { border: 2px solid #ffffff; background: rgba(255, 255, 255, 0.1); }
.placar-item.loss { border: 2px solid #ff0000; background: rgba(255, 0, 0, 0.1); }

.placar-emoji { font-size: 1.2em; margin-bottom: 3px; }
.placar-emoji img { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
.placar-valor { font-size: 1.4em; font-weight: bold; margin: 3px 0; }
.placar-label { font-size: 0.7em; opacity: 0.8; }

.placar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.stat-item {
    text-align: center;
    padding: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.75em;
}

.sinal-container {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 2px solid #00ff96;
    border-radius: 20px;
    padding: 25px 20px;
    margin: 15px 0;
    text-align: center;
    display: none;
    animation: sinalPulse 2s infinite;
    box-shadow: 0 0 30px rgba(0, 255, 150, 0.3);
}

.sinal-ativo { display: block; }

.sinal-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.logo-sinal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-sinal-imagem {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,255,150,0.5));
    background: transparent;
}

.logo-sinal-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #00ff96;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seta-direcao {
    font-size: 2.5em;
    color: #ffaa00;
    font-weight: bold;
    text-shadow: 0 0 10px #ffaa00;
    animation: setaPisca 1s ease-in-out infinite;
}

.logo-protecao-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-protecao-imagem {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 0 10px rgba(255,170,0,0.5));
}

.logo-protecao-label {
    font-size: 0.9em;
    font-weight: bold;
    color: #ffaa00;
    background: rgba(0,0,0,0.5);
    padding: 4px 12px;
    border-radius: 20px;
}

@keyframes setaPisca {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(8px); }
}

@keyframes sinalPulse {
    0% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 0, 0.8); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.5); }
}

.gale-status {
    font-size: 1.2em;
    margin: 10px 0;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    font-weight: bold;
}

.gale-primeira { background: #ffaa00; color: #000; box-shadow: 0 0 20px #ffaa00; }
.gale-segunda { background: #ff4444; color: #fff; box-shadow: 0 0 20px #ff0000; animation: galePerigo 1s infinite; }

@keyframes galePerigo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.contador-branco-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0 15px 0;
    border: 1px solid #ffffff;
}

.contador-branco-principal {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.contador-item {
    flex: 1;
}

.contador-valor {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.contador-label {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 3px;
}

.historico-branco {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.historico-branco-titulo {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.historico-branco-titulo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.historico-branco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}

.branco-card {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.3);
}

.branco-card img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.branco-card span {
    font-size: 0.75em;
    color: white;
    font-weight: bold;
}

.resultados-grade {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 10px 5px;
    background: rgba(0,0,0,0.3);
    border-radius: 0;
    max-height: 600px;
    overflow-y: auto;
    width: 100%;
    direction: rtl;
}

.resultado-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 3px;
    width: 100%;
    direction: ltr;
}

.resultado-quadrado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9em;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.resultado-hora { 
    font-size: 0.65em; 
    color: #999; 
    font-weight: bold; 
    background: rgba(255,255,255,0.05); 
    padding: 2px; 
    border-radius: 3px; 
    width: 100%; 
    text-align: center;
}

.resultado-quadrado.red { background-image: url('https://blaze.bet.br/images/roulette/red-0.svg'); color: white; }
.resultado-quadrado.black { background-image: url('https://blaze.bet.br/images/roulette/black-0.svg'); color: white; }
.resultado-quadrado.white { background: #f8f9fa; color: #333; border: 2px solid #999; display: flex; align-items: center; justify-content: center; }
.resultado-quadrado.white img { width: 80%; height: 80%; object-fit: contain; }

.btn {
    background: linear-gradient(135deg, #00ff96 0%, #00d4ff 100%);
    color: #000;
    border: 1px solid #00ff96;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin: 10px auto;
    display: block;
    transition: all 0.3s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 255, 150, 0.8); }

.loading { text-align: center; padding: 20px; opacity: 0.7; }

.historico-item {
    background: rgba(255,255,255,0.08);
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px;
    border-left: 4px solid #333;
}

.historico-resultado { display: flex; align-items: center; gap: 10px; }

.cor-sinal { width: 40px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-color: transparent; }
.cor-sinal.preto { background-image: url('https://blaze.bet.br/images/roulette/black-0.svg'); background-color: transparent; }
.cor-sinal.vermelho { background-image: url('https://blaze.bet.br/images/roulette/red-0.svg'); background-color: transparent; }
.cor-sinal.branco { background: #f8f9fa; border: 2px solid #aaa; background-color: transparent; }
.cor-sinal.branco img { width: 70%; height: 70%; object-fit: contain; }

.sinal-resultado { font-size: 1.3em; font-weight: bold; padding: 8px 15px; border-radius: 20px; display: inline-block; }
.resultado-win { background: #00ff00; color: black; }
.resultado-loss { background: #ff0000; color: white; }
.resultado-win-branco { background: linear-gradient(135deg, #ffffff, #f0f0f0); color: #000000; border: 2px solid #ffaa00; }

.historico-data {
    font-size: 0.7em;
    opacity: 0.7;
    margin-bottom: 5px;
    font-family: monospace;
}

.navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(0, 255, 150, 0.3);
    z-index: 50;
    padding: 10px 0;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 8px;
}

.nav-button i { font-size: 1.8em; }
.nav-button span { font-size: 0.8em; }
.nav-button.telegram { color: #0088cc; }
.nav-button.instagram { color: #E4405F; }
.nav-button.home { color: #00ff96; }
.nav-button.whatsapp { color: #25D366; }

@media (max-width: 768px) {
    .logo-sinal-imagem, .logo-protecao-imagem { width: 70px; height: 70px; }
    .seta-direcao { font-size: 1.8em; }
    .sinal-principal { gap: 15px; }
}

.blink-fast {
    animation: blink-animation 0.3s ease-in-out 3;
}

@keyframes blink-animation {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.historico-sinais-container {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.duas-logos-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 12px;
}

.seta-protecao {
    font-size: 1.2em;
    color: #ffaa00;
    font-weight: bold;
}

.branco-protecao {
    background: #ffffff !important;
    border: 2px solid #00ff00;
    background-color: transparent;
}

.branco-protecao img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.protecao-badge {
    font-size: 0.7em;
    margin-top: 6px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ffaa00, #ff6600);
    border-radius: 15px;
    display: inline-block;
    color: #000;
    font-weight: bold;
}

.protecao-branco-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 215, 0, 0.1));
    border-left: 4px solid #ffaa00;
}

.notificacao-sinal {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 340px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 20, 30, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    border: 2px solid #00ff96;
}

.notificacao-sinal.mostrar { transform: translateX(0); }
.notificacao-sinal.fechar { transform: translateX(400px); }
.notificacao-red { border-left: 5px solid #ff4444; }
.notificacao-black { border-left: 5px solid #888888; }
.notificacao-win { border: 2px solid #00ff00; }
.notificacao-loss { border: 2px solid #ff0000; }
.notificacao-protecao-ativa { border: 2px solid #ffaa00; }

.notificacao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.notificacao-titulo { font-weight: bold; font-size: 0.9em; color: #00ff96; }
.notificacao-fechar { background: none; border: none; color: white; font-size: 1.2em; cursor: pointer; }
.notificacao-conteudo { display: flex; align-items: center; gap: 15px; }
.logo-sinal { width: 60px; height: 60px; object-fit: contain; background: transparent; }
.notificacao-cor { font-size: 1.3em; font-weight: bold; }
.notificacao-cor.red { color: #ff4444; }
.notificacao-cor.black { color: #cccccc; }
.notificacao-timer { margin-top: 10px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.timer-bar { height: 100%; width: 100%; background: linear-gradient(90deg, #00ff96, #00ff00); transform-origin: left; animation: timerCountdown 8s linear forwards; }
@keyframes timerCountdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.sound-control {
    position: fixed;
    bottom: 80px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    border: 2px solid #00ff96;
}
.sound-control i { font-size: 1.5em; color: #00ff96; }

.modal-banca {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.modal-banca.active {
    display: flex;
}
.modal-content {
    background: linear-gradient(135deg, #0a0e1f, #0c1225);
    border: 2px solid #00ff96;
    border-radius: 24px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0,255,150,0.3);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff96;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.modal-header h2 {
    color: #00ff96;
    font-size: 1.3em;
}
.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    transition: 0.2s;
}
.modal-close:hover { color: #ff4444; transform: scale(1.1); }
.banca-input-group {
    margin: 15px 0;
}
.banca-input-group label {
    display: block;
    color: #ccc;
    font-size: 0.8em;
    margin-bottom: 5px;
}
.banca-input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid #00ff96;
    color: white;
    font-size: 1em;
}
.banca-valor {
    font-size: 2em;
    font-weight: bold;
    color: #00ff96;
    text-align: center;
    margin: 15px 0;
}
.banca-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
}
.banca-card-small {
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.banca-card-small span:first-child {
    font-size: 0.7em;
    opacity: 0.7;
}
.banca-card-small strong {
    display: block;
    font-size: 1.3em;
    margin-top: 5px;
}
.btn-banca {
    background: linear-gradient(135deg, #00ff96, #00cc77);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}
.btn-banca-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}
.historico-lucro {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
}
.historico-lucro-item {
    font-size: 0.75em;
    padding: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lucro-positivo { color: #00ff96; }
.lucro-negativo { color: #ff6666; }
