.iti { width: 100%; }

/* ── Flag toggle button ───────────────────────────────────── */
.iti__selected-flag {
  background: var(--white-03);
  border-right: 1px solid var(--border);
  border-radius: 8px 0 0 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.iti__selected-flag:hover,
.iti__selected-flag[aria-expanded="true"] { background: var(--white-06); }
.iti__selected-dial-code { color: var(--text-0); font-size: 13px; font-weight: 500; }
.iti__arrow { border-top-color: var(--text-1); }
.iti__arrow--up { border-top: none; border-bottom-color: var(--text-1); }
.iti--separate-dial-code input { border-radius: 0 8px 8px 0; }

/* ── Dropdown — matches .custom-select-menu ───────────────── */
.iti__dropdown-content {
  border: 1px solid var(--white-14) !important;
  border-radius: 16px !important;
  background: rgba(18, 18, 24, 0.52) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28) !important;
  padding: 8px !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  animation: custom-select-menu-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Search input ─────────────────────────────────────────── */
.iti__search-input {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--white-14) !important;
  border-radius: 0 !important;
  color: var(--text-0) !important;
  padding: 6px 10px 8px !important;
  width: 100% !important;
  outline: none !important;
  font-size: 13px !important;
  box-shadow: none !important;
}
.iti__search-input::placeholder { color: var(--text-1) !important; }

/* ── Country options — matches .custom-select-option ─────── */
.iti__country-list { padding-top: 4px; }
.iti__country {
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  gap: 8px !important;
  color: var(--text-0) !important;
  font-size: 13px !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
}
.iti__country:hover,
.iti__country.iti__active {
  background: var(--white-06) !important;
  border-color: var(--white-10) !important;
}
.iti__country.iti__highlight {
  background: var(--white-10) !important;
  border-color: var(--white-20) !important;
}
.iti__country-name { color: var(--text-0) !important; }
.iti__dial-code { color: var(--text-1) !important; font-size: 12px !important; }

/* ── Light theme ──────────────────────────────────────────── */
:root[data-theme="light"] .iti__selected-flag {
  background: var(--white-03);
  border-right-color: rgba(15,23,42,0.14);
}
:root[data-theme="light"] .iti__selected-dial-code { color: var(--text-0); }
:root[data-theme="light"] .iti__dropdown-content {
  background: rgba(255,255,255,0.55) !important;
  border-color: rgba(255,255,255,0.70) !important;
  box-shadow: 0 8px 32px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06),
              inset 0 1px 0 rgba(255,255,255,0.90) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}
:root[data-theme="light"] .iti__country { color: var(--text-0) !important; }
:root[data-theme="light"] .iti__country:hover,
:root[data-theme="light"] .iti__country.iti__active {
  background: rgba(15,23,42,0.06) !important;
  border-color: rgba(15,23,42,0.10) !important;
}
:root[data-theme="light"] .iti__country.iti__highlight {
  background: rgba(15,23,42,0.08) !important;
  border-color: rgba(15,23,42,0.16) !important;
}
:root[data-theme="light"] .iti__search-input { border-bottom-color: rgba(15,23,42,0.14) !important; }
:root[data-theme="light"] .iti__search-input::placeholder { color: var(--text-1) !important; }
