/* ============================================================
   SARDEN11 HOME.CSS — FINAL V9.0 (THEME AWARE & PERFECT LAYOUT)
   ============================================================ */

/* 1. RESET GAMBAR GLOBAL */
.home-hot-games img,
.category-scroll img,
.provider-home-scroll img,
.banner-slider img,
.banner-slide img,
.home-togel-card img {
    max-width: 100% !important;
}

/* ============================================================
   2. BANNER SLIDER
   ============================================================ */
.banner-section {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
}
.banner-wrapper {
    width: 100% !important;
    height: 180px !important;
    background: #111 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
}
.banner-slide { width: 100% !important; height: 100% !important; display: none; }
.banner-slide.active { display: block !important; }
.banner-slide img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.slider-dot { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.slider-dot span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.slider-dot span.active { background: var(--sv-primary, #ffd45a); width: 15px; border-radius: 10px; }

/* ============================================================
   3. KATEGORI GAME
   ============================================================ */
.category { padding: 10px 12px; overflow: hidden; }
.category-scroll {
    display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto;
    padding-bottom: 10px; scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-item {
    flex: 0 0 auto; width: 78px; height: auto; min-height: 70px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    background: transparent; border: none; border-radius: 10px; overflow: visible;
    gap: 6px; padding-bottom: 2px;
}
.category-item img { width: 70px !important; height: 70px !important; object-fit: contain !important; display: block !important; flex-shrink: 0; }
.category-item span,
.category-label {
    display: block !important;
    font-size: 10px;
    font-weight: 700;
    color: var(--sv-text, #FFF6E0);
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 8px color-mix(in srgb, var(--sv-glow, #F7A63D) 30%, transparent);
}

/* ============================================================
   4. HOT GAMES SLOT (SWIPER FIX)
   ============================================================ */
.home-hot-games { padding: 15px 12px; overflow: hidden; width: 100%; box-sizing: border-box; }
.home-hot-games > div:first-child { display: flex !important; align-items: center !important; justify-content: space-between !important; margin-bottom: 12px !important; }
.home-hot-title, .home-hot-games h2, .home-hot-games h3 { display: flex !important; align-items: center !important; gap: 8px !important; font-size: 16px !important; font-weight: 900 !important; color: var(--sv-text-section, var(--sv-text, #FFF6E0)) !important; margin: 0 !important; }
.home-hot-swiper, .swiper.home-hot-swiper { width: 100% !important; max-width: 100% !important; overflow: hidden !important; position: relative !important; padding-bottom: 20px !important; }
.home-hot-swiper .swiper-wrapper { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; }
.home-hot-swiper .swiper-slide { width: 110px !important; min-width: 110px !important; max-width: 110px !important; height: 145px !important; flex: 0 0 110px !important; padding-right: 8px !important; box-sizing: border-box !important; }
.home-hot-swiper .swiper-slide > a, .home-hot-swiper .swiper-slide > div { display: block !important; width: 100% !important; height: 100% !important; border-radius: 10px !important; overflow: hidden !important; border: 1px solid var(--sv-border, rgba(232,171,45,.4)) !important; background: #111 !important; position: relative !important; }
.home-hot-swiper .swiper-slide img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.home-hot-swiper .swiper-pagination { display: none !important; }

/* ============================================================
   5. PASARAN TOGEL (FIX CARD BESAR & TEKS MELUBER)
   ============================================================ */
.home-togel { padding: 15px 12px 9px; overflow: hidden; }
.home-togel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.home-togel-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.home-togel-title img { width: 42px !important; height: 42px !important; object-fit: contain !important; flex: 0 0 42px !important; }
.home-togel-title h3 { margin: 0; font-size: 16px; line-height: 1.05; color: var(--sv-text-section, var(--sv-text, #FFF6E0)) !important; text-transform: uppercase; }
.home-togel-title span { display: block; color: var(--sv-text-label, rgba(255,255,255,.68)) !important; font-size: 9px; }

/* Navigasi Togel */
.home-togel-nav { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.home-togel-nav button, .home-togel-nav a {
    height: 28px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--sv-border-soft, rgba(255,202,72,.3));
    border-radius: 8px; background: rgba(20,5,5,.86); color: var(--sv-primary, #eac561);
    text-decoration: none;
}
.home-togel-nav button { width: 28px; }
.home-togel-nav a { padding: 0 10px; font-size: 8px; font-weight: 900; color: var(--sv-text-menu, var(--sv-text-section, #ffe2a4)) !important; }

/* Track Togel */
.home-togel-track {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 11px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.home-togel-track::-webkit-scrollbar { display: none; }

/* Card Togel (Kunci Ukuran!) */
.home-togel-card {
    position: relative; flex: 0 0 150px !important; /* KUNCI: Lebar fix 150px */
    height: 110px !important; /* KUNCI: Tinggi fix */
    padding: 8px !important; box-sizing: border-box !important;
    border: 1px solid var(--sv-border-soft, rgba(232,171,45,.3));
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(25,10,25,.95), rgba(5,5,5,.98)); /* Warna dasar gelap */
    box-shadow: 0 4px 10px rgba(0,0,0,.5); overflow: hidden;
    scroll-snap-align: start;
}
.home-togel-card::after {
    content: ''; position: absolute; width: 50px; height: 50px;
    right: -15px; bottom: -25px; border: 1px solid var(--sv-border-soft, rgba(255,197,53,.15));
    border-radius: 50%; z-index: 0;
}
.home-togel-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 14px; position: relative; z-index: 1; }
.home-togel-status, .home-togel-prize {
    display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px;
    border-radius: 99px; font-size: 6px; font-weight: 900;
}
.home-togel-status { color: #70e69d; background: rgba(32,153,83,.15); border: 1px solid rgba(70,219,130,.3); }
.home-togel-status.closed { color: #ff8589; background: rgba(161,5,12,.15); border-color: rgba(255,75,83,.3); }
.home-togel-status i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.home-togel-prize { color: var(--sv-primary, #f2c453); background: rgba(201,139,9,.1); border: 1px solid var(--sv-border-soft); }

.home-togel-card h4 {
    margin: 6px 0 4px; font-size: 10px !important; line-height: 1.2;
    color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    position: relative; z-index: 1;
}
.home-togel-meta { display: flex; justify-content: space-between; font-size: 7px; color: #aaa; position: relative; z-index: 1; }
.home-togel-meta b { color: var(--sv-primary, #ddd3bc); }

.home-togel-result { margin-top: 6px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 1; }
.home-togel-result small { display: block; font-size: 6px; color: #888; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .5px; }
.home-togel-result div { display: flex; gap: 3px; }
.home-togel-result b {
    width: 16px; height: 16px; display: grid; place-items: center;
    border-radius: 50%; background: radial-gradient(circle at 35% 25%, #ff695e, #a8070e 50%, #390003);
    color: #fff1bd; font-size: 8px; border: 1px solid rgba(255,215,91,.5);
}
.home-togel-play {
    position: absolute; right: 8px; bottom: 8px; z-index: 2;
    display: flex; align-items: center; gap: 4px; color: var(--sv-primary, #f0c252) !important;
    font-size: 7px; font-weight: 900; text-decoration: none !important;
    background: rgba(0,0,0,.5); padding: 4px 6px; border-radius: 6px;
}
.home-togel-play i { font-size: 6px; }

/* ============================================================
   6. PROVIDER HOME (SLOT & CASINO) - RAPI & TEMA
   ============================================================ */
.provider-home-section { padding: 18px 12px 12px; clear: both; }
.provider-home-title { color: var(--sv-text-section, var(--sv-text, #FFF6E0)) !important; font-size: 17px; font-weight: 900; margin-bottom: 14px; text-transform: uppercase; }
.provider-home-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: none; }
.provider-home-scroll::-webkit-scrollbar { display: none; }

/* Card Provider */
.provider-home-item {
    position: relative; flex: 0 0 100px; width: 100px; height: 130px;
    border-radius: 14px; overflow: hidden;
    background: #111;
    /* Warna border mengikuti tema */
    border: 1px solid var(--sv-border, #ffd764) !important;
    box-shadow: 0 8px 15px rgba(0,0,0,.6), inset 0 0 10px rgba(0,0,0,.8);
    transition: transform .3s ease;
}
.provider-home-item:hover { transform: translateY(-4px); }
.provider-home-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; border-radius: 14px; }

.provider-lobby-heading { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.provider-lobby-icon { width: 46px !important; height: 46px !important; object-fit: contain !important; }
.provider-lobby-copy .provider-home-title { margin: 0; font-size: 18px; line-height: 1.1; color: var(--sv-text-section, var(--sv-text, #FFF6E0)) !important; }
.provider-home-subtitle { display: block; margin-top: 4px; color: var(--sv-text-label, #aaa) !important; font-size: 10px; }

/* ============================================================
   7. JACKPOT
   ============================================================ */
.jackpot-section { padding: 8px 15px 0 !important; display: flex !important; justify-content: center !important; }
.jackpot-card {
    width: 100% !important; max-width: 980px !important; height: 132px !important;
    background-image: var(--sv-jackpot-mobile, url('/assets/img/jackpot/jackpot.png')) !important;
    background-size: 100% 132px !important; background-position: center !important; background-repeat: no-repeat !important;
    position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important;
}
.jackpot-card h3, .jackpot-currency { display: none !important; }
.jackpot-value {
    width: 100% !important; text-align: center !important; font-size: 34px !important; font-weight: 900 !important;
    color: var(--sv-text-jackpot, var(--sv-primary, #ffd84d)) !important; text-shadow: 0 0 10px var(--sv-glow, #ffcc33), 0 0 20px #ff9900 !important;
    transform: translateY(-8px) !important;
}

/* ============================================================
   8. DESKTOP OVERRIDE
   ============================================================ */
@media (min-width: 900px) {
    .banner-wrapper { height: 300px !important; }

    .category-scroll { display: grid !important; grid-template-columns: repeat(6, 1fr) !important; gap: 15px !important; align-items: start !important; }
    .category-item { width: 100% !important; height: auto !important; min-height: 90px !important; background: transparent !important; border: none !important; }
    .category-item img { width: 80px !important; height: 80px !important; margin: 0 auto !important; }
    .category-label { font-size: 12px !important; font-weight: 800 !important; }

    .home-hot-swiper .swiper-slide { width: 160px !important; min-width: 160px !important; max-width: 160px !important; height: 210px !important; flex: 0 0 160px !important; }
    
    .home-togel-card { flex: 0 0 180px !important; height: 130px !important; padding: 10px !important; }
    .home-togel-card h4 { font-size: 12px !important; }
    
    .jackpot-card { height: auto !important; aspect-ratio: 3 / 1 !important; background-image: var(--sv-jackpot-desktop, url('/assets/img/jackpot/jackpot-desktop.png')) !important; background-size: 100% 100% !important; }
    .jackpot-value { font-size: clamp(46px, 4.3vw, 62px) !important; }

    .provider-home-item { width: 120px !important; height: 155px !important; }
}
.home-hot-all{color:var(--sv-text-menu,var(--sv-text-section,#ffe2a4))!important;}


/* ==== FORCE section titles independent of theme primary ==== */
.sv-section-title,
.home-hot-title h3,
.home-hot-title-text h3,
.home-hot-games h3,
.home-togel-title h3,
.provider-home-title {
    color: var(--sv-text-section, #FFFFFF) !important;
    -webkit-text-fill-color: var(--sv-text-section, #FFFFFF) !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    text-shadow: none !important;
    filter: none !important;
}
