/* MAPLE WIN HUB - Global Styles 
    Theme: Dark Navy, Maple Red, Gold
*/

:root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --primary-red: #dc2626;
    --primary-hover: #b91c1c;
    --accent-gold: #fbbf24;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --nav-height: 70px;
}

* {
    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-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}


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


h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
    color: var(--accent-gold);
}

h3 {
    font-size: 1.25rem;
}

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

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

.text-red {
    color: var(--primary-red);
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}


.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-align: center;
}

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

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

.btn-gold {
    background-color: var(--accent-gold);
    color: #0f172a;
}

.btn-gold:hover {
    background-color: #f59e0b;
}

.btn-outline {
    border: 1px solid var(--text-main);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}


header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
}

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

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

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


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

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-auth {

        display: none;
    }

    /* Add auth buttons inside mobile menu via JS or duplicate in HTML if needed. 
       For this demo, we keep auth in header visible on mobile or hide text. */
    .nav-auth {
        display: flex;
    }

    .nav-auth span {
        display: none;
    }
}


main {
    flex: 1;
    padding: 40px 0 !important;
}

.card {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}



.hero-card {

    background: url('../img/hero.png') center center/cover no-repeat;
    border: 1px solid var(--primary-red);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    z-index: 88;
    box-shadow: var(--shadow);
}


.hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.725);
    z-index: 3;
}


.hero-card>* {
    position: relative;
    z-index: 5;
}

.timer-box {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.jackpot-amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

.buy-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.qty-val {
    padding: 10px 15px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--accent-gold);
    font-weight: 600;
}


.result-balls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


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

.modal-content {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--primary-red);
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.2);
}

.modal-content h2 {
    color: white;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}


.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .jackpot-amount {
        font-size: 4rem;
    }
}

.ln-footer {
    background-color: #010122;
    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;
    }
}

.auth-container {
    max-width: 450px;
    margin: 40px auto;
    width: 100%;
}

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

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

.form-input {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--accent-gold);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 15px;
    color: var(--text-muted);
}

.auth-links a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.policy-content h2 {
    margin-top: 40px;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.policy-content h3 {
    margin-top: 25px;
    color: white;
}

.policy-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content p {
    text-align: justify;
}

.terms-content {
    counter-reset: section;
}

.terms-content h2 {
    margin-top: 40px;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-size: 1.5rem;
}

.terms-content h2::before {
    counter-increment: section;
    content: counter(section) ". ";
}

.terms-content h3 {
    margin-top: 25px;
    color: white;
    font-size: 1.1rem;
}

.terms-content ul,
.terms-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.terms-content li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.terms-content p {
    text-align: justify;
    margin-bottom: 15px;
}

.important-notice {
    background-color: rgba(220, 38, 38, 0.1);
    border-left: 4px solid var(--primary-red);
    padding: 15px;
    margin: 20px 0;
    color: #fca5a5;
}