/* Shared, API-free utilities used across the MCT site. */
.mct-scroll-progress {
  position: fixed;
  z-index: 1002;
  inset: 0 0 auto;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(115, 155, 225, 0.12);
}

.mct-scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #4e82ff, #7fa8ff 62%, #ff6540);
  will-change: transform;
}

.mct-back-to-top {
  position: fixed;
  z-index: 1001;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(140, 174, 237, 0.45);
  border-radius: 14px;
  color: #f4f7ff;
  background: linear-gradient(145deg, rgba(18, 47, 102, 0.97), rgba(5, 18, 48, 0.97));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font: 700 22px/1 "DM Sans", "Manrope", sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(9px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, border-color 180ms ease;
}

.mct-back-to-top:hover {
  border-color: #ff7959;
  transform: translateY(-2px);
}

.mct-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mct-back-to-top:focus-visible,
.mct-feature-search input:focus-visible {
  outline: 2px solid #8fb1ff;
  outline-offset: 3px;
}

.mct-feature-search {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 460px);
  min-height: 48px;
  margin: 0 0 17px;
  padding: 0 14px;
  border: 1px solid rgba(142, 176, 235, 0.25);
  border-radius: 10px;
  color: #91a9d2;
  background: rgba(4, 16, 42, 0.64);
  transition: border-color 180ms ease, background 180ms ease;
}

.mct-feature-search:focus-within {
  border-color: rgba(127, 168, 255, 0.75);
  background: rgba(6, 22, 57, 0.88);
}

.mct-feature-search > span {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
}

.mct-feature-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #edf3ff;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.mct-feature-search input::placeholder {
  color: #8298bf;
  opacity: 1;
}

.mct-search-empty {
  margin: 8px 0 20px;
  padding: 15px 17px;
  border: 1px dashed rgba(142, 176, 235, 0.28);
  border-radius: 10px;
  color: #a8bbdc;
  background: rgba(4, 16, 42, 0.45);
  font-size: 13px;
  line-height: 1.6;
}

.mct-search-empty[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .mct-back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mct-back-to-top,
  .mct-feature-search {
    transition: none;
  }
}
