/* ==========================================================================
   ROOT VARIABLES & RESET
   ========================================================================== */
:root {
    --white: #ffffff;
    --black: #000000;
    --grey-light: #f4f4f4;
    --grey-border: #dddddd;
    --grey-text: #666666;
    --grey-dark: #333333;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body { background-color: var(--grey-light); color: var(--black); line-height: 1.5; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   TOP BAR & COUNTRY SELECTOR
   ========================================================================== */
.top-bar { background: var(--grey-light); border-bottom: 1px solid var(--grey-border); font-size: 0.8rem; color: var(--grey-text); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 10px; }
.top-links a { margin-left: 15px; transition: var(--transition); }
.top-links a:hover { color: var(--black); }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header { background: var(--white); padding: 20px 0; border-bottom: 1px solid var(--grey-border); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { font-size: 2rem; font-weight: 900; letter-spacing: -1px; color: var(--black); }

.search-form { flex: 1; display: flex; max-width: 700px; border: 2px solid var(--black); border-radius: 4px; overflow: hidden; }
.search-form input { flex: 1; padding: 12px 15px; border: none; outline: none; }
.search-form button { background: var(--black); color: var(--white); border: none; padding: 0 20px; cursor: pointer; }

.header-actions { display: flex; gap: 20px; align-items: center; }
.action-btn { display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; font-weight: 600; }
.mobile-menu-btn { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; }

.category-nav { background: var(--white); border-bottom: 1px solid var(--grey-border); }
.nav-inner .menu { display: flex; gap: 30px; flex-wrap: wrap; }
.nav-inner .menu > li > a { display: block; padding: 15px 0; font-weight: 600; font-size: 0.9rem; }
.all-cat-btn { background: var(--grey-light); padding: 15px 20px !important; border-left: 1px solid var(--grey-border); border-right: 1px solid var(--grey-border); }

/* MEGA MENU STYLING */
.has-mega-menu { position: relative; }
.mega-menu {
    position: absolute; top: 100%; left: 0; width: 1000px; max-width: 90vw;
    background: var(--white); border: 1px solid var(--grey-border); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 100; padding: 30px;
}
.has-mega-menu:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.mega-title { font-weight: bold; border-bottom: 2px solid var(--black); padding-bottom: 10px; margin-bottom: 15px; }
.mega-col li a { font-size: 0.85rem; color: var(--grey-text); padding: 5px 0; display: block; }
.mega-col li a:hover { color: var(--black); text-decoration: underline; }

/* BREADCRUMB */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; padding: 20px 0; color: var(--grey-text); }
.breadcrumb li::after { content: ">"; margin-left: 10px; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a:hover { color: var(--black); }

/* ==========================================================================
   PRODUCT HERO & CONTENT
   ========================================================================== */
.product-hero { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 30px; background: var(--white); padding: 30px; border: 1px solid var(--grey-border); margin-bottom: 40px; border-radius: 8px; }
.product-gallery .main-image img { width: 100%; border: 1px solid var(--grey-border); margin-bottom: 10px; border-radius: 4px; }
.thumbnails { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.thumbnails img { width: calc(25% - 7.5px); aspect-ratio: 1 / 1; object-fit: cover; align-self: flex-start; border: 1px solid var(--grey-border); cursor: pointer; opacity: 0.6; border-radius: 4px; flex-shrink: 0; }
.thumbnails img.active, .thumbnails img:hover { opacity: 1; border-color: var(--black); }

.product-info { padding-right: 20px; }
.product-title { font-size: 1.5rem; line-height: 1.3; margin-bottom: 15px; }
.product-meta { font-size: 0.9rem; color: var(--grey-text); display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--grey-border); }
.product-badges .badge { display: inline-block; padding: 5px 10px; font-size: 0.8rem; font-weight: bold; background: var(--grey-light); margin-right: 10px; margin-bottom: 10px; border-radius: 4px; }
.badge.border { border: 1px solid var(--black); background: var(--white); }
.product-features { margin: 20px 0; padding-left: 20px; list-style: disc; font-size: 0.95rem; color: var(--grey-dark); }
.product-features li { margin-bottom: 8px; }

.model-selector h3 { font-size: 1rem; margin-bottom: 10px; }
.models { display: flex; flex-wrap: wrap; gap: 10px; }
.model-box { border: 1px solid var(--grey-border); padding: 10px 15px; cursor: pointer; font-weight: bold; border-radius: 4px; text-align: center; }
.model-box.active { border: 2px solid var(--black); background: var(--grey-light); }

.product-checkout { border: 1px solid var(--grey-border); padding: 20px; background: var(--grey-light); height: fit-content; border-radius: 8px; }
.price-box { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.stock-status { color: var(--black); font-weight: bold; margin-bottom: 15px; }
.delivery-notice { font-size: 0.85rem; padding: 15px; border: 1px solid var(--grey-border); background: var(--white); margin-bottom: 20px; border-radius: 4px; }
.btn { display: block; width: 100%; padding: 15px; text-align: center; font-weight: bold; cursor: pointer; border: none; margin-bottom: 10px; transition: var(--transition); border-radius: 4px; }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--grey-dark); }
.btn-outline { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.checkout-note { font-size: 0.8rem; color: var(--grey-text); text-align: center; margin-top: 10px; }

/* ==========================================================================
   GRIDS & SECTIONS
   ========================================================================== */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.adv-card { background: var(--white); border: 1px solid var(--grey-border); padding: 20px; text-align: center; border-radius: 8px; }

.section-heading { font-size: 1.5rem; border-bottom: 2px solid var(--black); padding-bottom: 10px; margin-bottom: 20px; }

.table-container { background: var(--white); padding: 30px; border: 1px solid var(--grey-border); margin-bottom: 40px; overflow-x: auto; border-radius: 8px; }
.specs-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.specs-table td { padding: 15px; border-bottom: 1px solid var(--grey-border); }
.specs-table .table-header td { background: var(--grey-light); font-weight: bold; font-size: 1.1rem; border-bottom: 2px solid var(--black); }

.reviews-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; background: var(--white); padding: 30px; border: 1px solid var(--grey-border); border-radius: 8px; }
.faq-item { border: 1px solid var(--grey-border); margin-bottom: 10px; border-radius: 4px; overflow: hidden; }
.faq-q { width: 100%; padding: 15px; background: var(--grey-light); color: inherit; font: inherit; font-weight: bold; text-align: left; border: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q:focus-visible { outline: 3px solid #00e5ff; outline-offset: -3px; }
.faq-a { padding: 0 15px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--grey-dark); }
.faq-a.active { padding: 15px; max-height: 200px; border-top: 1px solid var(--grey-border); }

.review-summary { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.rating-big { font-size: 3rem; font-weight: 900; }
.review-card { border-bottom: 1px solid var(--grey-border); padding-bottom: 20px; margin-bottom: 20px; }
.review-head { display: flex; justify-content: space-between; margin-bottom: 5px; flex-wrap: wrap; }
.verified { color: var(--grey-text); font-size: 0.8rem; }
.stars { margin-bottom: 10px; letter-spacing: 2px; }

.facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.facility-box { background: var(--white); border: 1px solid var(--grey-border); padding: 30px; text-align: center; border-radius: 8px; }
.facility-box .icon { font-size: 2.5rem; margin-bottom: 10px; }

.alt-links-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; }
.alt-link { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--white); border: 1px solid var(--grey-border); font-weight: bold; cursor: pointer; transition: var(--transition); border-radius: 50px; }
.alt-link:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

.seo-box { background: var(--white); padding: 30px; border: 1px solid var(--grey-border); margin-bottom: 60px; color: var(--grey-dark); font-size: 0.95rem; text-align: justify; border-radius: 8px; }
.seo-box h3 { margin-bottom: 15px; color: var(--black); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer { background: var(--white); border-top: 2px solid var(--black); padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; font-size: 1rem; text-transform: uppercase; border-bottom: 1px solid var(--grey-border); padding-bottom: 10px;}
.footer-col li { margin-bottom: 10px; font-size: 0.85rem; color: var(--grey-text); }
.footer-col li a:hover { color: var(--black); text-decoration: underline; padding-left: 5px; transition: var(--transition); }
.footer-bottom { background: var(--black); color: var(--white); padding: 20px 0; font-size: 0.85rem; }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.payment-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-icon { background: var(--white); color: var(--black); padding: 5px 10px; border-radius: 3px; font-weight: bold; font-size: 0.7rem; }

/* MOTION FX */
.motion-effect { opacity: 0; transition: transform 0.6s ease-out, opacity 0.6s ease-out; }
.slide-up { transform: translateY(30px); }
.slide-up.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Layar Menengah */
@media (max-width: 1024px) {
    .product-hero { grid-template-columns: 1fr 1fr; }
    .product-checkout { grid-column: span 2; }
    .mega-menu { width: 100%; left: 0; right: 0; }
}

/* Tablet Kecil & Landscape Mobile */
@media (max-width: 768px) {
    /* Header Adjustments */
    .search-form { display: none; } /* Tersembunyi di mobile */
    .mobile-menu-btn { display: block; }
    .header-actions span { display: none; }
    .category-nav { display: none; } /* Disembunyikan, toggle via JS jika perlu */

    /* Hero Section */
    .product-hero { grid-template-columns: 1fr; padding: 20px; }
    .product-checkout { grid-column: span 1; }
    .product-info { padding-right: 0; }

    /* Layout Grids */
    .advantages-grid, .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-faq-grid { grid-template-columns: 1fr; padding: 20px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    /* Mega Menus Reset to Stack */
    .mega-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; padding: 15px; box-shadow: none; border-top: none; }
    .mega-grid { grid-template-columns: 1fr; }

    .bottom-flex { flex-direction: column; text-align: center; justify-content: center; }
}

/* Smartphone Portrait */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .header-inner { gap: 15px; }

    /* Paksa 1 Kolom Penuh */
    .advantages-grid, .facilities-grid, .footer-grid { grid-template-columns: 1fr; }

    /* Penyesuaian Ukuran */
    .product-title { font-size: 1.25rem; }
    .price-box { font-size: 1.5rem; }
    .rating-big { font-size: 2.5rem; }
    .table-container { padding: 15px; margin-bottom: 20px; }

    .alt-link { width: 100%; justify-content: center; }
}
/* ==========================================================================
   FOOTER BOTTOM (Diperluas)
   ========================================================================== */
.footer-bottom {
    background: var(--black);
    color: var(--grey-text);
    padding: 30px 0; /* Area lebih luas */
    border-top: 1px solid var(--grey-dark);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Area Legal & Hak Cipta */
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-legal p {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}
.legal-links { font-size: 0.8rem; }
.legal-links a {
    color: var(--grey-text);
    transition: var(--transition);
    margin: 0 5px;
}
.legal-links a:first-child { margin-left: 0; }
.legal-links a:hover { color: var(--white); text-decoration: underline; }

/* Ikon Metode Pembayaran */
.payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 450px; /* Menjaga agar membungkus dengan rapi jika layar menyempit */
}
.pay-icon {
    background: #1a1a1a; /* Abu-abu sangat gelap agar kontras dengan latar hitam */
    color: var(--white);
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    border: 1px solid #333;
    transition: var(--transition);
    cursor: default;
}
.pay-icon:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
    border-color: var(--white);
}

