
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --primary: #00843D;
    --primary-dark: #005a2a;
    --primary-light: #2eaa5e;
    --secondary: #B71234;
    --secondary-dark: #8a0e28;
    --secondary-light: #e63946;
    --accent: #F5C518;
    --accent-dark: #d4a810;
    --warm: #B58150;
    --warm-dark: #5C462B;
    --white: #FFFFFF;
    --light-bg: #F8F6F2;
    --card-bg: #FFFFFF;
    --dark-bg: #141210;
    --text-dark: #1a1612;
    --text-medium: #5a5248;
    --text-light: #8a8278;
    --border: #e8e2d8;
    --border-light: #f0ece6;
    --gradient-green: linear-gradient(135deg, #00843D 0%, #2eaa5e 100%);
    --gradient-red: linear-gradient(135deg, #B71234 0%, #e63946 100%);
    --gradient-gold: linear-gradient(135deg, #F5C518 0%, #FFD700 100%);
    --gradient-dark: linear-gradient(135deg, #1a1612 0%, #2a2420 100%);
    --gradient-warm: linear-gradient(135deg, #5C462B 0%, #B58150 100%);
    --gradient-hero: linear-gradient(135deg, #00843D 0%, #005a2a 40%, #1a1210 100%);
    --gradient-blue: var(--gradient-green);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-glow-green: 0 4px 20px rgba(0,132,61,0.25);
    --shadow-glow-red: 0 4px 20px rgba(183,18,52,0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --max-width: 1200px;
    --navbar-height: 70px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px; color: var(--text-dark); background: var(--light-bg);
    line-height: 1.6; min-height: 100vh;
    display: flex; flex-direction: column; overflow-x: hidden;
}
body.has-bg {
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center center !important;
}
main#root { flex: 1; }
a { color: var(--white); text-decoration: none; }
a:hover { text-decoration: none; }
#wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--navbar-height);
    background: rgba(20,18,16,0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 1000; transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(20,18,16,0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.navbar-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand-logo { height: 40px; max-width: 180px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.nav-brand-fallback { font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; font-weight: 500;
    padding: 8px 16px; border-radius: var(--radius-sm); transition: all 0.2s ease; position: relative;
}
.nav-links a:hover, .nav-links a.on { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links a.on::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-clock { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.nav-clock-icon { color: var(--accent); font-size: 11px; }
.nav-mobile-toggle { display: none; background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 8px; }

.mobile-nav {
    display: none; position: fixed; top: var(--navbar-height); left: 0; right: 0;
    background: rgba(20,18,16,0.98); backdrop-filter: blur(20px);
    padding: 16px; z-index: 999; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; padding: 12px 16px; border-radius: var(--radius-sm); transition: all 0.2s; }
.mobile-nav a:hover, .mobile-nav a.on { color: white; background: rgba(255,255,255,0.08); }

.hero {
    margin-top: var(--navbar-height); background: var(--gradient-hero);
    position: relative; overflow: hidden; padding: 50px 24px 40px;
}
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,132,61,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 2; text-align: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); padding: 6px 16px; border-radius: 100px;
    color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.hero-badge .dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.5); } }

.hero-logo { margin-bottom: 12px; }
.hero-logo img { max-height: 80px; max-width: 280px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3)); }
.hero-title { font-size: 42px; font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 8px; letter-spacing: -0.5px; }
.hero-title .highlight { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-banner { margin-top: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-banner img { width: 100%; border-radius: var(--radius-md); border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.day-filter { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 24px; position: sticky; top: var(--navbar-height); z-index: 100; box-shadow: var(--shadow-sm); }
.day-filter-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 12px 0; overflow-x: auto; }
.day-filter-label { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-right: 8px; white-space: nowrap; }
.day-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px; border: 1px solid var(--border); background: var(--white);
    color: var(--text-medium); font-size: 12px; font-weight: 600;
    border-radius: 100px; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; text-decoration: none;
}
.day-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,132,61,0.04); }
.day-btn.active { background: var(--gradient-green); color: var(--white); border-color: transparent; box-shadow: var(--shadow-glow-green); }

.main-content { max-width: var(--max-width); margin: 0 auto; padding: 32px 24px 60px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--text-dark); }
.section-title small { color: var(--text-light); font-weight: 400; font-size: 13px; margin-left: 8px; }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.no-results { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-light); font-size: 16px; background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.no-results i { font-size: 48px; display: block; margin-bottom: 12px; color: var(--border); }

/* === Result Card (Revamped) === */
.result-card {
    background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-light); transition: all 0.3s ease; animation: fadeInUp 0.5s ease both;
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,132,61,0.2); }
.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.10s; }
.result-card:nth-child(3) { animation-delay: 0.15s; }
.result-card:nth-child(4) { animation-delay: 0.20s; }
.result-card:nth-child(5) { animation-delay: 0.25s; }
.result-card:nth-child(6) { animation-delay: 0.30s; }

