/* =========================
   CSS FOOTER DESKTOP YANG BARU
========================= */
.footer {
  width: 100%;
  max-width: 950px;
  margin: auto;
  background: #1d0632;
  color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-bottom: 15px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

.footer-container {
  width: 950px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 280px 350px 270px;
  column-gap: 30px;
  align-items: flex-start;
  padding: 45px 25px;
}

/*=====================================
LOGO
======================================*/

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 45px;
  height: 45px;
}

.footer-logo h2 {
  margin: 0;
  color: #fff;
  font-size: 45px;
  font-weight: 800;
  line-height: 1;
}

.footer-copy {
  font-size: 13px;
  line-height: 28px;
  color: #ffffff;
  font-weight: 700;
}

/*=====================================
TITLE
======================================*/

.footer-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/*=====================================
LINKS
======================================*/

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
  letter-spacing: 0.8px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: #ffe600;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 4px;
  transition: 0.25s;
}

.footer-links a:hover {
  color: #fff;
  border-color: #fff;
  padding-left: 6px;
}

/*=====================================
CONTACT
======================================*/

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  letter-spacing: 0.8px;
}

.footer-contact i {
  color: #32d5ff;
  font-size: 18px;
  width: 20px;
}

.footer-contact span {
  color: #ffe600;
  font-size: 15px;
  font-weight: 700;
}

/* =========================
   MOBILE NAV
========================= */

.footer-mobile {
  display: none;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .footer-container {
    display: none;
  }

  .footer-mobile {
    position: fixed;
    display: flex;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-around;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    height: 60px;
    background: rgba(10, 10, 25, 0.95);

    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 9999;
  }

  .footer-mobile a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    color: #666;
    gap: 4px;
    transition:
      color 0.25s ease,
      transform 0.25s ease;
  }

  .footer-mobile a.active {
    transform: translateY(-4px);
  }

  .footer-mobile a.active span {
    color: #00d5ff;
    font-size: 12px;
    font-weight: 700;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
  }

  .footer-mobile img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: 0.3s;
    filter: 0.3s ease;
  }

  .menu-btn img {
    animation: gedor 1s infinite;
  }

  @keyframes gedor {
    0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.08);
    }
  }

  .footer-mobile span {
    font-size: 12px;
    font-weight: 700;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
  }

  .footer-mobile a:hover {
    color: #2ecc71;
  }

  .footer-mobile a:hover img {
    transform: scale(1.1);
  }

  .footer-mobile a.active img {
    filter: brightness(1.35) saturate(1.4)
      drop-shadow(0 0 8px rgba(0, 213, 255, 0.8));

    transform: scale(1.12);
    animation: menuPulse 1.5s infinite;
  }

  @keyframes menuPulse {
    0%,
    100% {
      transform: scale(1.12);
    }

    50% {
      transform: scale(1.22);
    }
  }

  /* MENU TENGAH */
  .menu-btn {
    transform: translateY(-12px);
  }

  .menu-btn img {
    width: 50px;
    height: 50px;
  }
}

/*=====================================================
ACTIVE ICON
=====================================================*/

.icon-active {
  display: none;
}

.footer-mobile a.active .icon-normal {
  display: none;
}

.footer-mobile a.active .icon-active {
  display: block;
}

/* =========================
   ANIMATION
========================= */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   OVERLAY
========================= */

#mobileOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
  z-index: 9996;
}

#mobileOverlay.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

/* =========================
   MOBILE SHEET
========================= */
.mobile-sheet {
  position: fixed;
  width: min(280px, 90vw);
  bottom: 70px;
  background: rgba(34, 34, 34, 1);
  border-radius: 10px;
  border: 1px solid #333;
  overflow: visible;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(25px) scale(0.95);
  transform-origin: bottom center;
  transition:
    opacity 0.25s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.28s;
  z-index: 9997;
}

.mobile-sheet.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);

  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* panah */
.mobile-sheet::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(34, 34, 34, 1);
}

.sheet-title {
  position: relative;
  overflow: hidden;
  padding: 8px 10px;
  font-size: 14px;
  color: #000;
  font-weight: 800;
  text-shadow: 1px 1px 0px #aade7c;
  font-family: "Bricolage", Verdana, Tahoma, Arial;
  background: linear-gradient(180deg, #77d42a 10%, #5cb811 100%);
  border-bottom: 1px
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  text-align: center;
}

.sheet-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-25deg);
  animation: indoShine 6s infinite;
  pointer-events: none;
}

@keyframes indoShine {
  0% {
    left: -120%;
  }
  100% {
    left: 150%;
  }
}

.mobile-sheet a {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: #ccc;
  text-decoration: none;
}

.mobile-sheet a:last-child {
  border-bottom: none;
}

.mobile-sheet a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #00d5ff;
}

/* menu utama lebih tinggi */
#mainMenu {
  max-height: 260px;
  width: min(320px, 95vw);
  overflow: visible;
  overflow-x: hidden;
}

#mainMenu .menu-content {
  max-height: 260px;
  overflow-y: auto;
}

#mainMenu.show {
  bottom: 70px;
}

#mainMenu::after {
  left: 89%;
}

#profileMenu::after {
  left: 38%;
}

#depositMenu.show {
  bottom: 80px;
}

#depositMenu::after {
  left: 50%;
}

#messageMenu::after {
  left: 62%;
}

@media (orientation: landscape) {
  #profileMenu::after {
    left: 50%;
  }

  #messageMenu::after {
    left: 50%;
  }

  #depositMenu::after {
    left: 50%;
  }

  #mainMenu::after {
    left: 78%;
  }

  #mainMenu {
    max-height: 200px;
  }
}

#mainMenu .sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}

.message-btn {
  position: relative;
}

.msg-badge {
  position: absolute;
  top: 2px;
  right: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 20px;
  background: #ff2d55;
  border: 2px solid #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 45, 85, 0.7);
  z-index: 2;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

@media (orientation: landscape) {
  .msg-badge {
    top: 2px;
    right: 45px;
  }
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}

.sheet-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(40, 50, 70, 0.95),
    rgba(20, 25, 40, 0.95)
  );
  border: 1px solid #444;
  border-radius: 5px;
  text-decoration: none;
}

.sheet-grid a span {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.sheet-grid a:hover span {
  color: #00d5ff;
}

.sheet-grid a img {
  width: 48px;
  height: 48px;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.sheet-grid a:hover img {
  border-color: #00d5ff;
  box-shadow: 0 0 8px rgba(0, 213, 255, 0.25);
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(0, 213, 255, 0.8));
}

.sheet-badge {
  position: absolute;
  top: -4px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
  animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}
.icon-active {
  display: none;
}

.footer-mobile a.active .icon-normal {
  display: none;
}

.footer-mobile a.active .icon-active {
  display: block;
}

/*=====================================
AUTO HIDE
======================================*/

.footer-mobile {
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.footer-mobile.hide {
  transform: translateY(100%);
  opacity: 0;
}
