/* ------------ Hero / header area ------------ */

.neon-hero {
  /* Strip the card look – leave just spacing */
  border-radius: 0;
  padding: 1.75rem 0 1.25rem;
  margin-top: 0.9rem;

  background: transparent !important;
  box-shadow: none;
  border: none;

   --bulma-hero-body-padding: 1.5rem 1.5rem;
}

.neon-hero .title {
  color: #ffffff;
  margin-bottom: 1rem;
}

.neon-hero .subtitle {
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.neon-hero .hero-body {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1.5rem !important;
}

.neon-hero .title.is-3 {
  margin-bottom: 1.5rem !important;
}

.neon-hero .subtitle.is-5 {
  margin-top: 0 !important;
  margin-bottom: 1.5rem;
}

/* Center and space the Try helper nicely under the subtitle */
#hero-try-text {
  margin-top: 3rem;     /* push it a bit further down from subtitle */
  margin-bottom: 0.75rem;  /* space before the AI status line */
  line-height: 1.4;
}

/* Put "Try:" on its own line above the example */
.hero-try-label,
.hero-try-example {
  display: block;          /* each on its own line */
}

/* Optional: make "Try:" feel like a tiny label */
.hero-try-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

/* Mobile padding tweak for hero */
@media screen and (max-width: 1023px) {
  .neon-hero {
    padding: 1.6rem 1.4rem;
     --bulma-hero-body-padding: 1.5rem 1.5rem;
  }
}

/* ------------------------------------------------------
   CHATGPT-STYLE NEON SEARCH BAR
   ------------------------------------------------------ */

.neon-search-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.25rem 0;
}

@media screen and (max-width: 768px) {
  .neon-search-wrapper {
    max-width: 100%;
  }
}

.neon-search-box {
  display: flex;
  align-items: center;

  /* Dark pill background behind the input */
  background: #050710;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  width: 100%;
  height: 56px;
  padding: 0 0.6rem;

  /* Soft shadow so it sits off the page a bit */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.85);
}

.neon-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 1.1rem;
  font-size: 1rem;
  line-height: 1;
  height: 100%;
  color: #e8ecff;
  outline: none;
}

.neon-search-input::placeholder {
  color: rgba(200, 205, 255, 0.5);
}

.neon-search-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  color: #05040a;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 14px rgba(0, 234, 255, 0.45),
    0 0 28px rgba(255, 0, 204, 0.35);
  transition: 0.15s ease-out;
}

.neon-search-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(0, 234, 255, 0.6),
    0 0 38px rgba(255, 0, 204, 0.55);
}

.neon-search-button:active {
  transform: scale(0.92);
}


/* AI thinking / status line under the search input */
.ai-status {
  margin-top: 3rem;        /* same as #hero-try-text */

  /* Match the Try line: inherit font + colour from .help / parent */
  font-family: inherit;
  font-size: inherit;
  color: inherit;

  opacity: 0.9;
  letter-spacing: 0.02em;
  text-align: center;

  /* Prevent height jumping when typing or clearing */
  min-height: 2.4rem;

  /* Hidden by default – only visible when we add .is-visible */
  display: none;
  align-items: center;
  justify-content: center;
}

.ai-status.is-visible {
  display: flex;
  opacity: 1;
}

.ai-status.ai-status-error {
  color: #ffb3c1;
}

/* ---------- AI status "Thinking..." pulse ---------- */
.ai-status.ai-status--thinking {
  animation: ai-status-thinking-pulse 0.9s ease-in-out infinite;
}

@keyframes ai-status-thinking-pulse {
  0% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.55;
  }
}

/* ------------ Feature neon pills ------------ */

.neon-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 580px;
  margin: 1.75rem auto 0;
}

.neon-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
  border: 1.6px solid transparent;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
}

/* Color variants */

