.pcf {
  --pcf-accent: #02b122;
  --pcf-accent-soft: rgba(2, 177, 34, 0.14);
  --pcf-accent-glow: rgba(2, 177, 34, 0.18);
  --pcf-border: #424242;
  --pcf-bg: #080808;
  --pcf-menu-bg: #0e0e0e;
  --pcf-text: #bebebe;
  --pcf-muted: #6a6a6a;
  --pcf-radius: 10px;
  --pcf-font: 'Exo 2', sans-serif;

  position: relative;
  width: 100%;
}

.pcf--club {
  --pcf-accent: #1a9b2f;
  --pcf-accent-soft: rgba(26, 155, 47, 0.16);
  --pcf-accent-glow: rgba(26, 155, 47, 0.22);
  --pcf-border: rgba(255, 255, 255, 0.12);
  --pcf-bg: rgba(0, 0, 0, 0.5);
  --pcf-menu-bg: #101010;
  --pcf-radius: 14px;
}

.pcf__shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--pcf-border);
  border-radius: var(--pcf-radius);
  background: var(--pcf-bg);
  color: var(--pcf-text);
  font-family: var(--pcf-font);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pcf__shell:focus-within {
  border-color: var(--pcf-accent);
  box-shadow: 0 0 0 3px var(--pcf-accent-soft);
}

.pcf__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 68px;
  padding: 0 10px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--pcf-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pcf__trigger:hover,
.pcf.is-open .pcf__trigger {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pcf-text);
}

.pcf__flag-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pcf__flag-img,
.pcf__option-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcf__option-flag {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pcf__chev {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.pcf.is-open .pcf__chev {
  transform: rotate(180deg);
}

.pcf__number {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
  padding: 0 14px 0 12px;
}

.pcf__dial {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pcf-accent);
  user-select: none;
}

.pcf__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--pcf-text);
  font-family: var(--pcf-font);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 0;
  outline: none;
}

.pcf__input::placeholder {
  color: var(--pcf-muted);
  opacity: 1;
}

.pcf__menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  border: 1px solid var(--pcf-border);
  border-radius: calc(var(--pcf-radius) + 2px);
  background: var(--pcf-menu-bg);
  color: var(--pcf-text);
  font-family: var(--pcf-font);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 20px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.pcf.is-open .pcf__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.pcf__search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.pcf__search-icon {
  flex: 0 0 auto;
  color: var(--pcf-muted);
}

.pcf__search {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--pcf-text);
  font-family: var(--pcf-font);
  font-size: 14px;
  outline: none;
}

.pcf__search::placeholder {
  color: var(--pcf-muted);
}

.pcf__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.pcf__list::-webkit-scrollbar {
  width: 6px;
}

.pcf__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.pcf__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.pcf__option:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.pcf__option.is-active {
  background: var(--pcf-accent-soft);
  border-color: rgba(255, 255, 255, 0.08);
}

.pcf__option-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.pcf__option-dial {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--pcf-muted);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.pcf__option.is-active .pcf__option-dial {
  color: var(--pcf-accent);
  background: rgba(255, 255, 255, 0.06);
}

.pcf__empty {
  padding: 20px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--pcf-muted);
}

.pcf--club .pcf__shell {
  min-height: 52px;
}

.pcf--club .pcf__input {
  padding: 16px 0;
  font-size: 15px;
}

/* Не даём общим стилям формы (.auth-form input) рисовать вторую рамку внутри .pcf */
.auth-form .pcf__input,
.auth-form .pcf__search {
  width: auto;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-form .pcf__input:focus,
.auth-form .pcf__search:focus {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 520px) {
  .pcf__trigger {
    width: 62px;
    padding: 0 8px;
  }

  .pcf__number {
    padding-right: 12px;
    gap: 8px;
  }

  .pcf__dial {
    font-size: 13px;
  }
}
