.autobox {
  max-height: 320px;
  overflow-y: auto;
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #0f0f28;
  border: 1.5px solid rgba(201, 168, 76, 0.35);
  border-radius: 16px;
  z-index: 1050;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(201, 168, 76, 0.1);
  backdrop-filter: blur(12px);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.3) transparent;
}

.autobox::-webkit-scrollbar {
  width: 4px;
}
.autobox::-webkit-scrollbar-track {
  background: transparent;
}
.autobox::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 4px;
}

.autobox li {
  list-style-type: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 10px;
  border-bottom: none;
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 0.88rem;
  color: #c8c8e0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.15s,
    color 0.15s;
}

.autobox li::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: rgba(201, 168, 76, 0.5);
  flex-shrink: 0;
}

.autobox li:hover {
  background: rgba(201, 168, 76, 0.12);
  color: #f0d080;
}

/* Desktop search suggestions */
#searchSuggestions {
  position: absolute;
  z-index: 1050;
  background: #0f0f28;
  border: 1.5px solid rgba(201, 168, 76, 0.35);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  max-height: 320px;
  overflow-y: auto;
  width: 100%;
  top: calc(100% + 6px);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.3) transparent;
}

#searchSuggestions::-webkit-scrollbar {
  width: 4px;
}
#searchSuggestions::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 4px;
}

#searchSuggestions li {
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 10px;
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 0.88rem;
  color: #c8c8e0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.15s,
    color 0.15s;
}

#searchSuggestions li::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: rgba(201, 168, 76, 0.5);
  flex-shrink: 0;
}

#searchSuggestions li:hover {
  background: rgba(201, 168, 76, 0.12);
  color: #f0d080;
}

nav {
  z-index: 100;
  position: relative;
}

/* ═══ LIGHT MODE ═══ */
[data-theme="light"] .autobox,
[data-theme="light"] #searchSuggestions,
[data-theme="light"] #searchSuggestionsMobile {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .autobox li,
[data-theme="light"] #searchSuggestions li {
  color: #3a3a5a !important;
}
[data-theme="light"] .autobox li::before,
[data-theme="light"] #searchSuggestions li::before {
  color: rgba(168, 136, 46, 0.6) !important;
}
[data-theme="light"] .autobox li:hover,
[data-theme="light"] #searchSuggestions li:hover {
  background: rgba(168, 136, 46, 0.08) !important;
  color: #a8882e !important;
}
