html, body {
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111d;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

body {
  position: relative;
  color: #fff;
}

.glass-panel {
  background: linear-gradient(145deg, rgba(28, 45, 66, 0.94), rgba(17, 31, 48, 0.90));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-panel-strong {
  background: var(--glass-blue-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-blue);
}

.glass-chip {
  background: rgba(17, 39, 61, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 24px rgba(8, 22, 39, 0.24);
}

.top-icon-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.top-icon-btn:hover {
  background: rgba(142, 203, 255, 0.12);
  border-color: rgba(142, 203, 255, 0.40);
  transform: translateY(-1px);
}

.right-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .25s ease;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 12px 28px rgba(0,0,0,0.26);
  background: linear-gradient(145deg, rgba(78,102,132,0.42), rgba(37,52,72,0.66));
  color: #fff;
}

.right-circle-btn:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(173,217,255,0.34);
  background: linear-gradient(145deg, rgba(101,128,160,0.48), rgba(46,64,87,0.78));
}

.wa-btn {
  background: linear-gradient(145deg, #29d765, #17b653);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 10px 24px rgba(23, 182, 83, 0.28);
}

.wa-btn:hover {
  background: linear-gradient(145deg, #35e270, #18ba56);
  box-shadow: 0 14px 30px rgba(23, 182, 83, 0.35);
}

.wa-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.left-nav {
  background: linear-gradient(145deg, rgba(28,45,66,0.94), rgba(17,31,48,0.90));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.left-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 14px;
  transition: all .25s ease;
}

.left-nav-btn:hover,
.left-nav-btn.active {
  background: rgba(142, 203, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(142, 203, 255, 0.20);
}

.left-nav-btn img {
  object-fit: contain;
  display: block;
}

.spim-card {
  background: linear-gradient(145deg, rgba(28,45,66,0.94), rgba(17,31,48,0.90));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#gallery {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #07111d;
}

.gallery-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 110px;
}

#galleryImage {
  display: block;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  transition: opacity .45s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-bottom-bar {
  background: linear-gradient(145deg, rgba(28,45,66,0.92), rgba(17,31,48,0.88));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gallery-nav-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  color: white;
  transition: all .25s ease;
  flex-shrink: 0;
}

.gallery-nav-btn:hover {
  background: rgba(255,255,255,0.08);
}

.view-all-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.view-all-btn:hover {
  background: rgba(142,203,255,0.12);
  border-color: rgba(142,203,255,0.26);
}

#galleryItemsListWrapper {
  z-index: 60;
}

#galleryItemsListWrapper .panel-shell {
  background: linear-gradient(180deg, rgba(17,31,48,0.96), rgba(11,20,34,0.98));
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -18px 40px rgba(0,0,0,0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#galleryCollapse {
  background: linear-gradient(145deg, #d8ecff, #f8fcff);
  color: #0e2236;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

#galleryItemsList,
.gallery-options {
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,0.75) transparent;
}

#galleryItemsList::-webkit-scrollbar,
.gallery-options::-webkit-scrollbar {
  height: 6px;
}

#galleryItemsList::-webkit-scrollbar-track,
.gallery-options::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.35);
}

#galleryItemsList::-webkit-scrollbar-thumb,
.gallery-options::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.78);
  border-radius: 9999px;
}

#galleryItemsList li img {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#galleryItemsList li img:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 203, 255, 0.35);
  box-shadow: 0 16px 26px rgba(0,0,0,0.26);
}

