/* Custom select — site-wide */
.k-select {
  position: relative;
  display: inline-block;
  min-width: 9.5rem;
  vertical-align: middle;
}

.k-select.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.k-select__trigger {
  width: 100%;
  min-height: 2.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    #1c1c1f;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.k-select__trigger:hover {
  border-color: rgba(204, 28, 57, 0.45);
  background: #222226;
}

.k-select.is-open .k-select__trigger {
  border-color: rgba(204, 28, 57, 0.65);
  box-shadow: 0 0 0 1px rgba(204, 28, 57, 0.25);
}

.k-select__value.is-placeholder {
  color: var(--muted);
}

.k-select__chevron {
  flex-shrink: 0;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: transform 0.18s ease;
}

.k-select.is-open .k-select__chevron {
  transform: rotate(180deg);
  color: var(--rose-strong);
}

.k-select__menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #141416;
  box-shadow:
    0 0 0 1px rgba(204, 28, 57, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.55);
  max-height: 240px;
  overflow: auto;
  animation: k-select-in 0.16s ease both;
}

.k-select__option {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.k-select__option:hover {
  background: rgba(204, 28, 57, 0.14);
  color: #fecdd3;
}

.k-select__option.is-selected {
  background: rgba(204, 28, 57, 0.22);
  color: #fecdd3;
  font-weight: 600;
}

@keyframes k-select-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Native select fallback (if any remain) */
select {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background-color: #1c1c1f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23a1a1aa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

select option,
select optgroup {
  background-color: #18181b;
  color: #f4f4f5;
}
