:root {
    --bg-color: #0b1120;
    --card-bg: #ffffff;
    --text-main: #0b1120;
    --text-light: #e2e8f0;
    --text-muted: #64748b;
    --accent: #2dd4bf;
    --accent-hover: #14b8a6;
    --danger: #ef4444;
    --font-main: 'Inter', system-ui, sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}


h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--accent);
}

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


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

section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

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

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


header {
    background-color: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

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

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

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

.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background:
        radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(11, 17, 32, 0.95) 70%),
        url('../img/hero.png') center center / cover no-repeat;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.draw-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    display: inline-block;
    min-width: 300px;
    margin-bottom: 30px;
}

.jackpot {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 800;
    margin: 15px 0;
}

.timer {
    font-family: monospace;
    font-size: 1.5rem;
    margin-top: 10px;
    color: #cbd5e1;
}


.ticket-section {
    background-color: #0f172a;
}

.ticket-card {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
}

.control-group button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
}

.control-group input {
    width: 60px;
    text-align: center;
    font-size: 1.2rem;
    border: none;
    background: transparent;
    font-weight: bold;
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.legal-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
    display: block;
}


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

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}


table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

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

th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}


.result-card {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ball-container {
    display: flex;
    gap: 8px;
}

.ball {
    width: 35px;
    height: 35px;
    background: var(--bg-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.archive-filter {
    margin-bottom: 30px;
    padding: 10px;
    border-radius: 6px;
    background: var(--card-bg);
    border: none;
    font-family: inherit;
}


.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--accent);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

#age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.98);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.modal-btn-group {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}


@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.nav-active {
        transform: translateY(0);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    }

    .burger {
        display: block;
    }

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

    .result-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.auth-card {
    background: var(--card-bg);
    color: var(--text-main);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #f8fafc;
    color: #334155;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.link-small {
    font-size: 0.85rem;
    color: var(--accent-hover);
    text-decoration: none;
}

.link-small:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #475569;
}

.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;
    }
}.legal-content h3 { color: var(--accent); margin-top: 30px; }
        .legal-content p { margin-bottom: 15px; color: #cbd5e1; }
        .legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; color: #cbd5e1; }
        .legal-content li { margin-bottom: 8px; }