.base-select-picker {
  position: relative;
  width: 100%;
}

.base-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.base-select-trigger {
  display: inline-flex;
  min-height: 48px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.base-select-trigger:focus-visible {
  outline: none;
  border-color: var(--primary-line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent 86%);
}

.base-select-label {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-select-trigger > i {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.base-select-picker.open .base-select-trigger > i {
  transform: rotate(180deg);
}

.base-select-menu {
  display: none;
}

.base-select-menu.is-floating-open {
  position: fixed;
  z-index: 14050;
  display: block;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 0.5rem;
  background: color-mix(in srgb, var(--surface) 98%, #ffffff 2%);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.base-select-option {
  display: flex;
  width: 100%;
  align-items: center;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: color-mix(in srgb, var(--text-main) 92%, #0f172a 8%);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.base-select-option:hover {
  background: color-mix(in srgb, var(--primary) 8%, #ffffff 92%);
}

.base-select-option.active,
.base-select-option.is-active {
  background: color-mix(in srgb, var(--primary) 10%, #fff4f4 90%);
  color: color-mix(in srgb, var(--primary) 72%, #7f1d1d 28%);
}

.base-select-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body[data-theme-mode='dark'] .base-select-trigger {
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme-mode='dark'] .base-select-menu.is-floating-open {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.98) 0%, rgba(10, 15, 27, 0.99) 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

body[data-theme-mode='dark'] .base-select-option:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent 90%);
}

body[data-theme-mode='dark'] .base-select-option.active,
body[data-theme-mode='dark'] .base-select-option.is-active {
  background: color-mix(in srgb, var(--primary) 16%, rgba(15, 23, 42, 0.84) 84%);
  color: color-mix(in srgb, var(--primary) 72%, #ffffff 28%);
}

