/* =============================================
   NAVBAR
   ============================================= */

.navbar {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: transparent;
}

.navbar__logo img {
    height: 52px;
    object-fit: contain;
}

.navbar__content {
    display: flex;
    align-items: center;
    gap: 48px;
}

.navbar__links {
    display: flex;
    gap: 28px;
}

.navbar__links a {
    text-decoration: none;
    color: var(--white);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.navbar__links a:hover,
.navbar__links a.active { color: var(--yellow); }

.navbar__locale {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar__locale i {
    color: white;
    border-radius: 2px;
    cursor: pointer;
}

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

.sticky {
    position: fixed;
    background: rgba(0, 0, 0, 0.252);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar--booktransfer {
    background: rgba(0, 0, 0, 0.252);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ── Currency picker ── */
.picker {
  position: relative;
}

.picker__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.picker__btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(245, 197, 24, .40);
}

.picker__btn[aria-expanded="true"] {
  background: rgba(245, 197, 24, .12);
  border-color: rgba(245, 197, 24, .55);
}

.picker__arrow {
  font-size: 10px;
  transition: transform .18s;
}

.picker__btn[aria-expanded="true"] .picker__arrow {
  transform: rotate(180deg);
}

/* ── Dropdown ── */
.picker__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 130px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  background: var(--dark-blue);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  z-index: 1000;
  animation: dropdownFadeIn .15s ease;
}

.picker__dropdown.is-open {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.picker__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.picker__option:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--white);
}

.picker__option.is-active {
  background: rgba(245, 197, 24, .15);
  color: var(--yellow);
}

.picker__flag {
  font-size: 15px;
  line-height: 1;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .navbar { 
        padding: 14px 20px;
        transition: all 0.25s;
    }
    .navbar__toggle {
        display: block;
    }

    .navbar__links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.79);
        box-shadow: 0 20px 14px 10px rgb(0,0,0,0.79);
        padding: 20px;
        gap: 16px;
        opacity: 0;
        max-height: 0px;
        transition: opacity 0.25s,
                    max-height 0.45s ease-out;
        pointer-events: none;
    }

    .navbar.active {
        height: fit-content;
        background: rgba(0, 0, 0, 0.79);
        backdrop-filter: none;
        box-shadow: none;
    }

    .navbar__links.active {
        display: flex;
        opacity: 1;
        max-height: 500px;
        pointer-events: auto;
    }
}