:root {
    --primary: #cd122d;
    --primary-dark: #a60e24;
    --secondary: #1a1a1a;
    --light: #ffffff;
    --gray: #f4f4f4;
    --border: #dddddd;
    --text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--gray);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

header {
    background-color: var(--secondary);
    color: var(--light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    background-color: var(--primary);
    color: var(--light);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), #333;
    color: var(--light);
    text-align: center;
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 20px 0;
    color: #ffcc00;
}

main {
    flex: 1;
    padding: 40px 0;
}

.card {
    background: var(--light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.section-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.grid-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.select-btn {
    border: 2px solid var(--border);
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    background: #fff;
}

.select-btn:hover {
    border-color: var(--primary);
}

.select-btn.active {
    border-color: var(--primary);
    background-color: #fff0f0;
    color: var(--primary-dark);
    font-weight: bold;
}

.draw-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.draw-opt {
    padding: 10px 15px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.draw-opt.active {
    background: var(--secondary);
    color: var(--light);
    border-color: var(--secondary);
}

.total-bar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}

.price-tag {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background-color: #f0f0f0;
}

.ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--light);
    border-radius: 50%;
    margin-right: 5px;
    font-weight: bold;
} 
.warning-box {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 20px;
}

.overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--light);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 1500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    .nav-links {
        margin: 15px 0;
    }
    .total-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 5px solid var(--primary);
    transition: transform 0.2s;
}

.winner-row:hover {
    transform: translateX(5px);
}

.winner-name {
    font-weight: bold;
    color: var(--secondary);
}

.winner-prize {
    color: #28a745;
    font-weight: bold;
}

.faq-grid {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr; 
    gap: 30px;
    align-items: start;
}

.cart-items-block {
    background: var(--light);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.checkout-block {
    background: var(--light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 90px; 
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.summary-total {
    border-top: 2px solid var(--border);
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--primary);
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.pm-option {
    flex: 1;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.pm-option.selected {
    border-color: var(--primary);
    background-color: #fff0f0;
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr; 
    }
    .checkout-block {
        position: static;
    }
}

.leaderboard-rank {
    font-weight: bold;
    font-size: 1.2rem;
    color: #888;
}

.rank-1 { color: #f1c40f; } 
.rank-2 { color: #bdc3c7; } 
.rank-3 { color: #cd7f32; } 

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.stat-box {
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-title {
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hot-ball {
    background-color: #dc3545 !important; 
    color: #fff;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.4);
}

.cold-ball {
    background-color: #17a2b8 !important; 
    color: #fff;
    box-shadow: 0 2px 5px rgba(23, 162, 184, 0.4);
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
.footer-imgs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-imgs img {
    padding: 12px;
    margin: 12px;
    height: 55px;
    background: white;
    border-radius: 10px;
}