/* Halaman Promosi (/promosi) gaya AXIO444 seperti referensi (27 Nov 2026): tab kategori + baris promo (banner | judul & Rincian | waktu tersisa)
   + jendela Rincian. Markup dari bgn/promo.js, kelas hp-. Selektor diawali #bgn-promo (bobot ID); jendela Rincian di body -> .hp-ov. */
#bgn-promo{display:block;max-width:1150px;margin:0 auto;padding:26px 16px 48px;color:#d4e7ff;font:15px/1.5 Montserrat,system-ui,sans-serif;text-align:left;min-height:calc(100vh - 220px)}
#bgn-promo *{box-sizing:border-box}
#bgn-promo :is(h1,h3,p,ul){margin:0}
#bgn-promo button{font:inherit;cursor:pointer}
html:has(#bgn-promo) #tk-bubbles{display:none!important}
#bgn-promo .hp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* tab kategori */
#bgn-promo .hp-tabs{display:flex;margin-bottom:30px;background:#020b3a;overflow-x:auto;scrollbar-width:none}
#bgn-promo .hp-tabs::-webkit-scrollbar{display:none}
#bgn-promo .hp-tabs button{flex:1 0 auto;min-width:110px;padding:10px 14px;border:0;border-radius:0;background:none;color:#fff;font-size:15px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;transition:background .15s,color .15s}
#bgn-promo .hp-tabs button:hover{background:rgba(124,128,178,.25)}
#bgn-promo .hp-tabs button.on{background:#7d80b1;color:#2b2d4d}
#bgn-promo .hp-tabs button:focus-visible{outline:2px solid #fbb829;outline-offset:-2px}

/* baris promo */
#bgn-promo .hp-list{display:flex;flex-direction:column;gap:14px}
#bgn-promo .hp-row{display:grid;grid-template-columns:362px 1fr 260px;align-items:center;gap:0 46px;min-height:160px;background:rgba(18,13,24,.78)}
#bgn-promo .hp-pic{display:block;margin:0;padding:0;border:0;background:none;line-height:0}
#bgn-promo .hp-pic img{display:block;width:100%;height:auto;aspect-ratio:600/269;object-fit:contain;transition:filter .2s}
#bgn-promo .hp-pic:hover img,#bgn-promo .hp-pic:focus-visible img{filter:brightness(1.1)}
#bgn-promo .hp-pic:focus-visible{outline:2px solid #fbb829;outline-offset:2px}
#bgn-promo .hp-mid{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
#bgn-promo .hp-tt{color:#fbb829;font:700 25px/1.25 Montserrat,system-ui,sans-serif;overflow-wrap:anywhere}
#bgn-promo .hp-btn{padding:6px 13px;border:0;border-radius:3px;background:#fbb829;color:#fff;font-size:14px;font-weight:600;transition:filter .15s}
#bgn-promo .hp-btn:hover{filter:brightness(1.08)}
#bgn-promo .hp-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
#bgn-promo .hp-time{padding-right:20px}
#bgn-promo .hp-tl{display:flex;align-items:center;gap:6px;color:#5f5a72;font-size:14px}
#bgn-promo .hp-clock{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
#bgn-promo .hp-tv{color:#fbb829;font-size:19px;font-weight:600;line-height:1.3}
#bgn-promo .hp-empty{padding:40px 16px;text-align:center;background:rgba(18,13,24,.78);color:#b0bfd7}

@media (max-width:1023px){
  #bgn-promo .hp-row{grid-template-columns:300px 1fr;gap:0 26px}
  #bgn-promo .hp-time{grid-column:2;padding:0 0 14px}
  #bgn-promo .hp-pic{grid-row:span 2}
  #bgn-promo .hp-mid{align-self:end}
  #bgn-promo .hp-tt{font-size:21px}
}
@media (max-width:767px){
  #bgn-promo{padding:62px 8px 30px} /* ruang notifikasi Withdraw Berhasil di bawah header */
  #bgn-promo .hp-tabs{margin-bottom:14px}
  #bgn-promo .hp-tabs button{min-width:0;padding:9px 14px;font-size:12.5px}
  #bgn-promo .hp-list{gap:10px}
  #bgn-promo .hp-row{grid-template-columns:1fr;gap:0;min-height:0}
  #bgn-promo .hp-pic{grid-row:auto}
  #bgn-promo .hp-mid{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 4px}
  #bgn-promo .hp-tt{font-size:16px}
  #bgn-promo .hp-btn{flex:none;font-size:13px}
  #bgn-promo .hp-time{grid-column:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 12px 12px}
  #bgn-promo .hp-tl{font-size:12px}
  #bgn-promo .hp-tv{font-size:14px}
}

/* jendela Rincian (position:fixed, dipasang langsung di body) */
html.hp-lock{overflow:hidden}
.hp-ov{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(4,4,12,.78);animation:hp-in .18s ease}
.hp-ov *{box-sizing:border-box}
.hp-dlg{display:flex;flex-direction:column;width:100%;max-width:760px;max-height:calc(100vh - 40px);overflow:hidden;border:1px solid #3a2f4a;border-radius:8px;background:#17111f;color:#d8d4e4;font:15px/1.55 Montserrat,system-ui,sans-serif;text-align:left;box-shadow:0 20px 50px rgba(0,0,0,.6)}
.hp-mh{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:#020b3a;color:#fff;font-weight:700;letter-spacing:.03em;text-transform:uppercase;font-size:14px}
.hp-x{width:32px;height:32px;padding:0;border:0;border-radius:4px;background:none;color:#fff;font:400 28px/1 system-ui,sans-serif;cursor:pointer}
.hp-x:hover{background:rgba(255,255,255,.12)}
.hp-x:focus-visible{outline:2px solid #fbb829}
.hp-mb{overflow-y:auto;padding:18px 20px 22px}
.hp-mimg{display:block;width:100%;max-width:600px;height:auto;margin:0 auto 14px}
.hp-mb h2{margin:0 0 6px;color:#fbb829;font:700 22px/1.3 Montserrat,system-ui,sans-serif}
.hp-ov .hp-per{display:flex;align-items:center;gap:6px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px dashed rgba(251,184,41,.35);color:#bfa46a;font-size:13px;font-weight:600}
.hp-ov .hp-clock{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.hp-terms{display:grid;gap:8px;font-size:14px}
.hp-terms p{margin:0;white-space:pre-line}
.hp-terms ul{display:grid;gap:5px;margin:0;padding:0;list-style:none}
.hp-terms li{position:relative;padding-left:20px}
.hp-terms li:before{content:"";position:absolute;left:2px;top:.5em;width:0;height:0;border-left:9px solid #fbb829;border-top:5.5px solid transparent;border-bottom:5.5px solid transparent}
.hp-soon{margin:0;font-size:14px;color:#b0a9c2}
@media (max-width:767px){
  .hp-ov{padding:10px}
  .hp-dlg{max-height:calc(100vh - 20px)}
  .hp-mb{padding:14px 14px 18px}
  .hp-mb h2{font-size:18px}
  .hp-terms{font-size:13px}
}
@keyframes hp-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.hp-ov{animation:none}}
