/* AGB99 NEXUS — MOBILE / RESPONSIVE STYLES MOVED FROM style.css */
/* Existing responsive rules only; no new selectors introduced. */

@media(max-width:900px){.headin{grid-template-columns:160px 1fr}.actions{grid-column:2}.grid5{grid-template-columns:repeat(4,1fr)}.providergrid{grid-template-columns:repeat(4,1fr)}.cols{grid-template-columns:1fr}.footgrid{grid-template-columns:repeat(2,1fr)}}

@media(max-width:600px){.wrap{width:calc(100% - 16px)}.headin{grid-template-columns:1fr auto;min-height:70px}.logo{width:155px}.actions{grid-column:auto}.actions .btn{padding:7px 8px;font-size:9px}.grid5{grid-template-columns:repeat(2,1fr);gap:7px}.providergrid{grid-template-columns:repeat(3,1fr)}.download{grid-template-columns:1fr}.download img{max-height:160px}.footgrid{grid-template-columns:1fr}.section{padding:15px 0}.jackval{font-size:24px}.searchbox{display:grid}}

@media(max-width:600px){.float{left:12px;bottom:18px}}

@media(max-width:700px){.rtpgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:700px){.footer-featured-product-section{grid-template-columns:repeat(2,1fr);gap:18px}.provider-footer-grid{grid-template-columns:repeat(2,1fr)}.banking-stats{flex-direction:row;flex-wrap:nowrap;gap:clamp(2px,1.2vw,4px);align-items:center;width:100%;justify-content:center;font-size:clamp(6px,2.4vw,14px)!important}.banking-stats span{padding:clamp(3px,1.2vw,6px) clamp(4px,2vw,12px)!important;white-space:nowrap}.footer-inner{padding-left:12px;padding-right:12px}}

@media(max-width:900px){.source-top-menu>li{flex-basis:110px}.source-top-menu>li>a{font-size:9px}}

@media(max-width:600px){.source-floating{left:12px;bottom:18px}.source-top-menu>li{min-width:82px}.menu-scroll{flex-basis:24px}}

@media(max-width:900px){.source-menu-item{flex-basis:110px}.source-game-list{grid-template-columns:repeat(3,minmax(0,1fr));left:8px;right:8px}.source-game-list>li{height:90px}}

