:root {

    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-lighter: #2d2d2d;

    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;

    --accent-primary: #ff5722;
    --accent-hover: #e64a19;
    --accent-glow: rgba(255, 87, 34, 0.4);

    --accent-red: #d32f2f;
    --border-color: #333333;

    --border-radius: 4px;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:disabled {
    background-color: var(--bg-lighter);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-danger {
    background-color: var(--accent-red);
    color: #fff;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}


header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}


.section {
    padding: 5rem 0;
}

.hero {

    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.8)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 8rem 0 6rem;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-icons {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}


.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-7px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.lotto-logo {
    height: 120px;
    margin: 0 auto;
    margin-bottom: 2rem;
    object-fit: contain;
    filter: grayscale(20%);
    transition: 0.3s;
}

.card:hover .lotto-logo {
    filter: grayscale(0%);
}

.responsible-block {
    background-color: var(--bg-lighter);
    border-left: 4px solid var(--accent-primary);
    padding: 3rem;
    margin-top: 2rem;
    border-radius: var(--border-radius);
}


.game-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

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

.tab-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.number-ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-lighter);
    border: 2px solid transparent;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    user-select: none;
}

.number-ball:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: 0 0 10px var(--accent-glow);
}

.number-ball.selected {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.1);
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-lighter);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.grand-separator {
    grid-column: 1 / -1;
    margin: 1.5rem 0;
    text-align: center;
    font-weight: 700;
    color: var(--accent-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.cart-container {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
  
    top: 100px;
}

.cart-container h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-details h4 {
    color: var(--accent-primary);
    margin-bottom: 0.4rem;
}

.cart-details span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: monospace;
}

.remove-btn {
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    width: 35px;
    height: 35px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.remove-btn:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.cart-summary {
    margin-top: 2rem;
    border-top: 2px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: right;
}

.total-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}


.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-main);
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.form-control.error {
    border-color: var(--accent-red);
}

.error-text {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.auth-card {
    max-width: 450px;
    margin: 4rem auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feedback-msg {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
}

.feedback-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
}



@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: block;
    }

    .nav-link::after {
        display: none;
    }

    .auth-buttons {
        display: none;
    }

    .nav-menu .auth-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        background: var(--bg-dark);
    }

    .hero {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-3[style*="grid-template-columns: 2fr 1fr"],
    .grid-3[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }

    .cart-container {
        position: static;
        margin-top: 3rem;
    }
}

.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;
}

.age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.age-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.age-gate-modal {
    position: relative;
    background: #121212;
    border-radius: 16px;
    padding: 2rem 2.2rem;
    max-width: 480px;
    width: 90%;
    color: #f9fafb;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 1;
    text-align: left;
}

.age-gate-modal h2 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.age-gate-modal p {
    margin: 0.4rem 0;
    color: #d1d5db;
    font-size: 0.95rem;
}

.age-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff5722;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.age-gate-actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.age-gate-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.97);
    color: #f9fafb;
    padding: 1.4rem 1.6rem;
    z-index: 9998;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    display: none;
    font-family: inherit;
}

.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
}

.cookie-banner h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.cookie-banner p {
    margin: 0 0 0.75rem;
    color: #d1d5db;
    font-size: 0.9rem;
}

.cookie-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    gap: 0.75rem;
}

.cookie-option h3 {
    margin: 0 0 0.1rem;
    font-size: 0.95rem;
}

.cookie-option p {
    margin: 0;
    color: #a1a1aa;
    font-size: 0.8rem;
}


.toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #3f3f46;
    border-radius: 999px;
    transition: 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked+.toggle-slider {
    background-color: #ff5722;
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(22px);
}


.cookie-actions {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-manage-btn {
    margin-top: 0.6rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}


.cookie-manage-floating {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #121212;
    color: #ff5722;
    border: 1px solid #ff5722;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 9997;
    display: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .cookie-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}