.neon-pill-gold {
  background-image:
    linear-gradient(#11121f, #11121f),
    linear-gradient(135deg, var(--neon-gold), #ff8a00);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 16px rgba(255, 183, 71, 0.6);
}

.neon-pill-cyan {
  background-image:
    linear-gradient(#11121f, #11121f),
    linear-gradient(135deg, var(--neon-blue), #00ffbf);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 16px rgba(0, 234, 255, 0.7);
}

.neon-pill-purple {
  background-image:
    linear-gradient(#11121f, #11121f),
    linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 16px rgba(177, 0, 255, 0.7);
}

.neon-pill-red {
  background-image:
    linear-gradient(#11121f, #11121f),
    linear-gradient(135deg, var(--neon-red), #ff5f91);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 16px rgba(255, 51, 102, 0.7);
}

.neon-pill-blue {
  background-image:
    linear-gradient(#11121f, #11121f),
    linear-gradient(135deg, #008cff, #00eaff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 16px rgba(0, 140, 255, 0.7);
}

/* Keep the search input dark even when the browser autofills it */
#query-input:-webkit-autofill,
#query-input:-webkit-autofill:hover,
#query-input:-webkit-autofill:focus,
#query-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #13182a inset;
  box-shadow: 0 0 0px 1000px #13182a inset;
  -webkit-text-fill-color: var(--text-main);
}

/* ------------ Shared search ribbon ------------ */

.shared-ribbon {
  margin-bottom: 0rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background-color: rgba(5, 5, 20, 0.96);
  border: 1px solid rgba(0, 234, 255, 0.6);
  box-shadow:
    0 0 16px rgba(0, 234, 255, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-main);
}

.shared-ribbon-icon {
  font-size: 1rem;
  margin-right: 0.1rem;
  color: rgba(0, 234, 255, 0.9);
}

.shared-ribbon-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(0, 234, 255, 0.95);
}

.shared-ribbon-sub {
  opacity: 0.85;
}

.shared-ribbon.is-hidden {
  display: none;
}

/* Prime search toggle */

.prime-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.prime-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-subtle, #a5b0d6);
  cursor: pointer;
}

.prime-toggle input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #00eaff; /* or omit if you prefer default */
}

.prime-toggle-label {
  user-select: none;
}

/* ------------ Sticky bottom search + footer ------------ */

.fastbuy-bottom-bar {
  /* Lives inside a flex column; this pushes it to the bottom
     when there isn't much content */
  margin-top: auto;

  /* Still sticks to the bottom when you scroll through results */
  position: sticky;
  bottom: 0;

  padding: 0.2rem 0 0.2rem;
  background: transparent;
  backdrop-filter: none;
  z-index: 10;
}

.fastbuy-bottom-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.fastbuy-bottom-inner .neon-search-wrapper {
  /* Pull the AI status + Terms link closer to the search bar */
  margin-bottom: 0.25rem;
}

/* Reuse footer styling but keep it tucked up under AI status */
.fastbuy-bottom-bar .fastbuy-footer-inline {
  margin-top: 0.1rem;
  margin-bottom: 0;
}


/* Mobile: pin search bar to viewport bottom */
@media screen and (max-width: 768px) {
  .fastbuy-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;

    /* a little smaller padding so it's tighter to the edge */
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));

    /* softer fade behind it */
    background:
      linear-gradient(180deg, rgba(5, 5, 20, 0), rgba(5, 5, 20, 0.98));
    transform: none; /* cancel the desktop translateY */
  }

  .fastbuy-bottom-inner {
    max-width: 100%;
  }

  /* NEW: leave space so last card sits fully above the bar */
  #results-container {
    padding-bottom: 6rem;
  }

  
  .shared-ribbon {
    margin-top: 1rem;
    margin-bottom: 0rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background-color: rgba(5, 5, 20, 0.96);
    border: 1px solid rgba(0, 234, 255, 0.6);
    box-shadow:
      0 0 16px rgba(0, 234, 255, 0.25),
      0 8px 20px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-main);
  }

}