/* ── Language switcher (header) ─────────────────────────────── */

.hd-lang-slot {
    display: flex;
    align-items: center;
}

.hd-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hd-lang-switcher a {
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.hd-lang-switcher a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hd-lang-switcher a.hd-active {
    color: #fff;
    font-weight: 700;
}

.hd-lang-switcher span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.18);
}

.mil-frame-top .hd-lang-slot {
    margin-left: auto;
    margin-right: 20px;
}

.mil-menu-frame .mil-frame-top .hd-lang-slot {
    margin-right: 60px;
}

/* ── Language gate (modal overlay) ─────────────────────────── */

.hd-lang-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hd-lang-overlay.hd-visible {
    display: flex;
}

.hd-lang-modal {
    width: min(520px, 100%);
    padding: 48px 40px 40px;
    background: #0e0e0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.hd-lang-kicker {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.hd-lang-modal h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.01em;
}

.hd-lang-modal p {
    margin: 0 0 32px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
}

.hd-lang-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hd-lang-option {
    padding: 18px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    text-align: center;
}

.hd-lang-option:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.hd-lang-option strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.hd-lang-option span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Floating language picker ───────────────────────────────── */

.hd-float-picker {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9000;
}

.hd-float-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(14, 14, 14, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hd-float-toggle::before {
    content: "🌐";
    font-size: 13px;
}

.hd-float-toggle:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(24, 24, 24, 0.96);
}

.hd-float-list {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: rgba(14, 14, 14, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 170px;
    display: none;
}

.hd-float-picker.hd-open .hd-float-list {
    display: block;
}

.hd-float-list li {
    display: block;
}

.hd-float-list button {
    width: 100%;
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.hd-float-list button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.hd-float-list button.hd-active {
    color: rgb(255, 152, 0);
    font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 991px) {
    .mil-frame-top .hd-lang-slot {
        margin-right: 56px;
    }
}

@media (max-width: 767px) {
    .hd-lang-modal {
        padding: 36px 24px 28px;
    }

    .hd-lang-actions {
        grid-template-columns: 1fr;
    }

    .mil-frame-top .hd-lang-slot,
    .mil-menu-frame .mil-frame-top .hd-lang-slot {
        margin-right: 46px;
    }
}
