

.combo {
  position: relative;
}

.combo__native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.combo__trigger {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.combo__trigger:hover { border-color: rgba(255, 255, 255, 0.16); }
.combo.is-open .combo__trigger,
.combo__trigger:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

.combo__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combo__label--placeholder { color: var(--text-dim); }

.combo__caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.combo.is-open .combo__caret {
  transform: translateY(-50%) rotate(180deg);
  color: var(--gold);
}

.combo__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #0f0f12;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: 50;

  display: flex;
  flex-direction: column;
  gap: 4px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;

scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.combo__list::-webkit-scrollbar {
  width: 6px;
}
.combo__list::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
.combo__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  transition: background 0.2s ease;
}
.combo__list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}
.combo.is-open .combo__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.combo__option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.combo__option:hover,
.combo__option.is-active { background: rgba(255, 255, 255, 0.05); }
.combo__option.is-selected { color: var(--gold); }
.combo__option.is-selected::after {
  content: "✓";
  float: right;
  font-weight: 600;
}

.combo--disabled .combo__trigger {
  opacity: 0.5;
  cursor: not-allowed;
}

.combo--sm .combo__trigger {
  height: 38px;
  font-size: 13px;
  padding: 0 36px 0 14px;
  border-radius: 8px;
}
.combo--sm .combo__caret { right: 12px; }
.combo--sm .combo__option { font-size: 13px; padding: 9px 12px; }