@media(max-width:600px){.source-game-list{top:var(--menu-dropdown-top,112px);max-height:65vh;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.source-game-list>li{height:82px}.source-game-label{opacity:1}}

@media(max-width:1180px){.nav.source-menu .agb99-menu-brand{flex-basis:225px;width:225px}.nav.source-menu .agb99-menu-brand img{width:205px}.nav.source-menu .source-menu-item{flex-basis:78px;min-width:78px}}

@media(max-width:900px){.nav.source-menu,.nav.source-menu .source-navin{height:80px}.nav.source-menu .agb99-menu-brand{flex-basis:190px;width:190px;height:80px}.nav.source-menu .agb99-menu-brand img{width:180px;height:70px}.nav.source-menu .menu-scroll{height:80px}.nav.source-menu .source-top-menu{height:80px}.nav.source-menu .source-menu-item{height:80px;flex-basis:76px;min-width:76px}.nav.source-menu .source-menu-item>a{height:80px;font-size:9px}.nav.source-menu .source-menu-item>a img{width:32px;height:32px;max-width:32px;flex-basis:32px}.nav.source-menu .source-game-list{top:200px}}

@media(max-width:600px){.nav.source-menu,.nav.source-menu .source-navin{height:70px}.nav.source-menu .agb99-menu-brand{flex-basis:150px;width:150px;height:70px;padding:3px 5px}.nav.source-menu .agb99-menu-brand img{width:140px;height:60px}.nav.source-menu .menu-scroll{height:70px;flex-basis:25px;width:25px}.nav.source-menu .source-top-menu{height:70px;overflow-x:auto}.nav.source-menu .source-menu-item{height:70px;flex:0 0 74px;min-width:74px}.nav.source-menu .source-menu-item>a{height:70px;font-size:8px;padding:5px 2px 4px;gap:3px}.nav.source-menu .source-menu-item>a img{width:27px;height:27px;max-width:27px;flex-basis:27px}.nav.source-menu .source-game-list{top:200px}}

@media (min-width:701px) and (max-width:900px){
  #agb99_popup.mb88-premium-popup .agb99-popup-dialog{width:calc(100vw - 24px)!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-wrap{grid-template-columns:42% minmax(0,58%)!important;height:min(520px,calc(100vh - 28px))!important;min-height:360px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body p{font-size:14px!important}
  #agb99_popup.mb88-premium-popup .mb88-btn-neon{font-size:13px!important}
}

@media (max-width:700px){
  #agb99_popup.mb88-premium-popup{
    padding:8px!important;
    align-items:center!important;
  }
  #agb99_popup.mb88-premium-popup .agb99-popup-dialog{
    width:calc(100vw - 16px)!important;
    max-width:none!important;
  }
  #agb99_popup.mb88-premium-popup .agb99-popup-content{
    width:100%!important;
    max-height:calc(100vh - 16px)!important;
    border-radius:12px!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-wrap{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:min(720px,calc(100dvh - 20px))!important;
    min-height:0!important;
    max-height:calc(100dvh - 20px)!important;
    overflow:hidden!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-close{top:7px!important;right:7px!important;width:31px!important;height:31px!important;font-size:21px!important;line-height:27px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-hero{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;flex:none!important;border:0!important;z-index:0!important;overflow:hidden!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-frame{width:100%!important;height:100%!important;aspect-ratio:auto!important;flex:none!important;min-height:0!important;max-height:none!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-caption{padding:9px 12px 10px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-title{font-size:14px!important;line-height:1.3!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-sub{font-size:10px!important;margin-top:4px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-stats{position:relative!important;z-index:4!important;order:2!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:8px 9px 6px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-stat{padding:7px 2px!important;border-radius:6px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-stat-num{font-size:15px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-stat-label{font-size:7.5px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-tabs{position:relative!important;z-index:4!important;order:3!important;padding:0 7px!important;flex:0 0 auto!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-tab{padding:10px 3px 9px!important;font-size:10px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body{order:4!important;flex:1 1 auto!important;min-height:110px!important;max-height:none!important;overflow-y:auto!important;padding:11px 11px 9px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body p{font-size:14px!important;line-height:1.55!important;margin-bottom:11px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body p:not(:first-of-type){display:none!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body .mb88-tab-panel[data-popup-panel="tentang"]{margin-top:auto!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body .brand-text{font-size:14px!important}
  #agb99_popup.mb88-premium-popup .mb88-rtp-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #agb99_popup.mb88-premium-popup .mb88-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:8px 0 2px!important}
  #agb99_popup.mb88-premium-popup .mb88-game-icon{height:38px!important}
  #agb99_popup.mb88-premium-popup .mb88-game-icon img{width:38px!important;height:38px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-footer{position:relative!important;z-index:6!important;order:5!important;flex:0 0 auto!important;display:grid!important;grid-template-columns:1.25fr 1fr 1fr!important;gap:5px!important;padding:7px 9px 9px!important}
  #agb99_popup.mb88-premium-popup .mb88-btn-neon{min-height:42px!important;padding:8px 3px!important;font-size:11px!important;letter-spacing:.2px!important}
}

@media (max-width:380px){
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-frame{width:100%!important;height:100%!important;aspect-ratio:auto!important;max-height:none!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-title{font-size:13px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body{min-height:100px!important;padding-left:9px!important;padding-right:9px!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body p{font-size:13px!important;line-height:1.5!important}
  #agb99_popup.mb88-premium-popup .mb88-popup-body p:not(:first-of-type){display:none!important}
  #agb99_popup.mb88-premium-popup .mb88-btn-neon{font-size:10px!important;min-height:40px!important}
}


@media (max-width:600px){
  /* TOP BAR */
  .top{height:44px!important;min-height:44px!important}
  .topin{height:44px!important;min-height:44px!important;width:calc(100% - 12px)!important;gap:5px!important}
  .toplinks.agb99-top-actions{gap:10px!important;height:44px!important;align-items:center!important}
  .top .agb99-chat-icon span{display:flex!important;position:static!important;width:20px!important;height:20px!important;color:#fff!important;font-size:0!important;line-height:1!important}
  .top .agb99-top-icon:hover,.top .agb99-telegram-pill:hover,.top .agb99-menu-actions .btn:hover{background:var(--btn-hover-bg,rgba(255,255,255,.30))!important;filter:brightness(.82)!important;transform:translateY(-2px) scale(1.04)!important;box-shadow:var(--btn-hover-shadow,0 6px 16px rgba(0,0,0,.24))!important;font-weight:800!important;z-index:5!important}

  /* LOGIN / DAFTAR: keep pill dimensions, change text only */
  .top .agb99-menu-actions{display:flex!important;align-items:center!important;gap:10px!important;margin-left:auto!important}
  .top .agb99-menu-actions .btn:nth-child(1),.top .agb99-menu-actions .btn:nth-child(2){display:none!important}
  .top .agb99-menu-actions .btn:nth-child(3),.top .agb99-menu-actions .btn:nth-child(4){display:inline-flex!important}
  .top .agb99-menu-actions .btn{font-size:11px!important;font-weight:500!important}

  /* HEADER: logo row, menu row below */
  .nav.source-menu,.nav.source-menu .source-navin{height:auto!important}
  .nav.source-menu .source-navin{
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
  }
  .nav.source-menu .agb99-menu-brand{
    order:1!important;flex:0 0 82px!important;width:100%!important;height:82px!important;min-height:82px!important;
    padding:4px 10px!important;display:flex!important;align-items:center!important;justify-content:center!important;
    background:#111!important;border:0!important;
  }
  .nav.source-menu .agb99-menu-brand img{
    width:220px!important;height:76px!important;max-width:82vw!important;max-height:76px!important;
    object-fit:contain!important;object-position:center!important;margin:0!important;transform:none!important;
  }
  .nav.source-menu .source-top-menu,.nav.source-menu .menu-scroll{order:2!important}
  .nav.source-menu .source-top-menu{
    width:100%!important;height:64px!important;min-height:64px!important;flex:1 1 auto!important;
    overflow-x:auto!important;overflow-y:hidden!important;align-items:stretch!important;
    scrollbar-width:none!important;-ms-overflow-style:none!important;
    background:#0d0d0d!important;border-top:1px solid #252525!important;border-bottom:1px solid #252525!important;
  }
  .nav.source-menu .source-top-menu::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
  .nav.source-menu .source-menu-item{height:64px!important;flex:0 0 72px!important;min-width:72px!important}
  .nav.source-menu .source-menu-item>a{height:64px!important;padding:5px 2px 4px!important;gap:3px!important;font-size:8px!important}
  .nav.source-menu .source-menu-item>a img{width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important;flex-basis:26px!important}
  .nav.source-menu .menu-scroll{
    position:absolute!important;top:82px!important;height:64px!important;width:24px!important;flex:0 0 24px!important;
    background:rgba(17,17,17,.92)!important;z-index:5!important;
  }
  .nav.source-menu .menu-left{left:0!important}.nav.source-menu .menu-right{right:0!important}
  .nav.source-menu .source-game-list{top:146px!important}

  /* SLIDER DOTS */
  #slides .dots .dot,#slides .dot{width:8px!important;height:8px!important;min-width:8px!important;min-height:8px!important}
  #slides .dots{gap:4px!important;bottom:7px!important}

  /* JACKPOT: one simple border only, no layered/pseudo decorative lines */
  #jackpot-lottery-section{background:transparent!important;margin-bottom:20px!important;padding-bottom:0!important}
  #jackpot-lottery-section .home-progressive-jackpot{padding:5px!important;background:linear-gradient(145deg,#1b3048 0%,#0b1421 72%,#080d16 100%)!important;border:1px solid rgba(244,201,107,.68)!important;border-radius:14px!important;box-sizing:border-box!important;box-shadow:0 5px 14px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,216,77,.5)!important}
  #jackpot-lottery-section .home-progressive-jackpot:before,#jackpot-lottery-section .home-progressive-jackpot:after,
  #jackpot-lottery-section .outer-container:before,#jackpot-lottery-section .outer-container:after,
  #jackpot-lottery-section .inner-container:before,#jackpot-lottery-section .inner-container:after,
  #jackpot-lottery-section .border-container:before,#jackpot-lottery-section .border-container:after,
  #jackpot-lottery-section .jackpot-container:before,#jackpot-lottery-section .jackpot-container:after,
  #jackpot-lottery-section .jackpot-inner-container:before,#jackpot-lottery-section .jackpot-inner-container:after,
  #jackpot-lottery-section .jackpot-border-container:before,#jackpot-lottery-section .jackpot-border-container:after{display:none!important;content:none!important}
  #jackpot-lottery-section .outer-container{padding:3px!important;background:linear-gradient(180deg,#ffe7a0 0%,#f4c96b 48%,#a96e20 100%)!important;border:0!important;box-shadow:none!important;outline:0!important;border-radius:11px!important}
  #jackpot-lottery-section .inner-container{padding:3px!important;background:linear-gradient(180deg,#1a2d44 0%,#0b1421 100%)!important;border:0!important;box-shadow:none!important;outline:0!important;border-radius:9px!important;
  }
  #jackpot-lottery-section .border-container{
    min-height:62px!important;height:auto!important;padding:8px 10px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
    background:linear-gradient(180deg,#ffe7a0 0%,#c58b2f 52%,#6e4717 100%)!important;
    border:1px solid rgba(214,169,47,.82)!important;border-radius:7px!important;
    box-shadow:inset 0 1px 0 rgba(255,216,77,.16)!important;outline:0!important;
  }
  #jackpot-lottery-section .jackpot-play-section{display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important}
  #jackpot-lottery-section .jackpot-play{width:38px!important;height:auto!important}
  #jackpot-lottery-section .jackpot-play-text{font-size:8px!important;line-height:1!important}
  #jackpot-lottery-section .jackpot-container{min-width:0!important;flex:1 1 auto!important;padding:2px!important;border:0!important;box-shadow:none!important;background:linear-gradient(180deg,#ffe7a0 0%,#f4c96b 48%,#a96e20 100%)!important;border-radius:8px!important}
  #jackpot-lottery-section .jackpot-inner-container,#jackpot-lottery-section .jackpot-border-container{
    padding:0!important;border:0!important;box-shadow:none!important;background:linear-gradient(180deg,#101d2e 0%,#070c14 100%)!important;
  }
  #jackpot-lottery-section .jackpot-border-container{display:flex!important;align-items:baseline!important;gap:5px!important;white-space:nowrap!important;padding:5px 7px 6px!important;border-radius:5px!important;border:1px solid rgba(212,175,55,.55)!important;background:linear-gradient(145deg,#172a40 0%,#0a111c 100%)!important}
  #jackpot-lottery-section .jackpot-currency{font-size:7px!important;color:#f4c96b!important;margin-right:0!important}
  #jackpot-lottery-section #progressive_jackpot{font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(17px,5.7vw,25px)!important;font-weight:600!important;letter-spacing:1px!important;line-height:1!important;color:#f4c96b!important;text-shadow:0 1px 0 #fff4bf,0 2px 5px rgba(0,0,0,.9),0 0 12px rgba(255,205,80,.28)!important}
  #jackpot-lottery-wrap{padding-top:8px!important;padding-bottom:2px!important;margin-bottom:0!important}
  #jackpot-lottery-wrap .container,#jackpot-lottery-wrap .row{margin-bottom:0!important}
  #hot-games{padding-top:4px!important;margin-top:0!important}
  #hot-games .popular-game-title-container{margin-top:0!important}
}

/* AGB99 MOBILE TOPBAR FINAL — TELEGRAM GOLD ICON PILL + ROOMIER AUTH BUTTONS */
@media (max-width:600px){
  /* Telegram: icon-only gold pill; keep the existing link and hover behavior. */
  .top .agb99-telegram-pill{
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:30px!important;
    min-height:30px!important;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    border:0!important;
    border-radius: 9px!important;
    clip-path:none!important;
    background:#c9d2dc!important;
    color:#111820!important;
    box-shadow:0 2px 8px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.7)!important;
  }
  .top .agb99-telegram-pill img{
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
    max-width:19px!important;
    flex:0 0 19px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    filter:none!important;
    opacity:1!important;
  }
  .top .agb99-telegram-pill span{display:block!important;font-size:12px!important;line-height:30px!important}

  /* Login + Daftar: larger readable labels with proportional breathing room. */
  .top .agb99-menu-actions{
    gap:6px!important;
    margin-left:auto!important;
    align-items:center!important;
  }
  .top .agb99-menu-actions .btn:nth-child(3),
  .top .agb99-menu-actions .btn:nth-child(4){
    display:inline-flex!important;
    height:30px!important;
    min-height:30px!important;
    min-width:58px!important;
    padding:0 11px!important;
    font-size:11px!important;
    line-height:30px!important;
    font-weight:700!important;
    border-radius:5px!important;
    white-space:nowrap!important;
  }
}
@media (max-width:380px){
  .top .agb99-telegram-pill{width:auto!important;min-width:0!important;max-width:none!important;padding:0 11px!important}
  .top .agb99-telegram-pill img{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;flex-basis:19px!important}
  .top .agb99-menu-actions{gap:10px!important}
  .top .agb99-menu-actions .btn:nth-child(3),
  .top .agb99-menu-actions .btn:nth-child(4){
    min-width:54px!important;
    padding:0 9px!important;
    font-size:10.5px!important;
  }
}


/* AGB99 MOBILE POPUP — FINAL FLOW LAYOUT FIX
   Keep hero in document flow. Tab panels must render below the banner,
   never over the hero artwork. One canonical mobile override. */
@media (max-width:700px){
  #agb99_popup.mb88-premium-popup{
    align-items:flex-start!important;
    justify-content:center!important;
    padding:8px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  #agb99_popup.mb88-premium-popup .agb99-popup-dialog{
    width:calc(100vw - 16px)!important;
    max-width:none!important;
    margin:0 auto!important;
  }
  #agb99_popup.mb88-premium-popup .agb99-popup-content{
    width:100%!important;
    max-height:calc(100dvh - 16px)!important;
    overflow:hidden!important;
  }
  #agb99_popup.mb88-premium-popup .agb99-popup-body{
    padding:0!important;
    overflow:visible!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-wrap{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:calc(100dvh - 16px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    background:#0b0b0b!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-hero{
    position:relative!important;
    inset:auto!important;
    order:1!important;
    display:block!important;
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    border:0!important;
    overflow:visible!important;
    background:#080808!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-frame{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
    background:#080808!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-frame img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center top!important;
    background:#080808!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-hero-caption{
    display:none!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-stats{
    position:relative!important;
    inset:auto!important;
    order:2!important;
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    padding:8px 9px 6px!important;
    background:#0b0b0b!important;
    z-index:2!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-tabs{
    position:relative!important;
    inset:auto!important;
    order:3!important;
    flex:0 0 auto!important;
    display:flex!important;
    padding:0 7px!important;
    background:#0b0b0b!important;
    border-bottom:1px solid #292929!important;
    z-index:2!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-body{
    position:relative!important;
    order:4!important;
    flex:0 0 auto!important;
    width:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    padding:11px 11px 9px!important;
    background:#0b0b0b!important;
    z-index:2!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-tab-panel{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-tab-panel.active{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-tab-panel[hidden]{
    display:none!important;
    visibility:hidden!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-body p{
    display:block!important;
    margin:0 0 11px!important;
    color:#c7c7c7!important;
    font-size:13px!important;
    line-height:1.55!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-body p:last-child{
    margin-bottom:0!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-rtp-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-game-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin:0!important;
  }
  #agb99_popup.mb88-premium-popup .mb88-popup-footer{
    position:relative!important;
    order:5!important;
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:1.25fr 1fr 1fr!important;
    gap:5px!important;
    padding:7px 9px 9px!important;
    background:#0b1422!important;
    border-top:1px solid #222!important;
    z-index:2!important;
  }
}


/* AGB99 MOBILE TOPBAR — canonical compact layout */
@media (max-width:600px){
  .top .topin.agb99-topbar{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0 6px!important;
    gap:5px!important;
    justify-content:space-between!important;
    overflow:visible!important;
  }
  .top .toplinks.agb99-top-actions{
    display:flex!important;
    flex:0 1 auto!important;
    min-width:0!important;
    width:auto!important;
    gap:4px!important;
    height:44px!important;
    overflow:visible!important;
    align-items:center!important;
  }
  .top .agb99-top-actions [data-search-open]{
    display:inline-flex!important;
    width:30px!important;min-width:30px!important;height:30px!important;
    padding:0!important;margin:0!important;
    align-items:center!important;justify-content:center!important;
    border-radius:50%!important;
  }
  .top .agb99-top-actions [data-search-open] img{
    width:17px!important;height:17px!important;max-width:17px!important;
    object-fit:contain!important;
  }
  .top .agb99-top-actions .agb99-telegram-pill{
    width:30px!important;min-width:30px!important;max-width:30px!important;
    height:30px!important;min-height:30px!important;
    padding:0!important;gap:0!important;border-radius:50%!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
  }
  .top .agb99-top-actions .agb99-telegram-pill span{display:none!important}
  .top .agb99-top-actions .agb99-telegram-pill svg{
    display:block!important;width:18px!important;height:18px!important;
    margin:0!important;flex:0 0 18px!important;
  }
  .top .agb99-top-actions .agb99-language-switcher{display:inline-flex!important}
  .top .agb99-top-actions .agb99-lang-trigger{
    width:30px!important;min-width:30px!important;height:30px!important;
    padding:0!important;gap:0!important;border-radius:50%!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    font-size:0!important;line-height:1!important;
  }
  .top .agb99-top-actions .agb99-lang-trigger span{display:none!important}
  .top .agb99-top-actions .agb99-lang-trigger span:first-child{display:block!important;font-size:16px!important;line-height:1!important}
  .top .agb99-top-actions .agb99-lang-dropdown{top:34px!important;left:0!important}

  .top .agb99-menu-actions{
    display:flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    margin-left:auto!important;
    gap:5px!important;
    height:34px!important;
    align-items:center!important;
    justify-content:flex-end!important;
    overflow:visible!important;
  }
  .top .agb99-menu-actions .btn.topbar-android-btn,
  .top .agb99-menu-actions .btn.topbar-telegram-btn{display:none!important}
  .top .agb99-menu-actions .btn.topbar-login-btn,
  .top .agb99-menu-actions .btn.topbar-register-btn{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    width:auto!important;min-width:54px!important;height:30px!important;min-height:30px!important;
    padding:0 9px!important;margin:0!important;
    font-size:10px!important;line-height:30px!important;font-weight:700!important;
    white-space:nowrap!important;border-radius:6px!important;
  }
}


/* AGB99 MOBILE COMPACT TOPBAR — FINAL */
@media (max-width:600px){
  .top .agb99-top-actions{
    gap:5px!important;
    height:40px!important;
    align-items:center!important;
  }
  .top .topin.agb99-topbar{
    height:40px!important;
    min-height:40px!important;
    padding:0 6px!important;
    gap:5px!important;
  }
  /* Compact icon-only controls */
  .top .agb99-top-actions [data-search-open],
  .top .agb99-top-actions .agb99-telegram-pill,
  .top .agb99-top-actions .agb99-lang-trigger{
    width:26px!important;
    min-width:26px!important;
    max-width:26px!important;
    height:26px!important;
    min-height:26px!important;
    max-height:26px!important;
    padding:0!important;
    margin:0!important;
    gap:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:50%!important;
    line-height:1!important;
    font-size:0!important;
    flex:0 0 26px!important;
  }
  .top .agb99-top-actions [data-search-open] svg,
  .top .agb99-top-actions [data-search-open] i,
  .top .agb99-top-actions .agb99-telegram-pill img,
  .top .agb99-top-actions .agb99-lang-trigger img,
  .top .agb99-top-actions .agb99-lang-trigger svg{
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
    max-width:14px!important;
    min-height:14px!important;
    max-height:14px!important;
    padding:0!important;
    margin:0!important;
    flex:0 0 14px!important;
  }
  .top .agb99-top-actions .agb99-telegram-pill span,
  .top .agb99-top-actions .agb99-lang-trigger span,
  .top .agb99-top-actions .agb99-lang-trigger .agb99-chevron{
    display:none!important;
  }
  /* Compact authentication buttons; always visible */
  .top .agb99-menu-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:4px!important;
    margin-left:auto!important;
    height:28px!important;
    flex:0 0 auto!important;
  }
  .top .agb99-menu-actions .topbar-login-btn,
  .top .agb99-menu-actions .topbar-register-btn,
  .top .agb99-menu-actions a[href*="login"],
  .top .agb99-menu-actions a[href*="register"],
  .top .agb99-menu-actions a[href*="daftar"]{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:42px!important;
    height:24px!important;
    min-height:24px!important;
    padding:0 6px!important;
    margin:0!important;
    border-radius:4px!important;
    font-size:9px!important;
    line-height:24px!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    flex:0 0 auto!important;
  }
  .top .agb99-menu-actions .btn{font-size:9px!important}
}
@media (max-width:380px){
  .top .agb99-top-actions{gap:4px!important}
  .top .topin.agb99-topbar{padding:0 5px!important;gap:4px!important}
  .top .agb99-menu-actions{gap:3px!important}
  .top .agb99-menu-actions .topbar-login-btn,
  .top .agb99-menu-actions .topbar-register-btn,
  .top .agb99-menu-actions a[href*="login"],
  .top .agb99-menu-actions a[href*="register"],
  .top .agb99-menu-actions a[href*="daftar"]{min-width:40px!important;padding:0 5px!important;font-size:8.5px!important}
}

/* MOBILE TOPBAR FINAL — identical compact controls */
@media (max-width:600px){
  .top .agb99-top-actions a[data-search-open],
  .top .agb99-top-actions .agb99-telegram-pill,
  .top .agb99-top-actions .agb99-language-switcher .agb99-lang-trigger{
    box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:26px!important;min-width:26px!important;max-width:26px!important;
    height:24px!important;min-height:24px!important;max-height:24px!important;
    flex:0 0 26px!important;margin:0 3px 0 0!important;padding:0!important;
    border:1px solid rgba(255,255,255,.16)!important;border-radius:6px!important;
    background:rgba(18,18,18,.72)!important;color:#fff!important;box-shadow:none!important;
    transform:none!important;overflow:hidden!important;line-height:1!important;
  }
  .top .agb99-top-actions a[data-search-open] img,
  .top .agb99-top-actions .agb99-telegram-pill svg,
  .top .agb99-top-actions .agb99-language-switcher .agb99-lang-trigger>span:first-child{
    display:block!important;width:13px!important;height:13px!important;min-width:13px!important;max-width:13px!important;
    min-height:13px!important;max-height:13px!important;margin:0!important;padding:0!important;object-fit:contain!important;
  }
  .top .agb99-top-actions a[data-search-open] img{filter:brightness(0) invert(1)!important}
  .top .agb99-top-actions .agb99-telegram-pill>span,
  .top .agb99-top-actions .agb99-language-switcher .agb99-lang-trigger>span:not(:first-child){display:none!important}
}

/* AGB99 SEARCH ICON WHITE FINAL */
@media (max-width:600px){
  .top .agb99-top-actions a[data-search-open] img,
  .top .agb99-top-actions a[data-search-open] svg,
  .top .agb99-top-actions [data-search-open] img,
  .top .agb99-top-actions [data-search-open] svg{
    filter:brightness(0) invert(1)!important;
    opacity:1!important;
    color:#fff!important;
  }
}
/* MOBILE TOPBAR SEARCH ICON — FINAL WHITE, NO INLINE CONFLICT */
@media (max-width:600px){
  .top .agb99-top-actions a[data-search-open] img,
  .top .agb99-top-actions a[title="Search"] img{
    filter:brightness(0) invert(1)!important;
    opacity:1!important;
    width:13px!important;
    height:13px!important;
  }
}

/* AGB99 MOBILE NOTIFICATION — SINGLE ROW FINAL */
@media (max-width: 767px){
  #notification-section,
  #notification-section *{box-sizing:border-box}
  #notification-section .announcement-container{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:6px!important;
    width:100%!important;
    min-height:36px!important;
    height:36px!important;
    padding:4px 8px!important;
    overflow:hidden!important;
  }
  #notification-section .announcement-container>[data-section="title"]{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 26px!important;
    width:26px!important;
    min-width:26px!important;
    max-width:26px!important;
    height:28px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    font-size:0!important;
    line-height:0!important;
    white-space:nowrap!important;
  }
  #notification-section .announcement-container>[data-section="title"] [data-icon="announcement"]{
    display:block!important;
    flex:0 0 24px!important;
    width:24px!important;
    height:24px!important;
    margin:0!important;
    background-size:15px!important;
  }
  #notification-section .announcement-container>[data-section="date"]{
    display:none!important;
  }
  #notification-section .announcement-container>[data-section="announcements"]{
    display:block!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    height:28px!important;
    margin:0!important;
    overflow:hidden!important;
    border-radius:4px!important;
  }
  #notification-section .announcement-list,
  #notification-section .announcement-list.newsticker{
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    width:max-content!important;
    min-width:max-content!important;
    height:28px!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
    animation:agb99NotificationMarquee 90s linear infinite!important;
    transform:translate3d(0,0,0)!important;
  }
  #notification-section .announcement-list>li,
  #notification-section .announcement-list>li:first-child{
    display:inline-flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    height:28px!important;
    margin:0!important;
    padding:0 45px 0 8px!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:nowrap!important;
    font-size:11px!important;
    line-height:28px!important;
    visibility:visible!important;
    opacity:1!important;
  }
}


/* FINAL MOBILE JACKPOT SCALE — logo and Jackpot Play text balanced */
@media (max-width:700px){
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section{
    flex:0 0 118px!important;
    width:118px!important;
    min-width:118px!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    margin:0!important;
    padding:0 2px!important;
    white-space:nowrap!important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section img{
    display:block!important;
    width:46px!important;
    max-width:46px!important;
    height:27px!important;
    max-height:27px!important;
    object-fit:contain!important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section .jackpot-play-text,
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section .jackpot-play-text label{
    display:block!important;
    font-size:15px!important;
    line-height:1!important;
    margin:0!important;
    padding:0!important;
    letter-spacing:.2px!important;
    white-space:nowrap!important;
  }
}


/* EMERGENCY FINAL FIX: JACKPOT PLAY LOGO + TEXT MUST BE ONE HORIZONTAL LINE */
@media screen and (max-width: 700px) {
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section,
  #jackpot-lottery-section .jackpot-play-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section img,
  #jackpot-lottery-section .jackpot-play-section img {
    display: block !important;
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 24px !important;
    max-width: 42px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    margin: 0 !important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section .jackpot-play-text,
  #jackpot-lottery-section .jackpot-play-section .jackpot-play-text {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible !important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section .jackpot-play-text label,
  #jackpot-lottery-section .jackpot-play-section .jackpot-play-text label {
    display: inline !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 3px !important;
    padding: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
  }
}


/* FINAL MOBILE JACKPOT PLAY — MATCH LOGO/TEXT HEIGHT, SINGLE LINE */
@media screen and (max-width:700px){
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section,
  #jackpot-lottery-section .jackpot-play-section{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:nowrap!important;
    gap:3px!important;
    white-space:nowrap!important;
    width:auto!important;
    min-width:0!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section img,
  #jackpot-lottery-section .jackpot-play-section img{
    display:block!important;
    width:auto!important;
    height:16px!important;
    max-width:34px!important;
    max-height:16px!important;
    flex:0 0 auto!important;
    object-fit:contain!important;
    margin:0!important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section .jackpot-play-text,
  #jackpot-lottery-section .jackpot-play-section .jackpot-play-text{
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    width:auto!important;
    height:16px!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
    font-size:12px!important;
    line-height:16px!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow:visible!important;
    text-transform:uppercase!important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section .jackpot-play-text label,
  #jackpot-lottery-section .jackpot-play-section .jackpot-play-text label{
    display:inline!important;
    width:auto!important;
    height:auto!important;
    margin:0 0 0 2px!important;
    padding:0!important;
    font-size:12px!important;
    line-height:16px!important;
    white-space:nowrap!important;
    vertical-align:baseline!important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section::after,
  #jackpot-lottery-section .jackpot-play-section::after{
    display:none!important;
    content:none!important;
  }
}


/* FINAL MOBILE JACKPOT PLAY SIZE — enlarged, equal visual height, one line */
@media screen and (max-width:700px){
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section,
  #jackpot-lottery-section .jackpot-play-section{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    flex-wrap:nowrap!important;
    gap:6px!important;
    white-space:nowrap!important;
    width:auto!important;
    min-width:0!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section img,
  #jackpot-lottery-section .jackpot-play-section img{
    display:block!important;
    flex:0 0 auto!important;
    width:64px!important;
    max-width:64px!important;
    height:26px!important;
    max-height:26px!important;
    object-fit:contain!important;
    margin:0!important;
  }
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section .jackpot-play-text,
  #jackpot-lottery-section .jackpot-play-section .jackpot-play-text,
  #jackpot-lottery-section .home-progressive-jackpot .jackpot-play-section .jackpot-play-text label,
  #jackpot-lottery-section .jackpot-play-section .jackpot-play-text label{
    display:inline!important;
    flex:0 0 auto!important;
    width:auto!important;
    height:26px!important;
    margin:0!important;
    padding:0!important;
    font-size:18px!important;
    line-height:26px!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow:visible!important;
    vertical-align:middle!important;
  }
}