/* ================= FIXED CATEGORY FILTER BUTTONS CHIPS ================= */
.gallery-options {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gallery-options li,
.gallery-options button,
.gallery-options div[data-category] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  user-select: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.gallery-options li {
  font-size: 0 !important;
}
.gallery-options li * {
  font-size: 13px !important;
}

.gallery-options li:hover,
.gallery-options button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

.gallery-options li.active,
.gallery-options button.active,
.gallery-options li[class*="active"],
.gallery-options .bg-blue-600 {
  background: #2563eb !important; 
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  font-size: 13px !important;
}

.gallery-options ::before,
.gallery-options ::after,
.gallery-options li::before,
.gallery-options li::after {
  display: none !important;
  content: "" !important;
}

#featuresMenu {
  background: linear-gradient(180deg, rgba(18,31,47,0.96), rgba(10,18,30,0.98));
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow: -20px 0 40px rgba(0,0,0,0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.menu-icon-shell {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all .25s ease;
}

.menu-item:hover .menu-icon-shell,
.menu-item.active .menu-icon-shell {
  background: rgba(142, 203, 255, 0.12);
  border-color: rgba(142, 203, 255, 0.30);
}

.device-rotation {
  display: none;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .device-rotation {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .gallery-stage {
    padding: 94px 18px 108px;
  }
  #galleryImage {
    max-width: 94vw;
    max-height: calc(100vh - 220px);
  }
}

/* Target Landscape Mobile phones & Low Viewport Heights strictly */
@media (max-height: 520px) and (orientation: landscape) {
  .gallery-stage {
    padding: 48px 12px 52px !important;
  }
  #galleryImage {
    max-height: calc(100vh - 95px) !important;
  }
  .gallery-bottom-bar {
    bottom: 6px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .gallery-options li,
  .gallery-options button {
    padding: 4px 12px !important;
    font-size: 11px !important;
  }
  .gallery-options li * {
    font-size: 11px !important;
  }

  .top-header-panel {
    top: 4px !important;
    left: 4px !important;
    padding: 4px !important;
    border-radius: 12px !important;
  }
  .top-header-logo { height: 14px !important; width: 14px !important; }
  .top-header-paddco { font-size: 5.5px !important; }
  .top-header-title { font-size: 8.5px !important; }
  .top-header-loc { font-size: 6px !important; }
  .top-header-divider { height: 20px !important; margin: 0 2px !important; }
  .top-header-btn { height: 18px !important; width: 18px !important; border-radius: 6px !important; }
  .top-header-btn svg { height: 8px !important; width: 8px !important; }

  .top-right-group {
    top: 4px !important;
    right: 4px !important;
    gap: 6px !important;
  }
  .right-circle-btn {
    height: 18px !important;
    width: 18px !important;
  }
  .right-circle-btn i {
    font-size: 9px !important;
    height: auto !important;
    width: auto !important;
  }
  .right-circle-btn img {
    height: 9px !important;
    width: 9px !important;
  }

  .left-controls-wrapper {
    bottom: 4px !important;
    left: 4px !important;
  }
  .left-nav {
    padding: 3px !important;
    border-radius: 8px !important;
  }
  .left-nav-btn {
    height: 22px !important;
    width: 22px !important;
  }
  .left-nav-btn i {
    font-size: 10px !important;
  }
  .left-nav-btn img {
    width: 10px !important;
    height: 10px !important;
  }

  #featuresMenu {
    width: 65px !important;
    padding: 4px !important;
  }
  #featuresMenu .flex-col {
    gap: 8px !important;
  }
  #featurePanelCloseBtn {
    height: 22px !important;
    width: 22px !important;
  }
  #featurePanelCloseBtn i {
    font-size: 10px !important;
  }
  #featuresList ul {
    gap: 8px !important;
  }
  #featuresList li div {
    height: 24px !important;
    width: 24px !important;
  }
  #featuresList li img {
    height: 12px !important;
    width: 12px !important;
  }
  #featuresList li p {
    font-size: 8px !important;
  }

  .spim-logo-wrapper {
    right: max(6px, env(safe-area-inset-right)) !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    height: 24px !important;
    width: 24px !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .gallery-stage {
    padding: 86px 10px 102px;
  }
  #galleryImage {
    max-width: 95vw;
    max-height: calc(100vh - 205px);
  }
  .gallery-bottom-bar {
    transform: scale(.90);
    transform-origin: bottom center;
  }
}