
/* JAKSKY SUPPORT PREMIUM UI V2.2 */

html body #jakskySupportV2 {
  right:22px!important;
  bottom:calc(132px + env(safe-area-inset-bottom))!important;
  z-index:950!important;
}

/* Floating support button */
html body #jakskySupportV2 .jakskySupportToggleV2 {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:46px!important;
  min-width:118px!important;
  padding:0 15px!important;
  border-radius:999px!important;
  border:1px solid rgba(130,188,255,.4)!important;
  background:linear-gradient(
    135deg,rgba(19,39,76,.96),rgba(28,70,137,.97)
  )!important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  color:white!important;
  font-size:0!important;
  box-shadow:0 10px 26px rgba(0,0,0,.35),
    inset 0 1px rgba(255,255,255,.11)!important;
}

/* Chat icon */
html body #jakskySupportV2 .jakskySupportToggleV2::before {
  content:"···";
  display:flex;
  align-items:center;
  justify-content:center;
  width:27px;
  height:25px;
  border-radius:9px 9px 9px 3px;
  background:#398fff;
  font-size:22px;
  line-height:1;
  font-weight:800;
  color:white;
  padding-bottom:5px;
  box-sizing:border-box;
}

/* Clean button label */
html body #jakskySupportV2 .jakskySupportToggleV2::after {
  content:"Bantuan";
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
}

/* Support menu */
html body #jakskySupportV2 .jakskySupportMenuV2 {
  width:min(260px,calc(100vw - 48px))!important;
  padding:14px!important;
  gap:9px!important;
  bottom:calc(100% + 13px)!important;
  background:linear-gradient(155deg,#142746,#0b172b)!important;
  border:1px solid rgba(141,187,255,.25)!important;
  border-radius:20px!important;
  box-shadow:0 18px 45px rgba(0,0,0,.5)!important;
}

/* Menu heading */
html body #jakskySupportV2 .jakskySupportMenuV2::before {
  content:"PUSAT BANTUAN";
  display:block;
  padding:3px 4px 8px;
  color:#c5dcff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.09em;
}

/* Menu items */
html body #jakskySupportV2 .jakskySupportMenuV2 button,
html body #jakskySupportV2 .jakskySupportMenuV2 a {
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  min-height:51px!important;
  padding:9px 11px!important;
  border-radius:13px!important;
  background:rgba(49,84,137,.28)!important;
  border:1px solid rgba(143,191,255,.18)!important;
  color:#f2f7ff!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:650!important;
  text-decoration:none!important;
  box-sizing:border-box!important;
}

/* CS icon */
html body #jakskySupportV2 #jakskySupportCsV2::before {
  content:"CS";
  display:grid;
  place-items:center;
  flex:0 0 34px;
  height:34px;
  border-radius:11px;
  background:#237edc;
  color:white;
  font-size:11px;
  font-weight:900;
}

/* WhatsApp channel icon */
html body #jakskySupportV2 .jakskySupportMenuV2 a::before {
  content:"WA";
  display:grid;
  place-items:center;
  flex:0 0 34px;
  height:34px;
  border-radius:11px;
  background:#147a61;
  color:white;
  font-size:11px;
  font-weight:900;
}

html body #jakskySupportV2 .jakskySupportMenuV2 a:hover,
html body #jakskySupportV2 .jakskySupportMenuV2 button:hover {
  background:rgba(76,121,191,.42)!important;
}

html body #jakskySupportV2 button:focus-visible,
html body #jakskySupportV2 a:focus-visible {
  outline:2px solid #8ec7ff!important;
  outline-offset:3px!important;
}

@media(min-width:821px) {
  html body #jakskySupportV2 {
    right:30px!important;
    bottom:30px!important;
  }
}

@media(max-width:380px) {
  html body #jakskySupportV2 {
    right:18px!important;
    bottom:calc(125px + env(safe-area-inset-bottom))!important;
  }
}

/* Compact Home support button on mobile, preserving the existing menu.
   The real button has aria-label="Buka menu bantuan" and is keyboard reachable. */
@media (max-width:820px) {
  html body.jakPageHome #jakskySupportV2 {
    right:14px!important;
    bottom:calc(106px + env(safe-area-inset-bottom, 0px))!important;
  }
  html body.jakPageHome #jakskySupportV2 .jakskySupportToggleV2 {
    width:50px!important;
    min-width:50px!important;
    height:50px!important;
    min-height:50px!important;
    padding:0!important;
    gap:0!important;
    background:#58443a!important;
    border:1px solid rgba(255,241,222,.65)!important;
    box-shadow:0 4px 13px rgba(47,32,24,.20)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  html body.jakPageHome #jakskySupportV2 .jakskySupportToggleV2::before {
    width:27px!important;
    height:27px!important;
    padding-bottom:4px!important;
    background:#f3e6d9!important;
    color:#4d392f!important;
    font-size:19px!important;
  }
  html body.jakPageHome #jakskySupportV2 .jakskySupportToggleV2::after {
    content:none!important;
    display:none!important;
  }
}
