/* RAJ PREMIUM PANEL - clean premium search bars (Buy Keys, Keys, History).
   The pill (wrapper) owns the border + soft glow. The input inside is always borderless, so tapping it
   never draws a second box. Loaded last, with ID-level selectors, so older global input:focus rules cannot win. */

body .pn-search,
body .ksearch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(120, 150, 205, .24) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #101a2c 0%, #0b1424 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
body .ksearch { margin-top: 12px; }
body .pn-search:focus-within,
body .ksearch:focus-within {
  border-color: rgba(var(--raj-accent-rgb, 75, 145, 219), .8) !important;
  box-shadow: 0 0 0 3px rgba(var(--raj-accent-rgb, 75, 145, 219), .14), 0 0 18px rgba(var(--raj-accent-rgb, 75, 145, 219), .16) !important;
}

/* search icon sits in the flow (not absolutely positioned) in both bars */
body .pn-search > i,
body .ksearch > i {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto;
  font-size: 15px !important;
  color: #9fb2d1 !important;
}
body .pn-search:focus-within > i,
body .ksearch:focus-within > i { color: var(--raj-accent, #4b91db) !important; }

/* the input itself: no border, no box, no ring, in every state */
body .pn-search input#pnQ,
body .pn-search input#pnQ:hover,
body .pn-search input#pnQ:focus,
body .pn-search input#pnQ:focus-visible,
body .pn-search input#pnQ:active,
body .ksearch input#fQ,
body .ksearch input#fQ:hover,
body .ksearch input#fQ:focus,
body .ksearch input#fQ:focus-visible,
body .ksearch input#fQ:active {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #edf2ff !important;
  caret-color: var(--raj-accent, #4b91db) !important;
  font: inherit;
  font-size: 14px !important;
  -webkit-tap-highlight-color: transparent;
}
body .pn-search input#pnQ::placeholder,
body .ksearch input#fQ::placeholder { color: #7f90ac !important; opacity: 1 !important; }

/* browsers' own clear (x) / search decorations on type=search */
body .ksearch input#fQ::-webkit-search-decoration,
body .ksearch input#fQ::-webkit-search-cancel-button,
body .ksearch input#fQ::-webkit-search-results-button,
body .ksearch input#fQ::-webkit-search-results-decoration { -webkit-appearance: none; display: none; }

/* autofill must not paint a coloured box inside the pill */
body .pn-search input#pnQ:-webkit-autofill,
body .ksearch input#fQ:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #0e1829 inset !important;
  -webkit-text-fill-color: #edf2ff !important;
}

/* clear (x) button of Buy Keys search */
body .pn-search .pn-qx {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .06) !important;
  box-shadow: none !important;
  color: #9fb2d1 !important;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body .pn-search .pn-qx:hover { background: rgba(255, 255, 255, .11) !important; color: #fff !important; }
body .pn-search .pn-qx[hidden] { display: none !important; }

/* light theme */
body.light .pn-search,
body.light .ksearch {
  border-color: #cbd6e3 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
body.light .pn-search:focus-within,
body.light .ksearch:focus-within {
  border-color: var(--raj-accent, #4b91db) !important;
  box-shadow: 0 0 0 3px rgba(var(--raj-accent-rgb, 75, 145, 219), .16) !important;
}
body.light .pn-search input#pnQ,
body.light .pn-search input#pnQ:focus,
body.light .ksearch input#fQ,
body.light .ksearch input#fQ:focus {
  background: transparent !important;
  color: #1a293d !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.light .pn-search input#pnQ::placeholder,
body.light .ksearch input#fQ::placeholder { color: #7b8aa0 !important; }
body.light .pn-search > i,
body.light .ksearch > i { color: #5f7089 !important; }
body.light .pn-search .pn-qx { background: #eef2f7 !important; color: #5f7089 !important; }

/* ===== Reseller API > Product Reference Table search bar (#raQ) =====
   One single professional pill: the wrapper (.ra-sw) owns border + glow, the input inside is always borderless/transparent
   so no second small box is drawn on focus. Same look as the Buy Keys / Keys search bars. ID-level selectors win over every older global input rule. */
html body:not(#rajx) .ra-sw {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(120, 150, 205, .24) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #101a2c 0%, #0b1424 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
html body:not(#rajx) .ra-sw:focus-within {
  border-color: rgba(var(--raj-accent-rgb, 75, 145, 219), .8) !important;
  box-shadow: 0 0 0 3px rgba(var(--raj-accent-rgb, 75, 145, 219), .14), 0 0 18px rgba(var(--raj-accent-rgb, 75, 145, 219), .16) !important;
}
html body:not(#rajx) .ra-sw > i {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto;
  font-size: 15px !important;
}
html body:not(#rajx) .ra-sw input#raQ,
html body:not(#rajx) .ra-sw input#raQ:hover,
html body:not(#rajx) .ra-sw input#raQ:focus,
html body:not(#rajx) .ra-sw input#raQ:focus-visible,
html body:not(#rajx) .ra-sw input#raQ:active {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #edf2ff !important;
  caret-color: var(--raj-accent, #4b91db) !important;
  font: inherit;
  font-size: 14px !important;
  -webkit-tap-highlight-color: transparent;
}
html body:not(#rajx) .ra-sw input#raQ::placeholder { color: #7f90ac !important; opacity: 1 !important; }
html body:not(#rajx) .ra-sw input#raQ::-webkit-search-decoration,
html body:not(#rajx) .ra-sw input#raQ::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
html body:not(#rajx) .ra-sw input#raQ:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #0e1829 inset !important;
  -webkit-text-fill-color: #edf2ff !important;
}
html body.light:not(#rajx) .ra-sw {
  border-color: #cbd6e3 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
html body.light:not(#rajx) .ra-sw:focus-within {
  border-color: var(--raj-accent, #4b91db) !important;
  box-shadow: 0 0 0 3px rgba(var(--raj-accent-rgb, 75, 145, 219), .16) !important;
}
html body.light:not(#rajx) .ra-sw input#raQ,
html body.light:not(#rajx) .ra-sw input#raQ:focus { color: #1a293d !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body.light:not(#rajx) .ra-sw input#raQ::placeholder { color: #7b8aa0 !important; }