@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.rc-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--border-light);
}
.rc-meta { display: flex; align-items: center; gap: 10px; }
.rc-day-badge {
    background: var(--primary); color: var(--white);
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px;
}
.rc-date-text { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.rc-draw-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
    color: var(--primary); background: rgba(0,132,61,0.08);
    padding: 3px 10px; border-radius: 100px;
}

.rc-main { text-align: center; padding: 20px 16px; background: linear-gradient(180deg, #fafaf8 0%, #f4f2ee 100%); }
.rc-prize1-label {
    font-size: 10px; font-weight: 700; color: var(--secondary);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.rc-prize1-balls { display: flex; justify-content: center; gap: 10px; }

.ball-main {
    width: 50px; height: 50px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 800; color: var(--white);
    background: var(--gradient-red);
    box-shadow: 0 4px 16px rgba(183,18,52,0.35), inset 0 -3px 6px rgba(0,0,0,0.15), inset 0 3px 6px rgba(255,255,255,0.2);
    position: relative; overflow: hidden;
}
.ball-main::after {
    content: ''; position: absolute; top: 5px; left: 9px;
    width: 16px; height: 9px; background: rgba(255,255,255,0.3);
    border-radius: 50%; transform: rotate(-30deg);
}

.rc-sub-prizes {
    display: flex; border-top: 1px solid var(--border-light);
}
.rc-sub-prize {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; justify-content: center;
    border-right: 1px solid var(--border-light);
}
.rc-sub-prize:last-child { border-right: none; }
.rc-sub-label {
    font-size: 9px; font-weight: 800; color: var(--text-light);
    letter-spacing: 1px; min-width: 26px;
}
.rc-sub-balls { display: flex; gap: 4px; }

.ball-sub {
    width: 28px; height: 28px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--white);
    background: var(--gradient-green); box-shadow: 0 2px 8px rgba(0,132,61,0.25);
}

.rc-table { border-top: 1px solid var(--border-light); }
.rc-table-head {
    display: grid; grid-template-columns: 1fr 1fr;
}
.rc-th {
    text-align: center; font-size: 9px; font-weight: 700;
    padding: 8px 4px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white);
}
.rc-th-starter { background: var(--primary); }
.rc-th-cons { background: var(--warm-dark); }
.rc-table-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-light);
}
.rc-table-row:last-child { border-bottom: none; }
.rc-td {
    text-align: center; padding: 6px 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
    color: var(--text-dark); background: var(--white); transition: all 0.2s;
    border-right: 1px solid var(--border-light);
}
.rc-td:nth-child(2) { border-right: 2px solid var(--border); }
.rc-td:last-child { border-right: none; }
.rc-td:hover { background: rgba(0,132,61,0.04); color: var(--primary); }

.welcome-bar {
    background: var(--gradient-green); color: var(--white);
    padding: 14px 20px; font-weight: 700; font-size: 15px; letter-spacing: 1.5px;
    border-radius: var(--radius-md); margin: 16px 0; text-align: center;
    box-shadow: var(--shadow-glow-green);
    border-left: 4px solid var(--secondary); border-right: 4px solid var(--secondary);
    position: relative; overflow: hidden;
}
.welcome-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary)); }

.page-card { padding: 28px; line-height: 1.8; font-size: 14px; color: var(--text-dark); }
.page-card h2 { color: var(--primary); margin-bottom: 14px; font-size: 20px; }
.page-card h3 { color: var(--secondary); margin-bottom: 8px; font-size: 16px; }
.page-card p { margin-bottom: 8px; }
.page-card a { color: var(--secondary); text-decoration: underline; }
.page-card img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

