#searchFeedSectionView .cute-search-wrapper {
  position: relative;
  width: min(700px, 100%);
  margin: 46px auto 22px;
  padding: 1px;
  border-radius: 999px;
  background: linear-gradient(105deg, #687fff, #ec6bd3, #55a5ff);
  box-shadow:
    0 18px 45px rgba(78, 72, 145, 0.14),
    0 8px 22px rgba(117, 79, 255, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#searchFeedSectionView .cute-search-wrapper::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    rgba(97, 112, 255, 0.25),
    rgba(246, 104, 214, 0.25),
    rgba(70, 165, 255, 0.22)
  );
  filter: blur(16px);
}

#searchFeedSectionView .cute-search-wrapper:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 22px 55px rgba(78, 72, 145, 0.2),
    0 10px 28px rgba(117, 79, 255, 0.18);
}

#searchFeedSectionView .cute-search-form {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 6px 4px 14px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#searchFeedSectionView .cute-search-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #8257f5;
}

#searchFeedSectionView .cute-search-input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #4b5268;
  font: inherit;
  font-size: clamp(14px, 1.5vw, 18px);
}

#searchFeedSectionView .cute-search-input::placeholder {
  color: #7b8196;
}

#searchFeedSectionView .cute-search-divider {
  width: 1px;
  height: 34px;
  flex-shrink: 0;
  background: linear-gradient(
    transparent,
    rgba(114, 120, 148, 0.3),
    transparent
  );
}

#searchFeedSectionView .cute-sparkle-button,
#searchFeedSectionView .cute-search-button {
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

#searchFeedSectionView .cute-sparkle-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  transition: transform 160ms ease, background 160ms ease;
}

#searchFeedSectionView .cute-sparkle-button:hover {
  transform: rotate(8deg) scale(1.07);
  background: rgba(135, 94, 245, 0.08);
}

#searchFeedSectionView .cute-sparkle-button svg {
  width: 27px;
  height: 27px;
}

#searchFeedSectionView .cute-search-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #4b9cff, #8257f5 56%, #ed5fd0);
  box-shadow:
    0 10px 24px rgba(105, 77, 242, 0.32),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

#searchFeedSectionView .cute-search-button:hover {
  transform: scale(1.055);
  box-shadow:
    0 14px 30px rgba(105, 77, 242, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

#searchFeedSectionView .cute-search-button:active {
  transform: scale(0.96);
}

/* Decorative matched stars only; the existing Search bar stays unchanged. */
#searchFeedSectionView .civic-search__stars {
  position: absolute;
  top: 50%;
  right: -58px;
  width: 48px;
  height: 72px;
  transform: translateY(-50%);
  pointer-events: none;
}

#searchFeedSectionView .civic-search__star {
  position: absolute;
  display: block;
  clip-path: polygon(50% 0%, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0% 50%, 39% 37%);
  filter: drop-shadow(0 4px 8px rgba(99, 96, 227, 0.2));
  animation: civicStarFloat 2.8s ease-in-out infinite;
}

#searchFeedSectionView .civic-search__star--large {
  width: 25px;
  height: 25px;
  top: 1px;
  right: 10px;
  background: linear-gradient(135deg, #5a95fc 0%, #789bfd 52%, #8c9afd 100%);
}

#searchFeedSectionView .civic-search__star--small {
  width: 14px;
  height: 14px;
  right: 0;
  bottom: 14px;
  background: linear-gradient(135deg, #ad8ffb 0%, #b494fd 55%, #c19cfd 100%);
  animation-delay: 0.35s;
}

#searchFeedSectionView .civic-search__star--tiny {
  width: 10px;
  height: 10px;
  left: 4px;
  bottom: 1px;
  background: linear-gradient(135deg, #8db9fc 0%, #9bc1fd 55%, #a9c8fd 100%);
  animation-delay: 0.7s;
}

@keyframes civicStarFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-5px) scale(1.08); opacity: 1; }
}

@media (max-width: 620px) {
  #searchFeedSectionView .cute-search-wrapper {
    margin: 20px auto;
  }

  #searchFeedSectionView .cute-search-form {
    min-height: 62px;
    gap: 8px;
    padding-left: 16px;
  }

  #searchFeedSectionView .cute-search-icon {
    width: 24px;
    height: 24px;
  }

  #searchFeedSectionView .cute-search-divider,
  #searchFeedSectionView .cute-sparkle-button {
    display: none;
  }

  #searchFeedSectionView .cute-search-button {
    width: 48px;
    height: 48px;
  }

  #searchFeedSectionView .cute-search-input {
    font-size: 16px;
  }

  #searchFeedSectionView .civic-search__stars {
    right: -34px;
    transform: translateY(-50%) scale(0.8);
  }
}

@media (max-width: 460px) {
  /* Reserve the existing right-edge decoration in the phone shell instead of
     letting the animated search bar paint over it. */
  #searchFeedSectionView .cute-search-wrapper {
    width: calc(100% - 32px);
    margin-left: 0;
    margin-right: 32px;
  }

  #searchFeedSectionView .civic-search__stars {
    display: block;
    right: -52px;
    z-index: 3;
    transform: translateY(-50%) scale(0.72);
  }
}

@media (min-width: 461px) and (max-width: 1140px) {
  /* Keep the desktop three-star treatment inside the viewport while the
     centered search shell approaches the sidebar-constrained tablet width. */
  #searchFeedSectionView .civic-search__stars {
    right: -14px;
  }
}

/* Temporary white-aura experiment: keep the gradient border and soften the halo. */
#searchFeedSectionView .cute-search-wrapper {
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.92),
    0 3px 10px rgba(55, 48, 75, 0.08) !important;
}

#searchFeedSectionView .cute-search-wrapper::before {
  display: block !important;
  inset: -4px;
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.92);
  filter: blur(10px);
}

#searchFeedSectionView .cute-search-wrapper:focus-within {
  transform: none;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.98),
    0 4px 12px rgba(55, 48, 75, 0.1) !important;
}
