@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0b0f29;
    --bg-card: #151a3c;
    --primary: #00f2ff;
    --primary-hover: #00c8d4;
    --text-main: #ffffff;
    --text-muted: #a0a6c5;
    --danger: #ff4d4d;
    --nav-bg: rgba(11, 15, 41, 0.95);
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

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

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--nav-bg);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

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

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

.cart-indicator {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
}

main {
    flex: 1;
    padding-top: 80px;
}

.hero-section {

    background-image: url('../img/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    padding: 60px 0;
    overflow: hidden;
    /* z-index: 9 тут не обов'язковий, якщо немає конфліктів з хедером, 
       але можна залишити */
}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}


.hero-section .container,
.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-card {
    flex: 0 0 350px;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.draw-info {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--text-main);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.timer-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.time-box {
    text-align: center;
}

.time-val {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.time-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ticket-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin: 20px 0;
}

.qty-btn {
    background: var(--primary);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    color: var(--bg-dark);
}

.ticket-count {
    font-size: 1.2rem;
    font-weight: 600;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

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

.info-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

td {
    color: var(--text-muted);
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-group input {
    margin-top: 4px;
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.responsible-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    opacity: 0.8;
}

.responsible-logos img {
    height: 30px;
    width: auto;
}


.disclaimer {
    font-size: 0.8rem;
    color: #5d6380;
    max-width: 800px;
    margin: 0 auto;
}

.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 41, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.age-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

.age-box h2 {
    margin-bottom: 20px;
}

.age-box p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.age-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

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

    .menu-toggle {
        display: block;
    }

    .hero-text {
        text-align: center;
    }

    .timer-container {
        justify-content: center;
    }

    .hero-card {
        margin: 0 auto;
        width: 100%;
    }

    .main-title {
        font-size: 2.5rem;
    }
}

.ln-footer {
    background-color: #05080e;
    color: #f9fafb;
    padding: 40px 16px 32px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.ln-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ln-footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.ln-footer-logos a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ln-footer-logo {
    height: 50px;
    width: auto;
    display: block;
}

.ln-footer-text {
    margin-bottom: 8px;
    color: #e5e7eb;
}

.ln-footer-text a {
    color: #ffffff;
    text-decoration: underline;
}

.ln-footer-warning {
    margin: 22px 0 26px;
    font-weight: 600;
    color: #ff3737;
}

.ln-footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.ln-footer-copy span {
    font-weight: 600;
}

.ln-footer-links {
    display: flex;
    gap: 24px;
}

.ln-footer-links a {
    color: #e5e7eb;
    text-decoration: none;
}

.ln-footer-links a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .ln-footer {
        padding: 48px 24px 32px;
    }

    .ln-footer-bottom {
        flex-direction: row;
    }
}

.latest-draw-container {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 242, 255, 0.05) 100%);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary);
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.draw-balls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.lotto-ball {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ffffff, var(--primary));
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
}

.prize-breakdown {
    margin-top: 40px;
    text-align: left;
}

.breakdown-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.breakdown-table th {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.breakdown-table td {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
}

.breakdown-table tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.breakdown-table tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: right;
    color: var(--primary);
}

.ticket-checker {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checker-input-group {
    display: flex;
    gap: 10px;
}

.checker-input-group input {
    flex: 1;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
}

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

.claim-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

@media (max-width: 600px) {
    .lotto-ball {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .checker-input-group {
        flex-direction: column;
    }
}


.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.policy-content h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.policy-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.policy-content h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-top: 25px;
    margin-bottom: 15px;
}

.policy-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.policy-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-content li {
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.last-updated {
    color: var(--primary);
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 40px;
    display: block;
}

@media (max-width: 768px) {
    .policy-content {
        padding: 30px 20px;
    }

    .policy-content h1 {
        font-size: 2rem;
    }

    .policy-content p {
        text-align: left;
    }
}
.cookie-banner {
    position: fixed;
    bottom: -100%; 
    left: 0;
    width: 100%;
    background: rgba(21, 26, 60, 0.98);
    border-top: 1px solid var(--primary);
    padding: 20px;
    z-index: 9000; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transition: bottom 0.5s ease-in-out;
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-text h3 i {
    color: var(--primary);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}


.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9100;
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.cookie-modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
    overflow: hidden;
}

.cookie-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-header h3 {
    margin: 0;
    color: var(--text-main);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.cookie-body {
    padding: 20px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.option-info strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 4px;
}

.option-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cookie-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    text-align: right;
}


.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}


.slider.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

input:disabled + .slider {
    background-color: #4caf50; 
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-buttons {
        justify-content: center;
    }
    .cookie-text h3 {
        justify-content: center;
    }
}