:root {
    --primary-color: #1E3A8A; /* Indigo / Deep Blue */
    --secondary-color: #06B6D4; /* Turquoise / Cyan */
    --accent-color: #7C3AED; /* Violet for specific CTAs */
    --bg-color: #F8FAFC; /* Near-white / Light Grey */
    --surface-color: #FFFFFF; /* Pure white for cards */
    --text-main: #1F2937; /* Dark Grey */
    --text-muted: #6B7280; /* Medium Grey */
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--primary-color); font-weight: 700; margin-bottom: 0.5em; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.highlight { color: var(--secondary-color); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: #172554; }
.btn-secondary { background-color: var(--secondary-color); color: white; }
.btn-secondary:hover { background-color: #0891b2; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background-color: var(--primary-color); color: white; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* --- Header --- */
.top-bar {
    background-color: #0F172A;
    color: #94A3B8;
    font-size: 0.8rem;
    text-align: center;
    padding: 8px;
}
header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--secondary-color); font-size: 1.8rem; } /* Icon */

.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { font-weight: 500; color: var(--text-main); }
.nav-links a:hover { color: var(--secondary-color); }

.auth-buttons { display: flex; gap: 1rem; align-items: center; }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Layout Containers --- */
main { flex: 1; padding: 2rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { margin-bottom: 4rem; }

/* --- Hero Section --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-content h1 { font-size: 3rem; line-height: 1.2; }
.hero-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    text-align: center;
}
.jackpot-amount { font-size: 2.5rem; font-weight: 800; color: var(--accent-color); margin: 10px 0; }
.draw-details { margin-bottom: 1.5rem; border-bottom: 1px solid #E2E8F0; padding-bottom: 1rem; }
.ticket-ctrl { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ccc; background: white; cursor: pointer; }

/* --- Timer --- */
.timer-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}
.time-box { background: var(--primary-color); color: white; padding: 15px; border-radius: 8px; min-width: 80px; text-align: center; }
.time-value { display: block; font-size: 1.5rem; font-weight: bold; }
.time-label { font-size: 0.75rem; text-transform: uppercase; opacity: 0.8; }

/* --- Tables --- */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface-color); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #E2E8F0; }
th { background-color: #F1F5F9; color: var(--primary-color); font-weight: 600; }

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}
 
/* --- Modals (Age Gate & Cookie) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s;
}
.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
}
.hidden { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 1500;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .nav-links, .auth-buttons { display: none; } /* Mobile Menu Logic required */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    .mobile-menu-btn { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .cookie-banner { flex-direction: column; text-align: center; }
}.ln-footer {
     background-color: #0d0836;
     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;
     }
 }.results-hero {
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    color: white;
    padding: 3rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.25);
}

.winning-balls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.ball {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 2px solid var(--secondary-color);
}

.breakdown-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 3rem;
}

.breakdown-header {
    background: #F1F5F9;
    padding: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-bar {
    display: flex;
    gap: 10px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.checker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 10px;
    max-width: 400px;
    margin: 1rem 0;
}