/* Tombol WhatsApp melayang (semua halaman) */
.wa-float {
  position: fixed; z-index: 900;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0;
  height: 54px; min-width: 54px; padding: 0; border-radius: 999px;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease, gap .2s ease, padding .2s ease;
  overflow: hidden;
}
.wa-float svg { width: 28px; height: 28px; flex: none; margin: 0 13px; }
.wa-float span { max-width: 0; opacity: 0; white-space: nowrap; font: 700 14px/1 Inter, system-ui, sans-serif; transition: max-width .25s ease, opacity .2s ease; }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.32); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #128C7E, 0 10px 24px rgba(0,0,0,.32); }
@media (hover: hover) and (min-width: 761px) {
  .wa-float:hover span, .wa-float:focus-visible span { max-width: 160px; opacity: 1; margin-right: 18px; }
}
@media (max-width: 760px) { .wa-float { height: 50px; min-width: 50px; } .wa-float svg { width: 26px; height: 26px; margin: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float span { transition: none; } }
@media print { .wa-float { display: none; } }

/* Tombol kembali ke atas (di atas tombol WhatsApp, muncul setelah scroll) */
.to-top {
  position: fixed; z-index: 890;
  right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 54px + 12px);
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(18, 26, 38, .88); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 8px 20px rgba(0,0,0,.34); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid #F28A1E; outline-offset: 2px; }
.to-top svg { grid-area: 1 / 1; width: 44px; height: 44px; }
.to-top .tt-ring { fill: none; stroke: #F28A1E; stroke-width: 2.5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.to-top .tt-track { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2.5; }
.to-top .tt-arrow { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .to-top { width: 40px; height: 40px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 50px + 10px); } .to-top svg { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none; } }
