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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial', sans-serif;
    background: #1f0a0a; /* Dark Red bg */
    background: radial-gradient(circle at center, #3c0a0a 0%, #100505 100%);
    background-attachment: fixed;
    color: #fff;
    line-height: 1.6;
}

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

header {
    background: rgba(31, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

nav {
    display: flex;
    gap: 30px;
}

main {
    margin-top: 80px;
}

.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/backgrounds/image.png') center/cover no-repeat;
}

.hero-content {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ffd700;
    border-radius: 50px;
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(230, 0, 0, 0.5);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #e60000;
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.4);
}

.btn-hero-primary:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

/* Risk Selector / Mines Selector */
.risk-selector {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto 40px;
    max-width: 800px;
    backdrop-filter: blur(5px);
}

.risk-selector h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 18px;
}

/* New Mines Select Styles */
.mines-select-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mines-select-container.compact-select {
    margin-bottom: 30px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 12px;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mines-label {
    font-weight: bold;
    color: #fff;
    font-size: 18px;
}

.mines-input {
    background: rgba(20, 5, 5, 0.9);
    border: 2px solid #e60000;
    color: #ffd700;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    min-width: 150px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.mines-input:hover, .mines-input:focus {
    background-color: rgba(30, 5, 5, 1);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.mines-input option {
    background: #1f0a0a;
    color: #ffd700;
    padding: 10px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    text-align: left;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.stat-title {
    color: #ffd700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.stat-unit {
    font-size: 24px;
    color: #888;
}

.stat-description {
    font-size: 14px;
    color: #888;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:last-child {
    border: none;
}

.status-label {
    color: #aaa;
}

.status-value {
    font-weight: bold;
}

.status-value.online { color: #ffd700; }
.status-value.active { color: #e60000; }

.btn-primary {
    background: #e60000;
    color: #fff;
    border: none;
    padding: 20px 60px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(230, 0, 0, 0.4);
    transition: all 0.3s;
    width: 100%;
    max-width: 500px;
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    background: #ff0000;
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(230, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
    }
}

/* Sinais Section */
.sinais-section {
    padding: 40px 0 80px;
    background: rgba(0,0,0,0.8);
}

/* Campo Mines 5x5 */
.campo-container {
    background: #1f0a0a;
    border: 4px solid #3c1a1a;
    border-radius: 20px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.campo-jogo-mines {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    aspect-ratio: 1/1;
}

.slot-mines {
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Padrão Xadrez Red */
.slot-mines.light {
    background-color: #4a0a0a;
}

.slot-mines.dark {
    background-color: #350505;
}

.slot-mines:hover {
    filter: brightness(1.2);
}

.slot-mines.revelado {
    background-color: #2a0000; /* Escuro quando revelado */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.bola-mines {
    font-size: 24px;
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.info-sinal {
    margin-top: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-around;
}

.info-item {
    text-align: center;
}

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

.info-item .value {
    font-size: 24px;
    font-weight: 900;
    color: #ffd700;
}

/* Validade */
.validade-section {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.validade-ate {
    font-size: 18px;
    margin-bottom: 15px;
}

.validade-ate span {
    color: #e60000;
    font-weight: bold;
}

.progress-bar {
    height: 8px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ffd700;
    width: 100%;
    transition: width 1s linear;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: #1f0a0a;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 1px solid #e60000;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.modal-steps {
    margin: 20px 0;
}

.step {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    background: #ffd700;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 { color: #ffd700; font-size: 16px; margin-bottom: 5px; }
.step-content p { font-size: 14px; color: #ccc; }

.btn-modal-action {
    background: #e60000;
    color: #fff;
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
    transition: all 0.3s;
}

.btn-modal-action:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

.hidden { display: none; }

/* Mobile */
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .slot-mines { border-radius: 4px; }
    .bola-mines { font-size: 18px; }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-selector, .hero-content {
        padding: 20px 10px;
    }
    
    .btn-primary {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .mines-select-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .mines-input {
        width: 100%;
    }
}
