/* ===== Language Popup ===== */
.lang-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.lang-overlay[hidden] { display: none; }
.lang-modal { margin: 0 20px; padding: 36px 24px; text-align: center; width: fit-content; }
.lang-modal h2 { font-size: 22px; font-weight: 600; margin-bottom: 32px; color: rgba(255,255,255,0.9); }
.lang-modal:hover { background: rgba(255,255,255,0.031); border: 1px solid rgba(255,255,255,0.078); }
.lang-options { display: flex; flex-direction: column; gap: 20px; }
.lang-btn { padding: 14px 24px; font-size: 16px; font-weight: 500; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #fff; transition: background 0.2s, border-color 0.2s; }
.lang-btn:hover { background: rgba(10,31,74,0.4); border-color: rgba(0,108,255,0.4); }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); background: rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,255,255,0.078); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { height: 55px; width: auto; }
#logo-fallback { display: none; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.lang-switcher { position: relative; }
.lang-toggle { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 14px; font-weight: 500; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #fff; transition: border-color 0.2s; }
.lang-toggle:hover { border-color: rgba(0,108,255,0.4); }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; background: rgba(15,15,20,0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; }
.lang-dropdown[hidden] { display: none; }
.lang-dropdown button { padding: 10px 16px; font-size: 14px; font-weight: 500; text-align: left; border-radius: 10px; transition: background 0.15s; }
.lang-dropdown button:hover { background: rgba(0,108,255,0.15); }

/* ===== Responsive ===== */
@media (min-width: 641px) {
    .lang-modal { margin: 0; padding: 48px 40px; }
    .lang-options { flex-direction: row; }
}