/* Ikon Media Sosial SVG */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.social-icons a {
    color: var(--grey-text);
    background: #1a1a1a;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Membulat penuh */
    border: 1px solid #333;
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

/* Responsive Overrides untuk Tablet & Mobile */
@media (max-width: 992px) {
    .bottom-flex { flex-direction: column; text-align: center; gap: 20px; }
    .footer-legal { align-items: center; }
    .payment-icons { justify-content: center; }
}

/* ==========================================================================
   SUBPAGE CONTENT (SEO PAGES)
   ========================================================================== */
.page-content { background: var(--white); border: 1px solid var(--grey-border); border-radius: 8px; padding: 40px; margin-bottom: 40px; }
.page-content h1 { font-size: 1.9rem; line-height: 1.35; margin-bottom: 15px; }
.page-content h2 { font-size: 1.4rem; margin: 35px 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--black); }
.page-content h3 { font-size: 1.1rem; margin: 25px 0 10px; }
.page-content p { margin-bottom: 15px; line-height: 1.8; color: var(--grey-dark); font-size: 0.95rem; text-align: justify; }
.page-content a { color: #1a56db; text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--black); }
.page-content ul, .page-content ol { margin: 0 0 15px 20px; color: var(--grey-dark); font-size: 0.95rem; line-height: 1.9; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 6px; }

.lead { font-size: 1.05rem !important; color: var(--black) !important; font-weight: 500; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin: 20px 0; }
.info-card { background: var(--grey-light); border: 1px solid var(--grey-border); border-radius: 8px; padding: 18px; }
.info-card h3 { margin-bottom: 8px; font-size: 1rem; }
.info-card p { margin: 0; font-size: 0.85rem; line-height: 1.6; text-align: left; }

.schedule-table { width: 100%; border-collapse: collapse; margin: 15px 0 25px; }
.schedule-table th { background: var(--grey-light); padding: 12px; text-align: left; border-bottom: 2px solid var(--black); }
.schedule-table td { padding: 12px; border-bottom: 1px solid var(--grey-border); }

.cta-box { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border-radius: 14px; padding: 28px; margin: 25px 0; text-align: center; }
.cta-box h3 { color: #fff !important; border: none; margin: 0 0 10px; }
.cta-box p { color: rgba(255,255,255,0.9) !important; text-align: center !important; }
.cta-box .btn { display: inline-block; width: auto; min-width: 180px; margin: 8px; }
.cta-box .btn-primary { background: #fff; color: #0f172a; }
.cta-box .btn-primary:hover { background: #e2e8f0; }
.cta-box .btn-outline { background: transparent; color: #fff; border: 1px solid #fff; }

.pasaran-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 20px 0; }
.pasaran-card { border: 1px solid var(--grey-border); border-radius: 10px; padding: 22px; transition: var(--transition); background: var(--grey-light); }
.pasaran-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--black); }
.pasaran-card h3 { margin-bottom: 8px; }
.pasaran-card p { margin: 0; font-size: 0.85rem; line-height: 1.6; text-align: left; }

.step-list { counter-reset: step; list-style: none !important; margin-left: 0 !important; }
.step-list li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 14px; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; background: var(--black); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }

.faq-inline { margin-top: 10px; }

@media (max-width: 768px) {
    .page-content { padding: 22px; }
    .page-content h1 { font-size: 1.5rem; }
}

/* ==========================================================================
   LIVE DRAW PAGE
   ========================================================================== */
.live-toolbar {
    background: #0f172a;
    border-radius: 14px;
    padding: 20px;
    margin: 25px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #fff;
}
.live-search-wrap { position: relative; }
.live-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.live-search-input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 2px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.live-search-input::placeholder { color: #64748b; }
.live-search-input:focus { border-color: #38bdf8; }
.live-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.live-chip {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.live-chip:hover { border-color: #38bdf8; color: #fff; }
.live-chip.active { background: #38bdf8; border-color: #38bdf8; color: #0f172a; }
.live-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.82rem; color: #94a3b8; }
.live-ticker { display: inline-flex; align-items: center; gap: 7px; color: #4ade80; font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; display: inline-block; animation: livePulse 1.2s infinite; }
.pool-badge-live .live-dot { background: #ef4444; }
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}
.live-clock { font-variant-numeric: tabular-nums; }
.live-refresh-btn {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.live-refresh-btn:hover { background: #475569; color: #fff; }

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.pool-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pool-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); border-color: #38bdf8; }
.pool-card[data-status="live"] { border-color: #ef4444; background: linear-gradient(180deg, #fff, #fef2f2); }
.pool-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pool-flag { font-size: 1.5rem; line-height: 1; }
.pool-name { font-weight: 700; font-size: 0.95rem; flex: 1; }
.pool-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pool-badge-live { background: #ef4444; color: #fff; animation: livePulse 1.2s infinite; }
.pool-badge-soon { background: #f59e0b; color: #fff; }
.pool-badge-done { background: #22c55e; color: #fff; }
.pool-sched { font-size: 0.82rem; color: #64748b; }
.pool-sched strong { color: #0f172a; }
.pool-result, .pool-countdown {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.pool-result-live { background: #fef2f2; border: 1px solid #fecaca; }
.result-label { display: block; font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.countdown-digits { font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #0f172a; letter-spacing: 2px; }
.result-digits { display: flex; justify-content: center; gap: 6px; }
.result-digits span {
    width: 38px;
    height: 46px;
    background: #0f172a;
    color: #38bdf8;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    animation: digitPop 0.4s ease;
}
.pool-card[data-status="live"] .result-digits span { background: #ef4444; color: #fff; }
@keyframes digitPop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
.pool-foot { margin-top: auto; text-align: right; }
.pool-foot a { font-size: 0.78rem; color: #2563eb; text-decoration: none; font-weight: 600; }
.pool-foot a:hover { text-decoration: underline; }
.live-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}
.live-skeleton { grid-column: 1 / -1; text-align: center; padding: 40px; color: #94a3b8; }

@media (max-width: 768px) {
    .live-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .result-digits span { width: 32px; height: 40px; font-size: 1.25rem; }
    .pool-card { padding: 14px; }
    .live-toolbar { padding: 16px; }
}

.pool-result-small, .pool-countdown-small { padding: 10px; margin-top: 2px; }
.pool-countdown-small .countdown-digits { font-size: 1.15rem; letter-spacing: 1px; }
.pool-result-small .result-digits span { width: 30px; height: 38px; font-size: 1.15rem; }
.result-date { display: block; font-size: 0.7rem; color: #94a3b8; margin-top: 6px; text-align: center; }

/* ============ Data Sync Badge ============ */
.sync-badge { display: inline-block; margin-left: 10px; padding: 3px 10px; font-size: 0.75rem; font-weight: 600; color: #00e5ff; background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.35); border-radius: 20px; vertical-align: middle; }

/* ==========================================================================
   UTILITAS AKSESIBILITAS & CORE WEB VITALS
   ========================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #00e5ff;
    outline-offset: 2px;
}

/* Cegah layout shift (CLS) pada gambar dengan atribut width/height */
img { max-width: 100%; height: auto; }

/* Hormati preferensi pengguna yang mengurangi animasi (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .motion-effect { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   HERO BANNER PER HALAMAN
   width/height pada <img> + aspect-ratio di sini mencegah layout shift (CLS)
   ========================================================================== */
.page-hero {
    margin: 0 0 28px;
    border: 1px solid var(--grey-border);
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    background: var(--grey-light);
}
.page-hero img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 480px) {
    .page-hero { margin-bottom: 20px; border-radius: 8px; }
}

/* ==========================================================================
   SKIP LINK & JUDUL SEMANTIK BARU
   ========================================================================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 12px 20px;
    background: #00e5ff;
    color: #05060f;
    font-weight: 700;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    left: 0;
}
#konten-utama:focus { outline: none; }

/* Judul kolom footer: h4 -> h2 (outline benar), tampilan tetap sama */
.footer-col-title {
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--grey-border);
    padding-bottom: 10px;
}
/* H2 pengantar sebelum grid kartu & judul blok tentang */
.intro-h2, .cta-title, .seo-box-title { font-size: 1.5rem; }

/* ==========================================================================
   SINYAL KEPERCAYAAN (E-E-A-T)
   ========================================================================== */
.page-updated {
    font-size: 0.85rem;
    color: var(--grey-text);
    margin: -6px 0 18px;
}
.age-notice {
    margin-top: 6px;
    font-size: 0.85rem;
}
.age-notice strong {
    background: #b91c1c;
    color: #fff;
    padding: 1px 7px;
    border-radius: 4px;
    margin-right: 4px;
}
.contact-line {
    margin-top: 6px;
    font-size: 0.85rem;
}
.contact-line a { text-decoration: underline; }

/* ==========================================================================
   OPTIMASI MOBILE — tap target & tabel yang bisa digeser
   ========================================================================== */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
    border-radius: 8px;
}
.table-scroll > table { margin-bottom: 0; }

/* Ambang tap target Google: 48x48 px */
.mobile-menu-btn {
    min-width: 48px;
    min-height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
}
@media (max-width: 768px) {
    .mobile-menu-btn { display: inline-flex; }
    .action-btn { min-width: 48px; min-height: 48px; justify-content: center; }
    .nav-inner .menu > li > a { padding: 14px 0; display: block; }
    .legal-links a { display: inline-block; padding: 6px 2px; }
    .footer-col li a { display: inline-block; padding: 4px 0; }
    .social-icons a { width: 44px; height: 44px; }
    .faq-q { min-height: 48px; }
}

/* ==========================================================================
   DAFTAR PERMAINAN
   ========================================================================== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 24px 0 28px;
}
.game-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    padding: 20px 22px;
}
.game-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.game-cat-desc {
    font-size: 0.85rem;
    color: var(--grey-text);
    margin-bottom: 14px;
}
.game-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.game-list li {
    font-size: 0.9rem;
    color: var(--grey-dark);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.game-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grey-border);
}
.game-list strong { color: var(--black); }
@media (max-width: 480px) {
    .game-grid { grid-template-columns: 1fr; gap: 14px; }
    .game-card { padding: 16px 18px; }
}

/* ==========================================================================
   PANDUAN PERMAINAN
   ========================================================================== */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
}
.toc-col h3 { font-size: 0.95rem; margin-bottom: 10px; }
.toc-col ul { display: flex; flex-direction: column; gap: 6px; }
.toc-col li a { font-size: 0.87rem; color: var(--grey-text); }
.toc-col li a:hover { color: var(--black); text-decoration: underline; }

.game-detail {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    padding: 24px 26px;
    margin-bottom: 20px;
    scroll-margin-top: 90px;
}
.game-detail h3 { font-size: 1.15rem; margin-bottom: 10px; }
.game-detail h4 { font-size: 0.95rem; margin: 18px 0 8px; }
.game-contoh {
    background: var(--grey-light);
    border-left: 3px solid var(--grey-border);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 12px 0;
}
.rule-list { display: flex; flex-direction: column; gap: 7px; }
.rule-list li {
    font-size: 0.92rem;
    color: var(--grey-dark);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}
.rule-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--grey-border);
}
.payout-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 340px; }
.payout-table th, .payout-table td { padding: 9px 14px; border-bottom: 1px solid var(--grey-border); text-align: left; }
.payout-table thead th { background: var(--grey-light); font-weight: 700; font-size: 0.82rem; }
.payout-table tbody tr:last-child td { border-bottom: none; }
.back-top { margin-top: 16px; font-size: 0.82rem; }
.back-top a { color: var(--grey-text); }
.back-top a:hover { color: var(--black); text-decoration: underline; }
@media (max-width: 480px) {
    .toc-grid { padding: 18px; grid-template-columns: 1fr; }
    .game-detail { padding: 18px 16px; }
}

/* Jawaban langsung di bawah judul pertanyaan — sumber featured snippet */
.qa-answer {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.price-label { font-size: 0.8rem; color: var(--grey-text); margin-bottom: 2px; }
