#globalSearchOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 20px 30px;
  background: rgba(3, 3, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
}

#globalSearchOverlay.open {
  display: flex;
}

#globalSearchOverlay .overlay-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

#globalSearchOverlay .search-modal {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  min-height: 245px;
  padding: 34px 28px 28px;
  border: 1px solid rgba(157, 105, 255, 0.28);
  border-radius: 24px;
  background: #12111c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  color: #fff;
}

#globalSearchOverlay .close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: #9693a6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#globalSearchOverlay .eyebrow {
  margin: 0 0 10px;
  color: #b68cff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

#globalSearchOverlay h2 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 27px;
  line-height: 1.2;
}

#globalSearchOverlay .search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(145, 84, 255, .45);
  border-radius: 15px;
  background: rgba(108, 59, 184, .12);
  box-sizing: border-box;
}

#globalSearchOverlay .search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

#globalSearchOverlay .search-field input::placeholder {
  color: #7f7a91;
}

#globalSearchOverlay kbd {
  color: #aaa5b7;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

#globalSearchOverlay .search-hint {
  padding: 30px 10px 10px;
  color: #777383;
  font-size: 12px;
  text-align: center;
}

#globalSearchOverlay .search-results {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

#globalSearchOverlay .search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

#globalSearchOverlay .search-result:hover {
  background: rgba(135, 79, 255, .14);
  border-color: rgba(154, 103, 255, .34);
}

#globalSearchOverlay .search-result small {
  color: #8d889a;
}

@media (max-width: 640px) {
  #globalSearchOverlay {
    padding: 16px;
    align-items: center;
  }

  #globalSearchOverlay .search-modal {
    padding: 30px 18px 22px;
    border-radius: 20px;
  }
}

#globalSearchOverlay .search-result {
  min-height: 64px;
  padding: 9px 13px;
}

#globalSearchOverlay .search-result-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#globalSearchOverlay .search-result-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 10px;
  image-rendering: pixelated;
  object-fit: cover;
  background: rgba(255,255,255,.04);
}

#globalSearchOverlay .search-result-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#globalSearchOverlay .search-result-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#globalSearchOverlay .search-result-copy small {
  overflow: hidden;
  color: #777384;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#globalSearchOverlay .search-result-points {
  flex: 0 0 auto;
  color: #b58aff;
  font-size: 12px;
  font-weight: 800;
}
