:root {
    --bg-body: #020617;
    --bg-card: #0f172a;
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --danger: #ef4444;

    --bg-main: #020617;
    --accent: #06b6d4;
    --text-light: #f9fafb;
    --border-subtle: #1f2933;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

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

ul {
    list-style: none;
}

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.badge-18 {
    font-size: 0.75rem;
    background: #334155;
    color: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    display: none;
}

.cart-link {
    position: relative;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.hero {
    background: linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.9)),
        radial-gradient(circle at 50% 0%, #06b6d4 0%, transparent 50%),
        linear-gradient(to bottom, #0f172a, #020617);
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

#timer {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: white;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-size: 1rem;
    display: inline-block;
}

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

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

main {
    flex: 1;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-section {
    margin-bottom: 2rem;
}

.intro-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.intro-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.intro-features i {
    color: var(--primary);
    width: 20px;
}

.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.builder-step {
    margin-bottom: 1.5rem;
}

.builder-step h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

select,
input[type="number"],
input[type="text"] {
    width: 100%;
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

select:focus,
input:focus {
    border-color: var(--primary);
}

.builder-summary {
    background-color: rgba(6, 182, 212, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-block h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.data-table th {
    color: var(--text-main);
    font-weight: 600;
}

.result-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.draw-balls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-body);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 40px;
    text-align: center;
    padding: 2px;
    background: transparent;
    border: none;
    color: var(--text-main);
}

.btn-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-delete:hover {
    color: var(--danger);
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.cart-grand-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 400px;
    text-align: center;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-out;
    z-index: 200;
    font-weight: 600;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}



.responsible-block {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.responsible-block h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}



@media (min-width: 768px) {
    .badge-18 {
        display: inline-block;
    }

    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .countdown-box {
        align-items: flex-start;
    }

    .main-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cart-item-row {
        grid-template-columns: 3fr 1fr 1fr 1fr auto;
    }
}

.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;
    background: rgba(2, 6, 23, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.age-gate-modal {
    background: #020617;
    color: var(--text-light);
    max-width: 420px;
    width: 90%;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    border: 1px solid var(--accent);
}

.age-gate-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.age-gate-modal p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.age-gate-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-gate-buttons button {
    flex: 1 1 140px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

#age-yes {
    background: var(--accent);
    color: #020617;
    font-weight: 600;
}

#age-yes:hover {
    transform: translateY(-1px);
}

#age-no {
    background: transparent;
    color: var(--text-light);
    border-color: var(--accent);
}

#age-no:hover {
    background: rgba(15, 23, 42, 0.9);
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(960px, 95%);
    background: #020617;
    color: var(--text-light);
    border-radius: 16px;
    border: 1px solid var(--accent);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
    padding: 14px 18px;
    z-index: 9000;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-text h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cookie-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 520px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
    background: var(--accent);
    color: #020617;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.9);
}

.cookie-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9500;
}

.cookie-settings-modal {
    background: #020617;
    color: var(--text-light);
    max-width: 520px;
    width: 90%;
    padding: 22px 20px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent);
}

.cookie-settings-modal h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cookie-settings-modal p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.cookie-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 10px;
    border-radius: 12px;
    background: #050816;
    border: 1px solid var(--border-subtle);
}

.cookie-option input[type="checkbox"] {
    margin-top: 3px;
}

.cookie-option span strong {
    font-size: 0.9rem;
}

.cookie-option span small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 640px) {
    .cookie-banner-inner {
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .age-gate-modal {
        padding: 20px 16px;
    }
}