:root {
    --f-color: #000;
    --s-color: #fff;
    --t-color: #e6f2ff;
    --theme-color:  #006dcc;
    --theme-color2: #0088ff;
    --theme-second: #006dcc;
    --theme-third:  #0088ff;
    --theme-fourth: #004b8c;
}

*, *::before, *::after { box-sizing: border-box; }

a { text-decoration: none; color: inherit; }
a:hover { color: inherit; }

body {
    background: var(--theme-fourth);
    color: var(--s-color);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

/* ===== HEADER / NAV ===== */
.nav-top-wrapper {
    padding: 1.3rem;
    background-color: var(--theme-fourth);
}
.nav-top-wrapper.has-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.nav-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.logo img { width: 12rem; max-width: 100%; }

#mobileMenu {
    background: var(--theme-fourth);
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ===== NAV LIST ===== */
.nav-top-list {
    list-style-type: none;
    padding: 0; margin: 0;
    display: flex;
}
.nav-top-list li { margin-right: 0.5rem; position: relative; }
.nav-top-list li:last-child { margin-right: 0; }
.nav-top-list li button, .nav-top-list li a {
    border: none; background: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--s-color);
    cursor: pointer;
    padding: 6px 4px;
}
.nav-top-list li button:hover, .nav-top-list li a:hover {
    color: var(--t-color);
}
.nav-top-list li button.active-nav { color: var(--t-color); border-bottom: 2px solid var(--t-color); }

.nav-top-list-m { display: none; }
.icon-android { font-size: 1.5rem; }

/* ===== HEADER TITLE ===== */
.header-title {
    padding: 0.6rem;
    color: #fff;
    text-transform: uppercase;
    background: var(--theme-second);
    border-bottom: 3px solid var(--theme-third);
}
.header-title h3 { font-size: 1.4rem; margin: 0; }

/* ===== BALL DRAW ===== */
.ball-draw, .counter-time {
    list-style-type: none;
    padding: 0; margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.ball-draw li {
    color: var(--f-color);
    margin-bottom: 6px;
    margin-top: 7px;
    list-style-type: none;
    display: inline-flex;
    padding: 10px 20px;
    width: 50px; height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-left: 5px;
    border: 2px solid var(--f-color);
    font-weight: 700;
    background: #fff;
    cursor: pointer;
    transition: background .15s;
}
.ball-draw li:first-child { margin-left: 0; }
.ball-draw li:hover { background: var(--theme-color2); }
.ball-draw li:last-child {
    background: linear-gradient(0deg, var(--theme-second) 0%, var(--theme-third) 100%);
    color: var(--s-color);
    border-color: var(--theme-third);
}
.ball-draw li:last-child:hover { background: var(--theme-third); }

/* ball placeholder (loading) */
.ball-draw li.dash {
    color: #aaa;
    border-color: #ccc;
    background: #f5f5f5;
}

/* ===== LOGO CARD ===== */
.logo-card { width: 10rem; max-width: 100%; }

/* ===== NEXT DRAW CARD ===== */
.next-draw-card {
    background: var(--theme-second);
    color: var(--s-color);
}

/* ===== COUNTDOWN ===== */
.counter-time li {
    margin-right: 0.9rem;
    padding: 0.3rem 2.6rem;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 10px;
    background: var(--s-color);
    color: var(--f-color);
    text-align: center;
    text-transform: uppercase;
}
.counter-time li span.digit {
    font-size: 1.4rem;
    color: var(--theme-second);
    display: block;
}

/* ===== RESULT PERIODE LIST ===== */
.result-periode-list {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0; margin: 0;
    border-bottom: 2px solid var(--t-color);
}
.result-periode-list li {
    margin-right: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.7rem;
    width: 11rem;
    max-width: 100%;
    text-align: center;
    background: var(--theme-third);
    color: var(--s-color);
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: opacity .15s;
}
.result-periode-list li:hover { opacity: .85; }
.result-periode-list li.active { background: var(--theme-second); outline: 2px solid var(--t-color); }

/* ===== MARKET CARDS ===== */
.bg-theme:nth-child(even) .card { border-bottom: 6px solid var(--theme-second); }
.bg-theme:nth-child(odd) .card  { border-bottom: 6px solid var(--t-color); }
.bg-theme:nth-child(even) .card:hover { background: var(--t-color); }
.bg-theme:nth-child(odd) .card:hover  { background: var(--theme-color2); }

/* ===== TICKET BUTTON ===== */
.ticket-btn {
    background: var(--t-color);
    padding: 0.7rem 1.5rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity .15s;
}
.ticket-btn:hover { opacity: .85; }

/* ===== HIDE / SHOW ALL ===== */
.hide { display: none !important; }

/* ===== FOOTER ===== */
footer {
    border-top: 4px solid var(--t-color);
    background: var(--theme-second);
    padding: 1rem;
    color: var(--s-color);
}
footer a { color: var(--t-color); }
.logo-wla { display: block; width: 8rem; max-width: 100%; margin: 0 auto; }
.footer-menu-img { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; padding: 0; margin: 0; list-style: none; }
.footer-menu-img li { margin-right: 2rem; }
.footer-menu-img li:last-child { margin-right: 0; }
.footer-menu-img li img { width: 5rem; }

/* ===== MAINTENANCE ===== */
.maintenance-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--theme-fourth);
    text-align: center;
    padding: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-top { justify-content: space-between; }
    .nav-top-list {
        display: none;
        position: absolute;
        top: 130px; right: 0;
        z-index: 10;
        padding: 1rem;
        background: #fff;
        border-radius: 10px;
        flex-direction: column;
        min-width: 160px;
    }
    .nav-top-list.open { display: flex; }
    .nav-top-list li button, .nav-top-list li a { color: var(--f-color); font-size: 1rem; }
    .nav-top-list li { margin-right: 0; margin-bottom: 0.6rem; }
    .nav-top-list-m { display: flex; list-style: none; padding: 0; margin: 0; }
    .nav-top-list-m li i { font-size: 1.7rem; cursor: pointer; }
    .counter-time li { padding: 0.3rem 1rem; }
    .result-periode-list li { font-size: 0.8rem; margin-right: 0.4rem; margin-bottom: 0.5rem; width: 7.5rem; }
    .logo-card { width: 7rem; }
    .ball-draw li { width: 42px; height: 42px; font-size: 1.1rem; padding: 8px; }
}