.live-draw-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 24px; background: var(--gradient-red); color: var(--white);
    border: none; border-radius: 100px; font-size: 13px; font-weight: 700;
    cursor: pointer; box-shadow: 0 6px 30px rgba(183,18,52,0.4);
    transition: all 0.3s ease; text-decoration: none; animation: fab-pulse 3s infinite;
}
.live-draw-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 40px rgba(183,18,52,0.5); color: var(--white); }
.live-draw-fab .live-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse-dot 1.5s infinite; }
@keyframes fab-pulse { 0%,100% { box-shadow: 0 6px 30px rgba(183,18,52,0.4); } 50% { box-shadow: 0 6px 40px rgba(183,18,52,0.6); } }

.footer { background: var(--dark-bg); position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary)); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 24px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand-icon { width: 44px; height: 44px; background: var(--gradient-green); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: white; overflow: hidden; }
.footer-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-info { display: flex; flex-direction: column; }
.footer-brand-name { font-size: 16px; font-weight: 800; color: var(--white); }
.footer-brand-name span { color: var(--accent); }
.footer-brand-desc { font-size: 12px; color: var(--text-light); }
.footer-links { display: flex; gap: 32px; }
.footer-link-group h4 { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.footer-link-group a { display: block; color: rgba(255,255,255,0.5); font-size: 13px; padding: 4px 0; transition: color 0.2s; }
.footer-link-group a:hover { color: var(--white); }
.footer-age-badge { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); padding: 12px 18px; border-radius: var(--radius-md); }
.age-circle { width: 40px; height: 40px; border: 2px solid var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--secondary); flex-shrink: 0; }
.age-text { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); transition: all 0.2s; font-size: 14px; }
.footer-social a:hover { background: var(--primary); color: white; }

.err-page { max-width: 560px; margin: 40px auto; text-align: center; padding: 48px 32px; background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.err-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--gradient-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow-green); }
.err-icon i { font-size: 32px; color: var(--accent); }
.err-code { font-size: 72px; font-weight: 800; letter-spacing: -2px; line-height: 1; background: var(--gradient-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.err-title { font-size: 20px; font-weight: 700; color: var(--primary); margin: 4px 0 16px; text-transform: uppercase; letter-spacing: 2px; }
.err-line { width: 60px; height: 3px; background: var(--gradient-red); margin: 0 auto 20px; border-radius: 3px; }
.err-msg { font-size: 14px; color: var(--text-light); line-height: 1.7; max-width: 400px; margin: 0 auto 28px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); transition: all 0.2s; border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.err-btn:hover { background: var(--primary); color: var(--white); }
.err-btn-primary { background: var(--gradient-red); border-color: var(--secondary); color: var(--white); }
.err-btn-primary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: var(--white); box-shadow: var(--shadow-glow-red); }
.err-ref { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }
.err-ref span { font-weight: 700; color: var(--primary); }

.img_blur { max-width: 100%; }
.block { display: inline-block; margin: 2px; }
.banner-img { width: 100%; border-radius: var(--radius-md); display: block; border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

@media (max-width: 900px) {
    .result-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
    .hero-title { font-size: 32px; }
    .nav-links a { padding: 8px 12px; font-size: 12px; }
}
@media (max-width: 640px) {
    .result-grid { grid-template-columns: 1fr; gap: 16px; }
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .hero { padding: 40px 16px 32px; }
    .hero-title { font-size: 26px; }
    .hero-logo img { max-height: 56px; }
    .day-filter-inner { padding: 10px 0; }
    .day-btn { padding: 6px 14px; font-size: 11px; }
    .main-content { padding: 20px 16px 40px; }
    #wrap { padding: 0 12px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-top { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .ball-main { width: 42px; height: 42px; font-size: 18px; }
    .ball-sub { width: 24px; height: 24px; font-size: 11px; }
    .rc-td { font-size: 11px; padding: 5px 2px; }
    .welcome-bar { font-size: 13px; padding: 10px 14px; }
    .live-draw-fab { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 12px; }
    .err-page { margin: 20px 12px; padding: 32px 20px; }
    .err-code { font-size: 56px; }
    .err-title { font-size: 16px; }
    .err-actions { flex-direction: column; }
    .err-btn { justify-content: center; }
}
@media (max-width: 380px) {
    .hero-title { font-size: 22px; }
    .ball-main { width: 36px; height: 36px; font-size: 16px; }
    .ball-sub { width: 22px; height: 22px; font-size: 10px; }
    .rc-top { padding: 10px 12px; }
    .day-btn { padding: 5px 10px; font-size: 10px; }
}
