:root {
  --cyan: #42C6F3;
  --dark: #020D19;
  --radius: 999px;
  --pad-y: 14px;
  --pad-x: 18px;
  --shadow: 0 8px 24px rgba(2, 13, 25, 0.18);
}

.country-switcher {
  position: relative;
  display: inline-block;
}

/* Button */
.country-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, var(--cyan) 0%, #56d6ff 100%);
  color: #020D19;
  border: none;
  border-radius: var(--radius);
  padding: var(--pad-y) var(--pad-x);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  min-width: 220px;
  text-align: left;
}

.country-btn:active {
  transform: translateY(1px);
}

.country-btn:focus {
  outline: 3px solid rgba(66, 198, 243, 0.25);
  outline-offset: 4px;
}

/* Hover state */
.country-btn:hover {
  background: #020D19;
  color: #ffffff;
}

.country-btn:hover .country-text {
  color: #ffffff;
}

.country-btn:hover .chev path {
  stroke: #ffffff;
}

/* Button text */
.country-text {
  flex: 1;
  font-weight: 700;
  color: #020D19;
}

/* Chevron */
.chev {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
  display: inline-flex;
  align-items: center;
}

.country-switcher[aria-expanded="true"] .chev {
  transform: rotate(90deg);
}

/* Dropdown */
.country-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  min-width: 260px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 13, 25, 0.12);
  padding: 8px;
  display: none;
  z-index: 1000;
}

.country-switcher[aria-expanded="true"] .country-menu {
  display: block;
  animation: pop 0.14s ease;
}

@keyframes pop {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Items */
.country-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #020D19;
  font-weight: 600;
  transition: background 0.12s ease;
}

.country-item:hover,
.country-item:focus {
  background: linear-gradient(90deg, rgba(66, 198, 243, 0.08), rgba(2, 13, 25, 0.02));
  outline: none;
}

.country-flag {
  width: 26px;
  height: 18px;
  flex-shrink: 0;
}

.country-name {
  flex: 1;
}

.country-url {
  font-size: 12px;
  color: #57707f;
}

@media (max-width: 420px) {
  .country-btn {
    min-width: 180px;
    padding: 10px 14px;
    font-size: 14px;
  }
  .country-menu {
    min-width: 200px;
  }
}
