.card-web-search {
  grid-column: span 12;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(530px, 1.18fr);
  align-items: center;
  gap: 58px;
  padding: 48px;
}

.card-web-search::after {
  background:
    radial-gradient(circle at 14% 18%, rgba(75, 216, 200, 0.11), transparent 37%),
    radial-gradient(circle at 88% 72%, rgba(46, 169, 243, 0.13), transparent 42%);
}

.web-search-copy {
  max-width: 500px;
}

.web-search-copy > p {
  max-width: 490px;
}

.web-search-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.web-search-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(110, 203, 255, 0.16);
  border-radius: 8px;
  color: #7891a8;
  background: rgba(8, 20, 34, 0.62);
  font-size: 11px;
}

.web-search-points i {
  color: var(--teal);
  font-style: normal;
}

.search-broker-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.search-orbit {
  position: absolute;
  border: 1px solid rgba(91, 184, 237, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.search-orbit-one {
  width: 490px;
  height: 300px;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 80px rgba(49, 165, 217, 0.035);
}

.search-orbit-two {
  width: 380px;
  height: 380px;
  border-color: rgba(75, 216, 200, 0.1);
  transform: rotate(19deg);
}

.search-window {
  position: relative;
  z-index: 2;
  width: min(100%, 610px);
  overflow: hidden;
  border: 1px solid rgba(112, 194, 242, 0.23);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(15, 34, 54, 0.97), rgba(7, 17, 29, 0.98)),
    #07111d;
  box-shadow: 0 32px 80px rgba(0, 5, 16, 0.46), inset 0 1px rgba(255, 255, 255, 0.04);
  animation: search-window-float 6s ease-in-out infinite;
}

.search-window-head {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 17px;
  border-bottom: 1px solid rgba(117, 185, 226, 0.12);
  color: #718ba3;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.search-window-head > div {
  display: flex;
  gap: 6px;
}

.search-window-head > div span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #284157;
}

.search-window-head > div span:nth-child(2) { background: #2f6677; }
.search-window-head > div span:nth-child(3) { background: #2a8a83; }

.search-window-head b {
  color: #9bb4c9;
  font-size: inherit;
  letter-spacing: inherit;
}

.search-window-head em {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0;
}

.search-window-head em i,
.search-window-foot span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(75, 216, 200, 0.8);
  animation: search-status-pulse 1.8s ease-in-out infinite;
}

.search-query {
  height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 18px 18px 13px;
  padding: 0 14px;
  border: 1px solid rgba(78, 174, 225, 0.28);
  border-radius: 11px;
  color: #bfd4e5;
  background: rgba(8, 24, 40, 0.82);
  box-shadow: 0 0 0 3px rgba(46, 169, 243, 0.035);
  font-size: 11px;
}

.search-query svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--blue-bright);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-query > i {
  width: 1px;
  height: 15px;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(75, 216, 200, 0.55);
  animation: search-caret 1s steps(1, end) infinite;
}

.search-results {
  display: grid;
  gap: 8px;
  padding: 0 18px 17px;
}

.search-result {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid rgba(92, 151, 190, 0.12);
  border-radius: 10px;
  background: rgba(15, 34, 52, 0.6);
  opacity: 0;
  transform: translateY(8px);
  animation: search-result-cycle 5.4s ease-in-out infinite;
}

.search-result:nth-child(2) { animation-delay: 140ms; }
.search-result:nth-child(3) { animation-delay: 280ms; }

.result-source {
  overflow: hidden;
  color: #5f7e98;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result div {
  min-width: 0;
}

.search-result b,
.search-result p {
  display: block;
}

.search-result b {
  color: #d8e8f4;
  font-size: 11px;
}

.search-result p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #657f96;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result > em {
  color: rgba(75, 216, 200, 0.7);
  font-size: 9px;
  font-style: normal;
}

.search-window-foot {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-top: 1px solid rgba(117, 185, 226, 0.11);
  color: #668097;
  font-size: 10px;
}

.search-window-foot span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-window-foot em {
  color: #4d738d;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.11em;
}

@keyframes search-window-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes search-status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes search-caret {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes search-result-cycle {
  0%, 8%, 100% { opacity: 0; transform: translateY(8px); }
  17%, 82% { opacity: 1; transform: translateY(0); }
  91% { opacity: 0; transform: translateY(-3px); }
}

@media (max-width: 760px) {
  .search-orbit-one {
    width: 420px;
    height: 260px;
  }

  .search-orbit-two {
    width: 320px;
    height: 320px;
  }

  .search-window-head {
    grid-template-columns: auto 1fr;
  }

  .search-window-head b {
    display: none;
  }

  .search-result {
    grid-template-columns: 65px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .search-window-foot em {
    display: none;
  }
}

@media (max-width: 430px) {
  .search-query {
    margin-inline: 12px;
    font-size: 10px;
  }

  .search-results {
    padding-inline: 12px;
  }

  .search-result {
    grid-template-columns: 1fr auto;
  }

  .result-source {
    display: none;
  }

  .search-window-foot {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-window,
  .search-window-head em i,
  .search-query > i,
  .search-result,
  .search-window-foot span i {
    animation-duration: 8s;
  }
}

html[data-theme="light"] .web-search-points span {
  color: #587087;
  border-color: rgba(40, 117, 170, 0.17);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .search-orbit {
  border-color: rgba(33, 126, 182, 0.14);
}

html[data-theme="light"] .search-window {
  border-color: rgba(45, 116, 163, 0.23);
  background: linear-gradient(145deg, rgba(253, 255, 255, 0.97), rgba(231, 242, 250, 0.97));
}

html[data-theme="light"] .search-window-head,
html[data-theme="light"] .search-window-foot {
  color: #607c92;
  border-color: rgba(45, 103, 144, 0.13);
}

html[data-theme="light"] .search-window-head b {
  color: #4e6d85;
}

html[data-theme="light"] .search-query {
  color: #284960;
  border-color: rgba(33, 124, 179, 0.25);
  background: rgba(255, 255, 255, 0.84);
}

html[data-theme="light"] .search-result {
  border-color: rgba(45, 99, 139, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .search-result b {
  color: #24455d;
}

html[data-theme="light"] .search-result p,
html[data-theme="light"] .result-source {
  color: #6b8295;
}

html[data-theme="light"] .search-window-foot em {
  color: #6b879b;
}
