/* =========================================================
   FIXED BOTTOM NAV — SBOBET88
========================================================= */

body {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

.chat-widget {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 10060;
}

.sbo-top-fixed-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;

  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;

  padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(circle at 50% 0%, rgba(245, 132, 31, 0.22), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(0, 80, 180, 0.28), transparent 42%),
    linear-gradient(180deg, #1B3A6B 0%, #24508C 48%, #0B2340 100%);
  backdrop-filter: blur(12px);

  border-top: 1px solid rgba(245, 132, 31, 0.55);
  border-radius: 18px 18px 0 0;

  box-shadow:
    0 -12px 30px rgba(0, 43, 92, 0.65),
    0 -2px 0 rgba(245, 132, 31, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 18px rgba(245, 132, 31, 0.1);

  font-family: "Orbitron", "Poppins", system-ui, sans-serif;
}

.sbo-top-fixed-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.85;
  mix-blend-mode: overlay;
}

.sbo-top-fixed-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 215, 100, 0.08),
    rgba(255, 255, 255, 0.28),
    rgba(255, 215, 100, 0.45),
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-25deg);
  animation: footerFinalShine 3.8s infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes footerFinalShine {
  0% {
    left: -160%;
  }
  68% {
    left: 160%;
  }
  100% {
    left: 160%;
  }
}

.sbo-top-fixed-footer .sbo-ft-item {
  flex: 1;
  min-width: 0;
  max-width: 88px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  padding: 6px 4px;
  text-decoration: none;
  text-align: center;

  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
  text-shadow: 0 0 8px rgba(245, 132, 31, 0.18);

  border-radius: 14px;
  position: relative;
  z-index: 1;

  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.sbo-top-fixed-footer .sbo-ft-label {
  display: block;
  white-space: normal;
}

.sbo-top-fixed-footer .sbo-ft-item:hover {
  color: #fff8dc;
  background: rgba(245, 132, 31, 0.12);
  transform: translateY(-1px);
}

.sbo-top-fixed-footer .sbo-ft-item:active {
  transform: translateY(0) scale(0.99);
}

.sbo-top-fixed-footer .sbo-ft-icon {
  width: 28px;
  height: 28px;
  padding: 4px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.sbo-top-fixed-footer .sbo-ft-item:hover .sbo-ft-icon {
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(255, 215, 100, 0.45);
}

.sbo-top-fixed-footer .hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border: 1px solid rgba(245, 132, 31, 0.5);
  filter: drop-shadow(0 0 10px rgba(245, 132, 31, 0.25));
  opacity: 0.85;
  z-index: 2;
}

.sbo-top-fixed-footer .hud-tl {
  top: 8px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  border-radius: 10px 0 0 0;
}

.sbo-top-fixed-footer .hud-tr {
  top: 8px;
  right: 10px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 10px 0 0;
}

.sbo-top-fixed-footer .hud-bl {
  bottom: 8px;
  left: 10px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 10px;
}

.sbo-top-fixed-footer .hud-br {
  bottom: 8px;
  right: 10px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 10px 0;
}

.sbo-top-fixed-footer .tada {
  color: #fff8dc;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 132, 31, 0.38), transparent 70%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 132, 31, 0.75);
  box-shadow:
    0 0 18px rgba(245, 132, 31, 0.35),
    inset 0 0 16px rgba(245, 132, 31, 0.14);
  animation: sboOrangePulse 2.6s ease-in-out infinite;
}

.sbo-top-fixed-footer .tada .sbo-ft-icon {
  width: 30px;
  height: 30px;
  box-shadow: 0 0 14px rgba(255, 215, 100, 0.55);
}

.sbo-top-fixed-footer .tada::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(245, 132, 31, 0.45), transparent 70%),
    radial-gradient(circle, rgba(255, 215, 100, 0.12), transparent 72%);
  filter: blur(12px);
  opacity: 0.55;
  animation: corePulse 2.9s ease-in-out infinite;
  z-index: -1;
}

.sbo-top-fixed-footer .sbo-ft-bukti .sbo-ft-label {
  font-size: 8.5px;
  letter-spacing: 0;
  line-height: 1.2;
}

@keyframes corePulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.99);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.02);
  }
}

@keyframes sboOrangePulse {
  0%,
  100% {
    box-shadow:
      0 0 14px rgba(245, 132, 31, 0.28),
      inset 0 0 14px rgba(245, 132, 31, 0.1);
  }
  50% {
    box-shadow:
      0 0 24px rgba(255, 215, 100, 0.55),
      inset 0 0 20px rgba(245, 132, 31, 0.22);
  }
}

@media (max-width: 500px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .sbo-top-fixed-footer {
    padding: 9px 6px calc(9px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    gap: 2px;
  }

  .sbo-top-fixed-footer .sbo-ft-item {
    font-size: 9px;
    padding: 5px 2px;
    max-width: 72px;
  }

  .sbo-top-fixed-footer .sbo-ft-icon {
    width: 24px;
    height: 24px;
    padding: 3px;
  }

  .sbo-top-fixed-footer .tada .sbo-ft-icon {
    width: 26px;
    height: 26px;
  }

  .sbo-top-fixed-footer .sbo-ft-bukti .sbo-ft-label {
    font-size: 7.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbo-top-fixed-footer::after,
  .sbo-top-fixed-footer .tada,
  .sbo-top-fixed-footer .tada::before {
    animation: none !important;
  }
}
